Răsfoiți Sursa

feat: 首页客服登陆校验

cuiyalong 1 an în urmă
părinte
comite
5c34a8011a

+ 6 - 1
src/web/staticres/public-pc/js/pc-bottom.js

@@ -91,7 +91,12 @@ function goCustomerUrl (conf) {
 function checkCustomerService () {
   // 登录判断
   if (!loginflag) {
-    return openLoginDig()
+    if (location.pathname === '/') {
+      // 首页登陆跳转工作桌面
+      return openLoginDig(true)
+    } else {
+      return openLoginDig()
+    }
   }
   goCustomerUrl()
 }

+ 1 - 1
src/web/templates/pc/supsearch.html

@@ -4088,7 +4088,7 @@ function checkTagDisabled () {
               // return toastFn('请登录', 3000)
             }
             if (r.error_code == 0) {
-              if (r.data && r.data.length) {
+              if (r.data && r.data.length > 0) {
                 r.data.forEach(function(v){
                   v.flag = false
                 })

+ 1 - 1
src/web/templates/pc/tags/detail.html

@@ -338,7 +338,7 @@
     $('.reg-node').click(function(){
       location.href = '/phone/register'
     })
-    checkLogin()
+    // checkLogin()
     function checkLogin () {
       clearInterval(loginTimer)
       loginTimer = setInterval(function () {