From a2c54cfcaf040709d258e33afee6e6e4a3c20872 Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Fri, 17 Sep 2021 16:37:07 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/views/index.vue | 67 ++++---- .../sunshine_levy/src/views/pdf/pdf.vue | 35 ++-- .../sunshine_levy/src/views/project/index.vue | 45 +++--- .../src/views/report/compensate.vue | 152 ------------------ .../src/views/report/evalute.vue | 44 ++--- 5 files changed, 103 insertions(+), 240 deletions(-) delete mode 100644 FrontCode2/sunshine_levy/src/views/report/compensate.vue diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index f92f984..d310fb6 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -53,7 +53,9 @@
+
+
{{ item.name }}
+
+
- +
@@ -126,15 +130,14 @@ /> 分户评估结果
-
+
评估报告编号: @@ -171,6 +174,7 @@
-->
+
+
{ + onSuccess: data => { console.log("首页数据", data); if (data.data && data.data.success == true) { this.data = data.data.data; @@ -328,16 +335,22 @@ export default { } else console.log("用户无数据,不展示"); } }, - onFail: (err) => { + onFail: err => { console.log("用户无数据,不展示"); - }, + } }); }, // 跳转项目详情 - gotoProject(type) { + gotoProject(type, id) { this.$router.push({ name: "projectSelect", - params: { type: type, ticket: this.$route.query.ticket }, + params: { + type: type, + ticket: this.$route.params.ticket + ? this.$route.params.ticket + : this.ticket, + prjId: id ? id : this.data.prjList[0].prjId + } }); }, // 加载项目数统计信息 @@ -357,37 +370,37 @@ export default { // 设置用户信息埋点 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(result1); //经纬度 ZWJSBridge.getLocation() - .then((result2) => { + .then(result2 => { console.log(result2); debugger; aplus_queue.push({ action: "aplus.sendPV", arguments: [ { - is_auto: false, + is_auto: false }, { isMini: true, @@ -395,20 +408,20 @@ 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); }); }); - }, - }, + } + } }; diff --git a/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue b/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue index 81f5be2..3c088be 100644 --- a/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue +++ b/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue @@ -1,7 +1,8 @@