diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..853f861
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+# 忽略依赖目录
+/node_modules/
+
+# 忽略 UniApp 编译输出目录
+/unpackage/
+
+# 忽略 VS Code 配置目录
+/.vscode/
\ No newline at end of file
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
new file mode 100644
index 0000000..9ffae2c
--- /dev/null
+++ b/.hbuilderx/launch.json
@@ -0,0 +1,9 @@
+{
+ "version" : "1.0",
+ "configurations" : [
+ {
+ "playground" : "custom",
+ "type" : "uni-app:app-ios"
+ }
+ ]
+}
diff --git a/components/popup-picker/PopupPickerMy.vue b/components/popup-picker/PopupPickerMy.vue
new file mode 100644
index 0000000..bd54b70
--- /dev/null
+++ b/components/popup-picker/PopupPickerMy.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
diff --git a/pages/artisan/add-service.vue b/pages/artisan/add-service.vue
index d633e10..bbba759 100644
--- a/pages/artisan/add-service.vue
+++ b/pages/artisan/add-service.vue
@@ -1,80 +1,123 @@
-
-
-
-
+
+
- {{ formData.back_text }}
-
-
-
-
-
- 服务名称
-
-
+
+
+
+
+ 服务名称
+
+
-
-
- 服务价格
-
-
+
+
+ 服务价格
+
+
-
-
- 服务分类
-
-
- {{serviceType || '选择分类'}}
-
-
-
-
+
+
+ 服务分类
+
+
+ {{ serviceType || "选择分类" }}
+
+
+
+
-
-
- 服务子类
-
-
- {{category || '选择子类'}}
-
-
-
-
+
+
+ 服务子类
+
+
+ {{ category || "选择子类" }}
+
+
+
+
-
-
-
- 是否允许该服务在门店端售卖,以供门店下单购买。
- {{showShopPrice ? '门店下单购买后,您需到上门至门店进行服务,门店端展示价格为' : ''}}
- {{shopPrice}}
- {{showShopPrice ? '元。' : ''}}
-
-
-
-
- 允许
-
-
-
- 不允许
-
-
-
+
+
+
+ 是否允许该服务在门店端售卖,以供门店下单购买。
+ {{
+ showShopPrice
+ ? "门店下单购买后,您需到上门至门店进行服务,门店端展示价格为"
+ : ""
+ }}
+ {{
+ shopPrice
+ }}
+ {{ showShopPrice ? "元。" : "" }}
+
+
+
+
+ 允许
+
+
+
+ 不允许
+
+
+
-
-
- 服务时长
-
- 分钟
-
+
+
+ 服务时长
+
+ 分钟
+
-
-
+
-
-
- 图文详情
-
- {{ formData.graphic_details?"已设置":"去设置" }}
-
-
-
-
-
- 服务简介
-
- 添加
-
-
- {{item.detailItem}}
-
-
-
-
- {{item.title}}
-
-
-
-
-
-
-
- 服务流程
- 添加
-
-
- 第{{i+1}}步
-
-
-
-
-
+
+
+ 图文详情
+
+ {{
+ formData.graphic_details ? "已设置" : "去设置"
+ }}
+
+
+
-
-
+
+
+ 服务简介
+
+
+
+ 服务功效
+
+
+ {{(detailForm.effect || '').length}}/200
+
+
+
+
+ 适用人群
+
+
+ {{(detailForm.crowd || '').length}}/200
+
+
+
+
+ 产品清单
+
+
+ {{(detailForm.product || '').length}}/200
+
+
+
+
+ 适用范围
+
+
+ {{(detailForm.scope || '').length}}/200
+
+
+
+
+ 温馨提示
+
+
+ {{(detailForm.tips || '').length}}/200
+
+
+
+
+
+ 服务流程
+ 添加
+
+
+ 第{{ i + 1 }}步
+
+
+
+
+
+
+
-
-
-
-
- 上传短视频
- (仅可上传1个视频)
-
-
+
+
+ 上传短视频
+ (仅可上传1个视频)
+
+
-
-
-
+
+
+
-
-
-
- 服务图片
- (仅可上传9个图片)
-
-
+
+
+ 服务图片
+ (仅可上传9个图片)
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
- 美融融plus 对储存空间/照片权限申请说明
- 便于您使用该功能上传您的照片/图片/视频以及用于更换头像、发布商品等场景中读取相册和文件内容。
-
-
- 美融融plus 对相机拍摄权限申请说明
- 便于您使用该功能上传您的照片/图片/视频以及用于更换头像、发布商品等场景中所需内容。
-
-
+
+
+ 美融融plus 对储存空间/照片权限申请说明
+ 便于您使用该功能上传您的照片/图片/视频以及用于更换头像、发布商品等场景中读取相册和文件内容。
+
+
+ 美融融plus 对相机拍摄权限申请说明
+ 便于您使用该功能上传您的照片/图片/视频以及用于更换头像、发布商品等场景中所需内容。
+
+
+
+
+
+
+
+
\ No newline at end of file
+/* #ifdef MP-WEIXIN */
+.form-input {
+ height: 80rpx;
+}
+
+.bottom-buttons {
+ padding-bottom: env(safe-area-inset-bottom);
+}
+
+/* #endif */
+.tip {
+ padding: 20rpx 30rpx;
+ background: #feefec;
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #f31d2f;
+ line-height: 42rpx;
+ text-align: left;
+ font-style: normal;
+
+ text-align: center;
+
+ .tip-icon {
+ width: 34rpx;
+ height: 34rpx;
+ margin-right: 10rpx;
+ transform: translateY(6rpx);
+ }
+}
+
+/* 淡入淡出动画 */
+.fade-enter-active, .fade-leave-active {
+ transition: opacity 0.3s;
+}
+.fade-enter, .fade-leave-to {
+ opacity: 0;
+}
+
+.popup-mask2 {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.5);
+ // z-index: 1000;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.popup-content2 {
+ width: 600rpx;
+ background-color: #ffffff;
+ border-radius: 20rpx;
+ overflow: hidden;
+ padding: 40rpx 30rpx;
+ box-sizing: border-box;
+}
+
+.popup-title {
+ font-size: 36rpx;
+ font-weight: 600;
+ color: #333333;
+ text-align: center;
+ margin-bottom: 20rpx;
+}
+
+.popup-message {
+ font-size: 30rpx;
+ color: #666666;
+ text-align: center;
+ margin-top: 40rpx;
+ margin-bottom: 30rpx;
+ line-height: 1.5;
+}
+
+.popup-buttons {
+ display: flex;
+ flex-flow: row nowrap;
+ justify-content: space-between;
+ padding: 20rpx 0 0 0;
+ gap: 60rpx;
+}
+
+.popup-btn {
+ flex: 1;
+ height: 80rpx;
+ line-height: 80rpx;
+ text-align: center;
+ font-size: 26rpx;
+ border-radius: 40rpx;
+}
+
+.popup-btn-know {
+ background-color: #e8101e;
+ color: #ffffff;
+}
+
+.popup-btn-notshow {
+ background-color: #ffffff;
+ color: #e8101e;
+ border: 1rpx #e8101e solid;
+}
+
diff --git a/unpackage/cache/appleConfig.ini b/unpackage/cache/appleConfig.ini
deleted file mode 100644
index 2b936d2..0000000
--- a/unpackage/cache/appleConfig.ini
+++ /dev/null
@@ -1,17 +0,0 @@
-[appleAppid]
-appleAppid=cn.mrrsj
-
-[iosStyle]
-iosStyle=
-
-[universalLinks]
-universalLinks=https://app.mrrweb.com.cn/
-spaceid=mp-908e3a8e-a3ae-4a70-aaa7-545c9d98f662
-
-[universalLinks_qq]
-universalLinks_qq=
-spaceid_qq=
-
-[universalLinks_weibo]
-universalLinks_weibo=
-spaceid_weibo=
diff --git a/unpackage/cache/certdataios b/unpackage/cache/certdataios
deleted file mode 100644
index f255ef4..0000000
--- a/unpackage/cache/certdataios
+++ /dev/null
@@ -1,3 +0,0 @@
-iosProfile=E:/sjsyrzs/sj/cs/mrrsj.mobileprovision
-ioscertFile=E:/sjsyrzs/sj/cs/cs.p12
-ioscertPassword=ep/Tdjka4Y7WYqDB6/S7dw==
diff --git a/unpackage/debug/.ios.ins b/unpackage/debug/.ios.ins
deleted file mode 100644
index 3b526db..0000000
--- a/unpackage/debug/.ios.ins
+++ /dev/null
@@ -1 +0,0 @@
-forceInstall
\ No newline at end of file
diff --git a/unpackage/debug/.roid.ins b/unpackage/debug/.roid.ins
deleted file mode 100644
index 3b526db..0000000
--- a/unpackage/debug/.roid.ins
+++ /dev/null
@@ -1 +0,0 @@
-forceInstall
\ No newline at end of file
diff --git a/unpackage/debug/android_debug.apk b/unpackage/debug/android_debug.apk
deleted file mode 100644
index ad997ec..0000000
Binary files a/unpackage/debug/android_debug.apk and /dev/null differ
diff --git a/unpackage/debug/iOS_debug.ipa b/unpackage/debug/iOS_debug.ipa
deleted file mode 100644
index 97ff290..0000000
Binary files a/unpackage/debug/iOS_debug.ipa and /dev/null differ
diff --git a/unpackage/dist/build/.automator/app-plus/.automator.json b/unpackage/dist/build/.automator/app-plus/.automator.json
deleted file mode 100644
index e69de29..0000000
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts.ts
deleted file mode 100644
index ebba851..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts.ts
+++ /dev/null
@@ -1,152 +0,0 @@
-import { UTSAndroid } from 'io.dcloud.uts';
-import Context from 'android.content.Context';
-import TIMPushManager from 'com.tencent.qcloud.tim.push.TIMPushManager';
-import TIMPushConfig from 'com.tencent.qcloud.tim.push.config.TIMPushConfig';
-import { PushCallbackOptions } from './push-callback-options.uts';
-import { PushListenerOptions } from './push-listener-options.uts';
-import PushCallback from './push-callback.uts';
-import PushListener from './push-listener.uts';
-
-const context: Context | null = UTSAndroid.getAppContext();
-console.warn('Push | package.name:', context?.getPackageName());
-TIMPushConfig.getInstance().setRunningPlatform(2);
-const Push = TIMPushManager.getInstance();
-
-export class EVENT {
- static MESSAGE_RECEIVED: string = 'message_received'
- static MESSAGE_REVOKED: string = 'message_revoked'
- static NOTIFICATION_CLICKED: string = 'notification_clicked'
-}
-
-let disableNotification = false;
-export function disablePostNotificationInForeground(disable: boolean): void {
- console.log('Push | disablePostNotificationInForeground', disable);
- disableNotification = disable;
- Push.disablePostNotificationInForeground(disableNotification);
-}
-
-export function registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void {
- if (SDKAppID == 0) {
- onError?.(9010001, 'Invalid SDKAppID');
- } else if (appKey == '') {
- onError?.(9010002, 'Invalid appKey');
- }
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'registerPush',
- success: (res?: any) => {
- Push.disablePostNotificationInForeground(disableNotification);
- // 强转下类型,避免类型推断错误
- let token: string = res as string;
- onSuccess(token);
- },
- fail: (errCode: number, errMsg: string) => {
- onError?.(errCode, errMsg);
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.registerPush(context, SDKAppID.toInt(), appKey, new PushCallback(pushCbOptions));
-}
-
-export function setRegistrationID(registrationID: string, onSuccess: () => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'setRegistrationID',
- success: (res?: any) => {
- onSuccess();
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.setRegistrationID(registrationID, new PushCallback(pushCbOptions));
-}
-
-export function getRegistrationID(onSuccess: (registrationID: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'getRegistrationID',
- success: (res?: any) => {
- // 强转下类型,避免类型推断错误
- let registrationID: string = res as string;
- onSuccess(registrationID);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.getRegistrationID(new PushCallback(pushCbOptions));
-}
-
-export function unRegisterPush(onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'unRegisterPush',
- success: (res?: any) => {
- onSuccess();
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.unRegisterPush(new PushCallback(pushCbOptions));
-}
-
-export function createNotificationChannel(options: any, onSuccess: (extInfo: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'createNotificationChannel',
- success: (res?: any) => {
- let ret: string = res as string;
- onSuccess(ret);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- Push.callExperimentalAPI('createNotificationChannel', JSON.stringify(options), new PushCallback(pushCbOptions));
-}
-
-export function getNotificationExtInfo(onSuccess: (extInfo: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'getNotificationExtInfo',
- success: (res?: any) => {
- let ret: string = res as string;
- onSuccess(ret);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- Push.callExperimentalAPI('getNotificationExtInfo', null, new PushCallback(pushCbOptions));
-}
-
-const listenerMap = new Map void>>();
-
-const pushListenerOptions: PushListenerOptions = {
- listener: (eventName: string, data: any) => {
- listenerMap.get(eventName)?.forEach(item => {
- item(data);
- });
- },
-};
-
-const pushListener = new PushListener(pushListenerOptions);
-
-@UTSJS.keepAlive
-export function addPushListener(eventName: string, listener: (res: any) => void): void {
- if(listenerMap.size === 0) {
- Push.addPushListener(pushListener);
- }
- const listeners:Array<(res: any) => void> = [listener];
- listenerMap.get(eventName)?.forEach(item => {
- listeners.push(item);
- })
- listenerMap.set(eventName, listeners);
-}
-
-
-export function removePushListener(eventName: string, listener?: (res: any) => void): void {
- listenerMap.delete(eventName);
- if(listenerMap.size === 0) {
- Push.removePushListener(pushListener);
- }
-}
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts.ts
deleted file mode 100644
index ab6f7bf..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export type PushCallbackOptions = {
- apiName: string
- success: (res?: any) => void
- fail: (errCode: number, errMsg: string) => void
-}
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts.ts
deleted file mode 100644
index 32c9f57..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import TIMPushCallback from 'com.tencent.qcloud.tim.push.TIMPushCallback';
-import { PushCallbackOptions } from './push-callback-options.uts';
-
-const LOG_PREFIX: string = 'Push |';
-export default class PushCallback implements TIMPushCallback {
- private apiName: string;
- private success: (data?: any) => void;
- private fail: (errCode: number, errMsg: string) => void;
-
- constructor(options: PushCallbackOptions) {
- this.apiName = options.apiName;
- this.success = options.success;
- this.fail = options.fail;
- }
-
- override onSuccess(data?: any) {
- console.log(`${LOG_PREFIX} ${this.apiName} ok, data:`, data);
- if (data == null) {
- this.success?.('');
- } else {
- this.success?.(data);
- }
- }
-
- override onError(errCode: Int, errMsg: string, data?: any) {
- this.fail?.(errCode as number, errMsg);
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts.ts
deleted file mode 100644
index a155ba2..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export type PushListenerOptions = {
- listener: (eventType: string, data: any) => void
-}
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts.ts
deleted file mode 100644
index 5c39c24..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import TIMPushListener from 'com.tencent.qcloud.tim.push.TIMPushListener';
-import TIMPushMessage from 'com.tencent.qcloud.tim.push.TIMPushMessage';
-import { PushListenerOptions } from './push-listener-options.uts';
-
-const LOG_PREFIX: string = 'Push | PushListener';
-export default class PushListener implements TIMPushListener {
- private listener: (eventType: string, data: any) => void;
-
- constructor(options: PushListenerOptions) {
- this.listener = options.listener;
- console.log(`${LOG_PREFIX} ok`);
- }
-
- override onRecvPushMessage(message: TIMPushMessage) {
- this.listener('message_received', { data: message });
- }
-
- override onRevokePushMessage(messageID: string) {
- this.listener('message_revoked', { data: messageID });
- }
-
- override onNotificationClicked(ext: string) {
- this.listener('notification_clicked', { data: ext });
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts.ts
deleted file mode 100644
index 0d58ad2..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts.ts
+++ /dev/null
@@ -1,125 +0,0 @@
-import { TIMPushManager } from "TIMPush"
-import { NSObject } from "DCloudUTSFoundation"
-import PushListener from './push-listener.uts'
-import { PushListenerOptions } from './push-listener-options.uts'
-
-const LOG_PREFIX = 'Push |';
-
-export class EVENT {
- static MESSAGE_RECEIVED: string = 'message_received'
- static MESSAGE_REVOKED: string = 'message_revoked'
- static NOTIFICATION_CLICKED: string = 'notification_clicked'
-}
-
-function setRunningPlatform(): void {
- console.log(LOG_PREFIX, 'setRunningPlatform');
- const param = new NSString("{\"runningPlatform\":2}");
- TIMPushManager.callExperimentalAPI('setPushConfig', param = param, succ = (ext?: NSObject): void => {
- let platform: string = ext as string;
- console.log(LOG_PREFIX, 'setRunningPlatform ok. platform:', platform);
- }, fail = (code?: Int32 ,desc?:String): void => {
- console.log(LOG_PREFIX, `setRunningPlatform fail. code: ${code}, desc: ${desc}`);
- }
- );
-}
-
-let disableNotification = false;
-
-export function disablePostNotificationInForeground(_disable: boolean): void {
- console.log(LOG_PREFIX, 'disablePostNotificationInForeground', _disable);
- disableNotification = _disable;
- TIMPushManager.disablePostNotificationInForeground(disable = disableNotification);
-}
-
-export function registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void {
- if (SDKAppID == 0) {
- onError?.(9010001, 'Invalid SDKAppID');
- } else if (appKey == '') {
- onError?.(9010002, 'Invalid appKey');
- }
- setRunningPlatform();
- TIMPushManager.registerPush(SDKAppID.toInt32(), appKey = appKey, succ = (deviceToken?: Data): void => {
- TIMPushManager.disablePostNotificationInForeground(disable = disableNotification);
- console.log('devicetoken ->', deviceToken, deviceToken?.count);
- onSuccess('');
- }, fail = (code?: Int32 ,desc?:String): void => {
- onError?.(code as number, desc as string);
- }
- );
-}
-
-export function unRegisterPush(onSuccess: () => void, onError: (errCode: number, errMsg: string) => void): void {
- TIMPushManager.unRegisterPush((): void => {
- onSuccess();
- }, fail = (code?: Int32 ,desc?:String): void => {
- onError(code as number, desc as string);
- }
- );
-}
-
-export function setRegistrationID(registrationID: string, onSuccess: () => void): void {
- console.log(LOG_PREFIX, 'setRegistrationID', `registrationID:${registrationID}`);
- TIMPushManager.setRegistrationID(registrationID, callback = (): void => {
- console.log(LOG_PREFIX, 'setRegistrationID ok');
- onSuccess();
- });
-}
-
-export function getRegistrationID(onSuccess: (registrationID: string) => void): void {
- TIMPushManager.getRegistrationID((value ?: string): void => {
- // 这里需要转一下,否则会有问题
- let ret: string = value as string;
- onSuccess(ret);
- });
-}
-
-export function createNotificationChannel(options: any, onSuccess: (data: string) => void): void {
- // 空实现
-}
-
-// 注意!!!这里的 extInfo 不能写成 ext,否则会跟内部的 ext?:NSObject 有冲突;也不能写成 extension,否则会导致编译错误
-export function getNotificationExtInfo(onSuccess: (extInfo: string) => void): void {
- console.log(LOG_PREFIX, 'getNotificationExtInfo');
- TIMPushManager.callExperimentalAPI('getNotificationExtInfo', param = {}, succ = (ext?: NSObject): void => {
- let str: string = ext as string;
- console.log(LOG_PREFIX, 'getNotificationExtInfo ok. ext:', str);
- onSuccess(str);
- }, fail = (code?: Int32 ,desc?:String): void => {
- // 空实现
- }
- );
-}
-
-
-const listenerMap = new Map void>>();
-
-const pushListenerOptions: PushListenerOptions = {
- listener: (eventName: string, data: any) => {
- listenerMap.get(eventName)?.forEach(item => {
- item(data);
- });
- },
-};
-
-const pushListener = new PushListener(pushListenerOptions);
-
-@UTSJS.keepAlive
-export function addPushListener(eventName: string, _listener: (res: any) => void): void {
- console.log(LOG_PREFIX, 'addPushListener', eventName);
- if(listenerMap.size === 0) {
- TIMPushManager.addPushListener(listener = pushListener);
- }
- const listeners:Array<(res: any) => void> = [_listener];
- listenerMap.get(eventName)?.forEach(item => {
- listeners.push(item);
- })
- listenerMap.set(eventName, listeners);
-}
-
-export function removePushListener(eventName: string, _listener?: (res: any) => void): void {
- console.log(LOG_PREFIX, 'removePushListener', eventName);
- listenerMap.delete(eventName);
- if(listenerMap.size === 0) {
- TIMPushManager.removePushListener(listener = pushListener);
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts.ts
deleted file mode 100644
index db8c8ff..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export type PushListenerOptions = {
- listener: (eventType: string, data: any) => void
-}
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts.ts
deleted file mode 100644
index 5e87c34..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { TIMPushListener, TIMPushMessage} from "TIMPush"
-import { PushListenerOptions } from './push-listener-options.uts';
-
-const LOG_PREFIX: string = 'Push | PushListener';
-export default class PushListener implements TIMPushListener {
- private listener: (eventType: string, data: any) => void;
-
- constructor(options: PushListenerOptions) {
- this.listener = options.listener;
- console.log(`${LOG_PREFIX} ok`);
- }
-
- onRecvPushMessage(message: TIMPushMessage) {
- this.listener('message_received', { data: message });
- }
-
- onRevokePushMessage(messageID: string) {
- this.listener('message_revoked', { data: messageID });
- }
-
- onNotificationClicked(ext: string) {
- this.listener('notification_clicked', { data: ext });
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/interface.uts.ts b/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/interface.uts.ts
deleted file mode 100644
index a4f9c94..0000000
--- a/unpackage/dist/build/.tsc/app-android/uni_modules/TencentCloud-Push/utssdk/interface.uts.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-export interface Push {
- setRegistrationID(registrationID: string, onSuccess: () => void): void,
- registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void,
- getRegistrationID(onSuccess: (registrationID: string) => void): void,
- unRegisterPush(onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void): void,
- getNotificationExtInfo(onSuccess: (extInfo: string) => void): void
- addPushListener(eventName: string, listener: (res: any) => void): void
- removePushListener(eventName: string, listener?: (res: any) => void): void
- disablePostNotificationInForeground(disable: boolean): void
- createNotificationChannel(options: any, onSuccess: (data: string) => void): void
-}
-
-export type SetRegistrationID = (registrationID: string, onSuccess: () => void) => void;
-export type RegisterPush = (SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void) => void;
-export type GetRegistrationID = (onSuccess: (registrationID: string) => void) => void;
-export type UnRegisterPush = (onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void) => void;
-export type GetNotificationExtInfo = (onSuccess: (extInfo: string) => void) => void;
-export type AddPushListener = (eventName: string, listener: (res: any) => void) => void;
-export type RemovePushListener = (eventName: string, listener?: (res: any) => void) => void;
-export type DisablePostNotificationInForeground = (disable: boolean) => void;
-export type CreateNotificationChannel = (options: any, onSuccess: (data: string) => void) => void;
-export enum EVENT {
- MESSAGE_RECEIVED = 'message_received',
- MESSAGE_REVOKED = 'message_revoked',
- NOTIFICATION_CLICKED = 'notification_clicked'
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts.ts
deleted file mode 100644
index ebba851..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts.ts
+++ /dev/null
@@ -1,152 +0,0 @@
-import { UTSAndroid } from 'io.dcloud.uts';
-import Context from 'android.content.Context';
-import TIMPushManager from 'com.tencent.qcloud.tim.push.TIMPushManager';
-import TIMPushConfig from 'com.tencent.qcloud.tim.push.config.TIMPushConfig';
-import { PushCallbackOptions } from './push-callback-options.uts';
-import { PushListenerOptions } from './push-listener-options.uts';
-import PushCallback from './push-callback.uts';
-import PushListener from './push-listener.uts';
-
-const context: Context | null = UTSAndroid.getAppContext();
-console.warn('Push | package.name:', context?.getPackageName());
-TIMPushConfig.getInstance().setRunningPlatform(2);
-const Push = TIMPushManager.getInstance();
-
-export class EVENT {
- static MESSAGE_RECEIVED: string = 'message_received'
- static MESSAGE_REVOKED: string = 'message_revoked'
- static NOTIFICATION_CLICKED: string = 'notification_clicked'
-}
-
-let disableNotification = false;
-export function disablePostNotificationInForeground(disable: boolean): void {
- console.log('Push | disablePostNotificationInForeground', disable);
- disableNotification = disable;
- Push.disablePostNotificationInForeground(disableNotification);
-}
-
-export function registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void {
- if (SDKAppID == 0) {
- onError?.(9010001, 'Invalid SDKAppID');
- } else if (appKey == '') {
- onError?.(9010002, 'Invalid appKey');
- }
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'registerPush',
- success: (res?: any) => {
- Push.disablePostNotificationInForeground(disableNotification);
- // 强转下类型,避免类型推断错误
- let token: string = res as string;
- onSuccess(token);
- },
- fail: (errCode: number, errMsg: string) => {
- onError?.(errCode, errMsg);
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.registerPush(context, SDKAppID.toInt(), appKey, new PushCallback(pushCbOptions));
-}
-
-export function setRegistrationID(registrationID: string, onSuccess: () => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'setRegistrationID',
- success: (res?: any) => {
- onSuccess();
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.setRegistrationID(registrationID, new PushCallback(pushCbOptions));
-}
-
-export function getRegistrationID(onSuccess: (registrationID: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'getRegistrationID',
- success: (res?: any) => {
- // 强转下类型,避免类型推断错误
- let registrationID: string = res as string;
- onSuccess(registrationID);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.getRegistrationID(new PushCallback(pushCbOptions));
-}
-
-export function unRegisterPush(onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'unRegisterPush',
- success: (res?: any) => {
- onSuccess();
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.unRegisterPush(new PushCallback(pushCbOptions));
-}
-
-export function createNotificationChannel(options: any, onSuccess: (extInfo: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'createNotificationChannel',
- success: (res?: any) => {
- let ret: string = res as string;
- onSuccess(ret);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- Push.callExperimentalAPI('createNotificationChannel', JSON.stringify(options), new PushCallback(pushCbOptions));
-}
-
-export function getNotificationExtInfo(onSuccess: (extInfo: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'getNotificationExtInfo',
- success: (res?: any) => {
- let ret: string = res as string;
- onSuccess(ret);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- Push.callExperimentalAPI('getNotificationExtInfo', null, new PushCallback(pushCbOptions));
-}
-
-const listenerMap = new Map void>>();
-
-const pushListenerOptions: PushListenerOptions = {
- listener: (eventName: string, data: any) => {
- listenerMap.get(eventName)?.forEach(item => {
- item(data);
- });
- },
-};
-
-const pushListener = new PushListener(pushListenerOptions);
-
-@UTSJS.keepAlive
-export function addPushListener(eventName: string, listener: (res: any) => void): void {
- if(listenerMap.size === 0) {
- Push.addPushListener(pushListener);
- }
- const listeners:Array<(res: any) => void> = [listener];
- listenerMap.get(eventName)?.forEach(item => {
- listeners.push(item);
- })
- listenerMap.set(eventName, listeners);
-}
-
-
-export function removePushListener(eventName: string, listener?: (res: any) => void): void {
- listenerMap.delete(eventName);
- if(listenerMap.size === 0) {
- Push.removePushListener(pushListener);
- }
-}
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts.ts
deleted file mode 100644
index ab6f7bf..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export type PushCallbackOptions = {
- apiName: string
- success: (res?: any) => void
- fail: (errCode: number, errMsg: string) => void
-}
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts.ts
deleted file mode 100644
index 32c9f57..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import TIMPushCallback from 'com.tencent.qcloud.tim.push.TIMPushCallback';
-import { PushCallbackOptions } from './push-callback-options.uts';
-
-const LOG_PREFIX: string = 'Push |';
-export default class PushCallback implements TIMPushCallback {
- private apiName: string;
- private success: (data?: any) => void;
- private fail: (errCode: number, errMsg: string) => void;
-
- constructor(options: PushCallbackOptions) {
- this.apiName = options.apiName;
- this.success = options.success;
- this.fail = options.fail;
- }
-
- override onSuccess(data?: any) {
- console.log(`${LOG_PREFIX} ${this.apiName} ok, data:`, data);
- if (data == null) {
- this.success?.('');
- } else {
- this.success?.(data);
- }
- }
-
- override onError(errCode: Int, errMsg: string, data?: any) {
- this.fail?.(errCode as number, errMsg);
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts.ts
deleted file mode 100644
index a155ba2..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export type PushListenerOptions = {
- listener: (eventType: string, data: any) => void
-}
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts.ts
deleted file mode 100644
index 5c39c24..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import TIMPushListener from 'com.tencent.qcloud.tim.push.TIMPushListener';
-import TIMPushMessage from 'com.tencent.qcloud.tim.push.TIMPushMessage';
-import { PushListenerOptions } from './push-listener-options.uts';
-
-const LOG_PREFIX: string = 'Push | PushListener';
-export default class PushListener implements TIMPushListener {
- private listener: (eventType: string, data: any) => void;
-
- constructor(options: PushListenerOptions) {
- this.listener = options.listener;
- console.log(`${LOG_PREFIX} ok`);
- }
-
- override onRecvPushMessage(message: TIMPushMessage) {
- this.listener('message_received', { data: message });
- }
-
- override onRevokePushMessage(messageID: string) {
- this.listener('message_revoked', { data: messageID });
- }
-
- override onNotificationClicked(ext: string) {
- this.listener('notification_clicked', { data: ext });
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts.ts
deleted file mode 100644
index 0d58ad2..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts.ts
+++ /dev/null
@@ -1,125 +0,0 @@
-import { TIMPushManager } from "TIMPush"
-import { NSObject } from "DCloudUTSFoundation"
-import PushListener from './push-listener.uts'
-import { PushListenerOptions } from './push-listener-options.uts'
-
-const LOG_PREFIX = 'Push |';
-
-export class EVENT {
- static MESSAGE_RECEIVED: string = 'message_received'
- static MESSAGE_REVOKED: string = 'message_revoked'
- static NOTIFICATION_CLICKED: string = 'notification_clicked'
-}
-
-function setRunningPlatform(): void {
- console.log(LOG_PREFIX, 'setRunningPlatform');
- const param = new NSString("{\"runningPlatform\":2}");
- TIMPushManager.callExperimentalAPI('setPushConfig', param = param, succ = (ext?: NSObject): void => {
- let platform: string = ext as string;
- console.log(LOG_PREFIX, 'setRunningPlatform ok. platform:', platform);
- }, fail = (code?: Int32 ,desc?:String): void => {
- console.log(LOG_PREFIX, `setRunningPlatform fail. code: ${code}, desc: ${desc}`);
- }
- );
-}
-
-let disableNotification = false;
-
-export function disablePostNotificationInForeground(_disable: boolean): void {
- console.log(LOG_PREFIX, 'disablePostNotificationInForeground', _disable);
- disableNotification = _disable;
- TIMPushManager.disablePostNotificationInForeground(disable = disableNotification);
-}
-
-export function registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void {
- if (SDKAppID == 0) {
- onError?.(9010001, 'Invalid SDKAppID');
- } else if (appKey == '') {
- onError?.(9010002, 'Invalid appKey');
- }
- setRunningPlatform();
- TIMPushManager.registerPush(SDKAppID.toInt32(), appKey = appKey, succ = (deviceToken?: Data): void => {
- TIMPushManager.disablePostNotificationInForeground(disable = disableNotification);
- console.log('devicetoken ->', deviceToken, deviceToken?.count);
- onSuccess('');
- }, fail = (code?: Int32 ,desc?:String): void => {
- onError?.(code as number, desc as string);
- }
- );
-}
-
-export function unRegisterPush(onSuccess: () => void, onError: (errCode: number, errMsg: string) => void): void {
- TIMPushManager.unRegisterPush((): void => {
- onSuccess();
- }, fail = (code?: Int32 ,desc?:String): void => {
- onError(code as number, desc as string);
- }
- );
-}
-
-export function setRegistrationID(registrationID: string, onSuccess: () => void): void {
- console.log(LOG_PREFIX, 'setRegistrationID', `registrationID:${registrationID}`);
- TIMPushManager.setRegistrationID(registrationID, callback = (): void => {
- console.log(LOG_PREFIX, 'setRegistrationID ok');
- onSuccess();
- });
-}
-
-export function getRegistrationID(onSuccess: (registrationID: string) => void): void {
- TIMPushManager.getRegistrationID((value ?: string): void => {
- // 这里需要转一下,否则会有问题
- let ret: string = value as string;
- onSuccess(ret);
- });
-}
-
-export function createNotificationChannel(options: any, onSuccess: (data: string) => void): void {
- // 空实现
-}
-
-// 注意!!!这里的 extInfo 不能写成 ext,否则会跟内部的 ext?:NSObject 有冲突;也不能写成 extension,否则会导致编译错误
-export function getNotificationExtInfo(onSuccess: (extInfo: string) => void): void {
- console.log(LOG_PREFIX, 'getNotificationExtInfo');
- TIMPushManager.callExperimentalAPI('getNotificationExtInfo', param = {}, succ = (ext?: NSObject): void => {
- let str: string = ext as string;
- console.log(LOG_PREFIX, 'getNotificationExtInfo ok. ext:', str);
- onSuccess(str);
- }, fail = (code?: Int32 ,desc?:String): void => {
- // 空实现
- }
- );
-}
-
-
-const listenerMap = new Map void>>();
-
-const pushListenerOptions: PushListenerOptions = {
- listener: (eventName: string, data: any) => {
- listenerMap.get(eventName)?.forEach(item => {
- item(data);
- });
- },
-};
-
-const pushListener = new PushListener(pushListenerOptions);
-
-@UTSJS.keepAlive
-export function addPushListener(eventName: string, _listener: (res: any) => void): void {
- console.log(LOG_PREFIX, 'addPushListener', eventName);
- if(listenerMap.size === 0) {
- TIMPushManager.addPushListener(listener = pushListener);
- }
- const listeners:Array<(res: any) => void> = [_listener];
- listenerMap.get(eventName)?.forEach(item => {
- listeners.push(item);
- })
- listenerMap.set(eventName, listeners);
-}
-
-export function removePushListener(eventName: string, _listener?: (res: any) => void): void {
- console.log(LOG_PREFIX, 'removePushListener', eventName);
- listenerMap.delete(eventName);
- if(listenerMap.size === 0) {
- TIMPushManager.removePushListener(listener = pushListener);
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts.ts
deleted file mode 100644
index db8c8ff..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export type PushListenerOptions = {
- listener: (eventType: string, data: any) => void
-}
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts.ts
deleted file mode 100644
index 5e87c34..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { TIMPushListener, TIMPushMessage} from "TIMPush"
-import { PushListenerOptions } from './push-listener-options.uts';
-
-const LOG_PREFIX: string = 'Push | PushListener';
-export default class PushListener implements TIMPushListener {
- private listener: (eventType: string, data: any) => void;
-
- constructor(options: PushListenerOptions) {
- this.listener = options.listener;
- console.log(`${LOG_PREFIX} ok`);
- }
-
- onRecvPushMessage(message: TIMPushMessage) {
- this.listener('message_received', { data: message });
- }
-
- onRevokePushMessage(messageID: string) {
- this.listener('message_revoked', { data: messageID });
- }
-
- onNotificationClicked(ext: string) {
- this.listener('notification_clicked', { data: ext });
- }
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/interface.uts.ts b/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/interface.uts.ts
deleted file mode 100644
index a4f9c94..0000000
--- a/unpackage/dist/build/.tsc/app-ios/uni_modules/TencentCloud-Push/utssdk/interface.uts.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-export interface Push {
- setRegistrationID(registrationID: string, onSuccess: () => void): void,
- registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void,
- getRegistrationID(onSuccess: (registrationID: string) => void): void,
- unRegisterPush(onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void): void,
- getNotificationExtInfo(onSuccess: (extInfo: string) => void): void
- addPushListener(eventName: string, listener: (res: any) => void): void
- removePushListener(eventName: string, listener?: (res: any) => void): void
- disablePostNotificationInForeground(disable: boolean): void
- createNotificationChannel(options: any, onSuccess: (data: string) => void): void
-}
-
-export type SetRegistrationID = (registrationID: string, onSuccess: () => void) => void;
-export type RegisterPush = (SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void) => void;
-export type GetRegistrationID = (onSuccess: (registrationID: string) => void) => void;
-export type UnRegisterPush = (onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void) => void;
-export type GetNotificationExtInfo = (onSuccess: (extInfo: string) => void) => void;
-export type AddPushListener = (eventName: string, listener: (res: any) => void) => void;
-export type RemovePushListener = (eventName: string, listener?: (res: any) => void) => void;
-export type DisablePostNotificationInForeground = (disable: boolean) => void;
-export type CreateNotificationChannel = (options: any, onSuccess: (data: string) => void) => void;
-export enum EVENT {
- MESSAGE_RECEIVED = 'message_received',
- MESSAGE_REVOKED = 'message_revoked',
- NOTIFICATION_CLICKED = 'notification_clicked'
-}
\ No newline at end of file
diff --git a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts b/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts
deleted file mode 100644
index 5e4c94a..0000000
--- a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/index.uts
+++ /dev/null
@@ -1,138 +0,0 @@
-import { UTSAndroid } from 'io.dcloud.uts';
-import Context from 'android.content.Context';
-import TIMPushManager from 'com.tencent.qcloud.tim.push.TIMPushManager';
-import TIMPushConfig from 'com.tencent.qcloud.tim.push.config.TIMPushConfig';
-import { PushCallbackOptions } from './push-callback-options.uts';
-import { PushListenerOptions } from './push-listener-options.uts';
-import PushCallback from './push-callback.uts';
-import PushListener from './push-listener.uts';
-const context: Context | null = UTSAndroid.getAppContext();
-console.warn('Push | package.name:', context?.getPackageName());
-TIMPushConfig.getInstance().setRunningPlatform(2);
-const Push = TIMPushManager.getInstance();
-export class EVENT {
- static MESSAGE_RECEIVED: string = 'message_received';
- static MESSAGE_REVOKED: string = 'message_revoked';
- static NOTIFICATION_CLICKED: string = 'notification_clicked';
-}
-let disableNotification = false;
-export function disablePostNotificationInForeground(disable: boolean): void {
- console.log('Push | disablePostNotificationInForeground', disable);
- disableNotification = disable;
- Push.disablePostNotificationInForeground(disableNotification);
-}
-export function registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void {
- if (SDKAppID == 0) {
- onError?.(9010001, 'Invalid SDKAppID');
- }
- else if (appKey == '') {
- onError?.(9010002, 'Invalid appKey');
- }
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'registerPush',
- success: (res?: any) => {
- Push.disablePostNotificationInForeground(disableNotification);
- // 强转下类型,避免类型推断错误
- let token: string = res as string;
- onSuccess(token);
- },
- fail: (errCode: number, errMsg: string) => {
- onError?.(errCode, errMsg);
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.registerPush(context, SDKAppID.toInt(), appKey, new PushCallback(pushCbOptions));
-}
-export function setRegistrationID(registrationID: string, onSuccess: () => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'setRegistrationID',
- success: (res?: any) => {
- onSuccess();
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.setRegistrationID(registrationID, new PushCallback(pushCbOptions));
-}
-export function getRegistrationID(onSuccess: (registrationID: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'getRegistrationID',
- success: (res?: any) => {
- // 强转下类型,避免类型推断错误
- let registrationID: string = res as string;
- onSuccess(registrationID);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- }
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.getRegistrationID(new PushCallback(pushCbOptions));
-}
-export function unRegisterPush(onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'unRegisterPush',
- success: (res?: any) => {
- onSuccess();
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- // 注意!!! 这里不要写成 new PushCallback({ api, success, fail }),否则会因类型推断不一致导致编译错误
- Push.unRegisterPush(new PushCallback(pushCbOptions));
-}
-export function createNotificationChannel(options: any, onSuccess: (extInfo: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'createNotificationChannel',
- success: (res?: any) => {
- let ret: string = res as string;
- onSuccess(ret);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- Push.callExperimentalAPI('createNotificationChannel', JSON.stringify(options), new PushCallback(pushCbOptions));
-}
-export function getNotificationExtInfo(onSuccess: (extInfo: string) => void): void {
- const pushCbOptions: PushCallbackOptions = {
- apiName: 'getNotificationExtInfo',
- success: (res?: any) => {
- let ret: string = res as string;
- onSuccess(ret);
- },
- fail: (errCode: number, errMsg: string) => {
- // 空实现
- },
- };
- Push.callExperimentalAPI('getNotificationExtInfo', null, new PushCallback(pushCbOptions));
-}
-const listenerMap = new Map void>>();
-const pushListenerOptions: PushListenerOptions = {
- listener: (eventName: string, data: any) => {
- listenerMap.get(eventName)?.forEach(item => {
- item(data);
- });
- },
-};
-const pushListener = new PushListener(pushListenerOptions);
-@UTSJS.keepAlive
-export function addPushListener(eventName: string, listener: (res: any) => void): void {
- if (listenerMap.size === 0) {
- Push.addPushListener(pushListener);
- }
- const listeners: Array<(res: any) => void> = [listener];
- listenerMap.get(eventName)?.forEach(item => {
- listeners.push(item);
- });
- listenerMap.set(eventName, listeners);
-}
-export function removePushListener(eventName: string, listener?: (res: any) => void): void {
- listenerMap.delete(eventName);
- if (listenerMap.size === 0) {
- Push.removePushListener(pushListener);
- }
-}
diff --git a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts b/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts
deleted file mode 100644
index 771df06..0000000
--- a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback-options.uts
+++ /dev/null
@@ -1,5 +0,0 @@
-export type PushCallbackOptions = {
- apiName: string;
- success: (res?: any) => void;
- fail: (errCode: number, errMsg: string) => void;
-};
diff --git a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts b/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts
deleted file mode 100644
index 4b79987..0000000
--- a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-callback.uts
+++ /dev/null
@@ -1,25 +0,0 @@
-import TIMPushCallback from 'com.tencent.qcloud.tim.push.TIMPushCallback';
-import { PushCallbackOptions } from './push-callback-options.uts';
-const LOG_PREFIX: string = 'Push |';
-export default class PushCallback implements TIMPushCallback {
- private apiName: string;
- private success: (data?: any) => void;
- private fail: (errCode: number, errMsg: string) => void;
- constructor(options: PushCallbackOptions) {
- this.apiName = options.apiName;
- this.success = options.success;
- this.fail = options.fail;
- }
- override onSuccess(data?: any) {
- console.log(`${LOG_PREFIX} ${this.apiName} ok, data:`, data);
- if (data == null) {
- this.success?.('');
- }
- else {
- this.success?.(data);
- }
- }
- override onError(errCode: Int, errMsg: string, data?: any) {
- this.fail?.(errCode as number, errMsg);
- }
-}
diff --git a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts b/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts
deleted file mode 100644
index 1939b1a..0000000
--- a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener-options.uts
+++ /dev/null
@@ -1,3 +0,0 @@
-export type PushListenerOptions = {
- listener: (eventType: string, data: any) => void;
-};
diff --git a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts b/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts
deleted file mode 100644
index 2d6d1a5..0000000
--- a/unpackage/dist/build/.uvue/app-android/uni_modules/TencentCloud-Push/utssdk/app-android/push-listener.uts
+++ /dev/null
@@ -1,20 +0,0 @@
-import TIMPushListener from 'com.tencent.qcloud.tim.push.TIMPushListener';
-import TIMPushMessage from 'com.tencent.qcloud.tim.push.TIMPushMessage';
-import { PushListenerOptions } from './push-listener-options.uts';
-const LOG_PREFIX: string = 'Push | PushListener';
-export default class PushListener implements TIMPushListener {
- private listener: (eventType: string, data: any) => void;
- constructor(options: PushListenerOptions) {
- this.listener = options.listener;
- console.log(`${LOG_PREFIX} ok`);
- }
- override onRecvPushMessage(message: TIMPushMessage) {
- this.listener('message_received', { data: message });
- }
- override onRevokePushMessage(messageID: string) {
- this.listener('message_revoked', { data: messageID });
- }
- override onNotificationClicked(ext: string) {
- this.listener('notification_clicked', { data: ext });
- }
-}
diff --git a/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts b/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts
deleted file mode 100644
index 16a5543..0000000
--- a/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/index.uts
+++ /dev/null
@@ -1,105 +0,0 @@
-import { TIMPushManager } from "TIMPush";
-import { NSObject } from "DCloudUTSFoundation";
-import PushListener from './push-listener.uts';
-import { PushListenerOptions } from './push-listener-options.uts';
-const LOG_PREFIX = 'Push |';
-export class EVENT {
- static MESSAGE_RECEIVED: string = 'message_received';
- static MESSAGE_REVOKED: string = 'message_revoked';
- static NOTIFICATION_CLICKED: string = 'notification_clicked';
-}
-function setRunningPlatform(): void {
- console.log(LOG_PREFIX, 'setRunningPlatform');
- const param = new NSString("{\"runningPlatform\":2}");
- TIMPushManager.callExperimentalAPI('setPushConfig', param = param, succ = (ext?: NSObject): void => {
- let platform: string = ext as string;
- console.log(LOG_PREFIX, 'setRunningPlatform ok. platform:', platform);
- }, fail = (code?: Int32, desc?: String): void => {
- console.log(LOG_PREFIX, `setRunningPlatform fail. code: ${code}, desc: ${desc}`);
- });
-}
-let disableNotification = false;
-export function disablePostNotificationInForeground(_disable: boolean): void {
- console.log(LOG_PREFIX, 'disablePostNotificationInForeground', _disable);
- disableNotification = _disable;
- TIMPushManager.disablePostNotificationInForeground(disable = disableNotification);
-}
-export function registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void {
- if (SDKAppID == 0) {
- onError?.(9010001, 'Invalid SDKAppID');
- }
- else if (appKey == '') {
- onError?.(9010002, 'Invalid appKey');
- }
- setRunningPlatform();
- TIMPushManager.registerPush(SDKAppID.toInt32(), appKey = appKey, succ = (deviceToken?: Data): void => {
- TIMPushManager.disablePostNotificationInForeground(disable = disableNotification);
- console.log('devicetoken ->', deviceToken, deviceToken?.count);
- onSuccess('');
- }, fail = (code?: Int32, desc?: String): void => {
- onError?.(code as number, desc as string);
- });
-}
-export function unRegisterPush(onSuccess: () => void, onError: (errCode: number, errMsg: string) => void): void {
- TIMPushManager.unRegisterPush((): void => {
- onSuccess();
- }, fail = (code?: Int32, desc?: String): void => {
- onError(code as number, desc as string);
- });
-}
-export function setRegistrationID(registrationID: string, onSuccess: () => void): void {
- console.log(LOG_PREFIX, 'setRegistrationID', `registrationID:${registrationID}`);
- TIMPushManager.setRegistrationID(registrationID, callback = (): void => {
- console.log(LOG_PREFIX, 'setRegistrationID ok');
- onSuccess();
- });
-}
-export function getRegistrationID(onSuccess: (registrationID: string) => void): void {
- TIMPushManager.getRegistrationID((value?: string): void => {
- // 这里需要转一下,否则会有问题
- let ret: string = value as string;
- onSuccess(ret);
- });
-}
-export function createNotificationChannel(options: any, onSuccess: (data: string) => void): void {
- // 空实现
-}
-// 注意!!!这里的 extInfo 不能写成 ext,否则会跟内部的 ext?:NSObject 有冲突;也不能写成 extension,否则会导致编译错误
-export function getNotificationExtInfo(onSuccess: (extInfo: string) => void): void {
- console.log(LOG_PREFIX, 'getNotificationExtInfo');
- TIMPushManager.callExperimentalAPI('getNotificationExtInfo', param = {}, succ = (ext?: NSObject): void => {
- let str: string = ext as string;
- console.log(LOG_PREFIX, 'getNotificationExtInfo ok. ext:', str);
- onSuccess(str);
- }, fail = (code?: Int32, desc?: String): void => {
- // 空实现
- });
-}
-const listenerMap = new Map void>>();
-const pushListenerOptions: PushListenerOptions = {
- listener: (eventName: string, data: any) => {
- listenerMap.get(eventName)?.forEach(item => {
- item(data);
- });
- },
-};
-const pushListener = new PushListener(pushListenerOptions);
-@UTSJS.keepAlive
-export function addPushListener(eventName: string, _listener: (res: any) => void): void {
- console.log(LOG_PREFIX, 'addPushListener', eventName);
- if (listenerMap.size === 0) {
- TIMPushManager.addPushListener(listener = pushListener);
- }
- const listeners: Array<(res: any) => void> = [_listener];
- listenerMap.get(eventName)?.forEach(item => {
- listeners.push(item);
- });
- listenerMap.set(eventName, listeners);
-}
-export function removePushListener(eventName: string, _listener?: (res: any) => void): void {
- console.log(LOG_PREFIX, 'removePushListener', eventName);
- listenerMap.delete(eventName);
- if (listenerMap.size === 0) {
- TIMPushManager.removePushListener(listener = pushListener);
- }
-}
diff --git a/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts b/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts
deleted file mode 100644
index 1939b1a..0000000
--- a/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener-options.uts
+++ /dev/null
@@ -1,3 +0,0 @@
-export type PushListenerOptions = {
- listener: (eventType: string, data: any) => void;
-};
diff --git a/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts b/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts
deleted file mode 100644
index c6ae65f..0000000
--- a/unpackage/dist/build/.uvue/app-ios/uni_modules/TencentCloud-Push/utssdk/app-ios/push-listener.uts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { TIMPushListener, TIMPushMessage } from "TIMPush";
-import { PushListenerOptions } from './push-listener-options.uts';
-const LOG_PREFIX: string = 'Push | PushListener';
-export default class PushListener implements TIMPushListener {
- private listener: (eventType: string, data: any) => void;
- constructor(options: PushListenerOptions) {
- this.listener = options.listener;
- console.log(`${LOG_PREFIX} ok`);
- }
- onRecvPushMessage(message: TIMPushMessage) {
- this.listener('message_received', { data: message });
- }
- onRevokePushMessage(messageID: string) {
- this.listener('message_revoked', { data: messageID });
- }
- onNotificationClicked(ext: string) {
- this.listener('notification_clicked', { data: ext });
- }
-}
diff --git a/unpackage/dist/build/app-plus/__uniappchooselocation.js b/unpackage/dist/build/app-plus/__uniappchooselocation.js
deleted file mode 100644
index 3ed09dd..0000000
--- a/unpackage/dist/build/app-plus/__uniappchooselocation.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(e){var t={};function A(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}A.m=e,A.c=t,A.d=function(e,t,a){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(A.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)A.d(a,i,function(t){return e[t]}.bind(null,i));return a},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s=41)}([function(e,t){e.exports={}},function(e,t,A){"use strict";function a(e,t,A,a,i,n,o,s,r,c){var l,u="function"==typeof e?e.options:e;if(r){u.components||(u.components={});var d=Object.prototype.hasOwnProperty;for(var h in r)d.call(r,h)&&!d.call(u.components,h)&&(u.components[h]=r[h])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(u.mixins||(u.mixins=[])).push(c)),t&&(u.render=t,u.staticRenderFns=A,u._compiled=!0),a&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(e,t){return l.call(t),f(e,t)}}else{var g=u.beforeCreate;u.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:u}}A.d(t,"a",(function(){return a}))},function(e,t,A){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,a="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))},A=/^\$|^on|^create|Sync$|Manager$|^pause/,a=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],n=function(e){return(!A.test(e)||"createBLEConnection"===e)&&!~a.indexOf(e)},o=function(A){return function(){for(var a=arguments.length,i=Array(a>1?a-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return e(o.success)||e(o.fail)||e(o.complete)?A.apply(void 0,[o].concat(i)):t(new Promise((function(e,t){A.apply(void 0,[Object.assign({},o,{success:e,fail:t})].concat(i)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(A){return t.resolve(e()).then((function(){return A}))}),(function(A){return t.resolve(e()).then((function(){throw A}))}))}})))}},s=[],r=void 0;function c(e){s.forEach((function(t){return t({origin:r,data:e})}))}var l=i.webview.currentWebview().id,u=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){var t=i.webview.getWebviewById(e);return t&&!t.$processed&&function(e){e.$processed=!0;var t=i.webview.currentWebview().id===e.id,A="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,a=e.id;if(e.postMessage=function(e){A?u.postMessage({data:e,to:t?A:a}):w({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){s.push(e)},e.__uniapp_mask_id){r=e.__uniapp_host;var n=e.__uniapp_mask,o=i.webview.getWebviewById(e.__uniapp_mask_id);o=o.parent()||o;var c=e.show,l=e.hide,d=e.close,h=function(){o.setStyle({mask:n})},f=function(){o.setStyle({mask:"none"})};e.show=function(){h();for(var t=arguments.length,A=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:"GET",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":j(e))?"POST"===t.toUpperCase()&&"application/json"===A.toLowerCase()?JSON.stringify(e):Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"):e},G=weex.requireModule("plusstorage"),T=weex.requireModule("clipboard"),Q=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function U(e,t,A){return e[t].apply(e,A)}var F=Object.freeze({loadFontFace:function(t){var A=t.family,a=t.source,i=(t.desc,t.success),n=(t.fail,t.complete);E.addRule("fontFace",{fontFamily:A,src:a.replace(/"/g,"'")});var o={errMsg:"loadFontFace:ok",status:"loaded"};e(i)&&i(o),e(n)&&n(o)},ready:N,request:function(t){var A=t.url,a=t.data,i=t.header,n=t.method,o=void 0===n?"GET":n,s=t.dataType,r=void 0===s?"json":s,c=(t.responseType,t.success),l=t.fail,u=t.complete,d=!1,h=!1,f={};if(i)for(var g in i)h||"content-type"!==g.toLowerCase()?f[g]=i[g]:(h=!0,f["Content-Type"]=i[g]);return"GET"===o&&a&&(A=A+(~A.indexOf("?")?"&"===A.substr(-1)||"?"===A.substr(-1)?"":"&":"?")+P(a)),O.fetch({url:A,method:o,headers:f,type:"json"===r?"json":"text",body:"GET"!==o?P(a,o,f["Content-Type"]):""},(function(t){var A=t.status,a=(t.ok,t.statusText,t.data),i=t.headers,n={};!A||-1===A||d?(n.errMsg="request:fail",e(l)&&l(n)):(n.data=a,n.statusCode=A,n.header=i,e(c)&&c(n)),e(u)&&u(n)})),{abort:function(){d=!0}}},getStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.getItem(A+"__TYPE",(function(t){if("success"===t.result){var o=t.data;G.getItem(A,(function(t){if("success"===t.result){var A=t.data;o&&A?("String"!==o&&(A=JSON.parse(A)),e(a)&&a({errMsg:"getStorage:ok",data:A})):(t.errMsg="setStorage:fail",e(i)&&i(t))}else t.errMsg="setStorage:fail",e(i)&&i(t);e(n)&&n(t)}))}else t.errMsg="setStorage:fail",e(i)&&i(t),e(n)&&n(t)}))},setStorage:function(t){var A=t.key,a=t.data,i=t.success,n=t.fail,o=t.complete,s="String";"object"===(void 0===a?"undefined":j(a))&&(s="Object",a=JSON.stringify(a)),G.setItem(A,a,(function(t){"success"===t.result?G.setItem(A+"__TYPE",s,(function(t){"success"===t.result?e(i)&&i({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(n)&&n(t))})):(t.errMsg="setStorage:fail",e(n)&&n(t)),e(o)&&o(t)}))},removeStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.removeItem(A,(function(t){"success"===t.result?e(a)&&a({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(i)&&i(t)),e(n)&&n(t)})),G.removeItem(A+"__TYPE")},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var A=t.success,a=(t.fail,t.complete);T.getString((function(t){var i={errMsg:"getClipboardData:ok",data:t.data};e(A)&&A(i),e(a)&&a(i)}))},setClipboardData:function(t){var A=t.data,a=t.success,i=(t.fail,t.complete),n={errMsg:"setClipboardData:ok"};T.setString(A),e(a)&&a(n),e(i)&&i(n)},onSubNVueMessage:c,getSubNVueById:d,getCurrentSubNVue:function(){return d(i.webview.currentWebview().id)},$on:function(){return U(Q(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return U(Q(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return U(Q(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return U(Q(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),R={os:{nvue:!0}},V={};return"undefined"!=typeof Proxy?V=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return w;if("requireNativePlugin"===t)return I;if("onNavigationBarButtonTap"===t)return S;if("onNavigationBarSearchInputChanged"===t)return C;if("onNavigationBarSearchInputConfirmed"===t)return D;if("onNavigationBarSearchInputClicked"===t)return L;var A=F[t];return A||(A=b(t)),n(t)?o(A):A}}):(Object.keys(R).forEach((function(e){V[e]=R[e]})),V.postMessage=w,V.requireNativePlugin=I,V.onNavigationBarButtonTap=S,V.onNavigationBarSearchInputChanged=C,V.onNavigationBarSearchInputConfirmed=D,V.onNavigationBarSearchInputClicked=L,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach((function(e){var t=F[e];t||(t=b(e)),n(e)?V[e]=o(t):V[e]=t}))),V};var i=new WeexPlus(weex);t.weexPlus=i;var n=a(weex,i,BroadcastChannel);t.default=n},function(e,t,A){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(A(4).default,Vue.prototype.__$appStyle__)},function(e,t,A){"use strict";A.r(t);var a=A(0),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,(function(){return a[e]}))}(n);t.default=i.a},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var t=this,A=e.webview.currentWebview().extras||{},a=A.from,i=(A.callback,A.runtime),n=A.data,o=void 0===n?{}:n,s=A.useGlobalEvent;this.__from=a,this.__runtime=i,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(o)),e.key.addEventListener("backbutton",(function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")}));var r=this,c=function(e){var t=e.data&&e.data.__message;t&&r.__onMessageCallback&&r.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",c):new BroadcastChannel(this.__page).onmessage=c},postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:t,keep:A}})),i=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)e.webview.postMessageToUniNView(a,i);else{var n=new BroadcastChannel(i);n.postMessage(a)}else{var o=e.webview.getWebviewById(i);o&&o.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:a}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"完成",cancel:"取消"},"zh-hans":{},"zh-hant":{},messages:{}}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var t=(e.webview.currentWebview().extras||{}).data||{};if(t.messages&&(this.localization.messages=t.messages),t.locale)this.locale=t.locale.toLowerCase();else{var A=e.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),a=A[1];a&&(A[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[a]||a),A.length=A.length>2?2:A.length,this.locale=A.join("-")}}},localize:function(e){var t=this.locale,A=t.split("-")[0],a=this.fallbackLocale,i=this.localization;function n(e){return i[e]||{}}return n("messages")[e]||n(t)[e]||n(A)[e]||n(a)[e]||e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";var a=A(29),i=A(12),n=A(1);var o=Object(n.a)(i.default,a.b,a.c,!1,null,null,"14d2bcf2",!1,a.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(A(36).default,this.options.style):Object.assign(this.options.style,A(36).default)}).call(o),t.default=o.exports},,,,,function(e,t,A){"use strict";var a=A(13),i=A.n(a);t.default=i.a},function(e,t,A){"use strict";(function(e,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(A(5)),n=o(A(6));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,a)}return A}function r(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}weex.requireModule("dom").addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,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aG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"});var c=weex.requireModule("mapSearch"),l="data:image/png;base64,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";var u={mixins:[i.default,n.default],data:function(){return{positionIcon:l,mapScale:16,userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:l,width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1,localization:{en:{search_tips:"Search for a place",no_found:"No results found",nearby:"Nearby",more:"More"},zh:{search_tips:"搜索地点",no_found:"对不起,没有搜索到相关数据",nearby:"附近",more:"更多"}},searchNearFlag:!0,searchMethod:"poiSearchNearBy"}},computed:{disableOK:function(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0},searchMethods:function(){return[{title:this.localize("nearby"),method:"poiSearchNearBy"},{title:this.localize("more"),method:"poiKeywordsSearch"}]}},filters:{distance:function(e){return e>100?"".concat(e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0),"m | "):e>0?"100m内 | ":""}},watch:{searchMethod:function(){this._searchPageIndex=1,this.searchEnd=!1,this.searchList=[],this._searchKeyword&&this.search()}},onLoad:function(){this.statusBarHeight=e.navigator.getStatusbarHeight(),this.mapHeight=e.screen.resolutionHeight/2;var t=this.data;this.userKeyword=t.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady:function(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload:function(){this.clearSearchTimer()},methods:{cancelClick:function(){this.postMessage({event:"cancel"})},doneClick:function(){if(!this.disableOK){var e=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:e.name,address:e.address,latitude:e.location.latitude,longitude:e.location.longitude};this.postMessage({event:"selected",detail:t})}},getUserLocation:function(){var t=this;e.geolocation.getCurrentPosition((function(e){var A=e.coordsType,a=e.coords;false?t.wgs84togcjo2(a,(function(e){t.getUserLocationSuccess(e)})):t.getUserLocationSuccess(a)}),(function(e){t._hasUserLocation=!0,a("log","Gelocation Error: code - "+e.code+"; message - "+e.message," at template/__uniappchooselocation.nvue:292")}),{geocode:!1,coordsType:"gcj02"})},getUserLocationSuccess:function(e){this._userLatitude=e.latitude,this._userLongitude=e.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:e.latitude,longitude:e.longitude})},searchclick:function(t){this.showSearch=t,!1===t&&e.key.hideSoftKeybord()},showSearchView:function(){this.searchList=[],this.showSearch=!0},hideSearchView:function(){this.showSearch=!1,e.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1,this._searchKeyword=""},onregionchange:function(e){var t=this,A=e.detail,a=A.type||e.type;"drag"===(A.causedBy||e.causedBy)&&"end"===a&&this.mapContext.getCenterLocation((function(e){t.searchNearFlag?t.moveToCenter({latitude:e.latitude,longitude:e.longitude}):t.searchNearFlag=!t.searchNearFlag}))},onItemClick:function(e,t){this.searchNearFlag=!1,t.stopPropagation&&t.stopPropagation(),this.nearSelectedIndex!==e&&(this.nearSelectedIndex=e),this.moveToLocation(this.nearList[e]&&this.nearList[e].location)},moveToCenter:function(e){this.latitude===e.latitude&&this.longitude===e.longitude||(this.latitude=e.latitude,this.longitude=e.longitude,this.updateCenter(e),this.moveToLocation(e),this.isUserLocation=this._userLatitude===e.latitude&&this._userLongitude===e.longitude)},updateCenter:function(e){var t=this;this.nearSelectedIndex=-1,this.nearList=[],this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(e),this.searchNearByPoint(e),this.onItemClick(0,{stopPropagation:function(){t.searchNearFlag=!0}}),this.$refs.nearListLoadmore.resetLoadmore())},searchNear:function(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint:function(e){var t=this;this.noNearData=!1,this.nearLoading=!0,c.poiSearchNearBy({point:{latitude:e.latitude,longitude:e.longitude},key:this.userKeyword,sortrule:1,index:this._nearPageIndex,radius:1e3},(function(e){t.nearLoading=!1,t._nearPageIndex=e.pageIndex+1,t.nearLoadingEnd=e.pageIndex===e.pageNumber,e.poiList&&e.poiList.length?(t.fixPois(e.poiList),t.nearList=t.nearList.concat(e.poiList),t.fixNearList()):t.noNearData=0===t.nearList.length}))},moveToLocation:function(e){e&&this.mapContext.moveToLocation(function(e){for(var t=1;t=2&&"地图位置"===e[0].name){var t=this.getAddressStart(e[1]),A=e[0].address;A.startsWith(t)&&(e[0].name=A.substring(t.length))}},onsearchinput:function(e){var t=this,A=e.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout((function(){clearTimeout(t._searchInputTimer),t._searchPageIndex=1,t.searchEnd=!1,t._searchKeyword=A,t.searchList=[],t.search()}),300)},clearSearchTimer:function(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search:function(){var e=this;0===this._searchKeyword.length||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,c[this.searchMethod]({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,sortrule:1,index:this._searchPageIndex,radius:5e4},(function(t){e.searchLoading=!1,e._searchPageIndex=t.pageIndex+1,e.searchEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(e.fixPois(t.poiList),e.searchList=e.searchList.concat(t.poiList)):e.noSearchData=0===e.searchList.length})))},onSearchListTouchStart:function(){e.key.hideSoftKeybord()},onSearchItemClick:function(e,t){t.stopPropagation(),this.searchSelectedIndex!==e&&(this.searchSelectedIndex=e),this.moveToLocation(this.searchList[e]&&this.searchList[e].location)},getAddressStart:function(e){var t=e.addressOrigin||e.address;return e.province+(e.province===e.city?"":e.city)+(/^\d+$/.test(e.district)?"":t.startsWith(e.district)?"":e.district)},fixPois:function(e){for(var t=0;t1?t-1:0),a=1;a1){var r=o.pop();s=o.join("---COMMA---"),0===r.indexOf(" at ")?s+=r:s+="---COMMA---"+r}else s=o[0];console[n](s)}},function(e,t,A){"use strict";A.r(t);var a=A(14),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,(function(){return a[e]}))}(n);t.default=i.a},,,,,function(e,t,A){"use strict";A.r(t);A(3);var a=A(7);a.default.mpType="page",a.default.route="template/__uniappchooselocation",a.default.el="#root",new Vue(a.default)}]);
\ No newline at end of file
diff --git a/unpackage/dist/build/app-plus/__uniapperror.png b/unpackage/dist/build/app-plus/__uniapperror.png
deleted file mode 100644
index 4743b25..0000000
Binary files a/unpackage/dist/build/app-plus/__uniapperror.png and /dev/null differ
diff --git a/unpackage/dist/build/app-plus/__uniappes6.js b/unpackage/dist/build/app-plus/__uniappes6.js
deleted file mode 100644
index d4018e8..0000000
--- a/unpackage/dist/build/app-plus/__uniappes6.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(t){"use strict";!function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=0)}([function(t,r,n){n(1),n(54),n(61),n(66),n(68),n(69),n(70),n(71),n(73),n(74),n(76),n(84),n(85),n(86),n(95),n(96),n(98),n(99),n(100),n(102),n(103),n(104),n(105),n(106),n(107),n(109),n(110),n(111),n(112),n(121),n(124),n(125),n(127),n(129),n(130),n(131),n(132),n(133),n(135),n(137),n(140),n(141),n(143),n(145),n(146),n(147),n(148),n(150),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(171),n(172),n(174),n(178),n(179),n(180),n(181),n(187),n(189),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(201),n(202),n(203),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),t.exports=n(217)},function(r,n,e){var o=e(2),i=e(6),u=e(45),c=e(14),a=e(46),f=e(39),s=e(47),l=e(48),p=e(51),g=e(49),v=e(52),h=g("isConcatSpreadable"),d=v>=51||!i(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),x=p("concat"),y=function(r){if(!c(r))return!1;var n=r[h];return n!==t?!!n:u(r)};o({target:"Array",proto:!0,forced:!d||!x},{concat:function(t){var r,n,e,o,i,u=a(this),c=l(u,0),p=0;for(r=-1,e=arguments.length;r9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(c,p++,i)}return c.length=p,c}})},function(r,n,e){var o=e(3),i=e(4).f,u=e(18),c=e(21),a=e(25),f=e(32),s=e(44);r.exports=function(r,n){var e,l,p,g,v,h=r.target,d=r.global,x=r.stat;if(e=d?o:x?o[h]||a(h,{}):(o[h]||{}).prototype)for(l in n){if(g=n[l],p=r.noTargetGet?(v=i(e,l))&&v.value:e[l],!s(d?l:h+(x?".":"#")+l,r.forced)&&p!==t){if(typeof g==typeof p)continue;f(g,p)}(r.sham||p&&p.sham)&&u(g,"sham",!0),c(e,l,g,r)}}},function(t,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,r,n){var e=n(5),o=n(7),i=n(8),u=n(9),c=n(13),a=n(15),f=n(16),s=Object.getOwnPropertyDescriptor;r.f=e?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,n){var e=n(6);t.exports=!e(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(10),o=n(12);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(6),o=n(11),i="".split;t.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(r,n){r.exports=function(r){if(r==t)throw TypeError("Can't call method on "+r);return r}},function(t,r,n){var e=n(14);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(5),o=n(6),i=n(17);t.exports=!e&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,r,n){var e=n(3),o=n(14),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(5),o=n(19),i=n(8);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(5),o=n(16),i=n(20),u=n(13),c=Object.defineProperty;r.f=e?c:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return c(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(14);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(3),o=n(22),i=n(18),u=n(15),c=n(25),a=n(26),f=n(27),s=f.get,l=f.enforce,p=String(a).split("toString");o("inspectSource",function(t){return a.call(t)}),(t.exports=function(t,r,n,o){var a=!!o&&!!o.unsafe,f=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof r||u(n,"name")||i(n,"name",r),l(n).source=p.join("string"==typeof r?r:"")),t!==e?(a?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=n:i(t,r,n)):f?t[r]=n:c(r,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||a.call(this)})},function(r,n,e){var o=e(23),i=e(24);(r.exports=function(r,n){return i[r]||(i[r]=n!==t?n:{})})("versions",[]).push({version:"3.3.6",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,r){t.exports=!1},function(t,r,n){var e=n(3),o=n(25),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(3),o=n(18);t.exports=function(t,r){try{o(e,t,r)}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(22);t.exports=e("native-function-to-string",Function.toString)},function(t,r,n){var e,o,i,u=n(28),c=n(3),a=n(14),f=n(18),s=n(15),l=n(29),p=n(31),g=c.WeakMap;if(u){var v=new g,h=v.get,d=v.has,x=v.set;e=function(t,r){return x.call(v,t,r),r},o=function(t){return h.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var y=l("state");p[y]=!0,e=function(t,r){return f(t,y,r),r},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(3),o=n(26),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,r,n){var e=n(22),o=n(30),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(r,n){var e=0,o=Math.random();r.exports=function(r){return"Symbol("+String(r===t?"":r)+")_"+(++e+o).toString(36)}},function(t,r){t.exports={}},function(t,r,n){var e=n(15),o=n(33),i=n(4),u=n(19);t.exports=function(t,r){for(var n=o(r),c=u.f,a=i.f,f=0;fa;)e(c,n=r[a++])&&(~i(f,n)||f.push(n));return f}},function(t,r,n){var e=n(9),o=n(39),i=n(41),u=function(t){return function(r,n,u){var c,a=e(r),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){var e=n(40),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:n)(t)}},function(t,r,n){var e=n(40),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(6),o=/#|\.prototype\./,i=function(t,r){var n=c[u(t)];return n==f||n!=a&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(11);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(12);t.exports=function(t){return Object(e(t))}},function(t,r,n){var e=n(13),o=n(19),i=n(8);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(r,n,e){var o=e(14),i=e(45),u=e(49)("species");r.exports=function(r,n){var e;return i(r)&&("function"!=typeof(e=r.constructor)||e!==Array&&!i(e.prototype)?o(e)&&null===(e=e[u])&&(e=t):e=t),new(e===t?Array:e)(0===n?0:n)}},function(t,r,n){var e=n(3),o=n(22),i=n(30),u=n(50),c=e.Symbol,a=o("wks");t.exports=function(t){return a[t]||(a[t]=u&&c[t]||(u?c:i)("Symbol."+t))}},function(t,r,n){var e=n(6);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(t,r,n){var e=n(6),o=n(49),i=n(52),u=o("species");t.exports=function(t){return i>=51||!e(function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo})}},function(t,r,n){var e,o,i=n(3),u=n(53),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(e=f.split("."))[0]+e[1]:u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},function(t,r,n){var e=n(34);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(2),o=n(55),i=n(56);e({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(r,n,e){var o=e(46),i=e(41),u=e(39),c=Math.min;r.exports=[].copyWithin||function(r,n){var e=o(this),a=u(e.length),f=i(r,a),s=i(n,a),l=arguments.length>2?arguments[2]:t,p=c((l===t?a:i(l,a))-s,a-f),g=1;for(s0;)s in e?e[f]=e[s]:delete e[f],f+=g,s+=g;return e}},function(r,n,e){var o=e(49),i=e(57),u=e(18),c=o("unscopables"),a=Array.prototype;a[c]==t&&u(a,c,i(null)),r.exports=function(t){a[c][t]=!0}},function(r,n,e){var o=e(20),i=e(58),u=e(42),c=e(31),a=e(60),f=e(17),s=e(29)("IE_PROTO"),l=function(){},p=function(){var t,r=f("iframe"),n=u.length;for(r.style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write("
- View
-
-
-
-
-
-
-
-
-
-
-