更新5.10

This commit is contained in:
zoujiandong 2024-05-10 08:48:11 +08:00
parent 2e82133764
commit e8e971fee5
3 changed files with 27 additions and 17 deletions

View File

@ -83,7 +83,7 @@ Page({
this.setData({
tab3Height:(rect.height)
})
console.log('元素高度为:', rect.height)
}).exec()
},
handleThrottle:throttle(function(e){
@ -495,6 +495,11 @@ bindchange(e){
}
return a
},
// 禁止用户滑动
catchTouchMove() {
return false;
},
getDeatil(id) {
doctorDetail(id).then((res) => {
for (const key in this.data) {
@ -587,17 +592,21 @@ bindchange(e){
toView:'item3'
})
this.getVideoDoctorList();
this.getHeight(2)
this.getHeight(4)
}else{
if(this.data.canDiffcult){
if(this.data.canDiffcult){
this.setData({
currentData:4,
toView:'item4',
inquiry_type:1,
inquiry_mode:6
})
this.getHeight(3)
}else{
this.getHeight(5)
}else{
this.setData({
currentData:0,
toView:'item0'
})
this.getHeight(1)
}
}

View File

@ -160,8 +160,8 @@
</view>
</scroll-view>
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'20rpx'}}">
<swiper-item >
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'20rpx'}}" disable-touch="{{true}}">
<swiper-item catchtouchmove="catchTouchMove">
<view class="swiper-item" id="swiperitem1">
<image src="{{img_host+'/tuwen_bg.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image>
@ -189,9 +189,9 @@
</view>
</view>
</swiper-item>
<swiper-item class="swiper-item" id="swiperitem2"> </swiper-item>
<swiper-item class="swiper-item" id="swiperitem3"> </swiper-item>
<swiper-item>
<swiper-item class="swiper-item" id="swiperitem2" catchtouchmove="catchTouchMove"> </swiper-item>
<swiper-item class="swiper-item" id="swiperitem3" catchtouchmove="catchTouchMove"> </swiper-item>
<swiper-item catchtouchmove="catchTouchMove">
<view class="swiper-item" id="swiperitem4">
<image src="{{img_host+'/video_bg.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canVideo}}"></image>
<image src="{{img_host+'/video_bg_disable.png'}}" style="height:auto;" mode="widthFix" class="itembg" wx:else></image>
@ -234,7 +234,7 @@
</view>
</view>
</swiper-item>
<swiper-item >
<swiper-item catchtouchmove="catchTouchMove" >
<view class="swiper-item" id="swiperitem5">
<image src="{{img_host+'/yinan_bg.png'}}" class="itembg" wx:if="{{canDiffcult}}" style="height:auto;" mode="widthFix"></image>
<image src="{{img_host+'/video_bg_disable.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:else></image>

View File

@ -203,9 +203,10 @@ color: #333333;
border-radius: 10rpx;
}
.namebox .head {
width: 120rpx;
height: 120rpx;
width: 80rpx;
height: 80rpx;
flex-shrink: 0;
margin-bottom: 28rpx;
border-radius: 50%;
}
@ -218,11 +219,11 @@ color: #333333;
.namewraper {
flex: 1;
max-width:420rpx;
max-width:490rpx;
display: flex;
justify-content: space-between;
flex-direction: column;
margin-left: 20rpx;
margin-left: 0rpx;
}
.namebox .row {
@ -550,8 +551,8 @@ color: #333333;
}
.doctorAvatar {
width: 80rpx;
height: 80rpx;
width:120rpx;
height: 120rpx;
border-radius: 50%;
}