|
@@ -193,10 +193,20 @@ export class InquiryHumanComponent implements OnInit {
|
|
|
message: '已预约,不要重复预约',
|
|
|
buttons: ['好的'],
|
|
|
});
|
|
|
+ let alert2 = await this.alertController.create({
|
|
|
+ header: '温馨提示',
|
|
|
+ subHeader: 'Tips',
|
|
|
+ message: '您的个人信息不完整,请先完善个人信息(电话,姓名)',
|
|
|
+ buttons: ['好的'],
|
|
|
+ });
|
|
|
if(this.num == 0){
|
|
|
await alert1.present()
|
|
|
return
|
|
|
}
|
|
|
+ if(!this.currentUser?.data["phone"] || !this.currentUser?.data["realname"]){
|
|
|
+ await alert2.present()
|
|
|
+ return
|
|
|
+ }
|
|
|
if(this.num == 1){
|
|
|
console.log("立即预约我的医生")
|
|
|
let appointment = new CloudObject('appointment')
|