启动页修改

This commit is contained in:
尹吉欢
2018-04-25 13:44:26 +08:00
parent 95bff5b72e
commit c8fd98c89e
4 changed files with 70 additions and 28 deletions
+24
View File
@@ -88,6 +88,7 @@
plus.navigator.setFullscreen(false);
} else {
loadStartPage();
//显示启动导航
mui.openWindow({
id: 'guide',
@@ -184,6 +185,29 @@
}
});
// 加载启动页信息
function loadStartPage() {
$.ajax({
type: "GET",
url:BASE_PATH+"/rest/page/startPage",
dataType:'json',
async : false,
success: function(resData) {
if (resData.status) {
var data = resData.data;
if (data.imgUrl != null) {
localStorage.setItem("startPageImgUrl", data.imgUrl);
}
if (data.url != null) {
localStorage.setItem("startPageClickUrl", data.url);
}
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
}
})
}
</script>
</body>