@jx3box/jx3box-common-ui 5.3.3 → 5.3.7

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.
@@ -108,13 +108,15 @@
108
108
  .u-team {
109
109
  .db;
110
110
  background-color: #f2f6fc;
111
- .mb(5px);
112
- &:hover span {
113
- color: @pink;
111
+ .mb(6px);
112
+ &:hover{
113
+ background-color: #e6f0fb;
114
+ // color:@color-link;
114
115
  }
116
+ padding:2px 0;
115
117
  }
116
118
  .u-teamlogo {
117
- .size(32px);
119
+ .size(26px);
118
120
  .y;
119
121
  .mr(10px);
120
122
  }
@@ -96,9 +96,9 @@
96
96
  "parentKey": "fb"
97
97
  },
98
98
  {
99
- "key": "battle_raid",
100
- "link": "/battle",
101
- "label": "战斗分析",
99
+ "key": "rank",
100
+ "link": "/rank",
101
+ "label": "秘境百强",
102
102
  "client": "all",
103
103
  "status": true,
104
104
  "parentKey": "fb"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "std":["北天药宗","奉天证道"],
3
- "origin":["物华天宝"],
4
- "all":["北天药宗","物华天宝","奉天证道"]
3
+ "origin":["藏剑山庄","物华天宝"],
4
+ "all":["北天药宗","奉天证道","藏剑山庄","物华天宝"]
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.3.3",
3
+ "version": "5.3.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,8 +30,8 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-common": "^6.7.0",
34
- "@jx3box/jx3box-data": "^1.7.2",
33
+ "@jx3box/jx3box-common": "^6.7.8",
34
+ "@jx3box/jx3box-data": "^1.8.3",
35
35
  "axios": "^0.19.2",
36
36
  "element-ui": "^2.13.2",
37
37
  "jquery": "^3.5.1",
package/src/Author.vue CHANGED
@@ -87,7 +87,7 @@
87
87
  <i class="el-icon-school"></i>
88
88
  <span>所属团队</span>
89
89
  </div>
90
- <a class="u-team" v-for="(item,i) in teams" :key="i" :href="item.team_id | teamLink">
90
+ <a class="u-team" v-for="(item,i) in teams" :key="i" :href="item.team_id | teamLink" target="_blank">
91
91
  <img class="u-teamlogo" :src="item.team_logo | showTeamLogo" />
92
92
  <span class="u-teamname">{{item.team_name}}@{{item.team_server}}</span>
93
93
  </a>
@@ -180,7 +180,7 @@ export default {
180
180
  },
181
181
  filters: {
182
182
  showTeamMedal: function (val) {
183
- return __imgPath + "image/medals/team/" + val + "-20.gif";
183
+ return __imgPath + "image/medals/team/" + val + ".gif";
184
184
  },
185
185
  authorLink,
186
186
  weiboLink: function (val) {
@@ -10,14 +10,16 @@
10
10
  v-if="hasRight"
11
11
  >
12
12
  <div class="c-admin-wrapper">
13
- <el-divider content-position="left">状态变更</el-divider>
14
- <el-radio-group v-model="post_status" size="small" class="c-admin-status">
15
- <el-radio-button
16
- v-for="(option, key) in status_options"
17
- :label="key"
18
- :key="key"
19
- >{{ option }}</el-radio-button>
20
- </el-radio-group>
13
+ <template v-if="isAdmin">
14
+ <el-divider content-position="left">状态变更</el-divider>
15
+ <el-radio-group v-model="post_status" size="small" class="c-admin-status">
16
+ <el-radio-button
17
+ v-for="(option, key) in status_options"
18
+ :label="key"
19
+ :key="key"
20
+ >{{ option }}</el-radio-button>
21
+ </el-radio-group>
22
+ </template>
21
23
 
22
24
  <el-divider content-position="left">可见性变更</el-divider>
23
25
  <el-radio-group v-model="visible" size="small" class="c-admin-status">
@@ -140,6 +142,7 @@ export default {
140
142
  status_options: {
141
143
  publish: "默认",
142
144
  draft: "草稿",
145
+ pending: "待审核",
143
146
  dustbin: "删除",
144
147
  },
145
148
  visible: "0",
@@ -192,6 +195,9 @@ export default {
192
195
  sticky: this.isSticky ? Date.now() : null,
193
196
  };
194
197
  },
198
+ isAdmin : function (){
199
+ return User.isAdmin()
200
+ }
195
201
  },
196
202
  methods: {
197
203
  // 是否有权限
@@ -76,6 +76,9 @@ export default {
76
76
  },
77
77
  allowBoxcoin : function (){
78
78
  return this.postType && this.postId && this.userId
79
+ },
80
+ client : function (){
81
+ return location.href.includes('origin') ? 'origin' : 'std'
79
82
  }
80
83
  },
81
84
  watch: {
@@ -90,6 +93,7 @@ export default {
90
93
  submit: function () {
91
94
  grantBoxcoin(this.postType, this.postId, this.userId, this.count, {
92
95
  remark: this.remark,
96
+ client : this.client
93
97
  })
94
98
  .then((res) => {
95
99
  this.$message({
@@ -75,6 +75,9 @@ export default {
75
75
  },
76
76
  allowBoxcoin : function (){
77
77
  return this.postType && this.postId && this.userId
78
+ },
79
+ client : function (){
80
+ return location.href.includes('origin') ? 'origin' : 'std'
78
81
  }
79
82
  },
80
83
  watch: {
@@ -93,6 +96,7 @@ export default {
93
96
  submit: function () {
94
97
  rewardBoxcoin(this.postType, this.postId, this.userId, this.count, {
95
98
  remark: this.remark,
99
+ client : this.client
96
100
  })
97
101
  .then((res) => {
98
102
  this.$message({