| 1 |
- <view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="app-content _div data-v-587f4920" 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-587f4920" bind:__l="__l"></app-tabs><view class="app-middle _div data-v-587f4920"><scroll-view class="tab-view data-v-587f4920" 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-587f4920',currentTab==index?'active':'']}}" data-current="{{index}}" data-event-opts="{{[['tap',[['swichNav',['$event','$0'],[[['tabbar','',index]]]]]]]}}" catchtap="__e"><text class="data-v-587f4920">{{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-587f4920"><block wx:if="{{currentTab==index}}"><scroll-view class="right-box data-v-587f4920" style="{{'height:'+(height+'px')+';'}}" scroll-y="{{true}}"><block wx:if="{{!item.g0}}"><block class="data-v-587f4920"><view class="page-view _div data-v-587f4920"><block wx:for="{{list.data}}" wx:for-item="goodsItem" wx:for-index="idx" wx:key="idx"><view class="goods-list _div data-v-587f4920"><view class="goods-list-top _div data-v-587f4920"><view class="img-blo _div data-v-587f4920"><image src="{{goodsItem.smallImgList[0]}}" alt="商品图" mode="aspectFit" class="_img data-v-587f4920"></image></view><view class="goods-det _div data-v-587f4920"><view class="goods-det-top _div data-v-587f4920"><view class="goods-name _div data-v-587f4920">{{goodsItem.goodsName}}</view></view><view class="operate-wrap _div data-v-587f4920"><view class="goods-price _div data-v-587f4920">{{"¥"+goodsItem.price}}</view><view data-event-opts="{{[['tap',[['operateFn',['$0',idx],[[['list.data','',idx]]]]]]]}}" class="operate-icon-wrap _div data-v-587f4920" catchtap="__e"><view class="operate-icon _div data-v-587f4920"><view class="{{['iconfont _i data-v-587f4920',idx==operateIndex?'iconcaozuojihuo':'iconcaozuo']}}" style="font-size:38rpx;"></view></view></view></view></view></view><view class="goods-list-bottom flex-center-between _div data-v-587f4920"><view class="_div data-v-587f4920">{{"已售: "+goodsItem.actualSold}}</view><view class="_div data-v-587f4920">{{"库存: "+(goodsItem.stock==-1?'充足':goodsItem.stock)}}</view><view class="_div data-v-587f4920">{{"浏览: "+goodsItem.viewNum}}</view></view></view></block></view><block wx:if="{{operateShow}}"><operate-module vue-id="{{'27853666-2-'+index}}" top="{{operateTop}}" right="{{30}}" btnData="{{btnData}}" data-event-opts="{{[['^clickFn',[['operateList']]]]}}" bind:clickFn="__e" class="data-v-587f4920" bind:__l="__l"></operate-module></block></block></block><block wx:else><block class="data-v-587f4920"><app-wrapper-empty vue-id="{{'27853666-3-'+index}}" title="暂无数据" is-empty="{{item.g1}}" class="data-v-587f4920" bind:__l="__l"></app-wrapper-empty></block></block></scroll-view></block></block></block></view><view class="app-footer _div data-v-587f4920"><view data-event-opts="{{[['tap',[['changeOperateShowFn',['$event']]]]]}}" class="btn-list other-btn _div data-v-587f4920" catchtap="__e"><view class="{{['iconfont iconxiala _i data-v-587f4920',operateBottomShow?'animate-open':'animate-close']}}"></view><label class="_span data-v-587f4920">更多设置</label></view><view class="btn-list _div data-v-587f4920"><button data-event-opts="{{[['tap',[['pageTo',['/admin/goodsManage/add']]]]]}}" class="admin-button-com blue data-v-587f4920" bindtap="__e">新增商品</button></view></view><block wx:if="{{operateBottomShow}}"><operate-line-module vue-id="27853666-4" btnData="{{btnBottomData}}" bottom="{{120}}" right="{{528}}" data-event-opts="{{[['^clickFn',[['operateLine']]]]}}" bind:clickFn="__e" class="data-v-587f4920" bind:__l="__l"></operate-line-module></block><modal-module vue-id="27853666-5" show="{{delModal}}" maskClosable="{{false}}" content="确定删除该商品吗?" color="#333" size="{{32}}" padding="30rpx 30rpx" data-event-opts="{{[['^cancel',[['modalCancel']]],['^click',[['delModalClick']]]]}}" bind:cancel="__e" bind:click="__e" class="data-v-587f4920" bind:__l="__l"></modal-module></view>
|