Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -33,7 +33,8 @@ function addCollect(){
|
|||||||
$(".collection02").show();
|
$(".collection02").show();
|
||||||
$.toast("随时掌握小区动态");
|
$.toast("随时掌握小区动态");
|
||||||
}
|
}
|
||||||
plus.webview.getWebviewById('/views/user/userInfo.html').reload();
|
alert(12)
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@@ -65,7 +66,7 @@ function removeCollect(){
|
|||||||
$(".collection01").show();
|
$(".collection01").show();
|
||||||
$.toast("取消关注");
|
$.toast("取消关注");
|
||||||
}
|
}
|
||||||
plus.webview.getWebviewById('/views/user/userInfo.html').reload();
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ Vue.component('city_increase_ranking',{
|
|||||||
'<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>'+
|
'<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,$event)">关注</i>'+
|
'<i class="button theme collection collection01" v-bind:class="{dn:ci.follow}" v-on:click="follow(ci.city,$event)">关注</i>'+
|
||||||
'<i class="button collection collection02 dn" v-on:click="abolish(ci.city,$event)">取消</i>'+
|
'<i class="button collection collection02" v-bind:class="{dn:!ci.follow}" v-on:click="abolish(ci.city,$event)">取消</i>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
|
|||||||
@@ -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,$event)">关注</i>'+
|
'<i class="button theme collection collection01" v-bind:class="{dn:cp.follow}" v-on:click="follow(cp.city,$event)">关注</i>'+
|
||||||
'<i class="button collection collection02 dn" v-on:click="abolish(cp.city,$event)">取消</i>'+
|
'<i class="button collection collection02" v-bind:class="{dn:!cp.follow}" v-on:click="abolish(cp.city,$event)">取消</i>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<h1 class="title">我的房产</h1>
|
<h1 class="title">我的房产</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="content infinite-scroll infinite-scroll-bottom">
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||||
<div class="card cardPrice cardPrice01" id="houseInfo">
|
<div class="card cardPrice cardPrice01" id="houseInfo">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span>房产总值</span>
|
<span>房产总值</span>
|
||||||
@@ -93,29 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="page-group" style="display: none;" id="page-group-login-temp">
|
<div class="page-group" style="display: none;" id="page-group-login-temp"></div>
|
||||||
<div class="page page-current">
|
|
||||||
<!-- 加载loading页 -->
|
|
||||||
<div class="loadingBg">
|
|
||||||
<div class="infinite-scroll-preloader">
|
|
||||||
<div class="preloader"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
|
||||||
<div class="list-block media-list">
|
|
||||||
<!-- 动态封装部分 begin -->
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
<!-- 动态封装部分 end -->
|
|
||||||
</div>
|
|
||||||
<div class="content-block" style="display: none;">
|
|
||||||
<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||||
<script>
|
<script>
|
||||||
@@ -149,7 +127,6 @@ var baseInfo = new Vue({
|
|||||||
oneYearUpDownPrice: ""
|
oneYearUpDownPrice: ""
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 加载flag
|
// 加载flag
|
||||||
var loading = false;
|
var loading = false;
|
||||||
|
|
||||||
@@ -181,7 +158,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
|||||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
// 删除加载提示符
|
// 删除加载提示符
|
||||||
$('.infinite-scroll-preloader').remove();
|
$('.infinite-scroll-preloader').hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//控制查询下一页的数据
|
//控制查询下一页的数据
|
||||||
@@ -218,19 +195,20 @@ function selectHouseInfoList(){
|
|||||||
$('#page-group-nologin').hide();
|
$('#page-group-nologin').hide();
|
||||||
$('#page-group-login').show();
|
$('#page-group-login').show();
|
||||||
}
|
}
|
||||||
|
$('#page-group-login-temp').hide();
|
||||||
if(resultList != null && resultList.length == 0){
|
if(resultList != null && resultList.length == 0){
|
||||||
// 删除加载提示符
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
$('.infinite-scroll-preloader').remove();
|
|
||||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
|
||||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(resultsMap.houseInfoPageList.currentPage == resultsMap.houseInfoPageList.totalPages){
|
if(resultsMap.houseInfoPageList.currentPage == resultsMap.houseInfoPageList.totalPages){
|
||||||
//如果此次查询刚好是page = totalPages
|
//如果此次查询刚好是page = totalPages
|
||||||
// 删除加载提示符
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
$('.infinite-scroll-preloader').remove();
|
|
||||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
|
||||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').hide();
|
||||||
}
|
}
|
||||||
//封装list数据
|
//封装list数据
|
||||||
var dataObj = [];
|
var dataObj = [];
|
||||||
@@ -253,14 +231,39 @@ function selectHouseInfoList(){
|
|||||||
//判断是否登录
|
//判断是否登录
|
||||||
function checkIsLogin(){
|
function checkIsLogin(){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
$('#page-group-login').hide();
|
|
||||||
$('#page-group-nologin').show();
|
$('#page-group-nologin').show();
|
||||||
|
$('#page-group-login').hide();
|
||||||
|
$('#page-group-login-temp').hide();
|
||||||
}else{
|
}else{
|
||||||
//控制显示
|
//控制显示
|
||||||
|
$('#page-group-login-temp').html('<div class="page page-current"><div class="loadingBg"><div class="infinite-scroll-preloader"><div class="preloader"></div></div></div></div>');
|
||||||
|
$('#page-group-login-temp').show();
|
||||||
|
$('#page-group-nologin').hide();
|
||||||
|
$('#page-group-login').hide();
|
||||||
|
//初始化分页参数, 防止回调时候重新请求出错
|
||||||
|
initParams();
|
||||||
selectHouseInfoList();
|
selectHouseInfoList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//初始化分页参数, 防止回调时候重新请求出错
|
||||||
|
function initParams(){
|
||||||
|
loading = false;
|
||||||
|
page = undefined;
|
||||||
|
pageSize = undefined;
|
||||||
|
totalPages = undefined;
|
||||||
|
totalRecords = undefined;
|
||||||
|
lastIndex = undefined;
|
||||||
|
itemsPerLoad = undefined;
|
||||||
|
maxItems = 100;
|
||||||
|
//清空构造的container
|
||||||
|
$('.infinite-scroll-bottom .list-container').html('');
|
||||||
|
//不用考虑下拉刷新的还在不在,先移除在添加
|
||||||
|
$('.infinite-scroll-preloader').show();
|
||||||
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
$.attachInfiniteScroll('.infinite-scroll');
|
||||||
|
}
|
||||||
|
|
||||||
//跳转添加房产
|
//跳转添加房产
|
||||||
function gotoAddHouse(){
|
function gotoAddHouse(){
|
||||||
clicked('/views/house/add.html',true,false,{},{type:0},function(){
|
clicked('/views/house/add.html',true,false,{},{type:0},function(){
|
||||||
|
|||||||
@@ -525,7 +525,7 @@ function collect(){
|
|||||||
$(".collection").removeClass("collection02")
|
$(".collection").removeClass("collection02")
|
||||||
$(".collection i").removeClass("icon-collection02")
|
$(".collection i").removeClass("icon-collection02")
|
||||||
}
|
}
|
||||||
plus.webview.getWebviewById('/views/user/userInfo.html').reload()
|
plus.webview.getWebviewById('views/user/userInfo.html').reload()
|
||||||
}
|
}
|
||||||
$.toast(msg);
|
$.toast(msg);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user