@jx3box/jx3box-ui 2.3.24 → 2.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/header/manage.vue +3 -8
package/package.json
CHANGED
package/src/header/manage.vue
CHANGED
|
@@ -13,13 +13,12 @@
|
|
|
13
13
|
</i>
|
|
14
14
|
</span>
|
|
15
15
|
<ul class="u-menu u-pop-content">
|
|
16
|
-
<template v-for="item in userPanel">
|
|
17
|
-
<li
|
|
16
|
+
<template v-for="item in userPanel" :key="item.label">
|
|
17
|
+
<li>
|
|
18
18
|
<a :href="item.link" :target="item.target || '_self'" class="u-menu-item" @click="onClick(item)">
|
|
19
19
|
<img :src="resolveImg(item.icon)" class="u-menu-icon" :alt="item.icon" />
|
|
20
20
|
{{ getPanelLabel(item) }}
|
|
21
21
|
<span v-if="showPop && isFeaturePanelItem(item)" class="u-new">New!</span>
|
|
22
|
-
<span v-if="item.remark == 'auth' && !isAuth" class="u-new">New!</span>
|
|
23
22
|
</a>
|
|
24
23
|
<a
|
|
25
24
|
v-if="isFeaturePanelItem(item) && hasAccountReadyIssue"
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
<script>
|
|
50
49
|
import { getMenu } from "../../service/header";
|
|
51
50
|
import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
|
|
52
|
-
import User from "@jx3box/jx3box-common/js/user";
|
|
53
51
|
import i18nMixin from "../../i18n/mixin";
|
|
54
52
|
import { getConfig } from "../../service/cms";
|
|
55
53
|
// import manageIcon from "@/assets/img/components/common/header/manage.svg";
|
|
@@ -109,7 +107,7 @@ export default {
|
|
|
109
107
|
computed: {
|
|
110
108
|
userPanel: function () {
|
|
111
109
|
return this.panel.filter((item) => {
|
|
112
|
-
return !item.onlyAdmin;
|
|
110
|
+
return !item.onlyAdmin && item.remark !== "auth";
|
|
113
111
|
});
|
|
114
112
|
},
|
|
115
113
|
adminPanel: function () {
|
|
@@ -117,9 +115,6 @@ export default {
|
|
|
117
115
|
return item.onlyAdmin;
|
|
118
116
|
});
|
|
119
117
|
},
|
|
120
|
-
isAuth() {
|
|
121
|
-
return User.isPhoneMember();
|
|
122
|
-
},
|
|
123
118
|
hasAccountReadyIssue() {
|
|
124
119
|
return this.accountReadyIncomplete;
|
|
125
120
|
},
|