5.9
This commit is contained in:
@@ -51,11 +51,12 @@ Page({
|
||||
// config: response.data.config,
|
||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
||||
})
|
||||
this.getSysconfig();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
this.getSysconfig();
|
||||
|
||||
},
|
||||
getSysconfig(){
|
||||
let {inquiry_type,inquiry_mode}=this.data;
|
||||
let {inquiry_type,inquiry_mode,info}=this.data;
|
||||
api.getSysconfig({
|
||||
inquiry_type,
|
||||
inquiry_mode
|
||||
@@ -65,7 +66,14 @@ Page({
|
||||
'config': response.data
|
||||
// config: response.data.config,
|
||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
||||
})
|
||||
});
|
||||
|
||||
if(!info.work_num_day){
|
||||
|
||||
this.setData({
|
||||
'info.work_num_day':response.data.default_work_num_day
|
||||
})
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user