Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
//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.161:8084";
|
||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
||||
var BASE_PATH = "http://192.168.10.53:8084";
|
||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||
var BASE_PATH = "http://192.168.10.170:8084";
|
||||
//var BASE_PATH = "http://192.168.10.170:8084";
|
||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||
/**是否显示过启动页面**/
|
||||
var lauchFlag = false;
|
||||
@@ -855,6 +855,14 @@ input::-webkit-input-placeholder{
|
||||
/* 图表 */
|
||||
.chart{width:100%;height:250px;}
|
||||
.chart tspan{font-size:0.6rem;text-shadow:none;}
|
||||
.chart01Box{height:270px;position:relative;}
|
||||
#chart01a{height:270px;position:absolute;z-index:1;}
|
||||
#chart01{height:270px;position:absolute;z-index:-1;}
|
||||
.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;}
|
||||
.icon-chart01a{width:0.9rem;height:0.8rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:100%;float:left;}
|
||||
.icon-chart01{width:0.9rem;height:0.8rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:100%;float:left;}
|
||||
|
||||
|
||||
/*
|
||||
#tabChart{width:100%;height:360px;}
|
||||
#tabChart1{width:100%;position:absolute;z-index:1;}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 580 B |
Binary file not shown.
|
After Width: | Height: | Size: 869 B |
@@ -76,38 +76,44 @@ function removeCollect(){
|
||||
});
|
||||
}
|
||||
|
||||
/* button状态切换 */
|
||||
/*$("#trendTabDiv .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
*/
|
||||
/* 图表切换 */
|
||||
/*$("#tabAvgDiv").on("click", function () {
|
||||
$("#tabChart1").css("z-index","1");
|
||||
$("#tabChart2").css("z-index","-1");
|
||||
});
|
||||
$("#tabRentDiv").on("click", function () {
|
||||
$("#tabChart2").css("z-index","1");
|
||||
$("#tabChart1").css("z-index","-1");
|
||||
});*/
|
||||
|
||||
/*var t1 = window.setInterval(loadMap,1000);
|
||||
function loadMap(){
|
||||
mapLoadCount++;
|
||||
if(lng && lat){
|
||||
loadMapPoi();
|
||||
$("#mapDiv").show();
|
||||
window.clearInterval(t1);
|
||||
}else{
|
||||
if(mapLoadCount == 10){
|
||||
$("#mapDiv").hide();
|
||||
window.clearInterval(t1);
|
||||
}else{
|
||||
$("#mapDiv").hide();
|
||||
}
|
||||
function inintChart(){
|
||||
/* 小区均价分析 */
|
||||
loadLineData(city, region, name, 6)
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name,2);
|
||||
}
|
||||
|
||||
function clickLineChart(e){
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
$(e).addClass("active")
|
||||
if(mode == "kLine"){
|
||||
loadKLineData(city, region, name);
|
||||
}else if(mode == "line"){
|
||||
loadLineData(city, region, name);
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
/* 图表切换 */
|
||||
function lineChart() {
|
||||
mode = "kLine"
|
||||
$(".icon-chart01a").hide();
|
||||
$(".icon-chart01").show();
|
||||
$("#chart01a").css("z-index","-1");
|
||||
$("#chart01").css("z-index","1");
|
||||
loadKLineData(city, region, name);
|
||||
}
|
||||
function kLineChart() {
|
||||
mode = "line"
|
||||
$(".icon-chart01").hide();
|
||||
$(".icon-chart01a").show();
|
||||
$("#chart01").css("z-index","-1");
|
||||
$("#chart01a").css("z-index","1");
|
||||
|
||||
};
|
||||
|
||||
|
||||
function showLoadRentTrends(type) {
|
||||
if(type == 3) {
|
||||
document.getElementById("trendDivTab3").setAttribute("class","tab-link button active");
|
||||
@@ -120,147 +126,6 @@ function showLoadRentTrends(type) {
|
||||
loadRentTrends(city, region, name,type);
|
||||
}
|
||||
|
||||
//小区详情
|
||||
function loadDistrictInfo(){
|
||||
axios.get("/rest/districts/detail", {
|
||||
params: {
|
||||
city: city,
|
||||
region:region,
|
||||
name: name
|
||||
}
|
||||
}).then(function (response) {
|
||||
var vo = response.data.data.detail
|
||||
var cityPrice = response.data.data.cityPrice
|
||||
var collected = response.data.data.collected
|
||||
if(cityPrice){
|
||||
baseInfo.cityPrice = cityPrice
|
||||
}
|
||||
if(collected){
|
||||
$(".collection02").show();
|
||||
$(".collection01").hide();
|
||||
}else{
|
||||
$(".collection02").hide();
|
||||
$(".collection01").show();
|
||||
}
|
||||
if(vo){
|
||||
if(vo.avgPrice){
|
||||
lat = vo.lat2;
|
||||
lng = vo.lng2;
|
||||
|
||||
//loadMapPoi();
|
||||
|
||||
baseInfo.city = vo.city
|
||||
baseInfo.region = vo.region
|
||||
baseInfo.address = vo.address;
|
||||
baseInfo.name = vo.name
|
||||
baseInfo.avgPrice = vo.avgPrice;
|
||||
baseInfo.oneMonthUpDownRange = vo.oneMonthUpDownRange;
|
||||
|
||||
if(vo.rank){
|
||||
baseInfo.priceRate = vo.rank.substring(0, vo.rank.indexOf("/"));
|
||||
}
|
||||
|
||||
//baseInfo.cityPrice = vo.cityPrice;
|
||||
|
||||
var finishDate = ""
|
||||
if(vo.finishBuildingDate){
|
||||
if(vo.finishBuildingDate.indexOf("~")!=-1){
|
||||
finishDate = vo.finishBuildingDate.replace("年","");
|
||||
}else{
|
||||
finishDate = vo.finishBuildingDate.substring(0,4)+"年"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
baseInfo.finishBuildingDate = finishDate;
|
||||
baseInfo.householdCount = vo.householdCount;
|
||||
baseInfo.cubagePercent = vo.cubagePercent;
|
||||
baseInfo.carSiteCount = vo.carSiteCount;
|
||||
baseInfo.virescencePercent = vo.virescencePercent;
|
||||
baseInfo.estateCharge = vo.estateCharge;
|
||||
baseInfo.moreArea = vo.moreArea;
|
||||
baseInfo.developer = vo.developer;
|
||||
baseInfo.estateCompany = vo.estateCompany;
|
||||
|
||||
address = vo.address;
|
||||
tags = vo.poiTags;
|
||||
|
||||
if(vo.poiTags){
|
||||
if(vo.poiTags.length>=3){
|
||||
baseInfo.tags = vo.poiTags.slice(0,3);
|
||||
}else{
|
||||
baseInfo.tags = vo.poiTags;
|
||||
}
|
||||
}
|
||||
|
||||
var starScore = response.data.data.starScore
|
||||
if(starScore && starScore > 0){
|
||||
var regionIndex = response.data.data.regionIndex
|
||||
var districtPoiCount = response.data.data.districtPoiCount
|
||||
|
||||
var schoolIndex = response.data.data.schoolIndex
|
||||
var arroundIndex = response.data.data.arroundIndex
|
||||
|
||||
var indexs = []
|
||||
indexs.push(vo.index);
|
||||
indexs.push(regionIndex);
|
||||
indexs.push(schoolIndex);
|
||||
indexs.push(arroundIndex);
|
||||
|
||||
/* 小区评级 */
|
||||
loadDistrictLevel(indexs);
|
||||
}else{
|
||||
$("#distLevelDiv").hide()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}else{
|
||||
$("#noDataDiv").show()
|
||||
baseInfo.name = "小区详情"
|
||||
}
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//附近小区
|
||||
/*function loadNearDistrict(lat, lng){
|
||||
axios.get("/rest/districts/nearDistrict", {
|
||||
params: {
|
||||
lat: lat,
|
||||
lng:lng
|
||||
}
|
||||
}).then(function (response) {
|
||||
var datas = response.data.data
|
||||
if(datas){
|
||||
var ret = []
|
||||
for(var v in datas){
|
||||
var o = datas[v]
|
||||
if(o.city == city && o.district == region && o.name == name){
|
||||
continue;
|
||||
}else{
|
||||
if(ret.length <= 5){
|
||||
ret.push(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
baseInfo.nearDists = ret;
|
||||
|
||||
$("#nearDistDiv .cardNearbyWin").css("width",(7.5*ret.length)+"rem");
|
||||
}else{
|
||||
$("#nearDistDiv").hide()
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
function loadKLineData(city, region, name){
|
||||
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
@@ -364,10 +229,10 @@ var option01 = {
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].seriesName + ' ' + params[0].name;
|
||||
res += '<br/> 月初 : ' + params[0].value[1];
|
||||
res += '<br/> 月末 : ' + params[0].value[2];
|
||||
res += '<br/> 最低 : ' + params[0].value[3];
|
||||
res += '<br/> 最高 : ' + params[0].value[4];
|
||||
res += '<br/> 月初 : ' + params[0].value[1]+ '元/㎡';
|
||||
res += '<br/> 月末 : ' + params[0].value[2]+ '元/㎡';
|
||||
res += '<br/> 最低 : ' + params[0].value[3]+ '元/㎡';
|
||||
res += '<br/> 最高 : ' + params[0].value[4]+ '元/㎡';
|
||||
return res;
|
||||
},
|
||||
position: function (pos, params, el, elRect, size) {
|
||||
@@ -408,7 +273,7 @@ var option01 = {
|
||||
axisLine: { lineStyle: { color: '#666' } },
|
||||
axisLabel: {
|
||||
formatter: function (value) {
|
||||
return echarts.format.formatTime('MM-dd', value);
|
||||
return echarts.format.formatTime('yyyy-MM', value);
|
||||
}
|
||||
},
|
||||
min: 'dataMin',
|
||||
@@ -534,13 +399,6 @@ var option01 = {
|
||||
};
|
||||
|
||||
|
||||
/*$("#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){
|
||||
@@ -562,6 +420,8 @@ function loadRentTrends(city, region, name, type){
|
||||
var rooms = re.rooms;
|
||||
var estateType = re.estateType
|
||||
|
||||
var roomKeys = []
|
||||
|
||||
if(m && rooms.length>0){
|
||||
|
||||
for(var i=0;i<m.length;i++){
|
||||
@@ -569,6 +429,7 @@ function loadRentTrends(city, region, name, type){
|
||||
}
|
||||
for(var k in rooms){
|
||||
var room = rooms[k]
|
||||
roomKeys.push(room + "室");
|
||||
if(estateType && estateType.indexOf("别墅")>-1){
|
||||
if(room > 8){
|
||||
continue;
|
||||
@@ -593,14 +454,12 @@ function loadRentTrends(city, region, name, type){
|
||||
distObj.name = room+"室"
|
||||
distObj.data = distDatas;
|
||||
distObj.type = 'line';
|
||||
distObj.symbolSize = 0;
|
||||
distObj.symbolSize = 6;
|
||||
distObj.symbol = 'circle';
|
||||
series.push(distObj);
|
||||
//alert(distDatas);
|
||||
}
|
||||
//alert(categories);
|
||||
|
||||
//showRentChart(categories, series);
|
||||
showRentChart2(categories, series);
|
||||
showRentChart2(categories, series, roomKeys);
|
||||
}else{
|
||||
//没数据
|
||||
//$("#tabChart2").hide();
|
||||
@@ -614,13 +473,17 @@ function loadRentTrends(city, region, name, type){
|
||||
}
|
||||
|
||||
|
||||
function showRentChart2(categories, series){
|
||||
function showRentChart2(categories, series, roomDatas){
|
||||
var option03 = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
textStyle: {
|
||||
fontFamily: 'arial,华文细黑',
|
||||
fontSize: 12
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].name + ' <br/>' + "租金:"+params[0].value + '元/月';
|
||||
return res;
|
||||
}
|
||||
},
|
||||
grid:{
|
||||
@@ -632,6 +495,7 @@ function showRentChart2(categories, series){
|
||||
},
|
||||
color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
|
||||
legend: {
|
||||
data: roomDatas,
|
||||
y: 'bottom',
|
||||
textStyle: {
|
||||
fontFamily: '华文细黑',
|
||||
@@ -744,3 +608,161 @@ function loadDistrictLevel(datas){
|
||||
var myChart03 = echarts.init(document.getElementById('chart03'));
|
||||
myChart03.setOption(option03,true);
|
||||
}
|
||||
|
||||
|
||||
//曲线图
|
||||
function loadLineData(city, region, name){
|
||||
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
axios.get("/rest/trend/distTrends", {
|
||||
params: {
|
||||
city: city,
|
||||
region:region,
|
||||
name:name,
|
||||
type: type
|
||||
}
|
||||
}).then(function (response) {
|
||||
var distDatas = response.data.data.districtAvgZouShi
|
||||
var times = response.data.data.timeKeys
|
||||
if(times){
|
||||
var districtTrends = [];
|
||||
|
||||
for(var d in times){
|
||||
var t = times[d]
|
||||
|
||||
var distPrice = distDatas[t]
|
||||
if(distPrice){
|
||||
districtTrends.push(distPrice);
|
||||
}else{
|
||||
districtTrends.push(null);
|
||||
}
|
||||
}
|
||||
|
||||
//option01b.xAxis.data = times
|
||||
//option01b.series.data = districtTrends
|
||||
|
||||
showLineChart(times, districtTrends);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function showLineChart(times, datas){
|
||||
var option01b = {
|
||||
tooltip: {
|
||||
triggerOn: 'none',
|
||||
transitionDuration: 0,
|
||||
confine: true,
|
||||
bordeRadius: 4,
|
||||
borderWidth: 1,
|
||||
borderColor: '#666',
|
||||
backgroundColor: 'rgba(255,255,255,0.9)',
|
||||
textStyle: {
|
||||
fontSize: 12,
|
||||
color: '#666'
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].name + ' <br/>' + "均价:"+params[0].value + '元/㎡';
|
||||
return res;
|
||||
},
|
||||
position: function (pos, params, el, elRect, size) {
|
||||
var obj = {
|
||||
top: 60
|
||||
};
|
||||
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
|
||||
return obj;
|
||||
}
|
||||
},
|
||||
grid:{
|
||||
x: 20,
|
||||
y: 10,
|
||||
x2: 20,
|
||||
y2: 60,
|
||||
top: 60,
|
||||
height: 120
|
||||
},
|
||||
color: ['#78CDE6'],
|
||||
dataZoom: [{
|
||||
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%'
|
||||
}],
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
textStyle: {
|
||||
fontFamily: 'Arial, Verdana, sans-serif',
|
||||
color: '#666'
|
||||
}
|
||||
},
|
||||
axisPointer: {
|
||||
type: 'line',
|
||||
label: {show: false},
|
||||
triggerTooltip: true,
|
||||
handle: {
|
||||
show: true,
|
||||
margin: 50,
|
||||
color: '#F18D00'
|
||||
}
|
||||
},
|
||||
data: times,
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
scale: true,
|
||||
position: 'right',
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
inside: true,
|
||||
textStyle: {
|
||||
fontFamily: 'Arial, Verdana, sans-serif',
|
||||
color: '#666'
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '',
|
||||
type: 'line',
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
areaStyle: {
|
||||
normal: {
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
||||
offset: 0,
|
||||
color: '#78CDE6'
|
||||
}, {
|
||||
offset: 1,
|
||||
color: '#fff'
|
||||
}])
|
||||
}
|
||||
},
|
||||
data: datas
|
||||
}
|
||||
]
|
||||
};
|
||||
var myChart01b = echarts.init(document.getElementById('chart01a'));
|
||||
myChart01b.setOption(option01b,true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -106,7 +108,40 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic">
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||
<div class="icon01Box">
|
||||
<i class="icon icon-chart01a" onclick="lineChart()"></i>
|
||||
<i class="icon icon-chart01 dn" onclick="kLineChart()"></i>
|
||||
</div>
|
||||
<div class="content-block" id="trendDiv1">
|
||||
<div class="buttons-row theme">
|
||||
<a class="tab-link button active" onclick="clickLineChart(this)" t-v="6">半年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(this)" t-v="12">一年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(this)" t-v="36">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart01Box">
|
||||
<div class="chart" id="chart01a"></div>
|
||||
<div class="chart" id="chart01"></div>
|
||||
</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 class="topic">
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||
@@ -130,7 +165,7 @@
|
||||
</div>
|
||||
<div class="chart" id="chart02"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;">
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
@@ -224,18 +259,14 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/echarts.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></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>
|
||||
var city = "上海"
|
||||
var region = "长宁"
|
||||
var name = "新泾三村"
|
||||
//var lat = 31.292437
|
||||
//var lng = 121.48703
|
||||
|
||||
// var city="安阳"
|
||||
// var region="安阳"
|
||||
// var name="宜和苑"
|
||||
var mode = "line"
|
||||
|
||||
var lat;
|
||||
var lng;
|
||||
@@ -243,21 +274,43 @@ $.config = {router: false}
|
||||
var tags;
|
||||
|
||||
var baseInfo;
|
||||
|
||||
// baseInfo = new Vue({
|
||||
// el: '#districtBaseInfo',
|
||||
// data: {
|
||||
// name : "",
|
||||
// city:"",
|
||||
// region: "",
|
||||
// address: "",
|
||||
// avgPrice:"",
|
||||
// oneMonthUpDownRange:"",
|
||||
// priceRate:"",
|
||||
// cityPrice:"",
|
||||
// finishBuildingDate:"",
|
||||
// householdCount:"",
|
||||
// cubagePercent:"",
|
||||
// carSiteCount:"",
|
||||
// virescencePercent:"",
|
||||
// estateCharge:"",
|
||||
// moreArea:"",
|
||||
// developer:"",
|
||||
// estateCompany:"",
|
||||
// tags:[],
|
||||
// nearDists:[],
|
||||
// regionIndex:"",
|
||||
// schoolIndex:""
|
||||
// }
|
||||
// })
|
||||
|
||||
</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>
|
||||
//loadDistrictInfo();
|
||||
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
city = self.city
|
||||
region = self.region
|
||||
name = self.name;
|
||||
rid = self.rid;
|
||||
// 创建根实例
|
||||
baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
@@ -283,74 +336,20 @@ function onPlusReady() {
|
||||
nearDists:[],
|
||||
regionIndex:"",
|
||||
schoolIndex:""
|
||||
},
|
||||
methods:{
|
||||
showChat: function(type){
|
||||
if(type == 2) {
|
||||
document.getElementById("tabChart2").style = "z-index:1";
|
||||
document.getElementById("tabChart1").style = "z-index:-1";
|
||||
} else {
|
||||
document.getElementById("tabChart2").style = "z-index:-1";
|
||||
document.getElementById("tabChart1").style = "z-index:1";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* 小区均价分析 */
|
||||
loadKLineData(city, region, name);
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name,2);
|
||||
inintChart(city, region, name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//baseInfo = new Vue({
|
||||
// el: '#districtBaseInfo',
|
||||
// data: {
|
||||
// name : "",
|
||||
// city:"",
|
||||
// region: "",
|
||||
// address: "",
|
||||
// avgPrice:"",
|
||||
// oneMonthUpDownRange:"",
|
||||
// priceRate:"",
|
||||
// cityPrice:"",
|
||||
// finishBuildingDate:"",
|
||||
// householdCount:"",
|
||||
// cubagePercent:"",
|
||||
// carSiteCount:"",
|
||||
// virescencePercent:"",
|
||||
// estateCharge:"",
|
||||
// moreArea:"",
|
||||
// developer:"",
|
||||
// estateCompany:"",
|
||||
// tags:[],
|
||||
// nearDists:[],
|
||||
// regionIndex:"",
|
||||
// schoolIndex:""
|
||||
//
|
||||
// },
|
||||
// methods:{
|
||||
// showChat: function(type){
|
||||
// if(type == 2) {
|
||||
// document.getElementById("tabChart2").style = "z-index:1";
|
||||
// document.getElementById("tabChart1").style = "z-index:-1";
|
||||
// } else {
|
||||
// document.getElementById("tabChart2").style = "z-index:-1";
|
||||
// document.getElementById("tabChart1").style = "z-index:1";
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
//
|
||||
// /* 小区均价分析 */
|
||||
// loadKLineData(city, region, name);
|
||||
// /* 小区租金走势 */
|
||||
// loadRentTrends(city, region, name,2);
|
||||
|
||||
</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>
|
||||
//inintChart(city, region, name);
|
||||
|
||||
function openMapWindow(){
|
||||
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||
}
|
||||
|
||||
@@ -38,6 +38,15 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li v-show="feedBack">
|
||||
<a onclick="clicked('/views/user/feedBack.html',true);" class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">意见反馈</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="clicked('about.html',true);" class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
@@ -88,13 +97,15 @@ new Vue({
|
||||
data: {
|
||||
showLogin:false,
|
||||
showLogout:false,
|
||||
showPass:false
|
||||
showPass:false,
|
||||
feedBack:false
|
||||
},
|
||||
mounted() {
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
this.showLogin = true;
|
||||
} else {
|
||||
this.showPass = true;
|
||||
this.feedBack = true;
|
||||
this.showLogout = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<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">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
<style type="text/css">
|
||||
#feedBackStart{
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
margin: 10px auto;
|
||||
margin-left: 5%;
|
||||
line-height: 20px; /*设置line-height与父级元素的height相等*/
|
||||
overflow: hidden; /*防止内容超出容器或者产生自动换行*/
|
||||
font-size:smaller;
|
||||
color: #AAAAAA;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group" id="app">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="back()">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">意见反馈</h1>
|
||||
</header>
|
||||
<div class="content" style="background-color: #EEEEEE;">
|
||||
<div class="list-block media-list">
|
||||
<div id="feedBackStart">
|
||||
您的意见是我们的动力
|
||||
</div>
|
||||
<ul>
|
||||
<li style="width:100%;height:150px;">
|
||||
<a class="item-content" style="width:100%;height:100%;">
|
||||
<div class="item-inner" style="width:100%;height:100%;">
|
||||
<textarea v-model="content" placeholder="请输入您的意见或建议" style="width:100%;height:100%;"></textarea>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li style="margin-top: 10px;">
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-after">
|
||||
<span>联系方式</span>
|
||||
<input type="text" v-model="contact" id="input_contact" class="textAlignLeft" placeholder="手机/邮箱,以便及时接收反馈">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block loginBox">
|
||||
<p><a class="button button-big button-fill theme" id="bundling_btn" @click="binding">提交意见</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js" ></script>
|
||||
<script type="text/javascript" src="../../js/zepto.md5.js" ></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/plus.info.js" ></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
window.viewsPage="feedBack";
|
||||
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
content:'', // 意见反馈
|
||||
contact:'' // 手机或邮箱
|
||||
},
|
||||
methods: {
|
||||
// 反馈意见检查
|
||||
checkContent: function() {
|
||||
if(this.content == ""){
|
||||
$.toast("请输入意见或建议");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
// 联系方式检查
|
||||
checkContact: function() {
|
||||
if(this.contact == ""){
|
||||
$.toast("请输入手机或邮箱");
|
||||
return false;
|
||||
}
|
||||
var mobile_reg = /^1\d{10}$/;
|
||||
var email_reg = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
|
||||
if (!mobile_reg.test(this.contact)&&!email_reg.test(this.contact)) {
|
||||
$.toast("手机或邮箱格式错误");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
// 发送意见反馈
|
||||
binding: function() {
|
||||
if (this.checkContent() && this.checkContact()) {
|
||||
plus.nativeUI.showWaiting();
|
||||
axios.post("/rest/feedback/add", {
|
||||
content:this.content,
|
||||
contact:this.contact
|
||||
})
|
||||
.then(function (response) {
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
plus.nativeUI.closeWaiting();
|
||||
})
|
||||
.catch(function (error) {
|
||||
$.toast(error);
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -9,6 +9,7 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/light7-swiper.min.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
@@ -50,26 +51,45 @@
|
||||
<img src="../../images/headPortrait.png">
|
||||
<p><a class="button theme" href="#" onclick="gotoLogin()" >立即登录</a></p>
|
||||
</div>
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
<div class="topic" style="">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;padding-bottom:0;">
|
||||
<div class="swiper-container">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='#'">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>贷款评估</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='#'">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>贷款评估</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="buttons-tab fixed-tab theme" data-offset="44">
|
||||
@@ -120,26 +140,53 @@
|
||||
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
||||
<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
|
||||
</div>
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
<div class="topic">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;padding-bottom:0;">
|
||||
<div class="swiper-container">
|
||||
<div class="swiper-wrapper" id="toolList">
|
||||
<div class="swiper-slide">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='#'">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>贷款评估</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="swiper-slide">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<!--<div class="swiper-slide">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url)">
|
||||
<span>{{t.toolName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='#'">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>贷款评估</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="buttons-tab fixed-tab theme" data-offset="44" id="tab" v-cloak>
|
||||
@@ -245,7 +292,14 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/user/myFocus.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myCollect.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myHouse.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/light7-swiper.min.js" charset="utf-8"></script>
|
||||
<script>
|
||||
|
||||
/* tab滑动 */
|
||||
$(function() {
|
||||
$(".swiper-container").swiper();
|
||||
});
|
||||
|
||||
/* 说明-房产等级 */
|
||||
$(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
@@ -265,7 +319,17 @@ var tab = new Vue({
|
||||
mc_num:"0"
|
||||
}
|
||||
})
|
||||
|
||||
//var toolList = new Vue({
|
||||
// el:"#toolList",
|
||||
// data:{
|
||||
// merchantTools:[]
|
||||
// },
|
||||
// method:{
|
||||
// goto:function(url){
|
||||
// alert(url)
|
||||
// }
|
||||
// }
|
||||
//})
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
@@ -419,6 +483,26 @@ function openSettingPage() {
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{position:0}}).then(function(response){
|
||||
var toolList = response.data.data;
|
||||
var html = "";
|
||||
for(var i=0;i<toolList.length;i++){
|
||||
html += (i%4==0?'':'<div class="swiper-slide">')+
|
||||
(i%4==0?'':'<div class="topicContent_center home">')+
|
||||
'<div>'+
|
||||
'<img src="'+toolList[i].iconUrl+'" style="width:45px;height:45px;margin:0 auto;" onclick="goto(\''+toolList[i].url+'\')">'+
|
||||
'<span>'+toolList[i].toolName+'</span>'+
|
||||
'</div>'+
|
||||
(i%4==3?'':'</div>')+
|
||||
(i%4==3?'':'</div>');
|
||||
}
|
||||
if(toolList.length%4!=3){
|
||||
html += '</div>'+'</div>';
|
||||
}
|
||||
$("#toolList").append(html);
|
||||
}).catch(function(error){
|
||||
console.log(error);
|
||||
});
|
||||
checkIsLogin();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user