order.wxml 7.3 KB

1
  1. <app-layout vue-id="49fae9b3-1" class="data-v-423fbdd2" bind:__l="__l" vue-slots="{{['default']}}"><view class="order data-v-423fbdd2"><view class="top dir-left-nowrap main-between cross-center data-v-423fbdd2"><block wx:if="{{!search}}"><view data-event-opts="{{[['tap',[['go_search']]]]}}" class="top-input cross-center data-v-423fbdd2" bindtap="__e"><view class="input main-center cross-center data-v-423fbdd2"><image src="/static/image/icon/icon-search.png" class="data-v-423fbdd2"></image><text class="data-v-423fbdd2">搜索</text></view></view></block><block wx:if="{{!search}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="to-top dir-left-nowrap main-center cross-center data-v-423fbdd2" bindtap="__e"><text class="data-v-423fbdd2">{{active_item}}</text><block wx:if="{{!active}}"><image class="icon data-v-423fbdd2" src="../image/open.png"></image></block><block wx:if="{{active}}"><image class="icon icon-active data-v-423fbdd2" src="../image/open.png"></image></block></view></block><block wx:if="{{search}}"><view class="search dir-left-nowrap cross-center main-between data-v-423fbdd2"><input class="input data-v-423fbdd2" type="text" data-event-opts="{{[['blur',[['blur_request',['$event']]]],['confirm',[['set_search',['$event']]]],['input',[['__set_model',['','search_text','$event',[]]]]]]}}" value="{{search_text}}" bindblur="__e" bindconfirm="__e" bindinput="__e"/><image hidden="{{!(search_text.length>0)}}" class="delete data-v-423fbdd2" src="../image/delete.png" data-event-opts="{{[['tap',[['empyt_search',['$event']]]]]}}" bindtap="__e"></image><text data-event-opts="{{[['tap',[['set_search',['$event']]]]]}}" style="color:#666666;font-size:32rpx;" bindtap="__e" class="data-v-423fbdd2">搜索</text></view></block></view><block wx:if="{{active}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="do-top data-v-423fbdd2" catchtap="__e"><block wx:for="{{select_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['set_active',['$0'],[[['select_list','',index]]]]]]]}}" class="{{['do-top-item data-v-423fbdd2',(item.active)?'active-item':'']}}" bindtap="__e">{{''+item.text+''}}</view></block></view></block><view style="margin-top:108rpx;" class="data-v-423fbdd2"></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-423fbdd2"><view class="item-top dir-left-wrap main-between cross-center data-v-423fbdd2"><text class="order-number data-v-423fbdd2" style="color:#999999;">{{"订单号"+item.$orig.advance_no}}</text><block wx:if="{{item.$orig.status_num==1}}"><text class="data-v-423fbdd2">定金待支付</text></block><block wx:else><block wx:if="{{item.$orig.status_num==2}}"><text class="data-v-423fbdd2">尾款支付未开始</text></block><block wx:else><block wx:if="{{item.$orig.status_num==3}}"><text class="data-v-423fbdd2">尾款待支付</text></block><block wx:else><block wx:if="{{item.$orig.status_num==4}}"><text class="data-v-423fbdd2">购买成功</text></block><block wx:else><block wx:if="{{item.$orig.status_num==5}}"><text class="data-v-423fbdd2">订单已取消</text></block><block wx:else><block wx:if="{{item.$orig.status_num==6}}"><text class="data-v-423fbdd2">订单已售后</text></block><block wx:else><block wx:if="{{item.$orig.status_num==7}}"><text class="data-v-423fbdd2">购买失败 定金支付超时</text></block><block wx:else><block wx:if="{{item.$orig.status_num==8}}"><text class="data-v-423fbdd2">购买失败 定金已退款</text></block><block wx:else><block wx:if="{{item.$orig.status_num==9}}"><text class="data-v-423fbdd2">购买失败 尾款支付超时</text></block></block></block></block></block></block></block></block></block></view><view data-event-opts="{{[['tap',[['route_go',['$0'],[[['order_list','',index]]]]]]]}}" class="item-center dir-left-nowrap data-v-423fbdd2" bindtap="__e"><image class="image data-v-423fbdd2" src="{{item.$orig.goods.goodsWarehouse.cover_pic}}"></image><view class="content data-v-423fbdd2"><view class="name data-v-423fbdd2">{{item.$orig.goods.goodsWarehouse.name}}</view><view class="attr data-v-423fbdd2"><text class="data-v-423fbdd2">{{item.$orig.attr_name}}</text></view><view class="num-price dir-left-nowrap main-between cross-center data-v-423fbdd2"><text class="data-v-423fbdd2">{{"×"+item.$orig.goods_num}}</text><text class="data-v-423fbdd2">{{"¥"+item.$orig.goodsAttr.price}}</text></view><view class="des-price dir-left-wrap main-right cross-center data-v-423fbdd2"><text class="data-v-423fbdd2">定金</text><text style="{{'color:'+(item.$orig.is_pay==0?'#ff4544':'#353535')+';'}}" class="data-v-423fbdd2">{{"¥"+item.$orig.deposit}}</text><text class="data-v-423fbdd2">{{"抵¥"+item.$orig.swell_deposit}}</text><block wx:if="{{item.$orig.status_num==9}}"><text style="color:#ff4544;" class="data-v-423fbdd2">(定金不退)</text></block></view></view></view><view class="item-bottom data-v-423fbdd2"><block wx:if="{{item.$orig.status_num==2||item.$orig.status_num==3||item.$orig.status_num==4||item.$orig.status_num==9}}"><view class="swell-price main-right cross-center data-v-423fbdd2"><text class="data-v-423fbdd2">尾款</text><text style="color:#ff4544;" class="data-v-423fbdd2">{{"¥"+item.$orig.tail_money}}</text></view></block><block wx:if="{{item.$orig.status_num==1}}"><view class="text-time data-v-423fbdd2"><text class="data-v-423fbdd2">距截止</text><text style="color:#ff4544;" class="data-v-423fbdd2">{{item.$orig.html}}</text></view></block><block wx:if="{{item.$orig.status_num==3&&item.$orig.pay_limit!=-1}}"><view class="text-time data-v-423fbdd2"><text class="data-v-423fbdd2">距截止</text><text style="color:#ff4544;" class="data-v-423fbdd2">{{item.$orig.html}}</text></view></block><block wx:if="{{item.$orig.status_num==2}}"><view class="filal-payment-time data-v-423fbdd2">{{'支付尾款时间:'+item.m0+''}}</view></block><block wx:if="{{item.$orig.status_num==3&&item.$orig.order_id==0}}"><view data-event-opts="{{[['tap',[['payFinalPayment',['$0'],[[['order_list','',index]]]]]]]}}" class="button data-v-423fbdd2" bindtap="__e"><app-form-id vue-id="{{('49fae9b3-2-'+index)+','+('49fae9b3-1')}}" class="data-v-423fbdd2" bind:__l="__l" vue-slots="{{['default']}}"><text class="data-v-423fbdd2">去支付尾款</text></app-form-id></view></block><block wx:else><block wx:if="{{item.$orig.status_num==3&&item.$orig.order_id!=0&&item.$orig.pay_type!=2}}"><view data-event-opts="{{[['tap',[['payPayment',['$0',index],[[['order_list','',index]]]]]]]}}" class="button data-v-423fbdd2" bindtap="__e"><app-form-id vue-id="{{('49fae9b3-3-'+index)+','+('49fae9b3-1')}}" class="data-v-423fbdd2" bind:__l="__l" vue-slots="{{['default']}}"><text class="data-v-423fbdd2">付款</text></app-form-id></view></block><block wx:else><block wx:if="{{item.$orig.status_num==1}}"><view data-event-opts="{{[['tap',[['payDeposit',['$0',index],[[['order_list','',index]]]]]]]}}" class="button data-v-423fbdd2" bindtap="__e"><app-form-id vue-id="{{('49fae9b3-4-'+index)+','+('49fae9b3-1')}}" class="data-v-423fbdd2" bind:__l="__l" vue-slots="{{['default']}}"><text class="data-v-423fbdd2">去支付定金</text></app-form-id></view></block></block></block></view></view></block><block wx:if="{{order_list.length===0}}"><view class="order-empty data-v-423fbdd2"><image src="../image/order.png" class="data-v-423fbdd2"></image><text class="data-v-423fbdd2">没有任何订单哦~</text></view></block></view></app-layout>