This commit is contained in:
zoujiandong 2024-04-23 16:03:20 +08:00
parent c2d69330a3
commit 6b055ab03d
8 changed files with 21 additions and 16 deletions

View File

@ -52,7 +52,7 @@
<text>沟通回合</text> <text>沟通回合</text>
</view> </view>
<view class="count_time" wx:if="{{doctorChatData.rest_time!==0 && !isEnd && (doctorChatData.inquiry_mode==8 || doctorChatData.inquiry_mode==9)}}"> <view class="count_time" wx:if="{{doctorChatData.rest_time!==0 && !isEnd && (doctorChatData.inquiry_mode==8 || doctorChatData.inquiry_mode==9)}}">
<text class="red" wx:if="{{serviceInfo.monthly_frequency==0}}">不限问诊次数,{{serviceInfo.finish_time}}后结束</text> <text class="red" wx:if="{{serviceInfo.monthly_frequency==0}}">不限问诊次数,{{serviceInfo.finish_time}}后结束</text>
<text wx:else >当月剩余:<text class="red">{{serviceInfo.monthly_frequency-serviceInfo.month_inquiry_count}}</text>次</text> <text wx:else >当月剩余:<text class="red">{{serviceInfo.monthly_frequency-serviceInfo.month_inquiry_count}}</text>次</text>
</view> </view>
</view> </view>

View File

@ -103,7 +103,7 @@ Page({
}, },
goAgree(){ goAgree(){
this.setData({ this.setData({
showRight:flase showRight:false
}) })
}, },
lookGood:throttle(function(){ lookGood:throttle(function(){

View File

@ -331,7 +331,7 @@ handleCreateServiceChatOrder(id){
title: '订单取消成功', title: '订单取消成功',
icon:"none" icon:"none"
}); });
this.handleCheckInquiry(); //this.handleCheckInquiry();
// this.goChat() // this.goChat()
}) })
}, },

View File

@ -327,7 +327,7 @@
</view> </view>
</view> </view>
<view class="paybox" style="background-color: transparent;" wx:if="{{order.order_service_status==3 }}"> <view class="paybox" style="background-color: transparent;" wx:if="{{order.order_service_status==3 }}">
<view class="submitbtn" bindtap="goChat">去使用</view> <view class="submitbtn" bindtap="handleCheckInquiry">去使用</view>
</view> </view>
<view class="paybox" style="background-color: transparent;" wx:if="{{order.order_service_status==4 || (equity.order_service_package_detail.monthly_frequency!=0 && equity.order_service_package_detail.monthly_frequency-equity.order_service_package.month_inquiry_count==0)}}"> <view class="paybox" style="background-color: transparent;" wx:if="{{order.order_service_status==4 || (equity.order_service_package_detail.monthly_frequency!=0 && equity.order_service_package_detail.monthly_frequency-equity.order_service_package.month_inquiry_count==0)}}">
<view class="submitbtn" bindtap="goXuFei">去续费</view> <view class="submitbtn" bindtap="goXuFei">去续费</view>

View File

@ -2,7 +2,9 @@
.page{ .page{
margin-top: 172rpx; margin-top: 172rpx;
overflow: hidden;
display: flex;
flex-direction: column;
height: calc(100vh - 172rpx); height: calc(100vh - 172rpx);
position: relative; position: relative;
} }

View File

@ -15,6 +15,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
toView:'item0',
tab3Height:500, tab3Height:500,
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static', img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static',
showDialog:false, showDialog:false,
@ -582,7 +583,8 @@ bindchange(e){
this.setData({ this.setData({
currentData:3, currentData:3,
inquiry_type:1, inquiry_type:1,
inquiry_mode:2 inquiry_mode:2,
toView:'item3'
}) })
this.getVideoDoctorList(); this.getVideoDoctorList();
this.getHeight(2) this.getHeight(2)
@ -590,6 +592,7 @@ bindchange(e){
if(this.data.canDiffcult){ if(this.data.canDiffcult){
this.setData({ this.setData({
currentData:4, currentData:4,
toView:'item4',
inquiry_type:1, inquiry_type:1,
inquiry_mode:6 inquiry_mode:6
}) })

View File

@ -72,9 +72,9 @@
<view class="title">医生服务</view> <view class="title">医生服务</view>
<viwe class="tag" wx:if="{{filter.formatYear(days)}}">{{filter.formatYear(days)}}内服务过您</viwe> <viwe class="tag" wx:if="{{filter.formatYear(days)}}">{{filter.formatYear(days)}}内服务过您</viwe>
</view> </view>
<view class="tabbox"> <scroll-view class="tabbox" scroll-x scroll-into-view="{{toView}}">
<view class="tabs"> <view class="tabs">
<view class="tab " bindtap="switchTab" data-id="0"> <view class="tab " bindtap="switchTab" data-id="0" id="item0">
<image wx:if="{{currentData==0 && canTuwen}}" src="{{img_host+'/tuwen_on.png'}}" alt="" class="tabbg on" ></image> <image wx:if="{{currentData==0 && canTuwen}}" src="{{img_host+'/tuwen_on.png'}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData==0 && !canTuwen}}" src="{{img_host+'/tuwen_disable_on.png'}}" alt="" class="tabbg on" ></image> <image wx:elif="{{currentData==0 && !canTuwen}}" src="{{img_host+'/tuwen_disable_on.png'}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData!=0 && canTuwen}}" src="{{img_host+'/tuwen.png'}}" alt="" class="tabbg" ></image> <image wx:elif="{{currentData!=0 && canTuwen}}" src="{{img_host+'/tuwen.png'}}" alt="" class="tabbg" ></image>
@ -105,7 +105,7 @@
<view class="price" wx:if="{{!(expertInquiry_price && freePrice)}}">暂未开通</view> <view class="price" wx:if="{{!(expertInquiry_price && freePrice)}}">暂未开通</view>
</view> </view>
</view> </view>
<view class="tab add" bindtap="switchTab" data-id="1"> <view class="tab add" bindtap="switchTab" data-id="1" id="item1">
<image src="{{img_host+'/suifang_on.png'}}" alt="" class="tabbg" wx:if="{{canVisit}}"></image> <image src="{{img_host+'/suifang_on.png'}}" alt="" class="tabbg" wx:if="{{canVisit}}"></image>
<image src="{{img_host+'/suifang_disable.png'}}" alt="" class="tabbg" wx:else></image> <image src="{{img_host+'/suifang_disable.png'}}" alt="" class="tabbg" wx:else></image>
@ -119,7 +119,7 @@
<view class="price">{{videoPrice?'¥'+videoPrice+'/次':'暂未开通'}}</view> <view class="price">{{videoPrice?'¥'+videoPrice+'/次':'暂未开通'}}</view>
</view> --> </view> -->
</view> </view>
<view class="tab add" bindtap="switchTab" data-id="2"> <view class="tab add" bindtap="switchTab" data-id="2" id="item2">
<image src="{{img_host+'/healthy_on.png'}}" alt="" class="tabbg" wx:if="{{canHealthy}}"></image> <image src="{{img_host+'/healthy_on.png'}}" alt="" class="tabbg" wx:if="{{canHealthy}}"></image>
<image src="{{img_host+'/healthy_disable.png'}}" alt="" class="tabbg" wx:else></image> <image src="{{img_host+'/healthy_disable.png'}}" alt="" class="tabbg" wx:else></image>
<view class="typebox" > <view class="typebox" >
@ -128,7 +128,7 @@
<view class="price" wx:else>暂未开通</view> <view class="price" wx:else>暂未开通</view>
</view> </view>
</view> </view>
<view class="tab " bindtap="switchTab" data-id="3"> <view class="tab " bindtap="switchTab" data-id="3" id="item3">
<image src="{{img_host+'/video_on.png'}}" wx:if="{{currentData==3 && canVideo}}" alt="" class="tabbg on" ></image> <image src="{{img_host+'/video_on.png'}}" wx:if="{{currentData==3 && canVideo}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData==3 && !canVideo}}" src="{{img_host+'/video_disable_on.png'}}" alt="" class="tabbg on" ></image> <image wx:elif="{{currentData==3 && !canVideo}}" src="{{img_host+'/video_disable_on.png'}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData!=3 && canVideo}}" src="{{img_host+'/video.png'}}" alt="" class="tabbg" ></image> <image wx:elif="{{currentData!=3 && canVideo}}" src="{{img_host+'/video.png'}}" alt="" class="tabbg" ></image>
@ -143,7 +143,7 @@
</view> </view>
</view> </view>
<view class="tab " bindtap="switchTab" data-id="4"> <view class="tab " bindtap="switchTab" data-id="4" id="item4">
<image wx:if="{{currentData==4 && canDiffcult}}" src="{{img_host+'/yinan_on.png'}}" alt="" class="tabbg on" ></image> <image wx:if="{{currentData==4 && canDiffcult}}" src="{{img_host+'/yinan_on.png'}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData==4 && !canDiffcult}}" src="{{img_host+'/yinan_disable_on.png'}}" alt="" class="tabbg on" ></image> <image wx:elif="{{currentData==4 && !canDiffcult}}" src="{{img_host+'/yinan_disable_on.png'}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData!=4 && canDiffcult}}" src="{{img_host+'/yinan.png'}}" alt="" class="tabbg" ></image> <image wx:elif="{{currentData!=4 && canDiffcult}}" src="{{img_host+'/yinan.png'}}" alt="" class="tabbg" ></image>
@ -159,7 +159,7 @@
</view> </view>
</view> </view>
</view> </scroll-view>
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'35rpx'}}"> <swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'35rpx'}}">
<swiper-item > <swiper-item >

View File

@ -525,14 +525,14 @@ justify-content:center;
.tabs{ .tabs{
height:330rpx; height:330rpx;
display: flex; display: flex;
width:1150rpx; width:1100rpx;
} }
.tabs .tab{ .tabs .tab{
width: 214rpx; width: 210rpx;
height: 300rpx; height: 300rpx;
position: relative; position: relative;
margin-right: 20rpx; margin-right: 16rpx;
box-shadow: 0rpx 8rpx 20rpx 2rpx rgba(0,0,0,0.04); box-shadow: 0rpx 8rpx 20rpx 2rpx rgba(0,0,0,0.04);
} }