@jx3box/jx3box-common-ui 6.1.6 → 6.1.9

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.6",
3
+ "version": "6.1.9",
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.8",
36
+ "@jx3box/jx3box-editor": "^1.5.0",
37
37
  "axios": "^0.26.1",
38
38
  "dayjs": "^1.11.0",
39
39
  "element-ui": "^2.13.2",
@@ -14,13 +14,19 @@
14
14
  {{ btnText }}
15
15
  <!-- <span class="u-follow-count">{{ formatFansNum(fansNum) }} </span> -->
16
16
  </el-button>
17
- <el-popover v-else placement="bottom" trigger="hover" popper-class="u-follow-popover" :visible-arrow="false">
17
+ <el-popover
18
+ v-else
19
+ placement="bottom"
20
+ trigger="hover"
21
+ popper-class="c-author-follow-popover"
22
+ :visible-arrow="false"
23
+ >
18
24
  <div class="u-action-list">
19
25
  <div class="u-action-item" v-for="item in actions" :key="item.label" @click.stop="item.action">
20
26
  {{ item.label }}
21
27
  </div>
22
28
  </div>
23
- <el-button class="u-unfollow-btn" size="mini" :type="btnType" slot="reference"
29
+ <el-button class="u-btn" size="mini" :type="btnType" slot="reference"
24
30
  >{{ btnText }}
25
31
  <!-- TODO:后续在粉丝榜中展示粉丝数 -->
26
32
  <!-- <span class="u-follow-count">{{ formatFansNum(fansNum) }}</span> -->
@@ -146,39 +152,33 @@ export default {
146
152
  };
147
153
  </script>
148
154
 
149
- <style scoped lang="less">
150
- .c-author-follow{
151
- // .u-btn{
152
- // background-color: #31dee6;
153
- // border-color:lighten(#31dee6,5%);
154
- // color: #fff;
155
- // }
156
- }
157
-
158
- .u-unfollow-btn {
159
- &.el-button {
160
- margin-right: 10px;
161
- }
162
- }
163
- .u-follow-popover {
164
- &.el-popover {
165
- min-width: 100px;
166
- padding: 0;
167
- margin: 0;
168
- .u-action-list {
169
- .u-action-item {
170
- text-align: center;
171
- cursor: pointer;
172
- padding: 8px 10px;
173
- &:hover {
174
- background: rgb(248, 248, 251);
155
+ <style lang="less">
156
+ .c-author-follow-popover {
157
+ .u-follow-popover {
158
+ &.el-popover {
159
+ min-width: 100px;
160
+ padding: 0;
161
+ margin: 0;
162
+ .u-action-list {
163
+ .u-action-item {
164
+ text-align: center;
165
+ cursor: pointer;
166
+ padding: 8px 10px;
167
+ &:hover {
168
+ background: rgb(248, 248, 251);
169
+ }
175
170
  }
176
171
  }
177
172
  }
178
173
  }
179
- }
180
- .u-follow-count {
181
- margin-left: 5px;
174
+ .u-follow-count {
175
+ margin-left: 5px;
176
+ }
182
177
  }
183
178
 
179
+ @media screen and (max-width: @phone) {
180
+ .el-message-box {
181
+ max-width: 60%;
182
+ }
183
+ }
184
184
  </style>
@@ -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,16 +123,14 @@ 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 =
133
- res.data.data.asUserBoxCoinRemainAll +
134
- res.data.data.asUserBoxCoinRemainStd +
135
- res.data.data.asUserBoxCoinRemainOrigin;
132
+ // TODO:支持其它端
133
+ this.user_left = res.data.data.asUserBoxCoinRemainAll
136
134
  }
137
135
  });
138
136
  getBoxcoinStatus().then((res) => {