cart.wxml 4.3 KB

1
  1. <view class="container data-v-0f00adf4"><view class="navbar data-v-0f00adf4"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['navChoose',[index]]]]]}}" class="{{['nav-item','data-v-0f00adf4',(index==navIc)?'navC':'']}}" bindtap="__e">{{item.text}}</view></block></view><swiper class="swiper-box data-v-0f00adf4" style="{{'height:'+(maxheight)+';'}}" current="{{navIc}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l2}}" wx:for-item="tabItem" wx:for-index="tabIndex" wx:key="tabIndex"><swiper-item class="tab-content data-v-0f00adf4"><scroll-view class="scroll-y data-v-0f00adf4" scroll-y="true"><block wx:for="{{tabItem.l1}}" wx:for-item="i" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['goToOrderDetail',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="order-item data-v-0f00adf4" bindtap="__e"><view class="i-td data-v-0f00adf4"><view class="td-left data-v-0f00adf4">{{"订单编号:"+i.$orig.order_id}}</view><view class="td-right data-v-0f00adf4">{{i.$orig.stateTip}}</view></view><block wx:for="{{i.l0}}" wx:for-item="item" wx:for-index="index"><view class="goods-box data-v-0f00adf4"><view class="goods-left flex data-v-0f00adf4"><image class="goods-img data-v-0f00adf4" src="{{item.$orig.productInfo.image||'../../static/error/errorImage.jpg'}}"></image><view class="goods-name data-v-0f00adf4"><view class="p clamp2 data-v-0f00adf4">{{item.$orig.productInfo.store_name}}</view><view class="span data-v-0f00adf4">{{i.$orig.shipping_type==1?'送货上门':'到店自提'}}</view></view></view><view class="goods-price data-v-0f00adf4"><view class="data-v-0f00adf4">{{"¥"+item.m0}}</view><view class="num data-v-0f00adf4">{{"x"+item.$orig.cart_num}}</view><view class="_br data-v-0f00adf4"></view></view></view></block><view class="i-td data-v-0f00adf4"><view class="td-left data-v-0f00adf4"></view><view class="i-bottom data-v-0f00adf4">{{'共计'+i.$orig.total_num+'件商品'}}<text class="data-v-0f00adf4">{{"合计 ¥"+i.$orig.pay_price}}</text>{{'( '+(i.$orig.pay_postage*1>0?'含物流费用¥'+i.$orig.pay_postage*1:'免邮')+')'}}</view></view><block wx:if="{{tabItem.$orig.state==0}}"><view class="btn-box data-v-0f00adf4"><view data-event-opts="{{[['tap',[['qxzf',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">取消支付</view><view data-event-opts="{{[['tap',[['ljzf',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">立即支付</view></view></block><block wx:if="{{tabItem.$orig.state==1}}"><view class="btn-box data-v-0f00adf4"><block wx:if="{{i.$orig.store_id!=0&&!i.$orig.is_virtual}}"><view data-event-opts="{{[['tap',[['sqth',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">申请退款</view></block><block wx:if="{{i.$orig.store_id==0&&i.$orig.gift_uid==0&&!i.$orig.is_virtual}}"><view data-event-opts="{{[['tap',[['sqth',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">申请退款</view></block><block wx:if="{{i.$orig.shipping_type==2}}"><view class="data-v-0f00adf4"><block wx:if="{{i.$orig.gift_uid==0||i.$orig.gift_uid==userInfo.uid}}"><view data-event-opts="{{[['tap',[['showCode',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">查看券码</view></block></view></block></view></block><block wx:if="{{tabItem.$orig.state==2}}"><view class="btn-box data-v-0f00adf4"><block wx:if="{{i.$orig.shipping_type==1}}"><view data-event-opts="{{[['tap',[['orderTake',['$0','$1'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]],'index']]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">确认收货</view></block><block wx:if="{{i.$orig.shipping_type==2}}"><view class="data-v-0f00adf4"><block wx:if="{{i.$orig.gift_uid==0||i.$orig.gift_uid==userInfo.uid}}"><view data-event-opts="{{[['tap',[['showCode',['$0'],[[['navList','',tabIndex],['orderList','id',i.$orig.id]]]]]]]}}" class="btn data-v-0f00adf4" catchtap="__e">查看券码</view></block></view></block></view></block></view></block></scroll-view></swiper-item></block></swiper></view>