|
|
|
|
@ -24,7 +24,7 @@ Page({
@@ -24,7 +24,7 @@ Page({
|
|
|
|
|
back: options.back, |
|
|
|
|
}) |
|
|
|
|
app.waitLogin().then(() => { |
|
|
|
|
app.mpBehavior({ doctor:true, PageName: 'PG_DoctorLogin' }) |
|
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorLogin' }) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getCode() { |
|
|
|
|
@ -73,7 +73,7 @@ Page({
@@ -73,7 +73,7 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleCheck() { |
|
|
|
|
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorPrivacyAgree' }) |
|
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorPrivacyAgree' }) |
|
|
|
|
this.setData({ |
|
|
|
|
check1: !this.data.check1, |
|
|
|
|
}) |
|
|
|
|
@ -91,7 +91,7 @@ Page({
@@ -91,7 +91,7 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
async handleSubmit() { |
|
|
|
|
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorLogin' }) |
|
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorLogin' }) |
|
|
|
|
await this.handleDocRule() |
|
|
|
|
const { mobile, code } = this.data |
|
|
|
|
if (!mobile) { |
|
|
|
|
@ -132,11 +132,11 @@ Page({
@@ -132,11 +132,11 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleNoDoc() { |
|
|
|
|
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorQuickLogin' }) |
|
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorQuickLogin' }) |
|
|
|
|
this.handleDocRule() |
|
|
|
|
}, |
|
|
|
|
handleWxSubmit(e: WechatMiniprogram.CustomEvent) { |
|
|
|
|
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorQuickLogin' }) |
|
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorQuickLogin' }) |
|
|
|
|
const { iv, encryptedData } = e.detail |
|
|
|
|
if (iv && encryptedData) { |
|
|
|
|
wx.ajax({ |
|
|
|
|
@ -191,7 +191,7 @@ Page({
@@ -191,7 +191,7 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleShowPopup() { |
|
|
|
|
app.mpBehavior({ doctor:true, PageName: 'PG_DoctorLoginFail' }) |
|
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorLoginFail' }) |
|
|
|
|
this.setData({ |
|
|
|
|
popupShow: true, |
|
|
|
|
popupType: 'popup4', |
|
|
|
|
|