From 09feba8a75f1990a26aaa58c0e5bda4b5e7857eb Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Tue, 10 Apr 2018 13:54:38 +0800 Subject: [PATCH] aa --- fangija-zsyf/main.html | 14 +++++++++++--- fangija-zsyf/views/evaluate/evaluateList.html | 4 ++-- fangija-zsyf/views/house/add_noData.html | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) 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 @@
-
diff --git a/fangija-zsyf/views/house/add_noData.html b/fangija-zsyf/views/house/add_noData.html index 4bdcc9b..c5b62fe 100644 --- a/fangija-zsyf/views/house/add_noData.html +++ b/fangija-zsyf/views/house/add_noData.html @@ -20,9 +20,9 @@
-