@jx3box/jx3box-common-ui 5.8.9 → 5.9.2

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.8.9",
3
+ "version": "5.9.2",
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.7.0",
34
- "@jx3box/jx3box-common": "^7.3.1",
34
+ "@jx3box/jx3box-common": "^7.3.2",
35
35
  "@jx3box/jx3box-data": "^1.9.9",
36
36
  "@jx3box/jx3box-editor": "^1.3.2",
37
37
  "axios": "^0.26.1",
@@ -22,7 +22,7 @@
22
22
  <Contributors v-if="authors && authors.length" :authors="authors" @chosen="handleChosen" />
23
23
  <div class="u-points">
24
24
  <el-radio-group v-model="count">
25
- <el-radio :label="item" v-for="item in points" :key="item" border>
25
+ <el-radio :label="item" v-for="item in fitPoints" :key="item" border>
26
26
  <b>{{item}}</b>盒币
27
27
  </el-radio>
28
28
  </el-radio-group>
@@ -92,6 +92,9 @@ export default {
92
92
  hostClient : function (){
93
93
  return location.href.includes('origin') ? 'origin' : 'std'
94
94
  },
95
+ fitPoints : function (){
96
+ return this.points.filter(item => item <= this.left)
97
+ },
95
98
  },
96
99
  watch: {
97
100
  own : function (val){
@@ -68,7 +68,7 @@ import { showAvatar, authorLink } from "@jx3box/jx3box-common/js/utils";
68
68
  import { showTime } from "@jx3box/jx3box-common/js/moment";
69
69
  export default {
70
70
  name: "BoxcoinRecords",
71
- props: ["postType", "postId", "cacheRecord",'mode'],
71
+ props: ["postType", "postId", "cacheRecord",'postClient','mode'],
72
72
  components: {},
73
73
  data: function () {
74
74
  return {
@@ -89,6 +89,7 @@ export default {
89
89
  return {
90
90
  pageSize: this.per,
91
91
  pageIndex: this.page,
92
+ client : this.postClient,
92
93
  };
93
94
  },
94
95
  },
@@ -18,7 +18,7 @@
18
18
  <Contributors v-if="authors && authors.length" :authors="authors" @chosen="handleChosen" />
19
19
  <div class="u-points">
20
20
  <el-radio-group v-model="count">
21
- <el-radio :label="item" v-for="item in points" :key="item" border>
21
+ <el-radio :label="item" v-for="item in fitPoints" :key="item" border>
22
22
  <b>{{item}}</b>盒币
23
23
  </el-radio>
24
24
  </el-radio-group>
@@ -84,6 +84,9 @@ export default {
84
84
  },
85
85
  hostClient : function (){
86
86
  return location.href.includes('origin') ? 'origin' : 'std'
87
+ },
88
+ fitPoints : function (){
89
+ return this.points.filter(item => item <= this.left)
87
90
  }
88
91
  },
89
92
  watch: {
@@ -8,7 +8,7 @@
8
8
  <Share :postId="postId" :postType="postType" :client="client" />
9
9
  </div>
10
10
  <div class="w-thx-records">
11
- <boxcoin-records :postId="postId" :postType="postType" :cacheRecord="cacheRecord" :mode="mode"/>
11
+ <boxcoin-records :postId="postId" :postType="postType" :postClient="client" :cacheRecord="cacheRecord" :mode="mode"/>
12
12
  </div>
13
13
  <div class="w-thx-copyright">
14
14
  &copy; 所有原创作品,著作权归作者所有,所有未经授权的非署名转载或抄袭将有权追究法律责任,所有法律事务由专聘律师代理。<br>
@@ -126,7 +126,7 @@ export default {
126
126
  },
127
127
  client: this.client
128
128
  }
129
- wikiComment.post({ data: qs.stringify(data) }, {})
129
+ wikiComment.post({ data }, {})
130
130
  .then(
131
131
  (res) => {
132
132
  res = res.data;