ChannelTipsDialog.vue
2.7 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<template>
<GLDialog
title="提示"
mode="mid"
:visible.sync="dialogVisible"
:hasFooter="false"
>
<template v-if="dialogVisible">
<div class="tips-box">
<img
class="pic"
:src="typeList[type].pic"
:style="typeList[type].picStyle"
>
<div class="info">
<div class="info-title">{{typeList[type].title}}</div>
<template v-for="(i,index) in typeList[type].desc">
<div
:key="index"
class="info-desc"
>
{{i}}
</div>
</template>
</div>
</div>
</template>
</GLDialog>
</template>
<script>
export default {
name: 'ChannelTipsDialog',
props: {
type: Number
},
data () {
return {
typeList: {
1: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-1.png',
title: '卡片名称',
desc: ['转发到群里的卡片样式的卡片名称和卡片缩略图均可自行更换'],
picStyle: 'width: 251px;height: 447px;'
},
2: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-1.png',
title: '卡片缩略图',
desc: ['转发到群里的卡片样式的卡片名称和卡片缩略图均可自行更换'],
picStyle: 'width: 251px;height: 447px;'
},
3: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-2.png',
title: '视频Toke',
desc: ['当微信号变成小程序的开发者,进入视频号点击转发按钮时可获取对应的视频Token'],
picStyle: 'width: 202px;height: 437.77px;'
},
4: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-3.png',
title: '授权手机号',
desc: ['授权手机号配置为开,则用户点击播放按钮后会弹出授权手机号控件!',
'授权手机号配置为关,则用户点击播放按钮直接进入视频号页面!'],
picStyle: 'width: 202px;height: 436.76px;'
}
},
dialogVisible: false
}
},
mounted () { },
methods: {
open () {
this.dialogVisible = true
},
handleClose () {
}
}
}
</script>
<style scoped lang='scss'>
.tips-box {
display: flex;
padding-bottom: 20px;
.pic {
flex-shrink: 0;
margin: 0 20px 0 64px;
}
.info {
&-title {
font-weight: 500;
font-size: 17px;
color: #333333;
margin-bottom: 16px;
}
&-desc {
max-width: 294px;
font-size: 14px;
color: #666666;
line-height: 20px;
margin-bottom: 16px;
}
}
}
</style>