commodity.wxml 2.1 KB

1
  1. <view class="content"><view class="navbar"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabClick',[index]]]]]}}" class="{{['nav-item',(tabCurrentIndex===index)?'current':'']}}" bindtap="__e">{{item.text}}</view></block></view><swiper class="swiper-box" style="{{'height:'+(height)+';'}}" current="{{tabCurrentIndex}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l0}}" wx:for-item="tabItem" wx:for-index="tabIndex" wx:key="tabIndex"><swiper-item class="tab-content"><scroll-view class="{{['list-scroll-content',(tabCurrentIndex==0)?'yan':'']}}" scroll-y="true" data-event-opts="{{[['scrolltolower',[['loadData',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{tabItem.g0}}"><empty vue-id="{{'6db6026e-1-'+tabIndex}}" bind:__l="__l"></empty></block><block wx:else><view><block wx:for="{{tabItem.$orig.orderList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['navTo',['/pages/upload/uploadP?id='+item.id]]]]]}}" class="order-item flex" bindtap="__e"><view class="order-image"><image src="{{item.image}}" mode></image></view><view class="order-info"><view class="order-title clamp2">{{item.store_name}}</view><view class="order-info-main flex"><view class="order-time">{{item.add_time}}</view><view class="order-btnBox flex"><view data-event-opts="{{[['tap',[['navTo',['/pages/upload/uploadP?id='+item.id]]]]]}}" class="order-btn-item" catchtap="__e"><view class="order-btn-icon"><image src="../../static/icon/bj.png" mode></image></view><view class="order-btn-font">修改</view></view></view></view></view></view></block></view></block><block wx:if="{{!tabItem.g1}}"><uni-load-more vue-id="{{'6db6026e-2-'+tabIndex}}" status="{{tabItem.$orig.loadingType}}" bind:__l="__l"></uni-load-more></block></scroll-view><block wx:if="{{tabCurrentIndex==0}}"><view data-event-opts="{{[['tap',[['navTo',['/pages/upload/uploadP']]]]]}}" class="btn" bindtap="__e">上传商品</view></block></swiper-item></block></swiper></view>