@@ -91,7 +91,12 @@ function goCustomerUrl (conf) {
function checkCustomerService () {
// 登录判断
if (!loginflag) {
- return openLoginDig()
+ if (location.pathname === '/') {
+ // 首页登陆跳转工作桌面
+ return openLoginDig(true)
+ } else {
+ return openLoginDig()
+ }
}
goCustomerUrl()
@@ -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
})
@@ -338,7 +338,7 @@
$('.reg-node').click(function(){
location.href = '/phone/register'
- checkLogin()
+ // checkLogin()
function checkLogin () {
clearInterval(loginTimer)
loginTimer = setInterval(function () {