百色农校完成
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# 应用模块接口
|
# 应用模块接口
|
||||||
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
|
||||||
|
|
||||||
#API_BASE=http://127.0.0.1:9001/api
|
#API_BASE=http://127.0.0.1:9001/api
|
||||||
#VITE_SERVER_URL=http://127.0.0.1:8000/api
|
#VITE_SERVER_URL=http://127.0.0.1:8000/api
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -12,14 +12,14 @@
|
|||||||
|
|
||||||
.head-bg {
|
.head-bg {
|
||||||
width: 100% !important;
|
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;
|
height: 39px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.menu-bg{
|
.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%;
|
background-size: 100% 100%;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
<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="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.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>
|
</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>
|
<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>
|
||||||
<div class="tools flex items-center opacity-80 hover:opacity-90 text-gray-300 text-xs mt-5">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div class="flex justify-between menu-bg w-full py-3">
|
<div class="flex justify-between menu-bg w-full py-3">
|
||||||
<div class="xl:w-screen-xl m-auto flex justify-between">
|
<div class="xl:w-screen-xl m-auto flex justify-between">
|
||||||
<Logo />
|
<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>
|
</div>
|
||||||
<div class="w-full bg-white">
|
<div class="w-full bg-white">
|
||||||
|
|||||||
@@ -10,6 +10,15 @@ const drawer = ref<boolean>(false);
|
|||||||
const onSearch = () => {
|
const onSearch = () => {
|
||||||
window.location.href = `/${i18n.locale.value}/search/${keyword.value}`;
|
window.location.href = `/${i18n.locale.value}/search/${keyword.value}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
|
watch(
|
||||||
|
() => route.params.keywords,
|
||||||
|
(text) => {
|
||||||
|
keyword.value = String(text);
|
||||||
|
},
|
||||||
|
{ immediate: true }
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -19,10 +28,10 @@ const onSearch = () => {
|
|||||||
<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 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="search mx-5 hidden-sm-and-down">
|
||||||
<div class="fl">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<!-- 移动端 -->
|
<!-- 移动端 -->
|
||||||
|
|||||||
@@ -89,10 +89,7 @@ const reload = async () => {
|
|||||||
limit: 8,
|
limit: 8,
|
||||||
categoryId: props.categoryId
|
categoryId: props.categoryId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
list.value = res?.list.map(d => {
|
list.value = res?.list || [];
|
||||||
d.image = getImage(d.image)
|
|
||||||
return d;
|
|
||||||
}) || [];
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
reload();
|
reload();
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ export const APP_SECRET = 'ffd6eee985af45e4a75098422d1decbb';
|
|||||||
|
|
||||||
export const domain = 'https://websoft.top';
|
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 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 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';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 以下配置一般不需要修改
|
* 以下配置一般不需要修改
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// 填租户ID
|
// 填租户ID
|
||||||
const appId = 10490;
|
const appId = 10490;
|
||||||
// 接口地址
|
// 接口地址
|
||||||
let apiBaseUrl = 'https://cms-api.websoft.top/api'
|
let apiBaseUrl = 'https://server.gxbsnx.com/api'
|
||||||
// 应用名称
|
// 应用名称
|
||||||
const appName = '广西百色农业学校';
|
const appName = '广西百色农业学校';
|
||||||
|
|
||||||
@@ -86,9 +86,9 @@ export default defineNuxtConfig({
|
|||||||
apiBaseUrl,
|
apiBaseUrl,
|
||||||
tenantId: appId,
|
tenantId: appId,
|
||||||
siteName: appName,
|
siteName: appName,
|
||||||
domain: 'websoft.top',
|
domain: 'gxbsnx.com',
|
||||||
// 核心接口
|
// 核心接口
|
||||||
apiServer: 'https://server.gxwebsoft.com/api',
|
apiServer: 'https://server.gxbsnx.com/api',
|
||||||
appSecret: '',
|
appSecret: '',
|
||||||
appName: '你的网站名称'
|
appName: '你的网站名称'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,10 +97,7 @@ const reload = async () => {
|
|||||||
pageCmsArticle(where).then(response => {
|
pageCmsArticle(where).then(response => {
|
||||||
if(response){
|
if(response){
|
||||||
total.value = response?.count;
|
total.value = response?.count;
|
||||||
list.value = response?.list.map(d => {
|
list.value = response?.list || [];
|
||||||
d.image = getImage(d.image);
|
|
||||||
return d;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -215,9 +215,9 @@ const reload = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 拼接图片路径
|
// 拼接图片路径
|
||||||
if(data.content){
|
// if(data.content){
|
||||||
form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
|
// form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
|
||||||
}
|
// }
|
||||||
|
|
||||||
if(form.permission === 1){
|
if(form.permission === 1){
|
||||||
console.log('登录可见')
|
console.log('登录可见')
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<el-form-item label="插件图标" class="px-4" label-width="100" label-position="left">
|
<el-form-item label="插件图标" class="px-4" label-width="100" label-position="left">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="avatar"
|
v-model:file-list="avatar"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: '5'
|
TenantId: '5'
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
<el-tab-pane label="插件截屏" name="files">
|
<el-tab-pane label="插件截屏" name="files">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="files"
|
v-model:file-list="files"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: '5'
|
TenantId: '5'
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
:on-preview="handlePictureCardPreview"
|
:on-preview="handlePictureCardPreview"
|
||||||
:on-remove="filesRemove"
|
:on-remove="filesRemove"
|
||||||
:on-success="filesOnSuccess"
|
:on-success="filesOnSuccess"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
>
|
>
|
||||||
<el-icon>
|
<el-icon>
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ useHead({
|
|||||||
* 执行登录
|
* 执行登录
|
||||||
*/
|
*/
|
||||||
const onSubmit = async () => {
|
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){
|
if(response.value?.code == 0){
|
||||||
ElMessage.success(response.value?.message)
|
ElMessage.success(response.value?.message)
|
||||||
|
|||||||
@@ -6,17 +6,17 @@
|
|||||||
<span class="text-large font-600"> {{ '站内搜索' }} </span>
|
<span class="text-large font-600"> {{ '站内搜索' }} </span>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<el-radio-group v-model="where.model" @change="reload">
|
<!-- <el-radio-group v-model="where.model" @change="reload">-->
|
||||||
<el-radio-button label="文档" value="docs" />
|
<!-- <el-radio-button label="文档" value="docs" />-->
|
||||||
<el-radio-button label="资讯" value="article" />
|
<!-- <el-radio-button label="资讯" value="article" />-->
|
||||||
</el-radio-group>
|
<!-- </el-radio-group>-->
|
||||||
</template>
|
</template>
|
||||||
<el-row :gutter="24" id="container" class="clearfix">
|
<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-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">
|
<el-card shadow="hover" :body-style="{ padding: '0px' }" class=" hover:bg-gray-50 cursor-pointer">
|
||||||
<nuxt-link :to="`/detail/${item.articleId}.html`">
|
<nuxt-link :to="`/detail/${item.articleId}.html`">
|
||||||
<el-image
|
<el-image
|
||||||
:src="`${config.FILE_SERVER}${item.image}`"
|
:src="`${item.image}`"
|
||||||
fit="cover"
|
fit="cover"
|
||||||
:lazy="true" class="w-full md:h-[166px] h-[199px] cursor-pointer bg-gray-50"/>
|
: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">
|
<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 {getViews} from "~/utils/common";
|
||||||
import {pageCmsArticle} from "~/api/cms/cmsArticle";
|
import {pageCmsArticle} from "~/api/cms/cmsArticle";
|
||||||
import {FILE_SERVER} from "~/config";
|
import {FILE_SERVER} from "~/config";
|
||||||
|
import {pageCmsArticleContent} from "~/api/cms/cmsArticleContent";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -69,17 +70,17 @@ const where = reactive<CmsArticleParam>({
|
|||||||
keywords: undefined,
|
keywords: undefined,
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 12,
|
limit: 12,
|
||||||
status: 0,
|
// status: 0,
|
||||||
parentId: undefined,
|
// parentId: undefined,
|
||||||
categoryId: undefined,
|
// categoryId: undefined,
|
||||||
lang: i18n.locale.value
|
// lang: i18n.locale.value
|
||||||
});
|
});
|
||||||
|
|
||||||
// 加载页面数据
|
// 加载页面数据
|
||||||
const reload = async () => {
|
const reload = async () => {
|
||||||
list.value = [];
|
list.value = [];
|
||||||
|
|
||||||
pageCmsArticle(where).then(response => {
|
pageCmsArticleContent(where).then(response => {
|
||||||
list.value = response?.list || [];
|
list.value = response?.list || [];
|
||||||
total.value = response?.count || 0;
|
total.value = response?.count || 0;
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<el-form-item label="身份证">
|
<el-form-item label="身份证">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="sfzFile"
|
v-model:file-list="sfzFile"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: 5,
|
TenantId: 5,
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
<el-form-item label="营业执照" required>
|
<el-form-item label="营业执照" required>
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="yyzzFile"
|
v-model:file-list="yyzzFile"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: 5,
|
TenantId: 5,
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
<el-form-item label="门头照片">
|
<el-form-item label="门头照片">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="image"
|
v-model:file-list="image"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: 5,
|
TenantId: 5,
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
<el-form-item label="其他证件">
|
<el-form-item label="其他证件">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="files"
|
v-model:file-list="files"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: 5,
|
TenantId: 5,
|
||||||
@@ -228,7 +228,7 @@
|
|||||||
<el-form-item label="身份证">
|
<el-form-item label="身份证">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="sfzFile"
|
v-model:file-list="sfzFile"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: 5,
|
TenantId: 5,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<el-form-item label="上传头像" class="px-4">
|
<el-form-item label="上传头像" class="px-4">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="avatar"
|
v-model:file-list="avatar"
|
||||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
action="https://server.gxbsnx.com/api/oss/upload"
|
||||||
:headers="{
|
:headers="{
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
TenantId: 5,
|
TenantId: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user