@jx3box/jx3box-common-ui 5.5.0 → 5.5.4
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 +3 -3
- package/src/interact/boxcoin_records.vue +10 -7
- package/src/single/Thx.vue +14 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.4",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.6.6",
|
|
34
|
-
"@jx3box/jx3box-common": "^6.
|
|
34
|
+
"@jx3box/jx3box-common": "^6.8.2",
|
|
35
35
|
"@jx3box/jx3box-data": "^1.8.3",
|
|
36
|
-
"@jx3box/jx3box-editor": "^1.1.
|
|
36
|
+
"@jx3box/jx3box-editor": "^1.1.9",
|
|
37
37
|
"axios": "^0.19.2",
|
|
38
38
|
"element-ui": "^2.13.2",
|
|
39
39
|
"jquery": "^3.5.1",
|
|
@@ -73,6 +73,9 @@ export default {
|
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
computed: {
|
|
76
|
+
post_keys : function (){
|
|
77
|
+
return [this.postType,this.postId]
|
|
78
|
+
},
|
|
76
79
|
params: function () {
|
|
77
80
|
return {
|
|
78
81
|
pageSize: this.per,
|
|
@@ -81,6 +84,13 @@ export default {
|
|
|
81
84
|
},
|
|
82
85
|
},
|
|
83
86
|
watch: {
|
|
87
|
+
post_keys : {
|
|
88
|
+
immediate : true,
|
|
89
|
+
deep : true,
|
|
90
|
+
handler : function (){
|
|
91
|
+
this.postType && !!~~this.postId && this.loadData();
|
|
92
|
+
}
|
|
93
|
+
},
|
|
84
94
|
params: {
|
|
85
95
|
deep: true,
|
|
86
96
|
handler: function () {
|
|
@@ -99,9 +109,6 @@ export default {
|
|
|
99
109
|
}
|
|
100
110
|
},
|
|
101
111
|
methods: {
|
|
102
|
-
init: function () {
|
|
103
|
-
this.loadData();
|
|
104
|
-
},
|
|
105
112
|
loadData: function () {
|
|
106
113
|
getPostBoxcoinRecords(this.postType, this.postId, this.params).then(
|
|
107
114
|
(res) => {
|
|
@@ -138,9 +145,5 @@ export default {
|
|
|
138
145
|
return showAvatar(val, 24);
|
|
139
146
|
},
|
|
140
147
|
},
|
|
141
|
-
created: function () {},
|
|
142
|
-
mounted: function () {
|
|
143
|
-
this.init();
|
|
144
|
-
},
|
|
145
148
|
};
|
|
146
149
|
</script>
|
package/src/single/Thx.vue
CHANGED
|
@@ -52,8 +52,20 @@ export default {
|
|
|
52
52
|
boxcoin_enable : 0
|
|
53
53
|
};
|
|
54
54
|
},
|
|
55
|
-
computed: {
|
|
56
|
-
|
|
55
|
+
computed: {
|
|
56
|
+
post_keys : function (){
|
|
57
|
+
return [this.postId,this.postType]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
watch: {
|
|
61
|
+
post_keys : {
|
|
62
|
+
immediate : true,
|
|
63
|
+
deep:true,
|
|
64
|
+
handler : function (){
|
|
65
|
+
this.postType && !!~~this.postId && this.loadBoxcoinConfig()
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
57
69
|
methods: {
|
|
58
70
|
loadBoxcoinConfig : function (){
|
|
59
71
|
User.isLogin() && getPostBoxcoinConfig(this.postType).then((res) => {
|
|
@@ -80,15 +92,9 @@ export default {
|
|
|
80
92
|
},
|
|
81
93
|
}
|
|
82
94
|
},
|
|
83
|
-
init : function (){
|
|
84
|
-
this.loadBoxcoinConfig()
|
|
85
|
-
}
|
|
86
95
|
},
|
|
87
96
|
filters: {},
|
|
88
97
|
created: function () {},
|
|
89
|
-
mounted: function () {
|
|
90
|
-
this.init()
|
|
91
|
-
},
|
|
92
98
|
};
|
|
93
99
|
</script>
|
|
94
100
|
|