<view class="prodcut-list-wrap"><scroll-view class="scroll-Y" style="{{('height:'+scrollviewHigh+'px;')}}" scroll-y="true" lower-threshold="50" data-event-opts="{{[['scrolltolower',[['scrolltolowerFunc',['$event']]]]]}}" bindscrolltolower="__e"><view class="shop"><view class="shop_head"><view class="inner-tab"><view data-event-opts="{{[['tap',[['tabTypeFunc',['sell']]]]]}}" class="{{[type_active=='sell'?'item active':'item']}}" bindtap="__e"><view class="box">在售</view></view><view data-event-opts="{{[['tap',[['tabTypeFunc',['audit']]]]]}}" class="{{[type_active=='audit'?'item active':'item']}}" bindtap="__e"><view class="box">审核中</view></view><view data-event-opts="{{[['tap',[['tabTypeFunc',['lower']]]]]}}" class="{{[type_active=='lower'?'item active':'item']}}" bindtap="__e"><view class="box">已下架</view></view></view></view><block wx:if="{{!loading}}"><view class="shop_body"><block wx:for="{{product_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="shop_body_l_item"><view class="d-s-c mb20"><view class="shop_body_l_item_img"><image class="item_img" src="{{item.product_image}}" mode="aspectFill"></image></view><view class=" flex-1"><view class="shop_body_l_item_info_title h1">{{item.product_name}}</view><view class="shop_body_l_item_info_price h2 red">¥<text class="h1">{{item.product_price}}</text></view><view class="d-b-c"><view>{{"库存:"+item.product_stock}}</view><block wx:if="{{type_active=='sell'}}"><button class="shop_body_b_btn" type="warn" data-event-opts="{{[['tap',[['operation',['$0',20],[[['product_list','',index,'product_id']]]]]]]}}" bindtap="__e">下架</button></block><block wx:if="{{type_active=='audit'}}"><text class="audit_txt">审核中</text></block><block wx:if="{{type_active=='lower'}}"><button class="shop_body_b_btn" type="warn" data-event-opts="{{[['tap',[['operation',['$0',10],[[['product_list','',index,'product_id']]]]]]]}}" bindtap="__e">上架</button></block></view></view></view></view></block></view></block></view><block wx:if="{{$root.g0}}"><view class="d-c-c p30"><text class="iconfont icon-wushuju"></text><text class="cont">亲,暂无相关记录哦</text></view></block><block wx:else><uni-load-more vue-id="4acecf3a-1" loadingType="{{loadingType}}" bind:__l="__l"></uni-load-more></block></scroll-view></view>
|