index.vue
1.89 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!--
* @Description:
* @Author: huyue
* @Date: 2022-05-06 11:28:02
* @LastEditors: huyue
* @LastEditTime: 2022-07-21 16:21:02
-->
<template>
<div class="scrm-wechat-main">
<wx-system v-if="corpAuthModel === 0"></wx-system>
<wx-user v-if="corpAuthModel === 3"></wx-user>
<div
class="wechat-qrcode-panel"
v-if="corpAuthModel === null"
:style="{
height: bHeight + 'px'
}"
>
<div class="config-box-qrcode">
<div class="config-use-desc">请联系平台运营配置企微接入模式</div>
<div class="config-use-qrcode">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png" alt="" />
</div>
<div class="config-use-desc">联系电话:18824231191</div>
</div>
</div>
</div>
</template>
<script>
import wxSystem from './components/wxSystem'
import wxUser from './components/wxUser'
export default {
name: 'enterpriseWechat',
components: {
wxSystem,
wxUser
},
data() {
return {
corpAuthModel: '',
bHeight: 500
}
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.bHeight = clientHeight - 80
this.$apis.ww.getStatus({}).then(res => {
this.corpAuthModel = res.corpAuthModel
if (this.corpAuthModel === null) {
this.$alert('请联系平台运营配置企微接入模式', '提示', {
confirmButtonText: '确定',
type: 'info',
customClass: 'gl-message-box'
})
}
})
}
}
</script>
<style lang="scss" scoped>
.wechat-qrcode-panel {
width: 100%;
background: #fff;
height: calc(100% - 100px);
display: flex;
justify-content: center;
align-items: center;
.config-box-qrcode {
width: 300px;
text-align: center;
.config-use-qrcode {
width: 200px;
height: 200px;
text-align: center;
margin: 0 auto;
}
}
}
</style>