redEnvelopesGuide.vue
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template></template>
<script>
export default {
methods: {
popstate() {
this.$msgbox.close()
},
},
created() {
window.addEventListener('popstate', this.popstate, false)
},
// destroyed() {
// window.removeEventListener("popstate", this.popstate, false);
// },
mounted() {
let pageroute = this.$route.query.page
if (pageroute === 'weAppParam') {
this.$alert(
`如需使用${lwConfig.SYSTEM_NAME}红包功能,请先前往<管理中心-授权管理-企业授权>配置公众号参数与微信支付参数。否则无法使用红包功能。`,
'提示',
{
confirmButtonText: '确定',
showClose: false,
callback: (action) => {
sessionStorage.setItem('currentActive', '4')
this.$router.push({
name: window.lwConfig.WORKWEIXINPAGENAME,
})
},
}
)
} else if (pageroute === 'chatParam') {
this.$alert(
`如需使用${lwConfig.SYSTEM_NAME}会话存档功能,请先前往<管理中心-授权管理-企业授权>配置“会话存档”参数。否则无法使用【会话存档】功能。`,
'提示',
{
confirmButtonText: '确定',
showClose: false,
callback: (action) => {
sessionStorage.setItem('currentActive', '3')
this.$router.push({
name: window.lwConfig.WORKWEIXINPAGENAME,
})
},
}
)
}
},
}
</script>
<style lang="scss" scoped>
.red-envelopes-guide {
img {
width: 100%;
}
}
</style>