Skip to content

Commit ca795a4

Browse files
committed
fix: pricing页面添加QRCODE
1 parent 7a727bb commit ca795a4

File tree

3 files changed

+60
-502
lines changed

3 files changed

+60
-502
lines changed

docs/.vuepress/components/Pricing.vue

Lines changed: 58 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<script lang="ts" setup>
2-
import { NButton, NCard, NGrid, NGridItem, NH1, NIcon, NSpace, NText } from "naive-ui";
2+
import { NButton, NCard, NGrid, NGridItem, NH1, NIcon, NSpace, NText, NModal } from "naive-ui";
33
import Check from './icon/Check.vue'
4+
import { ref } from 'vue'
5+
6+
const showContactModal = ref(false)
7+
8+
const qrCode = ref('https://oss.hutool.cn/hutool/kefu/m%20p.jpg?Content-Disposition=attachment%3B%20filename%3D%22kefu%2Fm%20p.jpg%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20250515%2F%2Fs3%2Faws4_request&X-Amz-Date=20250515T064327Z&X-Amz-Expires=432000&X-Amz-SignedHeaders=host&X-Amz-Signature=3d7c19f17b395a37f19b240264e81474d64f2588e820c5c98c6ce6db5467829e')
9+
410
let data = {
511
pricing: [
612
{
@@ -17,13 +23,13 @@ let data = {
1723
btns: [{
1824
text: 'Download',
1925
link: 'https://github.com/alist-org/alist/releases'
20-
},
21-
{
22-
text: "Sponsor",
23-
link: "/guide/sponsor.html",
24-
secondary: false,
25-
type: "error"
2626
}
27+
// ,{
28+
// text: "Sponsor",
29+
// link: "/guide/sponsor.html",
30+
// secondary: false,
31+
// type: "error"
32+
// }
2733
]
2834
},
2935
{
@@ -43,12 +49,12 @@ let data = {
4349
{
4450
text: 'Download',
4551
link: 'https://github.com/alist-org/desktop-release/releases',
46-
},
47-
{
48-
text: 'Buy',
49-
link: 'https://store.nn.ci/checkout/buy/51dca247-20df-4991-8104-54ca534bcc82',
50-
type: 'success'
5152
}
53+
// ,{
54+
// text: 'Buy',
55+
// link: 'https://store.nn.ci/checkout/buy/51dca247-20df-4991-8104-54ca534bcc82',
56+
// type: 'success'
57+
// }
5258
]
5359
},
5460
{
@@ -88,12 +94,14 @@ if (location.pathname.startsWith("/zh/")) {
8894
btns: [{
8995
text: '下载',
9096
link: 'https://github.com/alist-org/alist/releases',
91-
}, {
92-
text: "赞助",
93-
link: "/zh/guide/sponsor.html",
94-
secondary: false,
95-
type: "error"
96-
}]
97+
}
98+
// , {
99+
// text: "赞助",
100+
// link: "/zh/guide/sponsor.html",
101+
// secondary: false,
102+
// type: "error"
103+
// }
104+
]
97105
},
98106
{
99107
title: 'AList桌面版',
@@ -112,12 +120,12 @@ if (location.pathname.startsWith("/zh/")) {
112120
{
113121
text: '下载',
114122
link: 'https://github.com/alist-org/desktop-release/releases',
115-
},
116-
{
117-
text: '购买',
118-
link: 'https://r.nn.ci/ad',
119-
type: 'success'
120123
}
124+
// ,{
125+
// text: '购买',
126+
// link: 'https://r.nn.ci/ad',
127+
// type: 'success'
128+
// }
121129
]
122130
},
123131
{
@@ -132,15 +140,19 @@ if (location.pathname.startsWith("/zh/")) {
132140
],
133141
btns: [{
134142
text: '联系',
135-
link: 'mailto:[email protected]'
143+
link: 'mailto:[email protected]',
136144
}]
137145
}
138146
],
139147
};
140148
}
141149
142150
function openLink(link: string) {
143-
window.open(link, "_blank");
151+
if (link === 'mailto:[email protected]') {
152+
showContactModal.value = true
153+
} else {
154+
window.open(link, "_blank");
155+
}
144156
}
145157
146158
</script>
@@ -165,9 +177,30 @@ function openLink(link: string) {
165177
</NCard>
166178
</NGridItem>
167179
</NGrid>
180+
181+
<NModal v-model:show="showContactModal" preset="dialog" title="联系我们">
182+
<template #default>
183+
<p>请通过以下二维码联系我们:</p>
184+
<div class="qr-code">
185+
<img
186+
:src="qrCode"
187+
alt="联系我们" style="width: 300px; height: 350px;">
188+
</div>
189+
<!-- <p>邮箱:[email protected]</p> -->
190+
</template>
191+
<template #action>
192+
<NButton @click="showContactModal = false">关闭</NButton>
193+
</template>
194+
</NModal>
168195
</template>
169196

170197
<style scoped>
198+
.qr-code {
199+
display: flex;
200+
justify-content: center;
201+
align-items: center;
202+
}
203+
171204
.list {
172205
min-height: 334px;
173206
}

docs/guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ Please go to our [discussion forum](https://github.com/Xhofe/alist/discussions)
8585

8686
- https://al.nn.ci
8787

88-
### Special sponsors
88+
<!-- ### Special sponsors
8989
9090
- [VidHub](https://apps.apple.com/app/apple-store/id1659622164?pt=118612019&ct=alist&mt=8) - An elegant cloud video player within the Apple ecosystem. Support for iPhone, iPad, Mac, and Apple TV.
9191
- [亚洲云](https://www.asiayun.com/aff/QQCOOQKZ) - 高防服务器|服务器租用|福州高防|广东电信|香港服务器|美国服务器|海外服务器 - 国内靠谱的企业级云计算服务提供商 (sponsored Chinese API server)
92-
- [找资源](http://zhaoziyuan2.cc/) - 阿里云盘资源搜索引擎
92+
- [找资源](http://zhaoziyuan2.cc/) - 阿里云盘资源搜索引擎 -->
9393

9494
### License
9595

0 commit comments

Comments
 (0)