4.23
This commit is contained in:
@@ -15,6 +15,7 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
toView:'item0',
|
||||
tab3Height:500,
|
||||
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static',
|
||||
showDialog:false,
|
||||
@@ -582,7 +583,8 @@ bindchange(e){
|
||||
this.setData({
|
||||
currentData:3,
|
||||
inquiry_type:1,
|
||||
inquiry_mode:2
|
||||
inquiry_mode:2,
|
||||
toView:'item3'
|
||||
})
|
||||
this.getVideoDoctorList();
|
||||
this.getHeight(2)
|
||||
@@ -590,6 +592,7 @@ bindchange(e){
|
||||
if(this.data.canDiffcult){
|
||||
this.setData({
|
||||
currentData:4,
|
||||
toView:'item4',
|
||||
inquiry_type:1,
|
||||
inquiry_mode:6
|
||||
})
|
||||
|
||||
@@ -72,9 +72,9 @@
|
||||
<view class="title">医生服务</view>
|
||||
<viwe class="tag" wx:if="{{filter.formatYear(days)}}">{{filter.formatYear(days)}}内服务过您</viwe>
|
||||
</view>
|
||||
<view class="tabbox">
|
||||
<scroll-view class="tabbox" scroll-x scroll-into-view="{{toView}}">
|
||||
<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: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>
|
||||
@@ -105,7 +105,7 @@
|
||||
<view class="price" wx:if="{{!(expertInquiry_price && freePrice)}}">暂未开通</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_disable.png'}}" alt="" class="tabbg" wx:else></image>
|
||||
@@ -119,7 +119,7 @@
|
||||
<view class="price">{{videoPrice?'¥'+videoPrice+'/次':'暂未开通'}}</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_disable.png'}}" alt="" class="tabbg" wx:else></image>
|
||||
<view class="typebox" >
|
||||
@@ -128,7 +128,7 @@
|
||||
<view class="price" wx:else>暂未开通</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 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>
|
||||
@@ -143,7 +143,7 @@
|
||||
</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: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>
|
||||
@@ -159,7 +159,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'35rpx'}}">
|
||||
<swiper-item >
|
||||
|
||||
|
||||
@@ -525,14 +525,14 @@ justify-content:center;
|
||||
.tabs{
|
||||
height:330rpx;
|
||||
display: flex;
|
||||
width:1150rpx;
|
||||
width:1100rpx;
|
||||
|
||||
}
|
||||
.tabs .tab{
|
||||
width: 214rpx;
|
||||
width: 210rpx;
|
||||
height: 300rpx;
|
||||
position: relative;
|
||||
margin-right: 20rpx;
|
||||
margin-right: 16rpx;
|
||||
box-shadow: 0rpx 8rpx 20rpx 2rpx rgba(0,0,0,0.04);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user