Compare commits
2 Commits
86b8d5246f
...
4c2e757380
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c2e757380 | ||
|
|
953f5c7e16 |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user