Skip to content

Commit ab1cd40

Browse files
committed
update desktop page
1 parent c14c8dd commit ab1cd40

File tree

1 file changed

+59
-1
lines changed

1 file changed

+59
-1
lines changed

docs/.vuepress/components/Desktop.vue

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { NButtonGroup, NImage, NSpace, NButton, NDropdown } from "naive-ui"
2+
import { NButtonGroup, NImage, NSpace, NButton, NDropdown, NTooltip, NPopover } from "naive-ui"
33
import { computed, ref } from "vue"
44
// import { api } from "./api";
55
@@ -62,6 +62,8 @@ console.log(plat.value)
6262
let text = {
6363
down: "Download",
6464
website: "Website",
65+
service: "Contact customer service if you have any questions",
66+
qrTip: "Scan QR code to contact customer service"
6567
}
6668
6769
const fullPlat = computed(() => {
@@ -81,6 +83,8 @@ if (location.pathname.startsWith("/zh/")) {
8183
text = {
8284
down: "下载",
8385
website: "官网",
86+
service: "如有问题联系小客服",
87+
qrTip: "扫码联系客服"
8488
}
8589
}
8690
@@ -120,7 +124,26 @@ function openWebsite() {
120124
}}</NButton>
121125
</NButtonGroup></NSpace
122126
>
127+
123128
<NImage src="/img/guide/desktop.png"></NImage>
129+
130+
<div class="customer-service">
131+
<NPopover trigger="hover" placement="top">
132+
<template #trigger>
133+
<span class="service-link">{{ text.service }}</span>
134+
</template>
135+
<template #default>
136+
<div class="qr-code-container">
137+
<img
138+
src="https://oss.hutool.cn/000000-hutool/upload/alist/qi%20ye.jpg"
139+
:alt="text.qrTip"
140+
class="qr-code"
141+
/>
142+
<p class="qr-tip">{{ text.qrTip }}</p>
143+
</div>
144+
</template>
145+
</NPopover>
146+
</div>
124147
</NSpace>
125148
</template>
126149

@@ -130,4 +153,39 @@ function openWebsite() {
130153
margin-top: 30px;
131154
margin-bottom: 30px;
132155
}
156+
157+
.customer-service {
158+
margin-top: 20px;
159+
text-align: center;
160+
}
161+
162+
.service-link {
163+
color: #1890ff;
164+
text-decoration: underline;
165+
cursor: pointer;
166+
font-size: 22px;
167+
transition: color 0.3s;
168+
}
169+
170+
.service-link:hover {
171+
color: #40a9ff;
172+
}
173+
174+
.qr-code-container {
175+
text-align: center;
176+
padding: 16px;
177+
}
178+
179+
.qr-code {
180+
width: 250px;
181+
height: 250px;
182+
border-radius: 8px;
183+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
184+
}
185+
186+
.qr-tip {
187+
margin-top: 8px;
188+
color: gray;
189+
font-size: 18px;
190+
}
133191
</style>

0 commit comments

Comments
 (0)