jmash-core-mp 0.1.78 → 0.1.80
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/app.mpx.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/common.js +8 -3
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/lib/app.mpx.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export { storageApi } from "./api/storage";
|
|
|
23
23
|
export { shopApi } from "./api/shop";
|
|
24
24
|
export { net } from "./utils/net";
|
|
25
25
|
export { share } from "./utils/share";
|
|
26
|
-
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
26
|
+
export { getHeight, formatDateTime, validateRules, validateRequired, hasCategoryFeature, } from "./utils/common";
|
|
27
27
|
import * as dayjs from "dayjs";
|
|
28
28
|
export { dayjs };
|
package/lib/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { storageApi } from "./api/storage";
|
|
|
16
16
|
export { shopApi } from "./api/shop";
|
|
17
17
|
export { net } from "./utils/net";
|
|
18
18
|
export { share } from "./utils/share";
|
|
19
|
-
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
19
|
+
export { getHeight, formatDateTime, validateRules, validateRequired, hasCategoryFeature, } from "./utils/common";
|
|
20
20
|
import * as dayjsLocaleZhCn from "dayjs/locale/zh-cn";
|
|
21
21
|
import * as dayjs from "dayjs";
|
|
22
22
|
dayjs.locale(dayjsLocaleZhCn);
|
package/lib/utils/common.js
CHANGED
|
@@ -172,7 +172,12 @@ export function hasCategoryFeature(dictCode, feature) {
|
|
|
172
172
|
}
|
|
173
173
|
// 商家分类功能配置:功能名 -> 分类code关键词列表
|
|
174
174
|
export const categoryFeatures = {
|
|
175
|
-
//
|
|
176
|
-
|
|
177
|
-
//
|
|
175
|
+
// 0502洗车保养
|
|
176
|
+
serveCar: ["0502"],
|
|
177
|
+
// 0503足疗/按摩
|
|
178
|
+
serveFoot: ["0503"],
|
|
179
|
+
// 0504美容美发
|
|
180
|
+
serveHair: ["0504"],
|
|
181
|
+
// 0506鲜花/园艺
|
|
182
|
+
serveFlower: ["0506"],
|
|
178
183
|
};
|
package/package.json
CHANGED