@jx3box/jx3box-common-ui 7.4.8 → 7.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.4.8",
3
+ "version": "7.5.0",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/cms.js CHANGED
@@ -32,11 +32,12 @@ function checkTeamMember() {
32
32
  return $cms().get(`/api/cms/config/teammates/check`);
33
33
  }
34
34
 
35
- function getSliders(source_type, source_ids) {
35
+ function getSliders(source_type, source_ids, client="std") {
36
36
  let _params = {
37
37
  type: "slider",
38
38
  source_type,
39
39
  per: 10,
40
+ client,
40
41
  };
41
42
 
42
43
  if (source_ids) {
package/src/Footer.vue CHANGED
@@ -8,11 +8,11 @@
8
8
  <div class="c-footer-right">
9
9
  <a class="u-about" :href="about" target="_blank">关于我们</a>
10
10
  <em>|</em>
11
- <a class="u-doc" href="/help" target="_blank">帮助文档</a>
11
+ <a class="u-doc" href="/tool?subtype=4" target="_blank">帮助文档</a>
12
12
  <em>|</em>
13
13
  <a class="u-log" href="https://github.com/JX3BOX" target="_blank">代码仓库</a>
14
14
  <em>|</em>
15
- <a class="u-feedback" :href="feedback" target="_blank">反馈建议</a>
15
+ <a class="u-feedback" href="/feedback" target="_blank">反馈建议</a>
16
16
  </div>
17
17
  <slot></slot>
18
18
  </div>
@@ -38,6 +38,9 @@ export default {
38
38
  topicImage() {
39
39
  return this.topicInfo ? getThumbnail(this.topicInfo.img, [260*2, 78*2]) : ''
40
40
  },
41
+ client() {
42
+ return location.href.includes("origin") ? "origin" : "std";
43
+ },
41
44
  },
42
45
  watch: {
43
46
  id: {
@@ -50,7 +53,7 @@ export default {
50
53
  },
51
54
  methods: {
52
55
  loadData() {
53
- getSliders(this.type, this.id).then((res) => {
56
+ getSliders(this.type, this.id, this.client).then((res) => {
54
57
  if (res.data.data?.list) {
55
58
  // 取创建时间最新的一条
56
59
  const list = res.data.data.list.sort((a, b) => dayjs(b.created_at).isAfter(dayjs(a.created_at)) ? 1 : -1);