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

This commit is contained in:
zongzhimin
2018-04-14 15:41:34 +08:00
5 changed files with 87 additions and 83 deletions
+13 -1
View File
@@ -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(){ function loadDistrictInfo(){
@@ -299,6 +310,7 @@ function showTrends(v){
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
clicked('../user/codeSms.html',true,false,{},{},function(){ clicked('../user/codeSms.html',true,false,{},{},function(){
showTrends(v); showTrends(v);
plus.webview.getWebviewById('views/user/userInfo.html').reload();
}) })
return; return;
} else { } else {
@@ -370,7 +382,7 @@ var option01 = {
type: 'slider', type: 'slider',
xAxisIndex: [0, 1], xAxisIndex: [0, 1],
realtime: false, realtime: false,
start: 50, start: 0,
end: 100, end: 100,
top: 65, top: 65,
height: 20, height: 20,
+58 -63
View File
@@ -262,71 +262,61 @@ $.config = {router: false}
<script> <script>
//loadDistrictInfo(); //loadDistrictInfo();
document.addEventListener('plusready', onPlusReady, false); //document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() { //function onPlusReady() {
var self = plus.webview.currentWebview(); // var self = plus.webview.currentWebview();
city = self.city // city = self.city
region = self.region // region = self.region
name = self.name; // name = self.name;
// 创建根实例 // // 创建根实例
baseInfo = new Vue({ // baseInfo = new Vue({
el: '#districtBaseInfo', // el: '#districtBaseInfo',
data: { // data: {
name : "", // name : "",
city:"", // city:"",
region: "", // region: "",
address: "", // address: "",
avgPrice:"", // avgPrice:"",
oneMonthUpDownRange:"", // oneMonthUpDownRange:"",
priceRate:"", // priceRate:"",
cityPrice:"", // cityPrice:"",
finishBuildingDate:"", // finishBuildingDate:"",
householdCount:"", // householdCount:"",
cubagePercent:"", // cubagePercent:"",
carSiteCount:"", // carSiteCount:"",
virescencePercent:"", // virescencePercent:"",
estateCharge:"", // estateCharge:"",
moreArea:"", // moreArea:"",
developer:"", // developer:"",
estateCompany:"", // estateCompany:"",
tags:[], // tags:[],
nearDists:[], // nearDists:[],
regionIndex:"", // regionIndex:"",
schoolIndex:"" // schoolIndex:""
}, // },
methods:{ // methods:{
showChat: function(type){ // showChat: function(type){
if(type == 2) { // if(type == 2) {
document.getElementById("tabChart2").style = "z-index:1"; // document.getElementById("tabChart2").style = "z-index:1";
document.getElementById("tabChart1").style = "z-index:-1"; // document.getElementById("tabChart1").style = "z-index:-1";
} else { // } else {
document.getElementById("tabChart2").style = "z-index:-1"; // document.getElementById("tabChart2").style = "z-index:-1";
document.getElementById("tabChart1").style = "z-index:1"; // document.getElementById("tabChart1").style = "z-index:1";
} // }
//
// }
// }
// })
//
// /* 小区均价分析 */
// loadKLineData(city, region, name);
// /* 小区租金走势 */
// loadRentTrends(city, region, name,2);
//}
}
}
})
/* 小区均价分析 */
loadKLineData(city, region, name);
/* 小区租金走势 */
loadRentTrends(city, region, name,2);
}
function showLoadRentTrends(type) { baseInfo = new Vue({
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', el: '#districtBaseInfo',
data: { data: {
name : "", name : "",
@@ -365,7 +355,12 @@ function showLoadRentTrends(type) {
} }
} }
}) })
*/
/* 小区均价分析 */
loadKLineData(city, region, name);
/* 小区租金走势 */
loadRentTrends(city, region, name,2);
function openMapWindow(){ function openMapWindow(){
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng}); clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
} }
+7 -9
View File
@@ -239,9 +239,9 @@
<div id="tabChart1" class="tab tabChart1 active"> <div id="tabChart1" class="tab tabChart1 active">
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;"> <div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv1"> <div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv1">
<a t-v="6" class="tab-link button active">半年</a> <a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
<a t-v="12" class="tab-link button">一年</a> <a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
<a t-v="36" class="tab-link button">三年</a> <a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
</div> </div>
<div class="chart" id="chart01" style="height:360px;"></div> <div class="chart" id="chart01" style="height:360px;"></div>
</div> </div>
@@ -249,12 +249,10 @@
<div id="tabChart2" class="tab tabChart2" style="display: block;"> <div id="tabChart2" class="tab tabChart2" style="display: block;">
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;"> <div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv2"> <div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv2">
<a t-v="2" class="tab-link button active">半年</a> <a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
<a t-v="3" class="tab-link button">一年</a> <a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
</div>
<div class="chart" id="chart02" style="margin-top:0.75rem;">
</div> </div>
<div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
</div> </div>
</div> </div>
</div> </div>
@@ -524,7 +522,7 @@ function addManagement(id, houseStatus, liveStatus){
var status = response.data.status; var status = response.data.status;
if(status){ if(status){
$.toast("修改状态成功!"); $.toast("修改状态成功!");
//window.location.reload(); plus.webview.getWebviewById('views/user/userInfo.html').reload();
}else{ }else{
$.toast(response.data.message); $.toast(response.data.message);
} }
+4 -7
View File
@@ -1236,10 +1236,6 @@ $.config = {router: false}
}) })
document.addEventListener('plusready', onPlusReady, false); document.addEventListener('plusready', onPlusReady, false);
function onPlusReady(){ function onPlusReady(){
var city = ""; var city = "";
@@ -1544,14 +1540,15 @@ function loadMyCollectCity(){
var curDatas = response.data.data var curDatas = response.data.data
if(curDatas && curDatas.length>0){ if(curDatas && curDatas.length>0){
if(positionCity){ if(positionCity){
curDatas.splice(0,0, positionCity) if(!IsInArray(curDatas, positionCity)){
curDatas.splice(0,0, positionCity)
}
} }
cityDetaiVue.$data.citys = curDatas; cityDetaiVue.$data.citys = curDatas;
}else{ }else{
if(positionCity){ if(positionCity){
curDatas.splice(0,0, positionCity) cityDetaiVue.$data.citys.push(positionCity);
} }
cityDetaiVue.$data.citys = curDatas;
$("#cityInfo").hide() $("#cityInfo").hide()
} }
+4 -2
View File
@@ -29,7 +29,7 @@
<div class="content" id="app"> <div class="content" id="app">
<div class="list-block media-list"> <div class="list-block media-list">
<ul> <ul>
<li> <li v-show="showPass">
<a onclick="clicked('/views/user/updatePass.html',true);" class="item-link item-content"> <a onclick="clicked('/views/user/updatePass.html',true);" class="item-link item-content">
<div class="item-inner"> <div class="item-inner">
<div class="item-title-row"> <div class="item-title-row">
@@ -87,12 +87,14 @@ new Vue({
el: '#app', el: '#app',
data: { data: {
showLogin:false, showLogin:false,
showLogout:false showLogout:false,
showPass:false
}, },
mounted() { mounted() {
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
this.showLogin = true; this.showLogin = true;
} else { } else {
this.showPass = true;
this.showLogout = true; this.showLogout = true;
} }
} }