优化
This commit is contained in:
@@ -307,6 +307,7 @@ Page({
|
||||
},
|
||||
//新增实名认证信息
|
||||
postDoctorAuthReal(){
|
||||
|
||||
const realname = this.data.realname.trim();
|
||||
const idcard = this.data.idcard.trim();
|
||||
|
||||
@@ -333,16 +334,23 @@ Page({
|
||||
wx.showToast({title: '身份证输入有误', icon:'error'})
|
||||
return false;
|
||||
}
|
||||
|
||||
var params = {
|
||||
card_name: realname,
|
||||
card_num: idcard,
|
||||
}
|
||||
api.postDoctorAuthReal(params).then(response => {
|
||||
console.log(response);
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['kUy70xHlr7ADo4aIHiictM4Te7MSec3E5kHsYvFQu40'],
|
||||
success (res) {
|
||||
console.log(res)
|
||||
var params = {
|
||||
card_name: realname,
|
||||
card_num: idcard,
|
||||
}
|
||||
api.postDoctorAuthReal(params).then(response => {
|
||||
console.log(response);
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
onTabsChange(event) {
|
||||
console.log(`Change tab, tab-panel value is ${event.detail.value}.`);
|
||||
|
||||
Reference in New Issue
Block a user