From a75952451bb376a4c5624e62c744930f91f4401b Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期二, 03 十一月 2020 18:15:07 +0800
Subject: [PATCH] 添加多页面ico配置

---
 src/pages/index/App.vue |   64 +++++++++++++++++++++++--------
 1 files changed, 47 insertions(+), 17 deletions(-)

diff --git a/src/pages/index/App.vue b/src/pages/index/App.vue
index 22a9f70..4218947 100644
--- a/src/pages/index/App.vue
+++ b/src/pages/index/App.vue
@@ -1,7 +1,7 @@
 <template>
   <div class v-loading="vLoading" :style="`width: ${currentWidth}px;height:${currentHeight}px`">
     <div class="web-site">
-      <a href="http://www.aiotlink.com" target="_blank">www.aiotlink.com</a>
+      <a href="http://www.smartai.com" target="_blank">www.smartai.com</a>
     </div>
     <licence />
     <div class="right-bg" style>
@@ -45,7 +45,10 @@
           </el-form-item>
         </el-form>
       </div>
-      <p class="gradient-text gradient-text-one">鈥斺�斺�� {{serverTitle || '鏅� 鑳� 璁� 绠� 鑺� 鐐� 鈥� ReID'}} 鈥斺�斺��</p>
+      <!-- <p class="gradient-text gradient-text-one">鈥斺�斺�� {{serverTitle || 'SmartAI 鈥� ReID'}} 鈥斺�斺��</p> -->
+      <p class="gradient-text gradient-text-one">鈥斺�� <b>SmartAI</b> 浜哄伐鏅鸿兘鎿嶄綔绯荤粺 鈥斺��</p>
+      <p class="gradient-text gradient-text-one" style="letter-spacing: 1.8px;font-size:15px;"> V1.0.0 </p>
+
     </div>
   </div>
 </template>
@@ -54,6 +57,7 @@
 import { tologin, getLoginUserData, getServerName } from './api.ts'
 import ParticleNetwork from './ParticleNetwork'
 import Licence from '@/components/licence'
+import { getMenuListData, findButtonAuthoritys, findInArr } from "@/api/utils";
 
 export default {
   name: 'login-pgae',
@@ -83,6 +87,17 @@
     currentHeight: 1057,
     currentWidth: 1920
   }),
+  created() {
+    this.getServerName()
+    this.getScreenHeight()
+  },
+  mounted() {
+    console.log(this.serverTitle)
+  },
+  watch: {},
+  beforeDestroy() {
+    window.onresize = null
+  },
   methods: {
     systemLogin() {
       this.nullRule = this.rules
@@ -138,8 +153,9 @@
           type: 'success',
           message: '鐧诲綍鎴愬姛锛�'
         })
-        // await this.getMenuList()
-        // this.$router.push('/Layout/Video')
+
+        // 鑾峰彇鏉冮檺
+        await this.getMenuList()
         location.assign("/view/desktop/")
         return json
       } else {
@@ -166,22 +182,33 @@
     async getServerName() {
       let res = await getServerName()
       if (res && res.success) {
+        console.log(res.data.serverName)
         this.serverTitle = res.data.serverName
         window.document.title = res.data.serverName
           ? res.data.serverName
-          : '鏅� 鑳� 璁� 绠� 鑺� 鐐�'
+          : 'SmartAI'
         sessionStorage.setItem('title', res.data.serverName)
       }
     },
+    async getMenuList() {
+      let results = await getMenuListData({});
+      if (results && results.success) {
+        /* 瀛樺偍鏉冮檺 */
+        let buttonAuthoritys = results.data;
+        // console.log(this.$route.query.is_loginsss)
+        if (results && results.length && this.$route.query.is_login) {
+          this.$router.replace(results[0].url);
+        }
+        sessionStorage.setItem("buttonAuthoritys", "," + buttonAuthoritys + ",");
+        sessionStorage.setItem("menuInfo", JSON.stringify(results));
+      } else {
+        this.$toast({
+          type: "error",
+          message: "鑿滃崟鑾峰彇澶辫触"
+        });
+      }
+    },
   },
-  created() {
-    this.getServerName()
-    this.getScreenHeight()
-  },
-  watch: {},
-  beforeDestroy() {
-    window.onresize = null
-  }
 }
 </script>
 <style lang="scss">
@@ -214,10 +241,10 @@
 }
 .left-bg {
   position: absolute;
-  top: 30%;
+  top: 29%;
   right: 18%;
   width: 390px;
-  height: 402px;
+  height: 426px;
   background: rgba(146, 208, 255, 0.23);
   border-radius: 4px;
   text-align: center;
@@ -237,11 +264,14 @@
     // margin: 24px 10px 40px 10px;
   }
   .gradient-text {
-    line-height: 50px;
-    font-size: 20px;
+    line-height: 36px;
+    font-size: 17px;
     font-family: -webkit-pictograph;
     font-weight: bolder;
     position: relative;
+    b{
+      font-size: 20px;
+    }
   }
   .gradient-text-one {
     background-image: linear-gradient(to right, #51feff 5%, #ff8725 100%);

--
Gitblit v1.8.0