| 1 |
- <view class="padding"><view class="text-white padding bg radius"><view style="color:red;" class="_div">新增商品默认库存为1000件,需要修改可点击操作批量修改库存</view><u-form vue-id="1176ebe5-1" model="{{shop}}" label-position="top" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('1176ebe5-2')+','+('1176ebe5-1')}}" label="商品标题" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('1176ebe5-3')+','+('1176ebe5-2')}}" placeholder="请填写商品标题" value="{{shop.goodsName}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsName','$event',[]],['shop']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('1176ebe5-4')+','+('1176ebe5-1')}}" label="商品分类" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1176ebe5-5')+','+('1176ebe5-4')}}" placeholder="请选择" disabled="{{true}}" value="{{shop.classifyName}}" data-event-opts="{{[['^click',[['getflshow']]],['^input',[['__set_model',['$0','classifyName','$event',[]],['shop']]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('1176ebe5-6')+','+('1176ebe5-1')}}" label="商品标签" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex align-center flex-wrap margin-bottom-sm"><block wx:for="{{goodsLabel}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="btn flex align-center margin-top"><view>{{item}}</view><view data-event-opts="{{[['tap',[['bindupdata',[index]]]]]}}" class="margin-left-sm" catchtap="__e">x</view></view></block><view data-event-opts="{{[['tap',[['addtype1']]]]}}" class="btns margin-top" bindtap="__e">+添加</view></view></u-form-item><u-form-item vue-id="{{('1176ebe5-7')+','+('1176ebe5-1')}}" label="商品原价(选填)" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1176ebe5-8')+','+('1176ebe5-7')}}" placeholder="请填写" value="{{shop.originalMoney}}" data-event-opts="{{[['^input',[['__set_model',['$0','originalMoney','$event',[]],['shop']],['ZheKouInput']]]]}}" bind:input="__e" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('1176ebe5-9')+','+('1176ebe5-1')}}" label="打包费(选填)" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('1176ebe5-10')+','+('1176ebe5-9')}}" placeholder="请填写" value="{{shop.packMoney}}" data-event-opts="{{[['^input',[['__set_model',['$0','packMoney','$event',[]],['shop']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('1176ebe5-11')+','+('1176ebe5-1')}}" label="商品售价" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1176ebe5-12')+','+('1176ebe5-11')}}" placeholder="请填写" value="{{shop.goodsMoney}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsMoney','$event',[]],['shop']],['ZheKouInput']]]]}}" bind:input="__e" bind:__l="__l"></u-input></u-form-item><view class="padding bg radius margin-tb" style="padding:10px 0;"><view><view class="text-lg" style="color:#333;">商品描述(选填)</view><view class="margin-tb-sm"><u-input bind:input="__e" style="background:#F5F5F5;" vue-id="{{('1176ebe5-13')+','+('1176ebe5-1')}}" type="textarea" height="200" placeholde="请描述一下您的特长" maxlengt="200" clearable="{{false}}" value="{{shop.goodsDescribe}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsDescribe','$event',[]],['shop']]]]]}}" bind:__l="__l"></u-input></view></view><view><view class="text-lg margin-top-sm text-black">商品封面图</view><view class="flex" style="overflow:hidden;flex-wrap:wrap;"><block wx:if="{{$root.g0}}"><view><view class="margin-top flex margin-right-sm flex-wrap"><view class="flex" style="width:200rpx;height:200rpx;margin-right:2rpx;position:relative;"><image style="width:100%;height:100%;" src="{{shop.goodsCover}}"></image><view data-event-opts="{{[['tap',[['removeImgs']]]]}}" style="z-index:9;position:absolute;top:-15rpx;right:-15rpx;" bindtap="__e"><u-icon vue-id="{{('1176ebe5-14')+','+('1176ebe5-1')}}" name="close-circle-fill" color="#FCD202" size="50rpx" bind:__l="__l"></u-icon></view></view></view></view></block><block wx:if="{{$root.g1<=0}}"><view data-event-opts="{{[['tap',[['addImage',[1]]]]]}}" class="margin-top" bindtap="__e"><view class="flex justify-center align-center" style="width:200rpx;height:200rpx;background:#f4f5f6;"><view><view class="text-center"><image style="width:65rpx;height:55rpx;" src="../static/addimg.png"></image></view><view class="text-center text-black">添加图片</view></view></view></view></block></view></view><view><view class="text-lg margin-top-sm text-black">商品轮播图(可多张)</view><view class="flex" style="overflow:hidden;flex-wrap:wrap;"><block wx:if="{{$root.g2}}"><view><view class="margin-top flex margin-right-sm flex-wrap"><block wx:for="{{goodsPicture}}" wx:for-item="image" wx:for-index="index" wx:key="index"><view class="flex" style="width:200rpx;height:200rpx;margin-right:2rpx;position:relative;"><image style="width:100%;height:100%;" src="{{image}}"></image><view data-event-opts="{{[['tap',[['removeImg',[index,'lb']]]]]}}" style="z-index:9;position:absolute;top:-15rpx;right:-15rpx;" bindtap="__e"><u-icon vue-id="{{('1176ebe5-15-'+index)+','+('1176ebe5-1')}}" name="close-circle-fill" color="#FCD202" size="50rpx" bind:__l="__l"></u-icon></view></view></block></view></view></block><block wx:if="{{$root.g3<=5}}"><view data-event-opts="{{[['tap',[['addImages',[1]]]]]}}" class="margin-top" bindtap="__e"><view class="flex justify-center align-center" style="width:200rpx;height:200rpx;background:#f4f5f6;"><view><view class="text-center"><image style="width:65rpx;height:55rpx;" src="../static/addimg.png"></image></view><view class="text-center text-black">添加图片</view></view></view></view></block></view></view><view><view class="text-lg margin-top-sm text-black">商品详情图(可多张)(选填)</view><view class="flex" style="overflow:hidden;flex-wrap:wrap;"><block wx:if="{{$root.g4}}"><view><view class="margin-top flex margin-right-sm flex-wrap"><block wx:for="{{goodsParticularsPicture}}" wx:for-item="image" wx:for-index="index" wx:key="index"><view class="flex" style="width:200rpx;height:200rpx;margin-right:2rpx;position:relative;"><image style="width:100%;height:100%;" src="{{image}}"></image><view data-event-opts="{{[['tap',[['removeImg',[index,'sq']]]]]}}" style="z-index:9;position:absolute;top:-15rpx;right:-15rpx;" bindtap="__e"><u-icon vue-id="{{('1176ebe5-16-'+index)+','+('1176ebe5-1')}}" name="close-circle-fill" color="#FCD202" size="50rpx" bind:__l="__l"></u-icon></view></view></block></view></view></block><block wx:if="{{$root.g5<=5}}"><view data-event-opts="{{[['tap',[['addImages',[2]]]]]}}" class="margin-top" bindtap="__e"><view class="flex justify-center align-center" style="width:200rpx;height:200rpx;background:#f4f5f6;"><view><view class="text-center"><image style="width:65rpx;height:55rpx;" src="../static/addimg.png"></image></view><view class="text-center text-black">添加图片</view></view></view></view></block></view></view></view><u-form-item vue-id="{{('1176ebe5-17')+','+('1176ebe5-1')}}" label="规格类型" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1176ebe5-18')+','+('1176ebe5-17')}}" placeholder="请选择" disabled="{{true}}" value="{{attrsType}}" data-event-opts="{{[['^click',[['ggShow']]],['^input',[['__set_model',['','attrsType','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item><block wx:if="{{attrsid==2}}"><u-form-item vue-id="{{('1176ebe5-19')+','+('1176ebe5-1')}}" label="商品规格" bind:__l="__l" vue-slots="{{['default']}}"><view style="width:100%;"><view style="display:flex;width:100%;"><u-input style="width:80%;" vue-id="{{('1176ebe5-20')+','+('1176ebe5-19')}}" placeholder="请选择" disabled="{{true}}" value="{{attrs}}" data-event-opts="{{[['^click',[['openguige']]],['^input',[['__set_model',['','attrs','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input><block wx:if="{{attrs}}"><view data-event-opts="{{[['tap',[['goGuiGeItem']]]]}}" style="width:20%;text-align:right;color:#FF4701;" bindtap="__e">修改价格</view></block></view><view style="color:#FF4701;font-size:24rpx;">*修改商品、商品售价后,商品规格将重置,请谨慎操作!</view></view></u-form-item></block></u-form></view><u-button class="margin-top" vue-id="1176ebe5-21" custom-style="{{customStyle}}" shape="square" hair-line="{{false}}" data-event-opts="{{[['^click',[['submit']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">提交</u-button><u-popup bind:input="__e" vue-id="1176ebe5-22" mode="bottom" border-radius="14" closeable="{{closeable}}" value="{{Guigeshow}}" data-event-opts="{{[['^input',[['__set_model',['','Guigeshow','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view><scroll-view scroll-y="true"><view class="padding" style="margin-bottom:70px;"><view>规格类型</view><view class="flex align-center margin-top-sm flex-wrap"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="indexs" wx:key="indexs"><view><view data-event-opts="{{[['tap',[['bindguige',[indexs,1,'$0'],[[['list','',indexs,'ruleName']]]]]]]}}" class="{{['btn','margin-top-sm','flex','align-center','flex-wrap',listIndex==indexs?'boxH':'']}}" bindtap="__e">{{''+item.ruleName+''}}</view></view></block></view><block wx:for="{{attrList.ruleValue}}" wx:for-item="name" wx:for-index="index" wx:key="index"><view><view class="margin-top-sm">{{name.value}}</view><view class="flex align-center flex-wrap margin-top-sm"><block wx:for="{{name.detail1}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{name.detail1}}"><view data-event-opts="{{[['tap',[['bindguige',[ind,2,'$0',index],[[['attrList.ruleValue','',index,'detail']]]]]]]}}" class="btn margin-top-sm" bindtap="__e">{{''+ite+''}}</view></block></block></view></view></block></view></scroll-view><view data-event-opts="{{[['tap',[['bindget']]]]}}" class="addguige" bindtap="__e">确定</view></view></u-popup><u-select vue-id="1176ebe5-23" list="{{ClassifyList}}" valueName="classifyId" labelName="classifyName" value="{{flshow}}" data-event-opts="{{[['^confirm',[['confirm']]],['^input',[['__set_model',['','flshow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-select><u-select vue-id="1176ebe5-24" list="{{attrList1}}" valueName="id" labelName="name" value="{{ggshow}}" data-event-opts="{{[['^confirm',[['ggconfirm']]],['^input',[['__set_model',['','ggshow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-select><u-popup bind:input="__e" vue-id="1176ebe5-25" mode="center" border-radius="14" width="500rpx" height="300rpx" closeable="{{closeable}}" value="{{show2}}" data-event-opts="{{[['^input',[['__set_model',['','show2','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view><view class="padding"><view>添加标签</view><view><u-input bind:input="__e" vue-id="{{('1176ebe5-26')+','+('1176ebe5-25')}}" placeholder="请填写" value="{{typeName}}" data-event-opts="{{[['^input',[['__set_model',['','typeName','$event',[]]]]]]}}" bind:__l="__l"></u-input></view></view><view data-event-opts="{{[['tap',[['bindclose1']]]]}}" class="addguiges" bindtap="__e">确定</view></view></u-popup></view>
|