jmash-core-mp 0.1.86 → 0.1.87
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/lib/api/cms/index.d.ts +1 -2
- package/lib/api/cms/index.js +1 -13
- package/lib/api/cms/types.d.ts +9 -16
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/cms/index.ts +1 -17
- package/src/api/cms/types.ts +19 -31
- package/src/components/cms/jmash-cms-article.mpx +10 -1
- package/src/components/cms/jmash-cms-location.mpx +10 -1
- package/src/components/common/jmash-cell-group.mpx +16 -1
- package/src/index.ts +23 -4
package/lib/api/cms/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CmsSiteKey, CmsSiteList, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsInfoReq, CmsInfoPage, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileList, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeModel, FrontLikeCreateReq, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectPage,
|
|
1
|
+
import { CmsSiteKey, CmsSiteList, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsInfoReq, CmsInfoPage, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileList, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeModel, FrontLikeCreateReq, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectPage, FrontCollectReq, CmsChannelKey, CmsChannelModel, CmsSeatsReq, CmsSeatsList, CmsSeatInfoReq, CmsSeatInfoList } from "./types";
|
|
2
2
|
import { ResponseData } from "../../api/types";
|
|
3
3
|
declare class CmsApiImpl {
|
|
4
4
|
findCmsSiteList(tenant: string): Promise<ResponseData<CmsSiteList>>;
|
|
@@ -20,7 +20,6 @@ declare class CmsApiImpl {
|
|
|
20
20
|
findFrontCommentPage(data: FrontCommentReq): Promise<ResponseData<FrontCommentPage>>;
|
|
21
21
|
createFrontComment(data: FrontCommentCreateReq): Promise<ResponseData<FrontCommentModel>>;
|
|
22
22
|
createMyFrontCollect(data: FrontCollectCreateReq): Promise<ResponseData<FrontCollectModel>>;
|
|
23
|
-
deleteMyFrontCollect(data: FrontCollectKey): Promise<ResponseData<FrontCollectModel>>;
|
|
24
23
|
findMyAllCollectPage(data: FrontCollectReq): Promise<ResponseData<FrontCollectPage>>;
|
|
25
24
|
}
|
|
26
25
|
declare const cmsApi: CmsApiImpl;
|
package/lib/api/cms/index.js
CHANGED
|
@@ -215,7 +215,7 @@ class CmsApiImpl {
|
|
|
215
215
|
},
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
//
|
|
218
|
+
// 收藏/取消收藏
|
|
219
219
|
createMyFrontCollect(data) {
|
|
220
220
|
return mpx.xfetch.fetch({
|
|
221
221
|
url: "/v1/front/front/my_front_collect",
|
|
@@ -226,18 +226,6 @@ class CmsApiImpl {
|
|
|
226
226
|
},
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
// 取消收藏
|
|
230
|
-
deleteMyFrontCollect(data) {
|
|
231
|
-
grpc.clearEmpty(data);
|
|
232
|
-
return mpx.xfetch.fetch({
|
|
233
|
-
url: "/v1/front/front/my_front_collect/id",
|
|
234
|
-
method: "GET",
|
|
235
|
-
data,
|
|
236
|
-
header: {
|
|
237
|
-
"Grpc-Metadata-Tenant": data.tenant,
|
|
238
|
-
},
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
229
|
// 查询当前库下我的全部收藏分页
|
|
242
230
|
findMyAllCollectPage(data) {
|
|
243
231
|
if (data) {
|
package/lib/api/cms/types.d.ts
CHANGED
|
@@ -136,17 +136,6 @@ export interface CmsContentInfoModel {
|
|
|
136
136
|
cmsInfo?: CmsInfoModel;
|
|
137
137
|
infoContentResults?: Array<CmsInfoContentModel>;
|
|
138
138
|
}
|
|
139
|
-
export interface CmsInfoKey {
|
|
140
|
-
tenant?: string;
|
|
141
|
-
infoId?: string;
|
|
142
|
-
}
|
|
143
|
-
export interface CmsInfoContentReq {
|
|
144
|
-
tenant?: string;
|
|
145
|
-
infoId?: string;
|
|
146
|
-
}
|
|
147
|
-
export interface CmsInfoContentList {
|
|
148
|
-
results: Array<CmsInfoContentModel>;
|
|
149
|
-
}
|
|
150
139
|
export interface CmsInfoFileReq {
|
|
151
140
|
tenant?: string;
|
|
152
141
|
infoId?: string;
|
|
@@ -163,6 +152,14 @@ export interface CmsInfoFileModel {
|
|
|
163
152
|
fileHeight?: number;
|
|
164
153
|
videoTime?: number;
|
|
165
154
|
intro?: string;
|
|
155
|
+
fileLocation?: string;
|
|
156
|
+
geoLongitude?: number;
|
|
157
|
+
geoLatitude?: number;
|
|
158
|
+
geoAccuracy?: number;
|
|
159
|
+
geoAltitude?: string;
|
|
160
|
+
geoAltitudeAccracy?: number;
|
|
161
|
+
createTime?: string;
|
|
162
|
+
createBy?: string;
|
|
166
163
|
}
|
|
167
164
|
export interface CmsInfoFileList {
|
|
168
165
|
results: Array<CmsInfoFileModel>;
|
|
@@ -316,6 +313,7 @@ export interface FrontCollectCreateReq {
|
|
|
316
313
|
appId?: string;
|
|
317
314
|
linkUrl?: string;
|
|
318
315
|
organId?: string;
|
|
316
|
+
action?: boolean;
|
|
319
317
|
}
|
|
320
318
|
export interface FrontCollectModel {
|
|
321
319
|
collectId?: string;
|
|
@@ -340,11 +338,6 @@ export interface FrontCollectPage {
|
|
|
340
338
|
subTotalDto?: FrontCollectModelTotal;
|
|
341
339
|
totalDto?: FrontCollectModelTotal;
|
|
342
340
|
}
|
|
343
|
-
export interface FrontCollectKey {
|
|
344
|
-
tenant?: string;
|
|
345
|
-
collectId?: string;
|
|
346
|
-
organId?: string;
|
|
347
|
-
}
|
|
348
341
|
export interface FrontCollectReq {
|
|
349
342
|
tenant: string;
|
|
350
343
|
curPage?: number;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { AppConfig, ResponseData, ValidateData, EventBase, EventTarget, CanvasResponse, } from "./api/types";
|
|
2
2
|
export type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo, GzhSubscribeCheckReq, } from "./api/auth/types";
|
|
3
|
-
export type { CmsSiteList, CmsChannelReq, CmsChannelList,
|
|
3
|
+
export type { CmsSiteList, CmsSiteKey, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsChannelModel, CmsChannelKey, CmsInfoPage, CmsInfoModelTotal, CmsInfoReq, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentModel, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileModel, CmsInfoFileList, CmsSeatsReq, CmsSeatsList, CmsSeatsModel, CmsSeatInfoReq, CmsSeatInfoList, CmsSeatInfoModel, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeCreateReq, FrontLikeModel, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentModelTotal, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectModelTotal, FrontCollectPage, FrontCollectReq, } from "./api/cms/types";
|
|
4
4
|
export type { Entry, DictEntryModel, DictEntryLayModel, } from "./api/dict/types";
|
|
5
5
|
export { EntryDict, EnumDict, EntryLayDict, CustomBizDict } from "./api/dicts";
|
|
6
6
|
export type { FileInfo, FileBase64Req, FileDownInfo, FileWebReq, } from "./api/files/types";
|
package/package.json
CHANGED
package/src/api/cms/index.ts
CHANGED
|
@@ -28,7 +28,6 @@ import {
|
|
|
28
28
|
FrontCollectCreateReq,
|
|
29
29
|
FrontCollectModel,
|
|
30
30
|
FrontCollectPage,
|
|
31
|
-
FrontCollectKey,
|
|
32
31
|
FrontCollectReq,
|
|
33
32
|
CmsChannelKey,
|
|
34
33
|
CmsChannelModel,
|
|
@@ -295,7 +294,7 @@ class CmsApiImpl {
|
|
|
295
294
|
});
|
|
296
295
|
}
|
|
297
296
|
|
|
298
|
-
//
|
|
297
|
+
// 收藏/取消收藏
|
|
299
298
|
createMyFrontCollect(
|
|
300
299
|
data: FrontCollectCreateReq,
|
|
301
300
|
): Promise<ResponseData<FrontCollectModel>> {
|
|
@@ -309,21 +308,6 @@ class CmsApiImpl {
|
|
|
309
308
|
});
|
|
310
309
|
}
|
|
311
310
|
|
|
312
|
-
// 取消收藏
|
|
313
|
-
deleteMyFrontCollect(
|
|
314
|
-
data: FrontCollectKey,
|
|
315
|
-
): Promise<ResponseData<FrontCollectModel>> {
|
|
316
|
-
grpc.clearEmpty(data);
|
|
317
|
-
return mpx.xfetch.fetch({
|
|
318
|
-
url: "/v1/front/front/my_front_collect/id",
|
|
319
|
-
method: "GET",
|
|
320
|
-
data,
|
|
321
|
-
header: {
|
|
322
|
-
"Grpc-Metadata-Tenant": data.tenant,
|
|
323
|
-
},
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
|
|
327
311
|
// 查询当前库下我的全部收藏分页
|
|
328
312
|
findMyAllCollectPage(
|
|
329
313
|
data: FrontCollectReq,
|
package/src/api/cms/types.ts
CHANGED
|
@@ -267,27 +267,6 @@ export interface CmsContentInfoModel {
|
|
|
267
267
|
infoContentResults?: Array<CmsInfoContentModel>;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
// 信息主表主键
|
|
271
|
-
export interface CmsInfoKey {
|
|
272
|
-
// 租户
|
|
273
|
-
tenant?: string;
|
|
274
|
-
// 内容ID
|
|
275
|
-
infoId?: string;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// 信息内容查询
|
|
279
|
-
export interface CmsInfoContentReq {
|
|
280
|
-
// 租户
|
|
281
|
-
tenant?: string;
|
|
282
|
-
// 信息ID
|
|
283
|
-
infoId?: string;
|
|
284
|
-
}
|
|
285
|
-
// 信息内容列表
|
|
286
|
-
export interface CmsInfoContentList {
|
|
287
|
-
// 当前页内容
|
|
288
|
-
results: Array<CmsInfoContentModel>;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
270
|
// 信息附件表查询
|
|
292
271
|
export interface CmsInfoFileReq {
|
|
293
272
|
// 租户
|
|
@@ -303,7 +282,7 @@ export interface CmsInfoFileModel {
|
|
|
303
282
|
infoId?: string;
|
|
304
283
|
// 文件名称
|
|
305
284
|
fileName?: string;
|
|
306
|
-
// 文件类型
|
|
285
|
+
// 文件类型(text/video/image/audio/zip/file)
|
|
307
286
|
fileType?: string;
|
|
308
287
|
// 地址
|
|
309
288
|
filePath?: string;
|
|
@@ -319,6 +298,22 @@ export interface CmsInfoFileModel {
|
|
|
319
298
|
videoTime?: number;
|
|
320
299
|
// 文件介绍
|
|
321
300
|
intro?: string;
|
|
301
|
+
// 信息采集地址
|
|
302
|
+
fileLocation?: string;
|
|
303
|
+
// 经度
|
|
304
|
+
geoLongitude?: number;
|
|
305
|
+
// 纬度
|
|
306
|
+
geoLatitude?: number;
|
|
307
|
+
// 精度
|
|
308
|
+
geoAccuracy?: number;
|
|
309
|
+
// 海拔高度
|
|
310
|
+
geoAltitude?: string;
|
|
311
|
+
// 海拔高度精度
|
|
312
|
+
geoAltitudeAccracy?: number;
|
|
313
|
+
// 创建时间
|
|
314
|
+
createTime?: string;
|
|
315
|
+
// 创建者
|
|
316
|
+
createBy?: string;
|
|
322
317
|
}
|
|
323
318
|
// 信息附件表列表
|
|
324
319
|
export interface CmsInfoFileList {
|
|
@@ -610,6 +605,8 @@ export interface FrontCollectCreateReq {
|
|
|
610
605
|
linkUrl?: string;
|
|
611
606
|
// 组织ID
|
|
612
607
|
organId?: string;
|
|
608
|
+
// 收藏true/取消收藏false
|
|
609
|
+
action?: boolean;
|
|
613
610
|
}
|
|
614
611
|
// 收藏表实体
|
|
615
612
|
export interface FrontCollectModel {
|
|
@@ -654,15 +651,6 @@ export interface FrontCollectPage {
|
|
|
654
651
|
// 合计
|
|
655
652
|
totalDto?: FrontCollectModelTotal;
|
|
656
653
|
}
|
|
657
|
-
// 收藏表主键
|
|
658
|
-
export interface FrontCollectKey {
|
|
659
|
-
// 租户
|
|
660
|
-
tenant?: string;
|
|
661
|
-
// 收藏id
|
|
662
|
-
collectId?: string;
|
|
663
|
-
// 组织ID
|
|
664
|
-
organId?: string;
|
|
665
|
-
}
|
|
666
654
|
// 查询我的收藏分页
|
|
667
655
|
export interface FrontCollectReq {
|
|
668
656
|
// 租户
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
</view>
|
|
36
36
|
</block>
|
|
37
37
|
<block wx:if="{{ item.infoType === 'text' }}">
|
|
38
|
-
<
|
|
38
|
+
<view class="article-text">
|
|
39
|
+
<rich-text style="width: 100%;" nodes="{{ item.infoContent }}" />
|
|
40
|
+
</view>
|
|
39
41
|
</block>
|
|
40
42
|
</block>
|
|
41
43
|
</view>
|
|
@@ -220,6 +222,13 @@ createComponent({
|
|
|
220
222
|
color: #333;
|
|
221
223
|
line-height: 1.8;
|
|
222
224
|
margin-bottom: 16rpx;
|
|
225
|
+
|
|
226
|
+
// 处理图片太大问题
|
|
227
|
+
.rich-img {
|
|
228
|
+
width: 100% !important;
|
|
229
|
+
height: auto !important;
|
|
230
|
+
display: block !important;
|
|
231
|
+
}
|
|
223
232
|
}
|
|
224
233
|
}
|
|
225
234
|
</style>
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
</view>
|
|
34
34
|
</block>
|
|
35
35
|
<block wx:if="{{ item.infoType === 'text' }}">
|
|
36
|
-
<
|
|
36
|
+
<view class="article-text">
|
|
37
|
+
<rich-text style="width: 100%;" nodes="{{ item.infoContent }}" />
|
|
38
|
+
</view>
|
|
37
39
|
</block>
|
|
38
40
|
</block>
|
|
39
41
|
</view>
|
|
@@ -146,6 +148,13 @@ createComponent({
|
|
|
146
148
|
color: #333;
|
|
147
149
|
line-height: 1.8;
|
|
148
150
|
margin-bottom: 16rpx;
|
|
151
|
+
|
|
152
|
+
// 处理图片太大问题
|
|
153
|
+
.rich-img {
|
|
154
|
+
width: 100% !important;
|
|
155
|
+
height: auto !important;
|
|
156
|
+
display: block !important;
|
|
157
|
+
}
|
|
149
158
|
}
|
|
150
159
|
}
|
|
151
160
|
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
src="{{ resourceUrl + item.icon }}" mode="widthFix" />
|
|
12
12
|
<view class="cell-text">{{ item.text }}</view>
|
|
13
13
|
</view>
|
|
14
|
-
<
|
|
14
|
+
<view class="my-cell-item-r">
|
|
15
|
+
<text wx:if="{{ item.desc }}" class="cell-desc">{{ item.desc }}</text>
|
|
16
|
+
<cube-icon class="cell-arrow" type="arrow" size="28rpx" />
|
|
17
|
+
</view>
|
|
15
18
|
</button>
|
|
16
19
|
</block>
|
|
17
20
|
</view>
|
|
@@ -172,6 +175,18 @@ createComponent({
|
|
|
172
175
|
color: #1f2937;
|
|
173
176
|
}
|
|
174
177
|
|
|
178
|
+
.my-cell-item-r {
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
gap: 10rpx;
|
|
182
|
+
|
|
183
|
+
.cell-desc {
|
|
184
|
+
font-size: 28rpx;
|
|
185
|
+
color: $font-color-grey-opacity;
|
|
186
|
+
line-height: 40rpx;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
175
190
|
.cell-arrow {
|
|
176
191
|
color: $font-color-grey-opacity;
|
|
177
192
|
}
|
package/src/index.ts
CHANGED
|
@@ -21,28 +21,47 @@ export type {
|
|
|
21
21
|
} from "./api/auth/types";
|
|
22
22
|
export type {
|
|
23
23
|
CmsSiteList,
|
|
24
|
+
CmsSiteKey,
|
|
25
|
+
CmsSiteModel,
|
|
24
26
|
CmsChannelReq,
|
|
25
27
|
CmsChannelList,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
CmsChannelModel,
|
|
29
|
+
CmsChannelKey,
|
|
30
|
+
CmsInfoPage,
|
|
31
|
+
CmsInfoModelTotal,
|
|
32
|
+
CmsInfoReq,
|
|
33
|
+
CmsInfoKey,
|
|
28
34
|
CmsInfoModel,
|
|
35
|
+
CmsInfoContentReq,
|
|
29
36
|
CmsInfoContentModel,
|
|
30
|
-
|
|
37
|
+
CmsInfoContentList,
|
|
38
|
+
CmsContentInfoReq,
|
|
39
|
+
CmsContentInfoModel,
|
|
40
|
+
CmsInfoFileReq,
|
|
41
|
+
CmsInfoFileModel,
|
|
42
|
+
CmsInfoFileList,
|
|
31
43
|
CmsSeatsReq,
|
|
32
44
|
CmsSeatsList,
|
|
33
45
|
CmsSeatsModel,
|
|
34
46
|
CmsSeatInfoReq,
|
|
35
47
|
CmsSeatInfoList,
|
|
36
48
|
CmsSeatInfoModel,
|
|
49
|
+
FrontInteractKey,
|
|
37
50
|
FrontInteractModel,
|
|
51
|
+
FrontLikeKey,
|
|
52
|
+
FrontLikeCreateReq,
|
|
53
|
+
FrontLikeModel,
|
|
54
|
+
FrontBrowseRecordCreateReq,
|
|
55
|
+
FrontBrowseRecordModel,
|
|
38
56
|
FrontCommentCreateReq,
|
|
39
57
|
FrontCommentModel,
|
|
58
|
+
FrontCommentModelTotal,
|
|
40
59
|
FrontCommentPage,
|
|
41
60
|
FrontCommentReq,
|
|
42
61
|
FrontCollectCreateReq,
|
|
43
62
|
FrontCollectModel,
|
|
63
|
+
FrontCollectModelTotal,
|
|
44
64
|
FrontCollectPage,
|
|
45
|
-
FrontCollectKey,
|
|
46
65
|
FrontCollectReq,
|
|
47
66
|
} from "./api/cms/types";
|
|
48
67
|
export type {
|