@foundbyte/uni-libs 0.0.1-alpha.1 → 0.0.3
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/README.md +88 -0
- package/es/_virtual/rolldown_runtime.js +27 -0
- package/es/configs/app/app.hwtest.js +11 -0
- package/es/configs/app/app.hwtest.js.map +1 -0
- package/es/configs/app/app.prod.js +11 -0
- package/es/configs/app/app.prod.js.map +1 -0
- package/es/configs/app/app.type.d.ts +16 -0
- package/es/configs/app/app.type.d.ts.map +1 -0
- package/es/configs/app/index.js +32 -0
- package/es/configs/app/index.js.map +1 -0
- package/es/constants/routes/index.d.ts +83 -0
- package/es/constants/routes/index.d.ts.map +1 -0
- package/es/constants/routes/index.js +47 -0
- package/es/constants/routes/index.js.map +1 -0
- package/es/entry.d.ts +25 -0
- package/es/entry.d.ts.map +1 -0
- package/es/entry.js +39 -0
- package/es/entry.js.map +1 -0
- package/es/enums/business-line/index.d.ts +85 -0
- package/es/enums/business-line/index.d.ts.map +1 -0
- package/es/enums/business-line/index.js +116 -0
- package/es/enums/business-line/index.js.map +1 -0
- package/es/enums/environment/index.d.ts +14 -0
- package/es/enums/environment/index.d.ts.map +1 -0
- package/es/enums/environment/index.js +15 -0
- package/es/enums/environment/index.js.map +1 -0
- package/es/enums/sdk/index.d.ts +14 -0
- package/es/enums/sdk/index.d.ts.map +1 -0
- package/es/enums/sdk/index.js +15 -0
- package/es/enums/sdk/index.js.map +1 -0
- package/es/enums/storage/index.d.ts +11 -0
- package/es/enums/storage/index.d.ts.map +1 -0
- package/es/enums/storage/index.js +12 -0
- package/es/enums/storage/index.js.map +1 -0
- package/es/enums/sub/enjoy/index.d.ts +22 -0
- package/es/enums/sub/enjoy/index.d.ts.map +1 -0
- package/es/enums/sub/enjoy/index.js +20 -0
- package/es/enums/sub/enjoy/index.js.map +1 -0
- package/es/enums/sub/foods/index.d.ts +10 -0
- package/es/enums/sub/foods/index.d.ts.map +1 -0
- package/es/enums/sub/foods/index.js +11 -0
- package/es/enums/sub/foods/index.js.map +1 -0
- package/es/enums/sub/hotel/index.d.ts +11 -0
- package/es/enums/sub/hotel/index.d.ts.map +1 -0
- package/es/enums/sub/hotel/index.js +12 -0
- package/es/enums/sub/hotel/index.js.map +1 -0
- package/es/index.d.ts +16 -1
- package/es/index.js +16 -10
- package/es/libs/webview/uni.webview.1.5.5.js +194 -0
- package/es/libs/webview/uni.webview.1.5.5.js.map +1 -0
- package/es/services/config/index.js +13 -0
- package/es/services/config/index.js.map +1 -0
- package/es/services/goods/type.d.ts +28 -0
- package/es/services/goods/type.d.ts.map +1 -0
- package/es/services/goods/util.js +124 -0
- package/es/services/goods/util.js.map +1 -0
- package/es/types/one-travel-service/index.d.ts +18 -0
- package/es/types/one-travel-service/index.d.ts.map +1 -0
- package/es/utils/common/index.d.ts +23 -0
- package/es/utils/common/index.d.ts.map +1 -0
- package/es/utils/common/index.js +45 -0
- package/es/utils/common/index.js.map +1 -0
- package/es/utils/pages/activity-calendar/index.d.ts +9 -0
- package/es/utils/pages/activity-calendar/index.d.ts.map +1 -0
- package/es/utils/pages/activity-calendar/index.js +12 -0
- package/es/utils/pages/activity-calendar/index.js.map +1 -0
- package/es/utils/pages/food/index.d.ts +21 -0
- package/es/utils/pages/food/index.d.ts.map +1 -0
- package/es/utils/pages/food/index.js +33 -0
- package/es/utils/pages/food/index.js.map +1 -0
- package/es/utils/pages/webview/index.d.ts +13 -0
- package/es/utils/pages/webview/index.d.ts.map +1 -0
- package/es/utils/pages/webview/index.js +11 -0
- package/es/utils/pages/webview/index.js.map +1 -0
- package/es/utils/web-view/index.d.ts +48 -0
- package/es/utils/web-view/index.d.ts.map +1 -0
- package/es/utils/web-view/index.js +91 -0
- package/es/utils/web-view/index.js.map +1 -0
- package/package.json +9 -4
- package/es/web-view/index.d.ts +0 -38
- package/es/web-view/index.js +0 -51
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/enums/environment/index.ts"],"sourcesContent":[],"mappings":";;AAGA;;aAAY,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/enums/environment/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 环境变量枚举
|
|
4
|
+
*/
|
|
5
|
+
let EAppEnv = /* @__PURE__ */ function(EAppEnv$1) {
|
|
6
|
+
/** 测试 */
|
|
7
|
+
EAppEnv$1["test"] = "test";
|
|
8
|
+
/** 生产 */
|
|
9
|
+
EAppEnv$1["prod"] = "prod";
|
|
10
|
+
return EAppEnv$1;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { EAppEnv };
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/enums/environment/index.ts"],"sourcesContent":["/**\n * 环境变量枚举\n */\nexport enum EAppEnv {\n /** 测试 */\n test = 'test',\n /** 生产 */\n prod = 'prod'\n}\n"],"mappings":";;;;AAGA,IAAY,8CAAL;;AAEL;;AAEA;;AACD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/enums/sdk/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* 调用者
|
|
4
|
+
*/
|
|
5
|
+
declare enum ECaller {
|
|
6
|
+
/** 网页(默认) */
|
|
7
|
+
web = "web",
|
|
8
|
+
/** 宿主 */
|
|
9
|
+
host = "host",
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ECaller };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/enums/sdk/index.ts"],"sourcesContent":[],"mappings":";;AAGA;;aAAY,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/enums/sdk/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 调用者
|
|
4
|
+
*/
|
|
5
|
+
let ECaller = /* @__PURE__ */ function(ECaller$1) {
|
|
6
|
+
/** 网页(默认) */
|
|
7
|
+
ECaller$1["web"] = "web";
|
|
8
|
+
/** 宿主 */
|
|
9
|
+
ECaller$1["host"] = "host";
|
|
10
|
+
return ECaller$1;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ECaller };
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/enums/sdk/index.ts"],"sourcesContent":["/**\n * 调用者\n */\nexport enum ECaller {\n /** 网页(默认) */\n web = 'web',\n /** 宿主 */\n host = 'host'\n}\n"],"mappings":";;;;AAGA,IAAY,8CAAL;;AAEL;;AAEA;;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/enums/storage/index.ts"],"sourcesContent":[],"mappings":";;AAGA;;aAAY,WAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/enums/storage/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 存储key
|
|
4
|
+
*/
|
|
5
|
+
let EStorageKey = /* @__PURE__ */ function(EStorageKey$1) {
|
|
6
|
+
EStorageKey$1["configOptions"] = "configOptions";
|
|
7
|
+
return EStorageKey$1;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { EStorageKey };
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/enums/storage/index.ts"],"sourcesContent":["/**\n * 存储key\n */\nexport enum EStorageKey {\n configOptions = 'configOptions'\n}\n"],"mappings":";;;;AAGA,IAAY,sDAAL;AACL;;AACD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/enums/sub/enjoy/index.d.ts
|
|
2
|
+
/** 场馆类型 */
|
|
3
|
+
declare enum EVenueTypes {
|
|
4
|
+
/** 博物馆 */
|
|
5
|
+
Museums = "01",
|
|
6
|
+
/** 展览馆 */
|
|
7
|
+
Exhibitions = "02",
|
|
8
|
+
/** 演艺活动 */
|
|
9
|
+
Activity = "03",
|
|
10
|
+
}
|
|
11
|
+
declare const EVenueTypesDes: {
|
|
12
|
+
/** 博物馆 */
|
|
13
|
+
"01": string;
|
|
14
|
+
/** 展览馆 */
|
|
15
|
+
"02": string;
|
|
16
|
+
/** 演艺活动 */
|
|
17
|
+
"03": string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
20
|
+
//#endregion
|
|
21
|
+
export { EVenueTypes, EVenueTypesDes };
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/enums/sub/enjoy/index.ts"],"sourcesContent":[],"mappings":";;AACY,aAAA,WAAA;EASC;;;;;;;cAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/enums/sub/enjoy/index.ts
|
|
2
|
+
/** 场馆类型 */
|
|
3
|
+
let EVenueTypes = /* @__PURE__ */ function(EVenueTypes$1) {
|
|
4
|
+
/** 博物馆 */
|
|
5
|
+
EVenueTypes$1["Museums"] = "01";
|
|
6
|
+
/** 展览馆 */
|
|
7
|
+
EVenueTypes$1["Exhibitions"] = "02";
|
|
8
|
+
/** 演艺活动 */
|
|
9
|
+
EVenueTypes$1["Activity"] = "03";
|
|
10
|
+
return EVenueTypes$1;
|
|
11
|
+
}({});
|
|
12
|
+
const EVenueTypesDes = {
|
|
13
|
+
[EVenueTypes.Museums]: "1",
|
|
14
|
+
[EVenueTypes.Exhibitions]: "2",
|
|
15
|
+
[EVenueTypes.Activity]: "3"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { EVenueTypes, EVenueTypesDes };
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/enums/sub/enjoy/index.ts"],"sourcesContent":["/** 场馆类型 */\nexport enum EVenueTypes {\n /** 博物馆 */\n Museums = '01',\n /** 展览馆 */\n Exhibitions = '02',\n /** 演艺活动 */\n Activity = '03'\n}\n\nexport const EVenueTypesDes = {\n /** 博物馆 */\n [EVenueTypes.Museums]: '1',\n /** 展览馆 */\n [EVenueTypes.Exhibitions]: '2',\n /** 演艺活动 */\n [EVenueTypes.Activity]: '3'\n}\n"],"mappings":";;AACA,IAAY,sDAAL;;AAEL;;AAEA;;AAEA;;AACD;AAED,MAAa,iBAAiB;EAE3B,YAAY,UAAU;EAEtB,YAAY,cAAc;EAE1B,YAAY,WAAW;AACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/enums/sub/foods/index.ts"],"sourcesContent":[],"mappings":";;AACY,aAAA,gBAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/enums/sub/foods/index.ts
|
|
2
|
+
/** 美食跳转 */
|
|
3
|
+
let EFoodsModuleType = /* @__PURE__ */ function(EFoodsModuleType$1) {
|
|
4
|
+
/** 搜藏 */
|
|
5
|
+
EFoodsModuleType$1["store"] = "store";
|
|
6
|
+
return EFoodsModuleType$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { EFoodsModuleType };
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/enums/sub/foods/index.ts"],"sourcesContent":["/** 美食跳转 */\nexport enum EFoodsModuleType {\n /** 搜藏 */\n store = 'store'\n}\n"],"mappings":";;AACA,IAAY,gEAAL;;AAEL;;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/enums/sub/hotel/index.ts"],"sourcesContent":[],"mappings":";;AAGA;;mBAAkB,UAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/enums/sub/hotel/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* 酒店类型
|
|
4
|
+
*/
|
|
5
|
+
let EHotelType = /* @__PURE__ */ function(EHotelType$1) {
|
|
6
|
+
EHotelType$1["hotel"] = "hotel";
|
|
7
|
+
return EHotelType$1;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { EHotelType };
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/enums/sub/hotel/index.ts"],"sourcesContent":["/**\n * 酒店类型\n */\nexport const enum EHotelType {\n hotel = 'hotel',\n}\n"],"mappings":";;;;AAGA,IAAkB,oDAAX;AACL;;AACD"}
|
package/es/index.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { routePrefix, routes } from "./constants/routes/index.js";
|
|
2
|
+
import { BusinessLineDict, EBusinessLine, ESubBizType } from "./enums/business-line/index.js";
|
|
3
|
+
import { EAppEnv } from "./enums/environment/index.js";
|
|
4
|
+
import { ECaller } from "./enums/sdk/index.js";
|
|
5
|
+
import { EStorageKey } from "./enums/storage/index.js";
|
|
6
|
+
import { EVenueTypes, EVenueTypesDes } from "./enums/sub/enjoy/index.js";
|
|
7
|
+
import { EFoodsModuleType } from "./enums/sub/foods/index.js";
|
|
8
|
+
import { EHotelType } from "./enums/sub/hotel/index.js";
|
|
9
|
+
import { IOneTravelSDKOptions } from "./types/one-travel-service/index.js";
|
|
10
|
+
import { getQueryParameters, isEmpty, query2url } from "./utils/common/index.js";
|
|
11
|
+
import { ActivityCalendarDetailPageParams, getActivityCalendarDetailPage } from "./utils/pages/activity-calendar/index.js";
|
|
12
|
+
import { WebviewPageParams, getWebviewPage } from "./utils/pages/webview/index.js";
|
|
13
|
+
import { getFoodPackagePage, getFoodStorePage } from "./utils/pages/food/index.js";
|
|
14
|
+
import { EMessagesType, getWebViewEnv, navigateBack, navigateTo, postMessage, redirectTo } from "./utils/web-view/index.js";
|
|
15
|
+
import { OneTravelSDK } from "./entry.js";
|
|
16
|
+
export { ActivityCalendarDetailPageParams, BusinessLineDict, EAppEnv, EBusinessLine, ECaller, EFoodsModuleType, EHotelType, EMessagesType, EStorageKey, ESubBizType, EVenueTypes, EVenueTypesDes, IOneTravelSDKOptions, OneTravelSDK, WebviewPageParams, getActivityCalendarDetailPage, getFoodPackagePage, getFoodStorePage, getQueryParameters, getWebViewEnv, getWebviewPage, isEmpty, navigateBack, navigateTo, postMessage, query2url, redirectTo, routePrefix, routes };
|
package/es/index.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
1
|
+
import { routePrefix, routes } from "./constants/routes/index.js";
|
|
2
|
+
import { BusinessLineDict, EBusinessLine, ESubBizType } from "./enums/business-line/index.js";
|
|
3
|
+
import { EAppEnv } from "./enums/environment/index.js";
|
|
4
|
+
import { ECaller } from "./enums/sdk/index.js";
|
|
5
|
+
import { EStorageKey } from "./enums/storage/index.js";
|
|
6
|
+
import { EVenueTypes, EVenueTypesDes } from "./enums/sub/enjoy/index.js";
|
|
7
|
+
import { EFoodsModuleType } from "./enums/sub/foods/index.js";
|
|
8
|
+
import { EHotelType } from "./enums/sub/hotel/index.js";
|
|
9
|
+
import { getQueryParameters, isEmpty, query2url } from "./utils/common/index.js";
|
|
10
|
+
import { getActivityCalendarDetailPage } from "./utils/pages/activity-calendar/index.js";
|
|
11
|
+
import { getWebviewPage } from "./utils/pages/webview/index.js";
|
|
12
|
+
import { getFoodPackagePage, getFoodStorePage } from "./utils/pages/food/index.js";
|
|
13
|
+
import { EMessagesType, getWebViewEnv, navigateBack, navigateTo, postMessage, redirectTo } from "./utils/web-view/index.js";
|
|
14
|
+
import { OneTravelSDK } from "./entry.js";
|
|
15
|
+
|
|
16
|
+
export { BusinessLineDict, EAppEnv, EBusinessLine, ECaller, EFoodsModuleType, EHotelType, EMessagesType, EStorageKey, ESubBizType, EVenueTypes, EVenueTypesDes, OneTravelSDK, getActivityCalendarDetailPage, getFoodPackagePage, getFoodStorePage, getQueryParameters, getWebViewEnv, getWebviewPage, isEmpty, navigateBack, navigateTo, postMessage, query2url, redirectTo, routePrefix, routes };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { __commonJS } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region src/libs/webview/uni.webview.1.5.5.js
|
|
4
|
+
var require_uni_webview_1_5_5 = __commonJS({ "src/libs/webview/uni.webview.1.5.5.js"(exports, module) {
|
|
5
|
+
(function(e, n) {
|
|
6
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = e || self).uni = n();
|
|
7
|
+
})(void 0, function() {
|
|
8
|
+
try {
|
|
9
|
+
var e = {};
|
|
10
|
+
Object.defineProperty(e, "passive", { get: function() {} }), window.addEventListener("test-passive", null, e);
|
|
11
|
+
} catch (e$1) {}
|
|
12
|
+
var n = Object.prototype.hasOwnProperty;
|
|
13
|
+
function i(e$1, i$1) {
|
|
14
|
+
return n.call(e$1, i$1);
|
|
15
|
+
}
|
|
16
|
+
var t = [];
|
|
17
|
+
function o() {
|
|
18
|
+
return window.__dcloud_weex_postMessage || window.__dcloud_weex_;
|
|
19
|
+
}
|
|
20
|
+
function a() {
|
|
21
|
+
return window.__uniapp_x_postMessage || window.__uniapp_x_;
|
|
22
|
+
}
|
|
23
|
+
var r = function(e$1, n$1) {
|
|
24
|
+
var i$1 = {
|
|
25
|
+
options: { timestamp: +/* @__PURE__ */ new Date() },
|
|
26
|
+
name: e$1,
|
|
27
|
+
arg: n$1
|
|
28
|
+
};
|
|
29
|
+
if (a()) {
|
|
30
|
+
if ("postMessage" === e$1) {
|
|
31
|
+
var r$1 = { data: n$1 };
|
|
32
|
+
return window.__uniapp_x_postMessage ? window.__uniapp_x_postMessage(r$1) : window.__uniapp_x_.postMessage(JSON.stringify(r$1));
|
|
33
|
+
}
|
|
34
|
+
var d$1 = {
|
|
35
|
+
type: "WEB_INVOKE_APPSERVICE",
|
|
36
|
+
args: {
|
|
37
|
+
data: i$1,
|
|
38
|
+
webviewIds: t
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
window.__uniapp_x_postMessage ? window.__uniapp_x_postMessageToService(d$1) : window.__uniapp_x_.postMessageToService(JSON.stringify(d$1));
|
|
42
|
+
} else if (o()) {
|
|
43
|
+
if ("postMessage" === e$1) {
|
|
44
|
+
var s$1 = { data: [n$1] };
|
|
45
|
+
return window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessage(s$1) : window.__dcloud_weex_.postMessage(JSON.stringify(s$1));
|
|
46
|
+
}
|
|
47
|
+
var w$1 = {
|
|
48
|
+
type: "WEB_INVOKE_APPSERVICE",
|
|
49
|
+
args: {
|
|
50
|
+
data: i$1,
|
|
51
|
+
webviewIds: t
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessageToService(w$1) : window.__dcloud_weex_.postMessageToService(JSON.stringify(w$1));
|
|
55
|
+
} else {
|
|
56
|
+
console.log("window.plus:", window.plus);
|
|
57
|
+
return window.parent.postMessage({
|
|
58
|
+
type: "WEB_INVOKE_APPSERVICE",
|
|
59
|
+
data: i$1,
|
|
60
|
+
pageId: ""
|
|
61
|
+
}, "*");
|
|
62
|
+
var u$1, g$1, v$1, c$1;
|
|
63
|
+
}
|
|
64
|
+
}, d = {
|
|
65
|
+
navigateTo: function() {
|
|
66
|
+
var e$1 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n$1 = e$1.url;
|
|
67
|
+
r("navigateTo", { url: encodeURI(n$1) });
|
|
68
|
+
},
|
|
69
|
+
navigateBack: function() {
|
|
70
|
+
var e$1 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n$1 = e$1.delta;
|
|
71
|
+
r("navigateBack", { delta: parseInt(n$1) || 1 });
|
|
72
|
+
},
|
|
73
|
+
switchTab: function() {
|
|
74
|
+
var e$1 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n$1 = e$1.url;
|
|
75
|
+
r("switchTab", { url: encodeURI(n$1) });
|
|
76
|
+
},
|
|
77
|
+
reLaunch: function() {
|
|
78
|
+
var e$1 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n$1 = e$1.url;
|
|
79
|
+
r("reLaunch", { url: encodeURI(n$1) });
|
|
80
|
+
},
|
|
81
|
+
redirectTo: function() {
|
|
82
|
+
var e$1 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n$1 = e$1.url;
|
|
83
|
+
r("redirectTo", { url: encodeURI(n$1) });
|
|
84
|
+
},
|
|
85
|
+
getEnv: function(e$1) {
|
|
86
|
+
a() ? e$1({ uvue: !0 }) : o() ? e$1({ nvue: !0 }) : window.plus ? e$1({ plus: !0 }) : e$1({ h5: !0 });
|
|
87
|
+
},
|
|
88
|
+
postMessage: function() {
|
|
89
|
+
var e$1 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
90
|
+
r("postMessage", e$1.data || {});
|
|
91
|
+
}
|
|
92
|
+
}, s = /uni-app/i.test(navigator.userAgent), w = /Html5Plus/i.test(navigator.userAgent), u = /complete|loaded|interactive/;
|
|
93
|
+
var g = window.my && navigator.userAgent.indexOf([
|
|
94
|
+
"t",
|
|
95
|
+
"n",
|
|
96
|
+
"e",
|
|
97
|
+
"i",
|
|
98
|
+
"l",
|
|
99
|
+
"C",
|
|
100
|
+
"y",
|
|
101
|
+
"a",
|
|
102
|
+
"p",
|
|
103
|
+
"i",
|
|
104
|
+
"l",
|
|
105
|
+
"A"
|
|
106
|
+
].reverse().join("")) > -1;
|
|
107
|
+
var v = window.swan && window.swan.webView && /swan/i.test(navigator.userAgent);
|
|
108
|
+
var c = window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
|
109
|
+
var p = window.tt && window.tt.miniProgram && /toutiaomicroapp/i.test(navigator.userAgent);
|
|
110
|
+
var _ = window.wx && window.wx.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
|
111
|
+
var m = window.qa && /quickapp/i.test(navigator.userAgent);
|
|
112
|
+
var f = window.ks && window.ks.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
|
113
|
+
var l = window.tt && window.tt.miniProgram && /Lark|Feishu/i.test(navigator.userAgent);
|
|
114
|
+
var E = window.jd && window.jd.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
|
115
|
+
var x = window.xhs && window.xhs.miniProgram && /xhsminiapp/i.test(navigator.userAgent);
|
|
116
|
+
for (var S, h = function() {
|
|
117
|
+
window.UniAppJSBridge = !0, document.dispatchEvent(new CustomEvent("UniAppJSBridgeReady", {
|
|
118
|
+
bubbles: !0,
|
|
119
|
+
cancelable: !0
|
|
120
|
+
}));
|
|
121
|
+
}, y = [
|
|
122
|
+
function(e$1) {
|
|
123
|
+
if (s || w) return window.__uniapp_x_postMessage || window.__uniapp_x_ || window.__dcloud_weex_postMessage || window.__dcloud_weex_ ? document.addEventListener("DOMContentLoaded", e$1) : window.plus && u.test(document.readyState) ? setTimeout(e$1, 0) : document.addEventListener("plusready", e$1), d;
|
|
124
|
+
},
|
|
125
|
+
function(e$1) {
|
|
126
|
+
if (_) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e$1, 0) : document.addEventListener("WeixinJSBridgeReady", e$1), window.wx.miniProgram;
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uni.webview.1.5.5.js","names":["e","i","n","r","d","s","w","u","g","v","c"],"sources":["../../../src/libs/webview/uni.webview.1.5.5.js"],"sourcesContent":["!(function (e, n) {\n 'object' == typeof exports && 'undefined' != typeof module ? (module.exports = n()) : 'function' == typeof define && define.amd ? define(n) : ((e = e || self).uni = n());\n})(this, function () {\n try {\n var e = {};\n Object.defineProperty(e, 'passive', {\n get: function () {\n !0;\n },\n }),\n window.addEventListener('test-passive', null, e);\n } catch (e) {}\n var n = Object.prototype.hasOwnProperty;\n function i(e, i) {\n return n.call(e, i);\n }\n var t = [];\n function o() {\n return window.__dcloud_weex_postMessage || window.__dcloud_weex_;\n }\n function a() {\n return window.__uniapp_x_postMessage || window.__uniapp_x_;\n }\n var r = function (e, n) {\n var i = { options: { timestamp: +new Date() }, name: e, arg: n };\n if (a()) {\n if ('postMessage' === e) {\n var r = { data: n };\n return window.__uniapp_x_postMessage ? window.__uniapp_x_postMessage(r) : window.__uniapp_x_.postMessage(JSON.stringify(r));\n }\n var d = { type: 'WEB_INVOKE_APPSERVICE', args: { data: i, webviewIds: t } };\n window.__uniapp_x_postMessage ? window.__uniapp_x_postMessageToService(d) : window.__uniapp_x_.postMessageToService(JSON.stringify(d));\n } else if (o()) {\n if ('postMessage' === e) {\n var s = { data: [n] };\n return window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessage(s) : window.__dcloud_weex_.postMessage(JSON.stringify(s));\n }\n var w = { type: 'WEB_INVOKE_APPSERVICE', args: { data: i, webviewIds: t } };\n window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessageToService(w) : window.__dcloud_weex_.postMessageToService(JSON.stringify(w));\n } else {\n console.log('window.plus:', window.plus);\n return window.parent.postMessage({ type: 'WEB_INVOKE_APPSERVICE', data: i, pageId: '' }, '*');\n if (0 === t.length) {\n var u = plus.webview.currentWebview();\n if (!u) throw new Error('plus.webview.currentWebview() is undefined');\n var g = u.parent(),\n v = '';\n (v = g ? g.id : u.id), t.push(v);\n }\n if (plus.webview.getWebviewById('__uniapp__service')) plus.webview.postMessageToUniNView({ type: 'WEB_INVOKE_APPSERVICE', args: { data: i, webviewIds: t } }, '__uniapp__service');\n else {\n var c = JSON.stringify(i);\n plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler(\"'.concat('WEB_INVOKE_APPSERVICE', '\",').concat(c, ',').concat(JSON.stringify(t), ');'));\n }\n }\n },\n d = {\n navigateTo: function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},\n n = e.url;\n r('navigateTo', { url: encodeURI(n) });\n },\n navigateBack: function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},\n n = e.delta;\n r('navigateBack', { delta: parseInt(n) || 1 });\n },\n switchTab: function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},\n n = e.url;\n r('switchTab', { url: encodeURI(n) });\n },\n reLaunch: function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},\n n = e.url;\n r('reLaunch', { url: encodeURI(n) });\n },\n redirectTo: function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},\n n = e.url;\n r('redirectTo', { url: encodeURI(n) });\n },\n getEnv: function (e) {\n a() ? e({ uvue: !0 }) : o() ? e({ nvue: !0 }) : window.plus ? e({ plus: !0 }) : e({ h5: !0 });\n },\n postMessage: function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};\n r('postMessage', e.data || {});\n },\n },\n s = /uni-app/i.test(navigator.userAgent),\n w = /Html5Plus/i.test(navigator.userAgent),\n u = /complete|loaded|interactive/;\n var g = window.my && navigator.userAgent.indexOf(['t', 'n', 'e', 'i', 'l', 'C', 'y', 'a', 'p', 'i', 'l', 'A'].reverse().join('')) > -1;\n var v = window.swan && window.swan.webView && /swan/i.test(navigator.userAgent);\n var c = window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);\n var p = window.tt && window.tt.miniProgram && /toutiaomicroapp/i.test(navigator.userAgent);\n var _ = window.wx && window.wx.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);\n var m = window.qa && /quickapp/i.test(navigator.userAgent);\n var f = window.ks && window.ks.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);\n var l = window.tt && window.tt.miniProgram && /Lark|Feishu/i.test(navigator.userAgent);\n var E = window.jd && window.jd.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);\n var x = window.xhs && window.xhs.miniProgram && /xhsminiapp/i.test(navigator.userAgent);\n for (\n var S,\n h = function () {\n (window.UniAppJSBridge = !0), document.dispatchEvent(new CustomEvent('UniAppJSBridgeReady', { bubbles: !0, cancelable: !0 }));\n },\n y = [\n function (e) {\n if (s || w)\n return (\n window.__uniapp_x_postMessage || window.__uniapp_x_ || window.__dcloud_weex_postMessage || window.__dcloud_weex_\n ? document.addEventListener('DOMContentLoaded', e)\n : window.plus && u.test(document.readyState)\n ? setTimeout(e, 0)\n : document.addEventListener('plusready', e),\n d\n );\n },\n function (e) {\n if (_) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener('WeixinJSBridgeReady', e), window.wx.miniProgram;\n },\n function (e) {\n if (c) return window.QQJSBridge && window.QQJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener('QQJSBridgeReady', e), window.qq.miniProgram;\n },\n function (e) {\n if (g) {\n document.addEventListener('DOMContentLoaded', e);\n var n = window.my;\n return { navigateTo: n.navigateTo, navigateBack: n.navigateBack, switchTab: n.switchTab, reLaunch: n.reLaunch, redirectTo: n.redirectTo, postMessage: n.postMessage, getEnv: n.getEnv };\n }\n },\n function (e) {\n if (v) return document.addEventListener('DOMContentLoaded', e), window.swan.webView;\n },\n function (e) {\n if (p) return document.addEventListener('DOMContentLoaded', e), window.tt.miniProgram;\n },\n function (e) {\n if (m) {\n window.QaJSBridge && window.QaJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener('QaJSBridgeReady', e);\n var n = window.qa;\n return { navigateTo: n.navigateTo, navigateBack: n.navigateBack, switchTab: n.switchTab, reLaunch: n.reLaunch, redirectTo: n.redirectTo, postMessage: n.postMessage, getEnv: n.getEnv };\n }\n },\n function (e) {\n if (f) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener('WeixinJSBridgeReady', e), window.ks.miniProgram;\n },\n function (e) {\n if (l) return document.addEventListener('DOMContentLoaded', e), window.tt.miniProgram;\n },\n function (e) {\n if (E) return window.JDJSBridgeReady && window.JDJSBridgeReady.invoke ? setTimeout(e, 0) : document.addEventListener('JDJSBridgeReady', e), window.jd.miniProgram;\n },\n function (e) {\n if (x) return window.xhs.miniProgram;\n },\n function (e) {\n return document.addEventListener('DOMContentLoaded', e), d;\n },\n ],\n M = 0;\n M < y.length && !(S = y[M](h));\n M++\n );\n S || (S = {});\n var P = 'undefined' != typeof uni ? uni : {};\n if (!P.navigateTo) for (var b in S) i(S, b) && (P[b] = S[b]);\n return (P.webView = S), P;\n});\n"],"mappings":";;;;AAAA,CAAC,CAAC,SAAU,GAAG,GAAG;AAChB,qBAAmB,WAAW,sBAAsB,SAAU,OAAO,UAAU,GAAG,GAAI,qBAAqB,UAAU,OAAO,MAAM,OAAO,EAAE,IAAK,IAAI,KAAK,MAAM,MAAM,GAAG;CACzK,WAAQ,WAAY;AACnB,MAAI;GACF,IAAI,IAAI,CAAE;AACV,UAAO,eAAe,GAAG,WAAW,EAClC,KAAK,WAAY,CAEhB,EACF,EAAC,EACA,OAAO,iBAAiB,gBAAgB,MAAM,EAAE;EACnD,SAAQA,KAAG,CAAE;EACd,IAAI,IAAI,OAAO,UAAU;EACzB,SAAS,EAAEA,KAAGC,KAAG;AACf,UAAO,EAAE,KAAKD,KAAGC,IAAE;EACpB;EACD,IAAI,IAAI,CAAE;EACV,SAAS,IAAI;AACX,UAAO,OAAO,6BAA6B,OAAO;EACnD;EACD,SAAS,IAAI;AACX,UAAO,OAAO,0BAA0B,OAAO;EAChD;EACD,IAAI,IAAI,SAAUD,KAAGE,KAAG;GACpB,IAAID,MAAI;IAAE,SAAS,EAAE,4BAAY,IAAI,OAAQ;IAAE,MAAMD;IAAG,KAAKE;GAAG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I,EAAG,QAAO,OAAO,mBAAmB,OAAO,gBAAgB,SAAS,WAAWA,KAAG,EAAE,GAAG,SAAS,iBAAiB,mBAAmBA,IAAE,EAAE,OAAO,GAAG;GACvJ;GACD,SAAUA,KAAG;AACX,QAAI,EAAG,QAAO,OAAO,IAAI;GAC1B;GACD,SAAUA,KAAG;AACX,WAAO,SAAS,iBAAiB,oBAAoBA,IAAE,EAAE;GAC1D;EACF,GACD,IAAI,GACN,IAAI,EAAE,YAAY,IAAI,EAAE,GAAG,EAAE,GAC7B;AAEF,QAAM,IAAI,CAAE;EACZ,IAAI,IAAI,sBAAsB,MAAM,MAAM,CAAE;AAC5C,OAAK,EAAE,WAAY,MAAK,IAAI,KAAK,EAAG,GAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;AACzD,SAAQ,EAAE,UAAU,GAAI;CACzB,EAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EStorageKey } from "../../enums/storage/index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/services/config/index.ts
|
|
4
|
+
/**
|
|
5
|
+
* 获取SDK配置信息
|
|
6
|
+
*/
|
|
7
|
+
function getSDKConfig() {
|
|
8
|
+
return JSON.parse(localStorage.getItem(EStorageKey.configOptions) || "{}");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getSDKConfig };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/services/config/index.ts"],"sourcesContent":["import { IOneTravelSDKOptions } from '../../types'\nimport { EStorageKey } from '../../enums'\n\n/**\n * 获取SDK配置信息\n */\nexport function getSDKConfig(): IOneTravelSDKOptions {\n return JSON.parse(localStorage.getItem(EStorageKey.configOptions) || '{}') as IOneTravelSDKOptions\n}\n"],"mappings":";;;;;;AAMA,SAAgB,eAAqC;AACnD,QAAO,KAAK,MAAM,aAAa,QAAQ,YAAY,cAAc,IAAI,KAAK;AAC3E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EBusinessLine } from "../../enums/business-line/index.js";
|
|
2
|
+
import { EHotelType } from "../../enums/sub/hotel/index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/services/goods/type.d.ts
|
|
5
|
+
type IJumpGoodsDetailItem = {
|
|
6
|
+
/** 扩展参数(JSON数据) */
|
|
7
|
+
extInfoMap?: string;
|
|
8
|
+
/** 扩展参数(JSON数据) */
|
|
9
|
+
extInfo?: string;
|
|
10
|
+
/** 商品skuId */
|
|
11
|
+
skuId?: string;
|
|
12
|
+
/** 商品spuId */
|
|
13
|
+
spuId?: string;
|
|
14
|
+
/** 商品id */
|
|
15
|
+
id?: string;
|
|
16
|
+
/** 类型 (只有linkBusinessLine === EBusinessType.Homestay 才有用, 有就是酒店商品,没有就是爆款商品) */
|
|
17
|
+
type?: EHotelType;
|
|
18
|
+
/** 酒店或名宿 */
|
|
19
|
+
storeId?: string;
|
|
20
|
+
/** 业务线(不同的字段) */
|
|
21
|
+
linkBusinessLine?: EBusinessLine;
|
|
22
|
+
bizType?: EBusinessLine;
|
|
23
|
+
businessType?: EBusinessLine;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=type.d.ts.map
|
|
26
|
+
//#endregion
|
|
27
|
+
export { IJumpGoodsDetailItem };
|
|
28
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","names":[],"sources":["../../../src/services/goods/type.ts"],"sourcesContent":[],"mappings":";;;;KAEY,oBAAA;;;EAAA;EAAoB,OAAA,CAAA,EAAA,MAAA;EAAA;EAYb,KAKE,CAAA,EAAA,MAAA;EAAa;EACT,KACR,CAAA,EAAA,MAAA;EAAa;;;SAPrB;;;;qBAKY;YACT;iBACK"}
|