设置
This commit is contained in:
parent
249e3a26c4
commit
a81098cafc
@ -18,6 +18,7 @@ Page({
|
|||||||
inquiry_mode: 1,
|
inquiry_mode: 1,
|
||||||
multi_point_status:'',
|
multi_point_status:'',
|
||||||
config_setting:{},
|
config_setting:{},
|
||||||
|
items:[],
|
||||||
info:{
|
info:{
|
||||||
is_open: false,
|
is_open: false,
|
||||||
inquiry_price: 0,
|
inquiry_price: 0,
|
||||||
@ -170,9 +171,18 @@ Page({
|
|||||||
let check = this.checkPrice(inquiry_price);
|
let check = this.checkPrice(inquiry_price);
|
||||||
if(!check) return;
|
if(!check) return;
|
||||||
};
|
};
|
||||||
|
if(this.data.active==1 && detail){
|
||||||
|
if(this.data.items.length==0){
|
||||||
|
wx.showToast({
|
||||||
|
title: '请先添加服务内容',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
if(this.data.active==2 && detail){
|
if(this.data.active==2 && detail){
|
||||||
let {data}=await api.getDoctorInquiryConfig({inquiry_type:1,inquiry_mode:1});
|
let {data}=await api.getDoctorInquiryConfig({inquiry_type:1,inquiry_mode:1});
|
||||||
if(data.inquiry_price!=''){
|
if(data.inquiry_price==''){
|
||||||
this.setData({
|
this.setData({
|
||||||
showOpenTuWen:true
|
showOpenTuWen:true
|
||||||
})
|
})
|
||||||
@ -348,7 +358,7 @@ Page({
|
|||||||
api.getFollow().then(response=>{
|
api.getFollow().then(response=>{
|
||||||
if(response.code==200){
|
if(response.code==200){
|
||||||
if(response.data){
|
if(response.data){
|
||||||
let {monthly_frequency,service_rounds,items}=response.data
|
let {monthly_frequency,service_rounds}=response.data
|
||||||
this.setData({
|
this.setData({
|
||||||
monthly_frequency,
|
monthly_frequency,
|
||||||
service_rounds
|
service_rounds
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user