去除注释

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: "加载中...",
policiesRegulationsLists: {
totalCount: 0,
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: "无数据"
// }
// ]
// }
// ]
}
list: [],
},
},
};
},
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")) {
this.onInit();
} else {
@@ -339,13 +245,13 @@ export default {
//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 +
@@ -373,10 +279,10 @@ 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) => {
this.loading = false;
window.sessionStorage.setItem("homeData", JSON.stringify(data));
if (data.data.success) {
@@ -391,7 +297,7 @@ export default {
message: "登录超时,请重新登录",
duration: 3000,
type: "info",
center: true
center: true,
});
setTimeout(() => {
window.location.replace(
@@ -403,20 +309,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() {
@@ -446,8 +352,8 @@ export default {
this.$router.push({
name: "projectSelect",
params: {
type: type
}
type: type,
},
});
},
// 直接跳转分户评估结果页面
@@ -458,8 +364,8 @@ export default {
name: "evaluatePage",
params: {
fhpgId: id,
type
}
type,
},
});
},
// 直接跳转协议结果pdf
@@ -469,8 +375,8 @@ export default {
this.$router.push({
name: "showPdf",
params: {
id
}
id,
},
});
},
// 加载项目数统计信息
@@ -485,38 +391,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);
@@ -524,7 +430,7 @@ export default {
action: "aplus.sendPV",
arguments: [
{
is_auto: false
is_auto: false,
},
{
isMini: true,
@@ -532,16 +438,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);
});
});
@@ -550,7 +456,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);
@@ -559,11 +465,11 @@ export default {
message: data.text,
duration: 3000,
type: "info",
center: true
center: true,
});
}
})
.catch(error => {
.catch((error) => {
console.log(error);
});
},
@@ -573,7 +479,7 @@ export default {
*/
setDisplay() {
$(".absolute").click(e => {
$(".absolute").click((e) => {
if (
$(e.target.parentNode.parentNode)
.find(".projectCenter")
@@ -583,21 +489,17 @@ export default {
.find(".projectCenter")
.css("display", "block");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
} else {
$(e.target.parentNode.parentNode)
.find(".projectCenter")
.css("display", "none");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(-45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
}
});
$(".absolute0").click(e => {
$(".absolute0").click((e) => {
if (
$(e.target.parentNode.parentNode.parentNode)
.find(".projectCenter")
@@ -607,21 +509,17 @@ export default {
.find(".projectCenter")
.css("display", "block");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
} else {
$(e.target.parentNode.parentNode.parentNode)
.find(".projectCenter")
.css("display", "none");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(-45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
}
});
$(".absolute1").click(e => {
$(".absolute1").click((e) => {
if (
$(e.target.parentNode.parentNode)
.find(".assessCenter1")
@@ -631,21 +529,17 @@ export default {
.find(".assessCenter1")
.css("display", "block");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
} else {
$(e.target.parentNode.parentNode)
.find(".assessCenter1")
.css("display", "none");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(-45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
}
});
$(".absolute2").click(e => {
$(".absolute2").click((e) => {
if (
$(e.target.parentNode.parentNode)
.find(".assessCenter2")
@@ -655,21 +549,17 @@ export default {
.find(".assessCenter2")
.css("display", "block");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(45deg)");
} else {
$(e.target.parentNode.parentNode)
.find(".assessCenter2")
.css("display", "none");
$(e.target.parentNode)
.find("i")
.css("transform", "rotate(-45deg)");
$(e.target.parentNode).find("i").css("transform", "rotate(-45deg)");
}
});
}
}
},
},
};
</script>