@foundbyte/uni-libs 0.0.3 → 0.0.5
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/es/configs/app/app.hwtest.d.ts +3 -0
- package/es/configs/app/app.hwtest.js +14 -11
- package/es/configs/app/app.prod.d.ts +3 -0
- package/es/configs/app/app.prod.js +14 -11
- package/es/configs/app/app.type.d.ts +10 -15
- package/es/configs/app/index.d.ts +7 -0
- package/es/configs/app/index.js +24 -31
- package/es/configs/index.d.ts +1 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/routes/index.d.ts +74 -79
- package/es/constants/routes/index.js +78 -46
- package/es/entry.d.ts +14 -19
- package/es/entry.js +35 -38
- package/es/enums/business-line/index.d.ts +71 -76
- package/es/enums/business-line/index.js +36 -115
- package/es/enums/environment/index.d.ts +5 -10
- package/es/enums/environment/index.js +4 -15
- package/es/enums/index.d.ts +5 -0
- package/es/enums/sdk/index.d.ts +5 -10
- package/es/enums/sdk/index.js +4 -15
- package/es/enums/storage/index.d.ts +2 -7
- package/es/enums/storage/index.js +4 -12
- package/es/enums/sub/enjoy/index.d.ts +14 -19
- package/es/enums/sub/enjoy/index.js +12 -19
- package/es/enums/sub/foods/index.d.ts +3 -8
- package/es/enums/sub/foods/index.js +4 -11
- package/es/enums/sub/hotel/index.d.ts +2 -7
- package/es/enums/sub/hotel/index.js +4 -12
- package/es/enums/sub/index.d.ts +3 -0
- package/es/index.d.ts +5 -16
- package/es/index.js +43 -16
- package/es/libs/webview/uni.webview.1.5.5.js +126 -194
- package/es/services/config/index.d.ts +5 -0
- package/es/services/config/index.js +6 -12
- package/es/services/goods/index.d.ts +2 -0
- package/es/services/goods/type.d.ts +20 -27
- package/es/services/goods/util.d.ts +6 -0
- package/es/services/goods/util.js +74 -122
- package/es/services/index.d.ts +2 -0
- package/es/types/index.d.ts +1 -0
- package/es/types/one-travel-service/index.d.ts +7 -14
- package/es/utils/common/index.d.ts +4 -9
- package/es/utils/common/index.js +25 -42
- package/es/utils/index.d.ts +3 -0
- package/es/utils/pages/activity-calendar/index.d.ts +4 -7
- package/es/utils/pages/activity-calendar/index.js +8 -11
- package/es/utils/pages/food/index.d.ts +2 -7
- package/es/utils/pages/food/index.js +5 -32
- package/es/utils/pages/index.d.ts +3 -0
- package/es/utils/pages/webview/index.d.ts +7 -11
- package/es/utils/pages/webview/index.js +7 -10
- package/es/utils/web-view/index.d.ts +18 -23
- package/es/utils/web-view/index.js +47 -87
- package/package.json +1 -1
- package/es/_virtual/rolldown_runtime.js +0 -27
- package/es/configs/app/app.hwtest.js.map +0 -1
- package/es/configs/app/app.prod.js.map +0 -1
- package/es/configs/app/app.type.d.ts.map +0 -1
- package/es/configs/app/index.js.map +0 -1
- package/es/constants/routes/index.d.ts.map +0 -1
- package/es/constants/routes/index.js.map +0 -1
- package/es/entry.d.ts.map +0 -1
- package/es/entry.js.map +0 -1
- package/es/enums/business-line/index.d.ts.map +0 -1
- package/es/enums/business-line/index.js.map +0 -1
- package/es/enums/environment/index.d.ts.map +0 -1
- package/es/enums/environment/index.js.map +0 -1
- package/es/enums/sdk/index.d.ts.map +0 -1
- package/es/enums/sdk/index.js.map +0 -1
- package/es/enums/storage/index.d.ts.map +0 -1
- package/es/enums/storage/index.js.map +0 -1
- package/es/enums/sub/enjoy/index.d.ts.map +0 -1
- package/es/enums/sub/enjoy/index.js.map +0 -1
- package/es/enums/sub/foods/index.d.ts.map +0 -1
- package/es/enums/sub/foods/index.js.map +0 -1
- package/es/enums/sub/hotel/index.d.ts.map +0 -1
- package/es/enums/sub/hotel/index.js.map +0 -1
- package/es/libs/webview/uni.webview.1.5.5.js.map +0 -1
- package/es/services/config/index.js.map +0 -1
- package/es/services/goods/type.d.ts.map +0 -1
- package/es/services/goods/util.js.map +0 -1
- package/es/types/one-travel-service/index.d.ts.map +0 -1
- package/es/utils/common/index.d.ts.map +0 -1
- package/es/utils/common/index.js.map +0 -1
- package/es/utils/pages/activity-calendar/index.d.ts.map +0 -1
- package/es/utils/pages/activity-calendar/index.js.map +0 -1
- package/es/utils/pages/food/index.d.ts.map +0 -1
- package/es/utils/pages/food/index.js.map +0 -1
- package/es/utils/pages/webview/index.d.ts.map +0 -1
- package/es/utils/pages/webview/index.js.map +0 -1
- package/es/utils/web-view/index.d.ts.map +0 -1
- package/es/utils/web-view/index.js.map +0 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const o = {
|
|
2
|
+
/** 域名 */
|
|
3
|
+
domain: {
|
|
4
|
+
/** 购物(老版本) */
|
|
5
|
+
shopping: "https://shopping-h5.onetravelgz.cn/#/",
|
|
6
|
+
/** 美食 */
|
|
7
|
+
food: "https://food-h5.onetravelgz.cn/#/",
|
|
8
|
+
/** 一码贵州购物(新版) */
|
|
9
|
+
onebuygz: "https://testb2ch5-travel.gcongo.com.cn/#/"
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
o as default
|
|
14
|
+
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const o = {
|
|
2
|
+
/** 域名 */
|
|
3
|
+
domain: {
|
|
4
|
+
/** 购物(老版本) */
|
|
5
|
+
shopping: "https://shopping-h5.onetravelgz.com/#/",
|
|
6
|
+
/** 美食 */
|
|
7
|
+
food: "https://home.onetravelgz.com/food/index.html#/",
|
|
8
|
+
/** 一码贵州购物(新版) */
|
|
9
|
+
onebuygz: "https://travel.onebuygz.com/#/"
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
o as default
|
|
14
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
1
|
+
export interface IAppConfig {
|
|
2
|
+
/** 域名 */
|
|
3
|
+
domain: {
|
|
4
|
+
/** 购物(老版本) */
|
|
5
|
+
shopping: string;
|
|
6
|
+
/** 美食 */
|
|
7
|
+
food: string;
|
|
8
|
+
/** 一码贵州购物(新版) */
|
|
9
|
+
onebuygz: string;
|
|
10
|
+
};
|
|
12
11
|
}
|
|
13
|
-
//# sourceMappingURL=app.type.d.ts.map
|
|
14
|
-
//#endregion
|
|
15
|
-
export { IAppConfig };
|
|
16
|
-
//# sourceMappingURL=app.type.d.ts.map
|
package/es/configs/app/index.js
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
shopping: "",
|
|
23
|
-
food: "",
|
|
24
|
-
onebuygz: ""
|
|
25
|
-
},
|
|
26
|
-
...config
|
|
27
|
-
};
|
|
1
|
+
import n from "./app.hwtest.js";
|
|
2
|
+
import p from "./app.prod.js";
|
|
3
|
+
import { EAppEnv as r } from "../../enums/environment/index.js";
|
|
4
|
+
function c(i) {
|
|
5
|
+
let o;
|
|
6
|
+
switch (i) {
|
|
7
|
+
case r.test:
|
|
8
|
+
o = n;
|
|
9
|
+
break;
|
|
10
|
+
case r.prod:
|
|
11
|
+
o = p;
|
|
12
|
+
break;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
domain: {
|
|
16
|
+
shopping: "",
|
|
17
|
+
food: "",
|
|
18
|
+
onebuygz: ""
|
|
19
|
+
},
|
|
20
|
+
...o
|
|
21
|
+
};
|
|
28
22
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
23
|
+
export {
|
|
24
|
+
c as getAppConfig
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './app';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './routes';
|
|
@@ -1,83 +1,78 @@
|
|
|
1
|
-
//#region src/constants/routes/index.d.ts
|
|
2
1
|
/** 一些默认路由跳转 */
|
|
3
|
-
declare const routes: Readonly<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
export declare const routes: Readonly<{
|
|
3
|
+
/** 首页 */
|
|
4
|
+
home: "/pages/index/index";
|
|
5
|
+
/** 我的 */
|
|
6
|
+
mine: "/pages/mine/index";
|
|
7
|
+
/** 消息 */
|
|
8
|
+
message: "/pages/message/index";
|
|
9
|
+
/** 登录 */
|
|
10
|
+
signIn: "/pages/sign-in/index";
|
|
11
|
+
/** 手机号登录 */
|
|
12
|
+
signInByMobile: "/pages/sign-in/by-mobile/index";
|
|
13
|
+
/** webView */
|
|
14
|
+
webView: "/pages/web-view/index";
|
|
15
|
+
/** 设备定位权限 */
|
|
16
|
+
permission: "/pages/permission/index";
|
|
17
|
+
/** 支付成功页 */
|
|
18
|
+
paySuccess: "/pages/pay-success/index";
|
|
19
|
+
/** 微信支付页 */
|
|
20
|
+
wxpay: "/pages/wxpay/wxpay";
|
|
21
|
+
/** 授权页面 */
|
|
22
|
+
oauth2: "/pages/oauth2/index";
|
|
23
|
+
/** 音频转文字 */
|
|
24
|
+
voice: "/pages/voice/index";
|
|
25
|
+
/** 请求错误页 */
|
|
26
|
+
error: "/";
|
|
27
|
+
/** 装修专题页 */
|
|
28
|
+
renovationSpecial: "/pages/index/special";
|
|
29
|
+
/** ai助手 */
|
|
30
|
+
aiAssistant: "/pages/ai-assistant/index";
|
|
32
31
|
}>;
|
|
33
32
|
/** 路由地址前缀 */
|
|
34
|
-
declare const routePrefix: Readonly<{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
33
|
+
export declare const routePrefix: Readonly<{
|
|
34
|
+
/** 首页/搜索 */
|
|
35
|
+
search: "/sub/home/pages/search";
|
|
36
|
+
/** 首页/装修 */
|
|
37
|
+
renovation: "/sub/home/pages/renovation";
|
|
38
|
+
/** 景区/门票 */
|
|
39
|
+
ticket: "/sub/ticket/pages";
|
|
40
|
+
/** 同程景区 */
|
|
41
|
+
scene: "/sub/scene";
|
|
42
|
+
/** 路线 */
|
|
43
|
+
road: "/sub/road/pages";
|
|
44
|
+
/** 酒店 */
|
|
45
|
+
hotel: "/sub/hotel/pages";
|
|
46
|
+
/** 美食 */
|
|
47
|
+
food: "/sub/food/pages";
|
|
48
|
+
/** 文娱 */
|
|
49
|
+
enjoy: "/sub/enjoy/pages";
|
|
50
|
+
/** 种草 */
|
|
51
|
+
show: "/sub/show/pages";
|
|
52
|
+
/** 视频 */
|
|
53
|
+
living: "/sub/living/pages";
|
|
54
|
+
/** 实名认证 */
|
|
55
|
+
realName: "/sub/real-name/pages";
|
|
56
|
+
/** 社保卡 */
|
|
57
|
+
socialSecurity: "/sub/social-security/pages";
|
|
58
|
+
/** 攻略 */
|
|
59
|
+
strategy: "/sub/strategy/pages";
|
|
60
|
+
/** 消息 */
|
|
61
|
+
message: "/sub/message/pages";
|
|
62
|
+
/** 我的 */
|
|
63
|
+
mine: "/sub/mine/pages";
|
|
64
|
+
/** 活动足迹 */
|
|
65
|
+
footprint: "/sub/footprint/pages";
|
|
66
|
+
/** 新闻 */
|
|
67
|
+
news: "/sub/message/pages";
|
|
68
|
+
/** 声入贵州 */
|
|
69
|
+
soundGuizhou: "/sub/sound-guizhou/pages";
|
|
70
|
+
/** 活动日历 */
|
|
71
|
+
activityCalendar: "/sub/activity-calendar/pages";
|
|
72
|
+
/** 项目库 */
|
|
73
|
+
projectLibrary: "/sub/project-library/pages";
|
|
74
|
+
/** 目的地 */
|
|
75
|
+
destination: "/sub/destination/pages";
|
|
76
|
+
/** 智能行程 */
|
|
77
|
+
smartRoute: "/sub/smart-route/pages";
|
|
79
78
|
}>;
|
|
80
|
-
//# sourceMappingURL=index.d.ts.map
|
|
81
|
-
//#endregion
|
|
82
|
-
export { routePrefix, routes };
|
|
83
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,47 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
const e = Object.freeze({
|
|
2
|
+
/** 首页 */
|
|
3
|
+
home: "/pages/index/index",
|
|
4
|
+
/** 我的 */
|
|
5
|
+
mine: "/pages/mine/index",
|
|
6
|
+
/** 消息 */
|
|
7
|
+
message: "/pages/message/index",
|
|
8
|
+
/** 登录 */
|
|
9
|
+
signIn: "/pages/sign-in/index",
|
|
10
|
+
/** 手机号登录 */
|
|
11
|
+
signInByMobile: "/pages/sign-in/by-mobile/index",
|
|
12
|
+
/** webView */
|
|
13
|
+
webView: "/pages/web-view/index",
|
|
14
|
+
/** 设备定位权限 */
|
|
15
|
+
permission: "/pages/permission/index",
|
|
16
|
+
/** 支付成功页 */
|
|
17
|
+
paySuccess: "/pages/pay-success/index",
|
|
18
|
+
/** 微信支付页 */
|
|
19
|
+
wxpay: "/pages/wxpay/wxpay",
|
|
20
|
+
/** 授权页面 */
|
|
21
|
+
oauth2: "/pages/oauth2/index",
|
|
22
|
+
/** 音频转文字 */
|
|
23
|
+
voice: "/pages/voice/index",
|
|
24
|
+
/** 请求错误页 */
|
|
25
|
+
error: "/",
|
|
26
|
+
/** 装修专题页 */
|
|
27
|
+
renovationSpecial: "/pages/index/special",
|
|
28
|
+
/** ai助手 */
|
|
29
|
+
aiAssistant: "/pages/ai-assistant/index"
|
|
30
|
+
}), s = Object.freeze({
|
|
31
|
+
/** 首页/搜索 */
|
|
32
|
+
search: "/sub/home/pages/search",
|
|
33
|
+
/** 首页/装修 */
|
|
34
|
+
renovation: "/sub/home/pages/renovation",
|
|
35
|
+
/** 景区/门票 */
|
|
36
|
+
ticket: "/sub/ticket/pages",
|
|
37
|
+
/** 同程景区 */
|
|
38
|
+
scene: "/sub/scene",
|
|
39
|
+
/** 路线 */
|
|
40
|
+
road: "/sub/road/pages",
|
|
41
|
+
/** 酒店 */
|
|
42
|
+
hotel: "/sub/hotel/pages",
|
|
43
|
+
/** 美食 */
|
|
44
|
+
food: "/sub/food/pages",
|
|
45
|
+
/** 文娱 */
|
|
46
|
+
enjoy: "/sub/enjoy/pages",
|
|
47
|
+
/** 种草 */
|
|
48
|
+
show: "/sub/show/pages",
|
|
49
|
+
/** 视频 */
|
|
50
|
+
living: "/sub/living/pages",
|
|
51
|
+
/** 实名认证 */
|
|
52
|
+
realName: "/sub/real-name/pages",
|
|
53
|
+
/** 社保卡 */
|
|
54
|
+
socialSecurity: "/sub/social-security/pages",
|
|
55
|
+
/** 攻略 */
|
|
56
|
+
strategy: "/sub/strategy/pages",
|
|
57
|
+
/** 消息 */
|
|
58
|
+
message: "/sub/message/pages",
|
|
59
|
+
/** 我的 */
|
|
60
|
+
mine: "/sub/mine/pages",
|
|
61
|
+
/** 活动足迹 */
|
|
62
|
+
footprint: "/sub/footprint/pages",
|
|
63
|
+
/** 新闻 */
|
|
64
|
+
news: "/sub/message/pages",
|
|
65
|
+
/** 声入贵州 */
|
|
66
|
+
soundGuizhou: "/sub/sound-guizhou/pages",
|
|
67
|
+
/** 活动日历 */
|
|
68
|
+
activityCalendar: "/sub/activity-calendar/pages",
|
|
69
|
+
/** 项目库 */
|
|
70
|
+
projectLibrary: "/sub/project-library/pages",
|
|
71
|
+
/** 目的地 */
|
|
72
|
+
destination: "/sub/destination/pages",
|
|
73
|
+
/** 智能行程 */
|
|
74
|
+
smartRoute: "/sub/smart-route/pages"
|
|
18
75
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ticket: "/sub/ticket/pages",
|
|
24
|
-
scene: "/sub/scene",
|
|
25
|
-
road: "/sub/road/pages",
|
|
26
|
-
hotel: "/sub/hotel/pages",
|
|
27
|
-
food: "/sub/food/pages",
|
|
28
|
-
enjoy: "/sub/enjoy/pages",
|
|
29
|
-
show: "/sub/show/pages",
|
|
30
|
-
living: "/sub/living/pages",
|
|
31
|
-
realName: "/sub/real-name/pages",
|
|
32
|
-
socialSecurity: "/sub/social-security/pages",
|
|
33
|
-
strategy: "/sub/strategy/pages",
|
|
34
|
-
message: "/sub/message/pages",
|
|
35
|
-
mine: "/sub/mine/pages",
|
|
36
|
-
footprint: "/sub/footprint/pages",
|
|
37
|
-
news: "/sub/message/pages",
|
|
38
|
-
soundGuizhou: "/sub/sound-guizhou/pages",
|
|
39
|
-
activityCalendar: "/sub/activity-calendar/pages",
|
|
40
|
-
projectLibrary: "/sub/project-library/pages",
|
|
41
|
-
destination: "/sub/destination/pages",
|
|
42
|
-
smartRoute: "/sub/smart-route/pages"
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
export { routePrefix, routes };
|
|
47
|
-
//# sourceMappingURL=index.js.map
|
|
76
|
+
export {
|
|
77
|
+
s as routePrefix,
|
|
78
|
+
e as routes
|
|
79
|
+
};
|
package/es/entry.d.ts
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import { IOneTravelSDKOptions } from
|
|
2
|
-
import { IJumpGoodsDetailItem } from
|
|
3
|
-
import { IAppConfig } from
|
|
4
|
-
|
|
5
|
-
//#region src/entry.d.ts
|
|
6
|
-
|
|
1
|
+
import { IOneTravelSDKOptions } from './types';
|
|
2
|
+
import { IJumpGoodsDetailItem } from './services';
|
|
3
|
+
import { IAppConfig } from './configs/app/app.type';
|
|
7
4
|
/**
|
|
8
5
|
* 一码游SDK
|
|
9
6
|
*/
|
|
10
7
|
declare class OneTravelSDK {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
private sdkOptions;
|
|
9
|
+
constructor(options?: Partial<IOneTravelSDKOptions>);
|
|
10
|
+
/**
|
|
11
|
+
* 获取配置信息
|
|
12
|
+
*/
|
|
13
|
+
getConfig(): IAppConfig;
|
|
14
|
+
/**
|
|
15
|
+
* 跳转商品详情页
|
|
16
|
+
* @param goodsItem 商品数据
|
|
17
|
+
*/
|
|
18
|
+
jumpToGoodsDetailPage(goodsItem: IJumpGoodsDetailItem): void;
|
|
22
19
|
}
|
|
23
|
-
//#endregion
|
|
24
20
|
export { OneTravelSDK };
|
|
25
|
-
//# sourceMappingURL=entry.d.ts.map
|
package/es/entry.js
CHANGED
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
var e = Object.defineProperty;
|
|
2
|
+
var i = (r, o, t) => o in r ? e(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
|
|
3
|
+
var p = (r, o, t) => i(r, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { jumpToGoodsDetailPage as s } from "./services/goods/util.js";
|
|
5
|
+
import { ECaller as n } from "./enums/sdk/index.js";
|
|
6
|
+
import { EAppEnv as a } from "./enums/environment/index.js";
|
|
7
|
+
import { EStorageKey as m } from "./enums/storage/index.js";
|
|
8
|
+
import { getAppConfig as l } from "./configs/app/index.js";
|
|
9
|
+
class u {
|
|
10
|
+
constructor(o) {
|
|
11
|
+
// SDK配置信息
|
|
12
|
+
p(this, "sdkOptions");
|
|
13
|
+
const t = {
|
|
14
|
+
appEnv: a.prod,
|
|
15
|
+
caller: n.web,
|
|
16
|
+
...o || {}
|
|
17
|
+
};
|
|
18
|
+
this.sdkOptions = t, localStorage.setItem(m.configOptions, JSON.stringify(t));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 获取配置信息
|
|
22
|
+
*/
|
|
23
|
+
getConfig() {
|
|
24
|
+
return l(this.sdkOptions.appEnv);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 跳转商品详情页
|
|
28
|
+
* @param goodsItem 商品数据
|
|
29
|
+
*/
|
|
30
|
+
jumpToGoodsDetailPage(o) {
|
|
31
|
+
s(o);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
u as OneTravelSDK
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
export { OneTravelSDK };
|
|
39
|
-
//# sourceMappingURL=entry.js.map
|