-

+
达人资源
@@ -316,7 +319,7 @@ import $api from '@/service/webRequest'
import { useI18n } from 'vue-i18n'
import { useStore } from '~/store'
const { locale } = useI18n()
-
+const cdnUrl = useCdn()
const wchatList = ref([
{ name: '微信底部菜单搭建', desc: '让底部菜单成为品牌的亮眼名片', title: '汝南县妇幼保健院', content: '将deep seek AI问诊功能搭建在医院底部菜单,提高医院就诊效率50%。', isShow: false },
{ name: '内容采编', desc: '专业采编团队深挖品牌亮点', title: '河南科技大学第一附属医院', content: '《女博士养成记》原创文章平均每篇阅读量破5万+,整个系列阅读量破30万+。', isShow: false },
@@ -424,7 +427,7 @@ const animate = () => {
diff --git a/plugins/cdn.ts b/plugins/cdn.ts
new file mode 100644
index 0000000..3f02e38
--- /dev/null
+++ b/plugins/cdn.ts
@@ -0,0 +1,34 @@
+import { defineNuxtPlugin } from '#app'
+
+export default defineNuxtPlugin((nuxtApp) => {
+ const config = useRuntimeConfig()
+
+ // 定义全局变量
+ const cdnUrl = config.public.cdnDomain
+ console.log(cdnUrl);
+
+ // 在客户端注入 CSS 变量
+ if (process.client) {
+ document.documentElement.style.setProperty('--cdn-domain', cdnUrl)
+ }
+
+ // 只使用一种注入方式
+ return {
+ provide: {
+ cdnUrl
+ }
+ }
+})
+
+// 为了 TypeScript 支持
+declare module '#app' {
+ interface NuxtApp {
+ $cdnUrl: string
+ }
+}
+
+declare module '@vue/runtime-core' {
+ interface ComponentCustomProperties {
+ $cdnUrl: string
+ }
+}
\ No newline at end of file
diff --git a/public/img/banner.png b/public/img/banner.png
index 00c0549..e7f2580 100644
Binary files a/public/img/banner.png and b/public/img/banner.png differ
diff --git a/public/img/get_top.png b/public/img/get_top.png
new file mode 100644
index 0000000..2165194
Binary files /dev/null and b/public/img/get_top.png differ