Compare commits

...

2 Commits

Author SHA1 Message Date
路 范
4c2e757380 Merge branch 'master' of http://118.178.224.202:3000/ewide/zsxt_nbzs_h5 2021-09-15 18:05:16 +08:00
路 范
953f5c7e16 update 重新登录逻辑 2021-09-15 17:59:06 +08:00

View File

@@ -228,7 +228,10 @@
class="protocolList" class="protocolList"
v-for="(item, i) in data.policiesRegulationsLists.list" v-for="(item, i) in data.policiesRegulationsLists.list"
> >
<div class="protocolLine" v-if="i != list.length - 1"> <div
class="protocolLine"
v-if="i != data.policiesRegulationsLists.list.length - 1"
>
<div class="font14 protocolTitle">{{ item.title }}</div> <div class="font14 protocolTitle">{{ item.title }}</div>
<div <div
class="assessBox" class="assessBox"
@@ -281,9 +284,9 @@ export default {
return { return {
data: { data: {
policiesRegulationsLists: { policiesRegulationsLists: {
totalCount: 0 totalCount: 0,
} },
} },
// userInfoData: {} // 用户个人信息 // userInfoData: {} // 用户个人信息
}; };
}, },
@@ -291,9 +294,7 @@ export default {
this.onInit(); this.onInit();
console.log("this", this); console.log("this", this);
}, },
mounted() { mounted() {},
this.setZwaplus(); // 埋点
},
methods: { methods: {
onLoad() {}, onLoad() {},
onInit() { onInit() {
@@ -303,25 +304,26 @@ export default {
dataType: "JSON", dataType: "JSON",
type: "POST", type: "POST",
data: { data: {
ticket: this.$route.query.ticket ticket: this.$route.query.ticket,
}, },
appKey: "es4b8zmz+2001833218+dehllx", // 必须 appKey: "es4b8zmz+2001833218+dehllx", // 必须
onSuccess: data => { onSuccess: (data) => {
console.log("data", data); console.log("data", data);
if (data.data && data.data.success == true) { if (data.data && data.data.success == true) {
debugger;
this.data = data.data.data; this.data = data.data.data;
this.setZwUserAplus(this.data.idCard, this.data.userName); this.setZwUserAplus(this.data.idCard, this.data.userName);
} else { } else {
console.log("用户无数据,不展示"); var errorCodes = ["6001", "6501"];
if (errorCodes.indexOf(data.data.bizCode) > -1) {
window.location.replace(
"https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs"
);
} else console.log("用户无数据,不展示");
} }
}, },
onFail: err => { onFail: (err) => {
console.log(err, "err"); console.log("用户无数据,不展示");
}, },
onFail: err => {
console.log(err, "err");
}
}); });
//获取当前数据 //获取当前数据
// apis.getprjdata({ ticket: this.$route.query.ticket }).then((prjdata) => { // apis.getprjdata({ ticket: this.$route.query.ticket }).then((prjdata) => {
@@ -334,7 +336,7 @@ export default {
gotoProject(type) { gotoProject(type) {
this.$router.push({ this.$router.push({
name: "projectSelect", name: "projectSelect",
params: { type: type, ticket: this.$route.query.ticket } params: { type: type, ticket: this.$route.query.ticket },
}); });
}, },
onLoadStatistic() { onLoadStatistic() {
@@ -346,30 +348,28 @@ export default {
pageJump(type) { pageJump(type) {
this.$router.push({ this.$router.push({
name: "policyInfo", name: "policyInfo",
params: { type: type, ticket: this.$route.query.ticket } params: { type: type, ticket: this.$route.query.ticket },
}); });
}, },
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"],
}); });
}, },
// 基础信息埋点配置 },
setZwaplus() {}
}
}; };
</script> </script>