百色农校完成

This commit is contained in:
2025-05-16 20:15:45 +08:00
parent e97d08f410
commit e37c9640a8
17 changed files with 51 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
# 应用模块接口
VITE_SERVER_URL=https://server.gxwebsoft.com/api
API_BASE=https://cms-api.websoft.top/api
VITE_SERVER_URL=https://server.gxbsnx.com/api
API_BASE=https://server.gxbsnx.com/api
#API_BASE=http://127.0.0.1:9001/api
#VITE_SERVER_URL=http://127.0.0.1:8000/api

View File

@@ -1,4 +1,4 @@
# 基础模块
VITE_SERVER_URL=https://server.gxwebsoft.com/api
VITE_SERVER_URL=https://server.gxbsnx.com/api
# 应用模块
API_BASE=https://cms-api.websoft.top/api
API_BASE=https://server.gxbsnx.com/api

View File

@@ -12,14 +12,14 @@
.head-bg {
width: 100% !important;
background: url('https://gxbsnx.com/Temp/images/new/imgimg4.png');
background: url('http://img.gxbsnx.com/Temp/images/new/imgimg4.png');
height: 39px;
display: flex;
justify-items: center;
clear: both;
}
.menu-bg{
background: url('https://www.gxbsnx.com/Temp/images/background/back_green.png') repeat-x top center;
background: url('http://img.gxbsnx.com/Temp/images/background/back_green.png') repeat-x top center;
background-size: 100% 100%;
clear: both;
}

View File

@@ -17,7 +17,7 @@ const config = useConfigInfo();
<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 class="tools flex items-center opacity-80 hover:opacity-90 text-gray-400 text-xs">
Powered by <a rel="nofollow" href="https://site.websoft.top" 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>
</div>
@@ -37,7 +37,7 @@ const config = useConfigInfo();
<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>
</div>
<div class="tools flex items-center opacity-80 hover:opacity-90 text-gray-300 text-xs mt-5">
Powered by <a rel="nofollow" href="https://site.websoft.top" target="_blank" class="visited:text-gray-300 hover:text-gray-200 ml-1">·企业官网</a>
Powered by <a rel="nofollow" href="https://site.gxbsnx.com" target="_blank" class="visited:text-gray-300 hover:text-gray-200 ml-1">·企业官网</a>
</div>
</div>
</div>

View File

@@ -9,7 +9,7 @@
<div class="flex justify-between menu-bg w-full py-3">
<div class="xl:w-screen-xl m-auto flex justify-between">
<Logo />
<img src="https://gxbsnx.com/Temp/images/background/title_right.png" width="291" height="88" />
<img src="http://img.gxbsnx.com/Temp/images/background/title_right.png" width="291" height="88" />
</div>
</div>
<div class="w-full bg-white">

View File

@@ -10,6 +10,15 @@ const drawer = ref<boolean>(false);
const onSearch = () => {
window.location.href = `/${i18n.locale.value}/search/${keyword.value}`;
}
const route = useRoute();
watch(
() => route.params.keywords,
(text) => {
keyword.value = String(text);
},
{ immediate: true }
);
</script>
<template>
@@ -19,10 +28,10 @@ const onSearch = () => {
<div class="lang flex justify-center text-center items-center">
<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 :href="`https://www.gxbsnx.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>-->
<div class="search mx-5 hidden-sm-and-down">
<div class="fl">
<el-input v-model="keyword" :placeholder="`${$t('searchKeywords')}...`" :suffix-icon="Search" @change="onSearch" />
<el-input v-model="keyword" :placeholder="`${$t('searchKeywords')}...`" style="height: 28px;" :suffix-icon="Search" @change="onSearch" />
</div>
</div>
<!-- 移动端 -->

View File

@@ -89,10 +89,7 @@ const reload = async () => {
limit: 8,
categoryId: props.categoryId
}).then(res => {
list.value = res?.list.map(d => {
d.image = getImage(d.image)
return d;
}) || [];
list.value = res?.list || [];
})
}
reload();

View File

@@ -5,12 +5,12 @@ export const APP_SECRET = 'ffd6eee985af45e4a75098422d1decbb';
export const domain = 'https://websoft.top';
// 主节点
export const SERVER_API_URL = import.meta.env.VITE_SERVER_URL || 'https://server.gxwebsoft.com/api';
export const SERVER_API_URL = import.meta.env.VITE_SERVER_URL || 'https://server.gxbsnx.com/api';
// 模块节点
export const MODULES_API_URL = import.meta.env.VITE_API_URL || 'https://cms-api.websoft.top/api';
export const COMMON_API_URL = import.meta.env.VITE_THINK_URL || 'https://common-api.websoft.top/api';
// 文件服务器地址
export const FILE_SERVER = 'https://gxbsnx.com';
export const FILE_SERVER = 'https://img.gxbsnx.com';
/**
* 以下配置一般不需要修改

View File

@@ -8,7 +8,7 @@
// 填租户ID
const appId = 10490;
// 接口地址
let apiBaseUrl = 'https://cms-api.websoft.top/api'
let apiBaseUrl = 'https://server.gxbsnx.com/api'
// 应用名称
const appName = '广西百色农业学校';
@@ -86,9 +86,9 @@ export default defineNuxtConfig({
apiBaseUrl,
tenantId: appId,
siteName: appName,
domain: 'websoft.top',
domain: 'gxbsnx.com',
// 核心接口
apiServer: 'https://server.gxwebsoft.com/api',
apiServer: 'https://server.gxbsnx.com/api',
appSecret: '',
appName: '你的网站名称'
}

View File

@@ -97,10 +97,7 @@ const reload = async () => {
pageCmsArticle(where).then(response => {
if(response){
total.value = response?.count;
list.value = response?.list.map(d => {
d.image = getImage(d.image);
return d;
});
list.value = response?.list || [];
}
})
})

View File

@@ -215,9 +215,9 @@ const reload = async () => {
})
}
// 拼接图片路径
if(data.content){
form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
}
// if(data.content){
// form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
// }
if(form.permission === 1){
console.log('登录可见')

View File

@@ -58,7 +58,7 @@
<el-form-item label="插件图标" class="px-4" label-width="100" label-position="left">
<el-upload
v-model:file-list="avatar"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: '5'
@@ -81,7 +81,7 @@
<el-tab-pane label="插件截屏" name="files">
<el-upload
v-model:file-list="files"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: '5'

View File

@@ -64,7 +64,7 @@
:on-preview="handlePictureCardPreview"
:on-remove="filesRemove"
:on-success="filesOnSuccess"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
list-type="picture-card"
>
<el-icon>

View File

@@ -238,7 +238,7 @@ useHead({
* 执行登录
*/
const onSubmit = async () => {
const {data: response} = await useServerRequest<ApiResult<LoginResult>>('/login',{baseURL: 'https://server.gxwebsoft.com/api',method: "post",body: form})
const {data: response} = await useServerRequest<ApiResult<LoginResult>>('/login',{baseURL: 'https://server.gxbsnx.com/api',method: "post",body: form})
// 登录成功
if(response.value?.code == 0){
ElMessage.success(response.value?.message)

View File

@@ -6,17 +6,17 @@
<span class="text-large font-600"> {{ '站内搜索' }} </span>
</template>
<template #extra>
<el-radio-group v-model="where.model" @change="reload">
<el-radio-button label="文档" value="docs" />
<el-radio-button label="资讯" value="article" />
</el-radio-group>
<!-- <el-radio-group v-model="where.model" @change="reload">-->
<!-- <el-radio-button label="文档" value="docs" />-->
<!-- <el-radio-button label="资讯" value="article" />-->
<!-- </el-radio-group>-->
</template>
<el-row :gutter="24" id="container" class="clearfix">
<el-col v-for="(item,index) in list" :key="index" :span="6" class="left mb-6">
<el-card shadow="hover" :body-style="{ padding: '0px' }" class=" hover:bg-gray-50 cursor-pointer">
<nuxt-link :to="`/detail/${item.articleId}.html`">
<el-image
:src="`${config.FILE_SERVER}${item.image}`"
:src="`${item.image}`"
fit="cover"
:lazy="true" class="w-full md:h-[166px] h-[199px] cursor-pointer bg-gray-50"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4">
@@ -51,6 +51,7 @@ import dayjs from "dayjs";
import {getViews} from "~/utils/common";
import {pageCmsArticle} from "~/api/cms/cmsArticle";
import {FILE_SERVER} from "~/config";
import {pageCmsArticleContent} from "~/api/cms/cmsArticleContent";
const route = useRoute();
const router = useRouter();
@@ -69,17 +70,17 @@ const where = reactive<CmsArticleParam>({
keywords: undefined,
page: 1,
limit: 12,
status: 0,
parentId: undefined,
categoryId: undefined,
lang: i18n.locale.value
// status: 0,
// parentId: undefined,
// categoryId: undefined,
// lang: i18n.locale.value
});
// 加载页面数据
const reload = async () => {
list.value = [];
pageCmsArticle(where).then(response => {
pageCmsArticleContent(where).then(response => {
list.value = response?.list || [];
total.value = response?.count || 0;
})

View File

@@ -58,7 +58,7 @@
<el-form-item label="身份证">
<el-upload
v-model:file-list="sfzFile"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: 5,
@@ -144,7 +144,7 @@
<el-form-item label="营业执照" required>
<el-upload
v-model:file-list="yyzzFile"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: 5,
@@ -169,7 +169,7 @@
<el-form-item label="门头照片">
<el-upload
v-model:file-list="image"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: 5,
@@ -194,7 +194,7 @@
<el-form-item label="其他证件">
<el-upload
v-model:file-list="files"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: 5,
@@ -228,7 +228,7 @@
<el-form-item label="身份证">
<el-upload
v-model:file-list="sfzFile"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: 5,

View File

@@ -14,7 +14,7 @@
<el-form-item label="上传头像" class="px-4">
<el-upload
v-model:file-list="avatar"
action="https://server.gxwebsoft.com/api/oss/upload"
action="https://server.gxbsnx.com/api/oss/upload"
:headers="{
Authorization: token,
TenantId: 5,