去除注释

This commit is contained in:
路 范
2021-12-03 11:05:35 +08:00
parent 897b5b6f6c
commit 678d23ba66

View File

@@ -219,106 +219,12 @@ export default {
userName: "加载中...", userName: "加载中...",
policiesRegulationsLists: { policiesRegulationsLists: {
totalCount: 0, totalCount: 0,
list: [ list: [],
// { },
// title: "无数据", },
// publicTime: "无数据",
// area: "无数据"
// },
// { title: "无数据", publicTime: "无数据", area: "无数据" },
// { title: "无数据", publicTime: "无数据", area: "无数据" }
]
}
// prjList: [{}, {}]
// prjList: [
// {
// name: "无数据",
// currentState: "无数据",
// area: "无数据",
// zsbm: "无数据",
// year: "无数据",
// zsjdh: "无数据",
// fhpgList: [
// {
// assessmentNo: "无数据",
// houseAddress: "无数据",
// countValue: "无数据"
// },
// {
// assessmentNo: "无数据",
// houseAddress: "无数据",
// countValue: "无数据"
// }
// ],
// bcxyList: [
// {
// xyNo: "无数据",
// houseAddress: "无数据",
// switchProductionWay: "无数据",
// summationShouldCompensateMoney: "无数据"
// },
// {
// xyNo: "无数据",
// houseAddress: "无数据",
// switchProductionWay: "无数据",
// summationShouldCompensateMoney: "无数据"
// }
// ]
// },
// {
// name: "无数据",
// currentState: "无数据",
// area: "无数据",
// zsbm: "无数据",
// year: "无数据",
// zsjdh: "无数据",
// fhpgList: [
// {
// assessmentNo: "无数据",
// houseAddress: "无数据",
// countValue: "无数据"
// }
// ],
// bcxyList: [
// {
// xyNo: "无数据",
// houseAddress: "无数据",
// switchProductionWay: "无数据",
// summationShouldCompensateMoney: "无数据"
// }
// ]
// }
// ]
}
}; };
}, },
created() { created() {
// SetTicket(this.$route.query.ticket);
// if (!this.$route.query.ticket) {
// // //this.$router.push('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs');
// // ZWJSBridge.openLink({
// // url: "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs",
// // })
// // .then((result) => {
// // console.log('1130-1'+result)
// // window.parent.location.reload();
// // ZWJSBridge.close();
// // })
// // .catch((error) => {
// // console.log(error);
// // });
// // ZWJSBridge.close()
// // .then((result) => {
// // window.location.replace(
// // "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs&goto=https://mapi.zjzwfw.gov.cn/web/mgop/gov-open/zj/2001833218/reserved/index.html"
// // );
// // })
// // .catch((error) => {
// // console.log(error);
// // });
// } else {
// this.onInit();
// }
if (!sessionStorage.getItem("homeData")) { if (!sessionStorage.getItem("homeData")) {
this.onInit(); this.onInit();
} else { } else {
@@ -339,13 +245,13 @@ export default {
//debugger; //debugger;
if (from.name == "final" && to.name == "index") { if (from.name == "final" && to.name == "index") {
ZWJSBridge.close() ZWJSBridge.close()
.then(result => { .then((result) => {
console.log( console.log(
"1201-index页面的close回调3--form-to:" + from.name + "->" + to.name "1201-index页面的close回调3--form-to:" + from.name + "->" + to.name
); );
console.log(result); console.log(result);
}) })
.catch(error => { .catch((error) => {
console.log( console.log(
"1201-index页面的close回调异常4--form-to:" + "1201-index页面的close回调异常4--form-to:" +
from.name + from.name +
@@ -373,10 +279,10 @@ export default {
type: "POST", type: "POST",
data: { data: {
ticket: ticket:
this.$route.query.ticket || window.sessionStorage.getItem("ticket") this.$route.query.ticket || window.sessionStorage.getItem("ticket"),
}, },
appKey: "es4b8zmz+2001833218+dehllx", appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => { onSuccess: (data) => {
this.loading = false; this.loading = false;
window.sessionStorage.setItem("homeData", JSON.stringify(data)); window.sessionStorage.setItem("homeData", JSON.stringify(data));
if (data.data.success) { if (data.data.success) {
@@ -391,7 +297,7 @@ export default {
message: "登录超时,请重新登录", message: "登录超时,请重新登录",
duration: 3000, duration: 3000,
type: "info", type: "info",
center: true center: true,
}); });
setTimeout(() => { setTimeout(() => {
window.location.replace( window.location.replace(
@@ -403,20 +309,20 @@ export default {
message: "请求出错", message: "请求出错",
duration: 3000, duration: 3000,
type: "error", type: "error",
center: true center: true,
}); });
} }
} }
}, },
onFail: err => { onFail: (err) => {
this.loading = false; this.loading = false;
this.$notify({ this.$notify({
title: "错误", title: "错误",
message: "请求失败", message: "请求失败",
duration: 3000, duration: 3000,
type: "error" type: "error",
}); });
} },
}); });
}, },
toOlderMode() { toOlderMode() {
@@ -446,8 +352,8 @@ export default {
this.$router.push({ this.$router.push({
name: "projectSelect", name: "projectSelect",
params: { params: {
type: type type: type,
} },
}); });
}, },
// 直接跳转分户评估结果页面 // 直接跳转分户评估结果页面
@@ -458,8 +364,8 @@ export default {
name: "evaluatePage", name: "evaluatePage",
params: { params: {
fhpgId: id, fhpgId: id,
type type,
} },
}); });
}, },
// 直接跳转协议结果pdf // 直接跳转协议结果pdf
@@ -469,8 +375,8 @@ export default {
this.$router.push({ this.$router.push({
name: "showPdf", name: "showPdf",
params: { params: {
id id,
} },
}); });
}, },
// 加载项目数统计信息 // 加载项目数统计信息
@@ -485,38 +391,38 @@ export default {
$("#app").removeClass("old_app3"); $("#app").removeClass("old_app3");
this.$router.push({ this.$router.push({
name: "policyInfo", name: "policyInfo",
params: { id } params: { id },
}); });
}, },
setZwUserAplus(Userid, userName) { setZwUserAplus(Userid, userName) {
// 设置用户信息埋点 // 设置用户信息埋点
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_hold", "BLOCK"] arguments: ["_hold", "BLOCK"],
}); });
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_user_nick", userName] // this.userInfoData.username], arguments: ["_user_nick", userName], // this.userInfoData.username],
}); });
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_user_id", Userid] arguments: ["_user_id", Userid],
}); });
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_hold", "START"] arguments: ["_hold", "START"],
}); });
}, },
setLocationAplus() { setLocationAplus() {
ZWJSBridge.onReady(() => { ZWJSBridge.onReady(() => {
// console.log("初始化完成后执行bridge方法"); // console.log("初始化完成后执行bridge方法");
ZWJSBridge.getUserType() ZWJSBridge.getUserType()
.then(result1 => { .then((result1) => {
// console.log("getUserType():" + JSON.stringify(result1)); // console.log("getUserType():" + JSON.stringify(result1));
// console.log("result1.userType:" + result1.userType); // console.log("result1.userType:" + result1.userType);
//经纬度 //经纬度
ZWJSBridge.getLocation() ZWJSBridge.getLocation()
.then(result2 => { .then((result2) => {
// console.log("getLocation():" + JSON.stringify(result2)); // console.log("getLocation():" + JSON.stringify(result2));
// console.log("result2.longitude:" + result2.longitude); // console.log("result2.longitude:" + result2.longitude);
// console.log("result2.latitude:" + result2.latitude); // console.log("result2.latitude:" + result2.latitude);
@@ -524,7 +430,7 @@ export default {
action: "aplus.sendPV", action: "aplus.sendPV",
arguments: [ arguments: [
{ {
is_auto: false is_auto: false,
}, },
{ {
isMini: true, isMini: true,
@@ -532,16 +438,16 @@ export default {
miniAppName: "房屋征收", miniAppName: "房屋征收",
long: result2.longitude, long: result2.longitude,
lati: result2.latitude, lati: result2.latitude,
userType: result1.userType userType: result1.userType,
} },
] ],
}); });
}) })
.catch(error => { .catch((error) => {
// console.log(error); // console.log(error);
}); });
}) })
.catch(error => { .catch((error) => {
// console.log(error); // console.log(error);
}); });
}); });
@@ -550,7 +456,7 @@ export default {
//this.$router.push("http://localhost:8080/#/"); //this.$router.push("http://localhost:8080/#/");
//扫一扫 //扫一扫
ZWJSBridge.scan({ type: "qrCode" }) ZWJSBridge.scan({ type: "qrCode" })
.then(data => { .then((data) => {
// data =>{"text" : "扫描到的内容"} // data =>{"text" : "扫描到的内容"}
if (data.text.indexOf("http") > -1) { if (data.text.indexOf("http") > -1) {
window.location.replace(data.text); window.location.replace(data.text);
@@ -559,11 +465,11 @@ export default {
message: data.text, message: data.text,
duration: 3000, duration: 3000,
type: "info", type: "info",
center: true center: true,
}); });
} }
}) })
.catch(error => { .catch((error) => {
console.log(error); console.log(error);
}); });
}, },
@@ -573,7 +479,7 @@ export default {
*/ */
setDisplay() { setDisplay() {
$(".absolute").click(e => { $(".absolute").click((e) => {
if ( if (
$(e.target.parentNode.parentNode) $(e.target.parentNode.parentNode)
.find(".projectCenter") .find(".projectCenter")
@@ -583,21 +489,17 @@ export default {
.find(".projectCenter") .find(".projectCenter")
.css("display", "block"); .css("display", "block");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
.find("i")
.css("transform", "rotate(45deg)");
} else { } else {
$(e.target.parentNode.parentNode) $(e.target.parentNode.parentNode)
.find(".projectCenter") .find(".projectCenter")
.css("display", "none"); .css("display", "none");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
.find("i")
.css("transform", "rotate(-45deg)");
} }
}); });
$(".absolute0").click(e => { $(".absolute0").click((e) => {
if ( if (
$(e.target.parentNode.parentNode.parentNode) $(e.target.parentNode.parentNode.parentNode)
.find(".projectCenter") .find(".projectCenter")
@@ -607,21 +509,17 @@ export default {
.find(".projectCenter") .find(".projectCenter")
.css("display", "block"); .css("display", "block");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
.find("i")
.css("transform", "rotate(45deg)");
} else { } else {
$(e.target.parentNode.parentNode.parentNode) $(e.target.parentNode.parentNode.parentNode)
.find(".projectCenter") .find(".projectCenter")
.css("display", "none"); .css("display", "none");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
.find("i")
.css("transform", "rotate(-45deg)");
} }
}); });
$(".absolute1").click(e => { $(".absolute1").click((e) => {
if ( if (
$(e.target.parentNode.parentNode) $(e.target.parentNode.parentNode)
.find(".assessCenter1") .find(".assessCenter1")
@@ -631,21 +529,17 @@ export default {
.find(".assessCenter1") .find(".assessCenter1")
.css("display", "block"); .css("display", "block");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
.find("i")
.css("transform", "rotate(45deg)");
} else { } else {
$(e.target.parentNode.parentNode) $(e.target.parentNode.parentNode)
.find(".assessCenter1") .find(".assessCenter1")
.css("display", "none"); .css("display", "none");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
.find("i")
.css("transform", "rotate(-45deg)");
} }
}); });
$(".absolute2").click(e => { $(".absolute2").click((e) => {
if ( if (
$(e.target.parentNode.parentNode) $(e.target.parentNode.parentNode)
.find(".assessCenter2") .find(".assessCenter2")
@@ -655,21 +549,17 @@ export default {
.find(".assessCenter2") .find(".assessCenter2")
.css("display", "block"); .css("display", "block");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
.find("i")
.css("transform", "rotate(45deg)");
} else { } else {
$(e.target.parentNode.parentNode) $(e.target.parentNode.parentNode)
.find(".assessCenter2") .find(".assessCenter2")
.css("display", "none"); .css("display", "none");
$(e.target.parentNode) $(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
.find("i")
.css("transform", "rotate(-45deg)");
} }
}); });
} },
} },
}; };
</script> </script>