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
5.9 KiB

<block wx:if="{{isLoad}}"><view class="order-pages"><block wx:if="{{$root.g0}}"><view><view class="mt-md ml-lg mr-lg fill-base radius-16"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['list-item','flex-center','pd-lg',[(index!=0)?'b-1px-t':'']]}}"><image class="item-img radius-16" mode="aspectFill" src="{{item.$orig.cover}}"></image><view class="flex-1 ml-md"><view class="{{[[(bellOrderParams.order_type==0)?'flex-between':'']]}}"><view class="{{['f-title','c-title','text-bold','ellipsis',[(bellOrderParams.order_type==0)?'max-400':''],[(bellOrderParams.order_type==1)?'max-470':'']]}}">{{''+item.$orig.title+''}}</view><block wx:if="{{bellOrderParams.order_type==0}}"><view class="f-caption c-caption">{{"x"+item.$orig.num+''}}</view></block></view><view class="flex-between"><view class="flex-y-center f-desc c-caption"><view class="f-title c-warning mr-sm">{{'¥'+(bellOrderParams.order_type==0?item.$orig.pay_price:item.$orig.price)}}</view><block wx:if="{{bellOrderParams.order_type==0}}"><view class="text-delete mr-sm">{{"¥"+item.$orig.price+''}}</view></block>{{''+('/ '+item.$orig.time_long)+'分钟'}}</view><view><block wx:if="{{item.$orig.material_price*1>0}}"><view class="f-caption c-caption">{{'物料费:¥'+item.$orig.material_price}}</view></block></view></view><view class="flex-between"><view class="f-caption c-caption mt-sm mb-sm ellipsis" style="max-width:300rpx;">{{'服务'+item.m0+":"+(orderInfo.coach_info?orderInfo.coach_info.coach_name:'-')+''}}</view><view><block wx:if="{{bellOrderParams.order_type==1}}"><view class="flex-warp"><button data-event-opts="{{[['tap',[['changeNum',[-1,index]]]]]}}" class="reduce" style="{{'border-color:'+(primaryColor)+';'+('color:'+(primaryColor)+';')}}" catchtap="__e"><view class="iconfont icon-jian-bold _i"></view></button><button class="addreduce clear-btn">{{item.$orig.num||0}}</button><button data-event-opts="{{[['tap',[['changeNum',[1,index]]]]]}}" class="add" style="{{'background:'+(primaryColor)+';'+('border-color:'+(primaryColor)+';')}}" catchtap="__e"><view class="iconfont icon-jia-bold _i"></view></button></view></block></view></view></view></view></block></view><view class="mt-md ml-lg mr-lg fill-base radius-16"><view class="flex-between pd-lg b-1px-b"><view class="f-title c-title text-bold">服务开始时间</view><view class="f-paragraph c-caption">{{''+orderInfo.order_start_time+''}}</view></view><view class="flex-between pd-lg"><view class="f-title c-title text-bold">服务结束时间</view><view class="f-paragraph c-caption">{{''+orderInfo.order_end_time+''}}</view></view></view><view class="mt-md ml-lg mr-lg fill-base radius-16"><block wx:for="{{payList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{bellOrderParams.order_type==0&&orderInfo.pay_model==item.id||bellOrderParams.order_type==1}}"><view data-event-opts="{{[['tap',[['toChangeItem',[index,2]]]]]}}" class="flex-between pt-lg pb-lg pl-lg pr-md b-1px-b" catchtap="__e"><view class="flex-y-center f-title c-title"><view class="{{['iconfont','mr-md','_i',item.icon]}}" style="{{'color:'+(item.id==1?primaryColor:'')+';'+('font-size:'+('50rpx')+';')}}"></view>{{''+item.title+''}}<block wx:if="{{item.id==2}}"><view class="f-paragraph c-caption ml-md">{{"余额"+(balance||0)+"元"}}</view></block></view><view class="flex-y-center" style="{{'color:'+(payInd==index?primaryColor:'')+';'}}"><view class="{{['pay-icon','iconfont','icon-xuanze','mr-sm','_i',[(item.is_disabled||payInd==index)?'icon-xuanze-fill':'']]}}"></view></view></view></block></block></block></view><block wx:if="{{$root.g1}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-title flex-y-center radius-16" catchtap="__e"><view class="{{['iconfont','mr-sm','_i',isAgree?'icon-xuanze-fill':'icon-xuanze']}}" style="{{'color:'+(isAgree?primaryColor:'')+';'}}"></view>我已阅读并同意<view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">《平台交易规则》</view></view></block><view class="space-max-footer"></view><view class="pay-info fix flex-between text-right pl-lg pr-lg fill-base"><view class="flex-y-center f-paragraph c-title text-bold ml-sm mr-lg">合计:<view class="flex-y-baseline f-title c-warning">{{"¥"+orderInfo.pay_price}}</view></view><auth style="width:182rpx;" vue-id="6ef48453-1" needAuth="{{userInfo&&(!userInfo.phone||!userInfo.nickName)}}" must="{{true}}" type="{{!userInfo.phone?'phone':'userInfo'}}" data-event-opts="{{[['^go',[['toPay']]]]}}" bind:go="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="pay-btn flex-center f-paragraph c-base radius" style="{{'background:'+(primaryColor)+';'}}">立即支付</view></auth></view></view></block><block wx:else><abnor vue-id="6ef48453-2" tip="{{[{text:'该服务已下架~',color:0}]}}" button="{{[{text:'去看看其他加钟服务',type:'confirm'}]}}" btnSize data-event-opts="{{[['^confirm',[['e2']]]]}}" bind:confirm="__e" bind:__l="__l"></abnor></block><uni-popup class="vue-ref" vue-id="6ef48453-3" type="center" maskClick="{{false}}" data-ref="show_rule_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-rule"><view class="fill-base pd-lg radius-26"><view class="f-title c-title text-bold flex-center pd-lg">平台交易规则</view><scroll-view class="rule-text" scroll-y="{{true}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" catchtouchmove="__e"><parser vue-id="{{('6ef48453-4')+','+('6ef48453-3')}}" html="{{configInfo.trading_rules}}" show-with-animation="{{true}}" lazy-load="{{true}}" data-event-opts="{{[['^linkpress',[['linkpress']]]]}}" bind:linkpress="__e" bind:__l="__l" vue-slots="{{['default']}}">加载中...</parser></scroll-view></view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="flex-center pd-lg" bindtap="__e"><view class="iconfont icon-close c-base _i"></view></view></view></uni-popup></view></block>