| 1 |
- <view class="content"><view class="type-item"><block wx:if="{{userInfo.type==1}}"><view class="item-title">咨询预约</view></block><block wx:if="{{userInfo.type==2}}"><view class="item-title">我的病人</view></block><block wx:if="{{userInfo.type==3}}"><view class="item-title">预约管理</view></block><view class="navbar flex"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabClick',[index]]]]]}}" class="{{['nav-item',(tabCurrentIndex===index)?'current':'']}}" bindtap="__e">{{item.text}}</view></block></view><swiper class="swiper-box" current="{{tabCurrentIndex}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{navList}}" wx:for-item="tabItem" wx:for-index="tabIndex" wx:key="tabIndex"><swiper-item class="tab-content"><scroll-view class="list-scroll-content" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadData',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{tabItem.loaded===true&&tabItem.orderList.length===0}}"><empty vue-id="{{'3094b234-1-'+tabIndex}}" bind:__l="__l"></empty></block><block wx:for="{{tabItem.orderList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="order-item"><view class="i-top flex_item"><image src="/static/img/img021.png"></image><view class="time">发起时间:<text>{{item.add_time}}</text></view><block wx:if="{{userInfo.type==1||userInfo.type==3}}"><view><block wx:if="{{item.refund==0}}"><view class="state">{{''+(item.status==0?'未支付':item.status==1?'已支付':item.status==2?'已预约':item.status==3?'待确认':item.status==4?'已确认':item.status==5?'已完成':'已评价')+''}}</view></block><block wx:if="{{item.refund!=0}}"><view class="state">{{item.refund==1?'退款中':item.status==2?'退款完成':'退款失败'}}</view></block></view></block><block wx:if="{{userInfo.type==2}}"><view><block wx:if="{{item.refund==0}}"><view class="state">{{''+(item.status==0?'未支付':item.status==1?'已支付':item.status==2?'已预约':item.status==3?'已确认':item.status==4?'待确认':item.status==5?'已完成':'已评价')+''}}</view></block><block wx:if="{{item.refund!=0}}"><view class="state">{{item.refund==1?'退款中':item.status==2?'退款完成':'退款失败'}}</view></block></view></block></view><view data-event-opts="{{[['tap',[['ToChat',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="goods-box-single flex_item" bindtap="__e"><view class="img-box"><block wx:if="{{item.status==1||item.status==2}}"><view><block wx:if="{{item.no_read>0&&item.refund==0}}"><view class="corner"><text>{{item.no_read}}</text></view></block></view></block><block wx:if="{{userInfo.type!=2}}"><image class="goods-img" src="{{item.doctor_avatar||'/static/error/missing-face.png'}}" mode="aspectFill"></image></block><block wx:if="{{userInfo.type==2}}"><image class="goods-img" src="{{item.patient_avatar||'/static/error/missing-face.png'}}" mode="aspectFill"></image></block></view><view class="right"><block wx:if="{{userInfo.type!=2}}"><text class="title clamp">{{''+item.doctor_name+"("+(item.doctor_level==1?'医师':item.doctor_level==2?'主治医师':item.doctor_level==3?'副主任医师':'主任医师')+')'}}</text></block><block wx:if="{{userInfo.type==2}}"><view><block wx:if="{{item.type==1||item.type==2}}"><text class="title clamp">{{item.patient_name}}</text></block><block wx:if="{{item.type==3}}"><text class="title clamp">{{item.organ_name}}</text></block></view></block><view class="title clamp font-da">{{item.type==1?'咨询':item.type==2?'预约麻醉':'多点执业'}}</view><block wx:if="{{userInfo.type!=2&&item.refund==1}}"><view class="title red">您申请的退款将在平台审核后,退回您的账户,感谢您使用麻醉服务平台。</view></block></view><block wx:if="{{userInfo.type==2&&item.refund==0&&item.status!=0}}"><view class="appointment">回复详情</view></block><block wx:if="{{userInfo.type!=2&&item.refund==0&&item.status!=0}}"><view class="appointment">立即咨询</view></block></view><block wx:if="{{userInfo.type!=2}}"><view class="action-box b-t"><block wx:if="{{item.status==0}}"><view data-event-opts="{{[['tap',[['ConfirmPay',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" bindtap="__e">去支付</view></block><block wx:if="{{item.status==0}}"><view data-event-opts="{{[['tap',[['Cancel',['$0'],[[['navList','',tabIndex],['orderList','',index,'order_id']]]]]]]}}" class="action-btn" bindtap="__e">取消订单</view></block><block wx:if="{{item.refund==0&&item.status==2||item.status==3}}"><view data-event-opts="{{[['tap',[['Completion',['$0'],[[['navList','',tabIndex],['orderList','',index,'order_id']]]]]]]}}" class="action-btn" bindtap="__e">确认完成</view></block><block wx:if="{{item.status==4||item.status==5}}"><view data-event-opts="{{[['tap',[['ToEvaluate',['$0'],[[['navList','',tabIndex],['orderList','',index,'order_id']]]]]]]}}" class="action-btn" bindtap="__e">去评价</view></block><block wx:if="{{item.status==4||item.status==5||item.status==6||item.status==7}}"><view data-event-opts="{{[['tap',[['open',['$0'],[[['navList','',tabIndex],['orderList','',index,'order_id']]]]]]]}}" class="action-btn" bindtap="__e">打赏医生</view></block><block wx:if="{{item.refund==0&&item.status==2}}"><view data-event-opts="{{[['tap',[['open1',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" bindtap="__e">退款</view></block><block wx:if="{{item.status==4||item.status==5||item.status==6||item.status==7}}"><view data-event-opts="{{[['tap',[['ToZixu',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" bindtap="__e">再次咨询</view></block></view></block><block wx:if="{{userInfo.type==2}}"><view class="action-box b-t"><block wx:if="{{item.refund==0&&item.status==2||item.status==4||item.status==7}}"><view data-event-opts="{{[['tap',[['Completion',['$0'],[[['navList','',tabIndex],['orderList','',index,'order_id']]]]]]]}}" class="action-btn" bindtap="__e">确认完成</view></block><block wx:if="{{item.refund==0&&item.status==2}}"><view data-event-opts="{{[['tap',[['open1',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" bindtap="__e">退款</view></block></view></block></view></block><uni-load-more vue-id="{{'3094b234-2-'+tabIndex}}" status="{{tabItem.loadingType}}" bind:__l="__l"></uni-load-more></scroll-view></swiper-item></block></swiper></view><uni-popup class="vue-ref" vue-id="3094b234-3" type="center" data-ref="popup1" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup"><view class="row"><view class="row-1">申请退款</view><input class="row-2" type="text" placeholder="请输入退款理由" data-event-opts="{{[['input',[['__set_model',['','reason','$event',[]]]]]]}}" value="{{reason}}" bindinput="__e"/><button data-event-opts="{{[['tap',[['refund',['$event']]]]]}}" class="row-3 flex" bindtap="__e">申请退款</button></view></view><view data-event-opts="{{[['tap',[['close1',['$event']]]]]}}" class="close_icon" bindtap="__e"><image src="../../static/img/img016.png"></image></view></uni-popup><uni-popup class="vue-ref" vue-id="3094b234-4" type="center" data-ref="popup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup"><view class="row"><view class="row-1">打赏金额</view><input class="row-2" type="number" placeholder="请输入打赏金额" data-event-opts="{{[['input',[['__set_model',['','money','$event',[]]]]]]}}" value="{{money}}" bindinput="__e"/><button data-event-opts="{{[['tap',[['Reward',['$event']]]]]}}" class="row-3 flex" bindtap="__e">立即打赏</button></view></view><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="close_icon" bindtap="__e"><image src="../../static/img/img016.png"></image></view></uni-popup><uni-popup class="vue-ref" style="z-index:999;" vue-id="3094b234-5" type="bottom" data-ref="popup2" bind:__l="__l" vue-slots="{{['default']}}"><view class="payment"><view data-event-opts="{{[['tap',[['payclose']]]]}}" class="first flex " bindtap="__e"><text class="word">选择支付方式</text><image src="../../static/img/img25.png"></image></view><view class="pay-type-list"><view data-event-opts="{{[['tap',[['changePayType',[1]]]]]}}" class="type-item b-b" bindtap="__e"><view class="img"><image class="yue" src="../../static/img/img26.png"></image></view><view class="con"><text class="tit">微信支付</text></view><label class="radio"><radio value="" color="#FC4141" checked="{{payType==1}}"></radio></label></view><view data-event-opts="{{[['tap',[['changePayType',[2]]]]]}}" class="type-item flex_item" bindtap="__e"><view class="img"><image class="yue" src="../../static/img/img017.png"></image></view><view class="con"><text class="tit">余额支付</text></view><label class="radio"><radio value="" color="#FC4141" checked="{{payType==2}}"></radio></label></view></view><view class="one"></view><view class="Third flex"><view class="two1"><text class="two1-1 ">合计:</text><text class="two1-2">¥</text><text class="two1-2 size">{{money}}</text></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['two2',(payLoding)?'clickbg':'']}}" catchtap="__e"><text>立即支付</text></view></view></view></uni-popup></view>
|