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"
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="assessBox"
@@ -281,9 +284,9 @@ export default {
return {
data: {
policiesRegulationsLists: {
totalCount: 0
}
}
totalCount: 0,
},
},
// userInfoData: {} // 用户个人信息
};
},
@@ -291,9 +294,7 @@ export default {
this.onInit();
console.log("this", this);
},
mounted() {
this.setZwaplus(); // 埋点
},
mounted() {},
methods: {
onLoad() {},
onInit() {
@@ -303,25 +304,26 @@ export default {
dataType: "JSON",
type: "POST",
data: {
ticket: this.$route.query.ticket
ticket: this.$route.query.ticket,
},
appKey: "es4b8zmz+2001833218+dehllx", // 必须
onSuccess: data => {
onSuccess: (data) => {
console.log("data", data);
if (data.data && data.data.success == true) {
debugger;
this.data = data.data.data;
this.setZwUserAplus(this.data.idCard, this.data.userName);
} 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 => {
console.log(err, "err");
onFail: (err) => {
console.log("用户无数据,不展示");
},
onFail: err => {
console.log(err, "err");
}
});
//获取当前数据
// apis.getprjdata({ ticket: this.$route.query.ticket }).then((prjdata) => {
@@ -334,7 +336,7 @@ export default {
gotoProject(type) {
this.$router.push({
name: "projectSelect",
params: { type: type, ticket: this.$route.query.ticket }
params: { type: type, ticket: this.$route.query.ticket },
});
},
onLoadStatistic() {
@@ -346,30 +348,28 @@ export default {
pageJump(type) {
this.$router.push({
name: "policyInfo",
params: { type: type, ticket: this.$route.query.ticket }
params: { type: type, ticket: this.$route.query.ticket },
});
},
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"],
});
},
// 基础信息埋点配置
setZwaplus() {}
}
},
};
</script>