@foundbyte/uni-libs 0.0.5 → 0.0.7

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 (57) hide show
  1. package/es/assets/js/webview/uni.webview.1.5.5.js +171 -0
  2. package/es/assets/js/webview/uni.webview.1.5.6.js +1 -0
  3. package/es/configs/app/app.hwtest.js +10 -14
  4. package/es/configs/app/app.prod.js +10 -14
  5. package/es/configs/app/app.type.d.ts +13 -10
  6. package/es/configs/app/index.js +30 -24
  7. package/es/constants/routes/index.d.ts +77 -74
  8. package/es/constants/routes/index.js +45 -78
  9. package/es/entry.d.ts +20 -15
  10. package/es/entry.js +37 -35
  11. package/es/enums/business-line/index.d.ts +74 -71
  12. package/es/enums/business-line/index.js +114 -36
  13. package/es/enums/environment/index.d.ts +8 -5
  14. package/es/enums/environment/index.js +14 -4
  15. package/es/enums/sdk/index.d.ts +8 -5
  16. package/es/enums/sdk/index.js +14 -4
  17. package/es/enums/sub/enjoy/index.d.ts +17 -14
  18. package/es/enums/sub/enjoy/index.js +18 -12
  19. package/es/enums/sub/foods/index.d.ts +6 -3
  20. package/es/enums/sub/foods/index.js +10 -4
  21. package/es/enums/sub/hotel/index.d.ts +5 -2
  22. package/es/enums/sub/hotel/index.js +11 -4
  23. package/es/index.d.ts +15 -5
  24. package/es/index.js +15 -43
  25. package/es/services/goods/service.js +128 -0
  26. package/es/services/goods/type.d.ts +25 -20
  27. package/es/types/one-travel-service/index.d.ts +12 -8
  28. package/es/utils/common/index.d.ts +7 -4
  29. package/es/utils/common/index.js +41 -25
  30. package/es/utils/pages/activity-calendar/index.d.ts +6 -4
  31. package/es/utils/pages/activity-calendar/index.js +10 -8
  32. package/es/utils/pages/food/index.d.ts +5 -2
  33. package/es/utils/pages/food/index.js +31 -5
  34. package/es/utils/pages/webview/index.d.ts +10 -7
  35. package/es/utils/pages/webview/index.js +9 -7
  36. package/es/utils/web-view/index.d.ts +23 -18
  37. package/es/utils/web-view/index.js +84 -47
  38. package/package.json +3 -6
  39. package/es/configs/app/app.hwtest.d.ts +0 -3
  40. package/es/configs/app/app.prod.d.ts +0 -3
  41. package/es/configs/app/index.d.ts +0 -7
  42. package/es/configs/index.d.ts +0 -1
  43. package/es/constants/index.d.ts +0 -1
  44. package/es/enums/index.d.ts +0 -5
  45. package/es/enums/storage/index.d.ts +0 -6
  46. package/es/enums/storage/index.js +0 -4
  47. package/es/enums/sub/index.d.ts +0 -3
  48. package/es/libs/webview/uni.webview.1.5.5.js +0 -126
  49. package/es/services/config/index.d.ts +0 -5
  50. package/es/services/config/index.js +0 -7
  51. package/es/services/goods/index.d.ts +0 -2
  52. package/es/services/goods/util.d.ts +0 -6
  53. package/es/services/goods/util.js +0 -76
  54. package/es/services/index.d.ts +0 -2
  55. package/es/types/index.d.ts +0 -1
  56. package/es/utils/index.d.ts +0 -3
  57. package/es/utils/pages/index.d.ts +0 -3
@@ -1,51 +1,88 @@
1
- import "../../libs/webview/uni.webview.1.5.5.js";
2
- import c from "weixin-js-sdk";
3
- let s = {};
1
+ import "../../assets/js/webview/uni.webview.1.5.5.js";
2
+ import wx from "weixin-js-sdk";
3
+
4
+ //#region src/utils/web-view/index.ts
5
+ let env = {};
4
6
  document.addEventListener("UniAppJSBridgeReady", function() {
5
- uni.webView.getEnv(function(r) {
6
- s = r;
7
- });
7
+ uni.webView.getEnv(function(res) {
8
+ env = res;
9
+ });
8
10
  });
9
- var p = /* @__PURE__ */ ((r) => (r.pay = "pay", r))(p || {});
10
- const d = () => s, v = (r) => {
11
- var t, i;
12
- const { src: e, params: n } = r, o = `${e}${n ? `?${m(n)}` : ""}`;
13
- try {
14
- (i = (t = uni == null ? void 0 : uni.webView) == null ? void 0 : t.navigateTo) == null || i.call(t, { url: o }), c.miniProgram.navigateTo({ url: o });
15
- } catch (a) {
16
- console.error(a);
17
- }
18
- }, g = (r) => {
19
- var t, i;
20
- const { src: e, params: n } = r, o = `${e}${n ? `?${m(n)}` : ""}`;
21
- try {
22
- (i = (t = uni == null ? void 0 : uni.webView) == null ? void 0 : t.redirectTo) == null || i.call(t, { url: o }), c.miniProgram.redirectTo({ url: o });
23
- } catch (a) {
24
- console.error(a);
25
- }
26
- }, y = (r) => {
27
- var e, n;
28
- try {
29
- (n = (e = uni == null ? void 0 : uni.webView) == null ? void 0 : e.navigateBack) == null || n.call(e, r), c.miniProgram.navigateBack(r);
30
- } catch (o) {
31
- console.error(o);
32
- }
33
- }, $ = (r) => {
34
- var e;
35
- if (window.__wxjs_environment === "miniprogram" && r.type === "pay") {
36
- g({ src: "/pages/web-view/index", params: r.params });
37
- return;
38
- }
39
- (e = uni == null ? void 0 : uni.webView) == null || e.postMessage({ data: r });
11
+ let EMessagesType = /* @__PURE__ */ function(EMessagesType$1) {
12
+ EMessagesType$1["pay"] = "pay";
13
+ return EMessagesType$1;
14
+ }({});
15
+ /**
16
+ * 当前环境
17
+ * @returns
18
+ */
19
+ const getWebViewEnv = () => {
20
+ return env;
40
21
  };
41
- function m(r) {
42
- return Object.entries(r).map(([n, o]) => Array.isArray(o) ? o.map((t) => `${encodeURI(n)}[]=${encodeURI(t)}`).join("&") : `${encodeURI(n)}=${encodeURI(o)}`).join("&");
43
- }
44
- export {
45
- p as EMessagesType,
46
- d as getWebViewEnv,
47
- y as navigateBack,
48
- v as navigateTo,
49
- $ as postMessage,
50
- g as redirectTo
22
+ /**
23
+ * 原生路由跳转
24
+ * @param parameters
25
+ */
26
+ const navigateTo = (parameters) => {
27
+ const { src, params } = parameters;
28
+ const url = `${src}${params ? `?${objectToQueryString(params)}` : ""}`;
29
+ try {
30
+ uni?.webView?.navigateTo?.({ url });
31
+ /** 不兼容上面的方法会自动往下执行 */
32
+ wx.miniProgram.navigateTo({ url });
33
+ } catch (error) {
34
+ console.error(error);
35
+ }
36
+ };
37
+ /**
38
+ * 原生路由重定向
39
+ * @param parameters
40
+ */
41
+ const redirectTo = (parameters) => {
42
+ const { src, params } = parameters;
43
+ const url = `${src}${params ? `?${objectToQueryString(params)}` : ""}`;
44
+ try {
45
+ uni?.webView?.redirectTo?.({ url });
46
+ /** 不兼容上面的方法会自动往下执行 */
47
+ wx.miniProgram.redirectTo({ url });
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
51
+ };
52
+ /**
53
+ * 原生路由返回
54
+ * @param parameters
55
+ */
56
+ const navigateBack = (parameters) => {
57
+ try {
58
+ uni?.webView?.navigateBack?.(parameters);
59
+ /** 不兼容上面的方法会自动往下执行 */
60
+ wx.miniProgram.navigateBack(parameters);
61
+ } catch (error) {
62
+ console.error(error);
63
+ }
51
64
  };
65
+ /**
66
+ * 发送消息
67
+ * @param data
68
+ */
69
+ const postMessage = (data) => {
70
+ if (window.__wxjs_environment === "miniprogram" && data.type === EMessagesType.pay) {
71
+ redirectTo({
72
+ src: "/pages/web-view/index",
73
+ params: data.params
74
+ });
75
+ return;
76
+ }
77
+ uni?.webView?.postMessage({ data });
78
+ };
79
+ function objectToQueryString(obj) {
80
+ const params = Object.entries(obj).map(([key, value]) => {
81
+ if (Array.isArray(value)) return value.map((val) => `${encodeURI(key)}[]=${encodeURI(val)}`).join("&");
82
+ return `${encodeURI(key)}=${encodeURI(value)}`;
83
+ });
84
+ return params.join("&");
85
+ }
86
+
87
+ //#endregion
88
+ export { EMessagesType, getWebViewEnv, navigateBack, navigateTo, postMessage, redirectTo };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@foundbyte/uni-libs",
3
3
  "description": "FoundByte Uni Libs",
4
4
  "author": "yangshuai <704807396@qq.com>",
5
- "version": "0.0.5",
5
+ "version": "0.0.7",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",
@@ -16,9 +16,7 @@
16
16
  "registry": "https://registry.npmjs.org/",
17
17
  "access": "public"
18
18
  },
19
- "sideEffects": [
20
- "./src/libs/**"
21
- ],
19
+ "sideEffects": false,
22
20
  "dependencies": {
23
21
  "weixin-js-sdk": "^1.6.5"
24
22
  },
@@ -31,8 +29,7 @@
31
29
  "tsdown": "^0.12.8"
32
30
  },
33
31
  "scripts": {
34
- "build": "vite build",
35
- "build:tsdown": "tsdown",
32
+ "build": "tsdown",
36
33
  "publish:npm": "pnpm publish --no-git-checks"
37
34
  },
38
35
  "typings": "es/index.d.ts"
@@ -1,3 +0,0 @@
1
- import { IAppConfig } from './app.type';
2
- declare const config: Partial<IAppConfig>;
3
- export default config;
@@ -1,3 +0,0 @@
1
- import { IAppConfig } from './app.type';
2
- declare const config: Partial<IAppConfig>;
3
- export default config;
@@ -1,7 +0,0 @@
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 +0,0 @@
1
- export * from './app';
@@ -1 +0,0 @@
1
- export * from './routes';
@@ -1,5 +0,0 @@
1
- export * from './business-line';
2
- export * from './environment';
3
- export * from './sdk';
4
- export * from './storage';
5
- export * from './sub';
@@ -1,6 +0,0 @@
1
- /**
2
- * 存储key
3
- */
4
- export declare enum EStorageKey {
5
- configOptions = "configOptions"
6
- }
@@ -1,4 +0,0 @@
1
- var o = /* @__PURE__ */ ((n) => (n.configOptions = "configOptions", n))(o || {});
2
- export {
3
- o as EStorageKey
4
- };
@@ -1,3 +0,0 @@
1
- export * from './enjoy';
2
- export * from './foods';
3
- export * from './hotel';
@@ -1,126 +0,0 @@
1
- var C = (i, t) => () => (t || i((t = { exports: {} }).exports, t), t.exports);
2
- var Q = C((E, w) => {
3
- (function(i, t) {
4
- typeof E == "object" && typeof w < "u" ? w.exports = t() : typeof define == "function" && define.amd ? define(t) : (i = i || self).uni = t();
5
- })(void 0, function() {
6
- try {
7
- var i = {};
8
- Object.defineProperty(i, "passive", {
9
- get: function() {
10
- }
11
- }), window.addEventListener("test-passive", null, i);
12
- } catch {
13
- }
14
- var t = Object.prototype.hasOwnProperty;
15
- function M(e, n) {
16
- return t.call(e, n);
17
- }
18
- var g = [];
19
- function v() {
20
- return window.__dcloud_weex_postMessage || window.__dcloud_weex_;
21
- }
22
- function c() {
23
- return window.__uniapp_x_postMessage || window.__uniapp_x_;
24
- }
25
- for (var o = function(e, n) {
26
- var u = { options: { timestamp: +/* @__PURE__ */ new Date() }, name: e, arg: n };
27
- if (c()) {
28
- if (e === "postMessage") {
29
- var p = { data: n };
30
- return window.__uniapp_x_postMessage ? window.__uniapp_x_postMessage(p) : window.__uniapp_x_.postMessage(JSON.stringify(p));
31
- }
32
- var f = { type: "WEB_INVOKE_APPSERVICE", args: { data: u, webviewIds: g } };
33
- window.__uniapp_x_postMessage ? window.__uniapp_x_postMessageToService(f) : window.__uniapp_x_.postMessageToService(JSON.stringify(f));
34
- } else if (v()) {
35
- if (e === "postMessage") {
36
- var l = { data: [n] };
37
- return window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessage(l) : window.__dcloud_weex_.postMessage(JSON.stringify(l));
38
- }
39
- var x = { type: "WEB_INVOKE_APPSERVICE", args: { data: u, webviewIds: g } };
40
- window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessageToService(x) : window.__dcloud_weex_.postMessageToService(JSON.stringify(x));
41
- } else
42
- return console.log("window.plus:", window.plus), window.parent.postMessage({ type: "WEB_INVOKE_APPSERVICE", data: u, pageId: "" }, "*");
43
- }, m = {
44
- navigateTo: function() {
45
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.url;
46
- o("navigateTo", { url: encodeURI(n) });
47
- },
48
- navigateBack: function() {
49
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.delta;
50
- o("navigateBack", { delta: parseInt(n) || 1 });
51
- },
52
- switchTab: function() {
53
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.url;
54
- o("switchTab", { url: encodeURI(n) });
55
- },
56
- reLaunch: function() {
57
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.url;
58
- o("reLaunch", { url: encodeURI(n) });
59
- },
60
- redirectTo: function() {
61
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.url;
62
- o("redirectTo", { url: encodeURI(n) });
63
- },
64
- getEnv: function(e) {
65
- c() ? e({ uvue: !0 }) : v() ? e({ nvue: !0 }) : window.plus ? e({ plus: !0 }) : e({ h5: !0 });
66
- },
67
- postMessage: function() {
68
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
69
- o("postMessage", e.data || {});
70
- }
71
- }, T = /uni-app/i.test(navigator.userAgent), h = /Html5Plus/i.test(navigator.userAgent), P = /complete|loaded|interactive/, y = window.my && navigator.userAgent.indexOf(["t", "n", "e", "i", "l", "C", "y", "a", "p", "i", "l", "A"].reverse().join("")) > -1, B = window.swan && window.swan.webView && /swan/i.test(navigator.userAgent), L = window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent), J = window.tt && window.tt.miniProgram && /toutiaomicroapp/i.test(navigator.userAgent), S = window.wx && window.wx.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent), A = window.qa && /quickapp/i.test(navigator.userAgent), O = window.ks && window.ks.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent), b = window.tt && window.tt.miniProgram && /Lark|Feishu/i.test(navigator.userAgent), k = window.jd && window.jd.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent), R = window.xhs && window.xhs.miniProgram && /xhsminiapp/i.test(navigator.userAgent), a, I = function() {
72
- window.UniAppJSBridge = !0, document.dispatchEvent(new CustomEvent("UniAppJSBridgeReady", { bubbles: !0, cancelable: !0 }));
73
- }, _ = [
74
- function(e) {
75
- if (T || h)
76
- return window.__uniapp_x_postMessage || window.__uniapp_x_ || window.__dcloud_weex_postMessage || window.__dcloud_weex_ ? document.addEventListener("DOMContentLoaded", e) : window.plus && P.test(document.readyState) ? setTimeout(e, 0) : document.addEventListener("plusready", e), m;
77
- },
78
- function(e) {
79
- if (S) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("WeixinJSBridgeReady", e), window.wx.miniProgram;
80
- },
81
- function(e) {
82
- if (L) return window.QQJSBridge && window.QQJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("QQJSBridgeReady", e), window.qq.miniProgram;
83
- },
84
- function(e) {
85
- if (y) {
86
- document.addEventListener("DOMContentLoaded", e);
87
- var n = window.my;
88
- return { navigateTo: n.navigateTo, navigateBack: n.navigateBack, switchTab: n.switchTab, reLaunch: n.reLaunch, redirectTo: n.redirectTo, postMessage: n.postMessage, getEnv: n.getEnv };
89
- }
90
- },
91
- function(e) {
92
- if (B) return document.addEventListener("DOMContentLoaded", e), window.swan.webView;
93
- },
94
- function(e) {
95
- if (J) return document.addEventListener("DOMContentLoaded", e), window.tt.miniProgram;
96
- },
97
- function(e) {
98
- if (A) {
99
- window.QaJSBridge && window.QaJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("QaJSBridgeReady", e);
100
- var n = window.qa;
101
- return { navigateTo: n.navigateTo, navigateBack: n.navigateBack, switchTab: n.switchTab, reLaunch: n.reLaunch, redirectTo: n.redirectTo, postMessage: n.postMessage, getEnv: n.getEnv };
102
- }
103
- },
104
- function(e) {
105
- if (O) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("WeixinJSBridgeReady", e), window.ks.miniProgram;
106
- },
107
- function(e) {
108
- if (b) return document.addEventListener("DOMContentLoaded", e), window.tt.miniProgram;
109
- },
110
- function(e) {
111
- if (k) return window.JDJSBridgeReady && window.JDJSBridgeReady.invoke ? setTimeout(e, 0) : document.addEventListener("JDJSBridgeReady", e), window.jd.miniProgram;
112
- },
113
- function(e) {
114
- if (R) return window.xhs.miniProgram;
115
- },
116
- function(e) {
117
- return document.addEventListener("DOMContentLoaded", e), m;
118
- }
119
- ], d = 0; d < _.length && !(a = _[d](I)); d++) ;
120
- a || (a = {});
121
- var r = typeof uni < "u" ? uni : {};
122
- if (!r.navigateTo) for (var s in a) M(a, s) && (r[s] = a[s]);
123
- return r.webView = a, r;
124
- });
125
- });
126
- export default Q();
@@ -1,5 +0,0 @@
1
- import { IOneTravelSDKOptions } from '../../types';
2
- /**
3
- * 获取SDK配置信息
4
- */
5
- export declare function getSDKConfig(): IOneTravelSDKOptions;
@@ -1,7 +0,0 @@
1
- import { EStorageKey as o } from "../../enums/storage/index.js";
2
- function e() {
3
- return JSON.parse(localStorage.getItem(o.configOptions) || "{}");
4
- }
5
- export {
6
- e as getSDKConfig
7
- };
@@ -1,2 +0,0 @@
1
- export * from './type';
2
- export * from './util';
@@ -1,6 +0,0 @@
1
- import { IJumpGoodsDetailItem } from './type';
2
- /**
3
- * 跳转商品详情页
4
- * @param item
5
- */
6
- export declare const jumpToGoodsDetailPage: (item: IJumpGoodsDetailItem) => void;
@@ -1,76 +0,0 @@
1
- import { getSDKConfig as $ } from "../config/index.js";
2
- import { EHotelType as c } from "../../enums/sub/hotel/index.js";
3
- import { getAppConfig as y } from "../../configs/app/index.js";
4
- import { EBusinessLine as i, ESubBizType as l } from "../../enums/business-line/index.js";
5
- import { getActivityCalendarDetailPage as g } from "../../utils/pages/activity-calendar/index.js";
6
- import { EVenueTypesDes as I, EVenueTypes as k } from "../../enums/sub/enjoy/index.js";
7
- import { getWebviewPage as n } from "../../utils/pages/webview/index.js";
8
- import { EFoodsModuleType as b } from "../../enums/sub/foods/index.js";
9
- import { getFoodStorePage as h, getFoodPackagePage as x } from "../../utils/pages/food/index.js";
10
- import { ECaller as p } from "../../enums/sdk/index.js";
11
- import { navigateTo as v } from "../../utils/web-view/index.js";
12
- import { routePrefix as r } from "../../constants/routes/index.js";
13
- const T = async (e) => {
14
- const t = $(), s = y(t.appEnv), { skuId: d, linkBusinessLine: u, type: f = "", item: o } = e || {};
15
- let a = "";
16
- switch (u) {
17
- case i.Scenic:
18
- a = `${r.ticket}/detail/index?scenicId=${d}&reservationId=${o.reservationId}&isOld=${o.isOld}`;
19
- break;
20
- case i.Hotel:
21
- a = `${r.hotel}/home/details/index?id=${d}`;
22
- break;
23
- case i.Homestay:
24
- f === c.hotel ? a = `${r.hotel}/home/details/index?id=${d}` : `${o.subBizType}` == `${l.HomestayHotel}` ? a = `${r.hotel}/home/details/index?id=${d}` : a = `${r.hotel}/home/hot-sale-details/index?id=${d}`;
25
- break;
26
- case i.Route:
27
- a = `${r.road}/product-detail/index?id=${d}`;
28
- break;
29
- case i.Travel:
30
- break;
31
- case i.Foods:
32
- (o == null ? void 0 : o.moduleType) === b.store ? a = n({ url: h(s.domain.food, o.storeId || o.id) }) : a = n({ url: x(s.domain.food, o.storeId || o.id, d) });
33
- break;
34
- case i.Buy:
35
- a = n({ url: s.domain.shopping + `goods?itemId=${o.id || o.spuId}` });
36
- break;
37
- case i.Onebuygz:
38
- a = n({ url: s.domain.onebuygz + `pages/commodity-detail/index?itemId=${o.spuId || o.id}&skuId=${o.skuId}` });
39
- break;
40
- case i.Entertainment:
41
- `${o.type}` === I[k.Activity] || `${o.subBizType}` == `${l.EntertainmentPerform}` ? a = `${r.enjoy}/g-activity/detail?id=` + d + "&mchId=" + (o.storeId || "") : a = `${r.enjoy}/g-venue/detail?id=${d}&reservationId=${o.reservationId}`;
42
- break;
43
- case i.Strategy:
44
- a = `${r.strategy}/strategy-detail/index?id=` + d;
45
- break;
46
- case i.Recommend:
47
- a = `${r.show}/details/index?id=${d}${o != null && o.moreParameter ? o.moreParameter : ""}`;
48
- break;
49
- case i.Activity:
50
- a = g({ id: d, date: o.collectTime });
51
- break;
52
- case i.SoundGuizhou:
53
- a = `${r.soundGuizhou}/detail?audioLibId=${d}`;
54
- break;
55
- case i.ExcitingVideo:
56
- a = `${r.living}/wonderful-video/index?vid=${d}`;
57
- break;
58
- }
59
- a && (t.caller === p.web ? v({ src: a }) : (t.caller, p.host));
60
- }, A = (e) => {
61
- let t = (e == null ? void 0 : e.extInfoMap) || (e == null ? void 0 : e.extInfo) || {};
62
- try {
63
- t = typeof t == "string" ? JSON.parse(t) : t;
64
- } catch {
65
- }
66
- const s = e != null && e.extInfoMap || e != null && e.extInfo ? { ...e, ...t } : e;
67
- (s == null ? void 0 : s.type) === c.hotel && (e.skuId = s == null ? void 0 : s.storeId), T({
68
- skuId: (e == null ? void 0 : e.skuId) || (e == null ? void 0 : e.spuId) || (e == null ? void 0 : e.id) || "",
69
- linkBusinessLine: s.linkBusinessLine || s.bizType || s.businessType,
70
- type: s.type,
71
- item: s
72
- }).then().catch();
73
- };
74
- export {
75
- A as jumpToGoodsDetailPage
76
- };
@@ -1,2 +0,0 @@
1
- export * from './goods';
2
- export * from './config';
@@ -1 +0,0 @@
1
- export * from './one-travel-service';
@@ -1,3 +0,0 @@
1
- export * from './common';
2
- export * from './pages';
3
- export * from './web-view';
@@ -1,3 +0,0 @@
1
- export * from './activity-calendar';
2
- export * from './webview';
3
- export * from './food';