提交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(doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
|
||||||
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
|
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
|
||||||
if(!textarea_shanchang){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){
|
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
|
wx.showToast({title: '请修改数据后再提交',icon: "none"});return
|
||||||
}
|
}
|
||||||
api.updateIntroduction({
|
// api.updateIntroduction({
|
||||||
avatar,
|
// avatar,
|
||||||
brief_introduction:textarea_jianjie,
|
// brief_introduction:textarea_jianjie,
|
||||||
be_good_at:textarea_shanchang,
|
// be_good_at:textarea_shanchang,
|
||||||
doctor_expertise
|
// doctor_expertise
|
||||||
}).then(response=>{
|
// }).then(response=>{
|
||||||
wx.showToast({
|
// wx.showToast({
|
||||||
title: '提交成功',
|
// title: '提交成功',
|
||||||
icon: "success"
|
// icon: "success"
|
||||||
})
|
// })
|
||||||
this.setData({
|
// this.setData({
|
||||||
introduction_status:2,
|
// introduction_status:2,
|
||||||
iden_auth_status_txt: "资料已提交,审核中"
|
// iden_auth_status_txt: "资料已提交,审核中"
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
addDoctorAuthIden(e){
|
addDoctorAuthIden(e){
|
||||||
console.log("addDoctorAuthIden addDoctorAuthIden")
|
console.log("addDoctorAuthIden addDoctorAuthIden")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user