zs 1 gadu atpakaļ
vecāks
revīzija
0624332639

+ 3 - 6
src/layout/index.vue

@@ -79,7 +79,7 @@
     </div>
     <div class="bottom">
       <div class="w_1200 footflex">
-        <el-image class="image" :src="unit" fit="fill" />
+        <el-image class="image" :src="footInfo.Unit" fit="fill" />
         <el-col :span="12" class="foot_1">
           <div class="footTitle">
             <span>业务洽谈:{{ footInfo.Phone }}</span>
@@ -102,8 +102,8 @@
           </div>
         </el-col>
         <el-col :span="4" class="foot_3 footflex">
-          <el-image class="image" :src="code" fit="fill" />
-          <el-image class="image" :src="code" fit="fill" />
+          <el-image class="image" :src="footInfo.Code" fit="fill" />
+          <el-image class="image" :src="footInfo.Code" fit="fill" />
         </el-col>
       </div>
     </div>
@@ -123,9 +123,6 @@ import { UserStore } from '@/store/user'
 const userStore = UserStore()
 const user = computed(() => userStore.user)
 const data = ref([])
-// 图片引入
-import code from '@/assets/code.png'
-import unit from '@/assets/unit.png'
 
 // 请求
 onMounted(async () => {

+ 6 - 6
src/layout/site.js

@@ -1,18 +1,16 @@
 // 图片引入
 import logo from '@/assets/logo.png'
 import home from '@/assets/home.jpg'
+import Code from '@/assets/code.png'
+import Unit from '@/assets/unit.png'
 // 网站基本设置
 export const siteInfo = {
   display: false,
   zhTitle: '新一代信息技术孵化平台',
   zhEnglish: 'Information Technology Incubation Platform',
   zhBrief: '方寸心间 创新无限',
-  zhAddress: '吉林省长春市前进大街力旺广场',
-  zhPhone: '400-469-1899',
-  zhMailbox: '123456789@.com',
   logoUrl: logo,
-  videoUrl: home,
-  copyright: '版权所有(C)2002-2024新一代信息技术孵化平台.All Rights Reserved.吉ICP备12029479号-2'
+  videoUrl: home
 }
 // 网站底部信息
 export const footInfo = {
@@ -20,7 +18,9 @@ export const footInfo = {
   Email: 'jlpstm@126.com',
   Address: '长春朝阳区前进大街1244号(吉林省科技厅科研园)',
   Copyright: 'Copyright©2007-2024 吉林省创新指导中心 │ 吉ICP备14005689号',
-  Company: '长春市福瑞科技有限公司'
+  Company: '长春市福瑞科技有限公司',
+  Code,
+  Unit
 }
 // 菜单设置
 export const menuList = [

+ 40 - 0
src/store/api/platform/design.js

@@ -0,0 +1,40 @@
+import { defineStore } from 'pinia'
+import { AxiosWrapper } from '@/utils/axios-wrapper'
+import { get } from 'lodash-es'
+const url = '/design'
+const axios = new AxiosWrapper()
+
+export const DesignStore = defineStore('design', () => {
+  const query = async ({ skip = 0, limit = undefined, ...info } = {}) => {
+    let cond = {}
+    if (skip) cond.skip = skip
+    if (limit) cond.limit = limit
+    cond = { ...cond, ...info }
+    const res = await axios.$get(`${url}`, cond)
+    return res
+  }
+  const fetch = async (payload) => {
+    const res = await axios.$get(`${url}/${payload}`)
+    return res
+  }
+  const create = async (payload) => {
+    const res = await axios.$post(`${url}`, payload)
+    return res
+  }
+  const update = async (payload) => {
+    const id = get(payload, 'id', get(payload, '_id'))
+    const res = await axios.$post(`${url}/${id}`, payload)
+    return res
+  }
+  const del = async (payload) => {
+    const res = await axios.$delete(`${url}/${payload}`)
+    return res
+  }
+  return {
+    query,
+    fetch,
+    create,
+    update,
+    del
+  }
+})

+ 2 - 2
src/views/index/index.vue

@@ -73,7 +73,7 @@
             </el-row>
           </div>
           <div class="four">
-            {{ siteInfo.copyright }}
+            {{ footInfo.Copyright }}
           </div>
         </div>
       </el-col>
@@ -83,7 +83,7 @@
 
 <script setup>
 // 基础
-import { siteInfo, menuList } from '@/layout/site'
+import { siteInfo, footInfo, menuList } from '@/layout/site'
 import { UserStore } from '@/store/user'
 const userStore = UserStore()
 const user = computed(() => userStore.user)