From 025d5eb6bc5f01596e49cd8382bb320955042e68 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Sat, 14 Apr 2018 10:11:36 +0800 Subject: [PATCH 01/24] aa --- fangija-zsyf/views/rent/rentManager.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index a5e9136..48175dd 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -152,8 +152,14 @@ function onPlusReady() { edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate); edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate); edit.nowDay = getNowFormatDate(response.data.data.nowDay); - edit.rent = houseInfo.rent; + if(houseInfo.rent==0){ + edit.rent = ""; + }else{ + edit.rent = houseInfo.rent; + } edit.cycle = response.data.data.cycle; + }else{ + edit.cycle = "1 月 /次"; } /* 选择-起租日期 */ From e1fe37bc929b701a1a2bfb6bdc42e14dc67ddd06 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sat, 14 Apr 2018 10:13:21 +0800 Subject: [PATCH 02/24] YOUFANG app --- fangija-zsyf/views/rent/rentManager.html | 1 - 1 file changed, 1 deletion(-) diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index a5e9136..d0d4bb1 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -205,7 +205,6 @@ function onPlusReady() { console.log(error) }); - //var id="165878889770385408" /* 编辑状态-确定 */ $(document).on('click','#confirm_btn', function () { From ea6ea1740b1e6835988868396b37fd1f9fc56821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sat, 14 Apr 2018 10:21:20 +0800 Subject: [PATCH 03/24] =?UTF-8?q?=E5=B0=8F=E5=8C=BA=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/district/districtDetail.js | 25 ++--- fangija-zsyf/views/district/detail.html | 109 ++++++++++++++------- 2 files changed, 78 insertions(+), 56 deletions(-) diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 00f2244..19f917a 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -9,10 +9,6 @@ var mapLoadCount = 0; /* 关注&已关注切换 */ -$(".collection01").on("click", function () { - doAddCollect() -}); - function doAddCollect(){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ @@ -34,7 +30,6 @@ function addCollect(){ $(".collection02").show(); $.toast("随时掌握小区动态"); } - alert(12) plus.webview.getWebviewById('views/user/userInfo.html').reload(); plus.webview.getWebviewById('yfindex.html').reload(); plus.webview.getWebviewById('views/house/houseManageList.html').reload(); @@ -79,22 +74,22 @@ function removeCollect(){ } /* button状态切换 */ -$("#trendTabDiv .button").on("click", function () { +/*$("#trendTabDiv .button").on("click", function () { $(this).parent().children().removeClass("active"); $(this).addClass("active"); }); - +*/ /* 图表切换 */ -$("#tabAvgDiv").on("click", function () { +/*$("#tabAvgDiv").on("click", function () { $("#tabChart1").css("z-index","1"); $("#tabChart2").css("z-index","-1"); }); $("#tabRentDiv").on("click", function () { $("#tabChart2").css("z-index","1"); $("#tabChart1").css("z-index","-1"); -}); +});*/ -var t1 = window.setInterval(loadMap,1000); +/*var t1 = window.setInterval(loadMap,1000); function loadMap(){ mapLoadCount++; if(lng && lat){ @@ -109,7 +104,7 @@ function loadMap(){ $("#mapDiv").hide(); } } -} +}*/ //小区详情 function loadDistrictInfo(){ @@ -301,11 +296,6 @@ function loadKLineData(city, region, name){ }); } -$("#trendDiv1 a").click(function(){ - //showTrends(); - var v = $(this).attr("t-v"); - showTrends(v) -}); function showTrends(v){ if(v == "36"){ @@ -534,8 +524,7 @@ $("#trendDiv2 a").click(function(){ /* 小区租金走势 */ -function loadRentTrends(city, region, name){ - var type = $("#trendDiv2 a.active").attr("t-v") +function loadRentTrends(city, region, name, type){ axios.get("/rest/trend/distRentTrends", { params: { city: city, diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 562d89e..dd7e4c1 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -70,8 +70,8 @@
{{city}}{{region}}{{address}}
@@ -114,17 +114,17 @@
@@ -132,8 +132,8 @@
@@ -270,40 +270,61 @@ function onPlusReady() { name = self.name; // 创建根实例 baseInfo = new Vue({ - el: '#districtBaseInfo', - data: { - name : "", - city:"", - region: "", - address: "", - avgPrice:"", - oneMonthUpDownRange:"", - priceRate:"", - cityPrice:"", - finishBuildingDate:"", - householdCount:"", - cubagePercent:"", - carSiteCount:"", - virescencePercent:"", - estateCharge:"", - moreArea:"", - developer:"", - estateCompany:"", - tags:[], - nearDists:[], - regionIndex:"", - schoolIndex:"" - + el: '#districtBaseInfo', + data: { + name : "", + city:"", + region: "", + address: "", + avgPrice:"", + oneMonthUpDownRange:"", + priceRate:"", + cityPrice:"", + finishBuildingDate:"", + householdCount:"", + cubagePercent:"", + carSiteCount:"", + virescencePercent:"", + estateCharge:"", + moreArea:"", + developer:"", + estateCompany:"", + tags:[], + nearDists:[], + regionIndex:"", + schoolIndex:"" + }, + methods:{ + showChat: function(type){ + if(type == 2) { + document.getElementById("tabChart2").style = "z-index:1"; + document.getElementById("tabChart1").style = "z-index:-1"; + } else { + document.getElementById("tabChart2").style = "z-index:-1"; + document.getElementById("tabChart1").style = "z-index:1"; } + + } + } }) /* 小区均价分析 */ loadKLineData(city, region, name); /* 小区租金走势 */ - loadRentTrends(city, region, name); + loadRentTrends(city, region, name,2); } - +function showLoadRentTrends(type) { + if(type == 3) { + document.getElementById("trendDivTab3").setAttribute("class","tab-link button active"); + document.getElementById("trendDivTab2").setAttribute("class","tab-link button"); + } else { + document.getElementById("trendDivTab3").setAttribute("class","tab-link button"); + document.getElementById("trendDivTab2").setAttribute("class","tab-link button active"); + } + + loadRentTrends(city, region, name,type); +} /*baseInfo = new Vue({ el: '#districtBaseInfo', @@ -330,9 +351,21 @@ function onPlusReady() { regionIndex:"", schoolIndex:"" - } - })*/ - + }, + methods:{ + showChat: function(type){ + if(type == 2) { + document.getElementById("tabChart2").style = "z-index:1"; + document.getElementById("tabChart1").style = "z-index:-1"; + } else { + document.getElementById("tabChart2").style = "z-index:-1"; + document.getElementById("tabChart1").style = "z-index:1"; + } + + } + } + }) + */ function openMapWindow(){ clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng}); } From 57572a97a4b6643bbb245981eda310963e5bd4a8 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sat, 14 Apr 2018 10:41:25 +0800 Subject: [PATCH 04/24] YOUFANG app 1.0.3 --- fangija-zsyf/views/news/newsDetail.html | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index dcf49c4..ee4962e 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -170,15 +170,10 @@ function onPlusReady() { id = self.newsId; shareId = id shareUrl = shareUrl+id - $.ajax({ - type : 'get', - url : BASE_PATH + "/rest/news/detail", - data:{newsId:id}, - dataType:'json', - async:false, - success:function(result){ - if(result.code==200){ - data = result.data + + axios.get("/rest/news/detail",{params:{newsId:id}}).then(function(response){ + if(response.data.code==200){ + data = response.data.data $("#title").text(data.title) $("#title2").text(data.title) $("#source").text(data.source==null?"":"来源:"+data.source) @@ -200,10 +195,10 @@ function onPlusReady() { //是否收藏 isCollect(); } - }, - error:function(){ - } - }) + + }).catch(function(error){ + console.log(error) + }); getPosition(); updateSerivces(); } From ea7d2d3deefc96c09dab1f80a40660f182925947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sat, 14 Apr 2018 10:46:48 +0800 Subject: [PATCH 05/24] =?UTF-8?q?=E7=A7=9F=E9=87=91=E8=B5=B0=E5=8A=BF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/district/districtDetail.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 19f917a..0dcd6d5 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -525,6 +525,7 @@ $("#trendDiv2 a").click(function(){ /* 小区租金走势 */ function loadRentTrends(city, region, name, type){ + if(type == undefined) type= 2; axios.get("/rest/trend/distRentTrends", { params: { city: city, From 3eda178c366e91eb682015da2c541e87a182d1dd Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sat, 14 Apr 2018 11:43:10 +0800 Subject: [PATCH 06/24] YOUFANG --- .../views/component/cityIncreaseRankingComponent.js | 12 ++++++++++-- .../views/component/cityPotentialRankingComponent.js | 11 ++++++++++- fangija-zsyf/views/house/houseDetail.html | 11 +++++++++-- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 53c55ff..ae6f51f 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -49,11 +49,20 @@ Vue.component('city_increase_ranking',{ }, follow:function(city,event){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ - alert("请先登录") clicked('/views/user/passLogin.html',true,false,{},{},function(){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ }else{ + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); + reloadMyFocus() + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + }).catch(function(error){ + console.log(error) + }) } }) }else{ @@ -61,7 +70,6 @@ Vue.component('city_increase_ranking',{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); reloadMyFocus() - //plus.webview.getWebviewById('views/user/userInfo.html').reload() }).catch(function(error){ console.log(error) }) diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index 5acd4f8..d754df3 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -67,11 +67,20 @@ Vue.component('city_potential_ranking',{ }, follow:function(city,event){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ - alert("请先登录") clicked('/views/user/passLogin.html',true,false,{},{},function(){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ }else{ + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + reloadMyFocus() + }).catch(function(error){ + console.log(error) + }) } }) }else{ diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 33acfc3..ed82840 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1472,12 +1472,19 @@ function markFocus(){ function addFocus(city){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ - alert("请先登录") clicked('/views/user/passLogin.html',true,false,{},{},function(){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ }else{ - + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + reloadMyFocus() + createData(city, myDatasVue.$data.cityDatas.length); + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + }).catch(function(error){ + console.log(error) + }) } }) }else{ From 418f4c2aefc16bf1b9af1a04c7c52ddcc2ca8e92 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Sat, 14 Apr 2018 14:21:22 +0800 Subject: [PATCH 07/24] aa --- fangija-zsyf/views/house/detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index 756a6ae..3c42d20 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -523,7 +523,7 @@ function addManagement(id, houseStatus, liveStatus){ }).then(function (response) { var status = response.data.status; if(status){ - $.toast(response.data.data); + $.toast("修改状态成功!"); //window.location.reload(); }else{ $.toast(response.data.message); From 36070379707e8302cf6d7cbf0d36262b86086880 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Sat, 14 Apr 2018 14:26:24 +0800 Subject: [PATCH 08/24] update --- fangija-zsyf/js/district/districtDetail.js | 16 +- fangija-zsyf/js/quotations/cityDetail.js | 29 +- fangija-zsyf/manifest.json | 23 +- fangija-zsyf/views/district/detail.html | 4 +- fangija-zsyf/views/house/cityDetail.html | 5 +- fangija-zsyf/views/house/houseDetail.html | 257 ++-- fangija-zsyf/views/house/houseDetail1.html | 1504 ++++++++++++++++++++ 7 files changed, 1714 insertions(+), 124 deletions(-) create mode 100644 fangija-zsyf/views/house/houseDetail1.html diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 00f2244..b7ffa0c 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -78,21 +78,6 @@ function removeCollect(){ }); } -/* button状态切换 */ -$("#trendTabDiv .button").on("click", function () { - $(this).parent().children().removeClass("active"); - $(this).addClass("active"); -}); - -/* 图表切换 */ -$("#tabAvgDiv").on("click", function () { - $("#tabChart1").css("z-index","1"); - $("#tabChart2").css("z-index","-1"); -}); -$("#tabRentDiv").on("click", function () { - $("#tabChart2").css("z-index","1"); - $("#tabChart1").css("z-index","-1"); -}); var t1 = window.setInterval(loadMap,1000); function loadMap(){ @@ -303,6 +288,7 @@ function loadKLineData(city, region, name){ $("#trendDiv1 a").click(function(){ //showTrends(); + alert("trend"); var v = $(this).attr("t-v"); showTrends(v) }); diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js index 8c27744..b5f458b 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -1,9 +1,9 @@ var ret = [] -function loadMyCollectCity(){ +function loadCurCity(city){ axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) { var curDatas = response.data.data - if(curDatas){ + if(curDatas && curDatas.length>0){ if(IsInArray(curDatas, city)){ cityInfoVue.$data.collecd = true; }else{ @@ -183,6 +183,7 @@ function loadUpOrDownChart(downRate, upRate){ dataUp = [cityObj1, cityObj2] addUpChart(dataUp) + $("#up_chart").parent().parent().show(); }else{ $("#up_chart").parent().parent().hide() } @@ -198,6 +199,7 @@ function loadUpOrDownChart(downRate, upRate){ dataDown = [cityObj3, cityObj4] addDownChart(dataDown) + $("#down_chart").parent().parent().show(); }else{ $("#down_chart").parent().parent().hide() } @@ -464,9 +466,29 @@ function docollectCity(city){ var msg = response.data.message; if(msg){ if(msg == "取消关注成功"){ - cityInfoVue.$data.collecd = false; + try{ + cityInfoVue.$data.collecd = false; + + var da = cityDetaiVue.$data.citys + if(da && da.length>0){ + var index = da.indexOf(city) + if(index>0){ + da.splice(index, 1) + cityDetaiVue.$data.citys = da; + if(da.length>0){ + $("a[href='#tabQuotation0']").click(); + } + } + } + }catch(e){ + + } + + + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); }else if(msg == "关注成功"){ cityInfoVue.$data.collecd = true; + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); }else{ $.toast(msg); } @@ -478,3 +500,4 @@ function docollectCity(city){ }); } + diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 6bbd6c7..10a872c 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -1620,7 +1620,8 @@ "views/user/passLogin.html", "views/district/detail.html", "views/setting/setting.html", - "views/user/codeSms.html" + "views/user/codeSms.html", + "views/house/detail.html" ], "priority": 0 }, @@ -1668,7 +1669,25 @@ "priority": 0 }, "views/house/houseDetail.html": { - "resources": [], + "resources": [ + "views/component/cityIncreaseRankingComponent.js", + "js/echarts.js", + "css/main.css", + "js/axiosPlugin.js", + "js/quotations/cityDetail.js", + "js/light7.js", + "views/component/cityPotentialRankingComponent.js", + "js/cn.js", + "views/component/myFocusComponent.js", + "js/zepto.js", + "css/city.css", + "js/log/log_stat.js", + "js/common.js", + "js/axios.min.js", + "js/vue.js", + "views/component/cityChooseComponent.js", + "js/highcharts-4.2.3.js" + ], "refer": [ "views/house/regions.html", "views/district/detail.html", diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 562d89e..2b2629a 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -238,8 +238,8 @@ $.config = {router: false} - + diff --git a/fangija-zsyf/views/house/houseDetail1.html b/fangija-zsyf/views/house/houseDetail1.html new file mode 100644 index 0000000..3beeede --- /dev/null +++ b/fangija-zsyf/views/house/houseDetail1.html @@ -0,0 +1,1504 @@ + + + + + +房产行情 + + + + + + + + + + + + + + + + +
+
+
+ +

房产行情

+
+
+
+ 全国 + + 添加 +
+ +
+
+
+
+ +
+
+ {{nowYear}}年{{nowMonth}}月全国{{cityCount}}个城市房价 +
+
+
+ + {{upRate}}% + + + + {{downRate}}% + + +
+
+ +
+
+ +
+
+
+
+
+ 城市涨幅排行 +
+
+ 城市潜力排行 +
+
+ 城市均价排行 +
+
①{{item.city}}
+
+
+ {{item.oneMonthUpDownRange*100}}% +
+
+ 潜力指数 +
+
+ {{Math.abs(item.oneMonthUpDownRange*100)}}% + + + +
+
+ + +
+
+
+
+
房产热点城市
+
+
+ +

北京

+
+
+ +

上海

+
+
+ +

深圳

+
+
+
+
+ +
+
+
+
+ + 取消 + 关注 + +
+
+ 当前参考均价 +
+
+
{{myCityMap.cityTopMonthAvgPrice}}元/㎡
+
暂无
+
+ +
+ +
+
{{myCityMap.time}}楼市行情区县涨跌详情
+
+
+ +
+
+ +
+
+
+
+
+
+
城市均价及挂牌走势 +
+
+ 半年 + 一年 + 三年 +
+
+
+
+
+
+
+ +
+
热门小区
+
+
+
+
+
{{nearDist.sname}}
+
+
{{nearDist.avgPrice}}元/㎡
+
+
+ +
+
+
+
+
+
+ + + + +
+
+
+ +
+
+
+ + + + +
+
+
+
+ +
+ +
+
城市房价TOP10
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From defae943107a176297608eab983888e7fa8871d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sat, 14 Apr 2018 14:36:52 +0800 Subject: [PATCH 09/24] pass reg add --- fangija-zsyf/views/user/updatePass.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fangija-zsyf/views/user/updatePass.html b/fangija-zsyf/views/user/updatePass.html index 2cb8847..f414c21 100644 --- a/fangija-zsyf/views/user/updatePass.html +++ b/fangija-zsyf/views/user/updatePass.html @@ -115,6 +115,11 @@ new Vue({ $.toast("请输入密码"); return; } + var reg = /^[a-zA-Z0-9]{1,}$/; + if (!reg.test(this.pass)){ + $.toast("请输入6位以上数字或字母"); + return; + } if (this.pass.length < 7) { $.toast("请输入6位以上数字或字母"); return; From 5553ed6c3d81c1c8815b80d7eceedf1041e560e1 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Sat, 14 Apr 2018 14:37:31 +0800 Subject: [PATCH 10/24] update --- fangija-zsyf/views/house/houseDetail.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index a19d902..928dfdc 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1548,6 +1548,11 @@ function loadMyCollectCity(){ } cityDetaiVue.$data.citys = curDatas; }else{ + if(positionCity){ + curDatas.splice(0,0, positionCity) + } + cityDetaiVue.$data.citys = curDatas; + $("#cityInfo").hide() } From 7e7490b864d9709e7e021ad2b0de26cacaad0996 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sat, 14 Apr 2018 14:41:54 +0800 Subject: [PATCH 11/24] YOUFANG app 1.0.3 --- fangija-zsyf/views/evaluate/evaluateReport.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 4bd9d15..71e92b2 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -303,13 +303,13 @@ $.config = {router: false} { text: '出租', onClick: function() { - addManagement(hid, houseStatus, "自住"); + addManagement(hid, houseStatus, "出租"); } }, { text: '空置', onClick: function() { - addManagement(hid, houseStatus, "自住"); + addManagement(hid, houseStatus, "空置"); } }, { From efc0f8ae42f90c31cd0eafda2f727b239fcc04b9 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Sat, 14 Apr 2018 14:54:53 +0800 Subject: [PATCH 12/24] splice bug --- fangija-zsyf/views/house/houseDetail.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 928dfdc..0f9dcee 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1235,10 +1235,6 @@ $.config = {router: false} } }) - - - - document.addEventListener('plusready', onPlusReady, false); function onPlusReady(){ @@ -1549,9 +1545,8 @@ function loadMyCollectCity(){ cityDetaiVue.$data.citys = curDatas; }else{ if(positionCity){ - curDatas.splice(0,0, positionCity) + cityDetaiVue.$data.citys.push(positionCity); } - cityDetaiVue.$data.citys = curDatas; $("#cityInfo").hide() } From e5a6938ba7ea34a0f2fdd7978359bac4a37ecc1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sat, 14 Apr 2018 15:00:20 +0800 Subject: [PATCH 13/24] fix bug 4746 --- fangija-zsyf/views/setting/setting.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/setting/setting.html b/fangija-zsyf/views/setting/setting.html index c4e54c5..49dd680 100644 --- a/fangija-zsyf/views/setting/setting.html +++ b/fangija-zsyf/views/setting/setting.html @@ -29,7 +29,7 @@
    -
  • +
  • @@ -87,12 +87,14 @@ new Vue({ el: '#app', data: { showLogin:false, - showLogout:false + showLogout:false, + showPass:false }, mounted() { if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { this.showLogin = true; } else { + this.showPass = true; this.showLogout = true; } } From d3d80496a3c3fcbff2c361b0b509cd316757888e Mon Sep 17 00:00:00 2001 From: gaojuan Date: Sat, 14 Apr 2018 15:05:42 +0800 Subject: [PATCH 14/24] =?UTF-8?q?=E6=88=BF=E4=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=B5=B0=E5=8A=BF=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/district/districtDetail.js | 11 +++++++++++ fangija-zsyf/views/district/detail.html | 12 +----------- fangija-zsyf/views/house/detail.html | 14 ++++++-------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 0dcd6d5..0a6c3fb 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -105,6 +105,17 @@ function loadMap(){ } } }*/ +function showLoadRentTrends(type) { + if(type == 3) { + document.getElementById("trendDivTab3").setAttribute("class","tab-link button active"); + document.getElementById("trendDivTab2").setAttribute("class","tab-link button"); + } else { + document.getElementById("trendDivTab3").setAttribute("class","tab-link button"); + document.getElementById("trendDivTab2").setAttribute("class","tab-link button active"); + } + + loadRentTrends(city, region, name,type); +} //小区详情 function loadDistrictInfo(){ diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 83e23d6..52345cd 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -314,17 +314,7 @@ function onPlusReady() { loadRentTrends(city, region, name,2); } -function showLoadRentTrends(type) { - if(type == 3) { - document.getElementById("trendDivTab3").setAttribute("class","tab-link button active"); - document.getElementById("trendDivTab2").setAttribute("class","tab-link button"); - } else { - document.getElementById("trendDivTab3").setAttribute("class","tab-link button"); - document.getElementById("trendDivTab2").setAttribute("class","tab-link button active"); - } - - loadRentTrends(city, region, name,type); -} + /*baseInfo = new Vue({ el: '#districtBaseInfo', diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index 3c42d20..8005ab2 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -239,9 +239,9 @@
    @@ -249,12 +249,10 @@
    - 半年 - 一年 -
    -
    - + 半年 + 一年
    +
    From 61e608d687355a7c6512add990cc8b2c19077f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sat, 14 Apr 2018 15:14:35 +0800 Subject: [PATCH 15/24] fix bug 4747 --- fangija-zsyf/js/district/districtDetail.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 0dcd6d5..9c2d1d0 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -302,6 +302,7 @@ function showTrends(v){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ showTrends(v); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); }) return; } else { From 0059f755a190fb92eed787fe0e8620ceddc76049 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Sat, 14 Apr 2018 15:17:42 +0800 Subject: [PATCH 16/24] =?UTF-8?q?=E8=B5=B0=E5=8A=BF=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/district/districtDetail.js | 2 +- fangija-zsyf/views/district/detail.html | 111 +++++++++++---------- 2 files changed, 59 insertions(+), 54 deletions(-) diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 0a6c3fb..c6be108 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -384,7 +384,7 @@ var option01 = { type: 'slider', xAxisIndex: [0, 1], realtime: false, - start: 50, + start: 0, end: 100, top: 65, height: 20, diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 52345cd..60aaf92 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -262,61 +262,61 @@ $.config = {router: false}