You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
13 KiB
1 lines
13 KiB
<view class="addGoods data-v-047394dd"><far-bottom vue-id="ec00f06e-1" class="data-v-047394dd" bind:__l="__l"></far-bottom><view style="overflow:auto;padding-bottom:200rpx;" class="data-v-047394dd"><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">商品名称</text><text class="xingxing data-v-047394dd">*</text></view><view class="f-r data-v-047394dd"><input class="uni-input data-v-047394dd" style="text-align:right;" placeholder="请输入商品名称" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" value="{{form.name}}" bindinput="__e"/></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">商品分类</text><text class="xingxing data-v-047394dd">*</text></view><view class="f-r data-v-047394dd"><picker value="{{index}}" range="{{array}}" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e" class="data-v-047394dd"><view class="uni-input t-r f-34 data-v-047394dd" style="color:#999999;">{{form.cateid}}</view></picker></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">价格</text><text class="xingxing data-v-047394dd">*</text></view><view class="f-r data-v-047394dd"><input class="uni-input data-v-047394dd" style="text-align:right;" placeholder="请输入销售价格" type="digit" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['form']]]]]}}" value="{{form.price}}" bindinput="__e"/></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">市场价</text><text class="xingxing data-v-047394dd">*</text></view><view class="f-r data-v-047394dd"><input class="uni-input data-v-047394dd" style="text-align:right;" type="digit" placeholder="请输入商品市场价" cursor-spacing="140" data-event-opts="{{[['input',[['__set_model',['$0','oldprice','$event',[]],['form']]]]]}}" value="{{form.oldprice}}" bindinput="__e"/></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">包装费</text><text class="xingxing data-v-047394dd">*</text></view><view class="f-r data-v-047394dd"><input class="uni-input data-v-047394dd" style="text-align:right;" placeholder="请输入包装费" type="number" data-event-opts="{{[['input',[['__set_model',['$0','deliveryprice','$event',[]],['form']]]]]}}" value="{{form.deliveryprice}}" bindinput="__e"/></view></view><view class="uploadView diy-nav-list border-line b-f1 data-v-047394dd"><view class="f-l data-v-047394dd" style="line-height:150rpx;"><text class="keys data-v-047394dd">缩略图</text></view><view class="verMid uploadButton f-r data-v-047394dd"><block wx:if="{{form.thumb!=''}}"><view class="imgPreview data-v-047394dd" style="position:relative;display:inline-block;"><image src="{{form.thumb}}" class="data-v-047394dd"></image><image class="close data-v-047394dd" style="width:30rpx;height:30rpx;" src="{{imgfixUrls+'merchant/close.png'}}" data-event-opts="{{[['tap',[['closeImg',[1]]]]]}}" bindtap="__e"></image></view></block><block wx:else><view data-event-opts="{{[['tap',[['updataImg',[1]]]]]}}" class="userImgUpdata data-v-047394dd" bindtap="__e"><image src="{{imgfixUrls+'merchant/addImg.svg'}}" class="data-v-047394dd"></image></view></block></view></view><view class="uploadView b-f1 data-v-047394dd"><view class="f-l data-v-047394dd" style="line-height:150rpx;"><text class="keys data-v-047394dd">轮播图</text></view><view class="verMid uploadButton f-r dis-flex swiperBox data-v-047394dd" style="flex-wrap:wrap;justify-content:space-between;"><block wx:for="{{form.thumbs}}" wx:for-item="item" wx:for-index="index"><block wx:if="{{item}}"><block class="verMid data-v-047394dd" style="flex:0.33;"><block wx:if="{{form.thumbs!==[]}}"><view class="imgPreview verMid data-v-047394dd" style="position:relative;"><image src="{{item}}" class="data-v-047394dd"></image><image class="close data-v-047394dd" style="width:30rpx;height:30rpx;" src="{{imgfixUrls+'merchant/close.png'}}" data-event-opts="{{[['tap',[['closeImg',[2,index]]]]]}}" bindtap="__e"></image></view></block></block></block></block><block wx:if="{{$root.g0<6}}"><view data-event-opts="{{[['tap',[['updataImg',[2]]]]]}}" class="userImgUpdata verMid data-v-047394dd" bindtap="__e"><image src="{{imgfixUrls+'merchant/addImg.svg'}}" class="data-v-047394dd"></image></view></block></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">状态</text><text class="xingxing data-v-047394dd">*</text></view><view class="f-r data-v-047394dd"><picker value="{{indexis}}" range="{{arrays}}" data-event-opts="{{[['change',[['shangjia',['$event']]]]]}}" bindchange="__e" class="data-v-047394dd"><view class="uni-input t-r f-34 data-v-047394dd" style="color:#999999;">{{status}}</view></picker></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">商品规格</text></view><view data-event-opts="{{[['tap',[['openguige',['$event']]]]]}}" class="f-r t-r data-v-047394dd" style="font-size:28rpx;color:#999999;" bindtap="__e">规格<text class="iconfont icon-right data-v-047394dd" style="font-size:28rpx;"></text></view></view><view class="b-f1 data-v-047394dd"><view class="f-l data-v-047394dd"><text class="keys data-v-047394dd">商品详情</text></view><view data-event-opts="{{[['tap',[['openrithtext',['$event']]]]]}}" class="f-r t-r data-v-047394dd" style="font-size:28rpx;color:#999999;" bindtap="__e">详情编辑<text class="iconfont icon-right data-v-047394dd" style="font-size:28rpx;"></text></view></view><view style="position:fixed;left:0;bottom:0;width:92%;padding:30rpx;" class="data-v-047394dd"><button type="primary" data-event-opts="{{[['tap',[['addGoods',['$event']]]]]}}" bindtap="__e" class="data-v-047394dd">{{"确认"+addgood}}</button></view></view><block wx:if="{{show}}"><view class="popfixed data-v-047394dd"><view class="f-w data-v-047394dd" style="padding-bottom:50rpx;">商品规格<text class="f-20 col-9 data-v-047394dd">(点击下列规格进行修改)</text><text data-event-opts="{{[['tap',[['closePop',['$event']]]]]}}" class="dis-il-block iconfont icon-close data-v-047394dd" style="float:right;padding:0rpx 20rpx 20rpx;" bindtap="__e"></text></view><block wx:if="{{$root.g1>0}}"><view style="height:700rpx;overflow:auto;" class="data-v-047394dd"><block wx:for="{{form.optionArray}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['modification',['$0',index],[[['form.optionArray','',index]]]]]]]}}" style="border:1px solid #f8f8f8;border-radius:15rpx;padding:50rpx;background-color:#FFFFFF;margin-bottom:30rpx;position:relative;" bindtap="__e" class="data-v-047394dd"><view data-event-opts="{{[['tap',[['modificationClose',['$0',index],[[['form.optionArray','',index,'name']]]]]]]}}" class="iconfont icon-close data-v-047394dd" style="position:absolute;right:10rpx;top:10rpx;color:#999999;" catchtap="__e"></view><view class="dis-flex data-v-047394dd" style="padding-bottom:10rpx;border-bottom:1px solid #f1f1f1;"><view class="flex-box data-v-047394dd" style="font-size:30rpx;">商品名称</view><view class="flex-box t-r data-v-047394dd" style="font-size:30rpx;color:#999999;">{{''+item.name+''}}</view></view><view class="dis-flex data-v-047394dd" style="padding-bottom:10rpx;padding-top:10rpx;border-bottom:1px solid #f1f1f1;"><view class="flex-box data-v-047394dd" style="font-size:30rpx;">商品价格</view><view class="flex-box t-r data-v-047394dd" style="font-size:30rpx;color:#999999;">{{'¥'+item.price+''}}</view></view><view class="dis-flex data-v-047394dd" style="padding-bottom:10rpx;padding-top:10rpx;border-bottom:1px solid #f1f1f1;"><view class="flex-box data-v-047394dd" style="font-size:30rpx;">商品市场价</view><view class="flex-box t-r data-v-047394dd" style="font-size:30rpx;color:#999999;">{{'¥'+item.oldprice+''}}</view></view><view class="dis-flex data-v-047394dd" style="padding-bottom:10rpx;padding-top:10rpx;border-bottom:1px solid #f1f1f1;"><view class="flex-box data-v-047394dd" style="font-size:30rpx;">单日库存</view><view class="flex-box t-r data-v-047394dd" style="font-size:30rpx;color:#999999;">{{''+item.daystock+''}}</view></view><view class="dis-flex data-v-047394dd" style="padding-top:10rpx;"><view class="flex-box data-v-047394dd" style="font-size:30rpx;">全部库存</view><view class="flex-box t-r data-v-047394dd" style="font-size:30rpx;color:#999999;">{{''+item.allstock+''}}</view></view></view></block></view></block><block wx:else><view style="height:700rpx;overflow:auto;" class="data-v-047394dd"><view class="f-40 t-c data-v-047394dd" style="color:#999999;">暂无规格数据,请点击按钮进行添加~</view></view></block><view style="height:160rpx;width:100%;" class="data-v-047394dd"></view><view class="{{['data-v-047394dd',android?'bottom-33':'bottom-30']}}" style="position:relative;z-index:98;width:90%;padding:30rpx;"><button type="primary" data-event-opts="{{[['tap',[['addSpecification',['$event']]]]]}}" bindtap="__e" class="data-v-047394dd">添加规格</button></view></view></block><popup-view vue-id="ec00f06e-2" show="{{richText}}" type="center" data-event-opts="{{[['^clickmask',[['e0']]]]}}" bind:clickmask="__e" class="data-v-047394dd" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{form.detail}}"><view class="b-f data-v-047394dd" style="width:80vw;height:80vh;border-radius:10rpx;overflow:auto;"><jin-edit vue-id="{{('ec00f06e-3')+','+('ec00f06e-2')}}" placeholder="请输入内容" uploadFileUrl="/#" html="{{form.detail}}" data-event-opts="{{[['^editOk',[['editOk']]]]}}" bind:editOk="__e" class="data-v-047394dd" bind:__l="__l"></jin-edit></view></block></popup-view><popup-view vue-id="ec00f06e-4" show="{{shows}}" type="center" bottom="0%" data-event-opts="{{[['^clickmask',[['onShows']]]]}}" bind:clickmask="__e" class="data-v-047394dd" bind:__l="__l" vue-slots="{{['default']}}"><view class="b-f data-v-047394dd" style="padding:30rpx;width:65vw;border-radius:15rpx;"><view class="f-w f-34 data-v-047394dd" style="padding:30rpx 0;">规格添加<text data-event-opts="{{[['tap',[['onShows',['$event']]]]]}}" class="dis-il-block iconfont icon-close data-v-047394dd" style="float:right;padding:0rpx 20rpx 20rpx;" bindtap="__e"></text></view><view class="dis-flex f-30 data-v-047394dd" style="padding-bottom:20rpx;"><view style="flex:0.3;" class="data-v-047394dd">规格名称</view><view style="flex:0.7;" class="data-v-047394dd"><block wx:if="{{shows}}"><input class="uni-input data-v-047394dd" style="text-align:right;" placeholder="请输入规格名称" data-event-opts="{{[['blur',[['toTop',['$event']]]],['input',[['__set_model',['$0','name','$event',[]],['addSpecifications']]]]]}}" value="{{addSpecifications.name}}" bindblur="__e" bindinput="__e"/></block></view></view><view class="dis-flex f-30 data-v-047394dd" style="padding-bottom:20rpx;"><view style="flex:0.3;" class="data-v-047394dd">价格</view><view style="flex:0.7;" class="data-v-047394dd"><block wx:if="{{shows}}"><input class="uni-input data-v-047394dd" style="text-align:right;" type="digit" placeholder="请输入销售价格" data-event-opts="{{[['blur',[['toTop',['$event']]]],['input',[['__set_model',['$0','price','$event',[]],['addSpecifications']]]]]}}" value="{{addSpecifications.price}}" bindblur="__e" bindinput="__e"/></block></view></view><view class="dis-flex f-30 data-v-047394dd" style="padding-bottom:20rpx;"><view style="flex:0.3;" class="data-v-047394dd">市场价</view><view style="flex:0.7;" class="data-v-047394dd"><block wx:if="{{shows}}"><input class="uni-input data-v-047394dd" style="text-align:right;" type="digit" placeholder="请输入规格市场价" data-event-opts="{{[['blur',[['toTop',['$event']]]],['input',[['__set_model',['$0','oldprice','$event',[]],['addSpecifications']]]]]}}" value="{{addSpecifications.oldprice}}" bindblur="__e" bindinput="__e"/></block></view></view><view class="dis-flex f-30 data-v-047394dd" style="padding-bottom:20rpx;"><view style="flex:0.3;" class="data-v-047394dd">单日库存</view><view style="flex:0.7;" class="data-v-047394dd"><block wx:if="{{shows}}"><input class="uni-input data-v-047394dd" style="text-align:right;" type="number" placeholder="请输入单日库存" data-event-opts="{{[['blur',[['toTop',['$event']]]],['input',[['__set_model',['$0','daystock','$event',[]],['addSpecifications']]]]]}}" value="{{addSpecifications.daystock}}" bindblur="__e" bindinput="__e"/></block></view></view><view class="dis-flex f-30 data-v-047394dd" style="padding-bottom:50rpx;"><view style="flex:0.3;" class="data-v-047394dd">全部库存</view><view style="flex:0.7;" class="data-v-047394dd"><block wx:if="{{shows}}"><input class="uni-input data-v-047394dd" style="text-align:right;" type="number" placeholder="请输入全部库存" data-event-opts="{{[['blur',[['toTop',['$event']]]],['input',[['__set_model',['$0','allstock','$event',[]],['addSpecifications']]]]]}}" value="{{addSpecifications.allstock}}" bindblur="__e" bindinput="__e"/></block></view></view><view class="data-v-047394dd"><button type="warn" data-event-opts="{{[['tap',[['confirmAdd',['$event']]]]]}}" bindtap="__e" class="data-v-047394dd">确 定</button></view></view></popup-view><block wx:if="{{shcket}}"><view data-event-opts="{{[['tap',[['shcketto',['$event']]]]]}}" class="popsocks data-v-047394dd" catchtap="__e"></view></block></view>
|