Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1

This commit is contained in:
xuhe@fangjia.com
2018-03-15 14:51:19 +08:00
5 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ document.addEventListener("plusready", function() {
});
} else if (payload.type == "2") {
plus.ui.alert(title+"\n"+content,function(){
openUrl(basePath+'/message/openView?url='+payload.url);
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
});
}
} else {
@@ -59,7 +59,7 @@ document.addEventListener("plusready", function() {
});
} else if (payload.type == "2") {
plus.ui.alert(title+"\n"+content,function(){
openUrl(basePath+'/message/openView?url='+payload.url);
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
});
}
}, false);
@@ -0,0 +1,4 @@
var versionUpdate = function(){
  var localVersion = plus.runtime.version
alert(localVersion+"版本")
};
+1
View File
@@ -29,6 +29,7 @@
</nav>
<script src="js/mui.min.js"></script>
<script src="config.js"></script>
<script src="js/push-common.js"></script>
<script type="text/javascript" charset="utf-8">
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
+3 -1
View File
@@ -1479,7 +1479,9 @@
"resources": [
"yfindex.html"
],
"refer": [],
"refer": [
"start.html"
],
"priority": 0
}
},
+2
View File
@@ -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='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/updateVersion/updateVersion.js?version=${version!}"></script>
<script type="text/javascript">
var jQuery = $;
@@ -1506,6 +1507,7 @@ document.addEventListener('plusready', onPlusReady, false);
//扩展API加载完毕,现在可以正常调用扩展API
function onPlusReady(){
getPosition();
versionUpdate();
}
// 获取当前用户位置
function getPosition(){