Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.0.4

This commit is contained in:
xuhe@fangjia.com
2018-05-07 15:17:34 +08:00
12 changed files with 104 additions and 41 deletions
+29 -5
View File
@@ -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})
}
}