From 2e613d7a9f7300b5f13eb9d7fb38128b4dd448d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Thu, 26 Apr 2018 10:54:46 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=92=A8=E8=AF=A2?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/img/default_share.png | Bin 2474 -> 2661 bytes fangija-zsyf/js/shara/sharaMine.js | 4 ++-- fangija-zsyf/manifest.json | 2 +- fangija-zsyf/views/news/newsDetail.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fangija-zsyf/img/default_share.png b/fangija-zsyf/img/default_share.png index a93105dce589897a97d7a29ac979aeda5c0ffae8..aa06ca6fc10a029c074c143cacd681dab9638554 100644 GIT binary patch literal 2661 zcmai$Ydq77AIEEn#`@-!i2DP+>W^nON7j=2^|*cpoG}S zwMDsKE9@Y-L|99Pq}jjo;Q#FZdi@`KKi}8u^YruJ{Z4nZKQAtNToeERag4Q<)6eho z?+FY2%!R^eBLEQ9!dO{4$FSHXLD!G0$h>A7`jA0~PB%6h1f8fJ&n0Oz6?kCnG{#S@ zQ8m=;iV@g?3T%zDm7u7Tbdz_r(^2B&G2L4&?-0~8Ll*}F?5TK0H|!VHBgL8!v7O&xfZ(2;Mf-GY<8QPEMjgU&xoL*}N%zKlImO0nqz;ej|jAPdOL0?;lf zvd!6ZTQ>k7*4t3kzVII1&Iu^n{mL$SX& z@~C%kavWZT{6LocF@Q39N4oKV9l|f>4VZ0Zi&>i_LN2xC-2oz2#j%uVQ;C+f)=@Ke zi3#UcUMQ<69_DJ>*dyMpmsm16706R6^O{BpW^qA2GiQ=lX{G4uUi7I|r2(?@Um4ei z3|1M{t-qz#QbxQ5X{U5LMlp|-%>~BF6O*b^q2_>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J2NQrTRe#_sWoZ6R|Yc(-{d z68kp-HpT2wTr2aLJ`d9mzYB|V=j}Jl{!a8AdXI?~bHnVchRoNmvy}8b@qfM!TTe34 zVtYxvigs`ltll=(vc4pHxea~auw7tqp$Tv*0R3j@;_dLZ5H|Lzet!HMgZui zb|UlrcGl9qB6)l}v=cj->vEZdqlmzzzpsHc(8WXE^OytOxb!!+3#$ANZnLITy$9Vb zzbJh!vfr_7^t3z;GugvMp6f;fNgaqR`Xg!{{5`J_o}+i~tLWXs?_FuG^Af`{5Z}8V z$>ZhGpCym~6}@}cbB)2(Fo6Ie$wv3Kr;$GQCC^ZJ;%5kMgT+(D}jRi0^yDsnA@A z?|TECA3W~(){BlACJMP3tpEVa#Ff@{==yLataRL|CNRND$InfU9jX@m8btBHrlookiLc*6{EOFM zmGh>hx(N(q@_#Qz$D!(;wW$308VF(Mw*|IRz3BU96B1u-ggMOnTyEgnrltLv!prv% zIfB^CRj8Qr3_?@x{r?V-HMWiP`TgiWv>5}(f{nKaVOl^UUHtK4WgVhFdkm3j%?Q;m zgrL%IZEt1zkv_W*+Ns@0{$~fwzF=$nVM*%O=G&EoAVR6V18UuDC^t7j9@7A6Og+Tt zcnFcPAi}lzv9@Kv(k{bH_Q1Gu7TGIjpkF+S%!R|yyS{U!G^fE;!)zOfr(G|+e1)sa zJ`j?-Hw!2p*VpL?Nx4ywfa35(sv^NzRy3Y4OcryWfWmmfFd#U~ip4XAi9)VF3m6{H z7zPX;%?}uirwj|q{K9z3Fd!)N3*pJs1O-TbJZYFL<|gh0491g&0YI4TZn~oe&l)C@ o(ih<`2Rv&S0EDHW%)gQU0za4d<&>Kh;{X5v07*qoM6N<$f+pFutN;K2 diff --git a/fangija-zsyf/js/shara/sharaMine.js b/fangija-zsyf/js/shara/sharaMine.js index fbe4551..48d1717 100644 --- a/fangija-zsyf/js/shara/sharaMine.js +++ b/fangija-zsyf/js/shara/sharaMine.js @@ -78,10 +78,10 @@ function shareMessage(msg,s){ var ss=shares['weixin']; ss&&ss.nativeClient&&(shareBts.push({title:'微信朋友圈',s:ss,x:'WXSceneTimeline'}), shareBts.push({title:'微信好友',s:ss,x:'WXSceneSession'})); - ss=shares['qq']; + /* ss=shares['qq']; ss&&ss.nativeClient&&shareBts.push({title:'QQ',s:ss}); ss=shares['sinaweibo']; - ss&&shareBts.push({title:'新浪微博',s:ss}); + ss&&shareBts.push({title:'新浪微博',s:ss});*/ // 弹出分享列表 shareBts.length>0?plus.nativeUI.actionSheet({title:'分享链接',cancel:'取消',buttons:shareBts},function(e){ (e.index>0)&&shareAction(shareBts[e.index-1],true); diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 8cf9750..10fca72 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -7,7 +7,7 @@ "id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/ "name": "有房",/*应用名称,程序桌面图标名称*/ "version": { - "name": "1.1.1",/*应用版本名称*/ + "name": "1.1.2",/*应用版本名称*/ "code": "20109" }, "description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/ diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index a0c37fd..af169c1 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -137,7 +137,7 @@ var city; var region; //var picUrl = '_www/logo.png'; -var picUrl = '../../img/default_share.png'; +var picUrl = '_www/img/default_share.png'; //新闻评论列表 From 8b2d53123ff1ee6bdc22140c521e8c868bf2299d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Thu, 26 Apr 2018 17:10:52 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/manifest.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 10fca72..4adc425 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -7,7 +7,7 @@ "id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/ "name": "有房",/*应用名称,程序桌面图标名称*/ "version": { - "name": "1.1.2",/*应用版本名称*/ + "name": "1.1.5",/*应用版本名称*/ "code": "20109" }, "description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/ @@ -154,8 +154,8 @@ ], "frameworks": [], /*调用Native.js调用原生Objective-c API需要引用的FrameWork,如需调用GameCenter,则添加"GameKit.framework"*/ "plistcmds": [ - "Set :NSLocationWhenInUseUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。", - "Set :NSLocationAlwaysUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。" + "Add :NSLocationAlwaysUsageDescription string 根据您的位置信息,您可随时掌握所在位置周边房产的行情。", + "Set :NSLocationWhenInUseUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。" ] }, "google": { From 528954f79f03d5e2434a42475b7fcae9ed15bd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 27 Apr 2018 11:47:59 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8B=B9=E6=9E=9Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/main.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 004bdf9..e70a4b5 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -134,10 +134,11 @@ var self = plus.webview.currentWebview(); for (var i = 0; i < 4; i++) { var temp = {}; - var sub = plus.webview.create(subpages[i], subpages[i], subpage_style); if (i > 0) { - sub.hide(); + /*var sub = plus.webview.create(subpages[i], subpages[i], subpage_style); + sub.hide();*/ }else{ + var sub = plus.webview.create(subpages[i], subpages[i], subpage_style); temp[subpages[i]] = "true"; mui.extend(aniShow,temp); } @@ -158,6 +159,9 @@ //显示目标选项卡 //若为iOS平台或非首次显示,则直接显示 if(mui.os.ios||aniShow[targetTab]){ + if(plus.webview.getWebviewById(targetTab)==null){ + plus.webview.create(targetTab, targetTab, subpage_style) + } plus.webview.show(targetTab); }else{ //否则,使用fade-in动画,且保存变量 From 0526a1b877642d0bd4926a8ccb5ef9e4ed13e462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 27 Apr 2018 16:11:12 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E5=B4=A9=E6=BA=83bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/district/districtDetail.js | 45 ++++++++++++++----- fangija-zsyf/js/quotations/cityDetail.js | 36 +++++++++++---- fangija-zsyf/js/quotations/collectCity.js | 14 ++++-- fangija-zsyf/manifest.json | 2 +- .../component/cityIncreaseRankingComponent.js | 22 ++++++--- .../cityPotentialRankingComponent.js | 23 +++++++--- .../views/evaluate/evaluateReport.html | 9 +++- fangija-zsyf/views/house/add.html | 28 +++++++++--- fangija-zsyf/views/house/detail.html | 10 +++-- fangija-zsyf/views/house/houseDetail.html | 13 ++++-- fangija-zsyf/views/house/houseManageList.html | 4 +- fangija-zsyf/views/news/newsDetail.html | 14 ++++-- fangija-zsyf/views/setting/setting.html | 14 ++++-- fangija-zsyf/views/user/userInfo.html | 11 +++-- 14 files changed, 186 insertions(+), 59 deletions(-) diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index dab296b..9064e24 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -12,9 +12,17 @@ var mapLoadCount = 0; function doAddCollect(){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ - plus.webview.getWebviewById('views/user/userInfo.html').reload(); - plus.webview.getWebviewById('views/house/houseDetail.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(); + } doAddCollect(); }) return; @@ -32,7 +40,9 @@ function addCollect(){ $(".collection01").hide(); $(".collection02").show(); $.toast("随时掌握小区动态"); - 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(); + } } }) @@ -49,7 +59,9 @@ function doRemoveCollect(){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ doRemoveCollect(); - 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(); + } }) return; } else { @@ -67,9 +79,14 @@ function removeCollect(){ $(".collection01").show(); $.toast("取消关注"); } - 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(); + } plus.webview.getWebviewById('yfindex.html').reload(); - plus.webview.getWebviewById('views/house/houseManageList.html').reload(); }) .catch(function (error) { console.log(error); @@ -313,9 +330,17 @@ function showTrends(v){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ showTrends(v); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); - plus.webview.getWebviewById('views/house/houseDetail.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(); + } }) return; } else { diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js index 3fb27b6..2ba1351 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -198,9 +198,17 @@ function clickTrend(city, type){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ clickTrend(city, type); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); - plus.webview.getWebviewById('views/house/houseDetail.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(); + } }) return; } else { @@ -543,9 +551,13 @@ function collectCity(city, type){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ collectCity(city, type) - 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/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(); + } }) return; } else { @@ -562,7 +574,9 @@ function collectCity(city, type){ // plus.webview.getWebviewById('views/house/houseDetail.html').reload(); },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(); + } //loadMyCollectCity(); }); @@ -602,13 +616,17 @@ function docollectCity(city, type){ //loadMyCollectCity(); $("a[href='#tabQuotation1']").click(); - 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(); //reloadCityPotentialRanking() //reloadCityIncreaseRanking() }else if(msg == "关注成功"){ cityInfoVue.$data.collecd = true; - 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(); //reloadCityPotentialRanking() //reloadCityIncreaseRanking() diff --git a/fangija-zsyf/js/quotations/collectCity.js b/fangija-zsyf/js/quotations/collectCity.js index b8107b0..bd7c6f1 100644 --- a/fangija-zsyf/js/quotations/collectCity.js +++ b/fangija-zsyf/js/quotations/collectCity.js @@ -528,10 +528,18 @@ function showRegionInfo(city){ function collectCity(city, index){ 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(); + if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) { + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + } collectCity(city) - 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(); + } }) return; diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 4adc425..4a8af33 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -7,7 +7,7 @@ "id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/ "name": "有房",/*应用名称,程序桌面图标名称*/ "version": { - "name": "1.1.5",/*应用版本名称*/ + "name": "1.1.6",/*应用版本名称*/ "code": "20109" }, "description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/ diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 09e3987..3f4012b 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -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{ diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index ac9161c..54d9ae3 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -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{ diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 09d9cdd..757272b 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -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); } diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html index 5643018..90ebf56 100644 --- a/fangija-zsyf/views/house/add.html +++ b/fangija-zsyf/views/house/add.html @@ -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) { diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index cb77dfb..c956c10 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -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); } diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 75d3004..f7f9b3f 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -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)){ diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index 9bef9ff..51d3e59 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -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); diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index af169c1..57dcf61 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -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; diff --git a/fangija-zsyf/views/setting/setting.html b/fangija-zsyf/views/setting/setting.html index d0fad15..8c62336 100644 --- a/fangija-zsyf/views/setting/setting.html +++ b/fangija-zsyf/views/setting/setting.html @@ -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(); } diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 030e992..53320e6 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -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(); }) } From 6573508176aaeb7d6dced3e7c11ce2ad38150d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 27 Apr 2018 16:33:31 +0800 Subject: [PATCH 5/5] add --- fangija-zsyf/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 4a8af33..280b2ce 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -154,7 +154,7 @@ ], "frameworks": [], /*调用Native.js调用原生Objective-c API需要引用的FrameWork,如需调用GameCenter,则添加"GameKit.framework"*/ "plistcmds": [ - "Add :NSLocationAlwaysUsageDescription string 根据您的位置信息,您可随时掌握所在位置周边房产的行情。", + "Set :NSLocationAlwaysUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。", "Set :NSLocationWhenInUseUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。" ] },