Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -1,6 +1,33 @@
|
|||||||
var ret = []
|
var ret = []
|
||||||
|
|
||||||
|
function loadMyCollectCity(){
|
||||||
|
plus.nativeUI.showWaiting();
|
||||||
|
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
||||||
|
var curDatas = response.data.data
|
||||||
|
if(curDatas && curDatas.length>0){
|
||||||
|
if(positionCity){
|
||||||
|
if(!IsInArray(curDatas, positionCity)){
|
||||||
|
curDatas.splice(0,0, positionCity)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cityDetaiVue.$data.citys = curDatas;
|
||||||
|
}else{
|
||||||
|
if(positionCity){
|
||||||
|
cityDetaiVue.$data.citys.push(positionCity);
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#cityInfo").hide()
|
||||||
|
}
|
||||||
|
plus.nativeUI.closeWaiting();
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function loadCurCity(city){
|
function loadCurCity(city){
|
||||||
|
plus.nativeUI.showWaiting();
|
||||||
|
|
||||||
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
||||||
var curDatas = response.data.data
|
var curDatas = response.data.data
|
||||||
if(curDatas && curDatas.length>0){
|
if(curDatas && curDatas.length>0){
|
||||||
@@ -10,7 +37,7 @@ function loadCurCity(city){
|
|||||||
cityInfoVue.$data.collecd = false;
|
cityInfoVue.$data.collecd = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
plus.nativeUI.closeWaiting();
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
@@ -478,8 +505,9 @@ function docollectCity(city){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//loadMyCollectCity();
|
||||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
$("a[href='#tabQuotation1']").click();
|
||||||
|
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
}else if(msg == "关注成功"){
|
}else if(msg == "关注成功"){
|
||||||
cityInfoVue.$data.collecd = true;
|
cityInfoVue.$data.collecd = true;
|
||||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ Vue.component('city_increase_ranking',{
|
|||||||
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}}).then(function(response){
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
$(event.target).parent().children().removeClass("dn");
|
$(event.target).parent().children().removeClass("dn");
|
||||||
@@ -60,6 +59,7 @@ Vue.component('city_increase_ranking',{
|
|||||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
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();
|
||||||
|
//cityDetaiVue.$data.citys.push(city);
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
@@ -70,6 +70,7 @@ Vue.component('city_increase_ranking',{
|
|||||||
$(event.target).parent().children().removeClass("dn");
|
$(event.target).parent().children().removeClass("dn");
|
||||||
$(event.target).addClass("dn");
|
$(event.target).addClass("dn");
|
||||||
reloadMyFocus()
|
reloadMyFocus()
|
||||||
|
cityDetaiVue.$data.citys.push(city);
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
@@ -91,6 +92,14 @@ Vue.component('city_increase_ranking',{
|
|||||||
$(event.target).addClass("dn");
|
$(event.target).addClass("dn");
|
||||||
reloadMyFocus();
|
reloadMyFocus();
|
||||||
//plus.webview.getWebviewById('views/user/userInfo.html').reload()
|
//plus.webview.getWebviewById('views/user/userInfo.html').reload()
|
||||||
|
var da = cityDetaiVue.$data.citys
|
||||||
|
if(da && da.length>0){
|
||||||
|
var index = da.indexOf(city)
|
||||||
|
if(index>0){
|
||||||
|
da.splice(index, 1)
|
||||||
|
cityDetaiVue.$data.citys = da;
|
||||||
|
}
|
||||||
|
}
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -69,15 +69,17 @@ 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") == ""){
|
||||||
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") == ""){
|
||||||
|
alert("rrrr")
|
||||||
}else{
|
}else{
|
||||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
$(event.target).parent().children().removeClass("dn");
|
$(event.target).parent().children().removeClass("dn");
|
||||||
$(event.target).addClass("dn");
|
$(event.target).addClass("dn");
|
||||||
|
alert(city)
|
||||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
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();
|
||||||
reloadMyFocus()
|
reloadMyFocus()
|
||||||
|
//cityDetaiVue.$data.citys.push(city);
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
@@ -88,6 +90,7 @@ Vue.component('city_potential_ranking',{
|
|||||||
$(event.target).parent().children().removeClass("dn");
|
$(event.target).parent().children().removeClass("dn");
|
||||||
$(event.target).addClass("dn");
|
$(event.target).addClass("dn");
|
||||||
reloadMyFocus()
|
reloadMyFocus()
|
||||||
|
cityDetaiVue.$data.citys.push(city);
|
||||||
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@@ -100,6 +103,15 @@ Vue.component('city_potential_ranking',{
|
|||||||
$(event.target).parent().children().removeClass("dn");
|
$(event.target).parent().children().removeClass("dn");
|
||||||
$(event.target).addClass("dn");
|
$(event.target).addClass("dn");
|
||||||
reloadMyFocus()
|
reloadMyFocus()
|
||||||
|
|
||||||
|
var da = cityDetaiVue.$data.citys
|
||||||
|
if(da && da.length>0){
|
||||||
|
var index = da.indexOf(city)
|
||||||
|
if(index>0){
|
||||||
|
da.splice(index, 1)
|
||||||
|
cityDetaiVue.$data.citys = da;
|
||||||
|
}
|
||||||
|
}
|
||||||
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@@ -47,35 +47,35 @@
|
|||||||
</header>
|
</header>
|
||||||
<nav class="bar bar-tab">
|
<nav class="bar bar-tab">
|
||||||
<a class="tab-item external active" id="bus">
|
<a class="tab-item external active" id="bus">
|
||||||
<span class="icon icon-around01"></span>
|
<span class="icon iconfont icon-around01"></span>
|
||||||
<span class="tab-label">公交</span>
|
<span class="tab-label">公交</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="subway">
|
<a class="tab-item external" id="subway">
|
||||||
<span class="icon icon-around02"></span>
|
<span class="icon iconfont icon-around02"></span>
|
||||||
<span class="tab-label">地铁</span>
|
<span class="tab-label">地铁</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="school">
|
<a class="tab-item external" id="school">
|
||||||
<span class="icon icon-around03"></span>
|
<span class="icon iconfont icon-around03"></span>
|
||||||
<span class="tab-label">学校</span>
|
<span class="tab-label">学校</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="hos">
|
<a class="tab-item external" id="hos">
|
||||||
<span class="icon icon-around04"></span>
|
<span class="icon iconfont icon-around04"></span>
|
||||||
<span class="tab-label">医院</span>
|
<span class="tab-label">医院</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="bank">
|
<a class="tab-item external" id="bank">
|
||||||
<span class="icon icon-around05"></span>
|
<span class="icon iconfont icon-around05"></span>
|
||||||
<span class="tab-label">银行</span>
|
<span class="tab-label">银行</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="supermark">
|
<a class="tab-item external" id="supermark">
|
||||||
<span class="icon icon-around06"></span>
|
<span class="icon iconfont icon-around06"></span>
|
||||||
<span class="tab-label">购物</span>
|
<span class="tab-label">购物</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="hs">
|
<a class="tab-item external" id="hs">
|
||||||
<span class="icon icon-around07"></span>
|
<span class="icon iconfont icon-around07"></span>
|
||||||
<span class="tab-label">房屋</span>
|
<span class="tab-label">房屋</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="tab-item external" id="id="xianwu"">
|
<a class="tab-item external" id="id="xianwu"">
|
||||||
<span class="icon icon-around08"></span>
|
<span class="icon iconfont icon-around08"></span>
|
||||||
<span class="tab-label">嫌恶</span>
|
<span class="tab-label">嫌恶</span>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ $.config = {router: false}
|
|||||||
if(h.totalPrice==0){
|
if(h.totalPrice==0){
|
||||||
house_price.total_price = "暂无";
|
house_price.total_price = "暂无";
|
||||||
}else{
|
}else{
|
||||||
house_price.total_price = (h.totalPrice/10000).toFixed(0)
|
house_price.total_price = (h.totalPrice/10000).toFixed(2)
|
||||||
house_price.w = "万"
|
house_price.w = "万"
|
||||||
}
|
}
|
||||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
|
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
|
||||||
|
|||||||
@@ -521,6 +521,8 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var status = response.data.status;
|
var status = response.data.status;
|
||||||
if(status){
|
if(status){
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
$.toast("修改状态成功!");
|
$.toast("修改状态成功!");
|
||||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1434,8 +1434,13 @@ $("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
|
|||||||
$("#cityInfo").hide()
|
$("#cityInfo").hide()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function clickCity(val){
|
function clickCity(val){
|
||||||
|
|
||||||
city = val;
|
city = val;
|
||||||
|
|
||||||
|
|
||||||
$("#cityInfo").show()
|
$("#cityInfo").show()
|
||||||
$("#tabCityDiv a").removeClass("active");
|
$("#tabCityDiv a").removeClass("active");
|
||||||
// $("a[href="+val+"]").addClass("active");
|
// $("a[href="+val+"]").addClass("active");
|
||||||
@@ -1535,30 +1540,6 @@ function hotCity(city){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function loadMyCollectCity(){
|
|
||||||
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
|
||||||
var curDatas = response.data.data
|
|
||||||
if(curDatas && curDatas.length>0){
|
|
||||||
if(positionCity){
|
|
||||||
if(!IsInArray(curDatas, positionCity)){
|
|
||||||
curDatas.splice(0,0, positionCity)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cityDetaiVue.$data.citys = curDatas;
|
|
||||||
}else{
|
|
||||||
if(positionCity){
|
|
||||||
cityDetaiVue.$data.citys.push(positionCity);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#cityInfo").hide()
|
|
||||||
}
|
|
||||||
|
|
||||||
}).catch(function (error) {
|
|
||||||
console.log(error);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -73,28 +73,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons-tab fixed-tab theme" data-offset="44">
|
<div class="buttons-tab fixed-tab theme" data-offset="44">
|
||||||
<a href="#" class="tab-link button active">房产(0)</a>
|
<a href="#tab_house" class="tab-link button active">房产(0)</a>
|
||||||
<a href="#" class="tab-link button">关注(0)</a>
|
<a href="#tab_focus" class="tab-link button">关注(0)</a>
|
||||||
<a href="#" class="tab-link button">收藏(0)</a>
|
<a href="#tab_collect" class="tab-link button">收藏(0)</a>
|
||||||
<a href="#" class="tab-link button" style="display: none;">消息(0)</a>
|
<a href="#tab_message" class="tab-link button" style="display: none;">消息(0)</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<div id="" class="tab active">
|
<div id="tab_house" class="tab active">
|
||||||
<div class="noData">
|
<div class="noData">
|
||||||
<img src="../../images/noData.png">
|
<img src="../../images/noData.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="" class="tab">
|
<div id="tab_focus" class="tab">
|
||||||
<div class="noData">
|
<div class="noData">
|
||||||
<img src="../../images/noData.png">
|
<img src="../../images/noData.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="" class="tab">
|
<div id="tab_collect" class="tab">
|
||||||
<div class="noData">
|
<div class="noData">
|
||||||
<img src="../../images/noData.png">
|
<img src="../../images/noData.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="" class="tab">
|
<div id="tab_message" class="tab">
|
||||||
<div class="noData">
|
<div class="noData">
|
||||||
<img src="../../images/noData.png">
|
<img src="../../images/noData.png">
|
||||||
</div>
|
</div>
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
<a href="#tabList4" class="tab-link button" style="display: none;">消息(2)</a>
|
<a href="#tabList4" class="tab-link button" style="display: none;">消息(2)</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="contentBox">
|
<div class="contentBox">
|
||||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="100">
|
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<!-- 我的房产 -->
|
<!-- 我的房产 -->
|
||||||
<div id="tabList1" class="tab active">
|
<div id="tabList1" class="tab active">
|
||||||
@@ -251,11 +251,6 @@ $(document).on('click','.alert-text-title', function () {
|
|||||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 点击资讯跳转到资讯详情页 */
|
|
||||||
$(".cardInfo01,.cardInfo02").on("click", function(){
|
|
||||||
window.location.href = "#";
|
|
||||||
});
|
|
||||||
|
|
||||||
//初始化init
|
//初始化init
|
||||||
$.init();
|
$.init();
|
||||||
|
|
||||||
|
|||||||
@@ -1193,6 +1193,11 @@ $.config = {router: false}
|
|||||||
<script type='text/javascript' src='js/jquery.cookie.js?version=${version!}' charset='utf-8'></script>
|
<script type='text/javascript' src='js/jquery.cookie.js?version=${version!}' charset='utf-8'></script>
|
||||||
<script type="text/javascript" src="js/updateVersion/updateVersion.js" charset='utf-8'></script>
|
<script type="text/javascript" src="js/updateVersion/updateVersion.js" charset='utf-8'></script>
|
||||||
<script>
|
<script>
|
||||||
|
function openHangQing(city){
|
||||||
|
clicked('views/house/cityDetail.html',true,false,{},{city:city},function(){
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
String.prototype.endWith = function(str) {
|
String.prototype.endWith = function(str) {
|
||||||
var reg = new RegExp(str + "$");
|
var reg = new RegExp(str + "$");
|
||||||
return reg.test(this);
|
return reg.test(this);
|
||||||
@@ -1735,7 +1740,7 @@ function addItems(number, lastIndex) {
|
|||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
if(dataObj[i].type=="推荐小区"){
|
if(dataObj[i].type=="推荐小区"){
|
||||||
html += '<div class="card cardInfo cardInfo02" onclick="openUrl(\''+BASE_PATH+'/district/details?city='+dataObj[i].recommendDistrictCity+'®ion='+dataObj[i].recommendDistrictRegion+'&name='+dataObj[i].recommendDistrictName+'\')">'+
|
html += '<div class="card cardInfo cardInfo02" onclick="openDistWindow(\''+dataObj[i].recommendDistrictCity+'\',\''+dataObj[i].recommendDistrictRegion+'\',\''+dataObj[i].recommendDistrictName+'\')">'+
|
||||||
'<div class="card-content">'+
|
'<div class="card-content">'+
|
||||||
'<div class="list-block media-list"><ul><li class="item-content">'+
|
'<div class="list-block media-list"><ul><li class="item-content">'+
|
||||||
'<div class="item-media"><img src='+dataObj[i].coverImg+'></div>'+
|
'<div class="item-media"><img src='+dataObj[i].coverImg+'></div>'+
|
||||||
@@ -1768,7 +1773,7 @@ function addItems(number, lastIndex) {
|
|||||||
'<div class="card-footer"><span>'+dataObj[i].introduction+'</span></div></div>';
|
'<div class="card-footer"><span>'+dataObj[i].introduction+'</span></div></div>';
|
||||||
}
|
}
|
||||||
if(dataObj[i].type=="推荐城市"){
|
if(dataObj[i].type=="推荐城市"){
|
||||||
html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openUrl(\''+BASE_PATH+'/quotations/building?cityName='+dataObj[i].recommendCity+'\')">'+
|
html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openHangQing(\''+dataObj[i].recommendCity+'\')">'+
|
||||||
'<div class="card-header">推荐城市——'+dataObj[i].recommendCity+'</div>';
|
'<div class="card-header">推荐城市——'+dataObj[i].recommendCity+'</div>';
|
||||||
if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){
|
if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){
|
||||||
var arry = dataObj[i].recommendCityTags.split("_");
|
var arry = dataObj[i].recommendCityTags.split("_");
|
||||||
@@ -2617,7 +2622,6 @@ function openIntelligentHouseView() {
|
|||||||
}
|
}
|
||||||
function openDistWindow(city, region, name){
|
function openDistWindow(city, region, name){
|
||||||
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user