@jx3box/jx3box-common-ui 5.6.7 → 5.7.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/assets/css/thx.less +5 -0
- package/package.json +5 -5
- package/src/interact/boxcoin_admin.vue +12 -22
- package/src/wiki/WikiPanel.vue +1 -1
package/assets/css/thx.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"last 2 versions"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jx3box/jx3box-comment-ui": "^1.
|
|
34
|
-
"@jx3box/jx3box-common": "^7.1.
|
|
35
|
-
"@jx3box/jx3box-data": "^1.
|
|
36
|
-
"@jx3box/jx3box-editor": "^1.2.
|
|
33
|
+
"@jx3box/jx3box-comment-ui": "^1.7.0",
|
|
34
|
+
"@jx3box/jx3box-common": "^7.1.2",
|
|
35
|
+
"@jx3box/jx3box-data": "^1.9.1",
|
|
36
|
+
"@jx3box/jx3box-editor": "^1.2.7",
|
|
37
37
|
"axios": "^0.26.1",
|
|
38
38
|
"dayjs": "^1.11.0",
|
|
39
39
|
"element-ui": "^2.13.2",
|
|
@@ -21,20 +21,10 @@
|
|
|
21
21
|
<em class="u-label">❤️ 品鉴</em>
|
|
22
22
|
<Contributors v-if="authors && authors.length" :authors="authors" @chosen="handleChosen" />
|
|
23
23
|
<div class="u-points">
|
|
24
|
-
<!--<el-radio-group v-model="fixedCount">-->
|
|
25
24
|
<el-radio-group v-model="count">
|
|
26
25
|
<el-radio :label="item" v-for="item in points" :key="item" border>
|
|
27
26
|
<b>{{item}}</b>盒币
|
|
28
27
|
</el-radio>
|
|
29
|
-
<!--<el-radio label="custom" border><b>自定义</b></el-radio>
|
|
30
|
-
<el-input-number
|
|
31
|
-
:disabled="this.fixedCount !== 'custom'"
|
|
32
|
-
v-model="customCount"
|
|
33
|
-
:min="this.allowedMin"
|
|
34
|
-
:max="this.allowedMax"
|
|
35
|
-
:controls="false">
|
|
36
|
-
</el-input-number>
|
|
37
|
-
-->
|
|
38
28
|
</el-radio-group>
|
|
39
29
|
</div>
|
|
40
30
|
</div>
|
|
@@ -48,6 +38,7 @@
|
|
|
48
38
|
:maxlength="30"
|
|
49
39
|
show-word-limit
|
|
50
40
|
></el-input>
|
|
41
|
+
<el-button @click="insertCurrentRelease">插入当前版本</el-button>
|
|
51
42
|
</div>
|
|
52
43
|
</div>
|
|
53
44
|
</div>
|
|
@@ -62,6 +53,7 @@
|
|
|
62
53
|
<script>
|
|
63
54
|
import { grantBoxcoin } from "../../service/thx.js";
|
|
64
55
|
import User from "@jx3box/jx3box-common/js/user";
|
|
56
|
+
import { getBreadcrumb } from "@jx3box/jx3box-common/js/api_misc";
|
|
65
57
|
import Contributors from './Contributors.vue';
|
|
66
58
|
export default {
|
|
67
59
|
name: "BoxcoinAdmin",
|
|
@@ -73,8 +65,6 @@ export default {
|
|
|
73
65
|
return {
|
|
74
66
|
visible: false,
|
|
75
67
|
count: 0,
|
|
76
|
-
//fixedCount: 0,
|
|
77
|
-
//customCount: 0,
|
|
78
68
|
|
|
79
69
|
remark: "辛苦,感谢!",
|
|
80
70
|
left : this.own,
|
|
@@ -84,18 +74,9 @@ export default {
|
|
|
84
74
|
};
|
|
85
75
|
},
|
|
86
76
|
computed: {
|
|
87
|
-
/*allowedMax: function () {
|
|
88
|
-
return this.max;
|
|
89
|
-
},
|
|
90
|
-
allowedMin: function () {
|
|
91
|
-
return this.min;
|
|
92
|
-
},*/
|
|
93
77
|
used: function () {
|
|
94
78
|
return this.total - this.left;
|
|
95
79
|
},
|
|
96
|
-
/*count: function() {
|
|
97
|
-
return this.fixedCount === "custom" ? this.customCount : this.fixedCount;
|
|
98
|
-
},*/
|
|
99
80
|
ready: function () {
|
|
100
81
|
return this.isNotSelf && this.isEnough && this.count && this.remark;
|
|
101
82
|
},
|
|
@@ -120,7 +101,6 @@ export default {
|
|
|
120
101
|
methods: {
|
|
121
102
|
openBoxcoinPop: function () {
|
|
122
103
|
this.visible = true;
|
|
123
|
-
//this.customCount = this.max / 2;
|
|
124
104
|
},
|
|
125
105
|
// 选择要打赏的对象
|
|
126
106
|
handleChosen(userId) {
|
|
@@ -150,6 +130,16 @@ export default {
|
|
|
150
130
|
this.visible = false;
|
|
151
131
|
});
|
|
152
132
|
},
|
|
133
|
+
insertCurrentRelease: function() {
|
|
134
|
+
getBreadcrumb("current-release").then(res => {
|
|
135
|
+
this.remark += res;
|
|
136
|
+
}).catch(err => {
|
|
137
|
+
this.$message({
|
|
138
|
+
message: "获取失败",
|
|
139
|
+
type: "error",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
},
|
|
153
143
|
init: function () {},
|
|
154
144
|
},
|
|
155
145
|
created: function () {},
|