diff --git a/FrontCode2/sunshine_levy/index.html b/FrontCode2/sunshine_levy/index.html index 23bb6a7..76b54ea 100644 --- a/FrontCode2/sunshine_levy/index.html +++ b/FrontCode2/sunshine_levy/index.html @@ -7,23 +7,28 @@ content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0" />
服务咨询热线: - 0574-880866060574-89180948
diff --git a/FrontCode2/sunshine_levy/src/router/index.js b/FrontCode2/sunshine_levy/src/router/index.js index ce73cd8..f3a8663 100644 --- a/FrontCode2/sunshine_levy/src/router/index.js +++ b/FrontCode2/sunshine_levy/src/router/index.js @@ -68,10 +68,16 @@ const router = new Router({ component: () => import("../views") }, { - path: "/aaa", + path: "/test", name: "test", - meta: { index: 9, title: "宁波房屋征收" }, + meta: { index: 10, title: "宁波房屋征收" }, component: () => import("../views/test") + }, + { + path: "/final2", + name: "final2", + meta: { index: 11, title: "宁波房屋征收" }, + component: () => import("../views/transit/final2") } ] }); diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index fa8568d..02787b1 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -223,16 +223,13 @@ export default { userName: "加载中...", policiesRegulationsLists: { totalCount: 0, - list: [] - } - } + list: [], + }, + }, }; }, created() { - // var testdata = - // '{"data":{ "success": true, "code": 200, "bizCode": null, "message": "请求成功", "data": { "userName": "周子俊", "idCard": "330226198811175590", "prjList": [ { "prjId": "e85a13ef-431c-46a5-85cd-9dd1b4f50fc6", "area": "海曙区", "name": "测试项目1", "areaID": "90517084-d213-412d-9cbf-f82c7034aeed", "zsbm": "宁波市海曙区人民政府房屋征收办公室", "year": 2020.0, "zsjdh": "海政[2020]1号", "currentState": "补偿协议签订阶段", "createRecordTime": "2019/12/25 0:00:00", "fhpgList": [ { "id": "b5d9b892-f476-489d-8156-47d06b2dd9b6", "dcbId": "26f64339-1b43-4155-b442-872642ca3ed6", "prjId": "e85a13ef-431c-46a5-85cd-9dd1b4f50fc6", "assessmentNo": "0005", "houseAddress": "测试房屋坐落地址2", "countValue": "1001300.00", "createTime": "2021/12/2 13:55:35", "createUserName": "周子俊", "type": "1" } ], "bcxyList": [ { "id": "b02f32b4-fa82-44c2-b407-614612c65534", "dcbId": "26f64339-1b43-4155-b442-872642ca3ed6", "prjId": "e85a13ef-431c-46a5-85cd-9dd1b4f50fc6", "xyNo": "海政20201-0005-1", "houseAddress": "测试房屋坐落地址2", "summationShouldCompensateMoney": "11.00", "switchProductionWay": "货币补偿", "countValue": "1001300.00", "signTime": "2021/11/30 13:56:26", "type": "1" } ], "status": 2 } ],"policiesRegulationsLists":{"totalCount": 8,"list": [{"id": "eeb58add-13f8-4c5b-a905-3a242faae4bd","title": "宁波市国有土地上房屋征收补偿、补助、奖励规定","contents":"","publicTime": "2021-06-25","area": "全大市"}]}}, "extras": null, "timestamp": 1638429929492 }}'; - - // sessionStorage.setItem("homeData", testdata); + console.log("1201-我是index的created的1"); if (!sessionStorage.getItem("homeData")) { this.onInit(); } else { @@ -248,18 +245,19 @@ export default { } else { $("#app").addClass("old_app3"); } + console.log("1201-我是index的created的2"); }, beforeRouteLeave(to, from, next) { //debugger; if (from.name == "final" && to.name == "index") { ZWJSBridge.close() - .then(result => { + .then((result) => { console.log( "1201-index页面的close回调3--form-to:" + from.name + "->" + to.name ); console.log(result); }) - .catch(error => { + .catch((error) => { console.log( "1201-index页面的close回调异常4--form-to:" + from.name + @@ -271,15 +269,18 @@ export default { } else next(); }, mounted() { + console.log("1201-我是index的mounted的3"); if (sessionStorage.getItem("mode") == "older") { $(".container").addClass("old_container"); } //this.setDisplay(); + console.log("1201-我是index的mounted的4"); }, methods: { // 获取数据 onInit() { + console.log("1201-我是index的onInit的5"); mgop({ api: "mgop.kykj.houseexpropriat.getprjlist", host: "https://mapi.zjzwfw.gov.cn/", @@ -287,10 +288,11 @@ export default { type: "POST", data: { ticket: - this.$route.query.ticket || window.sessionStorage.getItem("ticket") + this.$route.query.ticket || window.sessionStorage.getItem("ticket"), }, appKey: "es4b8zmz+2001833218+dehllx", - onSuccess: data => { + onSuccess: (data) => { + console.log("1201-我是index的onInit的6"); this.loading = false; window.sessionStorage.setItem("homeData", JSON.stringify(data)); @@ -306,7 +308,7 @@ export default { message: "登录超时,请重新登录", duration: 3000, type: "info", - center: true + center: true, }); setTimeout(() => { window.location.replace( @@ -318,20 +320,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() { @@ -361,8 +363,8 @@ export default { this.$router.push({ name: "projectSelect", params: { - type: type - } + type: type, + }, }); }, // 直接跳转分户评估结果页面 @@ -373,8 +375,8 @@ export default { name: "evaluatePage", params: { fhpgId: id, - type - } + type, + }, }); }, // 直接跳转协议结果pdf @@ -384,8 +386,8 @@ export default { this.$router.push({ name: "reportAgreement", params: { - prjId: id - } + prjId: id, + }, }); }, // 加载项目数统计信息 @@ -400,38 +402,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); @@ -439,7 +441,7 @@ export default { action: "aplus.sendPV", arguments: [ { - is_auto: false + is_auto: false, }, { isMini: true, @@ -447,16 +449,16 @@ 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); }); }); @@ -465,7 +467,7 @@ export default { //this.$router.push("http://localhost:8080/#/"); //扫一扫 ZWJSBridge.scan({ type: "qrCode" }) - .then(data => { + .then((data) => { // data =>{"text" : "扫描到的内容"} if (data.text.indexOf("http") > -1) { window.location.replace(data.text); @@ -474,11 +476,11 @@ export default { message: data.text, duration: 3000, type: "info", - center: true + center: true, }); } }) - .catch(error => { + .catch((error) => { console.log(error); }); }, @@ -573,8 +575,8 @@ export default { .find("i") .css("transform", "rotate(-45deg)"); } - } - } + }, + }, }; @@ -589,7 +591,7 @@ export default { } // 最上面盒子 .topBox { - background: url(../assets/img/bg.png) no-repeat; + background: url(~@/assets/img/bg.png) no-repeat; background-size: 100% 96%; .olderVersion { display: flex; @@ -676,7 +678,7 @@ export default { align-items: center; justify-content: space-between; height: 41px; - background: url(../assets/img/project_bg.png) no-repeat 0 -2px/101% 120%; + background: url(~@/assets/img/project_bg.png) no-repeat 0 -2px/101% 120%; position: relative; > :nth-child(1) { display: flex; @@ -1009,7 +1011,7 @@ export default { height: 41px; padding: unset 0; width: 100%; - background: url(../assets/img/project_bg.png); + background: url(~@/assets/img/project_bg.png); background-position: 0 -2px; background-size: 100% 120%; } diff --git a/FrontCode2/sunshine_levy/src/views/test.vue b/FrontCode2/sunshine_levy/src/views/test.vue index 58e4a92..02787b1 100644 --- a/FrontCode2/sunshine_levy/src/views/test.vue +++ b/FrontCode2/sunshine_levy/src/views/test.vue @@ -1,9 +1,5 @@
+ 被征收人姓名:{{ data.userName }}
+
+ 扫一扫
+
+ 查评估报告
+
+ 查补偿协议
+
+
+
+ 项目所在区域:
+
+ 征收部门:
+
+ 所属年份:
+
+ 征收决定号:
+