| 1 |
- <view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="app-content _div data-v-645f1ea0" bindtap="__e"><app-tabs vue-id="27853666-1" tabs="{{tabs}}" isFixed="{{true}}" currentTab="{{tabIndex}}" itemWidth="50%" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" class="data-v-645f1ea0" bind:__l="__l"></app-tabs><view class="app-middle _div data-v-645f1ea0"><scroll-view class="tab-view data-v-645f1ea0" style="{{'height:'+(height+'px')+';'}}" scroll-y="{{true}}" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}"><block wx:for="{{tabbar}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['tab-bar-item _div data-v-645f1ea0',currentTab==index?'active':'']}}" data-current="{{index}}" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({item})}}" catchtap="__e"><text class="data-v-645f1ea0">{{item.categoryName||'暂无'}}</text></view></block></scroll-view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-645f1ea0"><block wx:if="{{currentTab==index}}"><scroll-view class="right-box data-v-645f1ea0" style="{{'height:'+(height+'px')+';'}}" scroll-y="{{true}}"><block wx:if="{{!item.g0}}"><block class="data-v-645f1ea0"><view class="page-view _div data-v-645f1ea0"><block wx:for="{{list.data}}" wx:for-item="goodsItem" wx:for-index="idx" wx:key="idx"><view class="goods-list _div data-v-645f1ea0"><view data-event-opts="{{[['tap',[['edit',['$0'],[[['list.data','',idx,'id']]]]]]]}}" class="goods-list-top _div data-v-645f1ea0" bindtap="__e"><view class="img-blo _div data-v-645f1ea0"><image src="{{goodsItem.smallImgList[0]}}" alt="商品图" mode="aspectFit" class="_img data-v-645f1ea0"></image></view><view class="goods-det _div data-v-645f1ea0"><view class="goods-det-top _div data-v-645f1ea0"><view class="goods-name _div data-v-645f1ea0">{{goodsItem.goodsName}}</view></view><view class="operate-wrap _div data-v-645f1ea0"><view style="color:#CCCCCC;padding-bottom:5rpx;" class="_div data-v-645f1ea0">库存:<block wx:if="{{goodsItem.stock==-100000}}"><text class="data-v-645f1ea0">充足</text></block><text class="data-v-645f1ea0">{{goodsItem.stock}}</text></view></view><view class="operate-wrap _div data-v-645f1ea0"><view class="goods-price _div data-v-645f1ea0">{{"¥"+goodsItem.price}}</view></view></view></view><view class="goods-list-bottom flex-center-between _div data-v-645f1ea0"><view class="_div data-v-645f1ea0">{{"已售: "+goodsItem.actualSold}}</view><text data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" data-event-params="{{({goodsItem})}}" catchtap="__e" class="data-v-645f1ea0">编辑</text><block wx:if="{{goodsItem.status==0}}"><text data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" data-event-params="{{({goodsItem})}}" catchtap="__e" class="data-v-645f1ea0">上架</text></block><block wx:else><text data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" data-event-params="{{({goodsItem})}}" catchtap="__e" class="data-v-645f1ea0">下架</text></block><text data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" data-event-params="{{({goodsItem})}}" catchtap="__e" class="data-v-645f1ea0">删除</text></view></view></block></view></block></block><block wx:else><block class="data-v-645f1ea0"><app-wrapper-empty vue-id="{{'27853666-2-'+index}}" title="暂无数据" is-empty="{{item.g1}}" class="data-v-645f1ea0" bind:__l="__l"></app-wrapper-empty></block></block></scroll-view></block></block></block></view><view class="app-footer _div data-v-645f1ea0"><view class="btn-list _div data-v-645f1ea0"><button data-event-opts="{{[['tap',[['pageTo',['/admin/goodsManage/add']]]]]}}" class="admin-button-com blue data-v-645f1ea0" bindtap="__e">新增商品</button></view></view></view>
|