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

This commit is contained in:
xuhe@fangjia.com
2018-04-17 16:48:35 +08:00
25 changed files with 500 additions and 384 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
/**服务端地址**/ /**服务端地址**/
//var BASE_PATH = "http://192.168.10.128:8084"; //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.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.47:8086"; //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.53:8084";
//var BASE_PATH = "http://192.168.10.171:8084"; //var BASE_PATH = "http://192.168.10.171:8084";
/**是否显示过启动页面**/ /**是否显示过启动页面**/
var lauchFlag = false; var lauchFlag = false;
+11 -7
View File
@@ -2,7 +2,6 @@
/* CSS Document */ /* CSS Document */
/* 公用 */ /* 公用 */
[v-cloak]{display:none;}
*{font-size:16px;font-family:arial,"华文细黑";} *{font-size:16px;font-family:arial,"华文细黑";}
ul li{list-style:none;} ul li{list-style:none;}
img{display:block;} img{display:block;}
@@ -849,7 +848,7 @@ input::-webkit-input-placeholder{
.topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;} .topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;}
/* 广告 */ /* 广告 */
.ad{display:block;border-top:solid 0.5rem #f3f3f3;border-bottom:solid 0.5rem #f3f3f3;} .ad{display:block;border-bottom:solid 0.5rem #f3f3f3;}
.ad img{width:100%;} .ad img{width:100%;}
/* 图表 */ /* 图表 */
@@ -1300,14 +1299,15 @@ input[type=range]::-webkit-slider-thumb {
/* 引导页 */ /* 引导页 */
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;} .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{margin:0 auto;margin-top:7rem;}
.swiper-slide img.guideImg02{width:85%;margin:0 auto;margin-top:7rem;} .swiper-slide img.guideImg01{width:90%;}
.swiper-slide img.guideImg03{width:55%;margin:0 auto;margin-top:8rem;} .swiper-slide img.guideImg02{width:85%;}
.swiper-slide img.guideImg03{width:55%;}
.swiper-slide div{position:absolute;bottom:5rem;width:100%;} .swiper-slide div{position:absolute;bottom:5rem;width:100%;}
.swiper-slide p{text-align:center;} .swiper-slide p{text-align:center;padding:0 1rem;}
.swiper-slide p label{font-size:1rem;} .swiper-slide p label{font-size:1rem;}
.swiper-slide p small{font-size:0.7rem;color:#999;} .swiper-slide p small{font-size:0.7rem;color:#999;}
.swiper-slide div.content-block{bottom:1.5rem;} .swiper-slide div.content-block{bottom:0.5rem;}
.swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;} .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{width:10px;height:10px;background:#D7D7D7;opacity:1;}
.swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;} .swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;}
@@ -1386,6 +1386,7 @@ input[type=range]::-webkit-slider-thumb {
} }
@media(max-width:320px){ @media(max-width:320px){
.list-block .item-title span.c3a{max-width:112px;} .list-block .item-title span.c3a{max-width:112px;}
.list-block .item-title label{max-width:100px;}
label.spacing01{margin-right:11px;} label.spacing01{margin-right:11px;}
label.spacing02{margin-right:12px;} label.spacing02{margin-right:12px;}
.priceInfo div div span{width:125px;} .priceInfo div div span{width:125px;}
@@ -1405,6 +1406,9 @@ input[type=range]::-webkit-slider-thumb {
@media(min-height:750px){ @media(min-height:750px){
.bar-tab{bottom:1.7rem;} .bar-tab{bottom:1.7rem;}
.bar-tab ~ .content{bottom:4.2rem;} .bar-tab ~ .content{bottom:4.2rem;}
.swiper-slide div{bottom:12rem;}
.swiper-slide div.content-block{bottom:5rem;}
.swiper-container-horizontal>.swiper-pagination{bottom:4rem;}
} }
@media only screen and (-webkit-min-device-pixel-ratio:2){ @media only screen and (-webkit-min-device-pixel-ratio:2){
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);} .list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
+2
View File
@@ -231,6 +231,7 @@ html:not(.watch-active-state) .theme label.label-radio:active,
.priceRecovery .col-50 .button.theme{background:none;border-color:#F18D00;color:#F18D00;} .priceRecovery .col-50 .button.theme{background:none;border-color:#F18D00;color:#F18D00;}
.page > header.bar.theme{background:#F18D00;} .page > header.bar.theme{background:#F18D00;}
.bar .button-nav:active{color:#F18D00;}
.bar-nav.theme .icon.icon-left{color:#fff;} .bar-nav.theme .icon.icon-left{color:#fff;}
.bar .button-link.theme{background:none;color:#F18D00;} .bar .button-link.theme{background:none;color:#F18D00;}
@@ -243,6 +244,7 @@ html:not(.watch-active-state) .theme label.label-radio:active,
.buttons-row.theme{background:none;} .buttons-row.theme{background:none;}
.buttons-row.theme .button{border-color:#D7D7D7;color:#999;} .buttons-row.theme .button{border-color:#D7D7D7;color:#999;}
.buttons-row.theme .button.active{background:none;border-color:#F18D00;color:#F18D00;} .buttons-row.theme .button.active{background:none;border-color:#F18D00;color:#F18D00;}
.buttons-row01.theme .button{color:#333;}
.selectBox div.theme{background:none;} .selectBox div.theme{background:none;}
.selectBox div.theme.active{color:#F18D00;} .selectBox div.theme.active{color:#F18D00;}
+5 -24
View File
@@ -11,33 +11,13 @@
<link rel="stylesheet" href="css/sm.css"> <link rel="stylesheet" href="css/sm.css">
<link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/theme-blue.css"> <link rel="stylesheet" href="css/theme-orange.css">
<style> <style>
.contentError img{width:20%;margin-bottom:1.5rem;} .contentError img{width:20%;margin-bottom:1.5rem;}
.contentError em{font-size:1rem;color:#8890a4;margin-bottom:0.5rem;} .contentError em{font-size:1rem;color:#8890a4;margin-bottom:0.5rem;}
.contentError p{color:#bac0ce;} .contentError p{color:#bac0ce;}
.contentError a{width:50%;margin:0 auto;margin-top:2rem;text-decoration:none;} .contentError a{width:50%;margin:0 auto;margin-top:2rem;text-decoration:none;}
.iback {
background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAACcklEQVR4nO3a0XESURiG4TeO99iBWoGZ+RvADtKBpAPtwBLsANJBrEAs4MyYDmIHSQXkgk0mMLK7ILt8/+F778ici394OGfDsher1Qqn05tTD+A2M4hYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYb089wNCVUq6Ay+blfUQsTjhOZxc1P9tbSlkAX7b+/C0ifpxgnF5Ve2TtwAD4OvIoe1UlSAsGwPsRR9m76kA6MAD+jjTKQVUF0gMD4HaEUQ6umot6T4ybiJgNP83hVbFDasGACnZIT4yfEXE1wjj/Xeod0hPjDpgNPsyRSguyB8Y0Ih6Gn+g4pQSpFQMSgtSMAclAaseARCDngAFJQM4FAxKAnBMGiH8xLKVMgV89ln6MiPthpxkn6R0SEUvgusfSZSnlsnuZftI75LlSygyYdyx7ZH1s/Rl+ouFKAQIvx9ctMGlZlh4lDQhAcywtqRhF+hqyXfMmT1m/6buasL6mzMaY6dilAoENlLuWZRNgnhEl1ZH1ulLKO9bH16eOpdfqz2K9Lt0Oea75EjilfadAsp2SFgQ2UH53LJ2XUr4PPtARSntkbVfL7+rVgEBvlM/NHQDJUh9Z2zWf/puOZbPhJzm8qkDgBaXt/teHcSY5rOpAAJp/c/vclJSrShDYifKI+NPvVV3U/1VzU3LavFyo/25SPUi2qj2ysmYQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsZ4Ak9fPFwUy/HsAAAAASUVORK5CYII=);
background-size: 50px 44px;
}
header {
background: #D74B28;
/*background: -webkit-linear-gradient(top,rgba(215,75,40,1),rgba(215,75,40,0.8));*/
z-index: 9999;
/*border-bottom: 1px solid rgba(215,75,40,0.8);*/
-ms-touch-action: none;
}
.nvbt {
width:5%;
height:100%;
float:left;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
</style> </style>
</head> </head>
@@ -46,9 +26,10 @@ header {
<div class="page-group"> <div class="page-group">
<div class="page page-current"> <div class="page page-current">
<header class="bar bar-nav"> <header class="bar bar-nav barBorder">
<div class="nvbt iback" onclick="back(),plus.nativeUI.closeWaiting();"></div> <button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
<h1 class="title"></h1> <span class="icon icon-left"></span>
</button>
</header> </header>
<div class="content contentError"> <div class="content contentError">
<img src="img/errorInternet.png"> <img src="img/errorInternet.png">
File diff suppressed because one or more lines are too long
+12 -3
View File
@@ -1,6 +1,6 @@
axios.defaults.baseURL = BASE_PATH; axios.defaults.baseURL = BASE_PATH;
axios.defaults.headers.post['Content-Type'] = 'application/json'; axios.defaults.headers.post['Content-Type'] = 'application/json';
axios.defaults.timeout = 10000; axios.defaults.timeout = 15000;
// 添加请求拦截器 // 添加请求拦截器
axios.interceptors.request.use(function (config) { axios.interceptors.request.use(function (config) {
@@ -11,18 +11,27 @@ axios.interceptors.request.use(function (config) {
return Promise.reject(error); return Promise.reject(error);
}); });
var showTimeOutTime = 0;
// 添加响应拦截器 // 添加响应拦截器
axios.interceptors.response.use(function (response) { axios.interceptors.response.use(function (response) {
plus.nativeUI.closeWaiting();
return response; return response;
}, function (error) { }, function (error) {
if(error=="Error: Network Error"){ if (error.toString().indexOf('timeout') > -1) {
var curTime = new Date();
if (curTime - showTimeOutTime > 5000) {
plus.nativeUI.alert("请求超时");
showTimeOutTime = new Date();
}
plus.nativeUI.closeWaiting();
}else if(error=="Error: Network Error"){
if(plus.webview.getWebviewById('error.html')==null){ if(plus.webview.getWebviewById('error.html')==null){
clicked('error.html',true,false,{},{},function(){ clicked('error.html',true,false,{},{},function(){
window.location.reload(); window.location.reload();
}) })
}else{ }else{
$(".loadingBg").hide(); $(".loadingBg").hide();
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
plus.webview.getWebviewById("error.html").show(); plus.webview.getWebviewById("error.html").show();
} }
} }
+72
View File
@@ -0,0 +1,72 @@
var renameCitys = [{"baiduCity": "阿克苏地区", "city": "阿克苏"},
{"baiduCity": "阿勒泰地区", "city": "阿勒泰"},
{"baiduCity": "阿里地区", "city": "阿里"},
{"baiduCity": "博尔塔拉蒙古自治州", "city": "博尔塔拉"},
{"baiduCity": "昌都地区", "city": "昌都"},
{"baiduCity": "昌吉回族自治州", "city": "昌吉"},
{"baiduCity": "白沙黎族自治县", "city": "白沙"},
{"baiduCity": "保亭黎族苗族自治县", "city": "保亭"},
{"baiduCity": "巴音郭楞蒙古自治州", "city": "巴音郭楞"},
{"baiduCity": "毕节地区", "city": "毕节"},
{"baiduCity": "昌都地区", "city": "昌都"},
{"baiduCity": "昌江黎族自治县", "city": "昌江"},
{"baiduCity": "楚雄彝族自治州", "city": "楚雄"},
{"baiduCity": "澄迈县", "city": "澄迈"},
{"baiduCity": "定安县", "city": "定安"},
{"baiduCity": "大兴安岭地区", "city": "大兴安岭"},
{"baiduCity": "迪庆藏族自治州", "city": "迪庆州"},
{"baiduCity": "德宏傣族景颇族自治州", "city": "德宏州"},
{"baiduCity": "恩施土家族苗族自治州", "city": "恩施"},
{"baiduCity": "甘南藏族自治州", "city": "甘南"},
{"baiduCity": "甘孜藏族自治州", "city": "甘孜州"},
{"baiduCity": "果洛藏族自治州", "city": "果洛州"},
{"baiduCity": "哈密地区", "city": "哈密"},
{"baiduCity": "海北藏族自治州", "city": "海北州"},
{"baiduCity": "海南藏族自治州", "city": "海南州"},
{"baiduCity": "海西蒙古族藏族自治州", "city": "海西州"},
{"baiduCity": "海东地区", "city": "海东"},
{"baiduCity": "和田地区", "city": "和田"},
{"baiduCity": "红河哈尼族彝族自治州", "city": "红河"},
{"baiduCity": "黄南藏族自治州", "city": "黄南州"},
{"baiduCity": "喀什地区", "city": "喀什"},
{"baiduCity": "克孜勒苏柯尔克孜自治州", "city": "克孜勒苏"},
{"baiduCity": "乐东黎族自治县", "city": "乐东"},
{"baiduCity": "凉山彝族自治州", "city": "凉山州"},
{"baiduCity": "临高县", "city": "临高"},
{"baiduCity": "临夏回族自治州", "city": "临夏"},
{"baiduCity": "陵水黎族自治县", "city": "陵水"},
{"baiduCity": "林芝地区", "city": "林芝"},
{"baiduCity": "那曲地区", "city": "那曲"},
{"baiduCity": "怒江傈僳族自治州", "city": "怒江州"},
{"baiduCity": "琼中黎族苗族自治县", "city": "琼中"},
{"baiduCity": "黔东南苗族侗族自治州", "city": "黔东南"},
{"baiduCity": "黔南布依族苗族自治州", "city": "黔南"},
{"baiduCity": "黔西南布依族苗族自治州", "city": "黔西南"},
{"baiduCity": "日喀则地区", "city": "日喀则"},
{"baiduCity": "山南地区", "city": "山南"},
{"baiduCity": "神农架林区", "city": "神农架"},
{"baiduCity": "塔城地区", "city": "塔城"},
{"baiduCity": "铜仁地区", "city": "铜仁"},
{"baiduCity": "吐鲁番地区", "city": "吐鲁番"},
{"baiduCity": "屯昌县", "city": "屯昌"},
{"baiduCity": "文山壮族苗族自治州", "city": "文山州"},
{"baiduCity": "西双版纳傣族自治州", "city": "西双版纳州"},
{"baiduCity": "湘西土家族苗族自治州", "city": "湘西"},
{"baiduCity": "延边朝鲜族自治州", "city": "延边"},
{"baiduCity": "伊犁哈萨克自治州", "city": "伊犁"},
{"baiduCity": "玉树藏族自治州", "city": "玉树州"}];
/**
* 把百度的城市格式化成房价网的城市
* @param baiduCity
* @returns {string}
*/
function formatBaiduCity(baiduCity) {
var newCity = "";
for (var i = 0; i < renameCitys.length; i++) {
if (renameCitys[i].baiduCity == baiduCity) {
newCity = renameCitys[i].city;
break;
}
}
return newCity;
}
+182 -177
View File
@@ -334,194 +334,199 @@ function showTrends(v){
var option01 = { var option01 = {
animation: false, animation: false,
color: colorList, color: colorList,
title: { title: {
text: null, text: null,
left: 'center' left: 'center'
}, },
legend: { legend: {
show: false, show: false,
top: 30, top: 30,
data: ['均价'] data: ['均价']
}, },
tooltip: { tooltip: {
triggerOn: 'none', triggerOn: 'none',
transitionDuration: 0, transitionDuration: 0,
confine: true, confine: true,
bordeRadius: 4, bordeRadius: 4,
borderWidth: 1, borderWidth: 1,
borderColor: '#333', borderColor: '#333',
backgroundColor: 'rgba(255,255,255,0.9)', backgroundColor: 'rgba(255,255,255,0.9)',
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,
color: '#333' color: '#333'
}, },
formatter: function (params) { formatter: function (params) {
var res = params[0].seriesName + ' ' + params[0].name; var res = params[0].seriesName + ' ' + params[0].name;
res += '<br/> 月初 : ' + params[0].value[1]; res += '<br/> 月初 : ' + params[0].value[1];
res += '<br/> 月末 : ' + params[0].value[2]; res += '<br/> 月末 : ' + params[0].value[2];
res += '<br/> 最低 : ' + params[0].value[3]; res += '<br/> 最低 : ' + params[0].value[3];
res += '<br/> 最高 : ' + params[0].value[4]; res += '<br/> 最高 : ' + params[0].value[4];
return res; return res;
}, },
position: function (pos, params, el, elRect, size) { position: function (pos, params, el, elRect, size) {
var obj = { var obj = {
top: 60 top: 60
}; };
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5; obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
return obj; return obj;
}
},
axisPointer: {
link: [{
xAxisIndex: [0, 1]
}]
},
dataZoom: [{
type: 'slider',
xAxisIndex: [0, 1],
realtime: false,
start: 1,
end: 99,
top: 5,
height: 20,
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
handleSize: '120%'
}, {
type: 'inside',
xAxisIndex: [0, 1],
start: 40,
end: 70,
top: 30,
height: 20
}],
xAxis: [{
type: 'category',
data: dates,
boundaryGap : false,
axisLine: { lineStyle: { color: '#666' } },
axisLabel: {
formatter: function (value) {
return echarts.format.formatTime('MM-dd', value);
} }
}, },
min: 'dataMin',
max: 'dataMax',
axisPointer: { axisPointer: {
link: [{ show: true
xAxisIndex: [0, 1] }
}] }, {
}, type: 'category',
dataZoom: [{ gridIndex: 1,
type: 'slider', data: dates,
xAxisIndex: [0, 1], scale: false,
realtime: false, boundaryGap : false,
start: 5, splitLine: {show: false},
end: 95, axisLabel: {show: false},
top: 65, axisTick: {show: false},
height: 20, axisLine: {lineStyle: { color: '#fff' } },
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z', splitNumber: 20,
handleSize: '120%' min: 'dataMin',
}, { max: 'dataMax',
type: 'inside', axisPointer: {
xAxisIndex: [0, 1], type: 'line',
start: 40, lineStyle: {
end: 70, color: '#fff',
top: 30, width: 1,
height: 20 type: 'solid'
}], },
xAxis: [{ label: {show: false},
type: 'category', triggerTooltip: true,
data: dates, handle: {
boundaryGap : false, show: true,
axisLine: { lineStyle: { color: '#666' } }, margin: -70,
color: '#F18D00'
}
}
}],
yAxis: [{
name: '均价(元/㎡)',
nameRotate: 90,
nameLocation: 'center',
nameGap: 5,
position: 'right',
nameTextStyle: {
color: '#999'
},
scale: true,
splitNumber: 2,
axisLine: { lineStyle: { color: '#999' } },
splitLine: { show: true },
axisTick: { show: false },
axisLabel: { axisLabel: {
formatter: function (value) { inside: true,
return echarts.format.formatTime('MM-dd', value); formatter: '{value}\n'
}
},
min: 'dataMin',
max: 'dataMax',
axisPointer: {
show: true
} }
}, { }, {
type: 'category', name: '',
nameRotate: 90,
nameLocation: 'center',
nameGap: 5,
position: 'right',
nameTextStyle: {
color: '#999'
},
scale: true,
gridIndex: 1, gridIndex: 1,
data: dates, splitNumber: 2,
scale: false,
boundaryGap : false,
splitLine: {show: false},
axisLabel: {show: false}, axisLabel: {show: false},
axisLine: {show: false},
axisTick: {show: false}, axisTick: {show: false},
axisLine: {lineStyle: { color: '#fff' } }, splitLine: {show: false}
splitNumber: 20, }],
min: 'dataMin', grid: [{
max: 'dataMax', left: 20,
axisPointer: { right: 20,
//type: 'shadow', top: 60,
label: {show: false}, height: 120
triggerTooltip: true, }, {
handle: { left: 20,
show: true, right: 20,
margin: -20, height: 40,
color: '#F18D00' top: 260
}],
graphic: [{
type: 'group',
left: 'center',
top: 70,
width: 300,
bounding: 'raw'
}],
series: [/*{
name: '成交量',
type: 'bar',
xAxisIndex: 1,
yAxisIndex: 1,
itemStyle: {
normal: {
color: '#87cefa'
},
emphasis: {
color: 'black'
}
},
data: volumes
}, */{
type: 'candlestick',
name: '均价',
data: data,
itemStyle: {
normal: {
color: '#EB5F34',
color0: '#88D053',
borderColor: '#EB5F34',
borderColor0: '#88D053'
},
emphasis: {
color: '#F18D00',
color0: '#666',
borderColor: '#F18D00',
borderColor0: '#666'
} }
} }
}], }]
yAxis: [{ };
name: '均价(元/㎡)',
nameRotate: 90,
nameLocation: 'center',
nameGap: 5,
position: 'right',
nameTextStyle: {
color: '#999'
},
scale: true,
splitNumber: 2,
axisLine: { lineStyle: { color: '#999' } },
splitLine: { show: true },
axisTick: { show: false },
axisLabel: {
inside: true,
formatter: '{value}\n'
}
}, {
name: '',
nameRotate: 90,
nameLocation: 'center',
nameGap: 5,
position: 'right',
nameTextStyle: {
color: '#999'
},
scale: true,
gridIndex: 1,
splitNumber: 2,
axisLabel: {show: false},
axisLine: {show: false},
axisTick: {show: false},
splitLine: {show: false}
}],
grid: [{
left: 20,
right: 20,
top: 110,
height: 120
}, {
left: 20,
right: 20,
height: 40,
top: 260
}],
graphic: [{
type: 'group',
left: 'center',
top: 70,
width: 300,
bounding: 'raw'
}],
series: [/*{
name: '成交量',
type: 'bar',
xAxisIndex: 1,
yAxisIndex: 1,
itemStyle: {
normal: {
color: '#87cefa'
},
emphasis: {
color: 'black'
}
},
data: volumes
}, */{
type: 'candlestick',
name: '均价',
data: data,
itemStyle: {
normal: {
color: '#EB5F34',
color0: '#88D053',
borderColor: '#EB5F34',
borderColor0: '#88D053'
},
emphasis: {
color: '#F18D00',
color0: '#666',
borderColor: '#F18D00',
borderColor0: '#666'
}
}
}]
};
/*$("#trendDiv2 a").click(function(){ /*$("#trendDiv2 a").click(function(){
+20 -3
View File
@@ -15,11 +15,12 @@ function loadMyCollectCity(){
if(positionCity){ if(positionCity){
cityDetaiVue.$data.citys.push(positionCity); cityDetaiVue.$data.citys.push(positionCity);
} }
$("#cityInfo").hide()
} }
$("#cityInfo").hide()
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
}).catch(function (error) { }).catch(function (error) {
plus.nativeUI.closeWaiting();
console.log(error); console.log(error);
}); });
} }
@@ -36,8 +37,10 @@ function loadCurCity(city){
cityInfoVue.$data.collecd = false; cityInfoVue.$data.collecd = false;
} }
} }
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
}).catch(function (error) { }).catch(function (error) {
plus.nativeUI.closeWaiting();
console.log(error); console.log(error);
}); });
} }
@@ -50,6 +53,7 @@ function loadCityPriceInfo(city){
} }
}).then(function (response) { }).then(function (response) {
var data1 = response.data.data var data1 = response.data.data
if(data1){ if(data1){
var cityObj = new Object(); var cityObj = new Object();
cityObj.city = data1.city cityObj.city = data1.city
@@ -62,7 +66,9 @@ function loadCityPriceInfo(city){
cityObj.rangeLevel = data1.rangeLevel cityObj.rangeLevel = data1.rangeLevel
cityObj.time = year + month cityObj.time = year + month
cityInfoVue.$data.myCityMap = cityObj; cityInfoVue.$data.myCityMap = cityObj;
$("#priceDiv").removeClass("dn");
} }
}).catch(function (error) { }).catch(function (error) {
console.log(error); console.log(error);
}); });
@@ -482,7 +488,18 @@ function collectCity(city, type){
}) })
return; return;
} else { } else {
docollectCity(city, type)
var title = ""
if(type == 0){
title = "您确定要添加关注?"
}else{
title = "您确定要取消关注?"
}
$.confirm(title, function () {
docollectCity(city, type)
});
} }
} }
+3 -4
View File
@@ -29,11 +29,11 @@ function shareAction(sb,bh) {
if(sharehrefTitle&&sharehrefTitle!=""){ if(sharehrefTitle&&sharehrefTitle!=""){
msg.title=sharehrefTitle; msg.title=sharehrefTitle;
} }
if(sharehrefDes&&sharehrefDes!=""){ if(sharehrefTitle&&sharehrefTitle!=""){
if(sb.title=="新浪微博"){ if(sb.title=="新浪微博"){
msg.content=shareUrl+sharehrefDes; msg.content=shareUrl+"\t"+sharehrefTitle;
}else{ }else{
msg.content=sharehrefDes; msg.content=sharehrefTitle;
} }
} }
msg.thumbs=[picUrl]; msg.thumbs=[picUrl];
@@ -47,7 +47,6 @@ function shareAction(sb,bh) {
if ( sb.s.authenticated ) { if ( sb.s.authenticated ) {
shareMessage(msg,sb.s); shareMessage(msg,sb.s);
} else { } else {
plus.nativeUI.alert("---未授权---");
sb.s.authorize( function(){ sb.s.authorize( function(){
shareMessage(msg,sb.s); shareMessage(msg,sb.s);
},function(e){ },function(e){
+29 -4
View File
@@ -310,7 +310,7 @@
"description": "可选,微信分享", "description": "可选,微信分享",
"appid": "wx734a9e3085abcd90", "appid": "wx734a9e3085abcd90",
"appsecret": "47ce59f3c52984c4e193880fb09b12af" "appsecret": "47ce59f3c52984c4e193880fb09b12af"
} },"qq":{"appid":"1106734669","description":"QQ分享"},"sina":{"appkey":"3194052034","appsecret":"e863ae4e4f14d41af3142e5ae06867dd","redirect_uri":"http://fangjia.com","description":"可选,新浪微博分享"}
}, },
"payment": {}, "payment": {},
"oauth": { "oauth": {
@@ -1546,7 +1546,8 @@
"views/rent/rent.html", "views/rent/rent.html",
"views/district/detail.html", "views/district/detail.html",
"views/house/houseList.html", "views/house/houseList.html",
"views/house/cityDetail.html" "views/house/cityDetail.html",
"views/intelligentHouse/index.html"
], ],
"priority": 0 "priority": 0
}, },
@@ -1570,7 +1571,8 @@
"/views/user/bindingMobile.html" "/views/user/bindingMobile.html"
], ],
"refer": [ "refer": [
"views/user/passLogin.html" "views/user/passLogin.html",
"views/user/bindingMobile.html"
], ],
"priority": 0 "priority": 0
}, },
@@ -1710,7 +1712,8 @@
"views/house/cityDetail.html": { "views/house/cityDetail.html": {
"resources": [], "resources": [],
"refer": [ "refer": [
"views/user/codeSms.html" "views/user/codeSms.html",
"views/district/detail.html"
], ],
"priority": 0 "priority": 0
}, },
@@ -1735,6 +1738,28 @@
"views/setting/agreement.html" "views/setting/agreement.html"
], ],
"priority": 0 "priority": 0
},
"views/intelligentHouse/index.html": {
"resources": [],
"refer": [
"views/intelligentHouse/mapDetail.html"
],
"priority": 0
},
"views/intelligentHouse/mapDetail.html": {
"resources": [],
"refer": [
"views/intelligentHouse/aroundDetail.html"
],
"priority": 0
},
"views/house/detail.html": {
"resources": [],
"refer": [
"views/rent/rentManager.html",
"views/loan/loanInfo.html"
],
"priority": 0
} }
}, },
"idle": { "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?&quot;icon-arrow-red&quot;:&quot;&quot;,ci.oneMonthUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+ '<em class="up">{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(100*ci.oneMonthUpDownRange).toFixed(2)+"%"}}<i class="icon" v-bind:class="[ci.oneMonthUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,ci.oneMonthUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
'</div>'+ '</div>'+
'<div class="col-20">'+ '<div class="col-20">'+
'<i class="button theme collection collection01" v-bind:class="{dn:ci.follow}" v-on:click="follow(ci.city,$event, 0)">关注</i>'+ '<i class="button theme collection collection01 confirm-ok" 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>'+ '<i class="button collection collection02 confirm-ok" v-bind:class="{dn:!ci.follow}" v-on:click="abolish(ci.city,$event, 1)">取消</i>'+
'</div>'+ '</div>'+
'</div>'+ '</div>'+
'</div>'+ '</div>'+
@@ -48,53 +48,39 @@ Vue.component('city_increase_ranking',{
}) })
}, },
follow:function(city,event, type){ follow:function(city,event, type){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
clicked('/views/user/passLogin.html',true,false,{},{},function(){ clicked('/views/user/passLogin.html',true,false,{},{},function(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
var msg = response.data.message;
if(msg != "取消关注成功" && msg != "关注成功"){
$.toast(msg);
}else{
$(event.target).parent().children().removeClass("dn");
$(event.target).addClass("dn");
reloadMyFocus()
reloadCityPotentialRanking()
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
}
//cityDetaiVue.$data.citys.push(city);
}).catch(function(error){
console.log(error)
})
} }
}) })
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){ $.confirm('您确定要关注'+city+"?", function () {
var msg = response.data.message; axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
if(msg != "取消关注成功" && msg != "关注成功"){ var msg = response.data.message;
$.toast(msg); if(msg != "取消关注成功" && msg != "关注成功"){
}else{ $.toast(msg);
$(event.target).parent().children().removeClass("dn"); }else{
$(event.target).addClass("dn"); $(event.target).parent().children().removeClass("dn");
reloadMyFocus() $(event.target).addClass("dn");
reloadCityPotentialRanking() reloadMyFocus()
if(type == 0){ reloadCityPotentialRanking()
var curDatas = cityDetaiVue.$data.citys if(type == 0){
if(curDatas && curDatas.length>0){ var curDatas = cityDetaiVue.$data.citys
if(!IsInArray(curDatas, city)){ if(curDatas && curDatas.length>0){
cityDetaiVue.$data.citys.push(city); if(!IsInArray(curDatas, city)){
cityDetaiVue.$data.citys.push(city);
}
} }
} }
} }
}
}).catch(function(error){
}).catch(function(error){ console.log(error)
console.log(error) })
}) });
} }
}, },
@@ -108,23 +94,26 @@ Vue.component('city_increase_ranking',{
} }
}) })
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
$(event.target).parent().children().removeClass("dn"); $.confirm("您确定要取消关注?", function () {
$(event.target).addClass("dn"); axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
reloadMyFocus(); $(event.target).parent().children().removeClass("dn");
reloadCityPotentialRanking() $(event.target).addClass("dn");
//plus.webview.getWebviewById('views/user/userInfo.html').reload() reloadMyFocus();
var da = cityDetaiVue.$data.citys reloadCityPotentialRanking()
if(da && da.length>0){ //plus.webview.getWebviewById('views/user/userInfo.html').reload()
var index = da.indexOf(city) var da = cityDetaiVue.$data.citys
if(index>0){ if(da && da.length>0){
da.splice(index, 1) var index = da.indexOf(city)
cityDetaiVue.$data.citys = da; if(index>0){
} da.splice(index, 1)
} cityDetaiVue.$data.citys = da;
}).catch(function(error){ }
console.log(error) }
}) }).catch(function(error){
console.log(error)
})
});
} }
} }
@@ -71,24 +71,26 @@ Vue.component('city_potential_ranking',{
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){ $.confirm('您确定要关注'+city+"?", function () {
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
var msg = response.data.message;
if(msg != "取消关注成功" && msg != "关注成功"){ var msg = response.data.message;
$.toast(msg); if(msg != "取消关注成功" && msg != "关注成功"){
}else{ $.toast(msg);
$(event.target).parent().children().removeClass("dn"); }else{
$(event.target).addClass("dn"); $(event.target).parent().children().removeClass("dn");
plus.webview.getWebviewById('views/house/houseDetail.html').reload(); $(event.target).addClass("dn");
plus.webview.getWebviewById('views/house/houseManageList.html').reload(); plus.webview.getWebviewById('views/house/houseDetail.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload(); plus.webview.getWebviewById('views/house/houseManageList.html').reload();
reloadMyFocus() plus.webview.getWebviewById('views/user/userInfo.html').reload();
reloadCityIncreaseRanking() reloadMyFocus()
//cityDetaiVue.$data.citys.push(city); reloadCityIncreaseRanking()
} //cityDetaiVue.$data.citys.push(city);
}).catch(function(error){ }
console.log(error) }).catch(function(error){
}) console.log(error)
})
});
} }
}) })
}else{ }else{
+2 -2
View File
@@ -118,7 +118,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="chart" id="chart01" style="height:320px;margin-top:-2.75rem;"></div> <div class="chart" id="chart01" style="height:270px;"></div>
<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金 <div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
<div class="content-block"> <div class="content-block">
<div class="buttons-row theme" id="trendDiv2"> <div class="buttons-row theme" id="trendDiv2">
@@ -149,7 +149,7 @@
</div> </div>
<div id="baseInfo" class="list-block"> <div id="baseInfo" class="list-block mb05">
<base-info-component></base-info-component> <base-info-component></base-info-component>
</div> </div>
@@ -15,10 +15,8 @@
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script> <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
<style> <style>
.list-block ul:before{height:0;}
.priceRecovery + .list-block ul:after{height:0;} .priceRecovery + .list-block ul:after{height:0;}
.theme {
background-color: #F18D00;
}
</style> </style>
</head> </head>
@@ -27,14 +25,14 @@
<div class="page-group"> <div class="page-group">
<div class="page page-current"> <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();"> <button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
<span class="icon icon-left"></span> <span class="icon icon-left"></span>
</button> </button>
<h1 class="title">评估报告</h1> <h1 class="title">评估报告</h1>
</header> </header>
<div class="content"> <div class="content">
<div class="list-block media-list" id="house_info"> <div class="list-block media-list" id="house_info" v-cloak>
<ul> <ul>
<li> <li>
<div class="item-content"> <div class="item-content">
@@ -51,7 +49,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="card cardPrice cardPrice01" id="house_price"> <div class="card cardPrice cardPrice01" id="house_price" v-cloak>
<div class="card-header"> <div class="card-header">
<span>评估总价</span> <span>评估总价</span>
<span>均价:<em>{{avg_price}}</em></span> <span>均价:<em>{{avg_price}}</em></span>
@@ -89,7 +87,7 @@
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div> <div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
</div> </div>
</div> </div>
<div class="list-block media-list"> <div class="list-block media-list mb05">
<ul> <ul>
<li> <li>
<div class="item-content"> <div class="item-content">
+22 -3
View File
@@ -1267,7 +1267,23 @@ function onPlusReady(){
$("#input_city").val("上海"); $("#input_city").val("上海");
$(".nowCity").text("上海"); $(".nowCity").text("上海");
} }
getRequestId();
} }
// 生成请求ID,防止重复提交
var requestId = "";
function getRequestId() {
axios.get("/rest/index/id")
.then(function (response) {
if(response.data.status){
requestId = response.data.data;
}
})
.catch(function (error) {
console.log(error);
});
}
/* 弹出城市选择页面 */ /* 弹出城市选择页面 */
$(document).on("click",".open-about01", function () { $(document).on("click",".open-about01", function () {
$.popup(".popup-about01"); $.popup(".popup-about01");
@@ -1828,7 +1844,7 @@ function checkIsLogin(){
function addEvaluation(){ function addEvaluation(){
var data={}; var data={};
if(type==0){ if(type==0){
data={cityDisplay: $("#input_city").val(), data={id:requestId,cityDisplay: $("#input_city").val(),
region:$("input[name=region]").val(), region:$("input[name=region]").val(),
district:$("#input_address").val(), district:$("#input_address").val(),
address:$("input[name=address]").val(), address:$("input[name=address]").val(),
@@ -1844,7 +1860,7 @@ function addEvaluation(){
lastRentDate:$("#input_time03").val(), lastRentDate:$("#input_time03").val(),
houseStatus:0} houseStatus:0}
}else{ }else{
data={cityDisplay: $("#input_city").val(), data={id:requestId,cityDisplay: $("#input_city").val(),
region:$("input[name=region]").val(), region:$("input[name=region]").val(),
district:$("#input_address").val(), district:$("#input_address").val(),
address:$("input[name=address]").val(), address:$("input[name=address]").val(),
@@ -1863,7 +1879,9 @@ function addEvaluation(){
var id = response.data.data.id; var id = response.data.data.id;
plus.webview.getWebviewById('views/house/houseManageList.html').reload(); plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload(); plus.webview.getWebviewById('views/user/userInfo.html').reload();
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id}) clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id},function(){
getRequestId();
})
}else{ }else{
$("#evaluation_btn").removeAttr("disabled"); $("#evaluation_btn").removeAttr("disabled");
$.toast(response.data.message); $.toast(response.data.message);
@@ -1874,6 +1892,7 @@ function addEvaluation(){
}); });
} }
/* 信息输入弹窗 */ /* 信息输入弹窗 */
$(document).on('click','.open-modal', function () { $(document).on('click','.open-modal', function () {
$.modal({ $.modal({
+13 -17
View File
@@ -28,24 +28,24 @@
<div class="page-group"> <div class="page-group">
<div class="page page-current"> <div class="page page-current">
<header class="bar bar-nav barBorder "> <header class="bar bar-nav barBorder">
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();"> <button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
<span class="icon icon-left"></span> <span class="icon icon-left"></span>
</button> </button>
</header> </header>
<div class="content" id="cityInfo" v-cloak> <div class="content" id="cityInfo" v-cloak>
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId"> <div class="card cardPrice cardPrice01 cardCity01 dn" id="priceDiv" v-bind:hrefid="myCityMap.hrefId">
<div class="card-header"> <div class="card-header">
<label>{{myCityMap.city}}</label> <label>{{myCityMap.city}}</label>
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a> <a v-if="collecd" class="button collection collection02" @click="collectCity(myCityMap.city, 1)">取消关注</a>
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a> <a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a>
</div> </div>
<div class="card-header"> <div class="card-header">
<span>当前参考均价</span> <span>当前参考均价</span>
</div> </div>
<div class="card-content"> <div class="card-content" >
<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div> <div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
<div class="card-content-inner" v-else>暂无</div> <div class="card-content-inner" v-else>暂无</div>
</div> </div>
@@ -151,8 +151,14 @@ $.config = {router: false}
var date = new Date(); var date = new Date();
var year = date.getFullYear()+'年'; var year = date.getFullYear()+'年';
var month = date.getMonth()+1+'月'; var month = date.getMonth()+1+'月';
var city = "神农架" var city = "普洱"
var cityInfoVue = new Vue({ var cityInfoVue;
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
city = self.city
cityInfoVue = new Vue({
el: '#cityInfo', el: '#cityInfo',
data: { data: {
city:"", city:"",
@@ -162,12 +168,7 @@ var cityInfoVue = new Vue({
myCityMap : [] myCityMap : []
} }
}); });
cityInfoVue.$data.city = city;
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
var city = self.city
cityInfoVue.$data.city = city;
loadCurCity(city); loadCurCity(city);
loadCityPriceInfo(city) loadCityPriceInfo(city)
loadUpOrDown(city); loadUpOrDown(city);
@@ -176,11 +177,6 @@ function onPlusReady() {
} }
//loadCurCity(city);
// loadCityPriceInfo(city)
// loadUpOrDown(city);
// loadHotDistrict(city)
// loadCityPricesAndCounts(city)
+17 -25
View File
@@ -228,34 +228,26 @@
</div> </div>
<div class="topic"> <div class="topic">
<div class="topicTitle">小区走势分析</div> <div class="topicTitle">小区走势分析</div>
<div class="topicContent" style="padding:0;"> <div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
<div class="content-block content-block01 content-block01a"> <div class="topicTitle topicTitle01" style="position:relative;">均价
<div class="buttons-row theme" id="trendTabDiv"> <div class="content-block">
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv">均价</a> <div class="buttons-row theme" id="trendDiv1">
<a href="#tabChart2" class="tab-link button" id="tabRentDiv">租金</a> <a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
</div> <a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
</div> <a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
<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>
<div class="chart" id="chart01" style="height:270px;"></div>
<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
<div class="content-block">
<div class="buttons-row theme" 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>
</div>
<div class="chart" id="chart02"></div>
</div> </div>
</div> </div>
<div class="topic" v-show="rentRooms.length>0"> <div class="topic" v-show="rentRooms.length>0">
+2 -2
View File
@@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css"> <link rel="stylesheet" href="../../css/sm.css">
<link rel="stylesheet" href="../../css/main.css"> <link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/city.css"> <link rel="stylesheet" href="../../css/city.css">
<link rel="stylesheet" href="../../css/theme-orange.css"> <link rel="stylesheet" href="../../css/theme-orange.css">
@@ -172,7 +172,7 @@
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId"> <div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
<div class="card-header"> <div class="card-header">
<label>{{myCityMap.city}}</label> <label>{{myCityMap.city}}</label>
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a> <a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a>
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a> <a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a>
</div> </div>
+1 -1
View File
@@ -57,7 +57,7 @@
<h1 class="title">我的房产</h1> <h1 class="title">我的房产</h1>
</header> </header>
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50"> <div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
<div class="card cardPrice cardPrice01" id="houseInfo"> <div class="card cardPrice cardPrice01" id="houseInfo" v-cloak>
<div class="card-header"> <div class="card-header">
<span>房产总值</span> <span>房产总值</span>
<a class="button theme" href="#" onclick="gotoAddHouse()">添加房产</a> <a class="button theme" href="#" onclick="gotoAddHouse()">添加房产</a>
+3 -3
View File
@@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css"> <link rel="stylesheet" href="../../css/sm.css">
<link rel="stylesheet" href="../../css/main.css"> <link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/theme-orange.css"> <link rel="stylesheet" href="../../css/theme-orange.css">
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script> <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
@@ -153,8 +153,8 @@
</div> </div>
</div> </div>
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script> <script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script> <script type="text/javascript" src="../../js/RichMarker_min.js "></script>
<script> <script>
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */ /* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
+2 -2
View File
@@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css"> <link rel="stylesheet" href="../../css/sm.css">
<link rel="stylesheet" href="../../css/main.css"> <link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/city.css"> <link rel="stylesheet" href="../../css/city.css">
<link rel="stylesheet" href="../../css/theme-orange.css"> <link rel="stylesheet" href="../../css/theme-orange.css">
@@ -104,7 +104,7 @@
</div> </div>
</div> </div>
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script> <script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
<script> <script>
+16 -13
View File
@@ -12,7 +12,9 @@
<link rel="stylesheet" href="../../css/sm.css"> <link rel="stylesheet" href="../../css/sm.css">
<link rel="stylesheet" href="../../css/main.css"> <link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/theme-orange.css"> <link rel="stylesheet" href="../../css/theme-orange.css">
<style>
html,body{height:auto;}
</style>
</head> </head>
<body> <body>
@@ -120,18 +122,19 @@ function openView() {
clicked(BASE_PATH + '/user/agreement',true) clicked(BASE_PATH + '/user/agreement',true)
} }
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight; /* 防止软键盘弹出所引起的定位问题 */
window.onresize=function(){ var winHeight = $(window).height(); // 获取当前页面高度
//软键盘弹起与隐藏 都会引起窗口的高度发生变化 $(window).resize(function(){
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight; var thisHeight = $(this).height();
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了 if(winHeight - thisHeight > 50){
if(window.viewsPage=="codeSms"){ //当软键盘弹出,在这里面操作
plus.webview.currentWebview().setStyle({ $(".loginMode").hide();
height:originalHeight }else{
}); //当软键盘收起,在此处操作
} $(".loginMode").show();
} }
} });
</script> </script>
</body> </body>
+12 -10
View File
@@ -162,17 +162,19 @@ new Vue({
} }
}); });
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight; /* 防止软键盘弹出所引起的定位问题 */
window.onresize=function(){ var winHeight = $(window).height(); // 获取当前页面高度
//软键盘弹起与隐藏 都会引起窗口的高度发生变化 $(window).resize(function(){
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight; var thisHeight = $(this).height();
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了 if(winHeight - thisHeight > 50){
plus.webview.currentWebview().setStyle({ //当软键盘弹出,在这里面操作
height:originalHeight $(".loginMode").hide();
}); }else{
//当软键盘收起,在此处操作
$(".loginMode").show();
}
});
}
}
</script> </script>
</body> </body>
+1 -1
View File
@@ -142,7 +142,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="buttons-tab fixed-tab theme" data-offset="44" id="tab"> <div class="buttons-tab fixed-tab theme" data-offset="44" id="tab" v-cloak>
<a href="#tabList1" class="tab-link button active">房产({{mh_num}})</a> <a href="#tabList1" class="tab-link button active">房产({{mh_num}})</a>
<a href="#tabList2" class="tab-link button">关注({{mf_num}})</a> <a href="#tabList2" class="tab-link button">关注({{mf_num}})</a>
<a href="#tabList3" class="tab-link button">收藏({{mc_num}})</a> <a href="#tabList3" class="tab-link button">收藏({{mc_num}})</a>