jmash-core-mp 0.1.25 → 0.1.26
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/components/cms/jmash-cms-activity-list.mpx +3 -1
- package/src/components/cms/jmash-cms-article-list.mpx +2 -0
- package/src/components/cms/jmash-cms-location-list.mpx +2 -0
- package/src/components/cms/jmash-cms-product-list.mpx +2 -0
- package/src/packages/pages/cms/cms-activity-list.mpx +1 -9
- package/src/packages/pages/cms/cms-article-list.mpx +1 -6
- package/src/packages/pages/cms/cms-location-list.mpx +1 -7
- package/src/packages/pages/cms/cms-product-list.mpx +1 -7
package/package.json
CHANGED
|
@@ -82,8 +82,10 @@ createComponent({
|
|
|
82
82
|
console.log("cms", props);
|
|
83
83
|
|
|
84
84
|
const loadRecords = function (page: number = 1) {
|
|
85
|
+
if (!props.channelAlias && !props.channelId) return
|
|
85
86
|
if (loading.value) return
|
|
86
87
|
loading.value = true;
|
|
88
|
+
curPage.value = page;
|
|
87
89
|
cmsApi.findCmsInfoPage({
|
|
88
90
|
tenant: props.organTenant || config.siteTenant,
|
|
89
91
|
siteId: props.siteId,
|
|
@@ -116,13 +118,13 @@ createComponent({
|
|
|
116
118
|
if (!hasMore.value || loading.value) return
|
|
117
119
|
loadRecords(curPage.value + 1)
|
|
118
120
|
}
|
|
119
|
-
loadRecords(1);
|
|
120
121
|
watch(
|
|
121
122
|
() => props.refreshKey,
|
|
122
123
|
() => {
|
|
123
124
|
loadRecords(1)
|
|
124
125
|
}
|
|
125
126
|
)
|
|
127
|
+
loadRecords(1);
|
|
126
128
|
return { resourceUrl, articleList, imageUrl, curPage, hasMore, loading, scrollTop, loadMore }
|
|
127
129
|
},
|
|
128
130
|
methods: {
|
|
@@ -81,8 +81,10 @@ createComponent({
|
|
|
81
81
|
console.log("cms", props);
|
|
82
82
|
|
|
83
83
|
const loadRecords = function (page: number = 1) {
|
|
84
|
+
if (!props.channelAlias && !props.channelId) return
|
|
84
85
|
if (loading.value) return
|
|
85
86
|
loading.value = true;
|
|
87
|
+
curPage.value = page;
|
|
86
88
|
cmsApi.findCmsInfoPage({
|
|
87
89
|
tenant: props.organTenant || config.siteTenant,
|
|
88
90
|
siteId: props.siteId,
|
|
@@ -84,8 +84,10 @@ createComponent({
|
|
|
84
84
|
console.log("cms", props);
|
|
85
85
|
|
|
86
86
|
const loadRecords = function (page: number = 1) {
|
|
87
|
+
if (!props.channelAlias && !props.channelId) return
|
|
87
88
|
if (loading.value) return
|
|
88
89
|
loading.value = true;
|
|
90
|
+
curPage.value = page;
|
|
89
91
|
cmsApi.findCmsInfoPage({
|
|
90
92
|
tenant: props.organTenant || config.siteTenant,
|
|
91
93
|
siteId: props.siteId,
|
|
@@ -74,8 +74,10 @@ createComponent({
|
|
|
74
74
|
console.log("cms", props);
|
|
75
75
|
|
|
76
76
|
const loadRecords = function (page: number = 1) {
|
|
77
|
+
if (!props.channelAlias && !props.channelId) return
|
|
77
78
|
if (loading.value) return
|
|
78
79
|
loading.value = true;
|
|
80
|
+
curPage.value = page;
|
|
79
81
|
cmsApi.findCmsInfoPage({
|
|
80
82
|
tenant: props.organTenant || config.siteTenant,
|
|
81
83
|
siteId: props.siteId,
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
<jmash-search placeholder="搜索" bind:handleSearch="handleInput" />
|
|
5
5
|
</view>
|
|
6
6
|
<!-- 栏目列表 -->
|
|
7
|
-
|
|
8
7
|
<jmash-cms-activity-list isInfo="false" style="1" organTenant="{{ queryParams.tenant }}"
|
|
9
8
|
siteId="{{ queryParams.siteId }}" likeInfoTitle="{{ queryParams.likeInfoTitle }}"
|
|
10
9
|
channelAlias="{{ queryParams.channelAlias }}" pageSize="10" refreshKey="{{ refreshKey }}" />
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
|
|
14
13
|
<script lang="ts">
|
|
15
14
|
import mpx, { createPage, ref } from "@mpxjs/core";
|
|
16
|
-
import { CmsChannelModel } from '../../../api/cms/types'
|
|
17
15
|
import { EventBase } from "../../../api/types";
|
|
18
16
|
|
|
19
17
|
createPage({
|
|
@@ -23,19 +21,13 @@ createPage({
|
|
|
23
21
|
let queryParams = ref({
|
|
24
22
|
tenant: config.siteTenant,
|
|
25
23
|
siteId: config.siteId,
|
|
26
|
-
channelAlias: "
|
|
24
|
+
channelAlias: "",
|
|
27
25
|
likeInfoTitle: "",
|
|
28
|
-
status: true,
|
|
29
26
|
isOpen: true,
|
|
30
27
|
});
|
|
31
|
-
// 栏目列表
|
|
32
|
-
let channelList = ref([] as CmsChannelModel[]);
|
|
33
|
-
|
|
34
28
|
let refreshKey = ref(0);
|
|
35
|
-
|
|
36
29
|
return {
|
|
37
30
|
queryParams,
|
|
38
|
-
channelList,
|
|
39
31
|
refreshKey,
|
|
40
32
|
}
|
|
41
33
|
},
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
<script lang="ts">
|
|
14
14
|
import mpx, { createPage, ref } from "@mpxjs/core";
|
|
15
|
-
import { CmsChannelModel } from '../../../api/cms/types'
|
|
16
15
|
import { EventBase } from "../../../api/types";
|
|
17
16
|
|
|
18
17
|
createPage({
|
|
@@ -22,19 +21,15 @@ createPage({
|
|
|
22
21
|
let queryParams = ref({
|
|
23
22
|
tenant: config.siteTenant,
|
|
24
23
|
siteId: config.siteId,
|
|
25
|
-
channelAlias: "
|
|
24
|
+
channelAlias: "",
|
|
26
25
|
likeInfoTitle: "",
|
|
27
|
-
status: true,
|
|
28
26
|
isOpen: true,
|
|
29
27
|
});
|
|
30
|
-
// 栏目列表
|
|
31
|
-
let channelList = ref([] as CmsChannelModel[]);
|
|
32
28
|
|
|
33
29
|
let refreshKey = ref(0);
|
|
34
30
|
|
|
35
31
|
return {
|
|
36
32
|
queryParams,
|
|
37
|
-
channelList,
|
|
38
33
|
refreshKey,
|
|
39
34
|
}
|
|
40
35
|
},
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
<jmash-search placeholder="搜索" bind:handleSearch="handleInput" />
|
|
5
5
|
</view>
|
|
6
6
|
<!-- 栏目列表 -->
|
|
7
|
-
|
|
8
7
|
<jmash-cms-location-list isInfo="false" style="1" organTenant="{{ queryParams.tenant }}"
|
|
9
8
|
siteId="{{ queryParams.siteId }}" likeInfoTitle="{{ queryParams.likeInfoTitle }}"
|
|
10
9
|
channelAlias="{{ queryParams.channelAlias }}" pageSize="10" refreshKey="{{ refreshKey }}" />
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
|
|
14
13
|
<script lang="ts">
|
|
15
14
|
import mpx, { createPage, ref } from "@mpxjs/core";
|
|
16
|
-
import { CmsChannelModel } from '../../../api/cms/types'
|
|
17
15
|
import { EventBase } from "../../../api/types";
|
|
18
16
|
|
|
19
17
|
createPage({
|
|
@@ -23,19 +21,15 @@ createPage({
|
|
|
23
21
|
let queryParams = ref({
|
|
24
22
|
tenant: config.siteTenant,
|
|
25
23
|
siteId: config.siteId,
|
|
26
|
-
channelAlias: "
|
|
24
|
+
channelAlias: "",
|
|
27
25
|
likeInfoTitle: "",
|
|
28
|
-
status: true,
|
|
29
26
|
isOpen: true,
|
|
30
27
|
});
|
|
31
|
-
// 栏目列表
|
|
32
|
-
let channelList = ref([] as CmsChannelModel[]);
|
|
33
28
|
|
|
34
29
|
let refreshKey = ref(0);
|
|
35
30
|
|
|
36
31
|
return {
|
|
37
32
|
queryParams,
|
|
38
|
-
channelList,
|
|
39
33
|
refreshKey,
|
|
40
34
|
}
|
|
41
35
|
},
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
<jmash-search placeholder="搜索" bind:handleSearch="handleInput" />
|
|
5
5
|
</view>
|
|
6
6
|
<!-- 栏目列表 -->
|
|
7
|
-
|
|
8
7
|
<jmash-cms-product-list isInfo="false" style="1" organTenant="{{ queryParams.tenant }}"
|
|
9
8
|
siteId="{{ queryParams.siteId }}" likeInfoTitle="{{ queryParams.likeInfoTitle }}"
|
|
10
9
|
channelAlias="{{ queryParams.channelAlias }}" pageSize="10" refreshKey="{{ refreshKey }}" />
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
|
|
14
13
|
<script lang="ts">
|
|
15
14
|
import mpx, { createPage, ref } from "@mpxjs/core";
|
|
16
|
-
import { CmsChannelModel } from '../../../api/cms/types'
|
|
17
15
|
import { EventBase } from "../../../api/types";
|
|
18
16
|
|
|
19
17
|
createPage({
|
|
@@ -23,19 +21,15 @@ createPage({
|
|
|
23
21
|
let queryParams = ref({
|
|
24
22
|
tenant: config.siteTenant,
|
|
25
23
|
siteId: config.siteId,
|
|
26
|
-
channelAlias: "
|
|
24
|
+
channelAlias: "",
|
|
27
25
|
likeInfoTitle: "",
|
|
28
|
-
status: true,
|
|
29
26
|
isOpen: true,
|
|
30
27
|
});
|
|
31
|
-
// 栏目列表
|
|
32
|
-
let channelList = ref([] as CmsChannelModel[]);
|
|
33
28
|
|
|
34
29
|
let refreshKey = ref(0);
|
|
35
30
|
|
|
36
31
|
return {
|
|
37
32
|
queryParams,
|
|
38
|
-
channelList,
|
|
39
33
|
refreshKey,
|
|
40
34
|
}
|
|
41
35
|
},
|