order.ttml 3.6 KB

1
  1. <view class="data-v-127632e4"><view class="header data-v-127632e4"><view class="header-tabs data-v-127632e4"><view data-event-opts="{{[['tap',[['checkType',[0]]]]]}}" class="{{(('data-v-127632e4')+' '+(tabType==0?'tab-item active':'tab-item'))}}" bindtap="__e">全部</view><view data-event-opts="{{[['tap',[['checkType',[1]]]]]}}" class="{{(('data-v-127632e4')+' '+(tabType==1?'tab-item active':'tab-item'))}}" bindtap="__e">预约中</view><view data-event-opts="{{[['tap',[['checkType',[2]]]]]}}" class="{{(('data-v-127632e4')+' '+(tabType==2?'tab-item active':'tab-item'))}}" bindtap="__e">服务中</view><view data-event-opts="{{[['tap',[['checkType',[3]]]]]}}" class="{{(('data-v-127632e4')+' '+(tabType==3?'tab-item active':'tab-item'))}}" bindtap="__e">已撤销</view><view data-event-opts="{{[['tap',[['checkType',[4]]]]]}}" class="{{(('data-v-127632e4')+' '+(tabType==4?'tab-item active':'tab-item'))}}" bindtap="__e">已完成</view></view></view><view class="order-body data-v-127632e4"><z-paging vue-id="3c4f3e81-1" show-refresher-update-time="{{true}}" fixed="{{false}}" data-ref="paging" value="{{dataList}}" data-event-opts="{{[['^query',[['queryList']]],['^input',[['__set_model',['','dataList','$event',[]]]]]]}}" bind:query="__e" bind:input="__e" class="data-v-127632e4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><block tt:for="{{dataList}}" tt:for-item="item" tt:for-index="indx" tt:key="indx"><view class="order-item data-v-127632e4"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['dataList','',indx,'order_sn']]]]]]]}}" class="item-header data-v-127632e4" bindtap="__e"><block tt:if="{{item.status==1}}"><view class="order-status success data-v-127632e4">预约中</view></block><block tt:if="{{item.status==2}}"><view class="order-status success data-v-127632e4">服务中</view></block><block tt:if="{{item.status==3}}"><view class="order-status data-v-127632e4">已撤销</view></block><block tt:if="{{item.status==4}}"><view class="order-status success data-v-127632e4">已完成</view></block><view class="order-time data-v-127632e4">{{"订单号 :"+item.certificate_id}}</view></view><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['dataList','',indx,'order_sn']]]]]]]}}" class="order-goods data-v-127632e4" bindtap="__e"><view class="goods-img data-v-127632e4"><image src="{{item.goods.product_img}}" class="data-v-127632e4"></image></view><view class="goods-info data-v-127632e4"><view class="name data-v-127632e4">{{item.goods.product_name}}</view><view class="desc data-v-127632e4"><block tt:if="{{item.end_at}}"><view class="time data-v-127632e4">{{"有效期至:"+item.end_at+''}}</view></block><view class="num data-v-127632e4">{{"x "+(item.number?item.number:1)}}</view></view><view class="desc data-v-127632e4">{{item.sku}}</view><view class="total data-v-127632e4">{{"¥ "+item.goods.product_price}}</view></view></view><view class="order-footer data-v-127632e4"><view class="footer-l data-v-127632e4">{{item.create_at}}</view><view class="footer-r data-v-127632e4"><block tt:if="{{item.status==1}}"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['dataList','',indx,'order_sn']]]]]]]}}" class="btn blue data-v-127632e4" bindtap="__e">取消预约</view></block><block tt:if="{{item.status==2}}"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['dataList','',indx,'order_sn']]]]]]]}}" class="btn blue data-v-127632e4" bindtap="__e">取消服务</view></block><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['dataList','',indx,'order_sn']]]]]]]}}" class="btn danger data-v-127632e4" bindtap="__e">详情</view></view></view></view></block></z-paging></view></view>