diff --git a/README.md b/README.md index f5db2a2..ad608d3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Nuxt 3 Minimal Starter +# 项目CDN配置 +1.修改nuxt.config.ts中的 cdnDomain -Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. +2.修改assets/css/common.scss中的定义数据 ## Setup diff --git a/app.vue b/app.vue index 4b22a9b..63ca371 100644 --- a/app.vue +++ b/app.vue @@ -1,14 +1,14 @@ diff --git a/components/CdnImageExample.vue b/components/CdnImageExample.vue deleted file mode 100644 index e69de29..0000000 diff --git a/composables/useCdn.ts b/composables/useCdn.ts new file mode 100644 index 0000000..060fe90 --- /dev/null +++ b/composables/useCdn.ts @@ -0,0 +1,4 @@ +export const useCdn = () => { + const nuxtApp = useNuxtApp() + return nuxtApp.$cdnUrl +} \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index 7883af2..06e5b1e 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,6 +2,11 @@ import { defineNuxtConfig } from 'nuxt/config' export default defineNuxtConfig({ + runtimeConfig: { + public: { + cdnDomain: 'https://cdn.web.0rui.cn' + } + }, app: { baseURL:'/web/', }, diff --git a/pages/aboutUs.vue b/pages/aboutUs.vue index 63b47de..e6535ac 100644 --- a/pages/aboutUs.vue +++ b/pages/aboutUs.vue @@ -4,22 +4,22 @@
- + - + @@ -35,7 +35,8 @@
洛阳灵睿网络技术有限公司 - + 智慧信息化与数字内容服务领航者 @@ -48,49 +49,58 @@ 专注互联网领域,发散新媒体创思,执着深耕口碑服务,扎实落地品牌内容,共创新信息化与内容服务业态。 -
+
+ 服务客户
- - + +
- - 技术沉淀 + 技术沉淀
- + - 覆盖行业 + 覆盖行业
- - + +
- + 技术团队
- +
-
- +
+ 荣誉标签:
-
- 中国电子商务协会工业电商委员会河南分会单位 - 新华网、人民网、今日头条新闻联络中心 - 灵睿与郑州、洛阳等地的网信以及网监系统保持长期合作获。 +
+ +
中国电子商务协会工业电商委员会河南分会单位 +
+
新华网、人民网、今日头条新闻联络中心 +
+
+ 灵睿与郑州、洛阳等地的网信以及网监系统保持长期合作获
+
@@ -103,15 +113,16 @@
睿创团队介绍 - +
灵睿基因一直是一群年轻的青年人组成,我们致力打造专业的团队化运营模式,集合程序猿、设计狗、运营喵的创作者联盟。年轻不是资本,敢重新定义年轻才是,在互联网领域,我们致力做一支专业,积极,上进的年轻团队;80后主导,90后主力,00后紧随。以“为客户创造价值 用互联网思维打造品牌”为使命。以“正直诚信、实干勇敢、协作共赢、创业精神”为价值观。努力发展,破茧成蝶。 - - + +
@@ -120,23 +131,21 @@
-
+
著作权和荣誉证书 Company environment - -
- - + +
@@ -165,7 +174,7 @@ import { nextTick, ref } from 'vue' import 'swiper/css' import { Autoplay, Navigation, Pagination, Scrollbar, A11y, EffectCoverflow, EffectFade } from "swiper/modules"; import ScrollReveal from 'scrollreveal'; -import { NNumberAnimation } from 'naive-ui' +import { NNumberAnimation, NMarquee } from 'naive-ui' let modules = [Autoplay, A11y, EffectCoverflow, EffectFade]; import "swiper/css"; @@ -181,6 +190,7 @@ import $api from '@/service/webRequest' import { useI18n } from 'vue-i18n' import { useStore } from '~/store' const { locale } = useI18n() +const cdnUrl = useCdn() let newsSwiper: any = null const onSwiperNews = (swiper: any) => { @@ -202,7 +212,7 @@ const swiperOptionsNews = { prevEl: '#swipen_next', }, } -const activeSlideIndex=ref(0); +const activeSlideIndex = ref(0); let vesSwiper: any = null const onSwiperExp = (swiper: any) => { vesSwiper = swiper @@ -216,7 +226,7 @@ const swiper_exp = ref(); // 新闻数据 onMounted(() => { - animate() + animate() }) const numberAnimationInstRef = ref() const numberAnimationInstRefKH = ref() @@ -296,9 +306,9 @@ const animate = () => { } - diff --git a/pages/concatUs.vue b/pages/concatUs.vue index 0644d92..6d971de 100644 --- a/pages/concatUs.vue +++ b/pages/concatUs.vue @@ -4,22 +4,22 @@
- + - + @@ -42,12 +42,12 @@
- - 联系电话:15503791530 + + 联系电话:17603796680 - - 微信:15503791530 + + 微信:17603796680
@@ -105,7 +105,7 @@ import $api from '@/service/webRequest' import { useI18n } from 'vue-i18n' import { useStore } from '~/store' const { locale } = useI18n() - +const cdnUrl = useCdn() let newsSwiper: any = null const onSwiperNews = (swiper: any) => { newsSwiper = swiper @@ -238,9 +238,9 @@ const animate = () => { } - diff --git a/pages/proServices_con.vue b/pages/proServices_con.vue index 9371947..9aa3594 100644 --- a/pages/proServices_con.vue +++ b/pages/proServices_con.vue @@ -4,39 +4,39 @@
- + - +
- +
-
+
内容创作与运营
-
+
-
- + +
专业技术服务 - -
+
+
全媒体推广解决方案
@@ -46,7 +46,7 @@
- + 覆盖各大主流平台 定制【流量矩阵+内容策略+效果追踪】一体化方案 @@ -54,7 +54,7 @@
- + 平台搭建 抖音、视频号、快手、B站、微信公众号、小红书等一站式布局 @@ -62,7 +62,7 @@
- + 精准运营 行业大数据分析+账号定位+内容持续输出+流量裂变模型+账号运营变现 @@ -72,7 +72,7 @@
了解更多解决方案 -
@@ -86,16 +86,16 @@
品牌账号代运营
- - 视频平台
- - 微信账号
@@ -107,7 +107,7 @@
-
{{ item.name }}
@@ -120,7 +120,7 @@ style="width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;align-items: center;">
-
{{ item.title }} @@ -135,7 +135,7 @@
-
{{ item.name }}
@@ -148,7 +148,7 @@ style="width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;align-items: center;">
-
{{ item.title }} @@ -168,7 +168,7 @@
- +
@@ -178,15 +178,15 @@
- + 创意驱动,精准执行,从构思到落地,打通线上线下资源,一站式策划沉浸式活动,引爆品牌传播声量。
- + 线上活动:聚焦行业热点打造爆款话题 (话题营销+直播连麦+裂变传播)助力品牌实现社交裂变传播,激活私域流量池。
- + 线下活动:全案服务涵盖发布会、快闪店、行业峰会等多元形式,提供从创意策划、资源整合、现场执行到效果追踪的全流程专业落地解决方案。
@@ -203,11 +203,11 @@
- + 整合全网权威渠道,依托海量优质媒体资源,定制新闻发布策略,以专业视角与高效执行,让您的新闻迅速抢占舆论高地,第一时间触达目标受众。
- + 权威媒体资源覆盖人民网、新浪、网易等、科技等垂直领域媒体,形成多渠道传播矩阵,深度触达目标受众,强化品牌公信力与行业影响力。
@@ -245,7 +245,7 @@
- +
@@ -258,30 +258,33 @@
-
+
- +
从0到1打造现象级IP
联动本地头部达人精准引爆同城流量,合作ROI高达1:8
-
+
+
- +
IP打造
从人设定位到变现全链路服务
-
+
+
- +
达人资源
@@ -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