|
|
|
|
<view class="data-v-645c66b0"><view class="order-page order-page--primary data-v-645c66b0"><u-navbar vue-id="272f6d44-1" is-back="{{false}}" title="订单管理系统" background="{{$root.a0}}" title-color="#fff" border-bottom="{{false}}" class="data-v-645c66b0" bind:__l="__l"></u-navbar><view class="b-border data-v-645c66b0"></view><view class="primary-tabs data-v-645c66b0"><view data-event-opts="{{[['tap',[['switchPrimary',['orders']]]]]}}" class="{{['data-v-645c66b0','primary-tab',[(primaryTab==='orders')?'active':'']]}}" bindtap="__e">订单</view><view data-event-opts="{{[['tap',[['switchPrimary',['refunds']]]]]}}" class="{{['data-v-645c66b0','primary-tab',[(primaryTab==='refunds')?'active':'']]}}" bindtap="__e">退款管理</view></view><block wx:if="{{primaryTab==='orders'}}"><block class="data-v-645c66b0"><view class="tabs data-v-645c66b0"><block wx:for="{{orderTabs}}" wx:for-item="tab" wx:for-index="idx" wx:key="idx"><view data-event-opts="{{[['tap',[['changeTab',[idx]]]]]}}" class="{{['data-v-645c66b0','tab',[(currentTab===idx)?'active':'']]}}" bindtap="__e">{{''+tab.name+''}}</view></block></view><view class="order data-v-645c66b0"><scroll-view style="height:100%;width:100%;" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['reachBottom',['$event']]]]]}}" bindscrolltolower="__e" class="data-v-645c66b0"><block wx:if="{{$root.g0>0}}"><block class="data-v-645c66b0"><view class="order-list data-v-645c66b0"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view class="order-card data-v-645c66b0"><view class="{{['order-icon','data-v-645c66b0',typeText[item.m0]?typeText[item.m1].class:typeText[1].class]}}">{{''+(typeText[item.m2]?typeText[item.m3].name:typeText[1].name)+''}}</view><view class="order-header data-v-645c66b0"><view class="order-time data-v-645c66b0"> 服务时间:<text class="data-v-645c66b0">{{item.$orig.time}}</text></view><view class="order-status data-v-645c66b0">{{item.m4}}</view></view><view class="order-body data-v-645c66b0"><view class="order-left data-v-645c66b0"><block wx:if="{{item.m5===2}}"><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"服务地址:"+item.m6}}</view></block></block><block wx:else><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"就诊医院:"+(item.$orig.hospital?item.$orig.hospital.name:'')}}</view></block></block><view class="data-v-645c66b0">{{"被服务人:"+(item.$orig.user_archive?item.$orig.user_archive.name:'')}}</view><view class="data-v-645c66b0">{{"服务项目:"+(item.$orig.accompany_product?item.$orig.accompany_product.name:'')}}</view><view class="data-v-645c66b0">{{"订单号:"+item.$orig.no+''}}<text data-event-opts="{{[['tap',[['copy',['$0'],[[['list','id',item.$orig.id,'no']]]]]]]}}" class="copy data-v-645c66b0" bindtap="__e">复制</text></view></view><view class="order-price data-v-645c66b0">¥<text class="data-v-645c66b0">{{item.$orig.price}}</text></view></view><view class="order-footer data-v-645c66b0"><u-button vue-id="{{'272f6d44-2-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['toUrl',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">详情</u-button><block wx:if="{{item.m7}}"><u-button vue-id="{{'272f6d44-3-'+__i0__}}" size="mini" shape="circle" type="warning" custom-style="{{refundApplyBtnStyle}}" data-event-opts="{{[['^click',[['applyOperatorRefund',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">申请退款</u-button></block><block wx:if="{{item.$orig.pay_status===0||item.$orig.pay_status===3}}"><u-button vue-id="{{'272f6d44-4-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['editOrder',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">修改</u-button></block><block w
|