소스 검색

通过打包配置 丘比养车合作商相关信息

chenrui 4 년 전
부모
커밋
7042737310
18개의 변경된 파일81개의 추가작업 그리고 15개의 파일을 삭제
  1. 8 2
      .env
  2. 7 1
      .env.development
  3. 8 2
      .env.preview
  4. 11 0
      .env.qbdev
  5. 11 0
      .env.qbpre
  6. 11 0
      .env.qbpro
  7. 3 1
      package.json
  8. BIN
      public/clzlogo.png
  9. 1 1
      public/index.html
  10. BIN
      public/logo.png
  11. BIN
      public/qbyclogo.png
  12. BIN
      src/assets/logo.png
  13. BIN
      src/assets/logos.png
  14. 4 2
      src/components/GlobalFooter/GlobalFooter.vue
  15. 3 2
      src/components/tools/Logo.vue
  16. 6 3
      src/layouts/UserLayout.vue
  17. 6 0
      src/views/user/Login.vue
  18. 2 1
      vue.config.js

+ 8 - 2
.env

@@ -1,5 +1,11 @@
 NODE_ENV=production
 VUE_APP_PREVIEW=false
-VUE_APP_API_BASE_URL=https://channel.qiubcar.com/zyyc-channel/
+VUE_APP_API_BASE_URL=https://channel.zy-yc.cn/zyyc-channel/
 VUE_APP_VERSION=V1.0.1
-VUE_APP_PRO_NAME=合作商运营管理平台
+VUE_APP_PRO_NAME=合作商运营管理平台
+VUE_APP_ANOTHEN_NAME=章鱼养车
+VUE_APP_PINYIN=clz
+VUE_APP_LOGO=@/assets/logo.png
+VUE_APP_THEME_COLOR=#1890FF
+VUE_APP_COM_NAME=陕西山海高科信息技术有限公司
+VUE_APP_ICP=陕ICP备20006268号

+ 7 - 1
.env.development

@@ -2,4 +2,10 @@ NODE_ENV=development
 VUE_APP_PREVIEW=true
 VUE_APP_API_BASE_URL=/api
 VUE_APP_VERSION=V1.0.1
-VUE_APP_PRO_NAME=合作商运营管理平台-dev
+VUE_APP_PRO_NAME=合作商运营管理平台-dev
+VUE_APP_ANOTHEN_NAME=章鱼养车
+VUE_APP_PINYIN=clz
+VUE_APP_LOGO=@/assets/logo.png
+VUE_APP_THEME_COLOR=#1890FF
+VUE_APP_COM_NAME=陕西山海高科信息技术有限公司
+VUE_APP_ICP=陕ICP备20006268号

+ 8 - 2
.env.preview

@@ -1,5 +1,11 @@
 NODE_ENV=production
 VUE_APP_PREVIEW=true
-VUE_APP_API_BASE_URL=https://channel.test.qiubcar.com/zyyc-channel/
+VUE_APP_API_BASE_URL=https://channel.test.zyucgj.com/zyyc-channel/
 VUE_APP_VERSION=V1.0.1
-VUE_APP_PRO_NAME=合作商运营管理平台-pro
+VUE_APP_PRO_NAME=合作商运营管理平台-pro
+VUE_APP_ANOTHEN_NAME=章鱼养车
+VUE_APP_PINYIN=clz
+VUE_APP_LOGO=@/assets/logo.png
+VUE_APP_THEME_COLOR=#1890FF
+VUE_APP_COM_NAME=陕西山海高科信息技术有限公司
+VUE_APP_ICP=陕ICP备20006268号

+ 11 - 0
.env.qbdev

@@ -0,0 +1,11 @@
+NODE_ENV=qbdev
+VUE_APP_PREVIEW=true
+VUE_APP_API_BASE_URL=/api
+VUE_APP_VERSION=V1.0.1
+VUE_APP_PRO_NAME=合作商运营管理平台-dev
+VUE_APP_ANOTHEN_NAME=丘比养车
+VUE_APP_PINYIN=qbyc
+VUE_APP_LOGO=@/assets/logos.png
+VUE_APP_THEME_COLOR=#eb6b2d
+VUE_APP_COM_NAME=成都丘比象科技有限公司
+VUE_APP_ICP=蜀ICP备2020036400号-2

+ 11 - 0
.env.qbpre

@@ -0,0 +1,11 @@
+NODE_ENV=qbpreview
+VUE_APP_PREVIEW=true
+VUE_APP_API_BASE_URL=https://channel.test.qiubcar.com/zyyc-channel/
+VUE_APP_VERSION=V1.0.1
+VUE_APP_PRO_NAME=合作商运营管理平台-qbpre
+VUE_APP_ANOTHEN_NAME=丘比养车
+VUE_APP_PINYIN=qbyc
+VUE_APP_LOGO=@/assets/logos.png
+VUE_APP_THEME_COLOR=#eb6b2d
+VUE_APP_COM_NAME=成都丘比象科技有限公司
+VUE_APP_ICP=蜀ICP备2020036400号-2

+ 11 - 0
.env.qbpro

@@ -0,0 +1,11 @@
+NODE_ENV=qbpreview
+VUE_APP_PREVIEW=true
+VUE_APP_API_BASE_URL=https://channel.qiubcar.com/zyyc-channel/
+VUE_APP_VERSION=V1.0.1
+VUE_APP_PRO_NAME=合作商运营管理平台
+VUE_APP_ANOTHEN_NAME=丘比养车
+VUE_APP_PINYIN=qbyc
+VUE_APP_LOGO=@/assets/logos.png
+VUE_APP_THEME_COLOR=#eb6b2d
+VUE_APP_COM_NAME=成都丘比象科技有限公司
+VUE_APP_ICP=蜀ICP备2020036400号-2

+ 3 - 1
package.json

@@ -6,8 +6,10 @@
     "serve": "vue-cli-service serve",
     "dev": "vue-cli-service serve",
     "build": "vue-cli-service build",
-    "build:preview": "vue-cli-service build --mode preview",
     "uat": "vue-cli-service build --mode preview",
+    "dev:qbyc": "vue-cli-service serve --mode qbdev",
+    "uat:qbyc": "vue-cli-service build --mode qbpre",
+    "build:qbyc": "vue-cli-service build --mode qbpro",
     "lint": "vue-cli-service lint",
     "lint:nofix": "vue-cli-service lint --no-fix",
     "test:unit": "vue-cli-service test:unit",

BIN
public/clzlogo.png


+ 1 - 1
public/index.html

@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <link rel="icon" href="<%= BASE_URL %>logo.png">
+    <link rel="icon" href="<%= BASE_URL %><%= VUE_APP_PINYIN %>logo.png">
     <title>合作商运营管理平台</title>
     <style>#loading-mask{position:fixed;left:0;top:0;height:100%;width:100%;background:#fff;user-select:none;z-index:9999;overflow:hidden}.loading-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%)}.loading-dot{animation:antRotate 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;font-size:64px;width:64px;height:64px;box-sizing:border-box}.loading-dot i{width:22px;height:22px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.loading-dot i:nth-child(1){top:0;left:0}.loading-dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.loading-dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.loading-dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}@-webkit-keyframes antSpinMove{to{opacity:1}}</style>
     <!-- require cdn assets css -->

BIN
public/logo.png


BIN
public/qbyclogo.png


BIN
src/assets/logo.png


BIN
src/assets/logos.png


+ 4 - 2
src/components/GlobalFooter/GlobalFooter.vue

@@ -16,7 +16,7 @@
     </div> -->
     <div class="copyright">
       Copyright
-      <a-icon type="copyright" /> 2020 <span> 陕西山海高科信息技术有限公司</span>
+      <a-icon type="copyright" /> 2020 <span> {{ company }}</span>
     </div>
   </div>
 </template>
@@ -25,7 +25,9 @@
 export default {
   name: 'GlobalFooter',
   data () {
-    return {}
+    return {
+      company: process.env.VUE_APP_COM_NAME //  公司
+    }
   }
 }
 </script>

+ 3 - 2
src/components/tools/Logo.vue

@@ -2,7 +2,7 @@
   <div class="logo">
     <router-link :to="{name:'index'}">
       <!-- <LogoSvg alt="logo" /> -->
-      <img :src="LogoSvg" />
+      <img :src="logo" />
       <h1 v-if="showTitle">{{ title }}</h1>
     </router-link>
   </div>
@@ -30,7 +30,8 @@ export default {
   },
   data () {
     return {
-      LogoSvg: LogoSvg
+      LogoSvg: LogoSvg,
+      logo: require(process.env.VUE_APP_LOGO) //  logo
     }
   }
 }

+ 6 - 3
src/layouts/UserLayout.vue

@@ -5,7 +5,7 @@
       <div class="top">
         <div class="header">
           <a href="/">
-            <img src="~@/assets/logo.png" class="logo" alt="logo">
+            <img :src="logo" class="logo" alt="logo">
             <!-- <span class="title">{{logo}}</span> -->
           </a>
         </div>
@@ -23,7 +23,7 @@
           <a href="_self">条款</a>
         </div> -->
         <div class="copyright">
-          Copyright &copy; 2020 陕西山海高科信息技术有限公司 <a href="http://beian.miit.gov.cn/" target="_blank">陕ICP备20006268号</a>
+          Copyright &copy; 2020 {{ company }} <a href="http://beian.miit.gov.cn/" target="_blank">{{ icp }}</a>
         </div>
       </div>
     </div>
@@ -41,7 +41,10 @@ export default {
   mixins: [mixinDevice],
   data () {
     return {
-      title: process.env.VUE_APP_PRO_NAME
+      title: process.env.VUE_APP_PRO_NAME,
+      company: process.env.VUE_APP_COM_NAME, //  公司
+      icp: process.env.VUE_APP_ICP, //  备案号
+      logo: require(process.env.VUE_APP_LOGO) //  logo
     }
   },
   mounted () {

+ 6 - 0
src/views/user/Login.vue

@@ -121,6 +121,7 @@ import TwoStepCaptcha from '@/components/tools/TwoStepCaptcha'
 import { mapActions } from 'vuex'
 import { timeFix } from '@/utils/util'
 import { getSmsCaptcha, get2step } from '@/api/login'
+import { updateTheme } from '@/components/SettingDrawer/settingConfig'
 
 export default {
   components: {
@@ -164,6 +165,11 @@ export default {
       this.password = rem.password
       this.rememberMe = rem.rememberMe
     }
+    //  设置主题色
+    if (process.env.VUE_APP_THEME_COLOR) {
+      this.$store.dispatch('ToggleColor', process.env.VUE_APP_THEME_COLOR)
+      updateTheme(process.env.VUE_APP_THEME_COLOR)
+    }
   },
   methods: {
     ...mapActions(['Login', 'Logout']),

+ 2 - 1
vue.config.js

@@ -109,7 +109,8 @@ const vueConfig = {
     proxy: {
       '/api': {
         // target: 'https://channel.test.zyucgj.com/zyyc-channel/',
-        target: 'http://192.168.16.103:7103/zyyc-channel/',
+        // target: 'http://192.168.16.103:7103/zyyc-channel/',
+        target: 'https://channel.qiubcar.com/zyyc-channel/',
         ws: false,
         changeOrigin: true,
         pathRewrite: {