Merge branch 'YOUFANGAPP1.1.5' of http://gitlab.fangjia.com/dev0/youfang-app into xh-YOUFANGAPP1.1.5

This commit is contained in:
xuhe@fangjia.com
2018-07-09 13:29:40 +08:00
4 changed files with 31 additions and 41 deletions
+4
View File
@@ -4,6 +4,10 @@ function add_imgage(imageId,adPosition,device){
}).then(function(response){
if(response.data.status){
var h = response.data.data;
if (h == "" || h == null) {
return;
}
console.log(h);
if(typeof(h.imgUrl)!="undefined"&&h.imgUrl!=null&&$.trim(h.imgUrl)!=""){
$("#"+imageId).attr("src",h.imgUrl);
}
+5
View File
@@ -164,6 +164,9 @@ document.addEventListener("plusready", function() {
} else if (payload.type == "2") {
plus.nativeUI.confirm(content, function(e){
if (e.index==0) {
if (payload.url.startWith("http")) {
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
} else {
var url = payload.url;
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
var openUrl = url.substring(0, sindex);
@@ -179,6 +182,8 @@ document.addEventListener("plusready", function() {
}
}
clicked(openUrl,true,false,{},jsonData)
}
}
}, title, ["查看","忽略"] );
+3 -22
View File
@@ -100,29 +100,11 @@
plus.navigator.setFullscreen(false);
} else {
plus.geolocation.getCurrentPosition(
function(p){
try {
city = p.address.city;
if(city){
city = formatBaiduCity(city);
}
} catch(e){
city = "上海";
var city = localStorage.getItem("init_city");
if (city == null || city == "") {
city = "全国";
}
loadStartPage(city);
}, function(e){
city = "上海";
loadStartPage(city);
},
{
provider:'baidu',
enableHighAccuracy:true,
coordsType:'bd09ll'
}
);
//显示启动导航
mui.openWindow({
id: 'guide',
@@ -334,7 +316,6 @@
};
} else {
var imei = plus.device.imei;
alert(imei);
data = {
"account_id":8008196,
"user_action_set_id":1106980650,
+4 -4
View File
@@ -1741,13 +1741,13 @@ function addFocus(city){
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){
reloadMyFocus()
reloadCityIncreaseRanking()
reloadCityPotentialRanking()
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
}
/*reloadMyFocus()
reloadCityIncreaseRanking()
reloadCityPotentialRanking()*/
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
}