Procházet zdrojové kódy

修改医生注册页面

c4az6 před 4 roky
rodič
revize
26d8bb98b7

+ 3 - 1
src/views/doctorRegister/doctorRegister/doctorRegister.vue

@@ -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')
   }