@jx3box/jx3box-common-ui 5.3.4 → 5.3.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.3.4",
3
+ "version": "5.3.8",
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.2",
34
- "@jx3box/jx3box-data": "^1.7.6",
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
@@ -78,7 +78,7 @@
78
78
  </div>
79
79
  <div class="u-medals" v-if="medals && medals.length">
80
80
  <span class="u-medal" v-for="(item, i) in medals" :key="i">
81
- <img :src="item.medal | showTeamMedal" :title="medal_map[item.medal]" />
81
+ <img :src="item.medal | showMedalIcon" :title="item | showMedalDesc" />
82
82
  </span>
83
83
  </div>
84
84
  </div>
@@ -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>
@@ -179,8 +179,11 @@ export default {
179
179
  },
180
180
  },
181
181
  filters: {
182
- showTeamMedal: function (val) {
183
- return __imgPath + "image/medals/team/" + val + ".gif";
182
+ showMedalIcon: function (val) {
183
+ return __imgPath + "image/medals/user/" + val + ".gif";
184
+ },
185
+ showMedalDesc : function (item){
186
+ return item.medal_desc || medal_map[item.medal]
184
187
  },
185
188
  authorLink,
186
189
  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({
@@ -4,7 +4,7 @@
4
4
  <span>
5
5
  <i class="el-icon-notebook-1"></i> 该作品已被收录至作者的剑三小册
6
6
  </span>
7
- <a @click.stop :href="id | collectionLink">《{{ title }}》</a>
7
+ <a @click.stop :href="id | collectionLink" target="_blank">《{{ title }}》</a>
8
8
  </div>
9
9
  <transition name="fade">
10
10
  <div class="w-collection-list" v-if="visible">