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

Conflicts:
	fangija-zsyf/views/house/houseDetail.html
This commit is contained in:
2018-04-12 17:08:04 +08:00
20 changed files with 367 additions and 224 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ axios.defaults.headers.post['Content-Type'] = 'application/json';
// 添加请求拦截器
axios.interceptors.request.use(function (config) {
var token = localStorage.getItem("user_token");
config.headers.Authorization = token
config.headers.Authorization = token;
return config;
}, function (error) {
return Promise.reject(error);
+1 -1
View File
@@ -74,7 +74,7 @@ var mapConfig = {
/* 打开银行、餐饮等tab大类*/
$('.bar,#aroundLink').on('click', 'a', function () {
var $this = $(this);
//$this.addClass('current').siblings().removeClass('current');
$this.addClass('active').siblings().removeClass('active');
var id = $this.attr('id');
that.hidden_all_mark()
that.openTypeWrap(id);
+2 -7
View File
@@ -33,7 +33,7 @@ function addCollect(){
$(".collection02").show();
$.toast("随时掌握小区动态");
}
plus.webview.getWebviewById('/views/user/userInfo.html').reload();
})
.catch(function (error) {
console.log(error);
@@ -65,7 +65,7 @@ function removeCollect(){
$(".collection01").show();
$.toast("取消关注");
}
plus.webview.getWebviewById('/views/user/userInfo.html').reload();
})
.catch(function (error) {
console.log(error);
@@ -714,21 +714,16 @@ function loadRentTrends(city, region, name){
}
}).then(function (response) {
var re = response.data.data
var categories = new Array();
var series = new Array();
var m = re.times;
var pm = re.distMap
var rooms = re.rooms;
if(m && rooms.length>0){
for(var i=0;i<m.length;i++){
categories.push(m[i]);
}
for(var k in rooms){
var room = rooms[k]
var distM = pm[room];
+7 -7
View File
@@ -14,13 +14,13 @@ function savePageLog() {
var device = plus.device.uuid;
var model = plus.device.model;
plus.geolocation.getCurrentPosition(function(p){
province = p.address.province;
city = p.address.city;
region = p.address.district;
lng = p.coords.longitude;
lat = p.coords.latitude;
address = p.address.street;
doSavePageLog({page:page, lng:lng, lat:lat, province:province, city:city, region:region, address:address, device:device, model:model});
baidu_province = p.address.province;
baidu_city = p.address.city;
baidu_region = p.address.district;
baidu_lng = p.coords.longitude;
baidu_lat = p.coords.latitude;
baidu_address = p.address.street;
doSavePageLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model});
}, function(e){
doSavePageLog({page:page, device:device, model:model});
},
+1 -1
View File
@@ -55,7 +55,7 @@ function addEstate(number, lastIndex) {
}
}
html+= '<li>'+
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'&region='+this.region+'&name='+this.name+'\',true)" class="item-content">'+
'<a onclick="gotoDistrictDetail(\''+this.city+'\',\''+this.region+'\',\''+this.name+'\')" class="item-content">'+
'<div class="item-inner">'+
'<div class="item-title-row">'+
'<div class="item-title">'+this.name+'</div>'+
+1 -1
View File
@@ -79,7 +79,7 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap,
tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2);
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
}
html += "<li><a href='#' class='item-content'>";
html += '<li onclick="gotoHouseDetail(\''+result.id+'\')"><a href="#" class="item-content">';
html += "<div class='item-inner'><div class='item-title-row'>";
html += "<div class='item-title'>"+result.name+" <em>"+tempTotalPrice+"万</em><span class='tag'><small>"+result.liveStatus+"</small></span></div>";
html += "</div><div class='item-subtitle'>";