浏览代码

登录页替换

王通 1 年之前
父节点
当前提交
e1728c355a
共有 1 个文件被更改,包括 21 次插入3 次删除
  1. 21 3
      src/views/system/login.vue

+ 21 - 3
src/views/system/login.vue

@@ -22,11 +22,11 @@
       popper-class="sj-pop"
     >
       <div class="img-container">
-        <a class="img-list" onclick="window.open('https://pan.baidu.com/s/1MlWyhFw6pEYiaLvzsje-BA?pwd=3jps')">
+        <a class="img-list" :href="video_plugin_url" target="_blank">
           <img src="../../assets/images/login-b-1.png" alt="" />
           <span>视频插件</span>
         </a>
-        <a class="img-list" onclick="window.open('https://pan.baidu.com/s/1MlWyhFw6pEYiaLvzsje-BA?pwd=3jps')">
+        <a class="img-list" :href="meeting_plugin_url" target="_blank">
           <img src="../../assets/images/login-b-2.png" alt="" />
           <span>会议插件</span>
         </a>
@@ -37,7 +37,7 @@
             <span>手机APP</span>
           </div>
         </el-popover>
-        <a class="img-list" onclick="window.open('https://pan.baidu.com/s/1MlWyhFw6pEYiaLvzsje-BA?pwd=3jps')">
+        <a class="img-list" :href="help_url" target="_blank">
           <img src="../../assets/images/login-b-4.png" alt="" />
           <span>使用帮助</span>
         </a>
@@ -121,6 +121,9 @@
 </template>
 
 <script>
+import {
+  getConfigKey
+} from "@/api/system/config";
   import StarBackground from "@/components/star";
   import {
     getCodeImg,
@@ -158,6 +161,9 @@
         verified: true,
         popoverVisible:false,
         QRCode: "",
+        video_plugin_url: "",
+        meeting_plugin_url: "",
+        help_url: "",
         backgroudImg: "", //背景图片
         systemTitle: {
           title: "", //标题
@@ -214,11 +220,23 @@
       this.getVersionInfo();
     },
     methods: {
+      this.getConfigKey();
       getVersionInfo(){
         getVersionInfo().then(res => {
           this.QRCode = res.data.picUrl
         })
       },
+      getConfigKey(){
+        getConfigKey('video_plugin_url').then(response => {
+          this.video_plugin_url = response.msg
+        })
+        getConfigKey('meeting_plugin_url').then(response => {
+          this.meeting_plugin_url = response.msg
+        })
+        getConfigKey('help_url').then(response => {
+          this.help_url = response.msg
+        })
+      },
       fontConfig() {
         fontConfig().then((res) => {
           this.systemTitle.title = res.data.fontTitle;