@foundbyte/uni-libs 0.0.2 → 0.0.4

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