From dff3d054cbe8d69d152e0a93f2df9dfa3c32baef Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sun, 8 Apr 2018 10:52:23 +0800 Subject: [PATCH 01/14] YOUFANG1.1.2 --- fangija-zsyf/views/myfocus/myFocus.html | 253 ------------------------ fangija-zsyf/views/user/myFocus.js | 133 +++++++++++++ fangija-zsyf/views/user/userInfo.html | 44 ++--- 3 files changed, 147 insertions(+), 283 deletions(-) delete mode 100644 fangija-zsyf/views/myfocus/myFocus.html create mode 100644 fangija-zsyf/views/user/myFocus.js diff --git a/fangija-zsyf/views/myfocus/myFocus.html b/fangija-zsyf/views/myfocus/myFocus.html deleted file mode 100644 index 33464e9..0000000 --- a/fangija-zsyf/views/myfocus/myFocus.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - -我的 - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/fangija-zsyf/views/user/myFocus.js b/fangija-zsyf/views/user/myFocus.js new file mode 100644 index 0000000..4a3e9ed --- /dev/null +++ b/fangija-zsyf/views/user/myFocus.js @@ -0,0 +1,133 @@ +var tab = new Vue({ + el:"#tab", + data:{ + mf_num:"0" + } +}) + +$("#mf_ul").empty(); +$.init() +//加载flag +var mf_loading = false; +//最多可加载的条目 +var mf_maxItems = 100; +//上次加载的序号小区 +var mf_lastIndex = 0; +//每次加载添加多少条目 +var mf_itemsPerLoad = 8; +var mf_curpage = 1; +var mf_totalCount = 0; +function addEstate(number, lastIndex) { + mf_curpage = mf_lastIndex/mf_itemsPerLoad + 1; + axios.get("/myCollection/loadCollections",{params:{pageSize:mf_itemsPerLoad,page:mf_curpage}}).then(function(response){ + data = response.data; + //data = eval( '(' + data + ')' ); + if(data['results']==null || data['results'].length==0) { + $('#loadTip1').remove(); + $('.infinite-scroll-bottom #tab1').html("

您还没有关注小区

"); + return; + } + mf_totalCount = data.totalCount; + tab.mf_num = mf_totalCount; + // 生成新条目的HTML + var html = ''; + $.each(data['results'], function(i){ + var tag = this.tag; + var tagStr = ""; + if(tag){ + var tags = tag.split("_") + for(var j=0;j'+tag+''; + } + } + } + var starStr = '' + var index = this.index; + if(index==0){ + var starStr = '暂无' + }else{ + var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星 + var starNum = Math.floor(totalHalfStar/2) + var halfStarNum = totalHalfStar%2 + var noneStarNum = 5-starNum-halfStarNum + for(i=0;i'+ + '
'+ + '
'+ + '
'+this.name+'
'+ + '
¥'+(this.avgPrice?this.avgPrice+ '元/㎡':'暂无')+'
'+ + '
'+ + '
'+ + '
'+(this.address?(this.city+this.region+this.address):'')+'
'+ + '
'+(this.distance?"距您"+this.distance+"m":"暂无")+'
'+ + '
'+ + '
'+ + '
潜力指数: '+starStr+'
'+ + '
近30天涨跌幅: '+(this.oneMonthUpDownRange?(this.oneMonthUpDownRange>0?(this.oneMonthUpDownRange+'%'):(this.oneMonthUpDownRange<0?(-this.oneMonthUpDownRange+'%'):this.oneMonthUpDownRange+"%")):"暂无")+'
'+ + '
'+ + '
'+tagStr+'
'+ + '
'+ + ''+ + ''; + }); + // 添加新条目 + $('#mf_ul').append(html); + if(mf_totalCount<=mf_itemsPerLoad){ + // 加载完毕,则注销无限加载事件,以防不必要的加载 + // $.detachInfiniteScroll($('.infinite-scroll')); + // 删除加载提示符 + $('#loadTip1').remove(); + } + }).catch(function(error){ + console.log(error) + }); + console.log(1) +} + +//预先加载8条 +addEstate(mf_itemsPerLoad, 0); + + + +//注册'infinite'事件处理函数 +$(document).on('infinite', '.infinite-scroll',function() { + console.log(1) + if($("#tabList2").hasClass("active")) + { + // 如果正在加载,则退出 + if (mf_loading) return; + // 设置flag + mf_loading = true; + // 模拟1s的加载过程 + setTimeout(function() { + // 重置加载flag + mf_loading = false; + // 更新最后加载的序号 + mf_lastIndex = $('#mf_ul').find('li').length; + if (mf_lastIndex >= mf_totalCount) { + // 加载完毕,则注销无限加载事件,以防不必要的加载 +// $.detachInfiniteScroll($('.infinite-scroll')); + // 删除加载提示符 + $('#loadTip1').remove(); + return; + } + // 添加新条目 + addEstate(mf_itemsPerLoad, $('#mf_ul').find('li').length); + //容器发生改变,如果是js滚动,需要刷新滚动 + // $.refreshScroller(); + }, 1000); + } +}); \ No newline at end of file diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index da0afbd..ad53196 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -28,7 +28,8 @@ .list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;} .list-block .item-title em{font-size:0.8rem;color:#EB5F34;} .list-block .item-title .tag small{font-size:80%;color:#F5A100;} - .tabs .content{position:static;} + .tabs .tab{position:relative;} + .pstion{position:absolute;top:0;height:524px;} @@ -36,24 +37,6 @@ - -
-
-
    -
+
+
+
+
    +
+
+
+
+
+
- -
-
-
-
限购先售的时间,适合买房吗?
From 7c37b035b0e9f17ac3effe3a530c0269b262f12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sun, 8 Apr 2018 11:28:54 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E6=96=B0=E9=97=BB=E6=94=B6=E8=97=8F?= =?UTF-8?q?=E6=95=B4=E5=90=88=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/login/codeSms.js | 14 +++++++++++--- fangija-zsyf/views/news/newsDetail.html | 5 +++-- fangija-zsyf/views/user/passLogin.html | 1 + fangija-zsyf/views/user/updatePass.html | 6 ++++-- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/fangija-zsyf/js/login/codeSms.js b/fangija-zsyf/js/login/codeSms.js index 7fccf62..a658db0 100644 --- a/fangija-zsyf/js/login/codeSms.js +++ b/fangija-zsyf/js/login/codeSms.js @@ -75,10 +75,18 @@ $("#login_btn").on("click", function () { var resData = response.data; if (resData.status) { // 用户登录成功的TOKEN - var token = resData.data; - localStorage.setItem("user_token", token); + var data = resData.data; + localStorage.setItem("user_token", data.token); $.toast(resData.message); - back(); + if (data.firstLogin) { + // 显示设置密码页面 + clicked('../user/updatePass.html',true,false,{},{},function(){ + back(); + }) + } else { + back(); + } + } else { $.toast(resData.message); } diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index df2421b..7a6d587 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -491,8 +491,9 @@ $(".praise").on("click", function () { //收藏 $(".collection").on("click", function () { - //doCollect(); - collect(); + //localStorage.removeItem("user_token"); + doCollect(); + //collect(); }); function doCollect() { if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { diff --git a/fangija-zsyf/views/user/passLogin.html b/fangija-zsyf/views/user/passLogin.html index 6278e5f..d55e6ad 100644 --- a/fangija-zsyf/views/user/passLogin.html +++ b/fangija-zsyf/views/user/passLogin.html @@ -132,6 +132,7 @@ new Vue({ var token = resData.data; localStorage.setItem("user_token", token); $.toast(resData.message); + back(); } else { $.toast(resData.message); } diff --git a/fangija-zsyf/views/user/updatePass.html b/fangija-zsyf/views/user/updatePass.html index 109e96c..ed87ad8 100644 --- a/fangija-zsyf/views/user/updatePass.html +++ b/fangija-zsyf/views/user/updatePass.html @@ -21,7 +21,7 @@
-

设置密码

@@ -59,7 +59,7 @@
@@ -82,6 +82,7 @@ $.config = {router: false} + + diff --git a/fangija-zsyf/views/user/passLogin.html b/fangija-zsyf/views/user/passLogin.html index d55e6ad..e531a95 100644 --- a/fangija-zsyf/views/user/passLogin.html +++ b/fangija-zsyf/views/user/passLogin.html @@ -94,7 +94,7 @@ $.config = {router: false} - + From 6e98e11d2a66dbf9961a98c51ee8681d467a41ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sun, 8 Apr 2018 15:07:59 +0800 Subject: [PATCH 06/14] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/user/userInfo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index ad53196..9686e85 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -41,7 +41,7 @@ - From b26764013c028570b440190b4b4e45bf235cd52b Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sun, 8 Apr 2018 15:11:39 +0800 Subject: [PATCH 07/14] YOUFANG1.1.2 --- fangija-zsyf/{views => js}/user/myFocus.js | 0 .../views/evaluate/evaluateReport.html | 35 +++++++++++++++---- 2 files changed, 29 insertions(+), 6 deletions(-) rename fangija-zsyf/{views => js}/user/myFocus.js (100%) diff --git a/fangija-zsyf/views/user/myFocus.js b/fangija-zsyf/js/user/myFocus.js similarity index 100% rename from fangija-zsyf/views/user/myFocus.js rename to fangija-zsyf/js/user/myFocus.js diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index d5241e6..032fd64 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -96,7 +96,7 @@
加入"我的房产",随时掌握房产价值变化
- +
@@ -141,6 +141,8 @@ $.config = {router: false} + + + + From ebcf4bca2a7534cffb2776906dd688724b3da7a0 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sun, 8 Apr 2018 17:33:29 +0800 Subject: [PATCH 09/14] YOUFANG1.1 --- fangija-zsyf/config.js | 4 +- fangija-zsyf/js/user/myCollect.js | 258 +++++++++++++++++++ fangija-zsyf/js/user/myFocus.js | 34 ++- fangija-zsyf/views/news/newsCollectList.html | 2 +- fangija-zsyf/views/user/userInfo.html | 223 ++++++++-------- 5 files changed, 394 insertions(+), 127 deletions(-) create mode 100644 fangija-zsyf/js/user/myCollect.js diff --git a/fangija-zsyf/config.js b/fangija-zsyf/config.js index f20f0c4..4f3791c 100644 --- a/fangija-zsyf/config.js +++ b/fangija-zsyf/config.js @@ -1,8 +1,8 @@ /**服务端地址**/ //var BASE_PATH = "http://192.168.10.128:8084"; //var BASE_PATH = "http://192.168.10.47:8086"; -//var BASE_PATH = "http://192.168.10.161:8084"; +var BASE_PATH = "http://192.168.10.161:8084"; //var BASE_PATH = "http://192.168.10.53:8084"; -var BASE_PATH = "http://192.168.10.171:8084"; +//var BASE_PATH = "http://192.168.10.171:8084"; /**是否显示过启动页面**/ var lauchFlag = false; \ No newline at end of file diff --git a/fangija-zsyf/js/user/myCollect.js b/fangija-zsyf/js/user/myCollect.js new file mode 100644 index 0000000..3c69504 --- /dev/null +++ b/fangija-zsyf/js/user/myCollect.js @@ -0,0 +1,258 @@ +var mc_uid = "162167854504869888"; +// 加载flag +var mc_loading = false; +//空置第一次显示 +var mc_yesterDayDeployFlag = true; + +//分页部分参数定义 +var mc_page; +var mc_pageSize; +var mc_totalPages; +var mc_totalRecords; +// 上次加载的序号 +var mc_lastIndex; +// 每次加载添加多少条目 +var mc_itemsPerLoad; +// 最多可加载的条目 +var mc_maxItems = 100; + +//初始化init +$.init(); + +// 注册'infinite'事件处理函数 +//$(document).on('infinite', '.infinite-scroll-bottom', function() { +// // 如果正在加载,则退出 +// if(mc_loading) return; +// // 设置flag +// mc_loading = true; +// // 模拟1s的加载过程 +// setTimeout(function() { +// // 重置加载flag +// mc_loading = false; +// //如果当前页大于等于总页数 +// if(mc_page >= mc_totalPages) { +//// // 加载完毕,则注销无限加载事件,以防不必要的加载 +//// $.detachInfiniteScroll($('.infinite-scroll')); +// // 删除加载提示符 +// $('#loadTip3').remove(); +// return; +// } +// //控制查询下一页的数据 +// mc_page = mc_page + 1; +// selectNewsCollectList(); +// //容器发生改变,如果是js滚动,需要刷新滚动 +// //$.refreshScroller(); +// }, 1000); +//}); + +//我的收藏查询请求 +function selectNewsCollectList(){ + axios.get(BASE_PATH + "/rest/news/collectList", + { + params: { + uid: mc_uid, + page: mc_page, + pageSize: mc_pageSize + } + }).then(function (response) { + var resultList = response.data.data.list; + if(resultList != null && resultList.length == 0){ + // 删除加载提示符 + $('#loadTip3').remove(); + // 加载完毕,则注销无限加载事件,以防不必要的加载 + //$.detachInfiniteScroll($('.infinite-scroll')); + return; + } + if(response.data.data.currentPage == response.data.data.totalPages){ + //如果此次查询刚好是page = totalPages + // 删除加载提示符 + $('#loadTip3').remove(); + // 加载完毕,则注销无限加载事件,以防不必要的加载 + //$.detachInfiniteScroll($('.infinite-scroll')); + } + //封装list数据 + var dataObj = []; + for(var i in resultList){ + dataObj.push(resultList[i]) + } + // 上次加载的序号 + mc_lastIndex = $('.cardInfo').length; + //每次加载添加多少条目 + mc_itemsPerLoad = resultList.length; + //请求后对page进行赋值 + mc_page = response.data.data.currentPage; + mc_pageSize = response.data.data.limit; + mc_totalPages = response.data.data.totalPages; + mc_totalRecords = response.data.data.totalRecords; + tab.mc_num = mc_totalRecords; + addItems(mc_itemsPerLoad, mc_lastIndex, dataObj); + }).catch(function (error) { + console.log(error); + }); +} + +//界面加载 +$(document).ready(function () { + selectNewsCollectList(); +}); + +function openUrl(url){ + clicked(url, true); +} + +function openNewsView(newId) { + clicked('/fangija-zsyf/views/news/newsDetail.html',true,false,{},{newsId:newId},function(newId){ + axios.post(BASE_PATH + "/rest/comment/getCommentCount",{commentObjId : newId}).then(function (response) { + var msg = response.data.message + if(response.data.status){ + $("#visitComment_"+newId).text(response.data.data+"条"); + } + }) + .catch(function (error) { + console.log(error); + }); + },newId); + var count = parseInt($("#visitCount_"+newId).text().replace("人",""))+1; + $("#visitCount_"+newId).text(count+'人'); +} + +/* 分页构造数据 */ +function addItems(itemsPerLoad, lastIndex, dataObj) { + var html = ''; + for(var i in dataObj) { + /*if(dataObj[i].yesterDayDeploy && yesterDayDeployFlag) { + yesterDayDeployFlag = false; + html += '
历史推荐
'; + }*/ + if(dataObj[i].type == "专题") { + html += '
' + + '
' + dataObj[i].title + '
' + + '' + + '' + + '
'; + } + if(dataObj[i].type == "推荐小区") { + html += '
' + + '
' + + '
  • ' + + '
    ' + + '
    ' + + '
    ' + dataObj[i].recommendDistrictName + '
    ' + + '
    ' + dataObj[i].recommendDistrictCity + '-' + dataObj[i].recommendDistrictRegion + + '
    '; + if(dataObj[i].recommendDistrictTags != "" && dataObj[i].recommendDistrictTags != null) { + var arry = dataObj[i].recommendDistrictTags.split("_"); + html += '
    '; + for(var j in arry) { + html += '' + arry[j] + ''; + } + html += '
    '; + } + html += '
    推荐指数:
    '; + if(dataObj[i].recommendDistrictPrice) { + html += '
    ' + dataObj[i].recommendDistrictPrice + '元/㎡
    '; + } + html += '
'; + } + if(dataObj[i].type == "活动") { + html += '
' + + '
' + dataObj[i].title + '
' + + '' + + '
'; + } + if(dataObj[i].type == "推荐城市") { + html += '
' + + '
推荐城市——' + dataObj[i].recommendCity + '
'; + if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null) { + var arry = dataObj[i].recommendCityTags.split("_"); + html += '
'; + for(var j in arry) { + html += '' + arry[j] + ''; + } + html += '
'; + } + html += '' + + '
'; + } + if(dataObj[i].type == "新闻") { + html += '
' + + '
  • ' + + '
    ' + + dataObj[i].title + '
    ' + + '
    ' + dataObj[i].introduction + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
'; + } + if(dataObj[i].type == "投票") { + var voteFavorCount = dataObj[i].voteFavorCount; + var voteNoFavorCount = dataObj[i].voteNoFavorCount; + var voteFavorCountRate = 50 + var voteNoFavorCountRate = 50 + if(voteFavorCount == 0 && voteNoFavorCount == 0) { + + } else { + voteFavorCountRate = Math.round((voteFavorCount * 100) / (voteFavorCount + voteNoFavorCount)); + voteNoFavorCountRate = 100 - voteFavorCountRate; + } + + html += '
' + dataObj[i].title + + '
' + + '' + dataObj[i].voteFavorText + '' + + '
' + + '
' + dataObj[i].voteNoFavorText + '' + + '
V.S
'; + } + } + $('#myColect').append(html); +} \ No newline at end of file diff --git a/fangija-zsyf/js/user/myFocus.js b/fangija-zsyf/js/user/myFocus.js index 4a3e9ed..ca70ede 100644 --- a/fangija-zsyf/js/user/myFocus.js +++ b/fangija-zsyf/js/user/myFocus.js @@ -1,7 +1,8 @@ var tab = new Vue({ el:"#tab", data:{ - mf_num:"0" + mf_num:"0", + mc_num:"0" } }) @@ -23,7 +24,7 @@ function addEstate(number, lastIndex) { data = response.data; //data = eval( '(' + data + ')' ); if(data['results']==null || data['results'].length==0) { - $('#loadTip1').remove(); + $('#loadTip2').remove(); $('.infinite-scroll-bottom #tab1').html("

您还没有关注小区

"); return; } @@ -89,7 +90,7 @@ function addEstate(number, lastIndex) { // 加载完毕,则注销无限加载事件,以防不必要的加载 // $.detachInfiniteScroll($('.infinite-scroll')); // 删除加载提示符 - $('#loadTip1').remove(); + $('#loadTip2').remove(); } }).catch(function(error){ console.log(error) @@ -121,7 +122,7 @@ $(document).on('infinite', '.infinite-scroll',function() { // 加载完毕,则注销无限加载事件,以防不必要的加载 // $.detachInfiniteScroll($('.infinite-scroll')); // 删除加载提示符 - $('#loadTip1').remove(); + $('#loadTip2').remove(); return; } // 添加新条目 @@ -130,4 +131,29 @@ $(document).on('infinite', '.infinite-scroll',function() { // $.refreshScroller(); }, 1000); } + if($("#tabList3").hasClass("active")) + { + // 如果正在加载,则退出 + if(mc_loading) return; + // 设置flag + mc_loading = true; + // 模拟1s的加载过程 + setTimeout(function() { + // 重置加载flag + mc_loading = false; + //如果当前页大于等于总页数 + if(mc_page >= mc_totalPages) { + // // 加载完毕,则注销无限加载事件,以防不必要的加载 + // $.detachInfiniteScroll($('.infinite-scroll')); + // 删除加载提示符 + $('#loadTip3').remove(); + return; + } + //控制查询下一页的数据 + mc_page = mc_page + 1; + selectNewsCollectList(); + //容器发生改变,如果是js滚动,需要刷新滚动 + //$.refreshScroller(); + }, 1000); + } }); \ No newline at end of file diff --git a/fangija-zsyf/views/news/newsCollectList.html b/fangija-zsyf/views/news/newsCollectList.html index 553feb1..7cc503d 100644 --- a/fangija-zsyf/views/news/newsCollectList.html +++ b/fangija-zsyf/views/news/newsCollectList.html @@ -42,7 +42,7 @@
-
    +
diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 9686e85..46704c9 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -28,8 +28,8 @@ .list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;} .list-block .item-title em{font-size:0.8rem;color:#EB5F34;} .list-block .item-title .tag small{font-size:80%;color:#F5A100;} - .tabs .tab{position:relative;} - .pstion{position:absolute;top:0;height:524px;} + .contentBox{position:relative;} + .pstion{position:absolute;top:0;height:572px;} @@ -75,133 +75,115 @@ -
- - -
-
-
-
    -
-
-
-
-
-
-
-
-
-
限购先售的时间,适合买房吗?
- - -
-
- @@ -228,7 +210,8 @@ $.config = {router: false} - + + - + @@ -1192,10 +1166,15 @@ $.config = {router: false} + + + + + + + + +
+
+
+ +

龙盛佳苑

+
+
+
+
    +
  • +
    +
    +
    +
    龙盛佳苑上海-静安
    +
    +
    +
    2室1厅  60m  1/6层
    +
    +
    +
    + 自住 +
  • +
+
+
+
+ 房屋估价 + 公寓 +
+
+
391万
+
+ +
+
+
+
+
+ + 出售分析 +
+
+ + 出租管理 +
+
+ + 我要置换 +
+
+ + 我要贷款 +
+
+
+
+
+
+
+
    +
  • +
    +
    目前状态
    +
    出租
    +
    +
  • +
  • +
    +
    出租日期
    +
    2018/02/01 - 2018/07/31
    +
    +
  • +
  • +
    +
    每期租金
    +
    5,000元 (1月/次)
    +
    +
  • +
  • +
    +
    下次收租
    +
    3月1日
    +
    +
  • +
+
+
+
+
+
+
+
    +
  • +
    +
    市场交易活跃度
    +
    较差
    +
    +
  • +
  • +
    +
    小区潜力指数
    +
    +
    +
  • +
+
+
+
+
+
+
龙盛佳苑在上海市:
+
+

涨幅(近12个月)超过了69.7%的住宅

+ + 0%100% +
+
+

均价超过了64.14%的住宅

+
+ + 65,241元/㎡ +
+ + 相对最低
9,290元/㎡
相对最高
194,953元/㎡
+
+
+
+
+
小区走势分析
+
+
+
+ 均价 + 租金 +
+
+
+
+
+
+ 半年 + 一年 + 三年 +
+
+
+
+
+
+
+ 半年 + 一年 +
+
+
+
+
+
+
+
+
小区本月租金
+
+
+
    +
  • +
    +
    一居室
    +
    1729-3228 元/月
    +
    +
  • +
  • +
    +
    二居室
    +
    2355-3974 元/月
    +
    +
  • +
  • +
    +
    三居室
    +
    2772-4990 元/月
    +
    +
  • +
  • +
    +
    四居室
    +
    3987-6449 元/月
    +
    +
  • +
+
+
+
+
+
位置及周边
+ +
+
+
+
+ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/intelligentHouse/aroundDetail.html b/fangija-zsyf/views/intelligentHouse/aroundDetail.html new file mode 100644 index 0000000..62b269c --- /dev/null +++ b/fangija-zsyf/views/intelligentHouse/aroundDetail.html @@ -0,0 +1,562 @@ + + + + + +智能选房 + + + + + + + + + + + + + + + +
+
+
+ + +

智能选房

+
+
+

匹配出满足需求的个小区,智能推荐以下最合适的:

+
+ +
+
+
+
+
+ +
+
    +
  • +
    +
    智能排序
    +
    +
  • +
  • +
    +
    距离优先
    +
    +
  • +
  • +
    +
    均价优先
    + + + + + + + + + +
    +
  • +
+
+
+
+
+
    +
+
+ +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/intelligentHouse/index.html b/fangija-zsyf/views/intelligentHouse/index.html new file mode 100644 index 0000000..bac24ad --- /dev/null +++ b/fangija-zsyf/views/intelligentHouse/index.html @@ -0,0 +1,1285 @@ + + + + + +智能选房 + + + + + + + + + + + + + + + + + +
+
+
+ +

智能选房

+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/intelligentHouse/mapDetail.html b/fangija-zsyf/views/intelligentHouse/mapDetail.html new file mode 100644 index 0000000..ce28fee --- /dev/null +++ b/fangija-zsyf/views/intelligentHouse/mapDetail.html @@ -0,0 +1,629 @@ + + + + + +智能选房 + + + + + + + + + + + + + + + + + +
+
+
+ + +

智能选房

+
+ +
+
+
+ + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index f66bd42..50a04d6 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -194,11 +194,11 @@
按跌幅排序
-
  • +
  • 按潜力指数
    @@ -262,8 +262,8 @@
    热门城市
    -

    北京

    -

    上海

    +

    北京

    +

    上海

    广州

    From 6c45e16c3ad3de69a96328346304b1e67e06a1e8 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sun, 8 Apr 2018 17:42:40 +0800 Subject: [PATCH 11/14] YOUFANG1.1 --- fangija-zsyf/js/user/myFocus.js | 64 --------------------------- fangija-zsyf/views/user/userInfo.html | 62 ++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 64 deletions(-) diff --git a/fangija-zsyf/js/user/myFocus.js b/fangija-zsyf/js/user/myFocus.js index ca70ede..00ff2a2 100644 --- a/fangija-zsyf/js/user/myFocus.js +++ b/fangija-zsyf/js/user/myFocus.js @@ -1,11 +1,3 @@ -var tab = new Vue({ - el:"#tab", - data:{ - mf_num:"0", - mc_num:"0" - } -}) - $("#mf_ul").empty(); $.init() //加载flag @@ -101,59 +93,3 @@ function addEstate(number, lastIndex) { //预先加载8条 addEstate(mf_itemsPerLoad, 0); - - -//注册'infinite'事件处理函数 -$(document).on('infinite', '.infinite-scroll',function() { - console.log(1) - if($("#tabList2").hasClass("active")) - { - // 如果正在加载,则退出 - if (mf_loading) return; - // 设置flag - mf_loading = true; - // 模拟1s的加载过程 - setTimeout(function() { - // 重置加载flag - mf_loading = false; - // 更新最后加载的序号 - mf_lastIndex = $('#mf_ul').find('li').length; - if (mf_lastIndex >= mf_totalCount) { - // 加载完毕,则注销无限加载事件,以防不必要的加载 -// $.detachInfiniteScroll($('.infinite-scroll')); - // 删除加载提示符 - $('#loadTip2').remove(); - return; - } - // 添加新条目 - addEstate(mf_itemsPerLoad, $('#mf_ul').find('li').length); - //容器发生改变,如果是js滚动,需要刷新滚动 - // $.refreshScroller(); - }, 1000); - } - if($("#tabList3").hasClass("active")) - { - // 如果正在加载,则退出 - if(mc_loading) return; - // 设置flag - mc_loading = true; - // 模拟1s的加载过程 - setTimeout(function() { - // 重置加载flag - mc_loading = false; - //如果当前页大于等于总页数 - if(mc_page >= mc_totalPages) { - // // 加载完毕,则注销无限加载事件,以防不必要的加载 - // $.detachInfiniteScroll($('.infinite-scroll')); - // 删除加载提示符 - $('#loadTip3').remove(); - return; - } - //控制查询下一页的数据 - mc_page = mc_page + 1; - selectNewsCollectList(); - //容器发生改变,如果是js滚动,需要刷新滚动 - //$.refreshScroller(); - }, 1000); - } -}); \ No newline at end of file diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 46704c9..77394f6 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -227,6 +227,68 @@ $(".cardInfo01,.cardInfo02").on("click", function(){ // $('.buttons-tab').fixedTab({offset:325}); // }); +var tab = new Vue({ + el:"#tab", + data:{ + mf_num:"0", + mc_num:"0" + } +}) + +//注册'infinite'事件处理函数 +$(document).on('infinite', '.infinite-scroll',function() { + console.log(1) + if($("#tabList2").hasClass("active")) + { + // 如果正在加载,则退出 + if (mf_loading) return; + // 设置flag + mf_loading = true; + // 模拟1s的加载过程 + setTimeout(function() { + // 重置加载flag + mf_loading = false; + // 更新最后加载的序号 + mf_lastIndex = $('#mf_ul').find('li').length; + if (mf_lastIndex >= mf_totalCount) { + // 加载完毕,则注销无限加载事件,以防不必要的加载 +// $.detachInfiniteScroll($('.infinite-scroll')); + // 删除加载提示符 + $('#loadTip2').remove(); + return; + } + // 添加新条目 + addEstate(mf_itemsPerLoad, $('#mf_ul').find('li').length); + //容器发生改变,如果是js滚动,需要刷新滚动 + // $.refreshScroller(); + }, 1000); + } + if($("#tabList3").hasClass("active")) + { + // 如果正在加载,则退出 + if(mc_loading) return; + // 设置flag + mc_loading = true; + // 模拟1s的加载过程 + setTimeout(function() { + // 重置加载flag + mc_loading = false; + //如果当前页大于等于总页数 + if(mc_page >= mc_totalPages) { + // // 加载完毕,则注销无限加载事件,以防不必要的加载 + // $.detachInfiniteScroll($('.infinite-scroll')); + // 删除加载提示符 + $('#loadTip3').remove(); + return; + } + //控制查询下一页的数据 + mc_page = mc_page + 1; + selectNewsCollectList(); + //容器发生改变,如果是js滚动,需要刷新滚动 + //$.refreshScroller(); + }, 1000); + } +}); From bcfe75137f5766f4f9d004265b4d5ba063d4d040 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sun, 8 Apr 2018 18:16:23 +0800 Subject: [PATCH 12/14] YOUFANG1.1 --- fangija-zsyf/views/user/userInfo.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 77394f6..8ad0ed2 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -146,8 +146,8 @@
    -
    -
      +
      +
      From 080be4273c580bfe8234efba37e06aa1e4b315fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sun, 8 Apr 2018 19:21:44 +0800 Subject: [PATCH 13/14] =?UTF-8?q?=E6=B8=85=E7=A9=BAtoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/login/codeSms.js | 1 + fangija-zsyf/js/login/thirdLogin.js | 1 + fangija-zsyf/main.html | 10 ++++++++++ fangija-zsyf/views/component/component.js | 3 ++- fangija-zsyf/views/component/componenttest.html | 2 +- fangija-zsyf/views/user/bindingMobile.html | 1 + fangija-zsyf/views/user/passLogin.html | 1 + 7 files changed, 17 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/js/login/codeSms.js b/fangija-zsyf/js/login/codeSms.js index a658db0..03b2c49 100644 --- a/fangija-zsyf/js/login/codeSms.js +++ b/fangija-zsyf/js/login/codeSms.js @@ -77,6 +77,7 @@ $("#login_btn").on("click", function () { // 用户登录成功的TOKEN var data = resData.data; localStorage.setItem("user_token", data.token); + localStorage.setItem("user_token_add_time", new Date().getTime()); $.toast(resData.message); if (data.firstLogin) { // 显示设置密码页面 diff --git a/fangija-zsyf/js/login/thirdLogin.js b/fangija-zsyf/js/login/thirdLogin.js index 689d42b..16f3076 100644 --- a/fangija-zsyf/js/login/thirdLogin.js +++ b/fangija-zsyf/js/login/thirdLogin.js @@ -85,6 +85,7 @@ function login(openid, unionid, accessToken, nickname, headImg, loginFrom, uri) }) }else{ localStorage.setItem("user_token", resData.data); + localStorage.setItem("user_token_add_time", new Date().getTime()); back(); } }else{ diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 7706ab5..d87198f 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -39,6 +39,16 @@ diff --git a/fangija-zsyf/views/user/bindingMobile.html b/fangija-zsyf/views/user/bindingMobile.html index 5772d0b..818bd12 100644 --- a/fangija-zsyf/views/user/bindingMobile.html +++ b/fangija-zsyf/views/user/bindingMobile.html @@ -196,6 +196,7 @@ var vue = new Vue({ if (resData.status) { $.toast(resData.message); localStorage.setItem("user_token", resData.data); + localStorage.setItem("user_token_add_time", new Date().getTime()); back(); } else { $.toast(resData.message); diff --git a/fangija-zsyf/views/user/passLogin.html b/fangija-zsyf/views/user/passLogin.html index 74e84c3..bf9bb1c 100644 --- a/fangija-zsyf/views/user/passLogin.html +++ b/fangija-zsyf/views/user/passLogin.html @@ -131,6 +131,7 @@ new Vue({ // 用户登录成功的TOKEN var token = resData.data; localStorage.setItem("user_token", token); + localStorage.setItem("user_token_add_time", new Date().getTime()); $.toast(resData.message); back(); } else { From 6f70e1de86e6a85354049e58fe9cda637492b298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sun, 8 Apr 2018 19:25:02 +0800 Subject: [PATCH 14/14] add --- fangija-zsyf/views/component/componenttest.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/component/componenttest.html b/fangija-zsyf/views/component/componenttest.html index 4caa276..4edefa8 100644 --- a/fangija-zsyf/views/component/componenttest.html +++ b/fangija-zsyf/views/component/componenttest.html @@ -6,7 +6,7 @@
      - +
      @@ -14,7 +14,12 @@