Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 9.0 KiB |
@@ -0,0 +1,127 @@
|
|||||||
|
//短信验证类型
|
||||||
|
var APPLY_LOAN = "applyLoan";
|
||||||
|
|
||||||
|
//如果是抵押贷款时候,需要上层页面传入houseId
|
||||||
|
var houseId;
|
||||||
|
var _params = {};
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
houseId= self.houseId;
|
||||||
|
$('#input_city').val(self.city);
|
||||||
|
$('#input_phoneNumber').val(self.mobile);
|
||||||
|
}
|
||||||
|
|
||||||
|
function sendLoanCode(){
|
||||||
|
var mobile = $("#input_phoneNumber").val();
|
||||||
|
if(checkPhoneNum(mobile)){
|
||||||
|
timer.start();
|
||||||
|
axios.post(BASE_PATH+"/rest/user/sendMobileCode", {mobile: mobile, type: APPLY_LOAN})
|
||||||
|
.then(function (response) {
|
||||||
|
var data = response.data
|
||||||
|
if(data.code==200){
|
||||||
|
$.toast("短信验证码发送成功,请注意查收!")
|
||||||
|
}else{
|
||||||
|
$.toast("验证码发送失败")
|
||||||
|
timer.cancel()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkPhoneNum(phone){
|
||||||
|
var reg = 11 && /^((13|14|15|17|18)[0-9]{1}\d{8})$/;
|
||||||
|
if(phone==''){
|
||||||
|
$.toast("请输入手机号码");
|
||||||
|
return false;
|
||||||
|
}else if(!reg.test(phone)){
|
||||||
|
$.toast("手机格式不正确");
|
||||||
|
return false;
|
||||||
|
}else{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//验证码倒计时
|
||||||
|
timer = {
|
||||||
|
countdown:60,
|
||||||
|
start:function(){
|
||||||
|
countdown = 60
|
||||||
|
$(".sendCode").hide()
|
||||||
|
$(".waiting").empty().append(countdown + " s").show()
|
||||||
|
timer.down()
|
||||||
|
},
|
||||||
|
down:function(){
|
||||||
|
countdown --
|
||||||
|
$(".waiting").empty().append(countdown + " s")
|
||||||
|
if(countdown <= 0){
|
||||||
|
$(".sendCode").show()
|
||||||
|
$(".waiting").hide()
|
||||||
|
}else{
|
||||||
|
setTimeout(timer.down, 1000)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cancel:function(){
|
||||||
|
countdown = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 错误提示 */
|
||||||
|
$("#next_btn").on("click", function () {
|
||||||
|
var city = $("#input_city").val();
|
||||||
|
var mobile = $("#input_phoneNumber").val();
|
||||||
|
var code = $("#input_codeSms").val();
|
||||||
|
//申请金额(万元)
|
||||||
|
var applyMoney = $("#input_price").val();
|
||||||
|
//是否接收抵押(0否 1是 根据选择的贷款类型赋值)
|
||||||
|
var mortgage = $(".checkbox .current").attr('value');
|
||||||
|
|
||||||
|
if(city == ""){
|
||||||
|
$.toast("请选择城市");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!checkPhoneNum(mobile)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(code == ""){
|
||||||
|
$.toast("请输入验证码");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(applyMoney == ""){
|
||||||
|
$.toast("请输入申请金额");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(mortgage == undefined || mortgage == ""){
|
||||||
|
$.toast("请选择贷款类型");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
//如果贷款类型是房抵押
|
||||||
|
if(mortgage == "1"){
|
||||||
|
if(houseId == undefined || houseId == ""){
|
||||||
|
$.toast("房抵贷类型获取houseId失败");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(mortgage == "1"){
|
||||||
|
_params = {type: 1, city: city, applyMoney: applyMoney, mortgage: mortgage, hid: houseId, mobile: mobile, smsCode: code};
|
||||||
|
}else{
|
||||||
|
_params = {type: 1, city: city, applyMoney: applyMoney, mortgage: mortgage, mobile: mobile, smsCode: code};
|
||||||
|
}
|
||||||
|
axios.post(BASE_PATH + "/rest/loan/apply", _params).then(function (response) {
|
||||||
|
var status = response.data.status;
|
||||||
|
if(status){
|
||||||
|
//页面跳转
|
||||||
|
//$.toast(response.data.data);
|
||||||
|
//直接定位到贷款success页面, 调用back()就只用返回一次
|
||||||
|
window.location.href = "../../views/loan/loanSuccess.html";
|
||||||
|
}else{
|
||||||
|
$.toast(response.data.message);
|
||||||
|
}
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
@@ -126,7 +126,7 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap,
|
|||||||
}else{
|
}else{
|
||||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其他</a>";
|
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其他</a>";
|
||||||
}
|
}
|
||||||
html += "<a class='button theme add add01 add01a' href='#'>立即申请</a></li>";
|
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
|
||||||
}
|
}
|
||||||
$('#myhouse').append(html);
|
$('#myhouse').append(html);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<span class="mui-tab-label">首页</span>
|
<span class="mui-tab-label">首页</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="mui-tab-item" id="quotations">
|
<a class="mui-tab-item" href="views/house/houseDetail.html">
|
||||||
<span class="mui-icon iconfont icon-tab02"></span>
|
<span class="mui-icon iconfont icon-tab02"></span>
|
||||||
<span class="mui-tab-label">行情</span>
|
<span class="mui-tab-label">行情</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -48,11 +48,11 @@
|
|||||||
localStorage.removeItem("user_token");
|
localStorage.removeItem("user_token");
|
||||||
localStorage.removeItem("user_token_add_time");
|
localStorage.removeItem("user_token_add_time");
|
||||||
}
|
}
|
||||||
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
//document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
||||||
//document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
//document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
||||||
//mui初始化
|
//mui初始化
|
||||||
mui.init();
|
mui.init();
|
||||||
var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', 'views/house/houseManageList.html', 'views/user/userInfo.html'];
|
var subpages = ['yfindex.html', 'views/house/houseDetail.html', 'views/house/houseManageList.html', 'views/user/userInfo.html'];
|
||||||
var subpage_style = {
|
var subpage_style = {
|
||||||
top: '0',
|
top: '0',
|
||||||
bottom: '50px',
|
bottom: '50px',
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
//var cityChooseOption = {markFocus:0,clickFocus:0}
|
//var cityChooseOption = {markFocus:0,clickFocus:0}
|
||||||
|
|
||||||
Vue.component('city_choose',{
|
Vue.component('city_choose',{
|
||||||
|
props:['city1'],
|
||||||
template:
|
template:
|
||||||
' <div class="popup popup-about popup-about01"> '+
|
' <div class="popup popup-about popup-about01"> '+
|
||||||
' <div class="bar"> '+
|
' <div class="bar"> '+
|
||||||
@@ -24,7 +25,7 @@ Vue.component('city_choose',{
|
|||||||
' <div id="cityContainer" class="container"> '+
|
' <div id="cityContainer" class="container"> '+
|
||||||
' <div class="cityGPS"> '+
|
' <div class="cityGPS"> '+
|
||||||
' <div class="city-list01 close-popup"> '+
|
' <div class="city-list01 close-popup"> '+
|
||||||
' <p class="nowCity">上海</p> '+
|
' <p class="nowCity">{{city1}}</p> '+
|
||||||
' <small>当前城市</small> '+
|
' <small>当前城市</small> '+
|
||||||
' </div> '+
|
' </div> '+
|
||||||
' </div> '+
|
' </div> '+
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ Vue.component('city_increase_ranking',{
|
|||||||
'<div class="col-20">{{ci.city}}</div>'+
|
'<div class="col-20">{{ci.city}}</div>'+
|
||||||
'<div class="col-25">{{!ci.cityTopMonthAvgPrice||ci.cityTopMonthAvgPrice==""?"暂无":""+ci.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
'<div class="col-25">{{!ci.cityTopMonthAvgPrice||ci.cityTopMonthAvgPrice==""?"暂无":""+ci.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
||||||
'<div class="col-25">'+
|
'<div class="col-25">'+
|
||||||
'<em class="up">{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(ci.oneMonthUpDownRange)+"%"}}<i class="icon" v-bind:class="[ci.oneMonthUpDownRange>0?"icon-arrow-red":"",ci.oneMonthUpDownRange<0?"icon-arrow-green":""]"></i></em>'+
|
'<em class="up">{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(100*ci.oneMonthUpDownRange).toFixed(2)+"%"}}<i class="icon" v-bind:class="[ci.oneMonthUpDownRange>0?"icon-arrow-red":"",ci.oneMonthUpDownRange<0?"icon-arrow-green":""]"></i></em>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'<div class="col-20">'+
|
'<div class="col-20">'+
|
||||||
'<i class="button theme collection collection01" v-on:click="follow(ci.city)">关注</i>'+
|
'<i class="button theme collection collection01" v-on:click="follow(ci.city,$event)">关注</i>'+
|
||||||
'<i class="button collection collection02 dn" v-on:click="abolish(ci.city)">取消</i>'+
|
'<i class="button collection collection02 dn" v-on:click="abolish(ci.city,$event)">取消</i>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
@@ -47,11 +47,21 @@ Vue.component('city_increase_ranking',{
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
follow:function(city){
|
follow:function(city,event){
|
||||||
alert(city)
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
$(event.target).parent().children().removeClass("dn");
|
||||||
|
$(event.target).addClass("dn");
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
abolish:function(city){
|
abolish:function(city,event){
|
||||||
alert(city)
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
$(event.target).parent().children().removeClass("dn");
|
||||||
|
$(event.target).addClass("dn");
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted:function(){
|
mounted:function(){
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Vue.component('city_potential_ranking',{
|
|||||||
'<div class="col-5">{{index+1}}</div>'+
|
'<div class="col-5">{{index+1}}</div>'+
|
||||||
'<div class="col-20">{{cp.city}}</div>'+
|
'<div class="col-20">{{cp.city}}</div>'+
|
||||||
'<div class="col-25">'+
|
'<div class="col-25">'+
|
||||||
'<em class="up">{{!cp.oneYearUpDownRange||cp.oneYearUpDownRange==""?"暂无":Math.abs(cp.oneYearUpDownRange)+"%"}}<i class="icon" v-bind:class="[cp.oneYearUpDownRange>0?"icon-arrow-red":"",cp.oneYearUpDownRange<0?"icon-arrow-green":""]"></i></em>'+
|
'<em class="up">{{!cp.oneYearUpDownRange||cp.oneYearUpDownRange==""?"暂无":Math.abs(cp.oneYearUpDownRange*100).toFixed(2)+"%"}}<i class="icon" v-bind:class="[cp.oneYearUpDownRange>0?"icon-arrow-red":"",cp.oneYearUpDownRange<0?"icon-arrow-green":""]"></i></em>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'<div class="col-25">'+
|
'<div class="col-25">'+
|
||||||
'<span class="star">'+
|
'<span class="star">'+
|
||||||
@@ -33,8 +33,8 @@ Vue.component('city_potential_ranking',{
|
|||||||
'</span>'+
|
'</span>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'<div class="col-20">'+
|
'<div class="col-20">'+
|
||||||
'<i class="button theme collection collection01" v-on:click="follow(cp.city)">关注</i>'+
|
'<i class="button theme collection collection01" v-on:click="follow(cp.city,$event)">关注</i>'+
|
||||||
'<i class="button collection collection02 dn" v-on:click="abolish(cp.city)">取消</i>'+
|
'<i class="button collection collection02 dn" v-on:click="abolish(cp.city,$event)">取消</i>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
@@ -48,7 +48,6 @@ Vue.component('city_potential_ranking',{
|
|||||||
methods:{
|
methods:{
|
||||||
loadCityPotentialRanking:function(){
|
loadCityPotentialRanking:function(){
|
||||||
axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){
|
axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){
|
||||||
// alert(1)
|
|
||||||
list = response.data.data;
|
list = response.data.data;
|
||||||
$(list).each(function(i){
|
$(list).each(function(i){
|
||||||
var index = this.index;
|
var index = this.index;
|
||||||
@@ -66,16 +65,20 @@ Vue.component('city_potential_ranking',{
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
follow:function(city){
|
follow:function(city,event){
|
||||||
alert(city)
|
|
||||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
$(event.target).parent().children().removeClass("dn");
|
||||||
|
$(event.target).addClass("dn");
|
||||||
|
loadCityPotentialRanking()
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
abolish:function(city){
|
abolish:function(city,event){
|
||||||
alert(city)
|
|
||||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
$(event.target).parent().children().removeClass("dn");
|
||||||
|
$(event.target).addClass("dn");
|
||||||
|
loadCityPotentialRanking()
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,58 +1,67 @@
|
|||||||
var myFocusDatas = {myFocusList: []};
|
var myFocusDatas = {myFocusList: []};
|
||||||
Vue.component('my_focus',{
|
Vue.component('my_focus',{
|
||||||
template:
|
template:
|
||||||
'<div class="topic">'+
|
'<div class="topic">'+
|
||||||
'<div class="topicTitle">我的关注</div>'+
|
'<div class="topicTitle">我的关注</div>'+
|
||||||
'<div class="list-block media-list cityList" id="myFocus">'+
|
'<div class="list-block media-list cityList">'+
|
||||||
'<ul>'+
|
'<ul>'+
|
||||||
'<li>'+
|
'<li>'+
|
||||||
'<a class="item-content">'+
|
'<a class="item-content">'+
|
||||||
'<div class="item-inner">'+
|
'<div class="item-inner">'+
|
||||||
'<div class="item-subtitle row">'+
|
'<div class="item-subtitle row">'+
|
||||||
'<div class="col-5"> </div>'+
|
'<div class="col-5"> </div>'+
|
||||||
'<div class="col-20">城市</div>'+
|
'<div class="col-20">城市</div>'+
|
||||||
'<div class="col-25">上月均价</div>'+
|
'<div class="col-25">上月均价</div>'+
|
||||||
'<div class="col-25">近30天涨跌幅</div>'+
|
'<div class="col-25">近30天涨跌幅</div>'+
|
||||||
'<div class="col-20">全国涨幅排名</div>'+
|
'<div class="col-20">全国涨幅排名</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</a>'+
|
'</a>'+
|
||||||
'</li>'+
|
'</li>'+
|
||||||
'<li v-for="(mf,index) in myFocusList">'+
|
'<li v-for="(mf,index) in myFocusList">'+
|
||||||
'<a class="item-content">'+
|
'<a class="item-content">'+
|
||||||
'<div class="item-inner">'+
|
'<div class="item-inner">'+
|
||||||
'<div class="item-subtitle row">'+
|
'<div class="item-subtitle row">'+
|
||||||
'<div class="col-5">{{index+1}}</div>'+
|
'<div class="col-5">{{index+1}}</div>'+
|
||||||
'<div class="col-20">{{mf.city}}</div>'+
|
'<div class="col-20">{{mf.city}}</div>'+
|
||||||
'<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
'<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
||||||
'<div class="col-25">'+
|
'<div class="col-25">'+
|
||||||
'<em class="up">{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":mf.oneMonthUpDownRange+"%"}}<i class="icon icon-arrow-red"></i></em>'+
|
'<em class="up">{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":Math.abs(mf.oneMonthUpDownRange*100).toFixed(2)+"%"}}<i class="icon" v-bind:class="[mf.oneMonthUpDownRange>0?"icon-arrow-red":"",mf.oneMonthUpDownRange<0?"icon-arrow-green":""]"></i></em>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'<div class="col-20">'+
|
'<div class="col-20">'+
|
||||||
'<em>{{mf.rangeLevel}}</em>'+
|
'<em>{{mf.rangeLevel}}</em>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</a>'+
|
'</a>'+
|
||||||
'</li>'+
|
'</li>'+
|
||||||
'</ul>'+
|
'</ul>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'
|
'</div>'
|
||||||
,
|
,
|
||||||
data:function(){
|
data:function(){
|
||||||
return myFocusDatas;
|
return myFocusDatas;
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
loadMyFocus:function(){
|
loadMyFocus:function(){
|
||||||
axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
myFocusDatas.myFocusList = response.data.data;
|
$("#myFocusFirstPage").hide()
|
||||||
}).catch(function(error){
|
$("#myFocus").hide();
|
||||||
//alert(2)
|
}else{
|
||||||
console.log(error)
|
axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
|
||||||
})
|
if(response.data.data.length==0){
|
||||||
}
|
$("#myFocusFirstPage").hide();
|
||||||
},mounted:function(){
|
$("#myFocus").hide();
|
||||||
this.loadMyFocus();
|
}else{
|
||||||
}
|
myFocusDatas.myFocusList = response.data.data;
|
||||||
|
}
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},mounted:function(){
|
||||||
|
this.loadMyFocus();
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="add add01 button theme" href="03_evaluation02_inputInfo.html">再估一套</a>
|
<a class="add add01 button theme" onclick="openaddWindow()">再估一套</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="content-block priceRecovery" id="price_feedback">
|
<div class="content-block priceRecovery" id="price_feedback" v-bind:style="{display:isShow}">
|
||||||
<p><label>估的准吗?</label></p>
|
<p><label>估的准吗?</label></p>
|
||||||
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -142,119 +142,132 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||||
<script>
|
<script>
|
||||||
var houseStatus = ""
|
// document.addEventListener('plusready', onPlusReady, false);
|
||||||
var hid = '104631167348637696';
|
// function onPlusReady(){
|
||||||
var house_info = new Vue({
|
// var self = plus.webview.currentWebview();
|
||||||
el:'#house_info',
|
// var hid = self.hid;
|
||||||
data:{
|
var houseStatus = ""
|
||||||
name:"",
|
hid = '104631167348637696';
|
||||||
city_region:"",
|
var house_info = new Vue({
|
||||||
house_type:""
|
el:'#house_info',
|
||||||
}
|
data:{
|
||||||
})
|
name:"",
|
||||||
var house_price = new Vue({
|
city_region:"",
|
||||||
el:"#house_price",
|
house_type:""
|
||||||
data:{
|
}
|
||||||
total_price:"",
|
})
|
||||||
avg_price:"",
|
var house_price = new Vue({
|
||||||
percentage_30:"",
|
el:"#house_price",
|
||||||
arrow:"",
|
data:{
|
||||||
city:"",
|
total_price:"",
|
||||||
compare_word:"",
|
avg_price:"",
|
||||||
compare_money:"",
|
percentage_30:"",
|
||||||
words:""
|
arrow:"",
|
||||||
}
|
city:"",
|
||||||
})
|
compare_word:"",
|
||||||
// var evaluate_msg = new Vue({
|
compare_money:"",
|
||||||
// el:"#evaluate_msg",
|
words:""
|
||||||
// data:{
|
}
|
||||||
// evaluate_percent:"",
|
})
|
||||||
// evaluate_words:"",
|
// var evaluate_msg = new Vue({
|
||||||
// arrow:"",
|
// el:"#evaluate_msg",
|
||||||
// msg:""
|
// data:{
|
||||||
// }
|
// evaluate_percent:"",
|
||||||
// })
|
// evaluate_words:"",
|
||||||
|
// arrow:"",
|
||||||
|
// msg:""
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
|
||||||
var price_feedback = new Vue({
|
var price_feedback = new Vue({
|
||||||
el:"#price_feedback",
|
el:"#price_feedback",
|
||||||
data:{
|
data:{
|
||||||
|
isShow:"none"
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
feedback:function(i,event){
|
||||||
|
if($(event.target).hasClass("theme")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//return;
|
||||||
|
axios.post("/rest/evaluate/feedBack",{
|
||||||
|
hid:hid,
|
||||||
|
reason:i
|
||||||
|
}).then(function(response){
|
||||||
|
alert("感谢您的反馈!")
|
||||||
|
$("#price_feedback").hide();
|
||||||
|
}).catch(function(error){console.log(error)})
|
||||||
|
},
|
||||||
|
feedbackable:function(){
|
||||||
|
|
||||||
},
|
|
||||||
methods:{
|
|
||||||
feedback:function(i,event){
|
|
||||||
if($(event.target).hasClass("theme")){
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
//return;
|
},mounted(){
|
||||||
axios.post("/rest/evaluate/feedBack",{
|
|
||||||
hid:hid,
|
|
||||||
reason:i
|
|
||||||
}).then(function(response){
|
|
||||||
|
|
||||||
}).catch(function(error){console.log(error)})
|
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
|
|
||||||
axios.get("/rest/evaluate/queryHouseInfo",{
|
axios.get("/rest/evaluate/queryHouseInfo",{
|
||||||
params:{id : hid}
|
params:{id : hid}
|
||||||
}).then(function(response){
|
}).then(function(response){
|
||||||
if(response.data.status){
|
if(response.data.status){
|
||||||
h = response.data.data
|
h = response.data.data
|
||||||
house_info.name = h.name
|
house_info.name = h.name
|
||||||
house_info.city_region = h.city+"-"+h.region
|
house_info.city_region = h.city+"-"+h.region
|
||||||
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"m ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"m ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
||||||
house_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
|
house_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
|
||||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
|
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
|
||||||
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
||||||
if(h.oneMonthUpDownRange<0){
|
if(h.oneMonthUpDownRange<0){
|
||||||
house_price.arrow="icon icon-arrow-green"
|
house_price.arrow="icon icon-arrow-green"
|
||||||
house_price.percentage_30=-h.oneMonthUpDownRange
|
house_price.percentage_30=-h.oneMonthUpDownRange
|
||||||
}else if(h.oneMonthUpDownRange>0){
|
}else if(h.oneMonthUpDownRange>0){
|
||||||
house_price.arrow="icon icon-arrow-red"
|
house_price.arrow="icon icon-arrow-red"
|
||||||
house_price.percentage_30=h.oneMonthUpDownRange
|
house_price.percentage_30=h.oneMonthUpDownRange
|
||||||
}else{
|
}else{
|
||||||
house_price.percentage_30="暂无"
|
house_price.percentage_30="暂无"
|
||||||
|
}
|
||||||
|
house_price.city=h.city
|
||||||
|
if(h.compareMoney<0){
|
||||||
|
house_price.compare_word="低"
|
||||||
|
house_price.words="元"
|
||||||
|
house_price.compare_money=-h.compareMoney
|
||||||
|
}else if(h.compareMoney>0){
|
||||||
|
house_price.compare_word="高"
|
||||||
|
house_price.words="元"
|
||||||
|
house_price.compare_money=h.compareMoney
|
||||||
|
}else{
|
||||||
|
house_price.compare_money="相等"
|
||||||
|
}
|
||||||
|
// if(h.evaluatePercent<0){
|
||||||
|
// evaluate_msg.evaluate_words="下跌概率"
|
||||||
|
// evaluate_msg.arrow="icon icon-arrow-green"
|
||||||
|
// evaluate_msg.evaluate_percent=-h.evaluatePercent
|
||||||
|
// }else if(h.evaluatePercent>0){
|
||||||
|
// evaluate_msg.evaluate_words="上涨概率"
|
||||||
|
// evaluate_msg.arrow="icon icon-arrow-red"
|
||||||
|
// evaluate_msg.evaluate_percent=h.evaluatePercent
|
||||||
|
// }else{
|
||||||
|
// evaluate_msg.evaluate_words="暂无"
|
||||||
|
// }
|
||||||
|
// evaluate_msg.msg=h.evaluateMsg
|
||||||
|
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||||
|
loadingChart(h.city,h.region,h.name,2)
|
||||||
|
//按照时间范围加载数据
|
||||||
|
$(".avgPriceTrend a").click(function(){
|
||||||
|
var type = $(this).attr("data-id");
|
||||||
|
$(".avgPriceTrend a").removeClass("active")
|
||||||
|
$(this).addClass('active');
|
||||||
|
loadingChart(h.city,h.region,h.name,type);
|
||||||
|
});
|
||||||
|
houseStatus = h.houseStatus;
|
||||||
}
|
}
|
||||||
house_price.city=h.city
|
}).catch(function(error){
|
||||||
if(h.compareMoney<0){
|
console.log(error)
|
||||||
house_price.compare_word="低"
|
})
|
||||||
house_price.words="元"
|
|
||||||
house_price.compare_money=-h.compareMoney
|
// }
|
||||||
}else if(h.compareMoney>0){
|
|
||||||
house_price.compare_word="高"
|
|
||||||
house_price.words="元"
|
|
||||||
house_price.compare_money=h.compareMoney
|
|
||||||
}else{
|
|
||||||
house_price.compare_money="相等"
|
|
||||||
}
|
|
||||||
// if(h.evaluatePercent<0){
|
|
||||||
// evaluate_msg.evaluate_words="下跌概率"
|
|
||||||
// evaluate_msg.arrow="icon icon-arrow-green"
|
|
||||||
// evaluate_msg.evaluate_percent=-h.evaluatePercent
|
|
||||||
// }else if(h.evaluatePercent>0){
|
|
||||||
// evaluate_msg.evaluate_words="上涨概率"
|
|
||||||
// evaluate_msg.arrow="icon icon-arrow-red"
|
|
||||||
// evaluate_msg.evaluate_percent=h.evaluatePercent
|
|
||||||
// }else{
|
|
||||||
// evaluate_msg.evaluate_words="暂无"
|
|
||||||
// }
|
|
||||||
// evaluate_msg.msg=h.evaluateMsg
|
|
||||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
|
||||||
loadingChart(h.city,h.region,h.name,2)
|
|
||||||
//按照时间范围加载数据
|
|
||||||
$(".avgPriceTrend a").click(function(){
|
|
||||||
var type = $(this).attr("data-id");
|
|
||||||
$(".avgPriceTrend a").removeClass("active")
|
|
||||||
$(this).addClass('active');
|
|
||||||
loadingChart(h.city,h.region,h.name,type);
|
|
||||||
});
|
|
||||||
houseStatus = h.houseStatus;
|
|
||||||
}
|
|
||||||
}).catch(function(error){
|
|
||||||
console.log(error)
|
|
||||||
})
|
|
||||||
|
|
||||||
//添加管理AJAX请求
|
//添加管理AJAX请求
|
||||||
function addManagement(id, houseStatus, liveStatus){
|
function addManagement(id, houseStatus, liveStatus){
|
||||||
@@ -268,6 +281,9 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
if(status){
|
if(status){
|
||||||
$.toast(response.data.data);
|
$.toast(response.data.data);
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseList.html').reload();
|
||||||
}else{
|
}else{
|
||||||
$.toast(response.data.message);
|
$.toast(response.data.message);
|
||||||
}
|
}
|
||||||
@@ -293,6 +309,7 @@ $(".content-block .button").on("click", function () {
|
|||||||
|
|
||||||
/* 房产用途 */
|
/* 房产用途 */
|
||||||
$(document).on('click','.open-vertical-modal', function () {
|
$(document).on('click','.open-vertical-modal', function () {
|
||||||
|
var houseStatus = 0;
|
||||||
$.modal({
|
$.modal({
|
||||||
title: '房产用途',
|
title: '房产用途',
|
||||||
verticalButtons: true,
|
verticalButtons: true,
|
||||||
@@ -467,6 +484,10 @@ function showChat(categories, series) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function openaddWindow(){
|
||||||
|
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1248,8 +1248,8 @@ $.config = {router: false}
|
|||||||
<script>
|
<script>
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
var houseStatus; //= "186182250936643584";
|
var houseStatus; //= "186182250936643584";
|
||||||
var type = 1;
|
|
||||||
//扩展API加载完毕,现在可以正常调用扩展API
|
//扩展API加载完毕,现在可以正常调用扩展API
|
||||||
|
var type = 1;
|
||||||
function onPlusReady(){
|
function onPlusReady(){
|
||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
type = self.type; //type为1时是我的房产
|
type = self.type; //type为1时是我的房产
|
||||||
@@ -1258,7 +1258,6 @@ function onPlusReady(){
|
|||||||
}else{
|
}else{
|
||||||
$("#liveStatusDiv").hide();
|
$("#liveStatusDiv").hide();
|
||||||
}
|
}
|
||||||
$("#liveStatusDiv").show();
|
|
||||||
houseStatus = 0;
|
houseStatus = 0;
|
||||||
var city_map = localStorage.getItem("init_city");
|
var city_map = localStorage.getItem("init_city");
|
||||||
if(city_map){
|
if(city_map){
|
||||||
@@ -1765,7 +1764,7 @@ $("#evaluation_btn").on("click", function () {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
if(response.data.data.success){
|
if(response.data.data && response.data.data.success){
|
||||||
var district = response.data.data
|
var district = response.data.data
|
||||||
$("#input_city").val(district.city)
|
$("#input_city").val(district.city)
|
||||||
$("input[name='address']").val(district.address)
|
$("input[name='address']").val(district.address)
|
||||||
@@ -1776,7 +1775,7 @@ $("#evaluation_btn").on("click", function () {
|
|||||||
}else{
|
}else{
|
||||||
// $("#nextBtn").attr("disabled", false)
|
// $("#nextBtn").attr("disabled", false)
|
||||||
console.log("error");
|
console.log("error");
|
||||||
$.toast(result.message)
|
$.toast(response.data.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
@@ -1830,20 +1829,13 @@ function addEvaluation(){
|
|||||||
houseStatus:1}
|
houseStatus:1}
|
||||||
}
|
}
|
||||||
axios.get("/rest/index/checkEvalPrice", {
|
axios.get("/rest/index/checkEvalPrice", {
|
||||||
params: {
|
params: data
|
||||||
cityDisplay: $("#input_city").val(),
|
|
||||||
region:$("input[name=region]").val(),
|
|
||||||
district:$("#input_address").val(),
|
|
||||||
address:$("input[name=address]").val(),
|
|
||||||
estateType:$("#input_houseType").val(),
|
|
||||||
loudongName:$("#input_building").val(),
|
|
||||||
floorName:$("#input_floor").val(),
|
|
||||||
area:$("#input_area").val()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
if(response.data.data!=null && response.data.data.success){
|
if(response.data.data!=null && response.data.data.success){
|
||||||
var id = response.data.data.id;
|
var id = response.data.data.id;
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
|
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
|
||||||
}else{
|
}else{
|
||||||
$.toast(response.data.message);
|
$.toast(response.data.message);
|
||||||
|
|||||||
@@ -190,7 +190,7 @@
|
|||||||
<div class="topicTitle">小区走势分析</div>
|
<div class="topicTitle">小区走势分析</div>
|
||||||
<div class="topicContent" style="padding:0;">
|
<div class="topicContent" style="padding:0;">
|
||||||
<div class="content-block content-block01 content-block01a">
|
<div class="content-block content-block01 content-block01a">
|
||||||
<div class="buttons-row theme">
|
<div class="buttons-row theme" id="trendTabDiv">
|
||||||
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv">均价</a>
|
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv">均价</a>
|
||||||
<a href="#tabChart2" class="tab-link button" id="tabRentDiv">租金</a>
|
<a href="#tabChart2" class="tab-link button" id="tabRentDiv">租金</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -478,7 +478,7 @@ function loadChart(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* button状态切换 */
|
/* button状态切换 */
|
||||||
$(".content-block .button").on("click", function () {
|
$("#trendTabDiv .button").on("click", function () {
|
||||||
$(this).parent().children().removeClass("active");
|
$(this).parent().children().removeClass("active");
|
||||||
$(this).addClass("active");
|
$(this).addClass("active");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -28,49 +28,31 @@
|
|||||||
|
|
||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<nav class="bar bar-tab">
|
|
||||||
<a class="tab-item external" href="01_index.html">
|
|
||||||
<span class="icon iconfont icon-tab01"></span>
|
|
||||||
<span class="tab-label">首页</span>
|
|
||||||
</a>
|
|
||||||
<a class="tab-item external active" href="02_quotation01_index.html">
|
|
||||||
<span class="icon iconfont icon-tab02"></span>
|
|
||||||
<span class="tab-label">行情</span>
|
|
||||||
</a>
|
|
||||||
<a class="tab-item external" href="03_evaluation01_index.html">
|
|
||||||
<span class="icon iconfont icon-tab03"></span>
|
|
||||||
<span class="tab-label">评估</span>
|
|
||||||
</a>
|
|
||||||
<a class="tab-item external" href="05_mine01_index.html">
|
|
||||||
<span class="icon iconfont icon-tab04"></span>
|
|
||||||
<span class="tab-label">我的</span>
|
|
||||||
</a>
|
|
||||||
</nav>
|
|
||||||
<header class="bar bar-nav barBorder">
|
<header class="bar bar-nav barBorder">
|
||||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
<!--<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>-->
|
||||||
<h1 class="title">房产行情</h1>
|
<h1 class="title">房产行情</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="swiper-container" data-space-between="10">
|
<div class="swiper-container" data-space-between="10">
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
<div class="swiper-slide">
|
<div class="swiper-slide">
|
||||||
<div class="card cardPrice cardPrice01 cardCity">
|
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<label>全国</label>
|
<label>全国</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span>2018年1月全国366个城市房价</span>
|
<span>{{nowYear}}年{{nowMonth}}月全国{{cityCount}}个城市房价</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-content-inner row">
|
<div class="card-content-inner row">
|
||||||
<span class="col-50">
|
<span class="col-50">
|
||||||
<em class="up"><strong>37</strong>%</em>
|
<em class="up"><strong>{{upRate}}</strong>%</em>
|
||||||
<label>城市上涨</label>
|
<label>城市上涨</label>
|
||||||
</span>
|
</span>
|
||||||
<span class="col-50">
|
<span class="col-50">
|
||||||
<em class="down"><strong>63</strong>%</em>
|
<em class="down"><strong>{{downRate}}</strong>%</em>
|
||||||
<label>城市下跌</label>
|
<label>城市下跌</label>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -78,144 +60,82 @@
|
|||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<span>
|
<span>
|
||||||
<label>平均涨幅:</label>
|
<label>平均涨幅:</label>
|
||||||
<em><strong>2.13</strong>%<i class="icon icon-arrow-red"></i></em>
|
<em><strong>{{(avgUpRate*100).toFixed(2)}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<label>平均跌幅:</label>
|
<label>平均跌幅:</label>
|
||||||
<em><strong>1.41</strong>%<i class="icon icon-arrow-green"></i></em>
|
<em><strong>{{(avgUownRate*(-100)).toFixed(2)}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="topic">
|
<div id="myFocusFirstPage">
|
||||||
<div class="topicTitle">我的关注</div>
|
<my_focus></my_focus>
|
||||||
<div class="list-block media-list cityList">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-subtitle row">
|
|
||||||
<div class="col-5"> </div>
|
|
||||||
<div class="col-20">城市</div>
|
|
||||||
<div class="col-25">1月均价</div>
|
|
||||||
<div class="col-25">近30天涨跌幅</div>
|
|
||||||
<div class="col-20">全国涨幅排名</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-subtitle row">
|
|
||||||
<div class="col-5">1</div>
|
|
||||||
<div class="col-20">上海</div>
|
|
||||||
<div class="col-25">15689元/㎡</div>
|
|
||||||
<div class="col-25">
|
|
||||||
<em class="up">8.98%<i class="icon icon-arrow-red"></i></em>
|
|
||||||
</div>
|
|
||||||
<div class="col-20">
|
|
||||||
<em>1</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-subtitle row">
|
|
||||||
<div class="col-5">2</div>
|
|
||||||
<div class="col-20">北京</div>
|
|
||||||
<div class="col-25">12283元/㎡</div>
|
|
||||||
<div class="col-25">
|
|
||||||
<em class="up">7.42%<i class="icon icon-arrow-red"></i></em>
|
|
||||||
</div>
|
|
||||||
<div class="col-20">
|
|
||||||
<em>2</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-subtitle row">
|
|
||||||
<div class="col-5">3</div>
|
|
||||||
<div class="col-20">沈阳</div>
|
|
||||||
<div class="col-25">10840元/㎡</div>
|
|
||||||
<div class="col-25">
|
|
||||||
<em class="up">6.52%<i class="icon icon-arrow-red"></i></em>
|
|
||||||
</div>
|
|
||||||
<div class="col-20">
|
|
||||||
<em>3</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-subtitle row">
|
|
||||||
<div class="col-5">4</div>
|
|
||||||
<div class="col-20">苏州</div>
|
|
||||||
<div class="col-25">13586元/㎡</div>
|
|
||||||
<div class="col-25">
|
|
||||||
<em class="up">5.68%<i class="icon icon-arrow-red"></i></em>
|
|
||||||
</div>
|
|
||||||
<div class="col-20">
|
|
||||||
<em>4</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-subtitle row">
|
|
||||||
<div class="col-5">5</div>
|
|
||||||
<div class="col-20">天津</div>
|
|
||||||
<div class="col-25">13192元/㎡</div>
|
|
||||||
<div class="col-25">
|
|
||||||
<em class="down">4.96%<i class="icon icon-arrow-red"></i></em>
|
|
||||||
</div>
|
|
||||||
<div class="col-20">
|
|
||||||
<em>5</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01">
|
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank">
|
||||||
<div class="cardNearbyWin">
|
<div class="cardNearbyWin">
|
||||||
<div class="card cardNearby cardRanking">
|
<div class="card cardNearby cardRanking" v-for="item in datas">
|
||||||
<div class="card-header">城市涨幅排行</div>
|
<div class="card-header" v-if="item.type==0">
|
||||||
<div class="card-header"><em>①</em>上海</div>
|
城市涨幅排行
|
||||||
<div class="card-content">
|
|
||||||
<div class="card-content-inner"><em class="up">8.98%<i class="icon icon-arrow-red"></i></em></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer"><em>15689元/㎡</em></div>
|
<div class="card-header" v-else-if="item.type==1">
|
||||||
</div>
|
城市潜力排行
|
||||||
<div class="card cardNearby cardRanking">
|
|
||||||
<div class="card-header">城市潜力排行</div>
|
|
||||||
<div class="card-header"><em>①</em>上海</div>
|
|
||||||
<div class="card-content">
|
|
||||||
<div class="card-content-inner">潜力指数</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer"><span class="star"><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i></span></div>
|
<div class="card-header" v-else-if="item.type==2">
|
||||||
</div>
|
城市均价排行
|
||||||
<div class="card cardNearby cardRanking">
|
</div>
|
||||||
<div class="card-header">城市均价排行</div>
|
<div class="card-header"><em>①</em>{{item.city}}</div>
|
||||||
<div class="card-header"><em>①</em>北京</div>
|
<div class="card-content">
|
||||||
<div class="card-content">
|
<div class="card-content-inner" v-if="item.type==0">
|
||||||
<div class="card-content-inner"><em class="up">2.89%<i class="icon icon-arrow-red"></i></em></div>
|
<em class="up">{{item.oneMonthUpDownRange*100}}%<i class="icon icon-arrow-red"></i></em>
|
||||||
|
</div>
|
||||||
|
<div class="card-content-inner" v-else-if="item.type==1">
|
||||||
|
潜力指数
|
||||||
|
</div>
|
||||||
|
<div class="card-content-inner" v-else-if="item.type==2">
|
||||||
|
<em class="up">{{Math.abs(item.oneMonthUpDownRange*100)}}%
|
||||||
|
<i class="icon icon-arrow-red" v-show="item.oneMonthUpDownRange>0"></i>
|
||||||
|
<i class="icon icon-arrow-green" v-show="item.oneMonthUpDownRange<0"></i>
|
||||||
|
</em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer" v-if="item.type==1">
|
||||||
|
<span class="star" v-if="item.index <=4">
|
||||||
|
<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=5 && item.index<15">
|
||||||
|
<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=15 && item.index<25">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=25 && item.index<35">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=35 && item.index<45">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=45 && item.index<55">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=55 && item.index<65">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=65 && item.index<75">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=75 && item.index<85">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else-if="item.index >=85 && item.index<95">
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>
|
||||||
|
</span>
|
||||||
|
<span class="star" v-else>
|
||||||
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer" v-else>
|
||||||
|
<em>{{item.avgPrice}}元/㎡</em>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer"><em>12283元/㎡</em></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -224,58 +144,15 @@
|
|||||||
<div class="topicContent cityImgBox row">
|
<div class="topicContent cityImgBox row">
|
||||||
<div class="col-33">
|
<div class="col-33">
|
||||||
<img src="../../images/cityImg01.png">
|
<img src="../../images/cityImg01.png">
|
||||||
<p>青岛</p>
|
<p>北京</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-33">
|
<div class="col-33">
|
||||||
<img src="../../images/cityImg02.png">
|
<img src="../../images/cityImg02.png">
|
||||||
<p>三亚</p>
|
<p>上海</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-33">
|
<div class="col-33">
|
||||||
<img src="../../images/cityImg03.png">
|
<img src="../../images/cityImg03.png">
|
||||||
<p>昆明</p>
|
<p>深圳</p>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content-block-title recommend">楼市资讯</div>
|
|
||||||
<div class="card cardInfo cardInfo02">
|
|
||||||
<div class="card-content">
|
|
||||||
<div class="list-block media-list">
|
|
||||||
<ul>
|
|
||||||
<li class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-title-row">
|
|
||||||
<div class="item-title">市场上有不同种类的房源待售,经济适用房作为保障性住房的一种,政府对此非常重视。</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-subtitle">
|
|
||||||
<span><i class="icon icon-eye-orange"></i>2022人<i class="icon icon-comments-orange"></i>1245条</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-media">
|
|
||||||
<img src="../../images/cardInfoImg05.png">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card cardInfo cardInfo02">
|
|
||||||
<div class="card-content">
|
|
||||||
<div class="list-block media-list">
|
|
||||||
<ul>
|
|
||||||
<li class="item-content">
|
|
||||||
<div class="item-inner">
|
|
||||||
<div class="item-title-row">
|
|
||||||
<div class="item-title">市场上有不同种类的房源待售,经济适用房作为保障性住房的一种,政府对此非常重视。</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-subtitle">
|
|
||||||
<span><i class="icon icon-eye-orange"></i>2022人<i class="icon icon-comments-orange"></i>1245条</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-media">
|
|
||||||
<img src="../../images/cardInfoImg05.png">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -581,9 +458,9 @@
|
|||||||
|
|
||||||
<!-- About Popup -->
|
<!-- About Popup -->
|
||||||
<div id="cityChoose">
|
<div id="cityChoose">
|
||||||
<city_choose></city_choose>
|
<city_choose v-bind:city1="city"></city_choose>
|
||||||
</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="../../js/zepto.js" charset="utf-8"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@@ -606,18 +483,150 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||||
<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
|
<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var myFocus = new Vue({
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
el:"#myFocus"
|
function onPlusReady(){
|
||||||
})
|
var city = "";
|
||||||
var cityIncreaseRanking = new Vue({
|
plus.geolocation.getCurrentPosition(function(p){
|
||||||
el:"#cityIncreaseRanking"
|
//province = p.address.province;
|
||||||
})
|
city = p.address.city;
|
||||||
var cityPotentialRanking = new Vue({
|
//region = p.address.district;
|
||||||
el:"#cityPotentialRanking"
|
}, function(e){
|
||||||
})
|
},
|
||||||
var cityChoose = new Vue({
|
{
|
||||||
el:"#cityChoose"
|
provider:'baidu',
|
||||||
})
|
enableHighAccuracy:true,
|
||||||
|
coordsType:'bd09ll'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
alert(city)
|
||||||
|
var myFocus = new Vue({
|
||||||
|
el:"#myFocus"
|
||||||
|
})
|
||||||
|
var cityIncreaseRanking = new Vue({
|
||||||
|
el:"#cityIncreaseRanking"
|
||||||
|
})
|
||||||
|
var cityPotentialRanking = new Vue({
|
||||||
|
el:"#cityPotentialRanking"
|
||||||
|
})
|
||||||
|
var cityChoose = new Vue({
|
||||||
|
el:"#cityChoose",
|
||||||
|
data:{
|
||||||
|
city:city
|
||||||
|
}
|
||||||
|
})
|
||||||
|
/* 关注&已关注切换 */
|
||||||
|
$(".collection01").on("click", function () {
|
||||||
|
$(this).hide();
|
||||||
|
$(this).next().show();
|
||||||
|
$.toast("已关注");
|
||||||
|
});
|
||||||
|
$(".collection02").on("click", function () {
|
||||||
|
$(this).hide();
|
||||||
|
$(this).prev().show();
|
||||||
|
$.toast("取消关注");
|
||||||
|
});
|
||||||
|
|
||||||
|
/* button状态切换 */
|
||||||
|
$(".content-block .button").on("click", function () {
|
||||||
|
$(this).parent().children().removeClass("active");
|
||||||
|
$(this).addClass("active");
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 图表切换 */
|
||||||
|
$("#tabAvg").on("click", function () {
|
||||||
|
$("#tabChart1").css("z-index","1");
|
||||||
|
$("#tabChart2").css("z-index","-1");
|
||||||
|
});
|
||||||
|
$("#tabRent").on("click", function () {
|
||||||
|
$("#tabChart2").css("z-index","1");
|
||||||
|
$("#tabChart1").css("z-index","-1");
|
||||||
|
});
|
||||||
|
/* 弹出城市选择页面 */
|
||||||
|
$(document).on("click",".open-about01", function () {
|
||||||
|
markFocus();
|
||||||
|
$.popup(".popup-about01");
|
||||||
|
});
|
||||||
|
/* 定位城市 */
|
||||||
|
$("body").on("click", ".letter a", function () {
|
||||||
|
var s = $(this).html();
|
||||||
|
$(".popup-about01 .content").scrollTop(0);
|
||||||
|
$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
|
||||||
|
});
|
||||||
|
$("#tabCity1 .content-block01").scroll(function () {
|
||||||
|
$("#tabCity1 .content-block01 .letter").css("position","absolute");
|
||||||
|
$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 获取城市 */
|
||||||
|
$(".popup-about01 .cityGPS").on("click", function () {
|
||||||
|
$("#input_city").val($(this).find("p").text());
|
||||||
|
$(".cityChoice a").text($(this).find("p").text());
|
||||||
|
$(".popup-about01 p").removeClass("active");
|
||||||
|
});
|
||||||
|
$(".popup-about01 p").on("click", function () {
|
||||||
|
$("#input_city").val($(this).text());
|
||||||
|
$(".cityChoice a").text($(this).text());
|
||||||
|
$(".popup-about01 p").removeClass("active");
|
||||||
|
$(this).addClass("active");
|
||||||
|
var city = $(this).text()
|
||||||
|
addFocus(city)
|
||||||
|
});
|
||||||
|
/* 点击热门小区跳转到小区详情页 */
|
||||||
|
$(".cardNearby").on("click", function(){
|
||||||
|
window.location.href = "01_index04_districtDetail.html";
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//加载首页全国数据
|
||||||
|
$(function() {
|
||||||
|
var date=new Date;
|
||||||
|
var year=date.getFullYear();
|
||||||
|
var month=date.getMonth()+1;
|
||||||
|
axios.get("/rest/quotations/countrywideInfo", {
|
||||||
|
params: {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(function (response) {
|
||||||
|
new Vue({
|
||||||
|
el: '#countryInfo',
|
||||||
|
data: {
|
||||||
|
nowYear : year,
|
||||||
|
nowMonth : month,
|
||||||
|
cityCount : response.data.data.cityCount,
|
||||||
|
upRate : response.data.data.upRate,
|
||||||
|
downRate : response.data.data.downRate,
|
||||||
|
avgUpRate : response.data.data.avgUpRate,
|
||||||
|
avgUownRate : response.data.data.avgUownRate
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
axios.get("/rest/quotations/levelCityInfo", {
|
||||||
|
params: {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(function (response) {
|
||||||
|
//0:涨幅排行 1:潜力排行 2:均价排行
|
||||||
|
new Vue({
|
||||||
|
el: '#countryRank',
|
||||||
|
data: {
|
||||||
|
datas : response.data.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@@ -637,38 +646,8 @@ $(document).ready(function () {
|
|||||||
}*/
|
}*/
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 关注&已关注切换 */
|
|
||||||
$(".collection01").on("click", function () {
|
|
||||||
$(this).hide();
|
|
||||||
$(this).next().show();
|
|
||||||
$.toast("已关注");
|
|
||||||
});
|
|
||||||
$(".collection02").on("click", function () {
|
|
||||||
$(this).hide();
|
|
||||||
$(this).prev().show();
|
|
||||||
$.toast("取消关注");
|
|
||||||
});
|
|
||||||
|
|
||||||
/* button状态切换 */
|
|
||||||
$(".content-block .button").on("click", function () {
|
|
||||||
$(this).parent().children().removeClass("active");
|
|
||||||
$(this).addClass("active");
|
|
||||||
});
|
|
||||||
|
|
||||||
/* 图表切换 */
|
|
||||||
$("#tabAvg").on("click", function () {
|
|
||||||
$("#tabChart1").css("z-index","1");
|
|
||||||
$("#tabChart2").css("z-index","-1");
|
|
||||||
});
|
|
||||||
$("#tabRent").on("click", function () {
|
|
||||||
$("#tabChart2").css("z-index","1");
|
|
||||||
$("#tabChart1").css("z-index","-1");
|
|
||||||
});
|
|
||||||
|
|
||||||
/* 点击热门小区跳转到小区详情页 */
|
|
||||||
$(".cardNearby").on("click", function(){
|
|
||||||
window.location.href = "01_index04_districtDetail.html";
|
|
||||||
});
|
|
||||||
|
|
||||||
/* 获取热门小区名称字数,截取热门小区名称前5字,并添加... */
|
/* 获取热门小区名称字数,截取热门小区名称前5字,并添加... */
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
@@ -683,11 +662,9 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 弹出城市选择页面 */
|
|
||||||
$(document).on("click",".open-about01", function () {
|
|
||||||
markFocus();
|
|
||||||
$.popup(".popup-about01");
|
|
||||||
});
|
|
||||||
//$(document).on("click",".open-about01", function () {
|
//$(document).on("click",".open-about01", function () {
|
||||||
// markFocus();
|
// markFocus();
|
||||||
// $.popup(".popup-about01");
|
// $.popup(".popup-about01");
|
||||||
@@ -724,31 +701,14 @@ function markFocus(){
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/* 定位城市 */
|
|
||||||
$("body").on("click", ".letter a", function () {
|
|
||||||
var s = $(this).html();
|
|
||||||
$(".popup-about01 .content").scrollTop(0);
|
|
||||||
$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
|
|
||||||
});
|
|
||||||
$("#tabCity1 .content-block01").scroll(function () {
|
|
||||||
$("#tabCity1 .content-block01 .letter").css("position","absolute");
|
|
||||||
$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
|
|
||||||
});
|
|
||||||
|
|
||||||
/* 获取城市 */
|
function addFocus(city){
|
||||||
$(".popup-about01 .cityGPS").on("click", function () {
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
$("#input_city").val($(this).find("p").text());
|
//reloadMyFocus()
|
||||||
$(".cityChoice a").text($(this).find("p").text());
|
}).catch(function(error){
|
||||||
$(".popup-about01 p").removeClass("active");
|
console.log(error)
|
||||||
alert(1)
|
})
|
||||||
});
|
}
|
||||||
$(".popup-about01 p").on("click", function () {
|
|
||||||
$("#input_city").val($(this).text());
|
|
||||||
$(".cityChoice a").text($(this).text());
|
|
||||||
$(".popup-about01 p").removeClass("active");
|
|
||||||
$(this).addClass("active");
|
|
||||||
alert(2)
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//我的收藏查询请求
|
//我的收藏查询请求
|
||||||
function selectHouseInfoList(){
|
function selectHouseInfoList(){
|
||||||
axios.get(BASE_PATH + "/rest/index/ourHouseInfoList",
|
axios.get(BASE_PATH + "/rest/index/ourHouseInfoList",
|
||||||
@@ -182,6 +183,18 @@ function selectHouseInfoList(){
|
|||||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||||
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
||||||
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
||||||
|
// 上次加载的序号
|
||||||
|
lastIndex = $('.list-container li').length;
|
||||||
|
//登录状态,但没有数据
|
||||||
|
if(lastIndex == 0 && resultList.length ==0){
|
||||||
|
//控制显示
|
||||||
|
$('#page-group-nologin').show();
|
||||||
|
$('#page-group-login').hide();
|
||||||
|
}else{
|
||||||
|
//控制显示
|
||||||
|
$('#page-group-nologin').hide();
|
||||||
|
$('#page-group-login').show();
|
||||||
|
}
|
||||||
if(resultList != null && resultList.length == 0){
|
if(resultList != null && resultList.length == 0){
|
||||||
// 删除加载提示符
|
// 删除加载提示符
|
||||||
$('.infinite-scroll-preloader').remove();
|
$('.infinite-scroll-preloader').remove();
|
||||||
@@ -201,16 +214,8 @@ function selectHouseInfoList(){
|
|||||||
for(var i in resultList){
|
for(var i in resultList){
|
||||||
dataObj.push(resultList[i])
|
dataObj.push(resultList[i])
|
||||||
}
|
}
|
||||||
// 上次加载的序号
|
|
||||||
lastIndex = $('.cardInfo').length;
|
|
||||||
//每次加载添加多少条目
|
//每次加载添加多少条目
|
||||||
itemsPerLoad = resultList.length;
|
itemsPerLoad = resultList.length;
|
||||||
//登录状态,但没有数据
|
|
||||||
if(lastIndex == 0 && resultList.length ==0){
|
|
||||||
//控制显示
|
|
||||||
$('#page-group-nologin').hide();
|
|
||||||
$('#page-group-login').show();
|
|
||||||
}
|
|
||||||
//请求后对page进行赋值
|
//请求后对page进行赋值
|
||||||
page = resultsMap.houseInfoPageList.currentPage;
|
page = resultsMap.houseInfoPageList.currentPage;
|
||||||
pageSize = resultsMap.houseInfoPageList.limit;
|
pageSize = resultsMap.houseInfoPageList.limit;
|
||||||
@@ -228,10 +233,8 @@ function checkIsLogin(){
|
|||||||
$('#page-group-login').hide();
|
$('#page-group-login').hide();
|
||||||
$('#page-group-nologin').show();
|
$('#page-group-nologin').show();
|
||||||
}else{
|
}else{
|
||||||
selectHouseInfoList();
|
|
||||||
//控制显示
|
//控制显示
|
||||||
/*$('#page-group-nologin').hide();
|
selectHouseInfoList();
|
||||||
$('#page-group-login').show();*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,16 +104,6 @@ $.config = {router: false}
|
|||||||
//调用mui.init方法
|
//调用mui.init方法
|
||||||
$.init()
|
$.init()
|
||||||
|
|
||||||
//判断是否登录
|
|
||||||
function checkIsLogin(){
|
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
|
||||||
$('#dataList').hide();
|
|
||||||
$('#noData').show();
|
|
||||||
}else{
|
|
||||||
selectEvaluateList();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 房产用途 */
|
/* 房产用途 */
|
||||||
$(document).on('click','.open-vertical-modal', function () {
|
$(document).on('click','.open-vertical-modal', function () {
|
||||||
//获取对应<li>栏目存储的houseinfo id
|
//获取对应<li>栏目存储的houseinfo id
|
||||||
@@ -167,7 +157,6 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询房产评估列表AJAX请求
|
//查询房产评估列表AJAX请求
|
||||||
function selectEvaluateList(){
|
function selectEvaluateList(){
|
||||||
//先清空列表
|
//先清空列表
|
||||||
@@ -178,18 +167,17 @@ function selectEvaluateList(){
|
|||||||
params: {}
|
params: {}
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var resultsMap = response.data.data;
|
var resultsMap = response.data.data;
|
||||||
var results = resultsMap.houseInfoList;
|
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
|
||||||
if(resultsMap.houseInfoList.length=0){
|
|
||||||
$('#dataList').hide();
|
$('#dataList').hide();
|
||||||
$('#noData').show();
|
$('#noData').show();
|
||||||
}else{
|
}else{
|
||||||
$('#dataList').show();
|
$('#dataList').show();
|
||||||
$('#noData').hide();
|
$('#noData').hide();
|
||||||
|
var results = resultsMap.houseInfoList;
|
||||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||||
//构造数据列表
|
//构造数据列表
|
||||||
htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
|
htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
|
||||||
|
|
||||||
//动态追加内容
|
//动态追加内容
|
||||||
$('.list-block ul').html(htmlContent);
|
$('.list-block ul').html(htmlContent);
|
||||||
//添加loading等待效果
|
//添加loading等待效果
|
||||||
@@ -260,18 +248,20 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
|||||||
return htmlContent;
|
return htmlContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
//界面加载
|
|
||||||
$(document).ready(function () {
|
|
||||||
checkIsLogin();
|
|
||||||
});
|
|
||||||
|
|
||||||
function openaddWindow(){
|
function openaddWindow(){
|
||||||
clicked('/views/house/add.html',true,false,{},{},function(){
|
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||||
window.location.reload();
|
|
||||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//判断是否登录
|
||||||
|
function checkIsLogin(){
|
||||||
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
|
$('#dataList').hide();
|
||||||
|
$('#noData').show();
|
||||||
|
}else{
|
||||||
|
selectEvaluateList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
checkIsLogin()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,68 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>贷款申请</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
|
<link rel="stylesheet" href="../../css/sm.css">
|
||||||
|
<link rel="stylesheet" href="../../css/main.css">
|
||||||
|
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.content{background:url(../../images/bottomBg01.png) no-repeat center bottom #fff;background-size:120%;}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="page-group">
|
||||||
|
<div class="page page-current">
|
||||||
|
<header class="bar bar-nav barBorder">
|
||||||
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
|
<span class="icon icon-left"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">贷款申请</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content">
|
||||||
|
<div class="resultBox">
|
||||||
|
<img src="../../images/loan-img02.png">
|
||||||
|
<p style="font-size:1rem;margin-bottom:2rem;">提交成功</p>
|
||||||
|
<span>我们会在1个工作日内联系您<br>请注意接听来电</span>
|
||||||
|
</div>
|
||||||
|
<div class="content-block">
|
||||||
|
<p><a href="#" class="button button-big button-fill theme" id="return_btn" onclick="back();">返回</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||||
|
Zepto = $
|
||||||
|
$.config = {router: false}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/light7-2.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/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/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>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>关于我们</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../../css/sm.css">
|
||||||
|
<link rel="stylesheet" href="../../css/main.css">
|
||||||
|
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="page-group">
|
||||||
|
<div class="page page-current">
|
||||||
|
<header class="bar bar-nav">
|
||||||
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
|
<span class="icon icon-left"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">关于我们</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content">
|
||||||
|
<div class="list-block media-list mb05">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title-row">
|
||||||
|
<div class="item-title">客服电话</div>
|
||||||
|
<div class="item-after">400-188-3787</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title-row">
|
||||||
|
<div class="item-title">Email</div>
|
||||||
|
<div class="item-after">service@fangjia.com</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="list-block media-list mb05">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a onclick="clicked('${basePath}/user/agreement',true);" class="item-link item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title-row">
|
||||||
|
<div class="item-title">服务协议</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="content-block">
|
||||||
|
<p style="text-align:center;margin-top:5rem;">V1.1<br>上海估家网络科技有限公司</p>
|
||||||
|
<p style="text-align:center;"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||||
|
Zepto = $
|
||||||
|
$.config = {router: false}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="${basePath}/js/light7.js?version=${version!}" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="${basePath}/js/cn.js?version=${version!}" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="${basePath}/js/common.js?version=${version!}"></script>
|
||||||
|
<#include "/monitor/monitor.html">
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>管理设置</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../../css/sm.css">
|
||||||
|
<link rel="stylesheet" href="../../css/main.css">
|
||||||
|
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="page-group">
|
||||||
|
<div class="page page-current">
|
||||||
|
<header class="bar bar-nav">
|
||||||
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
|
<span class="icon icon-left"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">管理设置1</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content">
|
||||||
|
<div class="list-block media-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a onclick="clicked('about.html',true);" class="item-link item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title-row">
|
||||||
|
<div class="item-title">关于我们</div>
|
||||||
|
<div class="item-after">V1.1</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="content-block">
|
||||||
|
<p>微信交流群</p>
|
||||||
|
<img src="images/wx.png" style="width:180px;margin:0 auto;">
|
||||||
|
<p style="text-align:center;">扫码加入</p>
|
||||||
|
<p>商务合作QQ:275525147</p>
|
||||||
|
<p style="margin-top:2rem;"><a href="01_index.html" class="button button-big button-fill theme">退出登录</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||||
|
Zepto = $
|
||||||
|
$.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">
|
||||||
|
|
||||||
|
mui.init({
|
||||||
|
gestureConfig: {
|
||||||
|
longtap: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function download(imgUrl) {
|
||||||
|
var suffix = '/qun.png';
|
||||||
|
var downLoader = plus.downloader.createDownload(imgUrl, {
|
||||||
|
method: 'GET',
|
||||||
|
filename: '_downloads/image' + suffix
|
||||||
|
}, function(download, status) {
|
||||||
|
var fileName = download.filename;
|
||||||
|
plus.gallery.save(fileName, function() {
|
||||||
|
plus.ui.alert("保存成功");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
downLoader.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*mui.plusReady(function() {
|
||||||
|
document.getElementById("img").addEventListener("longtap", function(event) {
|
||||||
|
download("${basePath}/img/${advertisement.imgId?c}");
|
||||||
|
})
|
||||||
|
});*/
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
|
<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<button class="button button-link button-nav pull-right" onclick="clicked(BASE_PATH+'/user/setting', true)">
|
<button class="button button-link button-nav pull-right" onclick="clicked('../setting/setting.html', true)">
|
||||||
<span class="icon icon-set"></span>
|
<span class="icon icon-set"></span>
|
||||||
</button>
|
</button>
|
||||||
</header>
|
</header>
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
|
<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<button class="button button-link button-nav pull-right" onclick="clicked(BASE_PATH+'/user/setting',true)">
|
<button class="button button-link button-nav pull-right" onclick="clicked('../setting/setting.html', true)">
|
||||||
<span class="icon icon-set"></span>
|
<span class="icon icon-set"></span>
|
||||||
</button>
|
</button>
|
||||||
</header>
|
</header>
|
||||||
@@ -257,6 +257,9 @@ $(".cardInfo01,.cardInfo02").on("click", function(){
|
|||||||
//初始化init
|
//初始化init
|
||||||
$.init();
|
$.init();
|
||||||
|
|
||||||
|
//定义个人手机号,贷款页面需要传参数
|
||||||
|
var _mobile;
|
||||||
|
|
||||||
var tab = new Vue({
|
var tab = new Vue({
|
||||||
el:"#tab",
|
el:"#tab",
|
||||||
data:{
|
data:{
|
||||||
@@ -298,6 +301,11 @@ function gotoUpdatePass(){
|
|||||||
clicked('/views/user/updatePass.html',true,false,{},{},function(){})
|
clicked('/views/user/updatePass.html',true,false,{},{},function(){})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//调整房产申请贷款
|
||||||
|
function gotoLoanApply(houseId, city){
|
||||||
|
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){})
|
||||||
|
}
|
||||||
|
|
||||||
//注册'infinite'事件处理函数
|
//注册'infinite'事件处理函数
|
||||||
$(document).on('infinite', '.infinite-scroll',function() {
|
$(document).on('infinite', '.infinite-scroll',function() {
|
||||||
if($("#tabList1").hasClass("active")){
|
if($("#tabList1").hasClass("active")){
|
||||||
@@ -382,6 +390,8 @@ function selectUserInfo(){
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var result = response.data.data;
|
var result = response.data.data;
|
||||||
var mobile = result.mobile;
|
var mobile = result.mobile;
|
||||||
|
//加载个人信息时候为该变量赋值
|
||||||
|
_mobile = result.mobile;
|
||||||
$('#user_mobile').html(mobile.substring(0,3)+'****'+mobile.substring(7)+'<br><span class="tag"><!--<small>土豪</small>--></span>');
|
$('#user_mobile').html(mobile.substring(0,3)+'****'+mobile.substring(7)+'<br><span class="tag"><!--<small>土豪</small>--></span>');
|
||||||
if(result.headImg != null && result.headImg.length > 0){
|
if(result.headImg != null && result.headImg.length > 0){
|
||||||
$('#user_headImg').attr('src', result.headImg);
|
$('#user_headImg').attr('src', result.headImg);
|
||||||
|
|||||||
Reference in New Issue
Block a user