Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
Conflicts: fangija-zsyf/config.js
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>龙盛佳苑</title>
|
||||
<title>小区详情</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
@@ -24,6 +24,7 @@
|
||||
.topicContent .list-block ul:after{height:0;}
|
||||
.districtMap + .list-block.media-list span{line-height:1.2rem;}
|
||||
.cardNearbyBox01 .cardNearby .card-header:nth-child(2){padding-top:0;}
|
||||
.mark-icon-box .mark-icon {width: 20px;height: 30px;display: block;cursor: pointer;font-size: 14px; color: #fff;font-weight: bold;text-align: center;line-height: 24px;background: url(../../images/dw.png) no-repeat;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -31,12 +32,12 @@
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<div class="page page-current" id="districtBaseInfo">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">龙盛佳苑</h1>
|
||||
<h1 class="title">{{name}}</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="list-block media-list topList">
|
||||
@@ -45,15 +46,19 @@
|
||||
<div class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row" style="max-width:80%;">
|
||||
<div class="item-title"><i class="icon icon-address02"></i>上海市静安区沪太路1329弄</div>
|
||||
<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
|
||||
|
||||
<div class="item-after">
|
||||
<a class="button theme collection collection01">关注</a>
|
||||
<a class="button collection collection02 dn">取消关注</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<span class="tag" style="margin-top:0.5rem;"><small>近地铁</small><small>公交多</small><small>买菜做饭</small></span>
|
||||
<span class="tag" style="margin-top:0.5rem;">
|
||||
<small v-for="tag in tags">{{tag}}</small>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="item-subtitle row" style="margin-top:0.5rem;margin-bottom:0.3rem;">
|
||||
<span class="star col-50">小区关注 <i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon"></i></span>
|
||||
<span class="star col-50">生活便利 <i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon"></i></span>
|
||||
@@ -63,29 +68,8 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cardRentBox">
|
||||
<div class="cardRentWin">
|
||||
<div class="card cardRent">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner"><em>3450</em> 元/月<br><small>一室</small></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardRent">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner"><em>4400</em> 元/月<br><small>二室</small></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardRent">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner"><em>4991</em> 元/月<br><small>三室</small></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardRent">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner"><em>5213</em> 元/月<br><small>三室以上</small></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cardRentBox" id="roomDiv">
|
||||
<room-rent-component></room-rent-component>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -94,40 +78,41 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="topic">
|
||||
<div class="topic" id="tabChart2" >
|
||||
<div class="topicTitle" style="position:relative;">小区租金走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabChartRent1" class="tab-link button active">半年</a>
|
||||
<a href="#tabChartRent2" class="tab-link button">一年</a>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="chart" id="chart02"></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">
|
||||
<div class="topicTitle">位置及周边</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="content-block content-block01 content-block01a" id="aroundLink">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabAround1" class="tab-link button active">公交</a>
|
||||
<a href="#tabAround2" class="tab-link button">地铁</a>
|
||||
<a href="#tabAround3" class="tab-link button">学校</a>
|
||||
<a href="#tabAround4" class="tab-link button">医院</a>
|
||||
<a href="#tabAround5" class="tab-link button">银行</a>
|
||||
<a href="#tabAround6" class="tab-link button">购物</a>
|
||||
<a class="tab-link button active" id="bus">公交</a>
|
||||
<a class="tab-link button" id="subway">地铁</a>
|
||||
<a class="tab-link button" id="school">学校</a>
|
||||
<a class="tab-link button" id="hos">医院</a>
|
||||
<a class="tab-link button" id="bank">银行</a>
|
||||
<a class="tab-link button" id="supermark">购物</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="districtMap" id="districtMap"></div>
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="01_index05_around.html" class="item-link item-content">
|
||||
<a onclick="openMapWindow()" class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><i class="icon icon-address03" style="margin-right:0.3rem;"></i><span>地址:沪太路1329弄</span></div>
|
||||
<div class="item-title"><i class="icon icon-address03" style="margin-right:0.3rem;"></i><span>地址:{{address}}</span></div>
|
||||
<div class="item-after"><span>详情</span></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -141,7 +126,6 @@
|
||||
<div id="nearDistDiv">
|
||||
<near-dist-component></near-dist-component>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -170,34 +154,74 @@ $.config = {router: false}
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
|
||||
<script>
|
||||
var city = "杭州"
|
||||
var region = "上城"
|
||||
var name = "丁衙巷小区"
|
||||
//var lat = 31.292437
|
||||
//var lng = 121.48703
|
||||
var city = "上海"
|
||||
var region = "长宁"
|
||||
var name = "新泾三村"
|
||||
|
||||
var lat;
|
||||
var lng;
|
||||
var address;
|
||||
var tags;
|
||||
var baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
data: {
|
||||
name : "",
|
||||
city:"",
|
||||
region: "",
|
||||
address: "",
|
||||
tags:[]
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
|
||||
<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
|
||||
|
||||
|
||||
<script type='text/javascript' src='../component/roomRent.js' charset='utf-8'></script>
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
city = self.city
|
||||
region = self.region
|
||||
name = self.name;
|
||||
// loadDistrictInfo();
|
||||
|
||||
|
||||
// 创建根实例
|
||||
new Vue({
|
||||
el: '#baseInfo'
|
||||
})
|
||||
|
||||
//new Vue({
|
||||
// el: '#nearDistDiv'
|
||||
//})
|
||||
//new Vue({
|
||||
// el: '#mapDiv'
|
||||
//})
|
||||
}
|
||||
|
||||
// 创建根实例
|
||||
new Vue({
|
||||
el: '#baseInfo'
|
||||
})
|
||||
new Vue({
|
||||
el: '#nearDistDiv'
|
||||
})
|
||||
//new Vue({
|
||||
// el: '#baseInfo'
|
||||
//})
|
||||
|
||||
var t1 = window.setTimeout(loadMap,1000);
|
||||
function loadMap(){
|
||||
if(lng && lat){
|
||||
loadMapPoi();
|
||||
window.clearTimeout(t1);
|
||||
}
|
||||
}
|
||||
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name);
|
||||
|
||||
function openMapWindow(){
|
||||
clicked('../district/arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||
}
|
||||
|
||||
/* 获取title字数,截取title前12字,并添加... */
|
||||
$(document).ready(function () {
|
||||
@@ -210,33 +234,8 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
|
||||
/* 关注&已关注切换 */
|
||||
$(".collection01").on("click", function () {
|
||||
$(".collection01").hide();
|
||||
$(".collection02").show();
|
||||
$.toast("随时掌握房租变化");
|
||||
});
|
||||
$(".collection02").on("click", function () {
|
||||
$(".collection02").hide();
|
||||
$(".collection01").show();
|
||||
$.toast("取消关注");
|
||||
});
|
||||
|
||||
/* button状态切换 */
|
||||
$(".content-block .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
/* 点击位置及周边跳转到位置及周边页 */
|
||||
$("#aroundLink .button").on("click", function () {
|
||||
window.location.href = "01_index05_around.html";
|
||||
});
|
||||
|
||||
/* 点击附近小区跳转到小区详情页 */
|
||||
$(".cardNearby").on("click", function(){
|
||||
window.location.href = "01_index04_districtDetail.html";
|
||||
});
|
||||
|
||||
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
||||
$(document).ready(function () {
|
||||
@@ -251,127 +250,11 @@ $(document).ready(function () {
|
||||
});
|
||||
});
|
||||
|
||||
/* 地图 */
|
||||
$(document).ready(function(){
|
||||
// 百度地图API功能
|
||||
var map0 = new BMap.Map("districtMap");
|
||||
var point0 = new BMap.Point(121.430836, 31.288597);
|
||||
map0.centerAndZoom(point0, 17);
|
||||
map0.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放
|
||||
// 编写自定义函数,创建标注
|
||||
var marker0 = new BMap.Marker(point0)
|
||||
map0.addOverlay(marker0);
|
||||
// marker0.addEventListener("click", function(){
|
||||
// this.openInfoWindow(new BMap.InfoWindow('龙盛佳苑<br>沪太路1329弄<br>均价:65241元/㎡'));
|
||||
// });
|
||||
/* button状态切换 */
|
||||
$(".content-block .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="js/echarts.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 小区租金走势 */
|
||||
var option02 = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
textStyle: {
|
||||
fontFamily: 'arial,华文细黑',
|
||||
fontSize: 12
|
||||
},
|
||||
formatter: '{a0}: {c0}元/月<br>{a1}: {c1}元/月<br>{a2}: {c2}元/月<br>{a3}: {c3}元/月<br>{a4}: {c4}元/月'
|
||||
},
|
||||
grid:{
|
||||
x: 54,
|
||||
y: 10,
|
||||
x2: 16,
|
||||
y2: 60,
|
||||
borderWidth: 1
|
||||
},
|
||||
color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
|
||||
legend: {
|
||||
data: ['一室', '二室', '三室', '四室', '五室'],
|
||||
y: 'bottom',
|
||||
textStyle: {
|
||||
fontFamily: '华文细黑',
|
||||
fontWeight: 'bold'
|
||||
},
|
||||
itemWidth: 16,
|
||||
itemHeight: 8
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
textStyle: {
|
||||
fontFamily: 'arial',
|
||||
color: '#666'
|
||||
}
|
||||
},
|
||||
data: ['2017-02', '2017-03', '2017-04', '2017-05', '2017-06', '2017-07',
|
||||
'2017-08', '2017-09', '2017-10', '2017-11', '2017-12', '2018-01'],
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
textStyle: {
|
||||
fontFamily: 'arial',
|
||||
color: '#666'
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '一室',
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
symbolSize: 6,
|
||||
data: [2200, 2040, 2790, 2940, 2360, 2440, 2220, 2490, 2740, 2480, 2500, 2860]
|
||||
},
|
||||
{
|
||||
name: '二室',
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
symbolSize: 6,
|
||||
data: [3200, 3040, 3790, 3940, 3360, 3440, 3220, 3490, 3740, 3480, 3500, 3860]
|
||||
},
|
||||
{
|
||||
name: '三室',
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
symbolSize: 6,
|
||||
data: [4200, 4040, 4790, 4940, 4360, 4440, 4220, 4490, 4740, 4480, 4500, 4860]
|
||||
},
|
||||
{
|
||||
name: '四室',
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
symbolSize: 6,
|
||||
data: [5200, 5040, 5790, 5940, 5360, 5440, 5220, 5490, 5740, 5480, 5500, 5860]
|
||||
},
|
||||
{
|
||||
name: '五室',
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
symbolSize: 6,
|
||||
data: [6200, 6040, 6790, 6940, 6360, 6440, 6220, 6490, 6740, 6480, 6500, 6860]
|
||||
}
|
||||
]
|
||||
};
|
||||
var myChart02 = echarts.init(document.getElementById('chart02'));
|
||||
myChart02.setOption(option02,true);
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user