Compare commits
41 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 21f3206a5f | |||
| 0a7de92bc1 | |||
| b80f77aec6 | |||
| f85b04b826 | |||
| a6a05afc48 | |||
| 724e03b2e2 | |||
| 86c056ad7f | |||
| 7821edafed | |||
| ad6518c703 | |||
| d931c74b71 | |||
| 1e281a9670 | |||
| f6b8c6d596 | |||
| a2deb33dc2 | |||
| 065fb48135 | |||
| acc807494d | |||
| 753557cc23 | |||
| 06568e8da1 | |||
| 0e37e13826 | |||
| e85ab89c8c | |||
| 4c929c36a3 | |||
| 75e84f7389 | |||
| 2862d1aea1 | |||
| 187b49f8f4 | |||
| 164685b649 | |||
| 92f4566601 | |||
| 2e6b85dfbc | |||
| 1172d416c9 | |||
| 7429a749ce | |||
| 1c54afadd2 | |||
| 2eddeedb12 | |||
| 16d69c2a91 | |||
| 6d480b5eb1 | |||
| 8d7acded9a | |||
| 5995727d7e | |||
| 41d136b368 | |||
| f001714527 | |||
| 9a9438f8be | |||
| 719c953093 | |||
| ce2666e3ba | |||
| 899a893931 | |||
| 7e83509550 |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -1,9 +1,10 @@
|
||||
/**服务端地址**/
|
||||
//var BASE_PATH = "https://youfang.fangjia.com";
|
||||
var BASE_PATH = "https://youfang.fangjia.com";
|
||||
//var BASE_PATH = "http://192.168.10.128:8084";
|
||||
//var BASE_PATH = "http://192.168.10.164:8084";
|
||||
//var BASE_PATH = "http://192.168.10.53:8084";
|
||||
var BASE_PATH = "http://192.168.10.47:8086";
|
||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
||||
var BASE_PATH = "http://192.168.9.60:8084";
|
||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||
//var BASE_PATH = "http://192.168.10.170:8084";
|
||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||
@@ -26,4 +27,7 @@ var EVALUATE_LIST=10;// "有房房产评估列表-广告图"
|
||||
var ESTATE_MARKET_COUNTRY=11;// "有房房产行情全国-广告图"
|
||||
var ESTATE_MARKET_SHANGHAI=12;// "有房房产行情上海-广告图"
|
||||
var ESTATE_DETAIL=13;// "有房房产详情-广告图"
|
||||
var DISTRICT_DETAIL_PRICE=14;// "有房小区详情-广告图"
|
||||
var DISTRICT_DETAIL_PRICE=14;// "有房小区详情-广告图"
|
||||
|
||||
//渠道
|
||||
var YOUFANG_CHANNEL = "fangjia";
|
||||
|
||||
@@ -491,7 +491,7 @@ input::-webkit-input-placeholder{
|
||||
.cardInfo01{color:#333;}
|
||||
.cardInfo01 > img{width:100%;}
|
||||
.cardInfo01 span{font-size:0.55rem;color:#B5B5B5;}
|
||||
.cardInfo01 .card-header{padding:0.5rem 0;font-size:0.85rem;}
|
||||
.cardInfo01 .card-header{padding:0.5rem 0;font-size:0.9rem;}
|
||||
.cardInfo01 .card-content-inner{padding:0.5rem 0;}
|
||||
.cardInfo01 .card-footer{padding:0.5rem 0;}
|
||||
.cardInfo01 .card-footer span label{font-size:0.55rem;line-height:0.8rem;display:inline-block;vertical-align:text-top;}
|
||||
@@ -515,7 +515,7 @@ input::-webkit-input-placeholder{
|
||||
.cardInfo02 .item-content{padding:0;}
|
||||
.cardInfo02 .item-title{font-size:0.9rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;}
|
||||
.cardInfo02 .item-title span{text-align:right;}
|
||||
.cardInfo02 .item-subtitle font{font-size:0.7rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;margin:0.2rem 0;}
|
||||
.cardInfo02 .item-subtitle font{font-size:0.7rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;margin:0.3rem 0;}
|
||||
.cardInfo02 .item-subtitle span{font-size:0.55rem;color:#B5B5B5;max-width:100%;}
|
||||
.cardInfo02 .item-subtitle small{font-size:0.7rem;color:#999;}
|
||||
.cardInfo02 .item-subtitle em{font-size:0.7rem;color:#EB5F34;}
|
||||
@@ -539,8 +539,18 @@ input::-webkit-input-placeholder{
|
||||
.cardInfo03 .card-content-inner div.vote02 label{color:#8698F0;text-align:left;}
|
||||
.cardInfo03 .card-content-inner em{font-size:1rem;color:#F18D00;text-align:center;line-height:45px;position:absolute;left:48%;}
|
||||
|
||||
.cardInfo01 .cardInfoPlaceholder{width:100%;height:180px;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:20%;border:solid 1px #e7e7e7;}
|
||||
.cardInfo01 .cardInfoPlaceholder{width:100%;height:180px;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:15%;border:solid 1px #e7e7e7;}
|
||||
.cardInfo02 .cardInfoPlaceholder{width:6.5rem;height:5.2rem;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:30%;border:solid 1px #e7e7e7;}
|
||||
.cardLoan{box-shadow:0 4px 10px 0 rgba(211,214,217,0.70);border-radius:0.25rem;margin:0;}
|
||||
.cardLoan .card-content-inner p{text-align:center;line-height:1rem;margin:0.25rem 0;}
|
||||
.cardLoan .card-content-inner p label{font-size:0.7rem;color:#333;}
|
||||
.cardLoan .card-content-inner p small{font-size:0.6rem;color:#999;}
|
||||
.cardLoan .card-content-inner p em{font-size:1.25rem;color:#EA122C;font-weight:bold;margin-right:0.1rem;}
|
||||
.cardLoan .card-content-inner p font{font-size:0.7rem;color:#EA122C;}
|
||||
.cardLoan .card-content-inner p span{font-size:0.65rem;color:#333;}
|
||||
.cardLoan .card-content-inner p a{width:4.5rem;margin:0 auto;margin-top:0.5rem;}
|
||||
.icon-loan01{width:18px;height:15px;background:url(../images/icon-loan01a.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
|
||||
.icon-loan02{width:15px;height:15px;background:url(../images/icon-loan02a.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
|
||||
|
||||
.icon-eye-white{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
||||
.icon-eye-grey{width:0.85rem;height:0.6rem;background:url(../images/icon-eye-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
||||
@@ -559,12 +569,10 @@ input::-webkit-input-placeholder{
|
||||
/* 资讯 */
|
||||
.content-padded{margin:0.75rem;}
|
||||
.content-padded h1{font-size:1.1rem;line-height:1.6rem;letter-spacing:0.11rem;}
|
||||
.content-padded p{font-size:0.8rem;color:#333;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;}
|
||||
.content-padded p{font-size:0.8rem;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;}
|
||||
.content-padded p span{margin-left:1rem;}
|
||||
.content-padded p small{font-size:0.65rem;color:#999;line-height:0.9rem;letter-spacing:0.07rem;float:left;}
|
||||
.content-padded img{width:100%;}
|
||||
.content-padded img.icon{width:auto;}
|
||||
.content-padded ol{padding-left:0.75rem;}
|
||||
|
||||
.adBoxApp{width:80%;margin:0 auto;margin-top:1rem;margin-bottom:1.5rem;overflow:hidden;}
|
||||
.adBoxApp img{float:left;width:5.6rem;height:4.7rem;margin-right:1rem;}
|
||||
@@ -824,6 +832,7 @@ input::-webkit-input-placeholder{
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal02{background:url(../images/icon-personal02.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal03{background:url(../images/icon-personal03.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal04{background:url(../images/icon-personal04.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal05{background:url(../images/icon-personal05.png) no-repeat center center;background-size:100%;}
|
||||
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-evaluation01{background:url(../images/icon-evaluation01.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-evaluation02{background:url(../images/icon-evaluation02.png) no-repeat center center;background-size:100%;}
|
||||
@@ -870,21 +879,23 @@ input::-webkit-input-placeholder{
|
||||
.topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;}
|
||||
|
||||
/* 广告 */
|
||||
.ad{display:block;border-bottom:solid 0.5rem #f3f3f3;}
|
||||
.ad{display:block;}
|
||||
.ad img{width:100%;}
|
||||
|
||||
/* 图表 */
|
||||
.chart{width:100%;height:250px;}
|
||||
.chart tspan{font-size:0.6rem;text-shadow:none;}
|
||||
.chart01Box{height:270px;}
|
||||
#chart01{height:270px;}
|
||||
#chart01a{height:270px;}
|
||||
.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;margin-left:-0.5rem;}
|
||||
.icon-chart01a{width:1.1rem;height:1rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||
.icon-chart01{width:1.1rem;height:1rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||
|
||||
.icon-chart01a-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01a_common.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||
.icon-chart01-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01_common.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||
.chart01Box,#chart01a,#chart01{height:260px;}
|
||||
/*
|
||||
.chart01Box{height:260px;position:relative;}
|
||||
#chart01a{height:260px;position:absolute;}
|
||||
#chart01{height:260px;position:absolute;}
|
||||
*/
|
||||
.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;}
|
||||
.icon-chart01a-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01a-no.png) no-repeat center center;background-size:55%;padding:0 0.8rem;}
|
||||
.icon-chart01a{width:1.1rem;height:1rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:55%;padding:0 0.8rem;}
|
||||
.icon-chart01-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01-no.png) no-repeat center center;background-size:55%;padding:0 0.8rem;}
|
||||
.icon-chart01{width:1.1rem;height:1rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:55%;padding:0 0.8rem;}
|
||||
|
||||
.scoreBox{height:130px;position:relative;}
|
||||
.score{width:250px;height:250px;margin:0 auto;margin-top:1rem;}
|
||||
@@ -1033,7 +1044,7 @@ input::-webkit-input-placeholder{
|
||||
.cardRankingBox01 .cardRanking{width:33.33%;border:none;border-radius:0;margin:0;}
|
||||
.cardRankingBox01 .cardRanking:last-child{border-right:none;}
|
||||
.cardRankingBox01 .cardRanking .card-header:first-child{border-right:none;padding:0;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;}
|
||||
.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;color:#333;}
|
||||
.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;}
|
||||
.cardRankingBox01 .cardRanking .card-header em{font-size:0.85rem;color:#F18D00;margin-right:0.2rem;}
|
||||
.cardRankingBox01 .cardRanking .card-content-inner{color:#999;border-right:solid 1px #e7e7e7;}
|
||||
.cardRankingBox01 .cardRanking .card-footer{padding:0;border-right:solid 1px #e7e7e7;}
|
||||
@@ -1190,6 +1201,18 @@ input::-webkit-input-placeholder{
|
||||
.legendBox p label i{width:0.4rem;height:0.4rem;border-radius:100%;display:inline-block;margin-right:0.3rem;}
|
||||
.legendBox p span{font-size:0.75rem;display:inline-block;width:50%;}
|
||||
|
||||
/* 大额信用卡 */
|
||||
.creditCardBox{padding:0 0.75rem;}
|
||||
.creditCardBox > img{width:4.51rem;height:1.3rem;margin-top:0.75rem;}
|
||||
.creditCardBox > div > img{margin:0 auto;}
|
||||
.creditCardBox > div p{text-align:center;margin-top:1rem;margin-bottom:1rem;}
|
||||
.creditCardBox > div p .icon-creditCard01{width:1.1rem;height:0.9rem;background:url(../images/icon-creditCard01.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
|
||||
.creditCardBox > div p .icon-creditCard02{width:0.98rem;height:0.98rem;background:url(../images/icon-creditCard02.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
|
||||
.creditCardBox > div p em{font-size:0.9rem;color:#F18D00;display:inline-block;vertical-align:middle;}
|
||||
.creditCardBox > p{text-align:center;margin-top:1rem;margin-bottom:0;}
|
||||
.creditCardBox > p em{font-size:0.8rem;}
|
||||
.creditCardBox > p label{font-size:1rem;color:#fff;background:#F18D00;border-radius:0.25rem;margin:0 1.1rem;padding:0.2rem 0.5rem;}
|
||||
|
||||
/* 分享 */
|
||||
.shareBox{height:66px;padding-left:0;padding-right:0.5rem;border-top:solid 1px #e7e7e7;bottom:0;}
|
||||
.shareBox ul:before{height:0;}
|
||||
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 920 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 856 B |
|
After Width: | Height: | Size: 1020 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 17 KiB |
@@ -4,8 +4,12 @@ function add_imgage(imageId,adPosition,device){
|
||||
}).then(function(response){
|
||||
if(response.data.status){
|
||||
var h = response.data.data;
|
||||
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
|
||||
$("#"+imageId).attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||
if (h == "" || h == null) {
|
||||
return;
|
||||
}
|
||||
console.log(h);
|
||||
if(typeof(h.imgUrl)!="undefined"&&h.imgUrl!=null&&$.trim(h.imgUrl)!=""){
|
||||
$("#"+imageId).attr("src",h.imgUrl);
|
||||
}
|
||||
if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){
|
||||
var uid = localStorage.getItem("user_id");
|
||||
|
||||
@@ -84,13 +84,13 @@ w.clicked=function(id,wa,ns,ws, params,callback,callbackParams){
|
||||
// return null;
|
||||
// }
|
||||
if(w.plus){
|
||||
var startTime = new Date().getTime();
|
||||
wa&&(waiting=plus.nativeUI.showWaiting());
|
||||
ws=ws||{};
|
||||
ws.scrollIndicator||(ws.scrollIndicator='none');
|
||||
ws.scalable||(ws.scalable=false);
|
||||
var pre='';//'http://192.168.1.178:8080/h5/';
|
||||
openw=plus.webview.create(pre+id,id,ws,params);
|
||||
|
||||
ns||openw.addEventListener('loaded',function(){//页面加载完成后才显示
|
||||
// setTimeout(function(){//延后显示可避免低端机上动画时白屏
|
||||
openw.show(as);
|
||||
@@ -103,6 +103,8 @@ w.clicked=function(id,wa,ns,ws, params,callback,callbackParams){
|
||||
callback(callbackParams);
|
||||
}
|
||||
openw=null;
|
||||
var endTime = new Date().getTime();
|
||||
savePageLog(endTime - startTime, id);
|
||||
},false);
|
||||
return openw;
|
||||
}else{
|
||||
@@ -110,6 +112,45 @@ w.clicked=function(id,wa,ns,ws, params,callback,callbackParams){
|
||||
}
|
||||
return null;
|
||||
};
|
||||
/**
|
||||
* 记录页面访问日志
|
||||
*/
|
||||
function savePageLog(residenceTime, page) {
|
||||
var device = plus.device.uuid;
|
||||
var model = plus.device.model;
|
||||
|
||||
var pushClientId = "";
|
||||
var info = plus.push.getClientInfo();
|
||||
if (info != null) {
|
||||
pushClientId = info.clientid;
|
||||
}
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
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, pushClientId:pushClientId,channel:YOUFANG_CHANNEL,residenceTime:residenceTime});
|
||||
}, function(e){
|
||||
doSavePageLog({page:page, device:device, model:model, pushClientId:pushClientId,channel:YOUFANG_CHANNEL,residenceTime:residenceTime});
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function doSavePageLog(data) {
|
||||
axios.post("/rest/log/save", data).then(function (response) {
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
w.openDoc=function(t,c){
|
||||
var d=plus.webview.getWebviewById('document');
|
||||
if(d){
|
||||
|
||||
@@ -802,7 +802,7 @@ function showLineChart(times, datas){
|
||||
color: '#666'
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].name + ' <br/>' + "均价:"+params[0].value + '元/㎡';
|
||||
var res = params[0].name + ' <br/>' + "均价:"+(typeof(params[0].value)=="undefined"?"暂无":(params[0].value+ '元/㎡')) ;
|
||||
return res;
|
||||
},
|
||||
position: function (pos, params, el, elRect, size) {
|
||||
|
||||
@@ -3,6 +3,8 @@ var APPLY_LOAN = "applyLoan";
|
||||
|
||||
//如果是抵押贷款时候,需要上层页面传入houseId
|
||||
var houseId;
|
||||
var loanPrice;
|
||||
var loanType;
|
||||
var _params = {};
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
@@ -10,6 +12,15 @@ document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
houseId= self.houseId;
|
||||
loanPrice= self.loanPrice;
|
||||
loanType= self.loanType;
|
||||
if(loanType==1){
|
||||
$(".checkbox i").removeClass("current");
|
||||
$("#loanTypeDiv1").find("i").addClass("current");
|
||||
}else if(loanType==2){
|
||||
$(".checkbox i").removeClass("current");
|
||||
$("#loanTypeDiv2").find("i").addClass("current");
|
||||
}
|
||||
$('#input_city').val(self.city);
|
||||
$('#input_phoneNumber').val(self.mobile);
|
||||
}
|
||||
@@ -93,6 +104,10 @@ $("#next_btn").on("click", function () {
|
||||
$.toast("请输入申请金额");
|
||||
return false;
|
||||
}
|
||||
if(loanPrice!=0 && loanPrice<Number(applyMoney)){
|
||||
$.toast("申请金额不能大于"+loanPrice+"万");
|
||||
return false;
|
||||
}
|
||||
if(mortgage == undefined || mortgage == ""){
|
||||
$.toast("请选择贷款类型");
|
||||
return false;
|
||||
|
||||
@@ -3,48 +3,8 @@
|
||||
* @author yinjihuan
|
||||
*/
|
||||
document.addEventListener('plusready', function() {
|
||||
savePageLog()
|
||||
}, false);
|
||||
|
||||
/**
|
||||
* 记录页面访问日志
|
||||
*/
|
||||
function savePageLog() {
|
||||
var page = document.getElementsByTagName("title")[0].innerHTML;
|
||||
var device = plus.device.uuid;
|
||||
var model = plus.device.model;
|
||||
|
||||
var pushClientId = "";
|
||||
var info = plus.push.getClientInfo();
|
||||
if (info != null) {
|
||||
pushClientId = info.clientid;
|
||||
}
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
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, pushClientId:pushClientId});
|
||||
}, function(e){
|
||||
doSavePageLog({page:page, device:device, model:model, pushClientId:pushClientId});
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function doSavePageLog(data) {
|
||||
axios.post("/rest/log/save", data).then(function (response) {
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -61,9 +21,9 @@ function saveBehaviorLog(event,dataMap) {
|
||||
baidu_lng = p.coords.longitude;
|
||||
baidu_lat = p.coords.latitude;
|
||||
baidu_address = p.address.street;
|
||||
doSaveBehaviorLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model,event:event,businessData:dataMap});
|
||||
doSaveBehaviorLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model,event:event,businessData:dataMap,channel:YOUFANG_CHANNEL});
|
||||
}, function(e){
|
||||
doSaveBehaviorLog({page:page, device:device, model:model,event:event,businessData:dataMap});
|
||||
doSaveBehaviorLog({page:page, device:device, model:model,event:event,businessData:dataMap,channel:YOUFANG_CHANNEL});
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
!function(a){"use strict";function b(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c}function c(a,b){return a<<b|a>>>32-b}function d(a,d,e,f,g,h){return b(c(b(b(d,a),b(f,h)),g),e)}function e(a,b,c,e,f,g,h){return d(b&c|~b&e,a,b,f,g,h)}function f(a,b,c,e,f,g,h){return d(b&e|c&~e,a,b,f,g,h)}function g(a,b,c,e,f,g,h){return d(b^c^e,a,b,f,g,h)}function h(a,b,c,e,f,g,h){return d(c^(b|~e),a,b,f,g,h)}function i(a,c){a[c>>5]|=128<<c%32,a[(c+64>>>9<<4)+14]=c;var d,i,j,k,l,m=1732584193,n=-271733879,o=-1732584194,p=271733878;for(d=0;d<a.length;d+=16)i=m,j=n,k=o,l=p,m=e(m,n,o,p,a[d],7,-680876936),p=e(p,m,n,o,a[d+1],12,-389564586),o=e(o,p,m,n,a[d+2],17,606105819),n=e(n,o,p,m,a[d+3],22,-1044525330),m=e(m,n,o,p,a[d+4],7,-176418897),p=e(p,m,n,o,a[d+5],12,1200080426),o=e(o,p,m,n,a[d+6],17,-1473231341),n=e(n,o,p,m,a[d+7],22,-45705983),m=e(m,n,o,p,a[d+8],7,1770035416),p=e(p,m,n,o,a[d+9],12,-1958414417),o=e(o,p,m,n,a[d+10],17,-42063),n=e(n,o,p,m,a[d+11],22,-1990404162),m=e(m,n,o,p,a[d+12],7,1804603682),p=e(p,m,n,o,a[d+13],12,-40341101),o=e(o,p,m,n,a[d+14],17,-1502002290),n=e(n,o,p,m,a[d+15],22,1236535329),m=f(m,n,o,p,a[d+1],5,-165796510),p=f(p,m,n,o,a[d+6],9,-1069501632),o=f(o,p,m,n,a[d+11],14,643717713),n=f(n,o,p,m,a[d],20,-373897302),m=f(m,n,o,p,a[d+5],5,-701558691),p=f(p,m,n,o,a[d+10],9,38016083),o=f(o,p,m,n,a[d+15],14,-660478335),n=f(n,o,p,m,a[d+4],20,-405537848),m=f(m,n,o,p,a[d+9],5,568446438),p=f(p,m,n,o,a[d+14],9,-1019803690),o=f(o,p,m,n,a[d+3],14,-187363961),n=f(n,o,p,m,a[d+8],20,1163531501),m=f(m,n,o,p,a[d+13],5,-1444681467),p=f(p,m,n,o,a[d+2],9,-51403784),o=f(o,p,m,n,a[d+7],14,1735328473),n=f(n,o,p,m,a[d+12],20,-1926607734),m=g(m,n,o,p,a[d+5],4,-378558),p=g(p,m,n,o,a[d+8],11,-2022574463),o=g(o,p,m,n,a[d+11],16,1839030562),n=g(n,o,p,m,a[d+14],23,-35309556),m=g(m,n,o,p,a[d+1],4,-1530992060),p=g(p,m,n,o,a[d+4],11,1272893353),o=g(o,p,m,n,a[d+7],16,-155497632),n=g(n,o,p,m,a[d+10],23,-1094730640),m=g(m,n,o,p,a[d+13],4,681279174),p=g(p,m,n,o,a[d],11,-358537222),o=g(o,p,m,n,a[d+3],16,-722521979),n=g(n,o,p,m,a[d+6],23,76029189),m=g(m,n,o,p,a[d+9],4,-640364487),p=g(p,m,n,o,a[d+12],11,-421815835),o=g(o,p,m,n,a[d+15],16,530742520),n=g(n,o,p,m,a[d+2],23,-995338651),m=h(m,n,o,p,a[d],6,-198630844),p=h(p,m,n,o,a[d+7],10,1126891415),o=h(o,p,m,n,a[d+14],15,-1416354905),n=h(n,o,p,m,a[d+5],21,-57434055),m=h(m,n,o,p,a[d+12],6,1700485571),p=h(p,m,n,o,a[d+3],10,-1894986606),o=h(o,p,m,n,a[d+10],15,-1051523),n=h(n,o,p,m,a[d+1],21,-2054922799),m=h(m,n,o,p,a[d+8],6,1873313359),p=h(p,m,n,o,a[d+15],10,-30611744),o=h(o,p,m,n,a[d+6],15,-1560198380),n=h(n,o,p,m,a[d+13],21,1309151649),m=h(m,n,o,p,a[d+4],6,-145523070),p=h(p,m,n,o,a[d+11],10,-1120210379),o=h(o,p,m,n,a[d+2],15,718787259),n=h(n,o,p,m,a[d+9],21,-343485551),m=b(m,i),n=b(n,j),o=b(o,k),p=b(p,l);return[m,n,o,p]}function j(a){var b,c="";for(b=0;b<32*a.length;b+=8)c+=String.fromCharCode(a[b>>5]>>>b%32&255);return c}function k(a){var b,c=[];for(c[(a.length>>2)-1]=void 0,b=0;b<c.length;b+=1)c[b]=0;for(b=0;b<8*a.length;b+=8)c[b>>5]|=(255&a.charCodeAt(b/8))<<b%32;return c}function l(a){return j(i(k(a),8*a.length))}function m(a,b){var c,d,e=k(a),f=[],g=[];for(f[15]=g[15]=void 0,e.length>16&&(e=i(e,8*a.length)),c=0;16>c;c+=1)f[c]=909522486^e[c],g[c]=1549556828^e[c];return d=i(f.concat(k(b)),512+8*b.length),j(i(g.concat(d),640))}function n(a){var b,c,d="0123456789abcdef",e="";for(c=0;c<a.length;c+=1)b=a.charCodeAt(c),e+=d.charAt(b>>>4&15)+d.charAt(15&b);return e}function o(a){return unescape(encodeURIComponent(a))}function p(a){return l(o(a))}function q(a){return n(p(a))}function r(a,b){return m(o(a),o(b))}function s(a,b){return n(r(a,b))}function t(a,b,c){return b?c?r(b,a):s(b,a):c?p(a):q(a)}"function"==typeof define&&define.amd?define(function(){return t}):a.md5=t}(this);
|
||||
@@ -32,59 +32,43 @@ document.addEventListener("plusready", function() {
|
||||
if (payload.type == "0") {
|
||||
plus.ui.alert(title+"\n"+content);
|
||||
} else if (payload.type == "1") {
|
||||
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||
}else{
|
||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||
}
|
||||
var targetTab = payload.url+".html";
|
||||
var defaultTab = document.getElementById(targetTab);
|
||||
//模拟首页点击
|
||||
mui.trigger(defaultTab, 'tap');
|
||||
//切换选项卡高亮
|
||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||
if (defaultTab != current) {
|
||||
current.classList.remove('mui-active');
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
|
||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||
}else{
|
||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||
}
|
||||
var targetTab = payload.url+".html";
|
||||
var defaultTab = document.getElementById(targetTab);
|
||||
//模拟首页点击
|
||||
mui.trigger(defaultTab, 'tap');
|
||||
//切换选项卡高亮
|
||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||
if (defaultTab != current) {
|
||||
current.classList.remove('mui-active');
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
|
||||
} else if (payload.type == "2") {
|
||||
if (payload.url.startWith("http")) {
|
||||
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
|
||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||
} else {
|
||||
// 处理打开app中的二级页面,一级页面在type=1中已经处理了,如果有http的地址就是打开外部页面
|
||||
// 否则就是打开app内部页面
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
var url = payload.url;
|
||||
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||
var openUrl = url.substring(0, sindex);
|
||||
var paramStr = url.substring(sindex+1);
|
||||
var jsonData = {};
|
||||
var parray = paramStr.split('&')
|
||||
for(var i=0;i<parray.length;i++){
|
||||
var subArray = parray[i].split('=')
|
||||
if(parray[i] != ""){
|
||||
if(subArray.length > 0) {
|
||||
jsonData[subArray[0]] = subArray[1];
|
||||
}
|
||||
}
|
||||
var url = payload.url;
|
||||
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||
var openUrl = url.substring(0, sindex);
|
||||
var paramStr = url.substring(sindex+1);
|
||||
var jsonData = {};
|
||||
var parray = paramStr.split('&')
|
||||
for(var i=0;i<parray.length;i++){
|
||||
var subArray = parray[i].split('=')
|
||||
if(parray[i] != ""){
|
||||
if(subArray.length > 0) {
|
||||
jsonData[subArray[0]] = subArray[1];
|
||||
}
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
}
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -92,57 +76,43 @@ document.addEventListener("plusready", function() {
|
||||
if (payload.type == "0") {
|
||||
plus.ui.alert(content);
|
||||
} else if (payload.type == "1") {
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||
}else{
|
||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||
}
|
||||
var targetTab = payload.url+".html";
|
||||
var defaultTab = document.getElementById(targetTab);
|
||||
//模拟首页点击
|
||||
mui.trigger(defaultTab, 'tap');
|
||||
//切换选项卡高亮
|
||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||
if (defaultTab != current) {
|
||||
current.classList.remove('mui-active');
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||
}else{
|
||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||
}
|
||||
var targetTab = payload.url+".html";
|
||||
var defaultTab = document.getElementById(targetTab);
|
||||
//模拟首页点击
|
||||
mui.trigger(defaultTab, 'tap');
|
||||
//切换选项卡高亮
|
||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||
if (defaultTab != current) {
|
||||
current.classList.remove('mui-active');
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
|
||||
} else if (payload.type == "2") {
|
||||
if (payload.url.startWith("http")) {
|
||||
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
|
||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||
} else {
|
||||
// 处理打开app中的二级页面,一级页面在type=1中已经处理了,如果有http的地址就是打开外部页面
|
||||
// 否则就是打开app内部页面
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
var url = payload.url;
|
||||
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||
var openUrl = url.substring(0, sindex);
|
||||
var paramStr = url.substring(sindex+1);
|
||||
var jsonData = {};
|
||||
var parray = paramStr.split('&')
|
||||
for(var i=0;i<parray.length;i++){
|
||||
var subArray = parray[i].split('=')
|
||||
if(parray[i] != ""){
|
||||
if(subArray.length > 0) {
|
||||
jsonData[subArray[0]] = subArray[1];
|
||||
}
|
||||
}
|
||||
var url = payload.url;
|
||||
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||
var openUrl = url.substring(0, sindex);
|
||||
var paramStr = url.substring(sindex+1);
|
||||
var jsonData = {};
|
||||
var parray = paramStr.split('&')
|
||||
for(var i=0;i<parray.length;i++){
|
||||
var subArray = parray[i].split('=')
|
||||
if(parray[i] != ""){
|
||||
if(subArray.length > 0) {
|
||||
jsonData[subArray[0]] = subArray[1];
|
||||
}
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
}
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
|
||||
}
|
||||
|
||||
@@ -194,21 +164,26 @@ document.addEventListener("plusready", function() {
|
||||
} else if (payload.type == "2") {
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
var url = payload.url;
|
||||
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||
var openUrl = url.substring(0, sindex);
|
||||
var paramStr = url.substring(sindex+1);
|
||||
var jsonData = {};
|
||||
var parray = paramStr.split('&')
|
||||
for(var i=0;i<parray.length;i++){
|
||||
var subArray = parray[i].split('=')
|
||||
if(parray[i] != ""){
|
||||
if(subArray.length > 0) {
|
||||
jsonData[subArray[0]] = subArray[1];
|
||||
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);
|
||||
var paramStr = url.substring(sindex+1);
|
||||
var jsonData = {};
|
||||
var parray = paramStr.split('&')
|
||||
for(var i=0;i<parray.length;i++){
|
||||
var subArray = parray[i].split('=')
|
||||
if(parray[i] != ""){
|
||||
if(subArray.length > 0) {
|
||||
jsonData[subArray[0]] = subArray[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
}
|
||||
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
|
||||
|
||||
@@ -116,7 +116,9 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap,
|
||||
}else{
|
||||
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||
}
|
||||
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
|
||||
}
|
||||
html += "</div></div></a>";
|
||||
|
||||
//调整最新的等级显示(其它等级不显示start)
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/push-common.js"></script>
|
||||
<script type="text/javascript" src="js/zepto.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="js/md5.min.js" ></script>
|
||||
<script type="text/javascript" src="js/axios.min.js" ></script>
|
||||
<script type="text/javascript" src="js/axiosPlugin.js" ></script>
|
||||
<script type="text/javascript" src="../../js/city.js" ></script>
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
@@ -96,8 +100,11 @@
|
||||
plus.navigator.setFullscreen(false);
|
||||
|
||||
} else {
|
||||
loadStartPage();
|
||||
|
||||
var city = localStorage.getItem("init_city");
|
||||
if (city == null || city == "") {
|
||||
city = "全国";
|
||||
}
|
||||
loadStartPage(city);
|
||||
//显示启动导航
|
||||
mui.openWindow({
|
||||
id: 'guide',
|
||||
@@ -128,11 +135,17 @@
|
||||
self.append(sub);
|
||||
}
|
||||
|
||||
// 提交用户激活数据到腾讯广点通
|
||||
if(localStorage.getItem("postDataToGuangDianTong") == null){
|
||||
localStorage.setItem("postDataToGuangDianTong", "1");
|
||||
postDataToGuangDianTong();
|
||||
}
|
||||
});
|
||||
//当前激活选项
|
||||
var activeTab = subpages[0];
|
||||
var title = document.getElementById("title");
|
||||
//选项卡点击事件
|
||||
//选项卡点击事件
|
||||
var pageInitTime = new Date().getTime();
|
||||
mui('.mui-bar-tab').on('tap', 'a', function(e) {
|
||||
var self = plus.webview.currentWebview();
|
||||
plus.nativeUI.showWaiting();
|
||||
@@ -160,16 +173,58 @@
|
||||
}
|
||||
//隐藏当前;
|
||||
plus.webview.hide(activeTab);
|
||||
// 记录主页面的停留时间
|
||||
var outPageTime = new Date().getTime();
|
||||
savePageLog(outPageTime - pageInitTime, activeTab);
|
||||
pageInitTime = new Date().getTime();
|
||||
//更改当前活跃的选项卡
|
||||
activeTab = targetTab;
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
/**
|
||||
* 记录页面访问日志
|
||||
*/
|
||||
function savePageLog(residenceTime, page) {
|
||||
var device = plus.device.uuid;
|
||||
var model = plus.device.model;
|
||||
|
||||
var pushClientId = "";
|
||||
var info = plus.push.getClientInfo();
|
||||
if (info != null) {
|
||||
pushClientId = info.clientid;
|
||||
}
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
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, pushClientId:pushClientId,channel:YOUFANG_CHANNEL,residenceTime:residenceTime});
|
||||
}, function(e){
|
||||
doSavePageLog({page:page, device:device, model:model, pushClientId:pushClientId,channel:YOUFANG_CHANNEL,residenceTime:residenceTime});
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function doSavePageLog(data) {
|
||||
axios.post("/rest/log/save", data).then(function (response) {
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
// 加载启动页信息
|
||||
function loadStartPage() {
|
||||
function loadStartPage(city) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url:BASE_PATH+"/rest/page/startPage",
|
||||
url:BASE_PATH+"/rest/page/startPage?city="+city,
|
||||
dataType:'json',
|
||||
async : false,
|
||||
success: function(resData) {
|
||||
@@ -239,6 +294,49 @@
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
});
|
||||
|
||||
// 提交数据到广点通
|
||||
function postDataToGuangDianTong() {
|
||||
var data;
|
||||
var osName = plus.os.name;
|
||||
if(osName == "iOS" ) {
|
||||
var localplayer = plus.ios.newObject("ASIdentifierManager");
|
||||
var idfa = localplayer.plusGetAttribute("advertisingIdentifier").plusGetAttribute("UUIDString");
|
||||
data = {
|
||||
"account_id":8008196,
|
||||
"user_action_set_id":1106901323,
|
||||
"actions":[
|
||||
{
|
||||
"action_type":"ACTIVATE_APP",
|
||||
"user_id":{
|
||||
"hash_idfa":md5(idfa)
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
} else {
|
||||
var imei = plus.device.imei;
|
||||
data = {
|
||||
"account_id":8008196,
|
||||
"user_action_set_id":1106980650,
|
||||
"actions":[
|
||||
{
|
||||
"action_type":"ACTIVATE_APP",
|
||||
"user_id":{
|
||||
"hash_imei":md5(imei)
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
console.log(JSON.stringify(data));
|
||||
axios.post("/oauth/postData", data).then(function (response) {
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/
|
||||
"name": "有房",/*应用名称,程序桌面图标名称*/
|
||||
"version": {
|
||||
"name": "1.1.15",/*应用版本名称*/
|
||||
"code": "20113"
|
||||
"name": "1.1.19",/*应用版本名称*/
|
||||
"code": "20115"
|
||||
},
|
||||
"description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/
|
||||
"icons": {
|
||||
@@ -327,7 +327,7 @@
|
||||
"splash": false,
|
||||
"push": false,
|
||||
"spot": false
|
||||
}
|
||||
},"adid":"126990310005"
|
||||
},
|
||||
"dependencies": {
|
||||
"pages": {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div class="page page-current">
|
||||
<div class="content contentStart">
|
||||
<a class="time" @click="skip()">跳过 <span id="time">5</span></a>
|
||||
<a class="time" @click="skip()">跳过 <span id="time">3</span></a>
|
||||
<img :src="imgUrl" class="startImg" @click="openView" onload="imgLoad()">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -293,9 +293,9 @@ function addSubstitution(sr, hs, house){
|
||||
}
|
||||
|
||||
if(initPrice < soufu_min){
|
||||
s +=",资金缺口约为"+((soufu_min-initPrice)-(soufu_max-initPrice))+"万";
|
||||
s +=",资金缺口约为"+Math.abs(Math.round(((soufu_min-initPrice)-(soufu_max-initPrice))*100)/100)+"万";
|
||||
}else if(initPrice > soufu_min && initPrice < soufu_max){
|
||||
s += ",资金缺口约为"+(soufu_max-initPrice)+"万";
|
||||
s += ",资金缺口约为"+Math.abs(Math.round((soufu_max-initPrice)*100)/100)+"万";
|
||||
}else if(initPrice > soufu_max){
|
||||
s += "。";
|
||||
}
|
||||
|
||||
@@ -82,12 +82,30 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="content-block priceRecovery" id="price_feedback" v-bind:style="{display:isShow}">
|
||||
<p><label>估的准吗?</label></p>
|
||||
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||
<div class="row">
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(1,$event)">高了</a></div>
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
||||
<div class="topic" id="house_loan">
|
||||
<div class="topicContent row">
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan01"></i><label>房抵贷</label></p>
|
||||
<p id="loanDiv1"><small>最高可贷额度</small></p>
|
||||
<p id="loanDiv2"><em id="loanPrice">{{loan_price}}</em><font>万</font></p>
|
||||
<p><span>月利率低至0.6%</span><br><span id="textStr1">最快三天放款</span></p>
|
||||
<p><a onclick="gotoLoanApply(1)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan02"></i><label>信用贷</label></p>
|
||||
<p><small>最高可贷额度</small></p>
|
||||
<p><em>50</em><font>万</font></p>
|
||||
<p><span>月利率0.42%起</span><br><span>最长5年</span></p>
|
||||
<p><a onclick="gotoLoanApply(2)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list mb05" id="addToMyHouse">
|
||||
@@ -105,7 +123,16 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="ad bb" href="#"><img id="img"></a>
|
||||
<div class="content-block priceRecovery" id="price_feedback" v-bind:style="{display:isShow}">
|
||||
<p><label>估的准吗?</label></p>
|
||||
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||
<div class="row">
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(1,$event)">高了</a></div>
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<a class="ad bb" href="#"><img id="img"></a>-->
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
@@ -160,6 +187,7 @@ $.config = {router: false}
|
||||
var shareId='';
|
||||
var picUrl = '_www/images/default_share.png';
|
||||
var hid = "";
|
||||
var oriCity;
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
@@ -170,6 +198,13 @@ $.config = {router: false}
|
||||
shareUrl = shareUrl+"hid="+hid;
|
||||
sharehrefTitle = "小区评估报告";
|
||||
|
||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
$('#house_loan').show();
|
||||
}else{
|
||||
$('#house_loan').hide();
|
||||
}
|
||||
|
||||
var house_info = new Vue({
|
||||
el:'#house_info',
|
||||
data:{
|
||||
@@ -178,6 +213,13 @@ $.config = {router: false}
|
||||
house_room_num:""
|
||||
}
|
||||
})
|
||||
var house_loan = new Vue({
|
||||
el:'#house_loan',
|
||||
data:{
|
||||
loan_price:""
|
||||
}
|
||||
})
|
||||
|
||||
var house_price = new Vue({
|
||||
el:"#house_price",
|
||||
data:{
|
||||
@@ -254,14 +296,28 @@ $.config = {router: false}
|
||||
house_info.name = h.name
|
||||
sharehrefTitle=h.name+"评估报告"
|
||||
house_info.city_region = h.city+"-"+h.region
|
||||
oriCity = h.city;
|
||||
house_info.house_room_num = (h.houseRoomNum==null||h.houseRoomNum=="")?"暂无":h.houseRoomNum;
|
||||
// house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
||||
if(h.totalPrice==0){
|
||||
house_price.total_price = "暂无";
|
||||
$("#loanDiv1").hide();
|
||||
$("#loanDiv2").hide();
|
||||
$("#textStr1").text("最快三天放款");
|
||||
}else{
|
||||
house_price.total_price = (h.totalPrice/10000).toFixed(2)
|
||||
house_price.w = "万"
|
||||
$("#loanDiv1").show();
|
||||
$("#loanDiv2").show();
|
||||
house_loan.loan_price = ((h.totalPrice/10000)*0.7).toFixed(0);
|
||||
if(house_loan.loan_price>=200){
|
||||
$("#textStr1").text("超长年限30年");
|
||||
}else{
|
||||
$("#textStr1").text("最快三天放款");
|
||||
}
|
||||
}
|
||||
|
||||
//alert(house_price.loanPrice)
|
||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
|
||||
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
||||
if(h.oneMonthUpDownRange<0){
|
||||
@@ -561,6 +617,23 @@ function openaddWindow(){
|
||||
})
|
||||
}
|
||||
|
||||
function gotoLoanApply(type){
|
||||
var eventType = "loanClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=hid;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
//最大贷款限额
|
||||
var loanPrice = 0;
|
||||
//贷款类型 0-无 1-房抵贷 2-信用贷
|
||||
var loanType = type;
|
||||
if(type == 1){
|
||||
loanPrice = $("#loanPrice").text();
|
||||
}else if(type == 2){
|
||||
loanPrice = 50;
|
||||
}
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: oriCity, mobile: "",loanPrice:loanPrice,loanType:loanType},function(){})
|
||||
}
|
||||
|
||||
function share(){
|
||||
var eventType = "shareEvaluateClick";
|
||||
var dataMap = {};
|
||||
|
||||
@@ -1856,7 +1856,7 @@ function formatTime(time){
|
||||
//判断是否登录
|
||||
//var loginFlag=false;
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
if(localStorage.getItem("user_token") == 'null' || localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
clicked('/views/user/codeSms.html',true,false,{},{},function(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
.topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;}
|
||||
.list-block ul:before{height:0;}
|
||||
.list-block ul:after{height:0;}
|
||||
.list-block.media-list ul:after{height:1px;}
|
||||
.list-block.media-list:first-child ul:after{height:1px;}
|
||||
.list-block .item-inner{padding-top:0;padding-bottom:0;min-height:1.8rem;}
|
||||
.list-block .item-inner:after{height:0;}
|
||||
.districtMap + .list-block.media-list span{line-height:1.2rem;}
|
||||
@@ -102,15 +102,42 @@
|
||||
<i class="icon icon-evaluation03"></i>
|
||||
<span>我要置换</span>
|
||||
</div>
|
||||
<div onclick="gotoLoanApply()" id="gotoLoanApply" style="display: none;">
|
||||
<div onclick="gotoLoanApply(0)" id="gotoLoanApply" style="display: none;">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>我要贷款</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="loanDiv">
|
||||
<div class="topicContent row">
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan01"></i><label>房抵贷</label></p>
|
||||
<p id="loanDiv1"><small>最高可贷额度</small></p>
|
||||
<p id="loanDiv2"><em id="loanPrice">{{loanPrice}}</em><font>万</font></p>
|
||||
<p><span>月利率低至0.6%</span><br><span id="textStr1">最快三天放款</span></p>
|
||||
<p><a onclick="gotoLoanApply(1)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan02"></i><label>信用贷</label></p>
|
||||
<p><small>最高可贷额度</small></p>
|
||||
<p><em>50</em><font>万</font></p>
|
||||
<p><span>月利率0.42%起</span><br><span>最长5年</span></p>
|
||||
<p><a onclick="gotoLoanApply(2)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="ad bb" href="#"><img id="img"></a>
|
||||
<!--<a class="ad bb" href="#"><img id="img"></a>-->
|
||||
<div class="topic rentBox dn">
|
||||
<div class="topicContent" style="padding:0.5rem 0;">
|
||||
<div class="list-block dataList">
|
||||
@@ -335,6 +362,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
|
||||
<script>
|
||||
@@ -381,8 +409,10 @@ function onPlusReady(){
|
||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
$('#gotoLoanApply').show();
|
||||
$('#loanDiv').show();
|
||||
}else{
|
||||
$('#gotoLoanApply').hide();
|
||||
$('#loanDiv').hide();
|
||||
}
|
||||
init();
|
||||
var device = plus.device.uuid;
|
||||
@@ -402,6 +432,7 @@ var baseInfo = new Vue({
|
||||
liveStatus:"",
|
||||
estatetype:"",
|
||||
totalPrice:"",
|
||||
loanPrice:"",
|
||||
price:"",
|
||||
totalScore:"",
|
||||
index:"",
|
||||
@@ -487,8 +518,19 @@ function init(){
|
||||
baseInfo.totalPrice=houseInfo.totalPrice;
|
||||
if(houseInfo.totalPrice==0){
|
||||
baseInfo.totalPrice = "暂无";
|
||||
$("#loanDiv1").hide();
|
||||
$("#loanDiv2").hide();
|
||||
$("#textStr1").text("最快三天放款");
|
||||
}else{
|
||||
$("#loanDiv1").show();
|
||||
$("#loanDiv2").show();
|
||||
baseInfo.totalPrice = (houseInfo.totalPrice/10000).toFixed(2)
|
||||
baseInfo.loanPrice = ((houseInfo.totalPrice/10000)*0.7).toFixed(0);
|
||||
if(baseInfo.loanPrice>=200){
|
||||
$("#textStr1").text("超长年限30年");
|
||||
}else{
|
||||
$("#textStr1").text("最快三天放款");
|
||||
}
|
||||
}
|
||||
baseInfo.price=houseInfo.price;
|
||||
baseInfo.totalScore=houseInfo.totalScore;
|
||||
@@ -634,13 +676,21 @@ $("#tabRentDiv").on("click", function () {
|
||||
function openNewView(viewHtml) {
|
||||
clicked(viewHtml,true,false,{},{city:oriCity,region:oriRegion,name:oriName})
|
||||
}
|
||||
function gotoLoanApply(){
|
||||
function gotoLoanApply(type){
|
||||
var eventType = "loanClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=houseId;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
||||
//最大贷款限额
|
||||
var loanPrice = 0;
|
||||
//贷款类型 0-无 1-房抵贷 2-信用贷
|
||||
var loanType = type;
|
||||
if(type == 1){
|
||||
loanPrice = $("#loanPrice").text();
|
||||
}else if(type == 2){
|
||||
loanPrice = 50;
|
||||
}
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: "",loanPrice:loanPrice,loanType:loanType},function(){})
|
||||
}
|
||||
function gotoRentManager(){
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -375,7 +375,9 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
}else{
|
||||
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||
}
|
||||
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
|
||||
}
|
||||
html += "</div></div></a>";
|
||||
|
||||
//调整最新的等级显示(其它等级不显示start)
|
||||
|
||||
@@ -93,13 +93,13 @@
|
||||
<div class="item-after">
|
||||
<div class="textAlignLeft" style="overflow:hidden;">
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<div class="item-media" id="loanTypeDiv1">
|
||||
<i class="icon icon-form-checkbox" value="1"></i>
|
||||
<label>房抵贷</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="label-checkbox item-content checkbox" style="margin-left:0.8rem;">
|
||||
<div class="item-media">
|
||||
<div class="item-media" id="loanTypeDiv2">
|
||||
<i class="icon icon-form-checkbox" value="0"></i>
|
||||
<label>信用贷</label>
|
||||
</div>
|
||||
|
||||
@@ -57,9 +57,9 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script type="text/javascript" src="../../js/loan/loanInfo.js" ></script>
|
||||
|
||||
@@ -355,13 +355,20 @@ function addItems(number, lastIndex) {
|
||||
content = content.substr(0,250)+"...";
|
||||
}
|
||||
}
|
||||
|
||||
var reply = "";
|
||||
if(vo.replyStatus==1){//对回复已回复
|
||||
reply = "<div class='item-title-row'>"+
|
||||
"<div class='item-title'><span style='border-left:solid 2px #F18D00;padding-left:0.4rem;'>作者</span></div>"+
|
||||
"</div>"+
|
||||
"<div class='item-text'>"+vo.commentReply+"</div>";
|
||||
}
|
||||
html = html + "<div class='item-after'><span>"+timeString+"</span></div>"+
|
||||
"</div>"+
|
||||
"<div class='item-text'>"+content+"</div>"+
|
||||
reply+
|
||||
"</div>"+
|
||||
"</a>"+
|
||||
"</li>";
|
||||
"</li>";
|
||||
}
|
||||
|
||||
// 添加新条目
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
</div>
|
||||
|
||||
<a class="ad bb" href="#"><img id="img"></a>
|
||||
|
||||
|
||||
<div id="baseInfo" class="list-block">
|
||||
<base-info-component></base-info-component>
|
||||
</div>
|
||||
|
||||
@@ -84,6 +84,9 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js" ></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script>
|
||||
document.addEventListener('plusready', function() {
|
||||
|
||||
@@ -83,11 +83,11 @@ $.config = {router: false}
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js" ></script>
|
||||
<script type="text/javascript">
|
||||
new Vue({
|
||||
@@ -157,9 +157,9 @@ mui.plusReady(function() {
|
||||
axios.get("/rest/ad/position",{params:{position : 7}}).then(function (response) {
|
||||
var data = response.data.data;
|
||||
if (data) {
|
||||
document.getElementById("img").setAttribute("src", BASE_PATH+"/img/"+data.imgId);
|
||||
document.getElementById("img").setAttribute("src", data.imgUrl);
|
||||
document.getElementById("img").addEventListener("longtap", function(event) {
|
||||
download(BASE_PATH+"/img/"+data.imgId);
|
||||
download(data.imgUrl);
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -126,7 +126,7 @@ $(".check").on("click", function () {
|
||||
|
||||
|
||||
function openView() {
|
||||
clicked(BASE_PATH + '/user/agreement',true)
|
||||
clicked('/views/setting/agreement.html',true);
|
||||
}
|
||||
|
||||
/* 防止软键盘弹出所引起的定位问题 */
|
||||
|
||||
@@ -541,8 +541,8 @@ function loadToolList (){
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{position:0}}).then(function(response){
|
||||
var city_map = localStorage.getItem("origial_city");
|
||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{city:city_map,position:0}}).then(function(response){
|
||||
toolList.merchantTools = response.data.data.list;
|
||||
toolList.userId = response.data.data.uid;
|
||||
if(response.data.data.list.length>0){
|
||||
|
||||
@@ -1297,7 +1297,6 @@ function getPosition(){
|
||||
city = "上海";
|
||||
$("#input_city").text(city);
|
||||
initRegionSelect(city);
|
||||
localStorage.setItem("init_city", city);
|
||||
//initBaseInfo(city,"","",0,0);
|
||||
$("#ShangHaiDiv").show();
|
||||
$("#otherCityDiv").hide();
|
||||
@@ -1318,6 +1317,8 @@ function getPosition(){
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
localStorage.setItem("init_city", city);
|
||||
localStorage.setItem("origial_city", city);
|
||||
/*}
|
||||
city = "嘉兴";
|
||||
province = "浙江";
|
||||
@@ -2324,6 +2325,8 @@ $("body").delegate(".popup-about01 .cityGPS", "click", function () {
|
||||
});
|
||||
|
||||
function changeCity(cityStr){
|
||||
localStorage.removeItem("init_city");
|
||||
localStorage.setItem("init_city", cityStr);
|
||||
axios.get("/rest/index/isHaveNews", {
|
||||
params: {
|
||||
city: cityStr
|
||||
@@ -2914,15 +2917,23 @@ function openUrlNew(adUrl, id, type) {
|
||||
dataMap["type"]=type;
|
||||
dataMap["newId"]=id;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
|
||||
if(type=='广告'){
|
||||
axios.get("/rest/news/addAdClickCount",{params:{adid:id}}).then(function(response){
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
}else{
|
||||
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
|
||||
if(response.data.code==200){
|
||||
|
||||
}
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
clicked('views/webview_embed.html', true,false,{},{url:adUrl})
|
||||
}
|
||||
|
||||