Browse Source

新增陕西配置

yufan 1 year ago
parent
commit
02acd9f7e6
6 changed files with 167 additions and 143 deletions
  1. 1 0
      .env.development
  2. 2 1
      .env.preview
  3. 2 1
      .env.production
  4. 10 0
      .env.shanxi
  5. 1 0
      package.json
  6. 151 141
      src/layout/Footer.vue

+ 1 - 0
.env.development

@@ -13,3 +13,4 @@ VITE_APP_BOOK_STORE_URL = 'http://www.test.sqjyy.cn/bookManage/#/bookManage'
 VITE_APP_NATIONAL_INTERNET_SECURITY_MANAGE_SERVICE_URL = 'http://www.beian.gov.cn/portal/recordQuery?token=3bba8661-6f23-4c04-9d65-e7fba769b65e'
 
 VITE_APP_PATH = 'development'
+VITE_APP_ISSHANXI = 'false'

+ 2 - 1
.env.preview

@@ -7,4 +7,5 @@ VITE_APP_AES_KEY_BOOK_STORE = 'book_aes_store__'
 VITE_APP_BOOK_STORE_URL = 'http://www.sqjyy.cn/bookManage/#/bookManage'
 
 # VITE_APP_BOOK_STORE_URL = 'http://www.areader.org.cn/'
-VITE_APP_PATH = 'preview'
+VITE_APP_PATH = 'preview'
+VITE_APP_ISSHANXI = 'false'

+ 2 - 1
.env.production

@@ -7,4 +7,5 @@ VITE_APP_AES_KEY_BOOK_STORE = 'book_aes_store__'
 VITE_APP_BOOK_STORE_URL = 'https://sqjyy.cn/bookManage/#/bookManage'
 
 # VITE_APP_BOOK_STORE_URL = 'http://www.areader.org.cn/'
-VITE_APP_PATH = 'production'
+VITE_APP_PATH = 'production'
+VITE_APP_ISSHANXI = 'false'

+ 10 - 0
.env.shanxi

@@ -0,0 +1,10 @@
+VITE_APP_BASE_URL = 'http://113.137.40.180:8181/gateway'
+VITE_APP_FDFS_WEB_SERVER_URL = 'https://zjzl-test.oss-cn-hangzhou.aliyuncs.com'
+
+VITE_CAS_SERVER_ADDRESS = 'http://113.137.40.180:8181/cas/'
+ 
+VITE_APP_PATH = 'production'
+VITE_LOGO='https://test.vod.sqjyy.cn/sxjyj.png'
+# 图书馆项目后台地址
+VITE_APP_BOOK_STORE_URL = 'http://www.test.sqjyy.cn/bookManage/#/bookManage'
+VITE_APP_ISSHANXI = 'true'

+ 1 - 0
package.json

@@ -6,6 +6,7 @@
     "build:dev": "vue-tsc --noEmit && vite build --mode development",
     "build:test": "vue-tsc --noEmit && vite build --mode preview",
     "build:prod": "vue-tsc --noEmit && vite build --mode production",
+    "build:shanxi": "vite build --mode shanxi",
     "serve": "vite preview"
   },
   "dependencies": {

+ 151 - 141
src/layout/Footer.vue

@@ -37,182 +37,192 @@
         <div class="mbottom46">浙江省杭州市余杭区绿城未来park 3号楼A幢606 邮编311100  </div>
         <div class="url" @click="openNewUrl"><img :src="bage"/>浙公网安备 33011002015264号</div>
       </div> -->
-      <div
-        >Copyright@2021 {{getPng()?'宿迁市智慧教育云平台':'智慧教育云平台'}} 数据版权归属于中教领信(宿迁)信息技术有限公司
-        <span
-          ><a class="text-color" href="https://beian.miit.gov.cn" target="_blank"
-            >沪ICP备19000885号-5</a
-          ></span
-        ></div
-      >
+      <div v-if="getIsShanXi()">
+        Copyright@2022 陕B2-20070053-14 版权所有:陕西公众信息产业有限公司
+        保留所有权利,未经允许,不得复制、镜像
+      </div>
+      <div v-else>
+        Copyright@2022 沪ICP备19000885号-5
+        {{ getPng() ? '宿迁市智慧教育云平台' : '智慧教育云平台 ' }}
+        数据版权归属于中教领信(宿迁)信息技术有限公司
+      </div>
     </div>
   </div>
 </template>
 
 <script setup lang="ts">
-import bage from '../assets/images/bage.png';
+  import bage from '../assets/images/bage.png';
 
-const isLog = import.meta.env.VITE_APP_PATH
-const getPng = () => {
-        console.log(1)
-    if(isLog == 'production'||isLog =='development'){
-        return true
-    }else{
-        console.log(2)
-       return false 
+  const isLog = import.meta.env.VITE_APP_PATH;
+  const isShanXi = import.meta.env.VITE_APP_ISSHANXI;
+  const getIsShanXi = () => {
+    console.log(isShanXi, 'isShanxi');
+    if (isShanXi) {
+      return true;
+    } else {
+      return false;
     }
-}
+  };
+  const getPng = () => {
+    console.log(1);
+    if (isLog == 'production' || isLog == 'development') {
+      return true;
+    } else {
+      console.log(2);
+      return false;
+    }
+  };
 
-const openNewUrl = () => {
-  window.open(import.meta.env.VITE_APP_NATIONAL_INTERNET_SECURITY_MANAGE_SERVICE_URL as string);
-};
-const openwindown = (url) => {
-  window.open(url);
-};
+  const openNewUrl = () => {
+    window.open(import.meta.env.VITE_APP_NATIONAL_INTERNET_SECURITY_MANAGE_SERVICE_URL as string);
+  };
+  const openwindown = (url) => {
+    window.open(url);
+  };
 </script>
 
 <style lang="less" scoped>
-.box {
-  height: 80px;
-  background: white;
-}
-.footerlink {
-  width: 100%;
-  background: white;
-  padding-top: 100px;
-  .link-pic {
-    display: flex;
-    width: 1160px;
-    height: 254px;
-    border: 1px solid #ffeeeeee;
-    margin: 0 auto;
-    flex-flow: column wrap;
-    .footerlink-txt {
-      font-size: 24px;
-      font-family: PingFangSC-Medium, PingFang SC;
-      font-weight: 500;
-      color: #333333;
-      margin: 24px 16px;
-      padding-bottom: 20px;
-      border-bottom: 1px solid #ffeeeeee;
-    }
-    .footerlink-pic {
+  .box {
+    height: 80px;
+    background: white;
+  }
+  .footerlink {
+    width: 100%;
+    background: white;
+    padding-top: 100px;
+    .link-pic {
       display: flex;
-      margin: 0px 16px 24px;
-      justify-content: space-between;
-      .pic-item {
+      width: 1160px;
+      height: 254px;
+      border: 1px solid #ffeeeeee;
+      margin: 0 auto;
+      flex-flow: column wrap;
+      .footerlink-txt {
+        font-size: 24px;
+        font-family: PingFangSC-Medium, PingFang SC;
+        font-weight: 500;
+        color: #333333;
+        margin: 24px 16px;
+        padding-bottom: 20px;
+        border-bottom: 1px solid #ffeeeeee;
+      }
+      .footerlink-pic {
         display: flex;
-        flex-flow: column wrap;
-        justify-content: center;
-        .pic {
-          width: 212px;
-          height: 88px;
-          .pic-size {
+        margin: 0px 16px 24px;
+        justify-content: space-between;
+        .pic-item {
+          display: flex;
+          flex-flow: column wrap;
+          justify-content: center;
+          .pic {
             width: 212px;
             height: 88px;
+            .pic-size {
+              width: 212px;
+              height: 88px;
+              cursor: pointer;
+            }
+          }
+          .txt {
+            text-align: center;
             cursor: pointer;
+            font-size: 14px;
+            font-family: PingFangSC-Medium, PingFang SC;
+            font-weight: 500;
+            color: #666666;
           }
         }
-        .txt {
-          text-align: center;
-          cursor: pointer;
-          font-size: 14px;
-          font-family: PingFangSC-Medium, PingFang SC;
-          font-weight: 500;
-          color: #666666;
-        }
       }
     }
   }
-}
-.main {
-  width: 100%;
-  height: 100px;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  background-color: @heading-color;
-  color: rgba(255, 255, 255, 0.6);
-  font-size: 14px;
-
-  .content {
+  .main {
+    width: 100%;
+    height: 100px;
     display: flex;
+    align-items: center;
     justify-content: center;
-    .mbottom46 {
-      margin-bottom: 25px;
-    }
-    .left {
-      margin-right: 40px;
-    }
-    .right {
-      img {
-        width: 18px;
-        height: 20px;
-        margin-right: 10px;
+    background-color: @heading-color;
+    color: rgba(255, 255, 255, 0.6);
+    font-size: 14px;
+
+    .content {
+      display: flex;
+      justify-content: center;
+      .mbottom46 {
+        margin-bottom: 25px;
       }
-      .url {
-        cursor: pointer;
+      .left {
+        margin-right: 40px;
+      }
+      .right {
+        img {
+          width: 18px;
+          height: 20px;
+          margin-right: 10px;
+        }
+        .url {
+          cursor: pointer;
+        }
       }
     }
   }
-}
 
-@media screen and (max-width: 600px) {
-  .box {
-    height: 0px;
-    background: white;
-  }
-  .main {
-    width: 100% !important;
-  }
-  .footerlink {
-    width: 100% !important;
-    padding-top: 40px;
-  }
-  .content {
-    font-size: 12px;
-    transform: scale(0.8);
-    div {
-      width: 380px;
+  @media screen and (max-width: 600px) {
+    .box {
+      height: 0px;
+      background: white;
     }
-  }
-  .link-pic {
-    width: 100% !important;
-    height: auto !important;
-    display: flex;
-    flex-flow: column nowrap;
-    .footerlink-txt {
-      font-size: 18px !important;
-      font-family: PingFangSC-Medium, PingFang SC;
-      font-weight: 400;
-      text-align: center;
-      color: #333333;
-      margin: 0px 16px !important;
-      padding-bottom: 0px !important;
-      border-bottom: 1px solid #ffeeeeee;
+    .main {
+      width: 100% !important;
     }
-    .footerlink-pic {
-      display: flex;
-      flex-flow: column nowrap;
+    .footerlink {
+      width: 100% !important;
+      padding-top: 40px;
     }
-    .pic-item {
+    .content {
+      font-size: 12px;
+      transform: scale(0.8);
+      div {
+        width: 380px;
+      }
+    }
+    .link-pic {
+      width: 100% !important;
+      height: auto !important;
       display: flex;
-      flex-flow: column wrap;
-      justify-content: center;
-      .pic {
-        display: none;
-        width: 20px !important;
-        height: 10px;
-        .pic-size {
-          width: 20px;
+      flex-flow: column nowrap;
+      .footerlink-txt {
+        font-size: 18px !important;
+        font-family: PingFangSC-Medium, PingFang SC;
+        font-weight: 400;
+        text-align: center;
+        color: #333333;
+        margin: 0px 16px !important;
+        padding-bottom: 0px !important;
+        border-bottom: 1px solid #ffeeeeee;
+      }
+      .footerlink-pic {
+        display: flex;
+        flex-flow: column nowrap;
+      }
+      .pic-item {
+        display: flex;
+        flex-flow: column wrap;
+        justify-content: center;
+        .pic {
+          display: none;
+          width: 20px !important;
           height: 10px;
-          cursor: pointer;
+          .pic-size {
+            width: 20px;
+            height: 10px;
+            cursor: pointer;
+          }
         }
       }
     }
   }
-}
-.text-color {
-  color: rgba(255, 255, 255, 0.6);
-}
+  .text-color {
+    color: rgba(255, 255, 255, 0.6);
+  }
 </style>