You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.1 KiB
1 lines
4.1 KiB
<view class="order-pages"><fixed vue-id="197cfa01-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('197cfa01-2')+','+('197cfa01-1')}}" list="{{tabList}}" activeIndex="{{activeIndex*1}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab><view class="b-1px-b"></view></fixed><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index,'detail']]]]]}}" class="item-child mt-md ml-md mr-md pd-lg fill-base radius-16" catchtap="__e"><view data-event-opts="{{[['tap',[['goShop',[index]]]]]}}" class="flex-between pb-lg b-1px-b" catchtap="__e"><view class="f-paragraph c-title max-500 ellipsis">{{"订单号:"+item.$orig.order_code}}</view><view class="f-caption text-bold" style="{{'color:'+(item.$orig.pay_type==1?primaryColor:item.g1?subColor:item.$orig.pay_type==7?'#11C95E':'#333')+';'}}">{{''+statusType[item.$orig.pay_type]+''}}</view></view><block wx:for="{{item.$orig.order_goods}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="flex-center mt-lg"><image class="cover radius-16" mode="aspectFill" src="{{aitem.goods_cover}}"></image><view class="flex-1 ml-md"><view class="flex-between"><view class="f-title c-title text-bold max-400 ellipsis">{{''+aitem.goods_name+''}}</view><view class="f-desc c-desc">{{"x"+aitem.num}}</view></view><view class="flex-center" style="margin-bottom:5rpx;"><view class="flex-1 flex-y-center f-caption c-caption mt-md">服务技师<view class="ml-md">{{''+item.$orig.coach_info.coach_name+''}}</view></view><block wx:if="{{aitem.refund_num>0}}"><view class="f-caption c-warning">{{"已退x"+aitem.refund_num+''}}</view></block></view><view class="flex-y-center f-caption c-caption">预约时间<view class="ml-md">{{item.$orig.start_time}}</view></view></view></view></block><view class="flex-between pt-lg"><view class="flex-y-center f-desc c-title">总计:<view class="f-paragraph c-title text-bold">{{"¥"+item.$orig.pay_price}}</view></view><view class="flex-warp"><block wx:if="{{item.$orig.pay_type==1}}"><block><button data-event-opts="{{[['tap',[['toCancel',[index]]]]]}}" class="clear-btn order" catchtap="__e">取消订单</button><button data-event-opts="{{[['tap',[['toPay',[index]]]]]}}" class="clear-btn order" style="{{'color:'+('#fff')+';'+('background:'+(primaryColor)+';')+('border-color:'+(primaryColor)+';')}}" catchtap="__e">去支付</button></block></block><block wx:if="{{item.$orig.pay_type==-1}}"><block><button data-event-opts="{{[['tap',[['toCancel',[index]]]]]}}" class="clear-btn order" catchtap="__e">删除</button></block></block><block wx:if="{{item.$orig.can_refund>0}}"><button data-event-opts="{{[['tap',[['goDetail',[index,'refund']]]]]}}" class="clear-btn order" catchtap="__e">申请退款</button></block><block wx:if="{{item.$orig.pay_type==7}}"><block><button data-event-opts="{{[['tap',[['toAgain',[index]]]]]}}" class="clear-btn order" style="{{'color:'+('#fff')+';'+('background:'+(primaryColor)+';')+('border-color:'+(primaryColor)+';')}}" catchtap="__e">再来一单</button></block></block><block wx:if="{{item.$orig.pay_type==8}}"><block><block wx:if="{{!item.$orig.is_comment}}"><button data-event-opts="{{[['tap',[['goDetail',[index,'evaluate']]]]]}}" class="clear-btn order" catchtap="__e">去评价</button></block></block></block></view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="197cfa01-3" noMore="{{$root.g2}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g3}}"><abnor vue-id="197cfa01-4" bind:__l="__l"></abnor></block><view class="space-footer"></view><common-popup class="vue-ref" vue-id="197cfa01-5" type="CANCEL_ORDER" info="{{popupInfo}}" data-ref="cancel_item" data-event-opts="{{[['^confirm',[['confirmCancel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup><common-popup class="vue-ref" vue-id="197cfa01-6" type="DELETE_ORDER" info="{{popupInfo}}" data-ref="del_item" data-event-opts="{{[['^confirm',[['confirmDel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view> |