提交bug简介
This commit is contained in:
parent
bc94e1dafe
commit
a3262a5bc0
@ -906,25 +906,26 @@ Component({
|
||||
if(doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
|
||||
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
|
||||
if(!textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return};
|
||||
|
||||
console.log(textarea_jianjie,old_brief_introduction)
|
||||
console.log(textarea_shanchang, old_be_good_at )
|
||||
if(avatar==old_avatar && textarea_jianjie==old_brief_introduction &&textarea_shanchang== old_be_good_at && JSON.stringify(doctor_expertise)==old_doctor_expertise){
|
||||
wx.showToast({title: '请修改数据后再提交',icon: "none"});return
|
||||
}
|
||||
api.updateIntroduction({
|
||||
avatar,
|
||||
brief_introduction:textarea_jianjie,
|
||||
be_good_at:textarea_shanchang,
|
||||
doctor_expertise
|
||||
}).then(response=>{
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: "success"
|
||||
})
|
||||
this.setData({
|
||||
introduction_status:2,
|
||||
iden_auth_status_txt: "资料已提交,审核中"
|
||||
})
|
||||
})
|
||||
// api.updateIntroduction({
|
||||
// avatar,
|
||||
// brief_introduction:textarea_jianjie,
|
||||
// be_good_at:textarea_shanchang,
|
||||
// doctor_expertise
|
||||
// }).then(response=>{
|
||||
// wx.showToast({
|
||||
// title: '提交成功',
|
||||
// icon: "success"
|
||||
// })
|
||||
// this.setData({
|
||||
// introduction_status:2,
|
||||
// iden_auth_status_txt: "资料已提交,审核中"
|
||||
// })
|
||||
// })
|
||||
},
|
||||
addDoctorAuthIden(e){
|
||||
console.log("addDoctorAuthIden addDoctorAuthIden")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user