启动页修改
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user