chore(config): 更新环境变量和配置信息
- 更新 APPID 从10398 到 10490- 在页脚版权信息中添加电话号码显示 - 在顶部导航栏添加移动端电话展示- 注释掉开发环境 API 地址配置- 移除菜单样式中的 margin-right 设置 - 修改文章详情页作者字段为发布员 - 替换校园风光模块跳转链接 ID -优化搜索关键词高亮逻辑 - 移除轮播图图片路径前缀拼接 - 调整顶部欢迎信息在不同设备上的显示方式- 更新顶部联系信息图标及文案内容
This commit is contained in:
@@ -16,6 +16,9 @@ const config = useConfigInfo();
|
|||||||
<span>Copyright © {{ new Date().getFullYear() }} {{ config?.copyright }}</span>
|
<span>Copyright © {{ new Date().getFullYear() }} {{ config?.copyright }}</span>
|
||||||
<nuxt-link to="https://beian.miit.gov.cn/" class="visited:text-gray-400 hover:text-gray-200" target="_blank"> <span>备案号:{{ config?.icpNo }}</span></nuxt-link>
|
<nuxt-link to="https://beian.miit.gov.cn/" class="visited:text-gray-400 hover:text-gray-200" target="_blank"> <span>备案号:{{ config?.icpNo }}</span></nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-gray-400 sm:gap-xs text-sm leading-7 flex flex-col sm:flex-row">
|
||||||
|
{{ config.tel }}
|
||||||
|
</div>
|
||||||
<div class="tools flex items-center opacity-80 hover:opacity-90 text-gray-400 text-xs">
|
<div class="tools flex items-center opacity-80 hover:opacity-90 text-gray-400 text-xs">
|
||||||
Powered by <a rel="nofollow" href="https://site.gxbsnx.com" target="_blank" class="visited:text-gray-400 hover:text-gray-200 ml-1">云·企业官网</a>
|
Powered by <a rel="nofollow" href="https://site.gxbsnx.com" target="_blank" class="visited:text-gray-400 hover:text-gray-200 ml-1">云·企业官网</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -32,6 +35,9 @@ const config = useConfigInfo();
|
|||||||
<div class="my-4">
|
<div class="my-4">
|
||||||
<el-avatar :src="config?.wxQrcode" shape="square" :size="100" />
|
<el-avatar :src="config?.wxQrcode" shape="square" :size="100" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-gray-400 sm:gap-xs text-sm leading-7 flex flex-col sm:flex-row">
|
||||||
|
{{ config.tel }}
|
||||||
|
</div>
|
||||||
<div class="text-gray-400 sm:gap-xs leading-7 flex flex-col sm:flex-row">
|
<div class="text-gray-400 sm:gap-xs leading-7 flex flex-col sm:flex-row">
|
||||||
<span>Copyright © {{ new Date().getFullYear() }} {{ config?.copyright }}</span>
|
<span>Copyright © {{ new Date().getFullYear() }} {{ config?.copyright }}</span>
|
||||||
<nuxt-link to="https://beian.miit.gov.cn/" target="_blank"> <span class="text-gray-400 visited:text-gray-400 hover:text-gray-200">备案号:{{ config?.icpNo }}</span></nuxt-link>
|
<nuxt-link to="https://beian.miit.gov.cn/" target="_blank"> <span class="text-gray-400 visited:text-gray-400 hover:text-gray-200">备案号:{{ config?.icpNo }}</span></nuxt-link>
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ const handleSelect = (index: any,keyPath: string[]) => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.el-menu--horizontal > .el-menu-item:nth-child(1) {
|
//.el-menu--horizontal > .el-menu-item:nth-child(1) {
|
||||||
margin-right: auto;
|
// margin-right: auto;
|
||||||
}
|
//}
|
||||||
.el-menu{
|
.el-menu{
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {useConfigInfo, useMenu} from "~/composables/configState";
|
import {useConfigInfo, useMenu} from "~/composables/configState";
|
||||||
import { Search,Message, Fold } from '@element-plus/icons-vue'
|
import { Search,Message, Fold, Phone } from '@element-plus/icons-vue'
|
||||||
const config = useConfigInfo();
|
const config = useConfigInfo();
|
||||||
const keyword = ref<string>('');
|
const keyword = ref<string>('');
|
||||||
const i18n = useI18n();
|
const i18n = useI18n();
|
||||||
@@ -15,7 +15,9 @@ const route = useRoute();
|
|||||||
watch(
|
watch(
|
||||||
() => route.params.keywords,
|
() => route.params.keywords,
|
||||||
(text) => {
|
(text) => {
|
||||||
|
if(text){
|
||||||
keyword.value = String(text);
|
keyword.value = String(text);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
);
|
);
|
||||||
@@ -24,12 +26,14 @@ watch(
|
|||||||
<template>
|
<template>
|
||||||
<div class="head-bg bg-blue-50 text-gray-400 px-2">
|
<div class="head-bg bg-blue-50 text-gray-400 px-2">
|
||||||
<div class=" flex justify-between items-center xl:w-screen-xl m-auto sm:px-0 w-full">
|
<div class=" flex justify-between items-center xl:w-screen-xl m-auto sm:px-0 w-full">
|
||||||
<span class="text-white text-sm">{{ config?.topWelcomeInfo }}</span>
|
<span class="text-white text-sm hidden-sm-and-down">{{ config?.topWelcomeInfo }}</span>
|
||||||
|
<span class="text-white text-sm hidden-sm-and-up">{{ config?.tel }}</span>
|
||||||
<div class="lang flex justify-center text-center items-center">
|
<div class="lang flex justify-center text-center items-center">
|
||||||
<el-space size="large">
|
<el-space size="large">
|
||||||
<a href="mailto:1145119853@qq.com" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Message /></el-icon><span class="text-white px-1">校长信箱</span></a>
|
<a class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="17"><Phone /></el-icon><span class="text-white text-sm px-1">招生与就业办电话:0776-2696638</span></a>
|
||||||
|
<!-- <a href="mailto:1145119853@qq.com" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Message /></el-icon><span class="text-white px-1">校长信箱</span></a>-->
|
||||||
<!-- <a href="/search/请输入搜索关键词" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Search /></el-icon><span class="text-white px-1">站内搜搜</span></a>-->
|
<!-- <a href="/search/请输入搜索关键词" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Search /></el-icon><span class="text-white px-1">站内搜搜</span></a>-->
|
||||||
<div class="search mx-5 hidden-sm-and-down">
|
<div class="search hidden-sm-and-down ml-5">
|
||||||
<div class="fl">
|
<div class="fl">
|
||||||
<el-input v-model="keyword" :placeholder="`${$t('searchKeywords')}...`" style="height: 28px;" :suffix-icon="Search" @change="onSearch" />
|
<el-input v-model="keyword" :placeholder="`${$t('searchKeywords')}...`" style="height: 28px;" :suffix-icon="Search" @change="onSearch" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="xl:w-screen-xl m-auto py-4 px-4 sm:px-0">
|
<div class="xl:w-screen-xl m-auto py-4 px-4 sm:px-0">
|
||||||
<div class="text-center flex justify-between items-center z-0 relative my-5">
|
<div class="text-center flex justify-between items-center z-0 relative my-5">
|
||||||
<el-space class="text-3xl font-bold text-green-600 flex items-center"><el-icon><CameraFilled /></el-icon>校园风光</el-space>
|
<el-space class="text-3xl font-bold text-green-600 flex items-center"><el-icon><CameraFilled /></el-icon>校园风光</el-space>
|
||||||
<nuxt-link :to="`/article/4145.html`" class="font-normal text-sm text-gray-400 flex items-center cursor-pointer">查看更多<el-icon><ArrowRight /></el-icon></nuxt-link>
|
<nuxt-link :to="`/article/4144.html`" class="font-normal text-sm text-gray-400 flex items-center cursor-pointer">查看更多<el-icon><ArrowRight /></el-icon></nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="text-center flex flex-col items-center z-0 relative">-->
|
<!-- <div class="text-center flex flex-col items-center z-0 relative">-->
|
||||||
<!-- <nuxt-link to="/article/4145.html">-->
|
<!-- <nuxt-link to="/article/4145.html">-->
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<el-carousel :height="flashHeight + 'px'" :interval="2000" motion-blur indicator-position="none">
|
<el-carousel :height="flashHeight + 'px'" :interval="2000" motion-blur indicator-position="none">
|
||||||
<el-carousel-item v-for="(item,index) in data" :key="index">
|
<el-carousel-item v-for="(item,index) in data" :key="index">
|
||||||
<nuxt-link :to="`/detail/${item.articleId}.html`" class="item flex justify-center items-center">
|
<nuxt-link :to="`/detail/${item.articleId}.html`" class="item flex justify-center items-center">
|
||||||
<el-image :src="`${item.version == 1 ? config.FILE_SERVER : ''}${item.image}`" class="w-[500px] h-[380px]" />
|
<el-image :src="`${item.image}`" class="w-[500px] h-[380px]" />
|
||||||
<div class="absolute bottom-0 z-100 w-[468px] bg-black opacity-80 font-bold px-4 line-clamp-1 text-sm lg:text-lg">
|
<div class="absolute bottom-0 z-100 w-[468px] bg-black opacity-80 font-bold px-4 line-clamp-1 text-sm lg:text-lg">
|
||||||
<span class="text-white">{{ item.title }}</span>
|
<span class="text-white">{{ item.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
import type {CompanyParam} from "~/api/system/company/model";
|
import type {CompanyParam} from "~/api/system/company/model";
|
||||||
import type {CmsArticle} from "~/api/cms/cmsArticle/model";
|
import type {CmsArticle} from "~/api/cms/cmsArticle/model";
|
||||||
import {useConfigInfo} from "~/composables/configState";
|
import {useConfigInfo} from "~/composables/configState";
|
||||||
|
import {FILE_SERVER} from "~/config";
|
||||||
|
|
||||||
const isMobile = useIsMobile();
|
const isMobile = useIsMobile();
|
||||||
const config = useConfigInfo()
|
const config = useConfigInfo()
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
"overview": "产品概述",
|
"overview": "产品概述",
|
||||||
"keyword": "关键词",
|
"keyword": "关键词",
|
||||||
"recentlyViewed": "最近浏览",
|
"recentlyViewed": "最近浏览",
|
||||||
"author": "作者",
|
"author": "发布员",
|
||||||
"click": "浏览",
|
"click": "浏览",
|
||||||
"label": "标签",
|
"label": "标签",
|
||||||
"seeMore": "查看更多",
|
"seeMore": "查看更多",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const appName = '广西百色农业学校';
|
|||||||
|
|
||||||
const isDev = process.env.NODE_ENV === 'development'
|
const isDev = process.env.NODE_ENV === 'development'
|
||||||
if(isDev){
|
if(isDev){
|
||||||
apiBaseUrl = 'http://127.0.0.1:9000/api'
|
// apiBaseUrl = 'http://127.0.0.1:9000/api'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<div class="flex items-center justify-center py-4">
|
<div class="flex items-center justify-center py-4">
|
||||||
<el-space size="large" class="text-gray-400">
|
<el-space size="large" class="text-gray-400">
|
||||||
<span>{{ $t('createTime') }}:{{ dayjs(form.createTime).format('YYYY.MM.DD') }}</span>
|
<span>{{ $t('createTime') }}:{{ dayjs(form.createTime).format('YYYY.MM.DD') }}</span>
|
||||||
<span v-if="form.author">{{ $t('author') }}:{{ form.author }}</span>
|
<span v-if="form.source">来源:{{ form.source }}</span>
|
||||||
|
<span v-if="form.author">作者:{{ form.author }}</span>
|
||||||
<span>{{ $t('click') }}:{{ getViews(form) }}</span>
|
<span>{{ $t('click') }}:{{ getViews(form) }}</span>
|
||||||
<span v-if="form.source">文章来源:{{ form.source }}</span>
|
|
||||||
</el-space>
|
</el-space>
|
||||||
<!-- Baidu Button BEGIN -->
|
<!-- Baidu Button BEGIN -->
|
||||||
<el-space class="flex items-center">
|
<el-space class="flex items-center">
|
||||||
|
|||||||
@@ -107,13 +107,17 @@ const goBack = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const replaceKeywords = (text: any) => {
|
const replaceKeywords = (text: any) => {
|
||||||
|
if(where.keywords){
|
||||||
return text.replace(`${where.keywords}`,'<font color=#ff0000>' + where.keywords + '</font>');
|
return text.replace(`${where.keywords}`,'<font color=#ff0000>' + where.keywords + '</font>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => route.params.keywords,
|
() => route.params.keywords,
|
||||||
(keywords) => {
|
(keywords) => {
|
||||||
|
if(keywords){
|
||||||
where.keywords = String(keywords);
|
where.keywords = String(keywords);
|
||||||
|
}
|
||||||
if(where.keywords == '关键词不能为空!'){
|
if(where.keywords == '关键词不能为空!'){
|
||||||
where.keywords = undefined;
|
where.keywords = undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user