Selaa lähdekoodia

更换登录页背景图片地址

Michael Wang 3 vuotta sitten
vanhempi
commit
2d6bcc027e
1 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  1. 8 2
      src/features/Login/Login.vue

+ 8 - 2
src/features/Login/Login.vue

@@ -16,7 +16,7 @@
       <a class="close" @click="closeApp"> 关闭 </a>
     </header>
 
-    <div class="center">
+    <div class="center" :style="{ backgroundImage: backgroundUrl }">
       <div class="content">
         <div style="display: flex">
           <a
@@ -238,6 +238,12 @@ export default {
       // "!/progressive/true/format/webp"
       return this.QECSConfig.LOGO_FILE_URL ? this.QECSConfig.LOGO_FILE_URL : "";
     },
+    backgroundUrl() {
+      return `url(${
+        this.QECSConfig.STUDENT_CLIENT_BG_PICTURE_URL ||
+        "https://cdn.qmth.com.cn/ui/ecs-client-bg.jpg!/progressive/true"
+      })`;
+    },
     productName() {
       return this.QECSConfig.OE_STUDENT_SYS_NAME || "远程教育网络考试";
     },
@@ -1304,7 +1310,7 @@ export default {
 }
 
 .center {
-  background-image: url("https://cdn.qmth.com.cn/ui/ecs-client-bg.jpg!/progressive/true");
+  /* background-image: url("https://cdn.qmth.com.cn/ui/ecs-client-bg.jpg!/progressive/true"); */
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;