Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 公用 */
|
||||
[v-cloak]{display:none;}
|
||||
*{font-size:16px;font-family:arial,"华文细黑";}
|
||||
ul li{list-style:none;}
|
||||
img{display:block;}
|
||||
@@ -177,6 +176,7 @@ em.down{color:#88D053;}
|
||||
.popover .list-block .item-link.list-button{color:#333;}
|
||||
|
||||
/* 工具栏 */
|
||||
.bar{background:#fff;}
|
||||
.bar-tab .tab-item{color:#C3C0BC;}
|
||||
.bar-tab .tab-item.active,.bar-tab .tab-item:active{color:#F18D00;}
|
||||
.bar-tab .tab-item .icon{padding:0;font-size:1.05rem;}
|
||||
@@ -237,7 +237,7 @@ em.down{color:#88D053;}
|
||||
.list-block .item-title span{font-size:0.7rem;color:#999;}
|
||||
.list-block .item-title span.span01{font-size:0.7rem;color:#666;margin-left:0.3rem;}
|
||||
.list-block .item-title input{display:inline-block;text-align:center;width:60px;border:solid 1px #e6e6ea;}
|
||||
.list-block .item-title b{font-size:0.9rem;}
|
||||
.list-block .item-title b{font-size:0.8rem;}
|
||||
.list-block .item-title em{font-size:0.8rem;color:#EB5F34;}
|
||||
.list-block .item-title .button.button-fill{display:inline-block;width:50px;height:24px;line-height:24px;margin-left:0.5rem;vertical-align:2px;}
|
||||
.list-block .item-title.row{margin-left:0;width:100%;}
|
||||
@@ -311,8 +311,9 @@ em.down{color:#88D053;}
|
||||
.popup-about02 .list-block.historyList{margin-top:-1px;}
|
||||
.popup-about02 .list-block.historyList .searchHistory{padding-top:0;}
|
||||
.newCss ul{padding:0.75rem;padding-top:0;padding-left:0.25rem;overflow:hidden;}
|
||||
.newCss ul li{background:#F4F4F4;border-radius:0.16rem;display:inline-block;margin-left:0.5rem;margin-bottom:0.5rem;padding:0 0.5rem;line-height:1.5rem;}
|
||||
.newCss ul li{background:#F4F4F4;border-radius:0.16rem;display:inline-block;margin-left:0.5rem;margin-bottom:0.5rem;padding:0 0.5rem;line-height:1.5rem;font-size:0.65rem;color:#333;}
|
||||
.newCss ul li span{font-size:0.65rem;color:#333;}
|
||||
.newCss ul li a{font-size:0.65rem;color:#333;}
|
||||
.newCss ul:before,.popup-about02 .list-block.newCss ul:after{height:0;}
|
||||
.content-padded + .newCss ul{padding-bottom:0;}
|
||||
|
||||
@@ -854,6 +855,11 @@ input::-webkit-input-placeholder{
|
||||
/* 图表 */
|
||||
.chart{width:100%;height:250px;}
|
||||
.chart tspan{font-size:0.6rem;text-shadow:none;}
|
||||
/*
|
||||
#tabChart{width:100%;height:360px;}
|
||||
#tabChart1{width:100%;position:absolute;z-index:1;}
|
||||
#tabChart2{width:100%;display:block;position:absolute;z-index:-1;}
|
||||
*/
|
||||
.scoreBox{height:130px;position:relative;}
|
||||
.score{width:250px;height:250px;margin:0 auto;margin-top:1rem;}
|
||||
.scoreText{width:250px;height:150px;position:absolute;top:0;left:50%;margin-left:-125px;}
|
||||
@@ -1059,7 +1065,8 @@ input::-webkit-input-placeholder{
|
||||
.topBg02 p a{font-size:0.75rem;}
|
||||
|
||||
.collection{position:absolute;right:0.75rem;top:0.4rem;text-align:center;color:#666;font-size:0.7rem;}
|
||||
|
||||
.collection02{border:solid 1px #C3C0BC;color:#999;}
|
||||
.collection02:active{border:solid 1px #C3C0BC;color:#999;}
|
||||
.icon-collection01{width:16px;height:16px;background:url(../images/icon-collection01.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;}
|
||||
.icon-collection02{width:16px;height:16px;background:url(../images/icon-collection02.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;}
|
||||
|
||||
@@ -1291,6 +1298,20 @@ input[type=range]::-webkit-slider-thumb {
|
||||
.contentStart img{width:70%;margin:0 auto;margin-top:30%;}
|
||||
.contentStart #test_btn{background:#fff;color:#21a5fe;width:10rem;margin:0 auto;margin-top:1.5rem;}
|
||||
|
||||
/* 引导页 */
|
||||
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
|
||||
.swiper-slide img.guideImg01{width:90%;margin:0 auto;margin-top:7.4rem;}
|
||||
.swiper-slide img.guideImg02{width:85%;margin:0 auto;margin-top:7rem;}
|
||||
.swiper-slide img.guideImg03{width:55%;margin:0 auto;margin-top:8rem;}
|
||||
.swiper-slide div{position:absolute;bottom:5rem;width:100%;}
|
||||
.swiper-slide p{text-align:center;}
|
||||
.swiper-slide p label{font-size:1rem;}
|
||||
.swiper-slide p small{font-size:0.7rem;color:#999;}
|
||||
.swiper-slide div.content-block{bottom:1.5rem;}
|
||||
.swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;}
|
||||
.swiper-pagination-bullet{width:10px;height:10px;background:#D7D7D7;opacity:1;}
|
||||
.swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;}
|
||||
|
||||
/* 字体图标 */
|
||||
@font-face {font-family: "iconfont";
|
||||
src: url('iconfont.eot?t=1522051063980'); /* IE9*/
|
||||
@@ -1365,7 +1386,6 @@ input[type=range]::-webkit-slider-thumb {
|
||||
}
|
||||
@media(max-width:320px){
|
||||
.list-block .item-title span.c3a{max-width:112px;}
|
||||
.list-block .item-title label{max-width:100px;}
|
||||
label.spacing01{margin-right:11px;}
|
||||
label.spacing02{margin-right:12px;}
|
||||
.priceInfo div div span{width:125px;}
|
||||
|
||||
@@ -524,16 +524,17 @@ var option01 = {
|
||||
};
|
||||
|
||||
|
||||
$("#trendDiv2 a").click(function(){
|
||||
/*$("#trendDiv2 a").click(function(){
|
||||
$("#trendDiv2 a").removeClass("active")
|
||||
$(this).addClass("active")
|
||||
//var v = $(this).attr("t-v");
|
||||
loadRentTrends(city, region, name);
|
||||
});
|
||||
});*/
|
||||
|
||||
/* 小区租金走势 */
|
||||
|
||||
function loadRentTrends(city, region, name, type){
|
||||
|
||||
if(type == undefined) type= 2;
|
||||
axios.get("/rest/trend/distRentTrends", {
|
||||
params: {
|
||||
@@ -549,6 +550,7 @@ function loadRentTrends(city, region, name, type){
|
||||
var m = re.times;
|
||||
var pm = re.distMap
|
||||
var rooms = re.rooms;
|
||||
|
||||
if(m && rooms.length>0){
|
||||
|
||||
for(var i=0;i<m.length;i++){
|
||||
@@ -572,7 +574,9 @@ function loadRentTrends(city, region, name, type){
|
||||
distObj.type = 'line';
|
||||
distObj.symbolSize = 0;
|
||||
series.push(distObj);
|
||||
//alert(distDatas);
|
||||
}
|
||||
//alert(categories);
|
||||
|
||||
//showRentChart(categories, series);
|
||||
showRentChart2(categories, series);
|
||||
|
||||
@@ -475,22 +475,23 @@ function addDownChart(dataDown){
|
||||
}
|
||||
|
||||
|
||||
function collectCity(city){
|
||||
function collectCity(city, type){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
collectCity(city)
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
docollectCity(city)
|
||||
docollectCity(city, type)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function docollectCity(city){
|
||||
function docollectCity(city, type){
|
||||
axios.get("/rest/quotations/collectCity",{
|
||||
params:{
|
||||
city : city
|
||||
city : city,
|
||||
type:type
|
||||
}
|
||||
}).then(function (response) {
|
||||
var msg = response.data.message;
|
||||
@@ -518,10 +519,14 @@ function docollectCity(city){
|
||||
$("a[href='#tabQuotation1']").click();
|
||||
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
reloadMyFocus();
|
||||
reloadCityPotentialRanking()
|
||||
reloadCityIncreaseRanking()
|
||||
}else if(msg == "关注成功"){
|
||||
cityInfoVue.$data.collecd = true;
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
reloadMyFocus();
|
||||
reloadCityPotentialRanking()
|
||||
reloadCityIncreaseRanking()
|
||||
}else{
|
||||
$.toast(msg);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ function updateSerivces(){
|
||||
shares[t.id]=t;
|
||||
}
|
||||
}, function(e){
|
||||
alert("获取分享服务列表失败:"+e.message );
|
||||
plus.nativeUI.alert("获取分享服务列表失败:"+e.message );
|
||||
} );
|
||||
}
|
||||
/**
|
||||
@@ -20,7 +20,7 @@ function updateSerivces(){
|
||||
*/
|
||||
function shareAction(sb,bh) {
|
||||
if(!sb||!sb.s){
|
||||
alert("无效的分享服务!");
|
||||
plus.nativeUI.alert("无效的分享服务!");
|
||||
return;
|
||||
}
|
||||
var msg={content:sharehrefDes,extra:{scene:sb.x}};
|
||||
@@ -47,11 +47,11 @@ function shareAction(sb,bh) {
|
||||
if ( sb.s.authenticated ) {
|
||||
shareMessage(msg,sb.s);
|
||||
} else {
|
||||
alert("---未授权---");
|
||||
plus.nativeUI.alert("---未授权---");
|
||||
sb.s.authorize( function(){
|
||||
shareMessage(msg,sb.s);
|
||||
},function(e){
|
||||
alert("认证授权失败:"+e.code+" - "+e.message );
|
||||
plus.nativeUI.alert("认证授权失败:"+e.code+" - "+e.message );
|
||||
|
||||
});
|
||||
}
|
||||
@@ -63,11 +63,11 @@ function shareAction(sb,bh) {
|
||||
*/
|
||||
function shareMessage(msg,s){
|
||||
s.send( msg, function(){
|
||||
alert("分享到\""+s.description+"\"成功! " );
|
||||
plus.nativeUI.alert("分享到\""+s.description+"\"成功! " );
|
||||
|
||||
}, function(e){
|
||||
console.log(e.code+"========="+e.message)
|
||||
alert( "分享到\""+s.description+"\"失败 !");
|
||||
plus.nativeUI.alert( "分享到\""+s.description+"\"失败 !");
|
||||
|
||||
} );
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
<link rel="stylesheet" href="css/mui.min.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<style>
|
||||
.mui-bar-tab .mui-tab-item .mui-icon{color:#C3C0BC;}
|
||||
.mui-bar-tab{background:#fff;box-shadow:none;}
|
||||
.mui-bar-tab .mui-tab-item{border-top:solid 1px #e7e7e7;}
|
||||
.mui-bar-tab .mui-tab-item .mui-icon{font-size:1.4rem;color:#C3C0BC;}
|
||||
.mui-bar-tab .mui-tab-item.mui-active .mui-icon{color:#F18D00;}
|
||||
.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{color:#C3C0BC;}
|
||||
.mui-bar-tab .mui-tab-item.mui-active .mui-icon~.mui-tab-label{color:#F18D00;}
|
||||
|
||||
@@ -1576,7 +1576,8 @@
|
||||
"views/district/detail.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/district/arround.html"
|
||||
"views/district/arround.html",
|
||||
"views/user/codeSms.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
@@ -1698,11 +1699,41 @@
|
||||
"priority": 0
|
||||
},
|
||||
"views/house/houseManageList.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/house/add.html",
|
||||
"views/evaluate/evaluateReport.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/house/cityDetail.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/user/codeSms.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/setting/setting.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/setting/about.html",
|
||||
"views/user/updatePass.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/evaluate/evaluateReport.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/house/add.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/setting/about.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/setting/agreement.html"
|
||||
],
|
||||
"priority": 0
|
||||
}
|
||||
},
|
||||
"idle": {
|
||||
|
||||
@@ -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>'+
|
||||
'</div>'+
|
||||
'<div class="col-20">'+
|
||||
'<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" v-bind:class="{dn:!ci.follow}" v-on:click="abolish(ci.city,$event)">取消</i>'+
|
||||
'<i class="button theme collection collection01" v-bind:class="{dn:ci.follow}" v-on:click="follow(ci.city,$event, 0)">关注</i>'+
|
||||
'<i class="button collection collection02" v-bind:class="{dn:!ci.follow}" v-on:click="abolish(ci.city,$event, 1)">取消</i>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
@@ -47,12 +47,12 @@ Vue.component('city_increase_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
follow:function(city,event){
|
||||
follow:function(city,event, type){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
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){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
@@ -73,7 +73,7 @@ Vue.component('city_increase_ranking',{
|
||||
}
|
||||
})
|
||||
}else{
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
@@ -91,7 +91,7 @@ Vue.component('city_increase_ranking',{
|
||||
}
|
||||
|
||||
},
|
||||
abolish:function(city,event){
|
||||
abolish:function(city,event, type){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
@@ -101,7 +101,7 @@ Vue.component('city_increase_ranking',{
|
||||
}
|
||||
})
|
||||
}else{
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||
$(event.target).parent().children().removeClass("dn");
|
||||
$(event.target).addClass("dn");
|
||||
reloadMyFocus();
|
||||
|
||||
@@ -33,8 +33,8 @@ Vue.component('city_potential_ranking',{
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="col-20">'+
|
||||
'<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" v-bind:class="{dn:!cp.follow}" v-on:click="abolish(cp.city,$event)">取消</i>'+
|
||||
'<i class="button theme collection collection01" v-bind:class="{dn:cp.follow}" v-on:click="follow(cp.city,$event,0)">关注</i>'+
|
||||
'<i class="button collection collection02" v-bind:class="{dn:!cp.follow}" v-on:click="abolish(cp.city,$event,1)">取消</i>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
@@ -65,13 +65,13 @@ Vue.component('city_potential_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
follow:function(city,event){
|
||||
follow:function(city,event,type){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
alert("rrrr")
|
||||
}else{
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
@@ -92,7 +92,7 @@ Vue.component('city_potential_ranking',{
|
||||
}
|
||||
})
|
||||
}else{
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
@@ -110,8 +110,8 @@ Vue.component('city_potential_ranking',{
|
||||
}
|
||||
|
||||
},
|
||||
abolish:function(city,event){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
abolish:function(city,event,type){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||
$(event.target).parent().children().removeClass("dn");
|
||||
$(event.target).addClass("dn");
|
||||
reloadMyFocus()
|
||||
|
||||
@@ -75,6 +75,7 @@ function reloadMyFocus(){
|
||||
$("#myFocusFirstPage").hide();
|
||||
$("#myFocus").hide();
|
||||
}else{
|
||||
|
||||
myFocusDatas.myFocusList = response.data.data;
|
||||
}
|
||||
}).catch(function(error){
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
<style type="text/css">
|
||||
.page > header.bar {background: #F18D00;}
|
||||
.list-block{border-bottom:solid 0.5rem #f3f3f3;}
|
||||
.list-block ul:after{height:0;}
|
||||
</style>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9E99D3540e4dafb7894f7b9fe27fa6b5"></script>
|
||||
</head>
|
||||
@@ -22,7 +23,7 @@
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav theme">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
line-height: 24px;
|
||||
background: url(../../images/dw.png) no-repeat;
|
||||
}
|
||||
.page > header.bar {background: #F18D00;}
|
||||
</style>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9E99D3540e4dafb7894f7b9fe27fa6b5"></script>
|
||||
</head>
|
||||
@@ -36,7 +35,7 @@
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav theme">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left" ></span>
|
||||
</button>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="districtBaseInfo">
|
||||
<div class="page page-current" id="districtBaseInfo" v-cloak>
|
||||
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
@@ -128,35 +128,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart" id="chart02"></div>
|
||||
|
||||
|
||||
<!--<div class="content-block content-block01 content-block01a">
|
||||
<div class="buttons-row theme" id="trendTabDiv">
|
||||
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv" @click="showChat(1)">均价</a>
|
||||
<a href="#tabChart2" class="tab-link button" id="tabRentDiv" @click="showChat(2)">租金</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabChart1" class="tab tabChart1 active">
|
||||
<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">
|
||||
<a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
|
||||
<a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
|
||||
<a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
|
||||
</div>
|
||||
<div class="chart" id="chart01" style="height:360px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<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="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv2">
|
||||
<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</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>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;">
|
||||
@@ -256,8 +227,8 @@ $.config = {router: false}
|
||||
|
||||
<script>
|
||||
var city = "上海"
|
||||
var region = "长宁"
|
||||
var name = "新泾三村"
|
||||
var region = "黄浦"
|
||||
var name = "花园公寓 "
|
||||
//var lat = 31.292437
|
||||
//var lng = 121.48703
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block">
|
||||
<p><a id="evaluation_btn" class="button button-big button-fill theme" id="evaluation_btn">提交评估</a></p>
|
||||
<p><button id="evaluation_btn" class="button button-big button-fill theme" id="evaluation_btn" style="width:100%">提交评估</button></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1652,6 +1652,7 @@ $("#input_status").click(function(e){
|
||||
|
||||
/* 错误提示 */
|
||||
$("#evaluation_btn").on("click", function () {
|
||||
$("#evaluation_btn").attr("disabled","disabled");
|
||||
var a = $("#input_city").val();
|
||||
var b = $("#input_address").val();
|
||||
var c = $("#input_houseType").val();
|
||||
@@ -1660,84 +1661,105 @@ $("#evaluation_btn").on("click", function () {
|
||||
var f = $("#input_area").val();
|
||||
|
||||
if(a == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择城市");
|
||||
return false;
|
||||
}else if(b == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择房屋地址");
|
||||
return false;
|
||||
}else if(c == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择房屋类型");
|
||||
return false;
|
||||
}else if(d == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择楼栋室号");
|
||||
return false;
|
||||
}else if(e == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("楼层不能为空!");
|
||||
return false;
|
||||
}else if(e.indexOf("所在楼层")!= -1){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("所在楼层不能为空!");
|
||||
return false;
|
||||
}else if(e.indexOf("总楼层")!= -1){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("总楼层不能为空!");
|
||||
return false;
|
||||
}else if(f == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请输入房屋面积");
|
||||
return false;
|
||||
}else if(!$("#input_area").isPositiveFloat() || f=='0'){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请输入正确的面积!")
|
||||
return false
|
||||
}else if(Number(f)<10 || Number(f)>1000){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("面积范围10-1000㎡");
|
||||
return false;
|
||||
}
|
||||
if(type==0){
|
||||
if($("#input_status").val()=='出租'){
|
||||
if($("#input_time01").isBlank()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择起租日期")
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#input_time02").isBlank()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择到期日期")
|
||||
return false;
|
||||
}
|
||||
if($("#input_time01").val()>$("#input_time02").val()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("到期日期必须晚于起租日期");
|
||||
return false;
|
||||
}
|
||||
var nowDay = new Date().format("yyyy-MM-dd");
|
||||
if($("#input_time02").val()<nowDay){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("到期日期不能早于今天");
|
||||
return false;
|
||||
}
|
||||
var g = $("#input_rent").val();
|
||||
if($("#input_rent").isBlank()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请输入每期租金")
|
||||
return false;
|
||||
}
|
||||
|
||||
if(Number(g)<100 || Number(g)>200000){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("租金范围100-200000元");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#input_rent").isPositiveInteger()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("每期租金必须是整数")
|
||||
return false;
|
||||
}
|
||||
if($("#input_cycle").isBlank()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("收租周期不能为空")
|
||||
return false;
|
||||
}
|
||||
if($("#input_time03").isBlank()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("下次收租日期不能为空")
|
||||
return false;
|
||||
}
|
||||
if($("#input_time03").val()>$("#input_time02").val()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("收租日期不能晚于到期日期");
|
||||
return false;
|
||||
}
|
||||
if($("#input_time03").val()<i){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("下次收租日期不能早于今天");
|
||||
return false;
|
||||
}
|
||||
@@ -1746,15 +1768,18 @@ $("#evaluation_btn").on("click", function () {
|
||||
if(c && c.indexOf("别墅")<0){
|
||||
var num = e.replace(/第/g,"").replace(/层/g,"").replace(/共/g,"").split(" ");
|
||||
if(parseInt(num[0])>parseInt(num[1])){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("总楼层选择错误!")
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
if($("#cityAddress").val() != "" && $("#cityAddress").val() != $("#input_city").val()){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("城市和房屋地址不匹配")
|
||||
return false
|
||||
}
|
||||
|
||||
axios.get("/rest/index/checkAddress", {
|
||||
params: {
|
||||
city: $("#input_city").val(),
|
||||
@@ -1773,7 +1798,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
$("#input_city").val(district.city)
|
||||
checkIsLogin();
|
||||
}else{
|
||||
// $("#nextBtn").attr("disabled", false)
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
console.log("error");
|
||||
$.toast(response.data.message)
|
||||
}
|
||||
@@ -1787,6 +1812,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
//var loginFlag=false;
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
clicked('/views/user/codeSms.html',true,false,{},{},function(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
|
||||
@@ -1833,11 +1859,13 @@ function addEvaluation(){
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
var id = response.data.data.id;
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
|
||||
}else{
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a>
|
||||
|
||||
</div>
|
||||
<div class="card-header">
|
||||
|
||||
@@ -172,8 +172,8 @@
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a>
|
||||
|
||||
</div>
|
||||
<div class="card-header">
|
||||
@@ -243,7 +243,7 @@
|
||||
<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
|
||||
<div class="card-header">{{nearDist.sname}}</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner" v-if="nearDist.avgPrice">{{nearDist.avgPrice}}元/㎡</div>
|
||||
<div class="card-content-inner" v-if="nearDist.avgPrice > 0">{{nearDist.avgPrice}}元/㎡</div>
|
||||
<div class="card-content-inner" v-else>暂无</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1558,7 +1558,7 @@ function addFocus(city){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
|
||||
}else{
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
reloadCityPotentialRanking()
|
||||
@@ -1572,7 +1572,7 @@ function addFocus(city){
|
||||
}
|
||||
})
|
||||
}else{
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){
|
||||
if(response.data.status){
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="districtBaseInfo">
|
||||
<div class="page page-current" id="districtBaseInfo" v-cloak>
|
||||
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
@@ -94,14 +94,16 @@
|
||||
<div class="topicTitle" style="position:relative;">小区租金走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme" id="trendDiv2">
|
||||
<a t-v="2" class="tab-link button active">半年</a>
|
||||
<a t-v="3" class="tab-link button">一年</a>
|
||||
<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
|
||||
<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;" id="rentTrendDiv">
|
||||
<div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="topic dn" id="mapDiv">
|
||||
@@ -175,8 +177,8 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
var city = "上海"
|
||||
var region = "闵行"
|
||||
var name = "卓越维港别墅"
|
||||
var region = "黄浦"
|
||||
var name = "花园公寓"
|
||||
|
||||
var lat;
|
||||
var lng;
|
||||
@@ -210,8 +212,11 @@ function onPlusReady() {
|
||||
tags:[]
|
||||
}
|
||||
})
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name,2);
|
||||
}
|
||||
|
||||
|
||||
//baseInfo = new Vue({
|
||||
// el: '#districtBaseInfo',
|
||||
// data: {
|
||||
@@ -222,10 +227,8 @@ function onPlusReady() {
|
||||
// tags:[]
|
||||
// }
|
||||
// })
|
||||
//
|
||||
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name);
|
||||
|
||||
|
||||
function openMapWindow(){
|
||||
clicked('../district/arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
|
||||
@@ -106,13 +106,13 @@ mui.init({
|
||||
});
|
||||
|
||||
function logout() {
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
//退出登录之前loading下个人中心
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
timer.start();
|
||||
}
|
||||
|
||||
|
||||
+14
-15
@@ -15,20 +15,10 @@
|
||||
<link rel="stylesheet" href="css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.bar{background:#fff;}
|
||||
.selectBox{border-top:solid 0.5rem #f3f3f3;border-bottom:solid 1px #e5e5e5;}
|
||||
.selectContent .topic{border-bottom:solid 1px #e5e5e5;}
|
||||
.selectContent .list-block .item-title{font-size:0.7rem;}
|
||||
.buttons-row.theme .button{border:solid 1px #D7D7D7;color:#333;}
|
||||
.buttons-row.theme .button.active{background:none;color:#F18D00;}
|
||||
.content-block01 .row{margin-left:0;}
|
||||
.content-block01 .row .col-50 .button.button-fill{height:2rem;line-height:2rem;}
|
||||
.content-block01 .row .col-50 .button.button-fill.reset_btn{background:#fff;border:none;border-top:solid 1px #e5e5e5;}
|
||||
.content-block01 .row .col-50 .button.button-fill.confirm_btn{background:#F18D00;border:solid 1px #F18D00;}
|
||||
.selectBox{border-top:solid 0.5rem #f3f3f3;}
|
||||
.cardInfo:first-child{border-top:none;}
|
||||
.info-container input{float:none;width:100%;}
|
||||
.picker-item{padding:0 5rem;font-size:18px;}
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:60%;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -1581,7 +1571,7 @@ $("#region").click(function(e){
|
||||
})
|
||||
})*/
|
||||
|
||||
$("body").delegate(".icon-light-red", "click", function () {
|
||||
$("body").delegate(".vote01 .icon-light-grey", "click", function () {
|
||||
var id = $(this).attr("data-val");
|
||||
var voteFavorCount = parseInt($("#voteFavorCount_"+id).text().split(" ")[0].replace("票",""))+1;
|
||||
var voteNoFavorCount = parseInt($("#voteNoFavorCount_"+id).text().split(" ")[0].replace("票",""));
|
||||
@@ -1594,7 +1584,7 @@ $("body").delegate(".icon-light-red", "click", function () {
|
||||
doVote(id,0);
|
||||
});
|
||||
|
||||
$("body").delegate(".icon-light-grey", "click", function () {
|
||||
$("body").delegate(".vote02 .icon-light-grey", "click", function () {
|
||||
var id = $(this).attr("data-val");
|
||||
var voteFavorCount = parseInt($("#voteFavorCount_"+id).text().split(" ")[0].replace("票",""));
|
||||
var voteNoFavorCount = parseInt($("#voteNoFavorCount_"+id).text().split(" ")[0].replace("票",""))+1;
|
||||
@@ -1856,7 +1846,7 @@ function addItems(number, lastIndex) {
|
||||
|
||||
html += '<div class="card cardInfo cardInfo03"><div class="card-header">'+dataObj[i].title+
|
||||
'</div><div class="card-content"><div class="card-content-inner row"><div class="vote01 col-50">'+
|
||||
'<i class="icon icon-light-red" data-val="'+dataObj[i].id+'"></i><span>'+dataObj[i].voteFavorText+'</span>'+
|
||||
'<i class="icon icon-light-grey" data-val="'+dataObj[i].id+'"></i><span>'+dataObj[i].voteFavorText+'</span>'+
|
||||
'<font style="width:'+voteFavorCountRate+'%;" id="voteFavorCountRate_'+dataObj[i].id+'"></font><label id="voteFavorCount_'+dataObj[i].id+'">'+voteFavorCount+'票 '+voteFavorCountRate+'%</label></div>'+
|
||||
'<div class="vote02 col-50"><i class="icon icon-light-grey" data-val="'+dataObj[i].id+'"></i><span>'+dataObj[i].voteNoFavorText+'</span>'+
|
||||
'<font style="width:'+voteNoFavorCountRate+'%;" id="voteNoFavorCountRate'+dataObj[i].id+'"></font><label id="voteNoFavorCount_'+dataObj[i].id+'">'+voteNoFavorCount+'票 '+voteNoFavorCountRate+'%</label></div><em>V.S</em></div></div></div>';
|
||||
@@ -2639,6 +2629,15 @@ function openDistWindow(city, region, name){
|
||||
}
|
||||
});*/
|
||||
|
||||
/* 投票 */
|
||||
$("body").delegate(".vote01 .icon-light-grey", "click", function () {
|
||||
$(".vote01 .icon-light-grey").addClass("icon-light-red");
|
||||
$(".vote02 .icon-light-grey").removeClass("icon-light-blue");
|
||||
});
|
||||
$("body").delegate(".vote02 .icon-light-grey", "click", function () {
|
||||
$(".vote01 .icon-light-grey").removeClass("icon-light-red");
|
||||
$(".vote02 .icon-light-grey").addClass("icon-light-blue");
|
||||
});
|
||||
|
||||
$("body").delegate("#hotList ul li", "click", function () {
|
||||
var select_city = $(this).find("a").attr("data-city");
|
||||
|
||||
Reference in New Issue
Block a user