index.vue
7.3 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<script setup>
import { reactive } from 'vue'
let $data = reactive({
dialogVisible: localStorage.serveDialogVisible !== 'false',
activeIndex: 0,
list: [
{
title: '开源超级服务包',
priceNow: '299',
priceOrigin: '499',
desc: '专属团队 极速响应',
img: new URL('./vip.png', import.meta.url).href,
},
{
title: '开源尊享服务包',
priceNow: '899',
priceOrigin: '1299',
desc: '快速部署 服务升级',
img: new URL('./svip.png', import.meta.url).href,
},
],
})
function close() {
localStorage.serveDialogVisible = $data.dialogVisible = false
}
defineExpose({
$data,
})
</script>
<template>
<transition name="el-fade-in-linear">
<div class="mask" v-show="$data.dialogVisible" @click.self="close">
<div class="serveDialog cc">
<div class="top">
<div class="top-desc">更轻便、更灵活、更专业</div>
<div class="top-title">LinkWeChat开源服务包正式上架</div>
<div class="top-promise">
“为了更好地建设开源社区,我们郑重承诺,所有服务包收入均用于LinkWeChat开源社区建设,包括但不限于升级服务器、内容宣发、社区活动等。”
</div>
<div class="top-author">——LinkWeCHat项目组</div>
</div>
<div class="main">
<div
v-for="(item, index) in $data.list"
:key="index"
:class="['card cp', index == 1 && 'svip', index == $data.activeIndex && 'active']"
@click="$data.activeIndex = index">
<div class="cardTitle">{{ item.title }}</div>
<div class="cardPrice mt5">
<span class="priceUnit">¥</span>
<span class="priceNow">{{ item.priceNow }}</span>
<span class="priceTime">/永久</span>
<span class="priceOrigin ml5">¥{{ item.priceOrigin }}</span>
</div>
<div class="cardDesc mt5">{{ item.desc }}</div>
</div>
<template v-for="(item, index) in $data.list" :key="index">
<img v-show="index == $data.activeIndex" class="mainImg" :src="item.img" alt="" />
</template>
<div class="bottom" ref="bottom" :style="{ '--color': $data.activeIndex == 0 ? '#07c160' : '#7e5d25' }">
<img class="qrcode" :src="lwConfig.QRCODE_CONTACT_US" alt="" />
<div>
<div>
<span class="desc">限时优惠 永久服务</span>
<span class="know">
购买须知
<el-popover placement="top-start" title="温馨提示:" trigger="hover">
<div>
<p>1、LinkWeChat开源服务包权益仅限本人/本企业使用;</p>
<p>2、因项目开源的特殊性,服务包一经购买,不支持退款;</p>
<p>3、若已经购买开源超级服务包,仅需补充差价即可升级为开源尊享服务包;</p>
<p>
4、若购买服务包用户/企业以任何不正当形式(包括但不限于剽窃、恶意诋毁等)扰乱LinkWeChat社区的正常运营,LinkWeChat有权收回其所有权益;
</p>
<p>
5、LinkWeChat根据项目实际情况,在法律允许的范围内,有权对本服务权益进行调整,相关调整会公布在LinkWeChat开源社区;
</p>
<p>
6、如因不可抗力因素(包括但不限于重大自然灾害事件、重大的社会非正常事件等)LinkWeChat有权决定暂定或终止相关服务权益。
</p>
</div>
<template #reference>
<el-icon-InfoFilled class="el-icon-InfoFilled"></el-icon-InfoFilled>
</template>
</el-popover>
</span>
</div>
<div class="update">扫码立即升级</div>
<div class="more">还有更多权益即将上线...</div>
</div>
</div>
</div>
</div>
</div>
</transition>
</template>
<style lang="scss" scoped>
.mask {
z-index: 2000;
}
.serveDialog {
width: 800px;
height: 668px;
background: url(./serveDialogBg.png) 100%;
.top {
width: 455px;
margin: 22px 72px;
.top-desc,
.top-promise {
font-size: 12px;
font-weight: 400;
color: #ffd192;
line-height: 18px;
}
.top-title {
font-size: 24px;
font-weight: 700;
color: #ffd192;
line-height: 32px;
margin: 16px 0;
text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.16);
}
.top-author {
font-size: 12px;
text-align: right;
color: var(--font-white);
}
}
.main {
position: absolute;
top: 200px;
padding: 0 40px;
}
// 卡片样式
.card {
position: relative;
display: inline-block;
overflow: hidden;
width: 268px;
height: 120px;
padding: var(--card-margin);
margin-right: var(--card-margin);
border-radius: var(--border-radius-big);
border: 1px solid var(--color);
background: var(--color-light-10);
&.active {
&::before {
content: ' ';
position: absolute;
display: inline-block;
right: -15px;
bottom: 0px;
width: 50px;
height: 20px;
background: var(--color);
transform: rotate(-45deg);
}
&::after {
content: ' ';
position: absolute;
display: inline-block;
border: 3px solid #fff;
border-radius: 1px;
width: 12px;
height: 7px;
border-top: 0;
border-right: 0;
transform: rotate(-45deg);
right: 5px;
bottom: 8px;
}
}
.cardTitle {
font-size: 18px;
font-weight: 500;
line-height: 26px;
}
.priceUnit,
.priceTime {
font-size: 16px;
font-weight: 400;
color: var(--color);
}
.priceNow {
font-size: 32px;
font-weight: 700;
color: var(--color);
}
.priceOrigin,
.cardDesc {
font-size: 12px;
line-height: 22px;
font-weight: 400;
color: var(--font-black-6);
}
.priceOrigin {
line-height: 1;
text-decoration: line-through;
}
//
&.svip {
border: 1px solid #d6b885;
background: #fff5e1;
.priceUnit,
.priceNow,
.priceTime {
color: #7e5d25;
}
&.active {
&::before {
background: #7e5d25;
}
}
}
}
.mainImg {
width: 100%;
margin: var(--card-margin) 0;
}
.bottom {
display: flex;
align-items: center;
padding: 16px 24px;
background: var(--bg-black-11);
border-radius: var(--border-radius-big);
.qrcode {
width: 80px;
height: 80px;
margin-right: 16px;
padding: 1px;
border: 1.5px solid var(--color);
}
.desc {
font-size: 18px;
font-weight: 700;
color: var(--color);
line-height: 27px;
}
.more {
color: var(--color);
font-size: 12px;
}
.know,
.update {
font-size: 12px;
line-height: 22px;
font-weight: 400;
color: var(--font-black-6);
}
}
}
</style>