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

This commit is contained in:
xuhe@fangjia.com
2018-04-10 13:54:51 +08:00
18 changed files with 3313 additions and 152 deletions
+23 -23
View File
@@ -70,7 +70,7 @@
</span>
</div>
</div>
<div class="card cardPrice cardPrice02" id="evaluate_msg">
<!--<div class="card cardPrice cardPrice02" id="evaluate_msg">
<div class="card-footer">
<span>
<em><strong>{{evaluate_percent}}</strong>%<i v-bind:class="arrow"></i></em>
@@ -80,7 +80,7 @@
<label style="color:#666;">{{msg}}</label>
</span>
</div>
</div>
</div>-->
<div class="content-block priceRecovery" id="price_feedback">
<p><label>估的准吗?</label></p>
<p><small>您的反馈很重要,是我们努力的动力</small></p>
@@ -164,15 +164,15 @@ $.config = {router: false}
words:""
}
})
var evaluate_msg = new Vue({
el:"#evaluate_msg",
data:{
evaluate_percent:"",
evaluate_words:"",
arrow:"",
msg:""
}
})
// var evaluate_msg = new Vue({
// el:"#evaluate_msg",
// data:{
// evaluate_percent:"",
// evaluate_words:"",
// arrow:"",
// msg:""
// }
// })
var price_feedback = new Vue({
@@ -228,18 +228,18 @@ $.config = {router: false}
}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
// 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)
//按照时间范围加载数据
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -55,10 +55,10 @@
<em><strong>{{oneYearUpDownPrice}}</strong>万<i id="oneYearUpDownPrice" class="icon icon-arrow-red"></i></em>
<label>近1年升值额</label>
</span>
<span>
<!--<span>
<em><strong>待定</strong><i class="icon icon-arrow-red"></i></em>
<label>资产排名</label>
</span>
</span>-->
</div>
</div>
<div class="list-block media-list">
+80
View File
@@ -0,0 +1,80 @@
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">&nbsp;</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}}</div>'+
'<div class="col-20">{{mf.city}}</div>'+
'<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.avgPrice+"元/㎡"}}</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", {
params: {
}
}).then(function(response){
myFocusDatas.myFocusList = response.data.data.results
}).catch(function(error){
console.log(error)
})
}
},mounted:function(){
this.loadMyFocus();
}
})
//我的关注
var myFocus = new Vue({
el:"#myFocus",
data:{
myfocusList:[{num:1,city:"test1",avgPrice:"123",percent:"",ranking:"1"},
{num:2,city:"test2",avgPrice:"321",percent:"6.6",ranking:"2"}
]
}
})
//涨幅榜
var tabCityRanking1 = new Vue({
el:"tabCityRanking1"
})
//潜力绑
var tabCityRanking2 = new Vue({
el:"tabCityRanking2"
})
+1 -1
View File
@@ -21,7 +21,7 @@
<div class="page-group" id="app">
<div class="page page-current">
<header class="bar bar-nav">
<button class="button button-link button-nav pull-left" onclick="back()">
<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>
+28 -2
View File
@@ -116,8 +116,9 @@
</header>
<div class="content">
<div class="topBg01">
<img src="../../images/headPortrait.png">
<p>137****6586<br><span class="tag"><!--<small>土豪</small>--></span></p>
<!-- 目前是登录后点击个人头像设置密码 -->
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
</div>
<div class="topic">
<div class="topicContent" style="padding-left:0;padding-right:0;">
@@ -271,6 +272,8 @@ function checkIsLogin(){
$('#page-group-login').hide();
$('#page-group-nologin').show();
}else{
//加载个人信息
selectUserInfo();
//加载我的关注
addEstate(mf_itemsPerLoad, 0);
//加载我的房产
@@ -283,12 +286,18 @@ function checkIsLogin(){
}
}
//跳转登录方法, 考虑回调
function gotoLogin(){
clicked('/views/user/passLogin.html',true,false,{},{},function(){
checkIsLogin();
})
}
//跳转设置密码方法
function gotoUpdatePass(){
clicked('/views/user/updatePass.html',true,false,{},{},function(){})
}
//注册'infinite'事件处理函数
$(document).on('infinite', '.infinite-scroll',function() {
if($("#tabList1").hasClass("active")){
@@ -365,6 +374,23 @@ $(document).on('infinite', '.infinite-scroll',function() {
}
});
//个人信息展示
function selectUserInfo(){
axios.get(BASE_PATH + "/rest/user/info",
{
params: {}
}).then(function (response) {
var result = response.data.data;
var 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);
}
}).catch(function (error) {
console.log(error);
});
}
$(document).ready(function () {
checkIsLogin();
});