@jx3box/jx3box-common-ui 8.9.4 → 8.9.6
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
package/service/cms.js
CHANGED
|
@@ -45,6 +45,10 @@ function getSliders(source_type, source_ids, client="std") {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
function getSlider(params) {
|
|
49
|
+
return $cms({ mute: true }).get(`/api/cms/news/item`, { params });
|
|
50
|
+
}
|
|
51
|
+
|
|
48
52
|
function getCollection(id) {
|
|
49
53
|
return $cms({ mute: true }).get(`/api/cms/post/collection/${id}`);
|
|
50
54
|
}
|
|
@@ -74,4 +78,4 @@ function setUserMeta(key,data) {
|
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
export { getPostAuthors, uploadImage, upload, getDecoration, getDecorationJson, checkTeamMember,
|
|
77
|
-
getSliders, getCollection, getTopicBucket, getConfig, getUserMeta, setUserMeta };
|
|
81
|
+
getSliders,getSlider, getCollection, getTopicBucket, getConfig, getUserMeta, setUserMeta };
|
package/src/bread/AdminDrop.vue
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<div class="u-meta u-sub-block">
|
|
45
45
|
<em class="u-label">适用客户端</em>
|
|
46
46
|
<span class="u-value u-client" :class="'i-client-' + client">{{ showClientLabel(client) }}</span>
|
|
47
|
-
<span class="u-value u-client i-client-wujie">无界</span>
|
|
47
|
+
<span class="u-value u-client i-client-wujie" v-if="is_wujie">无界</span>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
50
|
<!-- 发布日期 -->
|
package/src/single/PostTopic.vue
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
|
-
import {
|
|
17
|
+
import { getSlider } from "../../service/cms";
|
|
18
18
|
import { getThumbnail } from "@jx3box/jx3box-common/js/utils";
|
|
19
19
|
import dayjs from "dayjs";
|
|
20
20
|
export default {
|
|
@@ -67,14 +67,11 @@ export default {
|
|
|
67
67
|
},
|
|
68
68
|
methods: {
|
|
69
69
|
loadData() {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
);
|
|
76
|
-
this.topicInfo = list[0];
|
|
77
|
-
}
|
|
70
|
+
getSlider({
|
|
71
|
+
source_type: this.type,
|
|
72
|
+
source_id: this.id,
|
|
73
|
+
}).then((res) => {
|
|
74
|
+
this.topicInfo = res.data?.data
|
|
78
75
|
});
|
|
79
76
|
},
|
|
80
77
|
},
|