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-04-12 10:53:29 +08:00
6 changed files with 226 additions and 33 deletions
+13 -16
View File
@@ -486,7 +486,19 @@ $.config = {router: false}
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady(){
var city = "";
getPosition();
plus.geolocation.getCurrentPosition(function(p){
//province = p.address.province;
city = p.address.city;
//region = p.address.district;
}, function(e){
},
{
provider:'baidu',
enableHighAccuracy:true,
coordsType:'bd09ll'
}
);
alert(city)
var myFocus = new Vue({
el:"#myFocus"
})
@@ -653,21 +665,6 @@ $(document).ready(function () {
function getPosition(){
plus.geolocation.getCurrentPosition(function(p){
province = p.address.province;
city = p.address.city;
region = p.address.district;
}, function(e){
},
{
provider:'baidu',
enableHighAccuracy:true,
coordsType:'bd09ll'
}
);
}
//$(document).on("click",".open-about01", function () {
// markFocus();
// $.popup(".popup-about01");