5.17改动
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user