设置
This commit is contained in:
parent
249e3a26c4
commit
a81098cafc
@ -18,6 +18,7 @@ Page({
|
||||
inquiry_mode: 1,
|
||||
multi_point_status:'',
|
||||
config_setting:{},
|
||||
items:[],
|
||||
info:{
|
||||
is_open: false,
|
||||
inquiry_price: 0,
|
||||
@ -170,9 +171,18 @@ Page({
|
||||
let check = this.checkPrice(inquiry_price);
|
||||
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){
|
||||
let {data}=await api.getDoctorInquiryConfig({inquiry_type:1,inquiry_mode:1});
|
||||
if(data.inquiry_price!=''){
|
||||
if(data.inquiry_price==''){
|
||||
this.setData({
|
||||
showOpenTuWen:true
|
||||
})
|
||||
@ -348,7 +358,7 @@ Page({
|
||||
api.getFollow().then(response=>{
|
||||
if(response.code==200){
|
||||
if(response.data){
|
||||
let {monthly_frequency,service_rounds,items}=response.data
|
||||
let {monthly_frequency,service_rounds}=response.data
|
||||
this.setData({
|
||||
monthly_frequency,
|
||||
service_rounds
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user