@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
package/es/index.js
CHANGED
|
@@ -1,16 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
export {
|
|
1
|
+
import "./libs/webview/uni.webview.1.5.5.js";
|
|
2
|
+
import { OneTravelSDK as t } from "./entry.js";
|
|
3
|
+
import { routePrefix as a, routes as s } from "./constants/routes/index.js";
|
|
4
|
+
import { BusinessLineDict as m, EBusinessLine as g, ESubBizType as f } from "./enums/business-line/index.js";
|
|
5
|
+
import { EAppEnv as E } from "./enums/environment/index.js";
|
|
6
|
+
import { ECaller as u } from "./enums/sdk/index.js";
|
|
7
|
+
import { EStorageKey as T } from "./enums/storage/index.js";
|
|
8
|
+
import { EVenueTypes as v, EVenueTypesDes as P } from "./enums/sub/enjoy/index.js";
|
|
9
|
+
import { EFoodsModuleType as c } from "./enums/sub/foods/index.js";
|
|
10
|
+
import { EHotelType as D } from "./enums/sub/hotel/index.js";
|
|
11
|
+
import { getQueryParameters as b, isEmpty as F, query2url as M } from "./utils/common/index.js";
|
|
12
|
+
import { getActivityCalendarDetailPage as k } from "./utils/pages/activity-calendar/index.js";
|
|
13
|
+
import { getWebviewPage as A } from "./utils/pages/webview/index.js";
|
|
14
|
+
import { getFoodPackagePage as K, getFoodStorePage as L } from "./utils/pages/food/index.js";
|
|
15
|
+
import { EMessagesType as q, getWebViewEnv as z, navigateBack as H, navigateTo as O, postMessage as Q, redirectTo as h } from "./utils/web-view/index.js";
|
|
16
|
+
export {
|
|
17
|
+
m as BusinessLineDict,
|
|
18
|
+
E as EAppEnv,
|
|
19
|
+
g as EBusinessLine,
|
|
20
|
+
u as ECaller,
|
|
21
|
+
c as EFoodsModuleType,
|
|
22
|
+
D as EHotelType,
|
|
23
|
+
q as EMessagesType,
|
|
24
|
+
T as EStorageKey,
|
|
25
|
+
f as ESubBizType,
|
|
26
|
+
v as EVenueTypes,
|
|
27
|
+
P as EVenueTypesDes,
|
|
28
|
+
t as OneTravelSDK,
|
|
29
|
+
k as getActivityCalendarDetailPage,
|
|
30
|
+
K as getFoodPackagePage,
|
|
31
|
+
L as getFoodStorePage,
|
|
32
|
+
b as getQueryParameters,
|
|
33
|
+
z as getWebViewEnv,
|
|
34
|
+
A as getWebviewPage,
|
|
35
|
+
F as isEmpty,
|
|
36
|
+
H as navigateBack,
|
|
37
|
+
O as navigateTo,
|
|
38
|
+
Q as postMessage,
|
|
39
|
+
M as query2url,
|
|
40
|
+
h as redirectTo,
|
|
41
|
+
a as routePrefix,
|
|
42
|
+
s as routes
|
|
43
|
+
};
|
|
@@ -1,194 +1,126 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
function(e$1) {
|
|
129
|
-
if (c) return window.QQJSBridge && window.QQJSBridge.invoke ? setTimeout(e$1, 0) : document.addEventListener("QQJSBridgeReady", e$1), window.qq.miniProgram;
|
|
130
|
-
},
|
|
131
|
-
function(e$1) {
|
|
132
|
-
if (g) {
|
|
133
|
-
document.addEventListener("DOMContentLoaded", e$1);
|
|
134
|
-
var n$1 = window.my;
|
|
135
|
-
return {
|
|
136
|
-
navigateTo: n$1.navigateTo,
|
|
137
|
-
navigateBack: n$1.navigateBack,
|
|
138
|
-
switchTab: n$1.switchTab,
|
|
139
|
-
reLaunch: n$1.reLaunch,
|
|
140
|
-
redirectTo: n$1.redirectTo,
|
|
141
|
-
postMessage: n$1.postMessage,
|
|
142
|
-
getEnv: n$1.getEnv
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
function(e$1) {
|
|
147
|
-
if (v) return document.addEventListener("DOMContentLoaded", e$1), window.swan.webView;
|
|
148
|
-
},
|
|
149
|
-
function(e$1) {
|
|
150
|
-
if (p) return document.addEventListener("DOMContentLoaded", e$1), window.tt.miniProgram;
|
|
151
|
-
},
|
|
152
|
-
function(e$1) {
|
|
153
|
-
if (m) {
|
|
154
|
-
window.QaJSBridge && window.QaJSBridge.invoke ? setTimeout(e$1, 0) : document.addEventListener("QaJSBridgeReady", e$1);
|
|
155
|
-
var n$1 = window.qa;
|
|
156
|
-
return {
|
|
157
|
-
navigateTo: n$1.navigateTo,
|
|
158
|
-
navigateBack: n$1.navigateBack,
|
|
159
|
-
switchTab: n$1.switchTab,
|
|
160
|
-
reLaunch: n$1.reLaunch,
|
|
161
|
-
redirectTo: n$1.redirectTo,
|
|
162
|
-
postMessage: n$1.postMessage,
|
|
163
|
-
getEnv: n$1.getEnv
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
function(e$1) {
|
|
168
|
-
if (f) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e$1, 0) : document.addEventListener("WeixinJSBridgeReady", e$1), window.ks.miniProgram;
|
|
169
|
-
},
|
|
170
|
-
function(e$1) {
|
|
171
|
-
if (l) return document.addEventListener("DOMContentLoaded", e$1), window.tt.miniProgram;
|
|
172
|
-
},
|
|
173
|
-
function(e$1) {
|
|
174
|
-
if (E) return window.JDJSBridgeReady && window.JDJSBridgeReady.invoke ? setTimeout(e$1, 0) : document.addEventListener("JDJSBridgeReady", e$1), window.jd.miniProgram;
|
|
175
|
-
},
|
|
176
|
-
function(e$1) {
|
|
177
|
-
if (x) return window.xhs.miniProgram;
|
|
178
|
-
},
|
|
179
|
-
function(e$1) {
|
|
180
|
-
return document.addEventListener("DOMContentLoaded", e$1), d;
|
|
181
|
-
}
|
|
182
|
-
], M = 0; M < y.length && !(S = y[M](h)); M++);
|
|
183
|
-
S || (S = {});
|
|
184
|
-
var P = "undefined" != typeof uni ? uni : {};
|
|
185
|
-
if (!P.navigateTo) for (var b in S) i(S, b) && (P[b] = S[b]);
|
|
186
|
-
return P.webView = S, P;
|
|
187
|
-
});
|
|
188
|
-
} });
|
|
189
|
-
|
|
190
|
-
//#endregion
|
|
191
|
-
export default require_uni_webview_1_5_5();
|
|
192
|
-
|
|
193
|
-
export { require_uni_webview_1_5_5 };
|
|
194
|
-
//# sourceMappingURL=uni.webview.1.5.5.js.map
|
|
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,13 +1,7 @@
|
|
|
1
|
-
import { EStorageKey } from "../../enums/storage/index.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 获取SDK配置信息
|
|
6
|
-
*/
|
|
7
|
-
function getSDKConfig() {
|
|
8
|
-
return JSON.parse(localStorage.getItem(EStorageKey.configOptions) || "{}");
|
|
1
|
+
import { EStorageKey as o } from "../../enums/storage/index.js";
|
|
2
|
+
function e() {
|
|
3
|
+
return JSON.parse(localStorage.getItem(o.configOptions) || "{}");
|
|
9
4
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
export {
|
|
6
|
+
e as getSDKConfig
|
|
7
|
+
};
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
import { EBusinessLine } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
linkBusinessLine?: EBusinessLine;
|
|
22
|
-
bizType?: EBusinessLine;
|
|
23
|
-
businessType?: EBusinessLine;
|
|
1
|
+
import { EBusinessLine, EHotelType } from '../../enums';
|
|
2
|
+
export type IJumpGoodsDetailItem = {
|
|
3
|
+
/** 扩展参数(JSON数据) */
|
|
4
|
+
extInfoMap?: string;
|
|
5
|
+
/** 扩展参数(JSON数据) */
|
|
6
|
+
extInfo?: string;
|
|
7
|
+
/** 商品skuId */
|
|
8
|
+
skuId?: string;
|
|
9
|
+
/** 商品spuId */
|
|
10
|
+
spuId?: string;
|
|
11
|
+
/** 商品id */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** 类型 (只有linkBusinessLine === EBusinessType.Homestay 才有用, 有就是酒店商品,没有就是爆款商品) */
|
|
14
|
+
type?: EHotelType;
|
|
15
|
+
/** 酒店或名宿 */
|
|
16
|
+
storeId?: string;
|
|
17
|
+
/** 业务线(不同的字段) */
|
|
18
|
+
linkBusinessLine?: EBusinessLine;
|
|
19
|
+
bizType?: EBusinessLine;
|
|
20
|
+
businessType?: EBusinessLine;
|
|
24
21
|
};
|
|
25
|
-
//# sourceMappingURL=type.d.ts.map
|
|
26
|
-
//#endregion
|
|
27
|
-
export { IJumpGoodsDetailItem };
|
|
28
|
-
//# sourceMappingURL=type.d.ts.map
|