Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -25,7 +25,7 @@ document.addEventListener("plusready", function() {
|
|||||||
});
|
});
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
openUrl(basePath+'/message/openView?url='+payload.url);
|
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -59,7 +59,7 @@ document.addEventListener("plusready", function() {
|
|||||||
});
|
});
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
openUrl(basePath+'/message/openView?url='+payload.url);
|
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
var versionUpdate = function(){
|
||||||
|
var localVersion = plus.runtime.version
|
||||||
|
alert(localVersion+"版本")
|
||||||
|
};
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<script src="js/mui.min.js"></script>
|
<script src="js/mui.min.js"></script>
|
||||||
<script src="config.js"></script>
|
<script src="config.js"></script>
|
||||||
|
<script src="js/push-common.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
||||||
document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
||||||
|
|||||||
@@ -1479,7 +1479,9 @@
|
|||||||
"resources": [
|
"resources": [
|
||||||
"yfindex.html"
|
"yfindex.html"
|
||||||
],
|
],
|
||||||
"refer": [],
|
"refer": [
|
||||||
|
"start.html"
|
||||||
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1475,6 +1475,7 @@ $.config = {router: false}
|
|||||||
<script type='text/javascript' src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
<script type='text/javascript' src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||||
<script type='text/javascript' src='js/city-app.js?version=${version!}' charset='utf-8'></script>
|
<script type='text/javascript' src='js/city-app.js?version=${version!}' charset='utf-8'></script>
|
||||||
<script type='text/javascript' src='js/searchDistrict-app.js?version=${version!}' charset='utf-8'></script>
|
<script type='text/javascript' src='js/searchDistrict-app.js?version=${version!}' charset='utf-8'></script>
|
||||||
|
<script type="text/javascript" src="js/updateVersion/updateVersion.js?version=${version!}"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var jQuery = $;
|
var jQuery = $;
|
||||||
@@ -1506,6 +1507,7 @@ document.addEventListener('plusready', onPlusReady, false);
|
|||||||
//扩展API加载完毕,现在可以正常调用扩展API
|
//扩展API加载完毕,现在可以正常调用扩展API
|
||||||
function onPlusReady(){
|
function onPlusReady(){
|
||||||
getPosition();
|
getPosition();
|
||||||
|
versionUpdate();
|
||||||
}
|
}
|
||||||
// 获取当前用户位置
|
// 获取当前用户位置
|
||||||
function getPosition(){
|
function getPosition(){
|
||||||
|
|||||||
Reference in New Issue
Block a user