更新5.10
This commit is contained in:
parent
2e82133764
commit
e8e971fee5
@ -83,7 +83,7 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
tab3Height:(rect.height)
|
tab3Height:(rect.height)
|
||||||
})
|
})
|
||||||
console.log('元素高度为:', rect.height)
|
|
||||||
}).exec()
|
}).exec()
|
||||||
},
|
},
|
||||||
handleThrottle:throttle(function(e){
|
handleThrottle:throttle(function(e){
|
||||||
@ -495,6 +495,11 @@ bindchange(e){
|
|||||||
}
|
}
|
||||||
return a
|
return a
|
||||||
},
|
},
|
||||||
|
// 禁止用户滑动
|
||||||
|
catchTouchMove() {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
|
||||||
getDeatil(id) {
|
getDeatil(id) {
|
||||||
doctorDetail(id).then((res) => {
|
doctorDetail(id).then((res) => {
|
||||||
for (const key in this.data) {
|
for (const key in this.data) {
|
||||||
@ -587,17 +592,21 @@ bindchange(e){
|
|||||||
toView:'item3'
|
toView:'item3'
|
||||||
})
|
})
|
||||||
this.getVideoDoctorList();
|
this.getVideoDoctorList();
|
||||||
this.getHeight(2)
|
this.getHeight(4)
|
||||||
}else{
|
}else{
|
||||||
if(this.data.canDiffcult){
|
if(this.data.canDiffcult){
|
||||||
this.setData({
|
this.setData({
|
||||||
currentData:4,
|
currentData:4,
|
||||||
toView:'item4',
|
toView:'item4',
|
||||||
inquiry_type:1,
|
inquiry_type:1,
|
||||||
inquiry_mode:6
|
inquiry_mode:6
|
||||||
})
|
})
|
||||||
this.getHeight(3)
|
this.getHeight(5)
|
||||||
}else{
|
}else{
|
||||||
|
this.setData({
|
||||||
|
currentData:0,
|
||||||
|
toView:'item0'
|
||||||
|
})
|
||||||
this.getHeight(1)
|
this.getHeight(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -160,8 +160,8 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'20rpx'}}">
|
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{tab3Height+'px'}};margin-top:{{tab3Height==0?'0rpx':'20rpx'}}" disable-touch="{{true}}">
|
||||||
<swiper-item >
|
<swiper-item catchtouchmove="catchTouchMove">
|
||||||
|
|
||||||
<view class="swiper-item" id="swiperitem1">
|
<view class="swiper-item" id="swiperitem1">
|
||||||
<image src="{{img_host+'/tuwen_bg.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image>
|
<image src="{{img_host+'/tuwen_bg.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image>
|
||||||
@ -189,9 +189,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item class="swiper-item" id="swiperitem2"> </swiper-item>
|
<swiper-item class="swiper-item" id="swiperitem2" catchtouchmove="catchTouchMove"> </swiper-item>
|
||||||
<swiper-item class="swiper-item" id="swiperitem3"> </swiper-item>
|
<swiper-item class="swiper-item" id="swiperitem3" catchtouchmove="catchTouchMove"> </swiper-item>
|
||||||
<swiper-item>
|
<swiper-item catchtouchmove="catchTouchMove">
|
||||||
<view class="swiper-item" id="swiperitem4">
|
<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.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>
|
<image src="{{img_host+'/video_bg_disable.png'}}" style="height:auto;" mode="widthFix" class="itembg" wx:else></image>
|
||||||
@ -234,7 +234,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item >
|
<swiper-item catchtouchmove="catchTouchMove" >
|
||||||
<view class="swiper-item" id="swiperitem5">
|
<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+'/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>
|
<image src="{{img_host+'/video_bg_disable.png'}}" class="itembg" style="height:auto;" mode="widthFix" wx:else></image>
|
||||||
|
|||||||
@ -203,9 +203,10 @@ color: #333333;
|
|||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
}
|
}
|
||||||
.namebox .head {
|
.namebox .head {
|
||||||
width: 120rpx;
|
width: 80rpx;
|
||||||
height: 120rpx;
|
height: 80rpx;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
margin-bottom: 28rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,11 +219,11 @@ color: #333333;
|
|||||||
|
|
||||||
.namewraper {
|
.namewraper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
max-width:420rpx;
|
max-width:490rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-left: 20rpx;
|
margin-left: 0rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.namebox .row {
|
.namebox .row {
|
||||||
@ -550,8 +551,8 @@ color: #333333;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.doctorAvatar {
|
.doctorAvatar {
|
||||||
width: 80rpx;
|
width:120rpx;
|
||||||
height: 80rpx;
|
height: 120rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user