Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.0.4
This commit is contained in:
@@ -1353,9 +1353,21 @@ document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
hsId = self.hsId
|
||||
houseId = self.houseId
|
||||
if(hsId){
|
||||
//如果是修改置换建议,则默认将值填入
|
||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
||||
updateChangeSubtation(hsId);
|
||||
}
|
||||
|
||||
if(houseId){
|
||||
//小区报告页带入
|
||||
fillHouseInfo(houseId);
|
||||
}
|
||||
|
||||
}
|
||||
//修改置换建议填充默认值
|
||||
function updateChangeSubtation(hsId){
|
||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
||||
params:{
|
||||
hsId:hsId
|
||||
}
|
||||
@@ -1397,7 +1409,22 @@ function onPlusReady() {
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fillHouseInfo(houseId){
|
||||
axios.get(BASE_PATH + "/rest/index/loadHouse",{
|
||||
params:{
|
||||
houseId:houseId
|
||||
}
|
||||
}).then(function (response) {
|
||||
var data = response.data.data;
|
||||
if(data){
|
||||
addBaseHouseInfo(data);
|
||||
baseInfo.houseId = hs.houseId
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//填充房产价格信息
|
||||
@@ -1818,7 +1845,6 @@ $("#citySearchInp").bind('keyup', function() {
|
||||
});
|
||||
|
||||
function openAddHouse(){
|
||||
alert("ssss")
|
||||
clicked('/views/house/add.html',true,false,{},{});
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
<div class="noData">
|
||||
<img src="../../images/noData.png">
|
||||
<p>抱歉,没有找到适合您的小区</p>
|
||||
<a click="updateChangeHouse()">修改置换需求</a>
|
||||
<a onclick="updateChangeHouse()">修改置换需求</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -399,7 +399,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
||||
});
|
||||
|
||||
function updateChangeHouse(){
|
||||
clicked('views/changeHouse/index.html',true,false,{},{hsId:hsId});
|
||||
clicked('/views/changeHouse/index.html',true,false,{},{hsId:hsId});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -303,5 +303,6 @@ function addSubstitution(sr, hs, house){
|
||||
// <a <#if advertisement.link?? && advertisement.link?length gt 0>onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"</#if> ><#if advertisement.content??>${advertisement.content!}</#if><i class="icon icon-right icon-right01"></i></a></p>
|
||||
// </#if>
|
||||
$("#suggestDiv").text(s);
|
||||
$("#suggestDiv").show();
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<h1 class="title">{{name}}</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="topBg topBg02" id="suggestDiv">
|
||||
<div class="topBg topBg02 dn" id="suggestDiv">
|
||||
<p>购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为<em>587-717万</em>。<br><a href="">查看详情<i class="icon icon-right icon-right01"></i></a></p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -64,8 +64,10 @@
|
||||
<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 class="col-25" v-if="info.oneMonthUpDownRange && info.oneMonthUpDownRange >= 0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="col-25" v-else-if="info.oneMonthUpDownRange && info.oneMonthUpDownRange < 0"><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div class="col-25" v-else><em>暂无</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
@@ -137,7 +139,11 @@ $.config = {router: false}
|
||||
if(msg!=null && msg.length>0){
|
||||
for(var i in msg){
|
||||
var da = msg[i]
|
||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||
if(da.oneMonthUpDownRange){
|
||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
regionsInfoVue.$data.regionInfos = msg;
|
||||
}else{
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
<span>算房贷</span>
|
||||
</div>-->
|
||||
<div v-for="(t,index) in merchantTools">
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId)">
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId,t.id)">
|
||||
<span>{{t.toolName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -337,7 +337,8 @@ $(document).on('infinite', '.infinite-scroll',function() {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
//$('#loadTip1').remove();
|
||||
$('#loadTip1').hide();
|
||||
return;
|
||||
}
|
||||
//控制查询下一页的数据
|
||||
@@ -453,7 +454,8 @@ $(document).on("click",".confirm-ok", function () {
|
||||
$.toast(response.data.data);
|
||||
//删除后,如果需要调用checkIsLogin,需要所有的参数初始化
|
||||
//checkIsLogin();
|
||||
window.location.reload();
|
||||
//window.location.reload();
|
||||
initMyHouseParams();
|
||||
//删除房产会影响个人中心房产列表, 刷新
|
||||
/*if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
@@ -469,6 +471,24 @@ $(document).on("click",".confirm-ok", function () {
|
||||
$(".modal-text").css("text-align","center");
|
||||
});
|
||||
|
||||
//初始化分页参数, 防止回调时候重新请求出错
|
||||
function initMyHouseParams(){
|
||||
mh_loading = false;
|
||||
mh_page = undefined;
|
||||
var mh_pageSize = undefined;
|
||||
var mh_totalPages = undefined;
|
||||
var mh_totalRecords = undefined;
|
||||
var mh_lastIndex = undefined;
|
||||
var mh_itemsPerLoad = undefined;
|
||||
var mh_maxItems = 100;
|
||||
//清空构造的container
|
||||
$('#myhouse').html('');
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').show();
|
||||
//加载我的房产
|
||||
selectHouseInfoList();
|
||||
}
|
||||
|
||||
function openSettingPage() {
|
||||
clicked('../setting/setting.html',true,false,{},{},function(){})
|
||||
}
|
||||
@@ -483,15 +503,19 @@ function onPlusReady(){
|
||||
userId:""
|
||||
},
|
||||
methods:{
|
||||
goto:function(url,userId){
|
||||
goto:function(url,userId,id){
|
||||
var deviceId = plus.device.uuid;
|
||||
if(url.indexOf("?")>0){
|
||||
url+=("&uid="+userId+"&deviceId="+deviceId)
|
||||
}else{
|
||||
url+=("?uid="+userId+"&deviceId="+deviceId)
|
||||
}
|
||||
alert(url)
|
||||
if (url != null && url != "") {
|
||||
axios.post(BASE_PATH + "/rest/usertool/merchantToolClick",{id:id}).then(function(response){
|
||||
|
||||
}).catch(function(error){
|
||||
|
||||
});
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user