@jx3box/jx3box-common-ui 5.5.6 → 5.5.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.
@@ -2,8 +2,6 @@
2
2
  .w-like2,.w-fav2,.w-boxcoin-user,.w-boxcoin-admin{
3
3
  .mr(20px);
4
4
  }
5
- .w-share2,.w-like2,.w-fav2,.w-boxcoin-user,.w-boxcoin-admin{
6
- }
7
5
  .x;
8
6
  }
9
7
  .w-thx-panel{
@@ -105,6 +103,7 @@
105
103
  .clearfix;
106
104
  padding:4px 10px;
107
105
  &:last-child{border:none;}
106
+ display:flex;
108
107
  }
109
108
  .u-meta{
110
109
  .db;
@@ -123,11 +122,12 @@
123
122
  .x;
124
123
  }
125
124
  .u-user{
126
- .w(160px);
125
+ .w(120px);
127
126
  .nobreak;
128
127
  &:hover{
129
128
  text-decoration: underline;
130
129
  }
130
+ .mr(20px);
131
131
  }
132
132
  .u-user-avatar{
133
133
  .y;
@@ -136,7 +136,7 @@
136
136
  .r(2px);
137
137
  }
138
138
  .u-count {
139
- .w(100px);
139
+ .w(120px);
140
140
  }
141
141
  .u-head{
142
142
  background-color:@bg-light;
@@ -149,7 +149,7 @@
149
149
  }
150
150
  .u-remark{
151
151
  .nobreak;
152
- .w(400px);
152
+ .w(280px);
153
153
  }
154
154
  .u-time{
155
155
  color:#999;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.5.6",
3
+ "version": "5.5.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.6.6",
34
- "@jx3box/jx3box-common": "^7.0.1",
34
+ "@jx3box/jx3box-common": "^7.0.3",
35
35
  "@jx3box/jx3box-data": "^1.8.3",
36
36
  "@jx3box/jx3box-editor": "^1.2.0",
37
37
  "axios": "^0.19.2",
@@ -229,7 +229,7 @@ export default {
229
229
  User.destroy()
230
230
  .then((res) => {
231
231
  this.isLogin = false;
232
- if (location.href.indexOf("dashboard") > 0) {
232
+ if (location.pathname.startsWith('/dashboard') || location.pathname.startsWith('/publish')) {
233
233
  location.href = __Root;
234
234
  }
235
235
  })
@@ -7,6 +7,7 @@
7
7
  <i class="el-icon-trophy"></i>
8
8
  </span>
9
9
  <span class="u-meta u-user">参与打赏</span>
10
+ <span class="u-meta u-user" v-if="mode== 'wiki'">收益作者</span>
10
11
  <span class="u-meta u-count">盒币</span>
11
12
  <span class="u-meta u-remark">寄语</span>
12
13
  <time class="u-meta u-time"></time>
@@ -28,6 +29,15 @@
28
29
  <img class="u-user-avatar" :src="showAvatar(item.ext_operate_user_info.avatar)" alt />
29
30
  <span>{{item.ext_operate_user_info.display_name}}</span>
30
31
  </a>
32
+ <a
33
+ v-if="mode== 'wiki'"
34
+ class="u-meta u-user"
35
+ :href="authorLink(item.user_id)"
36
+ target="_blank"
37
+ >
38
+ <img class="u-user-avatar" :src="showAvatar(item.ext_user_info.avatar)" alt />
39
+ <span>{{item.ext_user_info.display_name}}</span>
40
+ </a>
31
41
  <span class="u-meta u-count">
32
42
  +
33
43
  <b>{{item.count}}</b>
@@ -59,7 +69,7 @@ import { showAvatar, authorLink } from "@jx3box/jx3box-common/js/utils";
59
69
  import { showTime } from "@jx3box/jx3box-common/js/moment";
60
70
  export default {
61
71
  name: "BoxcoinRecords",
62
- props: ["postType", "postId", "cacheRecord"],
72
+ props: ["postType", "postId", "cacheRecord",'mode'],
63
73
  components: {},
64
74
  data: function () {
65
75
  return {
@@ -8,7 +8,7 @@
8
8
  <Share :postId="postId" :postType="postType" />
9
9
  </div>
10
10
  <div class="w-thx-records">
11
- <boxcoin-records :postId="postId" :postType="postType" :cacheRecord="cacheRecord" />
11
+ <boxcoin-records :postId="postId" :postType="postType" :cacheRecord="cacheRecord" :mode="mode"/>
12
12
  </div>
13
13
  <div class="w-thx-copyright">
14
14
  &copy; 所有原创作品,著作权归作者所有,所有未经授权的非署名转载或抄袭将有权追究法律责任,所有法律事务由专聘律师代理。<br>
@@ -28,7 +28,7 @@ import User from '@jx3box/jx3box-common/js/user'
28
28
  import {getPostBoxcoinConfig,getBoxcoinStatus} from '../../service/thx'
29
29
  export default {
30
30
  name: "Thx",
31
- props: ["postId", "postType","userId","adminBoxcoinEnable","userBoxcoinEnable"],
31
+ props: ["postId", "postType","userId","adminBoxcoinEnable","userBoxcoinEnable",'mode'],
32
32
  components: {
33
33
  Like,
34
34
  Share,