This commit is contained in:
zoujiandong
2024-05-08 15:34:52 +08:00
parent d8b7b7b33d
commit 084d30592f
9 changed files with 31 additions and 11 deletions
+10 -4
View File
@@ -69,12 +69,17 @@ Page({
this.onfresh();
},
onScroll(event) {
let {doctorList}=this.data;
wx.createSelectorQuery().select('#scroller')
.boundingClientRect((res) => {
//console.log(event.detail.scrollTop)
let H=0;
if(event.detail.scrollTop>=175){
H=1;
let H=0;
if(event.detail.scrollTop>175){
if(doctorList.length<=3){
H=150;
}else{
H=1;
}
}else{
H=150
}
@@ -83,6 +88,7 @@ Page({
// offsetTop: res.top,
scrollHeight:H
});
}).exec();
},
transforpage(arr) {
@@ -4,7 +4,7 @@
<view class="wraper">
<view class="containexpert" style="{{'height:'+scrollHeight+'px'}}">
<view class="containexpert" style="{{'height:'+scrollHeight+'px'}}" >
<view class="searchbox">
<input type="text" placeholder="输入姓名或医院查找医生" disabled="{{true}}" bindtap="goSearch" bindconfirm="getIptvalue"/>
<image src="{{img_host+'/ss.png'}}"></image>
+2 -2
View File
@@ -109,7 +109,7 @@
<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>
<view class="typebox" >
<view class="typebox {{!canVisit?'disable':''}}" >
<view class="name">随访包</view>
<view class="price" wx:if="{{visitPrice}}">¥{{visitPrice}}起</view>
<view class="price" wx:else style="color: #999999;">暂未开通</view>
@@ -122,7 +122,7 @@
<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 " >
<view class="typebox {{!canHealthy?'disable':''}}" >
<view class="name">健康包</view>
<view class="price" wx:if="{{healthyPrice}}">¥{{healthyPrice}}/次</view>
<view class="price" wx:else style="color: #999999;">暂未开通</view>
@@ -71,6 +71,11 @@
<view class="dot"></view>
<view class="desc price">¥{{order_product.logistics_fee}}</view>
</view>
<view class="row">
<view class="name">优惠金额</view>
<view class="dot"></view>
<view class="desc price">-¥{{order_product.discount_amount}}</view>
</view>
<view class="row">
<view class="name">支付金额</view>
<view class="dot"></view>
+4
View File
@@ -21,6 +21,7 @@
<view class="range" wx:elif="{{item.application_scope==3}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==4}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==5}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==6}}">使用范围:购药</view>
</view>
<view class="date">有效期:{{item.valid_end_time}}</view>
</view>
@@ -50,6 +51,7 @@
<view class="range" wx:elif="{{item.application_scope==3}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==4}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==5}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==6}}">使用范围:购药</view>
</view>
<!-- <view class="range" wx:if="{{item.application_scope==1}}">使用范围:全场通用</view>
<view class="range" wx:elif="{{item.application_scope==2}}">使用范围:问诊适用</view>
@@ -83,7 +85,9 @@
<view class="range" wx:elif="{{item.application_scope==3}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==4}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==5}}">使用范围:购药</view>
<view class="range" wx:elif="{{item.application_scope==6}}">使用范围:购药</view>
</view>
<!-- <view class="range" wx:if="{{item.application_scope==1}}">使用范围:全场通用</view>
<view class="range" wx:elif="{{item.application_scope==2}}">使用范围:问诊适用</view>
<view class="range" wx:elif="{{item.application_scope==3}}">使用范围:购药</view>
+1 -1
View File
@@ -66,7 +66,7 @@
<view class="row">
<view class="name">优惠金额</view>
<view class="dot" ></view>
<view class="desc price">¥{{order.discount_amount}}</view>
<view class="desc price">-¥{{order.discount_amount}}</view>
</view>
<view class="row">
<view class="name"> 支付金额</view>
+2 -1
View File
@@ -28,6 +28,7 @@ Page({
time: '',
inquiry_no: '',
amount_total: "",
discount_amount:'',
cannot_use_coupon_reason:'',
coupon_amount_total: 0,
logistics_fee: 0,
@@ -711,7 +712,7 @@ Page({
})
}
console.log(options.inquiry_mode,options.order_type)
//console.log(options.inquiry_mode,options.order_type)
},
/**
* 生命周期函数--监听页面初次渲染完成
+4
View File
@@ -42,6 +42,10 @@
<view class="desc nodiscount" wx:elif="{{order_type==3 && !inquiry_type}}">暂不可用</view>
</view>
<view class="row" wx:if="{{order_type==2 && !inquiry_type && discount_amount}}">
<view class="name">优惠金额</view>
<view class="desc nodiscount">-¥{{discount_amount}}</view>
</view>
</view>
<view class="bottom">
<view class="realprice">支付金额:<text class="price">¥{{payment_amount_total}}</text></view>