This commit is contained in:
xuhe@fangjia.com
2018-04-10 13:54:38 +08:00
parent 4a2668bee9
commit 09feba8a75
3 changed files with 15 additions and 7 deletions
+11 -3
View File
@@ -24,7 +24,7 @@
<span class="mui-tab-label">行情</span>
</a>
<a class="mui-tab-item" id="evaluation" href="views/evaluate/evaluateList.html">
<a class="mui-tab-item" id="evaluate">
<span class="mui-icon iconfont icon-tab03"></span>
<span class="mui-tab-label">评估</span>
</a>
@@ -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',