From 5da64f43305c90e72c6c7887c045efb0a3c9cfa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Mon, 16 Apr 2018 14:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9F=8E=E5=B8=82=E9=99=90?= =?UTF-8?q?=E5=88=B6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/manifest.json | 12 ++++++++++ fangija-zsyf/views/house/houseDetail.html | 27 +++++++++++++++-------- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index ef93cc1..672f893 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -1729,6 +1729,18 @@ "doc/key.html", "doc/splashscreen.html", "doc/statistic.html", + "plus/accelerometer_shake.html", + "plus/accelerometer.html", + "plus/audio.html", + "plus/barcode_scan.html", + "plus/barcode_scan2.html", + "plus/barcode.html", + "plus/camera_image.html", + "plus/camera_video.html", + "plus/camera.html", + "plus/device.html", + "plus/doc.html", + "plus/downloader.html", "plus/webview_pullhead.html", "plus/webview_pullrefresh.html" ] diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 3407dfa..5d792d8 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -80,7 +80,7 @@
-
+
@@ -168,7 +168,7 @@
-
+
@@ -1511,11 +1511,15 @@ function addFocus(city){ }else{ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ - reloadMyFocus() - plus.webview.getWebviewById('views/house/houseDetail.html').reload(); - plus.webview.getWebviewById('views/house/houseManageList.html').reload(); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); - createData(city, myDatasVue.$data.cityDatas.length); + if(response.data.status){ + reloadMyFocus() + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + createData(city, myDatasVue.$data.cityDatas.length); + } else { + $.toast(response.data.message); + } }).catch(function(error){ console.log(error) }) @@ -1523,8 +1527,13 @@ function addFocus(city){ }) }else{ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ - reloadMyFocus() - cityDetaiVue.$data.citys.push(city); + if(response.data.status){ + reloadMyFocus() + cityDetaiVue.$data.citys.push(city); + } else { + $.toast(response.data.message); + } + }).catch(function(error){ console.log(error) })