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