diff --git a/patient/pages/expertDetail/expertDetail.js b/patient/pages/expertDetail/expertDetail.js index 3bab64c..0c6dbe0 100644 --- a/patient/pages/expertDetail/expertDetail.js +++ b/patient/pages/expertDetail/expertDetail.js @@ -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) } } diff --git a/patient/pages/expertDetail/expertDetail.wxml b/patient/pages/expertDetail/expertDetail.wxml index e51d3dc..d6939b3 100644 --- a/patient/pages/expertDetail/expertDetail.wxml +++ b/patient/pages/expertDetail/expertDetail.wxml @@ -160,8 +160,8 @@ - - + + @@ -189,9 +189,9 @@ - - - + + + @@ -234,7 +234,7 @@ - + diff --git a/patient/pages/orderDetail/orderDetail.wxss b/patient/pages/orderDetail/orderDetail.wxss index 38a705f..5a3595f 100644 --- a/patient/pages/orderDetail/orderDetail.wxss +++ b/patient/pages/orderDetail/orderDetail.wxss @@ -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%; }