Merge branch 'YOUFANGAPP1.1' of http://192.168.0.27/dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 710 B |
Binary file not shown.
|
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 1.2 KiB |
@@ -74,7 +74,7 @@ var mapConfig = {
|
||||
/* 打开银行、餐饮等tab大类*/
|
||||
$('.bar,#aroundLink').on('click', 'a', function () {
|
||||
var $this = $(this);
|
||||
//$this.addClass('current').siblings().removeClass('current');
|
||||
$this.addClass('active').siblings().removeClass('active');
|
||||
var id = $this.attr('id');
|
||||
that.hidden_all_mark()
|
||||
that.openTypeWrap(id);
|
||||
|
||||
@@ -33,7 +33,7 @@ function addCollect(){
|
||||
$(".collection02").show();
|
||||
$.toast("随时掌握小区动态");
|
||||
}
|
||||
|
||||
plus.webview.getWebviewById('/views/user/userInfo.html').reload();
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
@@ -65,7 +65,7 @@ function removeCollect(){
|
||||
$(".collection01").show();
|
||||
$.toast("取消关注");
|
||||
}
|
||||
|
||||
plus.webview.getWebviewById('/views/user/userInfo.html').reload();
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
@@ -276,6 +276,7 @@ function loadKLineData(city, region, name){
|
||||
//option01.series[0].data = counts
|
||||
option01.series[0].data = trends
|
||||
curOption = option01;
|
||||
var myChart01 = echarts.init(document.getElementById('chart01'));
|
||||
myChart01.setOption(option01,true);
|
||||
// }else{
|
||||
// option02.xAxis[0].data = times
|
||||
@@ -713,21 +714,16 @@ function loadRentTrends(city, region, name){
|
||||
}
|
||||
}).then(function (response) {
|
||||
var re = response.data.data
|
||||
|
||||
|
||||
var categories = new Array();
|
||||
var series = new Array();
|
||||
|
||||
var m = re.times;
|
||||
var pm = re.distMap
|
||||
var rooms = re.rooms;
|
||||
|
||||
if(m && rooms.length>0){
|
||||
|
||||
for(var i=0;i<m.length;i++){
|
||||
categories.push(m[i]);
|
||||
}
|
||||
|
||||
for(var k in rooms){
|
||||
var room = rooms[k]
|
||||
var distM = pm[room];
|
||||
@@ -763,8 +759,6 @@ function loadRentTrends(city, region, name){
|
||||
|
||||
|
||||
function showRentChart2(categories, series){
|
||||
|
||||
|
||||
var option03 = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
|
||||
@@ -14,13 +14,13 @@ function savePageLog() {
|
||||
var device = plus.device.uuid;
|
||||
var model = plus.device.model;
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
province = p.address.province;
|
||||
city = p.address.city;
|
||||
region = p.address.district;
|
||||
lng = p.coords.longitude;
|
||||
lat = p.coords.latitude;
|
||||
address = p.address.street;
|
||||
doSavePageLog({page:page, lng:lng, lat:lat, province:province, city:city, region:region, address:address, device:device, model:model});
|
||||
baidu_province = p.address.province;
|
||||
baidu_city = p.address.city;
|
||||
baidu_region = p.address.district;
|
||||
baidu_lng = p.coords.longitude;
|
||||
baidu_lat = p.coords.latitude;
|
||||
baidu_address = p.address.street;
|
||||
doSavePageLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model});
|
||||
}, function(e){
|
||||
doSavePageLog({page:page, device:device, model:model});
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
var city = ""
|
||||
var myCollectCitys = [];
|
||||
var lat;
|
||||
var lng;
|
||||
var lat = 31.222578;
|
||||
var lng = 121.359555;
|
||||
var allCity = []
|
||||
var myDatasVue = new Vue({
|
||||
el: '#contentTabDiv',
|
||||
@@ -11,6 +11,13 @@ var myDatasVue = new Vue({
|
||||
}
|
||||
})
|
||||
|
||||
var citysVue = new Vue({
|
||||
el: '#tabCityDiv',
|
||||
data: {
|
||||
citys:[]
|
||||
}
|
||||
})
|
||||
|
||||
var date = new Date();
|
||||
var year = date.getFullYear()+'年';
|
||||
var month = date.getMonth()+1+'月';
|
||||
@@ -24,23 +31,7 @@ var month = date.getMonth()+1+'月';
|
||||
|
||||
loadMyCollectCity();
|
||||
|
||||
// 获取当前用户位置
|
||||
function getPosition(){
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
city = p.address.city;
|
||||
myCollectCitys.push(city);
|
||||
lng = p.coords.longitude;//获取到当前位置的经度
|
||||
lat = p.coords.latitude;//获取到当前位置的纬度;
|
||||
}, function(e){
|
||||
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -147,47 +138,69 @@ function loadMyCollectCity(){
|
||||
for(var i in curDatas){
|
||||
var curCity = curDatas[i]
|
||||
if(!IsInArray(myCollectCitys, curCity)){
|
||||
|
||||
allCity.push(curCity)
|
||||
var j = 1;
|
||||
axios.all([loadCityPriceInfo(curCity), detail(curCity), loadCityPricesAndCounts(curCity)])
|
||||
.then(axios.spread(function (acct, perms, trends) {
|
||||
var cityObj = new Object();
|
||||
var data1 = acct.data.data
|
||||
cityObj.numId_up_chart = j+"_up_chart";
|
||||
cityObj.numId_down_chart = j+"_down_chart";
|
||||
cityObj.numId_price_chart = j+"_price_chart";
|
||||
j = j+1;
|
||||
if(data1){
|
||||
cityObj.city = data1.city
|
||||
cityObj.cityTopMonthAvgPrice = data1.cityTopMonthAvgPrice
|
||||
cityObj.downChance = data1.downChance
|
||||
cityObj.follow = data1.follow
|
||||
cityObj.index = data1.index
|
||||
cityObj.oneMonthUpDownRange = (data1.oneMonthUpDownRange*100).toFixed(2)
|
||||
cityObj.oneYearUpDownRange = data1.oneYearUpDownRange
|
||||
cityObj.rangeLevel = data1.rangeLevel
|
||||
cityObj.time = year + month
|
||||
}
|
||||
var data2 = perms.data.data
|
||||
if(data2){
|
||||
cityObj.downRate = data2.downRate
|
||||
cityObj.upRate = data2.upRate
|
||||
}
|
||||
var data3 = trends.data.data
|
||||
if(data3){
|
||||
cityObj.times = data3.times
|
||||
cityObj.cityPriceMap = data3.cityPriceMap
|
||||
cityObj.countMap = data3.countMap
|
||||
}
|
||||
ret.push(cityObj);
|
||||
myDatasVue.$data.cityDatas = ret;
|
||||
//console.log(myDatasVue.$data.cityDatas.length);
|
||||
}));
|
||||
myCollectCitys.push(curCity);
|
||||
}
|
||||
}
|
||||
//myDatasVue.$data.cityDatas = ret;
|
||||
}
|
||||
|
||||
if(myCollectCitys && myCollectCitys.length>0){
|
||||
for(var j in myCollectCitys){
|
||||
var curCity = myCollectCitys[j]
|
||||
var m = 0;
|
||||
axios.all([loadCityPriceInfo(curCity), detail(curCity), loadCityPricesAndCounts(curCity), loadHotDistrict(curCity)])
|
||||
.then(axios.spread(function (acct, perms, trends, nearDists) {
|
||||
|
||||
var cityObj = new Object();
|
||||
var data1 = acct.data.data
|
||||
cityObj.hrefId = "tabQuotation"+(parseInt(m)+2)
|
||||
|
||||
cityObj.numId_up_chart = (parseInt(m)+1)+"_up_chart";
|
||||
cityObj.numId_down_chart = (parseInt(m)+1)+"_down_chart";
|
||||
cityObj.numId_price_chart = (parseInt(m)+1)+"_price_chart";
|
||||
m = m + 1;
|
||||
if(data1){
|
||||
cityObj.city = data1.city
|
||||
cityObj.cityTopMonthAvgPrice = data1.cityTopMonthAvgPrice
|
||||
cityObj.downChance = data1.downChance
|
||||
cityObj.follow = data1.follow
|
||||
cityObj.index = data1.index
|
||||
cityObj.oneMonthUpDownRange = (data1.oneMonthUpDownRange*100).toFixed(2)
|
||||
cityObj.oneYearUpDownRange = data1.oneYearUpDownRange
|
||||
cityObj.rangeLevel = data1.rangeLevel
|
||||
cityObj.time = year + month
|
||||
}
|
||||
var data2 = perms.data.data
|
||||
if(data2){
|
||||
cityObj.downRate = data2.downRate
|
||||
cityObj.upRate = data2.upRate
|
||||
}
|
||||
var data3 = trends.data.data
|
||||
if(data3){
|
||||
cityObj.times = data3.times
|
||||
cityObj.cityPriceMap = data3.cityPriceMap
|
||||
cityObj.countMap = data3.countMap
|
||||
}
|
||||
var data4 = nearDists.data.data
|
||||
if(data4){
|
||||
var nears = []
|
||||
for(var n in data4){
|
||||
var v = data4[n]
|
||||
var nearObj = new Object();
|
||||
nearObj.city = v.city
|
||||
nearObj.region = v.region
|
||||
nearObj.name = v.name
|
||||
nearObj.avgPrice = v.avgPrice
|
||||
nears.push(nearObj);
|
||||
}
|
||||
cityObj.nears = nears
|
||||
}
|
||||
ret.push(cityObj);
|
||||
myDatasVue.$data.cityDatas = ret;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}).catch(function (error) {
|
||||
@@ -209,14 +222,11 @@ function loadCityPricesAndCounts(city){
|
||||
return axios.get("/rest/quotations/loadCityPriceTrends?city="+city+"&type=2")
|
||||
}
|
||||
|
||||
function loadNearDistrict(){
|
||||
return axios.get("/rest/districts/nearDistrict?lat="+lat+"&lng="+lng)
|
||||
function loadHotDistrict(city){
|
||||
return axios.get("/rest/districts/hotDistricts?city="+city+"&top=5")
|
||||
}
|
||||
|
||||
$(".button").click(function(){
|
||||
console.log("type:"+$(this).text())
|
||||
var type = (this).attr("v")
|
||||
var city = (this).attr("city")
|
||||
function clickTrend(city, type, num){
|
||||
axios.get("/rest/quotations/loadCityPriceTrends", {
|
||||
params: {
|
||||
city: city,
|
||||
@@ -224,7 +234,7 @@ $(".button").click(function(){
|
||||
}
|
||||
}).then(function (response) {
|
||||
|
||||
var datas = trends.data.data
|
||||
var datas = response.data.data
|
||||
var prices = []
|
||||
var counts = []
|
||||
var times = datas.times
|
||||
@@ -234,20 +244,32 @@ $(".button").click(function(){
|
||||
var pm = datas.cityPriceMap;
|
||||
var cm = datas.countMap;
|
||||
if(pm){
|
||||
prices.push(pm[time])
|
||||
if(pm[time]){
|
||||
prices.push(pm[time])
|
||||
}else{
|
||||
prices.push(null)
|
||||
}
|
||||
|
||||
}
|
||||
if(cm){
|
||||
counts.push(cm[time]);
|
||||
if(cm[time]){
|
||||
counts.push(cm[time]);
|
||||
}else{
|
||||
counts.push(null);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
showChart(num+"_price_chart", obj.times, prices, counts)
|
||||
|
||||
$("div[tid='"+num+"']").find("a").removeClass("active")
|
||||
$("div[tid='"+num+"']").find("a[v='"+type+"']").addClass("active")
|
||||
showChart(num+"_price_chart", times, prices, counts)
|
||||
|
||||
}).catch(function (error) {
|
||||
alert(error)
|
||||
console.log(error);
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function IsInArray(arr, val){
|
||||
@@ -261,14 +283,32 @@ function loadChart(){
|
||||
var d2 = allCity.length;
|
||||
if(d2>0 && d2==d1){
|
||||
|
||||
loadTabCity();
|
||||
|
||||
loadUpOrDownChart();
|
||||
|
||||
loadTrends();
|
||||
|
||||
|
||||
window.clearInterval(t1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function loadTabCity(){
|
||||
var datas = myDatasVue.$data.cityDatas
|
||||
var citys = []
|
||||
for(var i in datas){
|
||||
var obj = datas[i]
|
||||
var numObj = new Object();
|
||||
numObj.hrefId = "tabQuotation"+(parseInt(i)+2)
|
||||
numObj.city = obj.city
|
||||
citys.push(numObj)
|
||||
}
|
||||
citysVue.$data.citys = citys;
|
||||
|
||||
}
|
||||
|
||||
function loadUpOrDownChart(){
|
||||
var datas = myDatasVue.$data.cityDatas
|
||||
for(var i in datas){
|
||||
@@ -421,3 +461,22 @@ function showChart(idDom, categories, prices, counts){
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function showDistrictDetail(index, city){
|
||||
var datas = myDatasVue.$data.cityDatas
|
||||
if(datas){
|
||||
for(var i in datas){
|
||||
var obj = datas[i]
|
||||
if(obj.name == city){
|
||||
var dists = obj.nears
|
||||
var dm = dists[index]
|
||||
clicked('../district/detail.html',true,false,{},{city:dm.city,region:dm.region,name:dm.name});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function showRegionInfo(city){
|
||||
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ function addEstate(number, lastIndex) {
|
||||
}
|
||||
}
|
||||
html+= '<li>'+
|
||||
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'®ion='+this.region+'&name='+this.name+'\',true)" class="item-content">'+
|
||||
'<a onclick="gotoDistrictDetail(\''+this.city+'\',\''+this.region+'\',\''+this.name+'\')" class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row">'+
|
||||
'<div class="item-title">'+this.name+'</div>'+
|
||||
|
||||
@@ -1544,7 +1544,8 @@
|
||||
"views/news/newsDetail.html",
|
||||
"error.html",
|
||||
"views/rent/rent.html",
|
||||
"views/district/detail.html"
|
||||
"views/district/detail.html",
|
||||
"views/house/houseList.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
@@ -1613,7 +1614,10 @@
|
||||
"images/topBg.png",
|
||||
"images/icon-set.png"
|
||||
],
|
||||
"refer": [],
|
||||
"refer": [
|
||||
"views/user/passLogin.html",
|
||||
"views/district/detail.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/evaluate/evaluateList.html": {
|
||||
@@ -1635,6 +1639,29 @@
|
||||
],
|
||||
"refer": [],
|
||||
"priority": 0
|
||||
},
|
||||
"views/user/passLogin.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/user/bindingMobile.html",
|
||||
"views/user/codeSms.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/house/houseList.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/house/add.html",
|
||||
"views/house/detail.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/house/add.html": {
|
||||
"resources": [],
|
||||
"refer": [
|
||||
"views/evaluate/evaluateReport.html"
|
||||
],
|
||||
"priority": 0
|
||||
}
|
||||
},
|
||||
"idle": {
|
||||
|
||||
@@ -40,6 +40,13 @@ Vue.component('near-dist-component', {
|
||||
if(o.city == city && o.district == region && o.name == name){
|
||||
continue;
|
||||
}else{
|
||||
var textName = o.name;
|
||||
var length = textName.length;
|
||||
var textStr = textName;
|
||||
if(length > 5){
|
||||
textStr = textName.substr(0,5)+ "...";
|
||||
}
|
||||
o.name=textStr;
|
||||
if(ret.length <= 5){
|
||||
ret.push(o);
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
@@ -33,6 +33,8 @@
|
||||
.tabChart2{z-index:-1;}
|
||||
.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;}
|
||||
.mark-icon-box {width:24px;height:30px;position:absolute;z-index:98;}
|
||||
.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>
|
||||
@@ -41,6 +43,11 @@
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="baseInfo">
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
@@ -83,19 +90,19 @@
|
||||
<div class="topic">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult01_saleAnalysis01_index.html'">
|
||||
<!--<div onclick="window.location.href='+BASE_PATH+'/saleAnalysis/index'">
|
||||
<i class="icon icon-evaluation01"></i>
|
||||
<span>出售分析</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult02_rentManagement01_index.html'">
|
||||
</div>-->
|
||||
<div onclick="openNewView('/views/rent/rent.html')">
|
||||
<i class="icon icon-evaluation02"></i>
|
||||
<span>出租管理</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult03_exchange01_index.html'">
|
||||
<!--<div onclick="window.location.href='01_index01_myHouse04_evaluationResult03_exchange01_index.html'">
|
||||
<i class="icon icon-evaluation03"></i>
|
||||
<span>我要置换</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult04_loan01_inputInfo.html'">
|
||||
</div>-->
|
||||
<div onclick="openNewView('/views/loan/loanInfo.html')">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>我要贷款</span>
|
||||
</div>
|
||||
@@ -201,7 +208,7 @@
|
||||
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv1">
|
||||
<a t-v="6" class="tab-link button active">半年</a>
|
||||
<a t-v="12" class="tab-link button">一年</a>
|
||||
<a t-v="24" class="tab-link button">三年</a>
|
||||
<a t-v="36" class="tab-link button">三年</a>
|
||||
</div>
|
||||
<div class="chart" id="chart01" style="height:360px;"></div>
|
||||
</div>
|
||||
@@ -296,6 +303,9 @@ var lng;
|
||||
var city;
|
||||
var region;
|
||||
var name;
|
||||
var oriCity;
|
||||
var oriRegion;
|
||||
var oriName;
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
@@ -341,12 +351,13 @@ function init(){
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data){
|
||||
$(".loadingBg").hide();
|
||||
var houseInfo = response.data.data.houseInfo;
|
||||
lat = houseInfo.lat;
|
||||
lng = houseInfo.lng;
|
||||
city = houseInfo.city;
|
||||
region = houseInfo.region;
|
||||
name = houseInfo.name;
|
||||
oriCity = houseInfo.city;
|
||||
oriRegion = houseInfo.region;
|
||||
oriName = houseInfo.name;
|
||||
address = houseInfo.address;
|
||||
var text = houseInfo.name;
|
||||
var length = text.length;
|
||||
@@ -359,6 +370,9 @@ function init(){
|
||||
if(response.data.data.rentRooms){
|
||||
rentRooms = response.data.data.rentRooms;
|
||||
}
|
||||
city = houseInfo.city;
|
||||
region = houseInfo.region;
|
||||
name = houseInfo.name;
|
||||
baseInfo.id=houseInfo.id;
|
||||
baseInfo.city = houseInfo.city;
|
||||
baseInfo.name = houseInfo.name;
|
||||
@@ -382,9 +396,7 @@ function init(){
|
||||
baseInfo.minSellPrice=houseInfo.minSellPrice;
|
||||
baseInfo.maxSellPrice=houseInfo.maxSellPrice;
|
||||
baseInfo.rentRooms=response.data.data.rentRooms;
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
@@ -482,12 +494,6 @@ $("#trendTabDiv .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
$("#trendDiv2").on("click", function () {
|
||||
$("#trendDiv2 a").removeClass("active")
|
||||
$(this).addClass("active")
|
||||
//alert()
|
||||
loadRentTrends(city, region, name);
|
||||
});
|
||||
/* 图表切换 */
|
||||
$("#tabAvgDiv").on("click", function () {
|
||||
$("#tabChart1").css("z-index","1");
|
||||
@@ -497,6 +503,10 @@ $("#tabRentDiv").on("click", function () {
|
||||
$("#tabChart2").css("z-index","1");
|
||||
$("#tabChart1").css("z-index","-1");
|
||||
});
|
||||
function openNewView(viewHtml) {
|
||||
alert(viewHtml)
|
||||
clicked(viewHtml,true,false,{},{city:oriCity,region:oriRegion,name:oriName})
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -25,8 +25,14 @@
|
||||
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
|
||||
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
|
||||
/**添加loading加载效果**/
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:60%;}
|
||||
.loadingBgDiv{width:100%;height:70%;background:#fff;overflow:hidden;position:absolute;top:2.2rem;left:0;z-index:100;}
|
||||
.loadingBgDiv .infinite-scroll-preloader{margin-top:60%;}
|
||||
.list-block{margin-bottom:4rem;}
|
||||
.content-block{width:100%;background:#fff;position:fixed;bottom:0;z-index:10000;}
|
||||
@media(min-height:750px){
|
||||
.list-block{margin-bottom:4.5rem;}
|
||||
.content-block{bottom:4.5rem;}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -36,17 +42,13 @@
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="dataList" style="display: none;">
|
||||
<header class="bar bar-nav">
|
||||
<!--<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>
|
||||
</header>
|
||||
<!-- 加载loading页 -->
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="loadingBgDiv">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<!-- 动态封装部分 begin -->
|
||||
@@ -62,11 +64,13 @@
|
||||
</div>
|
||||
<div class="page page-current" id="noData" style="display: none;">
|
||||
<header class="bar bar-nav">
|
||||
<!--<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>-->
|
||||
<h1 class="title">房产评估</h1>
|
||||
</header>
|
||||
<div class="loadingBgDiv">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content contentSuggest">
|
||||
<div class="noData">
|
||||
<img src="../../images/noData.png">
|
||||
@@ -80,7 +84,6 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
@@ -101,6 +104,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
|
||||
//调用mui.init方法
|
||||
$.init()
|
||||
|
||||
@@ -149,7 +153,10 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
window.location.reload();
|
||||
$('.loadingBgDiv').show();
|
||||
checkIsLogin();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
@@ -170,9 +177,11 @@ function selectEvaluateList(){
|
||||
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
$('.loadingBgDiv').hide()
|
||||
}else{
|
||||
$('#dataList').show();
|
||||
$('#noData').hide();
|
||||
$('.loadingBgDiv').hide()
|
||||
var results = resultsMap.houseInfoList;
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||
@@ -181,7 +190,7 @@ function selectEvaluateList(){
|
||||
//动态追加内容
|
||||
$('.list-block ul').html(htmlContent);
|
||||
//添加loading等待效果
|
||||
$(".loadingBg").hide();
|
||||
//$(".loadingBg").hide();
|
||||
$(".content-block").show();
|
||||
}
|
||||
|
||||
@@ -257,6 +266,7 @@ function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
$('.loadingBgDiv').hide();
|
||||
}else{
|
||||
selectEvaluateList();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
<!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="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="regionInfo">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">{{city}}各区县涨跌排行</h1>
|
||||
</header>
|
||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox">
|
||||
<div class="cardNearbyWin">
|
||||
<div class="card cardNearby cardRanking" v-for="(info,index) in regionInfos" v-if="index < 3">
|
||||
<div class="card-header">{{info.region}}<img v-if="index == 0" src="../../images/rankingImg01.png"><img v-if="index == 1" src="../../images/rankingImg02.png"><img v-if="index == 2" src="../../images/rankingImg03.png"></div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{info.avgPrice}}元/㎡</div>
|
||||
</div>
|
||||
<div class="card-footer" v-if="info.oneMonthUpDownRange >0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="card-footer" v-else=""><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list cityList">
|
||||
<ul class="list-container">
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-subtitle row">
|
||||
<div class="col-10"> </div>
|
||||
<div class="col-25">区县</div>
|
||||
<div class="col-33">{{month}}月均价</div>
|
||||
<div class="col-25">近30天涨跌幅</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li v-for="(info,index) in regionInfos">
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-subtitle row">
|
||||
<div class="col-10">{{index+1}}</div>
|
||||
<div class="col-25">{{info.region}}</div>
|
||||
<div class="col-33">{{info.avgPrice}}元/㎡</div>
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange > 0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange < 0"><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/vue.js"></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="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></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/log/log_stat.js" ></script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var date = new Date();
|
||||
var month = date.getMonth()+1;
|
||||
var regionsInfoVue = new Vue({
|
||||
el: '#regionInfo',
|
||||
data: {
|
||||
city:"",
|
||||
month:month,
|
||||
regionInfos : []
|
||||
}
|
||||
});
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var city = self.city
|
||||
regionsInfoVue.$data.city = city;
|
||||
loadRegionInfo(city);
|
||||
|
||||
}
|
||||
|
||||
//loadRegionInfo("上海");
|
||||
function loadRegionInfo(city){
|
||||
axios.get("/rest/quotations/regionInfos",{
|
||||
params:{
|
||||
city : city
|
||||
}
|
||||
}).then(function (response) {
|
||||
var msg = response.data.data;
|
||||
if(msg){
|
||||
for(var i in msg){
|
||||
var da = msg[i]
|
||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||
}
|
||||
regionsInfoVue.$data.regionInfos = msg;
|
||||
}
|
||||
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -502,8 +502,8 @@ function addItems(number, lastIndex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
html += '<li>'+
|
||||
"<a onclick=clicked('${basePath}/district/details?city="+dataObj[i].city+"®ion="+dataObj[i].district+"&name="+dataObj[i].name+"',true) class='external item-content'>"+
|
||||
html += '<li onclick="openDistWindow(\''+dataObj[i].city+'\',\''+dataObj[i].district+'\',\''+dataObj[i].name+'\')">'+
|
||||
'<a class=external item-content>'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row"><div class="item-title">'+dataObj[i].name+'</div><div class="item-after"><em>¥'+dataObj[i].avgPrice+'元/㎡</em></div></div>'+
|
||||
'<div class="item-title-row"><div class="item-title"><i class="icon icon-address03"></i><small>'+dataObj[i].city+dataObj[i].district+dataObj[i].address+'</small></div>'+
|
||||
@@ -524,8 +524,8 @@ function addItems(number, lastIndex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
html += '<li>'+
|
||||
"<a onclick=clicked('${basePath}/district/details?city="+dataObj[i].city+"®ion="+dataObj[i].district+"&name="+dataObj[i].name+"',true) class='external item-content'>"+
|
||||
html += '<li onclick="openDistWindow(\''+dataObj[i].city+'\',\''+dataObj[i].district+'\',\''+dataObj[i].name+'\')">'+
|
||||
"<a class='external item-content'>"+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row"><div class="item-title">'+dataObj[i].name+'</div><div class="item-after"><em>¥'+dataObj[i].avgPrice+'元/㎡</em></div></div>'+
|
||||
'<div class="item-title-row"><div class="item-title"><i class="icon icon-address03"></i><small>'+dataObj[i].city+dataObj[i].district+dataObj[i].address+'</small></div>'+
|
||||
@@ -582,6 +582,9 @@ $(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||
// $.refreshScroller();
|
||||
}, 500);
|
||||
});
|
||||
function openDistWindow(city, region, name){
|
||||
clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title id="title2"></title>
|
||||
<title id="title2">咨询详情</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">
|
||||
@@ -525,6 +525,7 @@ function collect(){
|
||||
$(".collection").removeClass("collection02")
|
||||
$(".collection i").removeClass("icon-collection02")
|
||||
}
|
||||
plus.webview.getWebviewById('/views/user/userInfo.html').reload()
|
||||
}
|
||||
$.toast(msg);
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="swiper-slide" v-for="(myCityMap,index) in cityDatas">
|
||||
<div v-for="(myCityMap,index) in cityDatas">
|
||||
<div class="card cardPrice cardPrice01 cardCity01">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
|
||||
@@ -123,146 +123,86 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
// 获取周期 1-30
|
||||
function getnumber(){
|
||||
var data = new Array();
|
||||
for(var i=1;i<31;i++){
|
||||
data.push(i);
|
||||
}
|
||||
return data;
|
||||
};
|
||||
|
||||
///* 错误提示 */
|
||||
//$("#confirm_btn").on("click", function () {
|
||||
// var a = $("#input_time01").val();
|
||||
// var b = $("#input_time02").val();
|
||||
// var c = $("#input_rent01").val();
|
||||
// var d = $("#input_time03").val();
|
||||
// if(a == ""){
|
||||
// $.toast("请选择起租日期");
|
||||
// return false;
|
||||
// }
|
||||
// else if(b == ""){
|
||||
// $.toast("请选择到期日期");
|
||||
// return false;
|
||||
// }
|
||||
// else if(c == ""){
|
||||
// $.toast("请输入每期租金");
|
||||
// return false;
|
||||
// }
|
||||
// else if(d == ""){
|
||||
// $.toast("请选择下次收租日期");
|
||||
// return false;
|
||||
// }
|
||||
//});
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
var edit = new Vue({
|
||||
el:"#edit",
|
||||
data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
|
||||
});
|
||||
function getNowFormatDate(time) {
|
||||
if(typeof(time)=="undefined"||time==null){
|
||||
return ""
|
||||
}
|
||||
var date = new Date(time)
|
||||
var seperator1 = "-";
|
||||
var year = date.getFullYear();
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = year + seperator1 + month + seperator1 + strDate;
|
||||
return currentdate;
|
||||
}
|
||||
var id="165878889770385408"
|
||||
$(function (){
|
||||
//var self = plus.webview.currentWebview();
|
||||
// id = self.newsId;
|
||||
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
|
||||
var data = response.data.data.houses;
|
||||
$.each(data,function(i){
|
||||
var active = "";
|
||||
var houseRoomNum = "";
|
||||
if(this.id == id){
|
||||
active = "active"
|
||||
}
|
||||
if(this.houseRoomNum){
|
||||
houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
||||
}
|
||||
$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
||||
'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
||||
$(".buttons-tab01 a").click(function(){
|
||||
var id = $(this).attr("val")
|
||||
window.location.href = "index?id="+id;
|
||||
});
|
||||
})
|
||||
var houseInfo = response.data.data.houseInfo;
|
||||
edit.liveStatus=houseInfo.liveStatus;
|
||||
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
||||
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
||||
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
||||
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
||||
edit.rent = houseInfo.rent;
|
||||
edit.cycle = response.data.data.cycle;
|
||||
/* 选择-起租日期 */
|
||||
$("#input_time01").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">起租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-到期日期 */
|
||||
$("#input_time02").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">到期日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-下次收租日期 */
|
||||
$("#input_time03").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">下次收租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-收租周期 */
|
||||
$("#input_cycle").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">收租周期</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: getnumber()
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["年", "季", "月"]
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["/次"]
|
||||
}
|
||||
]
|
||||
});
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
id = self.id
|
||||
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
|
||||
var data = response.data.data.houses;
|
||||
$.each(data,function(i){
|
||||
var active = "";
|
||||
var houseRoomNum = "";
|
||||
if(this.id == id){
|
||||
active = "active"
|
||||
}
|
||||
if(this.houseRoomNum){
|
||||
houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
||||
}
|
||||
$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
||||
'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
||||
$(".buttons-tab01 a").click(function(){
|
||||
var id = $(this).attr("val")
|
||||
window.location.href = "index?id="+id;
|
||||
});
|
||||
})
|
||||
var houseInfo = response.data.data.houseInfo;
|
||||
edit.liveStatus=houseInfo.liveStatus;
|
||||
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
||||
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
||||
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
||||
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
||||
edit.rent = houseInfo.rent;
|
||||
edit.cycle = response.data.data.cycle;
|
||||
/* 选择-起租日期 */
|
||||
$("#input_time01").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">起租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
})
|
||||
|
||||
/* 选择-到期日期 */
|
||||
$("#input_time02").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">到期日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-下次收租日期 */
|
||||
$("#input_time03").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">下次收租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-收租周期 */
|
||||
$("#input_cycle").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">收租周期</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: getnumber()
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["年", "季", "月"]
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["/次"]
|
||||
}
|
||||
]
|
||||
});
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
|
||||
//var id="165878889770385408"
|
||||
/* 编辑状态-确定 */
|
||||
$(document).on('click','#confirm_btn', function () {
|
||||
|
||||
@@ -341,12 +281,70 @@ $("#input_cycle").picker({
|
||||
}
|
||||
|
||||
axios.post("/rest/rent/changeStatus",d).then(function(response){
|
||||
//$.toast(response.data.data);
|
||||
console.log(1);
|
||||
back(),plus.nativeUI.closeWaiting();
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 获取周期 1-30
|
||||
function getnumber(){
|
||||
var data = new Array();
|
||||
for(var i=1;i<31;i++){
|
||||
data.push(i);
|
||||
}
|
||||
return data;
|
||||
};
|
||||
|
||||
///* 错误提示 */
|
||||
//$("#confirm_btn").on("click", function () {
|
||||
// var a = $("#input_time01").val();
|
||||
// var b = $("#input_time02").val();
|
||||
// var c = $("#input_rent01").val();
|
||||
// var d = $("#input_time03").val();
|
||||
// if(a == ""){
|
||||
// $.toast("请选择起租日期");
|
||||
// return false;
|
||||
// }
|
||||
// else if(b == ""){
|
||||
// $.toast("请选择到期日期");
|
||||
// return false;
|
||||
// }
|
||||
// else if(c == ""){
|
||||
// $.toast("请输入每期租金");
|
||||
// return false;
|
||||
// }
|
||||
// else if(d == ""){
|
||||
// $.toast("请选择下次收租日期");
|
||||
// return false;
|
||||
// }
|
||||
//});
|
||||
|
||||
|
||||
var edit = new Vue({
|
||||
el:"#edit",
|
||||
data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
|
||||
});
|
||||
function getNowFormatDate(time) {
|
||||
if(typeof(time)=="undefined"||time==null){
|
||||
return ""
|
||||
}
|
||||
var date = new Date(time)
|
||||
var seperator1 = "-";
|
||||
var year = date.getFullYear();
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = year + seperator1 + month + seperator1 + strDate;
|
||||
return currentdate;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -29,6 +29,15 @@
|
||||
<div class="content" id="app">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a onclick="clicked('/views/user/updatePass.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">
|
||||
|
||||
@@ -305,7 +305,13 @@ function gotoUpdatePass(){
|
||||
function gotoLoanApply(houseId, city){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){})
|
||||
}
|
||||
|
||||
//跳转到小区详情
|
||||
function gotoDistrictDetail(city,region,name){
|
||||
alert(city)
|
||||
alert(region)
|
||||
alert(name)
|
||||
clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name},function(){})
|
||||
}
|
||||
//跳转房产详情
|
||||
function gotoHouseDetail(id){
|
||||
clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){
|
||||
|
||||
Reference in New Issue
Block a user