Procházet zdrojové kódy

医生注册页面注册时增加redirectCode参数

c4az6 před 4 roky
rodič
revize
2ebe56181d

+ 1 - 1
src/views/doctor/MyProfit/bill.vue

@@ -67,7 +67,7 @@
               :key="index"
               @click="jumpToDetail(item.id,item.type)"
             >
-              <a href="#">
+              <a href="#">jumpToDetail
                 <img :src="item.sceneIcon" />
               </a>
 

+ 2 - 4
src/views/doctorRegister/doctorRegister/doctorRegister.vue

@@ -71,6 +71,7 @@ import { reqDoctorRegister, reqGetImgCode, reqSendSMS, reqVerifyCode } from '../
 export default {
   data() {
     return {
+      redirectCode: "", // 跳转值
       // 手机号
       tel: "",
       // 图片验证码值
@@ -101,7 +102,6 @@ export default {
       // 发送请求校验短信验证码
       const { data: response } = await reqVerifyCode(obj)
       if (response.success != 1) {
-        console.log("comming")
         this.getCode()
         return this.$toast(response.message)
       }
@@ -119,8 +119,6 @@ export default {
         window.sessionStorage.setItem('phone', this.tel)
         const redirectCode = this.getCookie('redirectCode')
         const token = this.getCookie('token')
-        console.log("redirectCode:", redirectCode)
-        console.log("token", token)
         // 开发环境
         const currentMode = process.env.VUE_APP_Name
         if(currentMode === '开发环境') {
@@ -150,7 +148,6 @@ export default {
         forbidClick: true   // 禁用背景点击
       })
       reqSendSMS(obj).then(res => {
-        console.log("send sms res: ", res)
         this.$toast.clear()
         if (res.data.success === 1) {
           this.$toast({
@@ -229,6 +226,7 @@ export default {
   created() {
     this.getCode()
     this.$toast('欢迎进入注册页面')
+    this.redirectCode = this.getCookie('redirectCode')
     this.id = window.sessionStorage.getItem('id')
   }
 };