Browse Source

首页功能完善和页面跳转完善

songxy 3 months ago
parent
commit
81174eae0d

+ 10 - 8
ais_search_sj/web/public/config.js

@@ -36,21 +36,23 @@
       // 政策
       privacy: '/privacy.html',
 
-      // 万维官网
-      zjugis: 'https://zjugis.com/home/index.html',
-
       // 主页
-      home: '/aisearch/#/home',
+      home: '/#/index',
+
+      // AI搜索
+      aiSearch: '/#/home',
+
+      // 智能撰稿献策
+      aiWrite: '/#/aiWrite',
+
+      //智能查数用数
+      sjznfx: '/#/sjznfx',
 
       // 注册页
       register: '/#/register',
 
-      landMarketUrl: "https://zjugpt.com/land/#/landSupermarket",
-
       map: 'https://www.gscloud.cn/sources/index?pid=1&rootid=1',
 
-      tool: 'http://guihuayun.com/',
-
     },
 
     tdtToken: '339e600c45a24c5d462c384bd8a1d257',

BIN
ais_search_sj/web/src/assets/images/index-logo.png


BIN
ais_search_sj/web/src/assets/images/index-title1.png


BIN
ais_search_sj/web/src/assets/images/index-title2.png


BIN
ais_search_sj/web/src/assets/images/index-title3.png


+ 0 - 202
ais_search_sj/web/src/layout/footer/BasicFooter.vue

@@ -1,202 +0,0 @@
-<template>
-<div class="footer">
-  <div class="footer-top">
-    <div class="top-item about">
-      <div class="title about-title">关于万维自然资源大模型</div>
-      <div class="about-list">
-        <div class="about-item">使用指南</div>
-        <div class="about-item">购买指南</div>
-        <div class="about-item" @click="linkToZjugisHome">关于万维</div>
-        <div class="about-item">合作伙伴</div>
-        <div class="about-item">法律申明</div>
-        <div class="about-item" @click="linkToPrivacy">隐私政策</div>
-      </div>
-    </div>
-    <a-divider class="divider" type="vertical" />
-    <div class="top-item about">
-      <div class="title about-title">联系我们</div>
-      <div class="about-list">
-        <div class="about-item about-item-2">
-          <div class="icon icon-phone"></div>
-          <div class="info phone">0571-89922306</div>
-        </div>
-        <div class="about-item about-item-2">
-          <div class="icon icon-address"></div>
-          <div class="info address">杭州市滨江区月明路560号1幢20层</div>
-        </div>
-
-
-      </div>
-    </div>
-
-    <div class="top-item about">
-      <div class="qrcode"></div>
-      <div class="desc">万维客服</div>
-    </div>
-    <a-divider style="margin-left: 40px" class="divider" type="vertical" />
-    <div class="top-item about" style="width: 136px">
-      <div class="title about-title">关于我们</div>
-      <div class="about-list">
-        <div class="about-item about-item-2">
-          <div class="icon icon-wechat"></div>
-          <div class="info wechat">微信公众号</div>
-        </div>
-        <div class="about-item about-item-2">
-          <div class="icon icon-app"></div>
-          <div class="info address">移动APP</div>
-        </div>
-        <div class="about-item about-item-2">
-          <div class="icon icon-wechat-app"></div>
-          <div class="info wechat-app">微信小程序</div>
-        </div>
-
-      </div>
-    </div>
-  </div>
-  <div class="footer-bottom">
-    <div class="bot-item copyright">版权所有:浙江万维空间信息技术有限公司</div>
-    <div class="bot-item copyright-num"><div class="icon"></div>浙ICP备20019525号-9</div>
-    <div class="bot-item record-num">浙公网安备3301080201</div>
-  </div>
-</div>
-</template>
-<script setup>
-
-import { linkToPrivacy, linkToZjugisHome } from '@/utils/external-links';
-</script>
-<style scoped lang="scss">
-.footer {
-  width: 100%;
-  height: 214px;
-  background: #1F2738;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  flex-direction: column;
-  padding: 20px;
-
-  .footer-top {
-    height: calc(100% - 40px);
-    margin-top: 17px;
-    display: flex;
-    .about {
-
-      .title {
-        font-family: AlibabaPuHuiTi;
-        font-weight: 400;
-        font-size: 16px;
-        color: #FFFFFF;
-        margin-bottom: 16px;
-      }
-
-      .about-list {
-        display: flex;
-        flex-wrap: wrap;
-
-        .about-item {
-          width: 33%;
-          margin-bottom: 20px;
-          cursor: pointer;
-          font-family: AlibabaPuHuiTi;
-          font-weight: 400;
-          font-size: 14px;
-          color: #FFFFFF;
-
-          &-2 {
-            width: 100%;
-            display: flex;
-            align-items: center;
-            margin-bottom: 10px;
-
-            .icon {
-              width: 20px;
-              height: 20px;
-
-              &-phone {
-                background: url("@/assets/images/footer/about-phone.png") no-repeat;
-                background-size: 100% 100%;
-              }
-
-              &-address {
-                background: url("@/assets/images/footer/about-address.png") no-repeat;
-                background-size: 100% 100%;
-              }
-
-              &-wechat {
-                background: url("@/assets/images/footer/about-wechat.png") no-repeat;
-                background-size: 100% 100%;
-              }
-
-              &-app {
-                background: url("@/assets/images/footer/about-app.png") no-repeat;
-                background-size: 100% 100%;
-              }
-
-              &-wechat-app {
-                background: url("@/assets/images/footer/about-wechat-app.png") no-repeat;
-                background-size: 100% 100%;
-              }
-            }
-
-            .info {
-              margin-left: 10px;
-            }
-          }
-
-          &:hover {
-            color: #0a84ff;
-          }
-        }
-      }
-
-      .qrcode {
-        width: 88px;
-        height: 88px;
-        background-size: 100% 100%;
-        background: url("@/assets/images/footer/about-qrcode.png") no-repeat;
-      }
-
-      .desc {
-        width: 88px;
-        text-align: center;
-        margin-top: 10px;
-        font-family: AlibabaPuHuiTi;
-        font-weight: 400;
-        font-size: 14px;
-        color: #FFFFFF;
-      }
-
-    }
-
-    .divider {
-      height: 120px;
-      color: #fff;
-      background-color: #ccc;
-      margin-right: 46px;
-    }
-  }
-  .footer-bottom {
-    display: flex;
-    align-items: center;
-    height: 20px;
-
-    .bot-item {
-      margin-right: 20px;
-      font-family: AlibabaPuHuiTi;
-      font-weight: 400;
-      font-size: 14px;
-      color: #FFFFFF;
-      display: flex;
-      align-items: center;
-
-      .icon {
-        width: 20px;
-        height: 20px;
-        background: url("@/assets/images/footer/footer-gongan.png") no-repeat;
-        background-size: 100% 100%;
-        margin-right: 4px;
-      }
-    }
-  }
-}
-</style>

+ 7 - 2
ais_search_sj/web/src/utils/external-links.js

@@ -5,10 +5,15 @@ export const linkToAgreement = () => linkByLinksKey('agreement');
 
 export const linkToPrivacy = () => linkByLinksKey('privacy');
 
-export const linkToZjugisHome = () => linkByLinksKey('zjugis');
-
 export const linkToRegister = () => linkByLinksKey('register');
+
 export const linkToHome = () => linkByLinksKey('home');
 
+export const linkToAiSearch = () => linkByLinksKey('aiSearch');
+
+export const linkToAiwrite = () => linkByLinksKey('aiWrite');
+
+export const linkToSjznfx = () => linkByLinksKey('sjznfx');
+
 export const linkByLinksKey = key => window.open(window.AppGlobalConfig.links[key], '_blank')
 

+ 0 - 1
ais_search_sj/web/src/views/ai-write/index.vue

@@ -7,7 +7,6 @@
   </div>
 </template>
 <script lang="ts" setup>
-import HomeHeader from '@/views/home/components/HomeHeader.vue';
 
 </script>
 <style scoped lang="scss">

+ 1 - 8
ais_search_sj/web/src/views/home/components/HomeHeader.vue

@@ -2,7 +2,6 @@
   <div class="home-header">
     <div class="left">
       <div class="sys-icon" @click="linkToHome">
-        <div class="logo"></div>
         <div class="title">{{ systemTitle }}</div>
       </div>
       <div v-if="subTitle" class="sub_title">{{ subTitle }}</div>
@@ -41,16 +40,10 @@ const props = defineProps({
       margin-right: 11px;
       display: flex;
       align-items: center;
-      >.logo {
-        width:  42px;
-        height: 42px;
-        background: url('@/assets/images/home/home-logo.png') no-repeat;
-        background-size: 100% 100%;
-      }
       >.title {
         font-family: AlimamaShuHeiTi-Bold;
         font-size: 25px;
-        margin-left: 10px;
+        margin-left: 0px;
         color: #222222;
       }
     }

+ 0 - 82
ais_search_sj/web/src/views/index/components/HomeHeader.vue

@@ -1,82 +0,0 @@
-<template>
-  <div class="home-header">
-    <div class="left">
-      <div class="sys-icon" @click="linkToHome">
-        <div class="logo"></div>
-        <div class="title">{{ systemTitle }}</div>
-      </div>
-      <div v-if="subTitle" class="sub_title">{{ subTitle }}</div>
-    </div>
-    <div class="right user-panel" v-if="false">
-      <user-avatar />
-    </div>
-  </div>
-</template>
-<script setup>
-import UserAvatar from '@/views/components/UserNewAvatar.vue';
-import { linkToHome } from '@/utils/external-links';
-
-const systemTitle = ref(AppGlobalConfig.system.name)
-const props = defineProps({
-  subTitle: {
-    type: String,
-    default: ''
-  }
-})
-</script>
-<style scoped lang="scss">
-.home-header {
-  width: 100%;
-  cursor: pointer;
-  height: 100%;
-  padding: 0 40px 0 40px;
-  display: flex;
-  justify-content: space-between;
-  .left {
-    height: 100%;
-    display: flex;
-    justify-content: flex-start;
-    align-items: center;
-    .sys-icon {
-      margin-right: 11px;
-      display: flex;
-      align-items: center;
-      >.logo {
-        width:  42px;
-        height: 42px;
-        background: url('@/assets/images/home/home-logo.png') no-repeat;
-        background-size: 100% 100%;
-      }
-      >.title {
-        font-family: AlimamaShuHeiTi-Bold;
-        font-size: 25px;
-        margin-left: 10px;
-        color: #222222;
-      }
-    }
-    >.sub_title {
-      color: #2089F0;
-      position: relative;
-      padding-left: 11px;
-      font-size: 22px;
-      font-weight: bolder;
-      &::before {
-        position: absolute;
-        left: 0px;
-        top: 3px;
-        bottom: 3px;
-        margin: auto;
-        content: "";
-        display: block;
-        background: #E5E6E6;
-        width: 1px;
-      }
-    }
-  }
-
-  .right {
-    height: 100%;
-    width: 180px;
-  }
-}
-</style>

+ 31 - 24
ais_search_sj/web/src/views/index/index.vue

@@ -2,13 +2,14 @@
   <div class="index-box">
     <div class="index-top"></div>
     <div class="index-circle"></div>
+    <div class="index-logo">
+      <img src="../../assets/images/index-logo.png" />
+    </div>
     <ul>
-      <li @click="toPageHandle('Home')">
+      <li @click="toPageHandle('AiSearch')">
         <div class="icon_box">
           <div class="circle1">
-            <div class="circle2">
-              
-            </div>
+            <img src="../../assets/images/index-title1.png" />
           </div>
         </div>
         <p>智能查策问策</p>
@@ -16,9 +17,7 @@
       <li @click="toPageHandle('AiWrite')">
         <div class="icon_box">
           <div class="circle1">
-            <div class="circle2">
-              
-            </div>
+            <img src="../../assets/images/index-title2.png" />
           </div>
         </div>
         <p>智能撰稿献策</p>
@@ -26,9 +25,7 @@
       <li @click="toPageHandle('Sjznfx')">
         <div class="icon_box">
           <div class="circle1">
-            <div class="circle2">
-              
-            </div>
+            <img src="../../assets/images/index-title3.png" />
           </div>
         </div>
         <p>智能查数用数</p>
@@ -37,11 +34,15 @@
   </div>
 </template>
 <script setup>
-const router = useRouter();
+import { linkToAiSearch, linkToAiwrite, linkToSjznfx } from '@/utils/external-links';
+
+const map = {
+  'AiSearch': linkToAiSearch,
+  'AiWrite': linkToAiwrite,
+  'Sjznfx': linkToSjznfx
+}
 const toPageHandle = (name) => {
-  router.push({
-    name
-  })
+  map[name] && map[name]()
 }
 </script>
 <style scoped lang="scss">
@@ -69,6 +70,16 @@ const toPageHandle = (name) => {
     left: 0px;
     background: #fff;
   }
+  >.index-logo {
+    height: 90px;
+    position: relative;
+    z-index: 99999999;
+    text-align: center;
+    top: calc(50% - 200px);
+    >img {
+      height: 100%;
+    }
+  }
   >ul {
     display: flex;
     align-items: center;
@@ -84,16 +95,12 @@ const toPageHandle = (name) => {
         .circle1 {
           display: inline-block;
           padding: 10px;
-          background: rgba(96, 166, 255, 0.23);
-          border: 5px solid #FFFFFF;
-          border-radius: 50%;
-        }
-        .circle2 {
-          width: 140px;
-          height: 140px;
-          background: radial-gradient( 0% 0% at 50% 50%, #128AF1 0%, #3BA5FF 100%);
-          border: 5px solid #FFFFFF;
-          border-radius: 50%;
+          width: 170px;
+          height: 170px;
+          >img {
+            width: 100%;
+            height: 100%;
+          }
         }
       }
       >p {

+ 0 - 4
ais_search_sj/web/src/views/register/register.vue

@@ -67,9 +67,6 @@
     </div>
 
     <affix-card />
-    <div class="footer">
-      <basic-footer />
-    </div>
   </div>
 
 </template>
@@ -82,7 +79,6 @@ import { message } from 'ant-design-vue';
 import { isEmptyStr } from '@/utils/common';
 import useUserStore from '../../stores/user/user';
 import { encrypt } from '@/utils/crypto-md5';
-import BasicFooter from '@/layout/footer/BasicFooter.vue';
 import AffixCard from '@/views/components/AffixCard.vue';
 import AiSearchHeader from '@/views/ai-search/components/AiSearchHeader.vue';
 import AiSearchSubHeader from '@/views/ai-search/components/AiSearchSubHeader.vue';

+ 4 - 4
ais_search_sj/web/src/views/sjznfx/index.vue

@@ -1,10 +1,10 @@
 <template>
   <div class="ai_write_box">
     <div class="header">
-      <home-header @login="emits('login')" sub-title="知识库管理" />
+      <home-header @login="emits('login')" sub-title="智能查数用数" />
     </div>
     <div class="container">
-      <iframe frameborder="no" src='http://60.191.110.204:8510/#/sjznfx'></iframe>
+      <iframe frameborder="no" src='/querySum/#/sjznfx'></iframe>
     </div>
   </div>
 </template>
@@ -26,9 +26,9 @@ import HomeHeader from '@/views/home/components/HomeHeader.vue';
   }
   >.container {
     width: 100%;
-    height: calc(100% - 60px);
+    height: 100%;
     position: absolute;
-    top: 60px;
+    top: 0px;
     >iframe {
       width: 100%;
       height: 100%;

+ 13 - 0
ais_search_sj/web/vite.config.js

@@ -78,6 +78,19 @@ export default defineConfig({
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/arcserver-host/, '')
       },
+      "/querySum": {
+        target: 'http://60.191.110.204:8510',
+        changeOrigin: true,
+        rewrite: (path) => path.replace(/^\/querySum/, '')
+      },
+      "/static": {
+        target: 'http://60.191.110.204:8510',
+        changeOrigin: true
+      },
+      "/server": {
+        target: 'http://60.191.110.204:8510',
+        changeOrigin: true
+      },
     },
 
   }