调整js加载 再 plusready后

This commit is contained in:
raoyanhui
2018-04-18 13:22:24 +08:00
parent 90d6f0213d
commit 7218041c66
+11 -1
View File
@@ -164,6 +164,7 @@ function addManagement(id, houseStatus, liveStatus){
console.log(error); console.log(error);
}); });
} }
//查询房产评估列表AJAX请求 //查询房产评估列表AJAX请求
function selectEvaluateList(){ function selectEvaluateList(){
//先清空列表 //先清空列表
@@ -268,10 +269,13 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
return htmlContent; return htmlContent;
} }
//立即评估
function openaddWindow(){ function openaddWindow(){
clicked('/views/house/add.html',true,false,{},{type:1},function(){ clicked('/views/house/add.html',true,false,{},{type:1},function(){
}) })
} }
//评估报告详情
function openReportWindow(id){ function openReportWindow(id){
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id}) clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
} }
@@ -286,7 +290,13 @@ function checkIsLogin(){
selectEvaluateList(); selectEvaluateList();
} }
} }
checkIsLogin()
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady(){
checkIsLogin();
}
</script> </script>
</body> </body>