zs 1 год назад
Родитель
Сommit
64f6e331aa

+ 1 - 6
src/components/head.vue

@@ -9,12 +9,7 @@
   </div>
 </template>
 <script setup lang="ts">
-import { toRefs } from 'vue';
-// #region 参数传递
-const props = defineProps({
-  siteInfo: { type: Object, default: () => { } }
-});
-const { siteInfo } = toRefs(props);
+import { siteInfo } from '@/layout/site';
 </script>
 <style scoped lang="scss">
 .one {

+ 1 - 2
src/views/achieve/detail.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo" style="background-color: #2e3546; color: #f0f2f5"></cHead>
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <el-row :span="24" class="one_1">
@@ -64,7 +64,6 @@
 import type { Ref } from 'vue';
 import { onMounted, ref } from 'vue';
 import { useRoute } from 'vue-router';
-import { siteInfo } from '@/layout/site';
 import { MessageOutlined } from '@ant-design/icons-vue';
 // 接口
 // import { ToolsStore } from '@/stores/tool';

+ 5 - 1
src/views/achieve/index.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch">
@@ -46,6 +47,7 @@
               @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>
@@ -257,7 +259,9 @@ const onShowSizeChange = (current: number, pageSize: number) => {
   background: url(/src/assets/detail.png) right top no-repeat;
   background-size: 100%;
 
-  .one {}
+  .one {
+    margin: 10px 0 0 0;
+  }
 
   .two {
     .list {

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

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <el-tabs v-model="activeName" @tab-click="handleClick">
@@ -28,6 +29,7 @@
             <a-pagination v-model:page-size="limit" show-size-changer :page-size-options="pageSizeOptions" :total="total" @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>

+ 1 - 2
src/views/activity/new.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo" style="background-color: #2e3546; color: #f0f2f5"></cHead>
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <el-row :span="24" class="one_1">
@@ -40,7 +40,6 @@
 import type { Ref } from 'vue';
 import { onMounted, ref } from 'vue';
 import { useRoute } from 'vue-router';
-import { siteInfo } from '@/layout/site';
 // 接口
 // import { ToolsStore } from '@/stores/tool';
 // import type { IQueryResult } from '@/util/types.util';

+ 1 - 2
src/views/demand/detail.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo" style="background-color: #2e3546; color: #f0f2f5"></cHead>
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <el-row :span="24" class="one_1">
@@ -62,7 +62,6 @@
 import type { Ref } from 'vue';
 import { onMounted, ref } from 'vue';
 import { useRoute } from 'vue-router';
-import { siteInfo } from '@/layout/site';
 import { MessageOutlined } from '@ant-design/icons-vue';
 // 接口
 // import { ToolsStore } from '@/stores/tool';

+ 5 - 3
src/views/demand/index.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch">
@@ -39,6 +40,7 @@
             <a-pagination v-model:page-size="limit" show-size-changer :page-size-options="pageSizeOptions" :total="total" @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>
@@ -243,9 +245,9 @@ const onShowSizeChange = (current: number, pageSize: number) => {
 .main {
   background: url(/src/assets/detail.png) right top no-repeat;
   background-size: 100%;
-
-  .one {}
-
+  .one {
+    margin: 10px 0 0 0;
+  }
   .two {
     .list {
       background: #fff;

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

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo" style="background-color: #2e3546; color: #f0f2f5"></cHead>
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-row class="help">
             <el-col :span="6" class="left">
@@ -58,7 +58,6 @@ import type { Ref } from 'vue';
 import { onMounted, ref, reactive } from 'vue';
 import { useRoute } from 'vue-router';
 import { ItemType } from 'ant-design-vue';
-import { siteInfo } from '@/layout/site';
 // 接口
 // import { ToolsStore } from '@/stores/tool';
 // import type { IQueryResult } from '@/util/types.util';

+ 1 - 1
src/views/login/index.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo"></cHead>
+        <cHead></cHead>
         <el-col :span="24" class="two">
           <div class="logo">
             <el-image class="image" src="/src/assets/login.jpeg" fit="fill" />

+ 1 - 0
src/views/policy/detail.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <div class="span">{{ info.title || '暂无标题' }}</div>

+ 5 - 0
src/views/policy/index.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <el-tabs v-model="activeName" @tab-click="handleClick" v-if="type == 0">
@@ -39,6 +40,7 @@
               @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>
@@ -181,6 +183,9 @@ const handleClick = (tab: TabsPaneContext, event: Event) => {
 .main {
   background: url(/src/assets/detail.png) right top no-repeat;
   background-size: 100%;
+  .one {
+    margin: 10px 0 0 0;
+  }
 
   .two {
     .list:hover {

+ 1 - 1
src/views/register/index.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo"></cHead>
+        <cHead ></cHead>
         <el-col :span="24" class="two">
           <div class="logo">
             <el-image class="image" src="/src/assets/login.jpeg" fit="fill" />

+ 1 - 2
src/views/service/detail.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo" style="background-color: #2e3546; color: #f0f2f5"></cHead>
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-row style="margin: 20px 0 0 0;">
             <el-col :span="8" class="image">
@@ -71,7 +71,6 @@
 import type { Ref } from 'vue';
 import { onMounted, ref } from 'vue';
 import { useRoute } from 'vue-router';
-import { siteInfo } from '@/layout/site';
 import { MessageOutlined } from '@ant-design/icons-vue';
 // 接口
 // import { ToolsStore } from '@/stores/tool';

+ 5 - 0
src/views/service/index.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch">
@@ -40,6 +41,7 @@
             <a-pagination v-model:page-size="limit" show-size-changer :page-size-options="pageSizeOptions" :total="total" @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>
@@ -226,6 +228,9 @@ const onShowSizeChange = (current: number, pageSize: number) => {
 .main {
   background: url(/src/assets/detail.png) right top no-repeat;
   background-size: 100%;
+  .one {
+    margin: 10px 0 0 0;
+  }
 
   .two {
     .list {

+ 1 - 2
src/views/trade/detail.vue

@@ -2,7 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <cHead :siteInfo="siteInfo" style="background-color: #2e3546; color: #f0f2f5"></cHead>
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <el-row :span="24" class="one_1">
@@ -80,7 +80,6 @@
 import type { Ref } from 'vue';
 import { onMounted, ref } from 'vue';
 import { useRoute } from 'vue-router';
-import { siteInfo } from '@/layout/site';
 import { MessageOutlined } from '@ant-design/icons-vue';
 // 接口
 // import { ToolsStore } from '@/stores/tool';

+ 5 - 1
src/views/trade/one.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
@@ -30,6 +31,7 @@
             <a-pagination v-model:page-size="limit" show-size-changer :page-size-options="pageSizeOptions" :total="total" @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>
@@ -194,7 +196,9 @@ const onShowSizeChange = (current: number, pageSize: number) => {
 .main {
   background: url(/src/assets/detail.png) right top no-repeat;
   background-size: 100%;
-  .one {}
+  .one {
+    margin: 10px 0 0 0;
+  }
 
   .two {
     .list {

+ 7 - 5
src/views/trade/two.vue

@@ -2,6 +2,7 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <cHead style="background-color: #2e3546; color: #f0f2f5"></cHead>
         <div class="w_1200">
           <el-col :span="24" class="one">
             <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
@@ -11,8 +12,7 @@
               <template #renderItem="{ item }">
                 <a-list-item key="item.name" @click="toView(item)">
                   <template #extra>
-                    <img width="272" alt="logo"
-                      src="https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png" />
+                    <img width="272" alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png" />
                   </template>
                   <el-col :span="24" class="name textOver">
                     <el-tooltip effect="dark" :content="item.name" placement="top">
@@ -27,10 +27,10 @@
             </a-list>
           </el-col>
           <el-col :span="24" class="thr">
-            <a-pagination v-model:page-size="limit" show-size-changer :page-size-options="pageSizeOptions" :total="total"
-              @showSizeChange="onShowSizeChange" />
+            <a-pagination v-model:page-size="limit" show-size-changer :page-size-options="pageSizeOptions" :total="total" @showSizeChange="onShowSizeChange" />
           </el-col>
         </div>
+        <cFoot style="background-color: #2e3546; color: #f0f2f5"></cFoot>
       </el-col>
     </el-row>
   </div>
@@ -199,7 +199,9 @@ const onShowSizeChange = (current: number, pageSize: number) => {
 </script>
 <style scoped lang="scss">
 .main {
-  .one {}
+  .one {
+    margin: 10px 0 0 0;
+  }
 
   .two {
     .name {