Parcourir la source

修改云筑在线的判断

newStyle
风继续吹 il y a 1 an
Parent
révision
794c87be80
23 fichiers modifiés avec 107 ajouts et 90 suppressions
  1. BIN
      public/img/indexIcon/indexCardIcon114s.png
  2. BIN
      public/img/indexIcon/indexCardIcon115s.png
  3. BIN
      public/img/indexIcon/indexCardIcon116s.png
  4. BIN
      public/img/indexIcon/indexCardIcon11s.png
  5. BIN
      public/img/indexIcon/indexCardIcon14s.png
  6. BIN
      public/img/indexIcon/indexCardIcon19s.png
  7. BIN
      public/img/indexIcon/indexCardIcon1s.png
  8. BIN
      public/img/indexIcon/indexCardIcon20s.png
  9. BIN
      public/img/indexIcon/indexCardIcon2s.png
  10. BIN
      public/img/indexIcon/indexCardIcon4s.png
  11. BIN
      public/img/indexIcon/indexCardIcon5s.png
  12. BIN
      public/img/indexIcon/indexCardIcon6s.png
  13. BIN
      public/img/indexIcon/indexCardIcon7s.png
  14. BIN
      public/img/indexIcon/indexCardIcon8s.png
  15. +2
    -1
      public/index.html
  16. +2
    -2
      src/mixins/color.js
  17. +2
    -1
      src/page/check/chose.vue
  18. +5
    -3
      src/page/check/index.vue
  19. +21
    -7
      src/page/index/logo.vue
  20. +1
    -1
      src/page/index/sidebar/index.vue
  21. +4
    -13
      src/page/login/index.vue
  22. +56
    -52
      src/page/wel.vue
  23. +14
    -10
      src/router/avue-router.js

BIN
public/img/indexIcon/indexCardIcon114s.png Voir le fichier

Avant Après
Largeur: 62  |  Hauteur: 64  |  Taille: 4.5 KiB

BIN
public/img/indexIcon/indexCardIcon115s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 13 KiB

BIN
public/img/indexIcon/indexCardIcon116s.png Voir le fichier

Avant Après
Largeur: 62  |  Hauteur: 64  |  Taille: 4.4 KiB

BIN
public/img/indexIcon/indexCardIcon11s.png Voir le fichier

Avant Après
Largeur: 62  |  Hauteur: 64  |  Taille: 4.6 KiB

BIN
public/img/indexIcon/indexCardIcon14s.png Voir le fichier

Avant Après
Largeur: 62  |  Hauteur: 64  |  Taille: 4.6 KiB

BIN
public/img/indexIcon/indexCardIcon19s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 12 KiB

BIN
public/img/indexIcon/indexCardIcon1s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 12 KiB

BIN
public/img/indexIcon/indexCardIcon20s.png Voir le fichier

Avant Après
Largeur: 62  |  Hauteur: 64  |  Taille: 4.4 KiB

BIN
public/img/indexIcon/indexCardIcon2s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 12 KiB

BIN
public/img/indexIcon/indexCardIcon4s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 12 KiB

BIN
public/img/indexIcon/indexCardIcon5s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 13 KiB

BIN
public/img/indexIcon/indexCardIcon6s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 14 KiB

BIN
public/img/indexIcon/indexCardIcon7s.png Voir le fichier

Avant Après
Largeur: 124  |  Hauteur: 128  |  Taille: 13 KiB

BIN
public/img/indexIcon/indexCardIcon8s.png Voir le fichier

Avant Après
Largeur: 62  |  Hauteur: 64  |  Taille: 4.2 KiB

+ 2
- 1
public/index.html Voir le fichier

@@ -72,8 +72,9 @@
let url = document.domain
if (url == 'focus.hfju.com' || url == 'focus.aihxz.com') {
document.querySelector('link[rel="icon"]').setAttribute('href', '<%= BASE_URL %>sh.png')
} else if (url == 'zh.aihxz.com' || url == 'localhost') {
} else if (url == 'zh.aihxz.com' || url == '127.0.0.1') {
document.querySelector('link[rel="icon"]').setAttribute('href', '<%= BASE_URL %>img/logoIcon.jpg')
document.title = '云筑在线'
} else {
document.querySelector('link[rel="icon"]').setAttribute('href', '<%= BASE_URL %>icon1.png')
}


+ 2
- 2
src/mixins/color.js Voir le fichier

@@ -22,8 +22,8 @@ export default function() {

created() {
// 修改主题色
if (this.$domain == 'localhost') {
this.themeVal = '#FF4500'
if (this.$domain == '127.0.0.1' || this.$domain == 'zh.aihxz.com') {
this.themeVal = '#3E50E8'
}
},



+ 2
- 1
src/page/check/chose.vue Voir le fichier

@@ -1,7 +1,8 @@
<template>
<div class="box-center">
<div class="head">
<div>AI销讲助手管理系统</div>
<div v-if="url == 'zh.aihxz.com' || url == '127.0.0.1'">云筑在线后台管理系统</div>
<div v-else>AI销讲助手管理系统</div>
<div class="callback" @click="goback" style="cursor: pointer">返回</div>
</div>
<div class="hid">


+ 5
- 3
src/page/check/index.vue Voir le fichier

@@ -1,7 +1,8 @@
<template>
<div class="box-center">
<div class="head">
<div>AI销讲助手管理系统</div>
<div v-if="url == 'zh.aihxz.com' || url == '127.0.0.1'">云筑在线后台管理系统</div>
<div v-else>AI销讲助手管理系统</div>
<div class="callback" @click="goloign" style="cursor: pointer">
{{ backFlag ? "返回" : "退出" }}
</div>
@@ -12,10 +13,11 @@
<div class="tab" @click="goindex(0)" v-if="tabFlag1">
<div>
<img class="imgs" v-if="url == 'focus.hfju.com' || url == 'focus.aihxz.com'" src="/img/sohu.png" alt="" style="padding: 8px 0;"/>
<img class="imgs" v-else-if="url == 'zh.aihxz.com' || url == 'localhost'" src="/img/logoIcon.jpg" alt="" style="padding: 8px 0;"/>
<img class="imgs" v-else-if="url == 'zh.aihxz.com' || url == '127.0.0.1'" src="/img/logoIcon.jpg" alt="" style="padding: 8px 0;"/>
<img v-else src="/logoPng.png" alt="" style="padding: 8px 0;"/>
</div>
<div class="text">AI销讲助手后台</div>
<div class="text" v-if="url == 'zh.aihxz.com' || url == '127.0.0.1'">云筑在线后台</div>
<div class="text" v-else>AI销讲助手后台</div>
</div>
<div class="tab" @click="goindex(1)" v-if="tabFlag2">
<div><img src="/img/checktab2.png" alt="" /></div>


+ 21
- 7
src/page/index/logo.vue Voir le fichier

@@ -14,7 +14,7 @@
style="width: 44px"
></i>
<i
v-else-if="url == 'zh.aihxz.com' || url == 'localhost'"
v-else-if="url == 'zh.aihxz.com' || url == '127.0.0.1'"
class="logoIconss"
></i>
<i v-else class="logoIcon" style="width: 44px"></i>
@@ -28,17 +28,22 @@
class="avue-logo_title"
@click="goIndex"
>
<div class="logo" v-if="$domain != 'zh.aihxz.com' || $domain != 'localhost'">
<div
class="logo"
v-if="$domain != 'zh.aihxz.com' || $domain != '127.0.0.1'"
>
<i
v-if="url == 'focus.hfju.com' || url == 'focus.aihxz.com'"
class="logoIcons"
></i>
<i
v-else-if="url == 'zh.aihxz.com' || url == 'localhost'"
class="logoIconss"
v-else-if="url == 'zh.aihxz.com' || url == '127.0.0.1'"
class="logo-Iconss"
></i>
<i v-else class="logoIcon" style="width: 44px"></i>
<span>{{ website.title }}</span>
<span v-if="url != 'zh.aihxz.com' && url != '127.0.0.1'">{{
website.title
}}</span>
</div>
<div v-else>
<i class="logoIcon1"></i>
@@ -72,10 +77,12 @@ export default {

<style lang="scss">
.logo {
width: 240px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
padding-top: 20px;
span {
width: 99px;
height: 28px;
@@ -108,8 +115,15 @@ export default {
background-size: 100%;
}

.logo-Iconss {
display: block;
width: 70%;
height: 50px;
background: url("/img/logoText.jpg") no-repeat;
background-size: 100%;
}

.logoIcon1 {
display: block;
width: 40px;
height: 40px;


+ 1
- 1
src/page/index/sidebar/index.vue Voir le fichier

@@ -43,7 +43,7 @@ export default {
};
},
created() {
if (this.$domain == 'zh.aihxz.com' || this.$domain == 'localhost') {
if (this.$domain == 'zh.aihxz.com' || this.$domain == '127.0.0.1') {
this.bgColor = '#FFFFFF'
this.textColor = '#333'
document.documentElement.style.setProperty(`--leftBgColor`, '#FFFFFF');


+ 4
- 13
src/page/login/index.vue Voir le fichier

@@ -10,7 +10,7 @@
/>
<img
v-if="
url == 'zh.aihxz.com' || url == 'localhost'
url == 'zh.aihxz.com' || url == '127.0.0.1'
"
src="/img/logoIcon.jpg"
/>
@@ -21,20 +21,11 @@
style="margin: 10px auto"
/>
</div>
<p class="login-tip" style="color: #2671e2">{{ website.title }}</p>
<p v-if="$domain == 'zh.aihxz.com' || url == '127.0.0.1'" class="login-tip" style="color: var(--theme)">云筑在线</p>
<p v-else class="login-tip" style="color: var(--theme)">{{ website.title }}</p>
<div class="login-border" style="padding-top: 0.6rem">
<div class="login-main">
<h4 class="login-title">
<!-- <el-select v-model="active"
class="login-select animated fadeIn"
placeholder="点击请选择租户"
@change="handleCommand">
<el-option v-for="tenant in tenantList"
:key="tenant.id"
:label="tenant.name"
:value="tenant.id"></el-option>
</el-select> -->
</h4>
<h4 class="login-title"></h4>
<userLogin v-if="activeName === 'user'" />
<codeLogin v-else-if="activeName === 'code'" />
<thirdLogin v-else-if="activeName === 'third'" />


+ 56
- 52
src/page/wel.vue Voir le fichier

@@ -118,7 +118,11 @@
</div>

<div class="cardicon">
<img src="../../public/img/indexIcon/indexCardIcon14.png" alt="" />
<img
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon14.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon14s.png" />
</div>
</div>
<div
@@ -147,10 +151,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon4.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon4.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon4s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -214,10 +218,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon5.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon5.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon5s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -279,10 +283,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon11.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon11.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon11s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -341,10 +345,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon11.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon11.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon114s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -409,10 +413,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon7.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon7.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon7s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -472,10 +476,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon6.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon6.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon6s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -539,10 +543,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon20.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon20.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon20s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -601,10 +605,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon11.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon11.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon115s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -668,10 +672,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon11.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon11.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon116s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1073,10 +1077,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon8.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon8.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon8s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1121,10 +1125,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon1.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon1.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon1s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1179,10 +1183,10 @@
</div>
<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon2.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon2.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon2s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1233,10 +1237,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon19.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon19.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon19s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1291,10 +1295,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon4.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon4.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon4s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1350,10 +1354,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon5.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon5.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon5s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1413,10 +1417,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon6.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon6.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon6s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">
@@ -1474,10 +1478,10 @@

<div class="cardicon">
<img
src="../../public/img/indexIcon/indexCardIcon7.png"
alt=""
srcset=""
v-if="$domain != '127.0.0.1' && $domain != 'zh.aihxz.com'"
src="/img/indexIcon/indexCardIcon7.png"
/>
<img v-else src="/img/indexIcon/indexCardIcon7s.png" />
</div>
</div>
<div class="pageboxtitle2 projectColumn">


+ 14
- 10
src/router/avue-router.js Voir le fichier

@@ -1,8 +1,8 @@
const RouterPlugin = function() {
const RouterPlugin = function () {
this.$router = null
this.$store = null
}
RouterPlugin.install = function(router, store) {
RouterPlugin.install = function (router, store) {
this.$router = router
this.$store = store
function isURL(s) {
@@ -22,8 +22,12 @@ RouterPlugin.install = function(router, store) {
group: '',
safe: this,
// 设置标题
setTitle: function(title) {
title = title ? `${title}——${this.$website.title}` : this.$website.title
setTitle: function (title) {
if (document.domain == '127.0.0.1' || document.domain == 'zh.aihxz.com') {
title = title ? `${title}——云筑在线` : '云筑在线'
} else {
title = title ? `${title}——${this.$website.title}` : this.$website.title
}
document.title = title
},
closeTag: (value) => {
@@ -31,7 +35,7 @@ RouterPlugin.install = function(router, store) {
this.$store.commit('DEL_TAG', tag)
},
// 处理路由
getPath: function(params) {
getPath: function (params) {
const { src } = params
let result = src || '/'
if (src.includes('http') || src.includes('https')) {
@@ -40,7 +44,7 @@ RouterPlugin.install = function(router, store) {
return result
},
// 正则处理路由
vaildPath: function(list, path) {
vaildPath: function (list, path) {
let result = false
list.forEach(ele => {
if (new RegExp('^' + ele + '.*', 'g').test(path)) {
@@ -50,7 +54,7 @@ RouterPlugin.install = function(router, store) {
return result
},
// 设置路由值
getValue: function(route) {
getValue: function (route) {
let value = ''
if (route.query.src) {
value = route.query.src
@@ -60,7 +64,7 @@ RouterPlugin.install = function(router, store) {
return value
},
// 动态路由
formatRoutes: function(aMenu = [], first) {
formatRoutes: function (aMenu = [], first) {
const aRouter = []
// console.log(aMenu,first,'这里是动态路由');
// 通过接口获取路由地址 aMenu 和 first
@@ -178,12 +182,12 @@ RouterPlugin.install = function(router, store) {
return aRouter
}
// 在这里将数据重新赋值为空 就可以了 关键不知道为啥,案例来说可以?
this.routerList=[]
this.routerList = []
this.safe.$router.options.routes = this.safe.$router.options.routes.concat(aRouter)
// console.log(aRouter,'内容');
}

}
}
// console.log(RouterPlugin,'配置');


Chargement…
Annuler
Enregistrer