From fa8423cded5dbedba2b5d030a7584c41ef43e5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=20=E8=8C=83?= Date: Fri, 29 Oct 2021 17:05:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=AB=E4=B8=80?= =?UTF-8?q?=E6=89=AB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/views/index.vue | 106 +++++++++++-------- 1 file changed, 62 insertions(+), 44 deletions(-) diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index 39ac33d..bcf2ce6 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -8,9 +8,7 @@ >
-
- 被征收人信息查询 -
+
被征收人信息查询
进入老年模式
@@ -26,16 +24,16 @@
{{ setIdCard(data.idCard) }}
-
-
+
+
扫一扫
-
+
查评估结果
-
+
查补偿协议
@@ -164,11 +162,11 @@
-
+
征收政策 共{{ data.policiesRegulationsLists.totalCount }}条
-
+
{{ item.title }}
@@ -224,7 +222,7 @@ export default { // }, // { title: "无数据", publicTime: "无数据", area: "无数据" }, // { title: "无数据", publicTime: "无数据", area: "无数据" } - ] + ], }, prjList: [ { @@ -259,7 +257,7 @@ export default { // switchProductionWay: "无数据", // summationShouldCompensateMoney: "无数据" // } - ] + ], }, { // name: "无数据", @@ -282,10 +280,10 @@ export default { // switchProductionWay: "无数据", // summationShouldCompensateMoney: "无数据" // } - ] - } - ] - } + ], + }, + ], + }, }; }, created() { @@ -321,10 +319,10 @@ export default { dataType: "JSON", type: "POST", data: { - ticket: this.$route.query.ticket + ticket: this.$route.query.ticket, }, appKey: "es4b8zmz+2001833218+dehllx", - onSuccess: data => { + onSuccess: (data) => { this.loading = false; window.sessionStorage.setItem("homeData", JSON.stringify(data)); if (data.data.success) { @@ -339,7 +337,7 @@ export default { message: "登录超时,请重新登录", duration: 3000, type: "info", - center: true + center: true, }); setTimeout(() => { window.location.replace( @@ -351,20 +349,20 @@ export default { message: "请求出错", duration: 3000, type: "error", - center: true + center: true, }); } } }, - onFail: err => { + onFail: (err) => { this.loading = false; this.$notify({ title: "错误", message: "请求失败", duration: 3000, - type: "error" + type: "error", }); - } + }, }); }, toOlderMode() { @@ -394,8 +392,8 @@ export default { this.$router.push({ name: "projectSelect", params: { - type: type - } + type: type, + }, }); }, // 直接跳转分户评估结果页面 @@ -406,8 +404,8 @@ export default { name: "evaluatePage", params: { fhpgId: id, - type - } + type, + }, }); }, // 直接跳转协议结果pdf @@ -417,8 +415,8 @@ export default { this.$router.push({ name: "showPdf", params: { - id - } + id, + }, }); }, // 加载项目数统计信息 @@ -433,38 +431,38 @@ export default { $("#app").removeClass("old_app3"); this.$router.push({ name: "policyInfo", - params: { id } + params: { id }, }); }, setZwUserAplus(Userid, userName) { // 设置用户信息埋点 aplus_queue.push({ action: "aplus.setMetaInfo", - arguments: ["_hold", "BLOCK"] + arguments: ["_hold", "BLOCK"], }); aplus_queue.push({ action: "aplus.setMetaInfo", - arguments: ["_user_nick", userName] // this.userInfoData.username], + arguments: ["_user_nick", userName], // this.userInfoData.username], }); aplus_queue.push({ action: "aplus.setMetaInfo", - arguments: ["_user_id", Userid] + arguments: ["_user_id", Userid], }); aplus_queue.push({ action: "aplus.setMetaInfo", - arguments: ["_hold", "START"] + arguments: ["_hold", "START"], }); }, setLocationAplus() { ZWJSBridge.onReady(() => { // console.log("初始化完成后,执行bridge方法"); ZWJSBridge.getUserType() - .then(result1 => { + .then((result1) => { // console.log("getUserType():" + JSON.stringify(result1)); // console.log("result1.userType:" + result1.userType); //经纬度 ZWJSBridge.getLocation() - .then(result2 => { + .then((result2) => { // console.log("getLocation():" + JSON.stringify(result2)); // console.log("result2.longitude:" + result2.longitude); // console.log("result2.latitude:" + result2.latitude); @@ -472,7 +470,7 @@ export default { action: "aplus.sendPV", arguments: [ { - is_auto: false + is_auto: false, }, { isMini: true, @@ -480,21 +478,41 @@ export default { miniAppName: "房屋征收", long: result2.longitude, lati: result2.latitude, - userType: result1.userType - } - ] + userType: result1.userType, + }, + ], }); }) - .catch(error => { + .catch((error) => { // console.log(error); }); }) - .catch(error => { + .catch((error) => { // console.log(error); }); }); - } - } + }, + scan() { + //扫一扫 + ZWJSBridge.scan({ type: "qrCode" }) + .then((data) => { + // data =>{"text" : "扫描到的内容"} + if (data.text.indexOf("http") > -1) { + window.location.replace(data.text); + } else { + this.$message({ + message: data.text, + duration: 3000, + type: "info", + center: true, + }); + } + }) + .catch((error) => { + console.log(error); + }); + }, + }, }; From 5c34dacb055def0d1b6a3ad36727b52f4595481e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=20=E8=8C=83?= Date: Fri, 29 Oct 2021 17:09:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=E4=BF=AE=E6=94=B9=E6=8B=A8=E6=89=93?= =?UTF-8?q?=E7=94=B5=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/App.vue | 35 +++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/FrontCode2/sunshine_levy/src/App.vue b/FrontCode2/sunshine_levy/src/App.vue index af340b6..0ab7996 100644 --- a/FrontCode2/sunshine_levy/src/App.vue +++ b/FrontCode2/sunshine_levy/src/App.vue @@ -2,21 +2,15 @@
-
- 进入老年模式 -
+
进入老年模式
为方便老年用户,可点击此按钮进入 老年模式 查询信息。
-
- 更大的字体,更多的贴心~ -
-
- 轻触屏幕关闭此指引 -
+
更大的字体,更多的贴心~
+
轻触屏幕关闭此指引
@@ -36,7 +30,11 @@

本服务由浙江政务服务网、宁波市住房保障和房屋征收管理中心提供

- 服务咨询热线: 0574-88086606 + 服务咨询热线: + 0574-88086606

退出老年模式 @@ -57,7 +55,7 @@ export default { mode: false, isLoading: true, - show: true + show: true, }; }, created() { @@ -90,8 +88,19 @@ export default { }, inputEvent() { localStorage.setItem("overlay", "flase"); - } - } + }, + callphone(phonenumber) { + ZWJSBridge.phoneCall({ + corpId: phonenumber, + }) + .then((result) => { + console.log(result); + }) + .catch((error) => { + console.log(error); + }); + }, + }, };