|
@@ -71,6 +71,7 @@ import { reqDoctorRegister, reqGetImgCode, reqSendSMS, reqVerifyCode } from '../
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ redirectCode: '', // 从cookie中获取的跳转code值
|
|
|
// 手机号
|
|
|
tel: "",
|
|
|
// 图片验证码值
|
|
@@ -111,7 +112,7 @@ export default {
|
|
|
duration: 30000,
|
|
|
forbidClick: true
|
|
|
})
|
|
|
- const { data: result } = await reqDoctorRegister({ phone: this.tel })
|
|
|
+ const { data: result } = await reqDoctorRegister({ phone: this.tel, redirectCode:this.redirectCode })
|
|
|
if (result.success !== 1) return this.$toast(result.message)
|
|
|
this.$toast(result.message)
|
|
|
setTimeout(() => {
|
|
@@ -228,6 +229,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getCode()
|
|
|
+ this.redirectCode = this.getCookie('redirectCode')
|
|
|
this.$toast('欢迎进入注册页面')
|
|
|
this.id = window.sessionStorage.getItem('id')
|
|
|
}
|