AppPreview.vue
3.6 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<template>
<div style="display: flex;">
<div class="preview">
<div class="title">LinkWeChat</div>
<div class="content">
<div class="item">
<div class="avatar222"><img src="@/assets/drainageCode/header.png" /></div>
<div class="bg_con">
【短链推广】
<p style="margin-top: 10px;">您有一条新的短链推广任务,请打开链接,进入任务页,分享短链内容给客户。</p>
<div style="margin-top: 10px;">
<a class="self_a">{{ title }}</a>
</div>
</div>
</div>
</div>
</div>
<div class="preview" style="margin-left: 20px;">
<div class="title">{{ title }}</div>
<div class="content">
<div style="width: 80%; height: 380px; margin: 20px auto;">
<template v-if="!value">
<div class="code_content">
<img class="code_img" src="@/assets/drainageCode/code.png" alt="" />
</div>
<!-- <div class="sub-des">长按识别二维码添加好友</div> -->
</template>
<template v-else>
<img style="width: 100%;" v-if="value" :src="value" alt="" />
</template>
</div>
<div style="width: 80%; margin: 10px auto;">
<el-button style="width: 100%;" type="primary"> 分享给客户</el-button>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'short-link-preview-type-4',
components: {},
props: {
name: {
type: String,
default: '短链推广'
},
title: {
type: String,
default: ''
},
value: {
type: String,
default: ''
}
},
watch: {
value(val) {
this.$forceUpdate()
}
},
data() {
return {
list: []
}
},
created() {},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.self_a {
color: #07c160;
text-decoration: underline;
&:hover {
opacity: 0.8;
}
}
.bg_con {
padding: 10px 20px;
background-color: #f2eeee;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
color: #191919;
}
.preview {
margin: 0 auto;
position: relative;
width: 300px;
height: 640px;
background: url(../../../../assets/drainageCode/preview-bg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
.title {
position: absolute;
top: 37px;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
font-weight: 400;
color: #333333;
}
.content {
// text-align: center;
position: absolute;
height: 545px;
width: 280px;
overflow-y: auto;
top: 70px;
left: 50%;
transform: translateX(-50%);
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
.tip {
font-size: 12px;
margin-top: 30px;
text-align: center;
}
.code_content {
margin-top: 100px;
text-align: center;
.code_img {
height: 180px;
width: 180px;
margin: 10px auto;
}
}
.item {
font-size: 12px;
font-weight: 400;
color: #666666;
display: flex;
margin-top: 20px;
padding: 20px;
&:first-child {
margin-top: 0;
}
.avatar222 {
// align-self: center;
margin-right: 5px;
}
}
}
}
.sub-des {
text-align: center;
font-size: 12px;
font-weight: 400;
color: #999999;
}
</style>