@jx3box/jx3box-vue3-ui 0.7.7 → 0.7.8
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 +1 -1
- package/src/single/Thx.vue +11 -5
- package/src/single/cms-single.vue +16 -1
package/package.json
CHANGED
package/src/single/Thx.vue
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:points="admin_points"
|
|
14
14
|
:authors="authors"
|
|
15
15
|
@updateRecord="updateRecord"
|
|
16
|
-
:client="
|
|
16
|
+
:client="finalClient"
|
|
17
17
|
/>
|
|
18
18
|
<Like :postId="postId" :postType="postType"></Like>
|
|
19
19
|
<fav :postId="postId" :postType="postType" :postTitle="postTitle"></fav>
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
:authors="authors"
|
|
28
28
|
v-if="userBoxcoinEnable && boxcoin_enable && allowGift"
|
|
29
29
|
@updateRecord="updateRecord"
|
|
30
|
-
:client="
|
|
30
|
+
:client="finalClient"
|
|
31
31
|
/>
|
|
32
32
|
<Share :postId="postId" :postType="postType" :client="client" />
|
|
33
33
|
</div>
|
|
34
34
|
<div class="w-thx-records">
|
|
35
|
-
<boxcoin-records :postId="postId" :postType="postType" :postClient="
|
|
35
|
+
<boxcoin-records :postId="postId" :postType="postType" :postClient="finalClient" :cacheRecord="cacheRecord"
|
|
36
36
|
:mode="mode" @update:boxcoin="updateBoxcoin" />
|
|
37
37
|
</div>
|
|
38
38
|
<div class="w-thx-copyright">
|
|
@@ -135,6 +135,12 @@ export default {
|
|
|
135
135
|
post_keys: function () {
|
|
136
136
|
return [this.postId, this.postType];
|
|
137
137
|
},
|
|
138
|
+
finalClient: function() {
|
|
139
|
+
if (this.client == 'wujie') {
|
|
140
|
+
return "std"
|
|
141
|
+
}
|
|
142
|
+
return this.client
|
|
143
|
+
}
|
|
138
144
|
},
|
|
139
145
|
watch: {
|
|
140
146
|
post_keys: {
|
|
@@ -158,9 +164,9 @@ export default {
|
|
|
158
164
|
this.user_points = res.data.data.limit.user_points || [10, 1000];
|
|
159
165
|
// 根据多端展示剩余币
|
|
160
166
|
// 作品是n端,接受n端币+all币
|
|
161
|
-
if (this.
|
|
167
|
+
if (this.finalClient == "origin") {
|
|
162
168
|
this.user_left = res.data.data.asUserBoxCoinRemainOrigin + res.data.data.asUserBoxCoinRemainAll;
|
|
163
|
-
} else if (this.
|
|
169
|
+
} else if (this.finalClient == "std") {
|
|
164
170
|
this.user_left = res.data.data.asUserBoxCoinRemainStd + res.data.data.asUserBoxCoinRemainAll;
|
|
165
171
|
} else {
|
|
166
172
|
this.user_left =
|
|
@@ -80,7 +80,7 @@ import Thx from "./Thx.vue";
|
|
|
80
80
|
// import RightAffix from "./right-affix.vue";
|
|
81
81
|
import Article from "../editor/Article.vue";
|
|
82
82
|
// import ArticleMarkdown from "@jx3box/jx3box-editor/src/ArticleMarkdown.vue";
|
|
83
|
-
import Comment from "./Comment.vue";
|
|
83
|
+
import Comment from "./Comment.vue";
|
|
84
84
|
const { __visibleMap } = require("@jx3box/jx3box-common/data/jx3box.json");
|
|
85
85
|
import { getAppType } from "@jx3box/jx3box-common/js/utils";
|
|
86
86
|
export default {
|
|
@@ -164,6 +164,9 @@ export default {
|
|
|
164
164
|
post_client: function () {
|
|
165
165
|
return this.post?.client || "all";
|
|
166
166
|
},
|
|
167
|
+
community_id: function () {
|
|
168
|
+
return this.post?.community_id || 0;
|
|
169
|
+
},
|
|
167
170
|
},
|
|
168
171
|
methods: {
|
|
169
172
|
updateCollection: function (val) {
|
|
@@ -204,6 +207,18 @@ export default {
|
|
|
204
207
|
}
|
|
205
208
|
},
|
|
206
209
|
},
|
|
210
|
+
community_id: {
|
|
211
|
+
immediate: true,
|
|
212
|
+
handler(val) {
|
|
213
|
+
if (val && val != 0) {
|
|
214
|
+
// 防止死循环
|
|
215
|
+
if (location.href.includes(`/community/${val}`)) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
location.href = `/community/${val}`;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
207
222
|
},
|
|
208
223
|
};
|
|
209
224
|
</script>
|