评估审核崩溃bug修复
This commit is contained in:
@@ -58,7 +58,9 @@ Vue.component('city_increase_ranking',{
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if (plus.webview.getWebviewById('views/house/houseDetail.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
}else{
|
||||
//$(event.target).parent().children().removeClass("dn");
|
||||
//$(event.target).addClass("dn");
|
||||
@@ -80,7 +82,9 @@ Vue.component('city_increase_ranking',{
|
||||
}
|
||||
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
// loadMyCollectCity()
|
||||
if(type == 0){
|
||||
@@ -97,11 +101,17 @@ Vue.component('city_increase_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if (plus.webview.getWebviewById('views/house/houseDetail.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
});
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html') != null) {
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}else{
|
||||
|
||||
@@ -77,7 +77,10 @@ Vue.component('city_potential_ranking',{
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
}else{
|
||||
//$(event.target).parent().children().removeClass("dn");
|
||||
//$(event.target).addClass("dn");
|
||||
@@ -96,7 +99,10 @@ Vue.component('city_potential_ranking',{
|
||||
}
|
||||
}
|
||||
}
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
@@ -106,11 +112,16 @@ Vue.component('city_potential_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
});
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
|
||||
@@ -344,8 +344,13 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
|
||||
@@ -1845,9 +1845,17 @@ function checkIsLogin(){
|
||||
|
||||
}else{
|
||||
addEvaluation();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
@@ -1891,15 +1899,23 @@ function addEvaluation(){
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
var id = response.data.data.id;
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id},function(){
|
||||
getRequestId();
|
||||
})
|
||||
}else{
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast(response.data.message);
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
|
||||
@@ -529,10 +529,14 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
}).then(function (response) {
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
$.toast("修改状态成功!");
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
|
||||
@@ -1557,10 +1557,17 @@ function addFocus(city){
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
reloadCityPotentialRanking()
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
var curDatas = response.data.data
|
||||
if(curDatas && curDatas.length>=0){
|
||||
if(!IsInArray(curDatas, city)){
|
||||
|
||||
@@ -155,7 +155,9 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
$.toast(response.data.data);
|
||||
$('.loadingBgDiv').show();
|
||||
checkIsLogin();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
//plus.webview.getWebviewById('yfindex.html').reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
|
||||
@@ -504,9 +504,17 @@ $(".collection").on("click", function () {
|
||||
function doCollect() {
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload()
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
doCollect();
|
||||
})
|
||||
return;
|
||||
|
||||
@@ -110,9 +110,17 @@ function logout() {
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
//退出登录之前loading下个人中心
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
timer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -289,9 +289,14 @@ function checkIsLogin(){
|
||||
//跳转登录方法, 考虑回调
|
||||
function gotoLogin(){
|
||||
clicked('/views/user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
//plus.webview.getWebviewById('yfindex.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
checkIsLogin();
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user