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{
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<span class="mui-tab-label">首页</span>
|
||||
</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-tab-label">行情</span>
|
||||
</a>
|
||||
@@ -48,11 +48,11 @@
|
||||
localStorage.removeItem("user_token");
|
||||
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');
|
||||
//mui初始化
|
||||
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 = {
|
||||
top: '0',
|
||||
bottom: '50px',
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//var cityChooseOption = {markFocus:0,clickFocus:0}
|
||||
|
||||
Vue.component('city_choose',{
|
||||
props:['city1'],
|
||||
template:
|
||||
' <div class="popup popup-about popup-about01"> '+
|
||||
' <div class="bar"> '+
|
||||
@@ -24,7 +25,7 @@ Vue.component('city_choose',{
|
||||
' <div id="cityContainer" class="container"> '+
|
||||
' <div class="cityGPS"> '+
|
||||
' <div class="city-list01 close-popup"> '+
|
||||
' <p class="nowCity">上海</p> '+
|
||||
' <p class="nowCity">{{city1}}</p> '+
|
||||
' <small>当前城市</small> '+
|
||||
' </div> '+
|
||||
' </div> '+
|
||||
|
||||
@@ -24,11 +24,11 @@ Vue.component('city_increase_ranking',{
|
||||
'<div class="col-20">{{ci.city}}</div>'+
|
||||
'<div class="col-25">{{!ci.cityTopMonthAvgPrice||ci.cityTopMonthAvgPrice==""?"暂无":""+ci.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
||||
'<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 class="col-20">'+
|
||||
'<i class="button theme collection collection01" v-on:click="follow(ci.city)">关注</i>'+
|
||||
'<i class="button collection collection02 dn" v-on:click="abolish(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,$event)">取消</i>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
@@ -47,11 +47,21 @@ Vue.component('city_increase_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
follow:function(city){
|
||||
alert(city)
|
||||
follow:function(city,event){
|
||||
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){
|
||||
alert(city)
|
||||
abolish:function(city,event){
|
||||
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(){
|
||||
|
||||
@@ -23,7 +23,7 @@ Vue.component('city_potential_ranking',{
|
||||
'<div class="col-5">{{index+1}}</div>'+
|
||||
'<div class="col-20">{{cp.city}}</div>'+
|
||||
'<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 class="col-25">'+
|
||||
'<span class="star">'+
|
||||
@@ -33,8 +33,8 @@ Vue.component('city_potential_ranking',{
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="col-20">'+
|
||||
'<i class="button theme collection collection01" v-on:click="follow(cp.city)">关注</i>'+
|
||||
'<i class="button collection collection02 dn" v-on:click="abolish(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,$event)">取消</i>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
@@ -48,7 +48,6 @@ Vue.component('city_potential_ranking',{
|
||||
methods:{
|
||||
loadCityPotentialRanking:function(){
|
||||
axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){
|
||||
// alert(1)
|
||||
list = response.data.data;
|
||||
$(list).each(function(i){
|
||||
var index = this.index;
|
||||
@@ -66,16 +65,20 @@ Vue.component('city_potential_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
follow:function(city){
|
||||
alert(city)
|
||||
follow:function(city,event){
|
||||
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){
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
abolish:function(city){
|
||||
alert(city)
|
||||
abolish:function(city,event){
|
||||
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){
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
@@ -1,58 +1,67 @@
|
||||
var myFocusDatas = {myFocusList: []};
|
||||
Vue.component('my_focus',{
|
||||
template:
|
||||
'<div class="topic">'+
|
||||
'<div class="topicTitle">我的关注</div>'+
|
||||
'<div class="list-block media-list cityList" id="myFocus">'+
|
||||
'<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">上月均价</div>'+
|
||||
'<div class="col-25">近30天涨跌幅</div>'+
|
||||
'<div class="col-20">全国涨幅排名</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'<li v-for="(mf,index) in myFocusList">'+
|
||||
'<a class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-subtitle row">'+
|
||||
'<div class="col-5">{{index+1}}</div>'+
|
||||
'<div class="col-20">{{mf.city}}</div>'+
|
||||
'<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
||||
'<div class="col-25">'+
|
||||
'<em class="up">{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":mf.oneMonthUpDownRange+"%"}}<i class="icon icon-arrow-red"></i></em>'+
|
||||
'</div>'+
|
||||
'<div class="col-20">'+
|
||||
'<em>{{mf.rangeLevel}}</em>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</div>'+
|
||||
'</div>'
|
||||
,
|
||||
data:function(){
|
||||
return myFocusDatas;
|
||||
},
|
||||
methods:{
|
||||
loadMyFocus:function(){
|
||||
axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
|
||||
myFocusDatas.myFocusList = response.data.data;
|
||||
}).catch(function(error){
|
||||
//alert(2)
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
},mounted:function(){
|
||||
this.loadMyFocus();
|
||||
}
|
||||
|
||||
})
|
||||
template:
|
||||
'<div class="topic">'+
|
||||
'<div class="topicTitle">我的关注</div>'+
|
||||
'<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">上月均价</div>'+
|
||||
'<div class="col-25">近30天涨跌幅</div>'+
|
||||
'<div class="col-20">全国涨幅排名</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'<li v-for="(mf,index) in myFocusList">'+
|
||||
'<a class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-subtitle row">'+
|
||||
'<div class="col-5">{{index+1}}</div>'+
|
||||
'<div class="col-20">{{mf.city}}</div>'+
|
||||
'<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
|
||||
'<div class="col-25">'+
|
||||
'<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 class="col-20">'+
|
||||
'<em>{{mf.rangeLevel}}</em>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</div>'+
|
||||
'</div>'
|
||||
,
|
||||
data:function(){
|
||||
return myFocusDatas;
|
||||
},
|
||||
methods:{
|
||||
loadMyFocus:function(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$("#myFocusFirstPage").hide()
|
||||
$("#myFocus").hide();
|
||||
}else{
|
||||
axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
|
||||
if(response.data.data.length==0){
|
||||
$("#myFocusFirstPage").hide();
|
||||
$("#myFocus").hide();
|
||||
}else{
|
||||
myFocusDatas.myFocusList = response.data.data;
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
},mounted:function(){
|
||||
this.loadMyFocus();
|
||||
}
|
||||
|
||||
})
|
||||
@@ -47,7 +47,7 @@
|
||||
</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>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -81,7 +81,7 @@
|
||||
</span>
|
||||
</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><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||
<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/log/log_stat.js" ></script>
|
||||
<script>
|
||||
var houseStatus = ""
|
||||
var hid = '104631167348637696';
|
||||
var house_info = new Vue({
|
||||
el:'#house_info',
|
||||
data:{
|
||||
name:"",
|
||||
city_region:"",
|
||||
house_type:""
|
||||
}
|
||||
})
|
||||
var house_price = new Vue({
|
||||
el:"#house_price",
|
||||
data:{
|
||||
total_price:"",
|
||||
avg_price:"",
|
||||
percentage_30:"",
|
||||
arrow:"",
|
||||
city:"",
|
||||
compare_word:"",
|
||||
compare_money:"",
|
||||
words:""
|
||||
}
|
||||
})
|
||||
// var evaluate_msg = new Vue({
|
||||
// el:"#evaluate_msg",
|
||||
// data:{
|
||||
// evaluate_percent:"",
|
||||
// evaluate_words:"",
|
||||
// arrow:"",
|
||||
// msg:""
|
||||
// }
|
||||
// })
|
||||
|
||||
|
||||
var price_feedback = new Vue({
|
||||
el:"#price_feedback",
|
||||
data:{
|
||||
|
||||
},
|
||||
methods:{
|
||||
feedback:function(i,event){
|
||||
if($(event.target).hasClass("theme")){
|
||||
return;
|
||||
}
|
||||
//return;
|
||||
axios.post("/rest/evaluate/feedBack",{
|
||||
hid:hid,
|
||||
reason:i
|
||||
}).then(function(response){
|
||||
// document.addEventListener('plusready', onPlusReady, false);
|
||||
// function onPlusReady(){
|
||||
// var self = plus.webview.currentWebview();
|
||||
// var hid = self.hid;
|
||||
var houseStatus = ""
|
||||
hid = '104631167348637696';
|
||||
var house_info = new Vue({
|
||||
el:'#house_info',
|
||||
data:{
|
||||
name:"",
|
||||
city_region:"",
|
||||
house_type:""
|
||||
}
|
||||
})
|
||||
var house_price = new Vue({
|
||||
el:"#house_price",
|
||||
data:{
|
||||
total_price:"",
|
||||
avg_price:"",
|
||||
percentage_30:"",
|
||||
arrow:"",
|
||||
city:"",
|
||||
compare_word:"",
|
||||
compare_money:"",
|
||||
words:""
|
||||
}
|
||||
})
|
||||
// var evaluate_msg = new Vue({
|
||||
// el:"#evaluate_msg",
|
||||
// data:{
|
||||
// evaluate_percent:"",
|
||||
// evaluate_words:"",
|
||||
// arrow:"",
|
||||
// msg:""
|
||||
// }
|
||||
// })
|
||||
|
||||
|
||||
var price_feedback = new Vue({
|
||||
el:"#price_feedback",
|
||||
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(){
|
||||
|
||||
}).catch(function(error){console.log(error)})
|
||||
}
|
||||
},mounted(){
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
axios.get("/rest/evaluate/queryHouseInfo",{
|
||||
params:{id : hid}
|
||||
}).then(function(response){
|
||||
if(response.data.status){
|
||||
h = response.data.data
|
||||
house_info.name = h.name
|
||||
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_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
|
||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
|
||||
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
||||
if(h.oneMonthUpDownRange<0){
|
||||
house_price.arrow="icon icon-arrow-green"
|
||||
house_price.percentage_30=-h.oneMonthUpDownRange
|
||||
}else if(h.oneMonthUpDownRange>0){
|
||||
house_price.arrow="icon icon-arrow-red"
|
||||
house_price.percentage_30=h.oneMonthUpDownRange
|
||||
}else{
|
||||
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;
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
// }
|
||||
|
||||
axios.get("/rest/evaluate/queryHouseInfo",{
|
||||
params:{id : hid}
|
||||
}).then(function(response){
|
||||
if(response.data.status){
|
||||
h = response.data.data
|
||||
house_info.name = h.name
|
||||
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_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
|
||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
|
||||
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
||||
if(h.oneMonthUpDownRange<0){
|
||||
house_price.arrow="icon icon-arrow-green"
|
||||
house_price.percentage_30=-h.oneMonthUpDownRange
|
||||
}else if(h.oneMonthUpDownRange>0){
|
||||
house_price.arrow="icon icon-arrow-red"
|
||||
house_price.percentage_30=h.oneMonthUpDownRange
|
||||
}else{
|
||||
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;
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
//添加管理AJAX请求
|
||||
function addManagement(id, houseStatus, liveStatus){
|
||||
@@ -268,6 +281,9 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
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{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
@@ -293,6 +309,7 @@ $(".content-block .button").on("click", function () {
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
var houseStatus = 0;
|
||||
$.modal({
|
||||
title: '房产用途',
|
||||
verticalButtons: true,
|
||||
@@ -467,6 +484,10 @@ function showChat(categories, series) {
|
||||
}
|
||||
})
|
||||
}
|
||||
function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1248,8 +1248,8 @@ $.config = {router: false}
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var houseStatus; //= "186182250936643584";
|
||||
var type = 1;
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
var type = 1;
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
type = self.type; //type为1时是我的房产
|
||||
@@ -1258,7 +1258,6 @@ function onPlusReady(){
|
||||
}else{
|
||||
$("#liveStatusDiv").hide();
|
||||
}
|
||||
$("#liveStatusDiv").show();
|
||||
houseStatus = 0;
|
||||
var city_map = localStorage.getItem("init_city");
|
||||
if(city_map){
|
||||
@@ -1765,7 +1764,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data.success){
|
||||
if(response.data.data && response.data.data.success){
|
||||
var district = response.data.data
|
||||
$("#input_city").val(district.city)
|
||||
$("input[name='address']").val(district.address)
|
||||
@@ -1776,7 +1775,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
}else{
|
||||
// $("#nextBtn").attr("disabled", false)
|
||||
console.log("error");
|
||||
$.toast(result.message)
|
||||
$.toast(response.data.message)
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
@@ -1830,20 +1829,13 @@ function addEvaluation(){
|
||||
houseStatus:1}
|
||||
}
|
||||
axios.get("/rest/index/checkEvalPrice", {
|
||||
params: {
|
||||
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()
|
||||
}
|
||||
params: data
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
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})
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<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="#tabChart2" class="tab-link button" id="tabRentDiv">租金</a>
|
||||
</div>
|
||||
@@ -478,7 +478,7 @@ function loadChart(){
|
||||
}
|
||||
|
||||
/* button状态切换 */
|
||||
$(".content-block .button").on("click", function () {
|
||||
$("#trendTabDiv .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
@@ -28,49 +28,31 @@
|
||||
|
||||
<div class="page-group">
|
||||
<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">
|
||||
<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>
|
||||
</button>
|
||||
</button>-->
|
||||
<h1 class="title">房产行情</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="swiper-container" data-space-between="10">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<div class="card cardPrice cardPrice01 cardCity">
|
||||
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo">
|
||||
<div class="card-header">
|
||||
<label>全国</label>
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<span>2018年1月全国366个城市房价</span>
|
||||
<span>{{nowYear}}年{{nowMonth}}月全国{{cityCount}}个城市房价</span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner row">
|
||||
<span class="col-50">
|
||||
<em class="up"><strong>37</strong>%</em>
|
||||
<em class="up"><strong>{{upRate}}</strong>%</em>
|
||||
<label>城市上涨</label>
|
||||
</span>
|
||||
<span class="col-50">
|
||||
<em class="down"><strong>63</strong>%</em>
|
||||
<em class="down"><strong>{{downRate}}</strong>%</em>
|
||||
<label>城市下跌</label>
|
||||
</span>
|
||||
</div>
|
||||
@@ -78,144 +60,82 @@
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topicTitle">我的关注</div>
|
||||
<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 id="myFocusFirstPage">
|
||||
<my_focus></my_focus>
|
||||
</div>
|
||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01">
|
||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank">
|
||||
<div class="cardNearbyWin">
|
||||
<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"><em class="up">8.98%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="card cardNearby cardRanking" v-for="item in datas">
|
||||
<div class="card-header" v-if="item.type==0">
|
||||
城市涨幅排行
|
||||
</div>
|
||||
<div class="card-footer"><em>15689元/㎡</em></div>
|
||||
</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 class="card-header" v-else-if="item.type==1">
|
||||
城市潜力排行
|
||||
</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>
|
||||
<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"><em class="up">2.89%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="card-header" v-else-if="item.type==2">
|
||||
城市均价排行
|
||||
</div>
|
||||
<div class="card-header"><em>①</em>{{item.city}}</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner" v-if="item.type==0">
|
||||
<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 class="card-footer"><em>12283元/㎡</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -224,58 +144,15 @@
|
||||
<div class="topicContent cityImgBox row">
|
||||
<div class="col-33">
|
||||
<img src="../../images/cityImg01.png">
|
||||
<p>青岛</p>
|
||||
<p>北京</p>
|
||||
</div>
|
||||
<div class="col-33">
|
||||
<img src="../../images/cityImg02.png">
|
||||
<p>三亚</p>
|
||||
<p>上海</p>
|
||||
</div>
|
||||
<div class="col-33">
|
||||
<img src="../../images/cityImg03.png">
|
||||
<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>
|
||||
<p>深圳</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -581,9 +458,9 @@
|
||||
|
||||
<!-- About Popup -->
|
||||
<div id="cityChoose">
|
||||
<city_choose></city_choose>
|
||||
<city_choose v-bind:city1="city"></city_choose>
|
||||
</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>
|
||||
|
||||
@@ -606,18 +483,150 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
|
||||
<script>
|
||||
var myFocus = new Vue({
|
||||
el:"#myFocus"
|
||||
})
|
||||
var cityIncreaseRanking = new Vue({
|
||||
el:"#cityIncreaseRanking"
|
||||
})
|
||||
var cityPotentialRanking = new Vue({
|
||||
el:"#cityPotentialRanking"
|
||||
})
|
||||
var cityChoose = new Vue({
|
||||
el:"#cityChoose"
|
||||
})
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var city = "";
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
//province = p.address.province;
|
||||
city = p.address.city;
|
||||
//region = p.address.district;
|
||||
}, function(e){
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
alert(city)
|
||||
var myFocus = new Vue({
|
||||
el:"#myFocus"
|
||||
})
|
||||
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>
|
||||
|
||||
@@ -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字,并添加... */
|
||||
$(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 () {
|
||||
// markFocus();
|
||||
// $.popup(".popup-about01");
|
||||
@@ -724,31 +701,14 @@ function markFocus(){
|
||||
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);
|
||||
});
|
||||
|
||||
/* 获取城市 */
|
||||
$(".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");
|
||||
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)
|
||||
});
|
||||
function addFocus(city){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
//reloadMyFocus()
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -168,6 +168,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
|
||||
//我的收藏查询请求
|
||||
function selectHouseInfoList(){
|
||||
axios.get(BASE_PATH + "/rest/index/ourHouseInfoList",
|
||||
@@ -182,6 +183,18 @@ function selectHouseInfoList(){
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
||||
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){
|
||||
// 删除加载提示符
|
||||
$('.infinite-scroll-preloader').remove();
|
||||
@@ -201,16 +214,8 @@ function selectHouseInfoList(){
|
||||
for(var i in resultList){
|
||||
dataObj.push(resultList[i])
|
||||
}
|
||||
// 上次加载的序号
|
||||
lastIndex = $('.cardInfo').length;
|
||||
//每次加载添加多少条目
|
||||
itemsPerLoad = resultList.length;
|
||||
//登录状态,但没有数据
|
||||
if(lastIndex == 0 && resultList.length ==0){
|
||||
//控制显示
|
||||
$('#page-group-nologin').hide();
|
||||
$('#page-group-login').show();
|
||||
}
|
||||
//请求后对page进行赋值
|
||||
page = resultsMap.houseInfoPageList.currentPage;
|
||||
pageSize = resultsMap.houseInfoPageList.limit;
|
||||
@@ -228,10 +233,8 @@ function checkIsLogin(){
|
||||
$('#page-group-login').hide();
|
||||
$('#page-group-nologin').show();
|
||||
}else{
|
||||
selectHouseInfoList();
|
||||
//控制显示
|
||||
/*$('#page-group-nologin').hide();
|
||||
$('#page-group-login').show();*/
|
||||
selectHouseInfoList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -104,16 +104,6 @@ $.config = {router: false}
|
||||
//调用mui.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 () {
|
||||
//获取对应<li>栏目存储的houseinfo id
|
||||
@@ -167,7 +157,6 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//查询房产评估列表AJAX请求
|
||||
function selectEvaluateList(){
|
||||
//先清空列表
|
||||
@@ -178,18 +167,17 @@ function selectEvaluateList(){
|
||||
params: {}
|
||||
}).then(function (response) {
|
||||
var resultsMap = response.data.data;
|
||||
var results = resultsMap.houseInfoList;
|
||||
if(resultsMap.houseInfoList.length=0){
|
||||
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
}else{
|
||||
$('#dataList').show();
|
||||
$('#noData').hide();
|
||||
var results = resultsMap.houseInfoList;
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||
//构造数据列表
|
||||
htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
|
||||
|
||||
//动态追加内容
|
||||
$('.list-block ul').html(htmlContent);
|
||||
//添加loading等待效果
|
||||
@@ -260,18 +248,20 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
return htmlContent;
|
||||
}
|
||||
|
||||
//界面加载
|
||||
$(document).ready(function () {
|
||||
checkIsLogin();
|
||||
});
|
||||
|
||||
function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{},function(){
|
||||
window.location.reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
}else{
|
||||
selectEvaluateList();
|
||||
}
|
||||
}
|
||||
checkIsLogin()
|
||||
</script>
|
||||
|
||||
</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();">
|
||||
<span class="icon icon-left"></span>
|
||||
</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>
|
||||
</button>
|
||||
</header>
|
||||
@@ -110,7 +110,7 @@
|
||||
<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</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>
|
||||
</button>
|
||||
</header>
|
||||
@@ -257,6 +257,9 @@ $(".cardInfo01,.cardInfo02").on("click", function(){
|
||||
//初始化init
|
||||
$.init();
|
||||
|
||||
//定义个人手机号,贷款页面需要传参数
|
||||
var _mobile;
|
||||
|
||||
var tab = new Vue({
|
||||
el:"#tab",
|
||||
data:{
|
||||
@@ -298,6 +301,11 @@ function gotoUpdatePass(){
|
||||
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'事件处理函数
|
||||
$(document).on('infinite', '.infinite-scroll',function() {
|
||||
if($("#tabList1").hasClass("active")){
|
||||
@@ -382,6 +390,8 @@ function selectUserInfo(){
|
||||
}).then(function (response) {
|
||||
var result = response.data.data;
|
||||
var mobile = result.mobile;
|
||||
//加载个人信息时候为该变量赋值
|
||||
_mobile = result.mobile;
|
||||
$('#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){
|
||||
$('#user_headImg').attr('src', result.headImg);
|
||||
|
||||
Reference in New Issue
Block a user