diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index d87198f..3ea3402 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -24,7 +24,7 @@ 行情 - + 评估 @@ -48,12 +48,20 @@ localStorage.removeItem("user_token"); localStorage.removeItem("user_token_add_time"); } - + var evaluateMenu="" + if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { + //没有登录 + evaluateMenu = 'views/house/add_noData.html'; + }else{ + //登录成功 + evaluateMenu = 'views/evaluate/evaluateList.html'; + } + document.getElementById("evaluate").setAttribute("href", evaluateMenu); document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index'); //document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index'); //mui初始化 mui.init(); - var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', 'views/evaluate/evaluateList.html', 'views/user/userInfo.html']; + var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', evaluateMenu, 'views/user/userInfo.html']; var subpage_style = { top: '0', bottom: '50px', diff --git a/fangija-zsyf/views/evaluate/evaluateList.html b/fangija-zsyf/views/evaluate/evaluateList.html index 84286cf..7c86037 100644 --- a/fangija-zsyf/views/evaluate/evaluateList.html +++ b/fangija-zsyf/views/evaluate/evaluateList.html @@ -36,9 +36,9 @@