@jx3box/jx3box-common-ui 6.1.7 → 6.2.0

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": "6.1.7",
3
+ "version": "6.2.0",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,7 +33,7 @@
33
33
  "@jx3box/jx3box-comment-ui": "^1.7.1",
34
34
  "@jx3box/jx3box-common": "^7.4.2",
35
35
  "@jx3box/jx3box-data": "^1.11.1",
36
- "@jx3box/jx3box-editor": "^1.4.9",
36
+ "@jx3box/jx3box-editor": "^1.5.3",
37
37
  "axios": "^0.26.1",
38
38
  "dayjs": "^1.11.0",
39
39
  "element-ui": "^2.13.2",
@@ -20,7 +20,8 @@
20
20
  <div class="u-content">
21
21
  <div class="u-left">
22
22
  <em class="u-label">🌟 金箔</em>
23
- <b>{{ this.left }}</b>
23
+ <b>{{ left }}</b>
24
+ <a class="u-charge" :href="chargeLink" target="_blank">[充值]</a>
24
25
  </div>
25
26
  <div class="u-list">
26
27
  <em class="u-label">❤️ 赠送</em>
@@ -71,6 +72,7 @@ export default {
71
72
 
72
73
  left: 0, //剩余量
73
74
  status: true, //默认可打赏
75
+ chargeLink: "/vip/cny?redirect=" + location.href,
74
76
 
75
77
  count: 0, //打赏数量
76
78
  remark: "辛苦,感谢!",
@@ -123,13 +123,16 @@ export default {
123
123
 
124
124
  this.user_points = res.data.data.limit.user_points || [10, 1000];
125
125
  // 根据多端展示剩余币
126
- // 作品是n端,接受n端币+all币,但转化为n端币
126
+ // 作品是n端,接受n端币+all
127
127
  if (this.client == "origin") {
128
128
  this.user_left = res.data.data.asUserBoxCoinRemainOrigin + res.data.data.asUserBoxCoinRemainAll;
129
129
  } else if (this.client == "std") {
130
130
  this.user_left = res.data.data.asUserBoxCoinRemainStd + res.data.data.asUserBoxCoinRemainAll;
131
131
  } else {
132
- this.user_left = res.data.data.asUserBoxCoinRemainAll
132
+ this.user_left =
133
+ res.data.data.asUserBoxCoinRemainAll +
134
+ res.data.data.asUserBoxCoinRemainStd +
135
+ res.data.data.asUserBoxCoinRemainOrigin;
133
136
  }
134
137
  });
135
138
  getBoxcoinStatus().then((res) => {