5.17改动

This commit is contained in:
zoujiandong
2024-05-17 14:59:44 +08:00
parent c8cf0b0543
commit 0c437a60f3
5 changed files with 37 additions and 7 deletions
+9 -2
View File
@@ -9,6 +9,7 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '公益问诊设置', //导航栏 中间的标题
},
is_welfare_cooperation:null,
height: app.globalData.height,
checked: true,
showSetting:false,
@@ -41,8 +42,13 @@ Page({
sub_visible: false,
},
onLoad(){
onLoad(options){
console.log(options.is_welfare_cooperation)
if(options.is_welfare_cooperation){
this.setData({
is_welfare_cooperation:options.is_welfare_cooperation
})
}
},
onShow(){
this.getDoctorOpen()
@@ -257,6 +263,7 @@ Page({
onPickerChange(e) {
console.log(e);
const { key } = e.currentTarget.dataset;
const { value } = e.detail;
console.log('picker change:', e.detail);
+2 -2
View File
@@ -26,7 +26,7 @@
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
title="每日接诊数量" is-link
border="{{true}}"
url="/user/pages/yishi/yizhensetupprice/index"
url="/user/pages/yishi/yizhensetupprice/index?is_welfare_cooperation={{is_welfare_cooperation}}"
>
<view class="num" wx:if="{{info.work_num_day!==''}}">
{{ info.work_num_day }}
@@ -37,7 +37,7 @@
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
title="问诊单价" is-link
border="{{false}}"
url="/user/pages/yishi/yizhensetupprice/index"
url="/user/pages/yishi/yizhensetupprice/index?is_welfare_cooperation={{is_welfare_cooperation}}"
>
<view wx:if="{{info.inquiry_price}}">
<text class="price">{{ amountText }}</text>
+20 -1
View File
@@ -9,6 +9,7 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '设置价格', //导航栏 中间的标题
},
is_welfare_cooperation:null,
height: app.globalData.height,
checked: true,
open_note: "已开启,可在问诊消息中进行接诊",
@@ -39,7 +40,14 @@ Page({
},
sub_visible: false,
},
onLoad(options){
console.log(options.is_welfare_cooperation)
if(options.is_welfare_cooperation){
this.setData({
is_welfare_cooperation:options.is_welfare_cooperation
})
}
},
onShow(){
let params = {};
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
@@ -199,6 +207,17 @@ Page({
console.log(e);
const { key } = e.currentTarget.dataset;
const { value } = e.detail;
console.log(value);
if(this.data.is_welfare_cooperation==='0' && value[0] ==0){
wx.showToast({
title: `您不能设置${value}元,有疑问联系相关客服`,
icon:'none'
})
this.setData({
amountVisible:true
})
return false;
}
console.log('picker change:', e.detail);
this.setData({
[`${key}Visible`]: false,