wangcz 7 лет назад
Родитель
Сommit
bdeff53347

+ 4 - 42
components/login/Login.vue

@@ -96,7 +96,7 @@
               <span class="line"></span>
               <a class="forget" id='forget' @click="goForgetPassword">忘记密码?</a>
               <span class="line"></span>
-              <a :href="`/register/enterpriseRegistration?${this.queryLink}`" class="second">免费注册</a>
+              <a :href="`/register/enterpriseRegistration${this.queryLink ? '?' + this.queryLink : ''}`" class="second">免费注册</a>
             </div>
           </div>
         </div>
@@ -123,7 +123,7 @@
             <div class="link-go">
               <a @click="changeManage" class="first">更换管理员</a>
               <span class="line"></span>
-              <a :href="`/register/enterpriseRegistration?${this.queryLink}`" class="second">免费注册</a>
+              <a :href="`/register/enterpriseRegistration${this.queryLink ? '?' + this.queryLink : ''}`" class="second">免费注册</a>
             </div>
           </div>
         </div>
@@ -145,7 +145,7 @@
             <div class="link-go" style="padding: 0 18px 12px 0; margin-top: 0;">
               <a @click="changeManage" class="first">更换管理员</a>
               <span class="line"></span>
-              <a :href="`/register/enterpriseRegistration?${this.queryLink}`" class="second">免费注册</a>
+              <a :href="`/register/enterpriseRegistration${this.queryLink ? '?' + this.queryLink : ''}`" class="second">免费注册</a>
             </div>
           </div>
         </div>
@@ -490,7 +490,7 @@
         this.baseUrl = request['baseUrl'] || ''
       },
       goForgetPassword () {
-        let url = `/reset/forgetPasswordValidationAccount?${this.queryLink}`
+        let url = `/reset/forgetPasswordValidationAccount${this.queryLink ? '?' + this.queryLink : ''}`
         document.getElementById('forget').href = url
       },
   //    获取验证码
@@ -598,14 +598,6 @@
             this.fastToLogin(flag)
           }
         }
-        // 记住密码
-        // if (this.appId === 'mall' || this.appId === 'home') {
-        //   if (this.checked) {
-        //     this.setCookie(this.login.username, this.login.password, 7)
-        //   } else {
-        //     this.clearCookie()
-        //   }
-        // }
       },
       // 短信快捷登录
       fastToLogin (flag) {
@@ -709,36 +701,6 @@
           crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
         })
       },
-      // 设置cookie
-      // setCookie (cName, cPwd, exdays) {
-      //   let exdate = new Date()
-      //   exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays)
-      //   window.document.cookie = 'userName' + '=' + cName + ';path=/;expires=' + exdate.toGMTString()
-      //   window.document.cookie = 'userPwd' + '=' + cPwd + ';path=/;expires=' + exdate.toGMTString()
-      // },
-      // 读取cookies
-      // getCookie () {
-      //   if (document.cookie.length > 0) {
-      //     let arr = document.cookie.split(';')
-      //     for (var i = 0; i < arr.length; i++) {
-      //       let arr2 = arr[i].split('=')
-      //       if (arr2[0].trim() === 'userName') {
-      //         this.login.username = arr2[1]
-      //       }
-      //       if (arr2[0].trim() === 'userPwd') {
-      //         this.login.password = arr2[1]
-      //       }
-      //       if (this.login.username && this.login.username) {
-      //         this.checked = true
-      //       }
-      //     }
-      //   }
-      // },
-      // 清除cookie
-      // clearCookie () {
-      //   this.setCookie('', '', -1)
-      // },
-      // 获取校验码
       getCheckCode () {
         this.isShowLoading = true
         if (!this.fastLogin.mobile) {

+ 1 - 1
components/register/EnterpriseRegistration.vue

@@ -598,7 +598,7 @@
       },
       // 注册
       goRegister () {
-        window.location.href = `/register/personalRegistration?${this.queryLink}`
+        window.location.href = `/register/personalRegistration${this.queryLink ? '?' + this.queryLink : ''}`
       },
 //      我同意是否被选中
       checkboxIsChecked () {

+ 1 - 1
components/register/PersonalRegistration.vue

@@ -407,7 +407,7 @@
       },
       // 注册
       goRegister () {
-        window.location.href = `/register/enterpriseRegistration?${this.queryLink}`
+        window.location.href = `/register/enterpriseRegistration${this.queryLink ? '?' + this.queryLink : ''}`
       },
 //      我同意是否被选中
       checkboxChecked () {