addgood.wxml 8.5 KB

1
  1. <view style="padding-bottom:130rpx;" class="data-v-4246d39b"><view class="data-v-4246d39b"><view style="position:fixed;top:0;left:0;right:0;z-index:9999;background:#fff;" class="data-v-4246d39b"><view class="bg padding-lr padding-tb-sm flex align-center data-v-4246d39b"><u-search style="width:100%;" vue-id="069420cb-1" placeholder="搜索商品标题 " bg-color="#F7F7F7" shape="square" show-action="{{false}}" value="{{goodsName}}" data-event-opts="{{[['^change',[['search']]],['^input',[['__set_model',['','goodsName','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-4246d39b" bind:__l="__l"></u-search></view><view class="flex bg data-v-4246d39b"><block wx:for="{{tab}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['bindindex',[index]]]]]}}" class="{{['flex-sub','boxIndex','data-v-4246d39b',tabIndex==index?'tans':'']}}" style="{{'position:relative;padding-left:40rpx;'+(index==1?'text-align:center':index==2?'text-align:right;margin-right:40rpx':'')}}" bindtap="__e">{{''+item.name+''}}<view hidden="{{!(tabIndex==index)}}" class="{{['data-v-4246d39b',index==0?'tabse':index==1?'tabse1':'tabse2']}}"></view></view></block></view><scroll-view class="flex align-center padding-sm data-v-4246d39b" style="height:100rpx;width:100%;white-space:nowrap;" scroll-x="true"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['bindTabs',[index,'$0'],[[['list','',index]]]]]]]}}" class="{{['boxs','data-v-4246d39b',counts==index?'actives':'']}}" bindtap="__e">{{item.classifyName+''}}</view></block></scroll-view></view><block wx:if="{{$root.g0>0}}"><view style="margin-top:290rpx;padding-bottom:170px;" class="data-v-4246d39b"><u-checkbox-group class="flex justify-center flex-wrap data-v-4246d39b" vue-id="069420cb-2" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="bg radius data-v-4246d39b" style="width:686rpx;margin-top:20rpx;"><view class="padding-sm data-v-4246d39b" style="position:relative;"><u-checkbox bind:change="__e" bind:input="__e" vue-id="{{('069420cb-3-'+index)+','+('069420cb-2')}}" value="{{item.checkeds}}" data-event-opts="{{[['^change',[['checkboxChange',['$0'],[[['goodsList','',index]]]]]],['^input',[['__set_model',['$0','checkeds','$event',[]],[[['goodsList','',index]]]]]]]}}" class="data-v-4246d39b" bind:__l="__l"></u-checkbox>{{'创建时间:'+item.createTime+''}}<label style="position:absolute;right:20rpx;" class="_span data-v-4246d39b"><u-switch vue-id="{{('069420cb-4-'+index)+','+('069420cb-2')}}" active-color="#17cd8a" inactive-color="#eee" size="40" value="{{item.checked}}" data-event-opts="{{[['^change',[['changeKg',[index,'$0'],[[['goodsList','',index]]]]]],['^input',[['__set_model',['$0','checked','$event',[]],[[['goodsList','',index]]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-4246d39b" bind:__l="__l"></u-switch></label></view><view style="width:100%;border-top:1rpx solid #E6E6E6;" class="data-v-4246d39b"></view><view data-event-opts="{{[['tap',[['goDet',['$0'],[[['goodsList','',index]]]]]]]}}" class="flex padding data-v-4246d39b" bindtap="__e"><view class="data-v-4246d39b"><image class="radius data-v-4246d39b" style="width:210rpx;height:170rpx;" src="{{item.goodsCover?item.goodsCover:'../../static/logo.png'}}"></image></view><view class="margin-left flex flex-direction justify-between data-v-4246d39b"><view class="text-lg text-bold data-v-4246d39b">{{item.goodsName}}</view><view class="margin-tb-xs u-line-2 data-v-4246d39b" style="color:#999999;">{{''+item.goodsDescribe+''}}</view><view class="text-lg flex justify-between align-center data-v-4246d39b" style="width:414rpx;"><view class="data-v-4246d39b"><text class="text-sm data-v-4246d39b">¥</text>{{item.goodsMoney+''}}</view><view style="margin-right:10rpx;" class="data-v-4246d39b">{{"库存:"+(item.inventory?item.inventory:'0')}}</view></view></view></view><view style="width:686rpx;height:1rpx;border:1rpx solid #E6E6E6;margin:0 auto;" class="data-v-4246d39b"></view><view class="flex justify-between padding align-center data-v-4246d39b"><view class="flex align-center justify-end data-v-4246d39b" style="width:100%;"><view data-event-opts="{{[['tap',[['goodsSort',['$0'],[[['goodsList','',index]]]]]]]}}" class="btn margin-right-sm data-v-4246d39b" bindtap="__e">排序</view><view data-event-opts="{{[['tap',[['goodupdete',['$0'],[[['goodsList','',index]]]]]]]}}" class="btn margin-right-sm data-v-4246d39b" bindtap="__e">删除</view><view data-event-opts="{{[['tap',[['deitor',['$0'],[[['goodsList','',index]]]]]]]}}" class="btn margin-right-sm data-v-4246d39b" bindtap="__e">库存</view><view data-event-opts="{{[['tap',[['goUpdate',['$0'],[[['goodsList','',index]]]]]]]}}" class="btn data-v-4246d39b" bindtap="__e">修改</view></view></view></view></block></u-checkbox-group></view></block><block wx:if="{{$root.g1==0}}"><empty vue-id="069420cb-5" class="data-v-4246d39b" bind:__l="__l"></empty></block></view><view class="selectcz flex align-center data-v-4246d39b"><u-checkbox style="margin-left:40rpx;" bind:change="__e" bind:input="__e" vue-id="069420cb-6" value="{{checkedz}}" data-event-opts="{{[['^change',[['checkboxChanges']]],['^input',[['__set_model',['','checkedz','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l" vue-slots="{{['default']}}">全选</u-checkbox><view data-event-opts="{{[['tap',[['selectczan',['$event']]]]]}}" class="addguige text-bold addguigezz data-v-4246d39b" bindtap="__e">操作</view><view data-event-opts="{{[['tap',[['goAdd']]]]}}" class="addguige text-bold addguigezzs data-v-4246d39b" bindtap="__e">添加商品</view></view><u-popup bind:input="__e" vue-id="069420cb-7" mode="center" border-radius="14" width="500rpx" height="300rpx" closeable="{{true}}" value="{{shows3}}" data-event-opts="{{[['^input',[['__set_model',['','shows3','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l" vue-slots="{{['default']}}"><view class="data-v-4246d39b"><view class="padding data-v-4246d39b"><view class="data-v-4246d39b">排序</view><view class="flex justify-center data-v-4246d39b" style="margin-top:20rpx;"><u-number-box bind:input="__e" vue-id="{{('069420cb-8')+','+('069420cb-7')}}" input-width="{{300}}" input-height="{{60}}" min="{{0}}" placeholder="请填写" value="{{paixu}}" data-event-opts="{{[['^input',[['__set_model',['','paixu','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l"></u-number-box></view></view><view data-event-opts="{{[['tap',[['bindclose3']]]]}}" class="addguiges data-v-4246d39b" bindtap="__e">确定</view></view></u-popup><u-popup bind:input="__e" vue-id="069420cb-9" mode="center" border-radius="14" width="500rpx" height="300rpx" closeable="{{closeable}}" value="{{shows}}" data-event-opts="{{[['^input',[['__set_model',['','shows','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l" vue-slots="{{['default']}}"><view class="data-v-4246d39b"><view class="padding data-v-4246d39b"><view class="data-v-4246d39b">添加库存</view><view class="data-v-4246d39b"><u-input bind:input="__e" vue-id="{{('069420cb-10')+','+('069420cb-9')}}" placeholder="请填写" type="number" value="{{typeperature}}" data-event-opts="{{[['^input',[['__set_model',['','typeperature','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l"></u-input></view></view><view data-event-opts="{{[['tap',[['bindclose']]]]}}" class="addguiges data-v-4246d39b" bindtap="__e">确定</view></view></u-popup><u-popup bind:input="__e" vue-id="069420cb-11" mode="center" border-radius="14" width="500rpx" height="300rpx" closeable="{{true}}" value="{{shows2}}" data-event-opts="{{[['^input',[['__set_model',['','shows2','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l" vue-slots="{{['default']}}"><view class="data-v-4246d39b"><view class="padding data-v-4246d39b"><view class="data-v-4246d39b">修改库存</view><view class="data-v-4246d39b"><u-input bind:input="__e" vue-id="{{('069420cb-12')+','+('069420cb-11')}}" placeholder="请填写" type="number" value="{{typeperature2}}" data-event-opts="{{[['^input',[['__set_model',['','typeperature2','$event',[]]]]]]}}" class="data-v-4246d39b" bind:__l="__l"></u-input></view></view><view data-event-opts="{{[['tap',[['bindclose2']]]]}}" class="addguiges data-v-4246d39b" bindtap="__e">确定</view></view></u-popup><u-action-sheet vue-id="069420cb-13" list="{{tabIndex==2?lists1:lists}}" value="{{show}}" data-event-opts="{{[['^click',[['click']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" class="data-v-4246d39b" bind:__l="__l"></u-action-sheet></view>