|
@@ -63,7 +63,6 @@
|
|
:key="index+'1p'">
|
|
:key="index+'1p'">
|
|
<div class="TabListCon">
|
|
<div class="TabListCon">
|
|
<div v-for="(p,pin) in AppCon(item.url)" :key="pin+'p'">
|
|
<div v-for="(p,pin) in AppCon(item.url)" :key="pin+'p'">
|
|
-
|
|
|
|
<img class="imgApp"
|
|
<img class="imgApp"
|
|
:src="tabList[index].hovered ? p.hoverIcon ? p.hoverIcon : p.platformIcon : p.platformIcon" alt="">
|
|
:src="tabList[index].hovered ? p.hoverIcon ? p.hoverIcon : p.platformIcon : p.platformIcon" alt="">
|
|
<div class="TabListName">
|
|
<div class="TabListName">
|
|
@@ -235,22 +234,37 @@ import { myMixin } from "@/mixins/mixin.js"
|
|
AppCon(){
|
|
AppCon(){
|
|
return function(c) {
|
|
return function(c) {
|
|
let k = JSON.parse(JSON.stringify(c))
|
|
let k = JSON.parse(JSON.stringify(c))
|
|
-
|
|
|
|
|
|
+ // console.log('k',k);
|
|
|
|
+
|
|
// 获取属于区域的url
|
|
// 获取属于区域的url
|
|
let data = k.filter(e=>{
|
|
let data = k.filter(e=>{
|
|
return e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea
|
|
return e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea
|
|
})
|
|
})
|
|
|
|
+ // console.log('data',data);
|
|
|
|
|
|
- // 设置默认的区域的url(所在区域没有hover图标默认使用cn图标)
|
|
|
|
|
|
+ // 设置默认的图标(所在区域没有hover图标默认使用cn图标)
|
|
let data2 = k.filter(e=>{
|
|
let data2 = k.filter(e=>{
|
|
return e.region == 'cn'
|
|
return e.region == 'cn'
|
|
})
|
|
})
|
|
|
|
+ // console.log('data2',data2);
|
|
|
|
|
|
// 如果hk,com没有图标,默认使用cn的
|
|
// 如果hk,com没有图标,默认使用cn的
|
|
|
|
+ if (!data[0].activeIcon){
|
|
|
|
+ data[0].activeIcon = data2[0].activeIcon
|
|
|
|
+ }
|
|
|
|
+ if (!data[0].defaultIcon){
|
|
|
|
+ data[0].defaultIcon = data2[0].defaultIcon
|
|
|
|
+ }
|
|
|
|
+ if (!data[0].hoverIcon){
|
|
|
|
+ data[0].hoverIcon = data2[0].hoverIcon
|
|
|
|
+ }
|
|
if (!data[0].icon){
|
|
if (!data[0].icon){
|
|
data[0].icon = data2[0].icon
|
|
data[0].icon = data2[0].icon
|
|
- data[0].activeIcon = data2[0].activeIcon
|
|
|
|
}
|
|
}
|
|
|
|
+ if (!data[0].platformIcon){
|
|
|
|
+ data[0].platformIcon = data2[0].platformIcon
|
|
|
|
+ }
|
|
|
|
+ // console.log('data3',data);
|
|
|
|
|
|
return data
|
|
return data
|
|
};
|
|
};
|
|
@@ -446,8 +460,8 @@ import { myMixin } from "@/mixins/mixin.js"
|
|
|
|
|
|
let url = ''
|
|
let url = ''
|
|
val.url.forEach(e => {
|
|
val.url.forEach(e => {
|
|
- // if (e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea) {
|
|
|
|
- if (e.region == this.$region) {
|
|
|
|
|
|
+ if (e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea) {
|
|
|
|
+ // if (e.region == this.$region) {
|
|
url = e.url
|
|
url = e.url
|
|
}
|
|
}
|
|
});
|
|
});
|