diff --git a/app/build.gradle b/app/build.gradle index 70d24ee..fca871d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { minSdkVersion 21 targetSdkVersion 28 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效 - versionCode 100 - versionName "1.0.0" + versionCode 110 + versionName "1.1.0" multiDexEnabled true ndk { // abiFilters 'x86','armeabi-v7a' diff --git a/app/src/main/assets/apps/__UNI__3B4D40B/www/__uniappview.html b/app/src/main/assets/apps/__UNI__3B4D40B/www/__uniappview.html index 53b85bb..31fb8e7 100644 --- a/app/src/main/assets/apps/__UNI__3B4D40B/www/__uniappview.html +++ b/app/src/main/assets/apps/__UNI__3B4D40B/www/__uniappview.html @@ -16,7 +16,7 @@
- + diff --git a/app/src/main/assets/apps/__UNI__3B4D40B/www/app-config-service.js b/app/src/main/assets/apps/__UNI__3B4D40B/www/app-config-service.js index a1aac93..37688b7 100644 --- a/app/src/main/assets/apps/__UNI__3B4D40B/www/app-config-service.js +++ b/app/src/main/assets/apps/__UNI__3B4D40B/www/app-config-service.js @@ -1,9 +1,9 @@ ;(function(){ let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; - const __uniConfig = {"pages":[],"globalStyle":{"pageOrientation":"portrait","backgroundColor":"#F8F8F8","backgroundColorTop":"#F4F5F6","backgroundColorBottom":"#F4F5F6","navigationBar":{"backgroundColor":"#007AFF","titleText":"Hello uniapp","type":"default","titleColor":"#ffffff"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"checkoutPad_uni_app","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.99","entryPagePath":"pages/tabBar/component/component","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#7A7E83","selectedColor":"#007AFF","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#F8F8F8","list":[{"pagePath":"pages/tabBar/component/component","iconPath":"/static/component.png","selectedIconPath":"/static/componentHL.png","text":"内置组件"},{"pagePath":"pages/tabBar/API/API","iconPath":"/static/api.png","selectedIconPath":"/static/apiHL.png","text":"接口"},{"pagePath":"pages/tabBar/extUI/extUI","iconPath":"/static/extui.png","selectedIconPath":"/static/extuiHL.png","text":"扩展组件"},{"pagePath":"pages/tabBar/template/template","iconPath":"/static/template.png","selectedIconPath":"/static/templateHL.png","text":"模板"}],"selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}}; - const __uniRoutes = [{"path":"pages/tabBar/component/component","meta":{"isQuit":true,"isEntry":true,"isTabBar":true,"tabBarIndex":0,"bounce":"vertical","navigationBar":{"titleText":"内置组件","type":"default","buttons":[{"text":"","fontSrc":"/static/uni.ttf","fontSize":"22px","color":"#FFFFFF"}]},"isNVue":true}},{"path":"pages/tabBar/API/API","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"navigationBar":{"titleText":"接口","type":"default","buttons":[{"text":"","fontSrc":"/static/uni.ttf","fontSize":"22px","color":"#FFFFFF"}]},"isNVue":true}},{"path":"pages/tabBar/template/template","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":3,"navigationBar":{"titleText":"模版","type":"default","buttons":[{"text":"","fontSrc":"/static/uni.ttf","fontSize":"22px","color":"#FFFFFF"}]},"isNVue":true}},{"path":"pages/tabBar/extUI/extUI","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":2,"navigationBar":{"titleText":"扩展组件","type":"default","buttons":[{"text":"","fontSrc":"/static/uni.ttf","fontSize":"22px","color":"#FFFFFF"}]},"isNVue":true}},{"path":"pages/component/view/view","meta":{"navigationBar":{"titleText":"view","type":"default"},"isNVue":false}},{"path":"pages/component/scroll-view/scroll-view","meta":{"navigationBar":{"titleText":"scroll-view","type":"default"},"isNVue":false}},{"path":"pages/component/swiper/swiper","meta":{"navigationBar":{"titleText":"swiper","type":"default"},"isNVue":false}},{"path":"pages/component/cover-view/cover-view","meta":{"navigationBar":{"titleText":"cover-view","type":"default"},"isNVue":true}},{"path":"pages/component/movable-view/movable-view","meta":{"navigationBar":{"titleText":"movable-view","type":"default"},"isNVue":false}},{"path":"pages/component/text/text","meta":{"navigationBar":{"titleText":"text","type":"default"},"isNVue":false}},{"path":"pages/component/rich-text/rich-text","meta":{"navigationBar":{"titleText":"rich-text","type":"default"},"isNVue":false}},{"path":"pages/component/progress/progress","meta":{"navigationBar":{"titleText":"progress","type":"default"},"isNVue":false}},{"path":"pages/component/button/button","meta":{"navigationBar":{"titleText":"button","type":"default"},"isNVue":false}},{"path":"pages/component/checkbox/checkbox","meta":{"navigationBar":{"titleText":"checkbox","type":"default"},"isNVue":false}},{"path":"pages/component/form/form","meta":{"navigationBar":{"titleText":"form","type":"default"},"isNVue":false}},{"path":"pages/component/input/input","meta":{"softinputNavBar":"none","navigationBar":{"titleText":"input","type":"default"},"isNVue":true}},{"path":"pages/component/label/label","meta":{"navigationBar":{"titleText":"label","type":"default"},"isNVue":false}},{"path":"pages/component/picker/picker","meta":{"navigationBar":{"titleText":"picker","type":"default"},"isNVue":false}},{"path":"pages/component/picker-view/picker-view","meta":{"navigationBar":{"titleText":"picker-view","type":"default"},"isNVue":false}},{"path":"pages/component/radio/radio","meta":{"navigationBar":{"titleText":"radio","type":"default"},"isNVue":false}},{"path":"pages/component/slider/slider","meta":{"navigationBar":{"titleText":"slider","type":"default"},"isNVue":false}},{"path":"pages/component/switch/switch","meta":{"navigationBar":{"titleText":"switch","type":"default"},"isNVue":false}},{"path":"pages/component/textarea/textarea","meta":{"navigationBar":{"titleText":"textarea","type":"default"},"isNVue":false}},{"path":"pages/component/editor/editor","meta":{"softinputMode":"adjustResize","navigationBar":{"titleText":"editor","type":"default"},"isNVue":false}},{"path":"pages/component/navigator/navigator","meta":{"navigationBar":{"titleText":"navigator","type":"default"},"isNVue":false}},{"path":"pages/component/navigator/navigate/navigate","meta":{"navigationBar":{"titleText":"navigatePage","type":"default"},"isNVue":false}},{"path":"pages/component/navigator/redirect/redirect","meta":{"navigationBar":{"titleText":"redirectPage","type":"default"},"isNVue":false}},{"path":"pages/component/image/image","meta":{"navigationBar":{"titleText":"image","type":"default"},"isNVue":false}},{"path":"pages/component/video/video","meta":{"navigationBar":{"titleText":"video","type":"default"},"isNVue":true}},{"path":"pages/component/map/map","meta":{"navigationBar":{"titleText":"map","type":"default"},"isNVue":true}},{"path":"pages/component/canvas/canvas","meta":{"navigationBar":{"titleText":"canvas","type":"default"},"isNVue":false}},{"path":"pages/component/web-view/web-view","meta":{"navigationBar":{"titleText":"web-view","type":"default"},"isNVue":false}},{"path":"pages/component/ad/ad","meta":{"navigationBar":{"titleText":"AD","type":"default"},"isNVue":false}},{"path":"pages/component/web-view-local/web-view-local","meta":{"navigationBar":{"type":"default"},"isNVue":false}},{"path":"platforms/app-plus/speech/speech","meta":{"navigationBar":{"titleText":"语音识别","type":"default"},"isNVue":false}},{"path":"platforms/app-plus/orientation/orientation","meta":{"navigationBar":{"titleText":"方向传感器","type":"default"},"isNVue":false}},{"path":"platforms/app-plus/proximity/proximity","meta":{"navigationBar":{"titleText":"距离传感器","type":"default"},"isNVue":false}},{"path":"platforms/app-plus/push/push","meta":{"navigationBar":{"titleText":"推送","type":"default"},"isNVue":false}},{"path":"platforms/app-plus/shake/shake","meta":{"navigationBar":{"titleText":"摇一摇","type":"default"},"isNVue":false}},{"path":"pages/about/about","meta":{"navigationBar":{"titleText":"关于","type":"default"},"isNVue":false}},{"path":"platforms/app-plus/feedback/feedback","meta":{"navigationBar":{"titleText":"问题反馈","type":"default"},"isNVue":false}},{"path":"uni_modules/uni-upgrade-center-app/pages/upgrade-popup","meta":{"disableScroll":true,"animationDuration":200,"animationType":"fade-in","background":"transparent","backgroundColorTop":"transparent","scrollIndicator":false,"titleNView":false,"navigationBar":{"type":"default","style":"custom"},"isNVue":false}},{"path":"pages/API/login/login","meta":{"navigationBar":{"titleText":"授权登录","type":"default"},"isNVue":false}},{"path":"pages/API/subnvue/subnvue","meta":{"subNVues":[{"id":"drawer","path":"pages/API/subnvue/subnvue/drawer","type":"popup","style":{"width":"50%"}},{"id":"popup","path":"pages/API/subnvue/subnvue/popup","type":"popup","style":{"margin":"auto","width":"80%","height":"600rpx"}},{"id":"video_mask","path":"pages/API/subnvue/subnvue/video-mask","style":{"position":"absolute","bottom":"30px","left":"0","width":"230px","height":"110px","background":"transparent"}}],"navigationBar":{"titleText":"原生子窗体","type":"default"},"isNVue":false}},{"path":"pages/API/get-user-info/get-user-info","meta":{"navigationBar":{"titleText":"获取用户信息","type":"default"},"isNVue":false}},{"path":"pages/API/request-payment/request-payment","meta":{"navigationBar":{"titleText":"发起支付","type":"default"},"isNVue":false}},{"path":"pages/API/share/share","meta":{"navigationBar":{"titleText":"分享","type":"default"},"isNVue":false}},{"path":"pages/API/set-navigation-bar-title/set-navigation-bar-title","meta":{"navigationBar":{"titleText":"设置界面标题","type":"default"},"isNVue":false}},{"path":"pages/API/show-loading/show-loading","meta":{"navigationBar":{"titleText":"加载提示框","type":"default"},"isNVue":false}},{"path":"pages/API/navigator/navigator","meta":{"navigationBar":{"titleText":"页面跳转","type":"default"},"isNVue":false}},{"path":"pages/API/navigator/new-page/new-vue-page-1","meta":{"navigationBar":{"titleText":"新VUE页面1","type":"default"},"isNVue":false}},{"path":"pages/API/navigator/new-page/new-vue-page-2","meta":{"navigationBar":{"titleText":"新VUE页面2","type":"default"},"isNVue":false}},{"path":"pages/API/pull-down-refresh/pull-down-refresh","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"下拉刷新","type":"default"},"isNVue":false}},{"path":"pages/API/animation/animation","meta":{"navigationBar":{"titleText":"创建动画","type":"default"},"isNVue":false}},{"path":"pages/API/get-node-info/get-node-info","meta":{"navigationBar":{"titleText":"节点信息","type":"default"},"isNVue":false}},{"path":"pages/API/intersection-observer/intersection-observer","meta":{"navigationBar":{"titleText":"节点布局相交状态","type":"default"},"isNVue":false}},{"path":"pages/API/canvas/canvas","meta":{"navigationBar":{"titleText":"创建绘画","type":"default"},"isNVue":false}},{"path":"pages/API/action-sheet/action-sheet","meta":{"navigationBar":{"titleText":"操作菜单","type":"default"},"isNVue":false}},{"path":"pages/API/modal/modal","meta":{"navigationBar":{"titleText":"模态弹窗","type":"default"},"isNVue":false}},{"path":"pages/API/toast/toast","meta":{"navigationBar":{"titleText":"消息提示框","type":"default"},"isNVue":false}},{"path":"pages/API/get-network-type/get-network-type","meta":{"navigationBar":{"titleText":"获取设备网络状态","type":"default"},"isNVue":false}},{"path":"pages/API/get-system-info/get-system-info","meta":{"navigationBar":{"titleText":"获取设备系统信息","type":"default"},"isNVue":false}},{"path":"pages/API/add-phone-contact/add-phone-contact","meta":{"navigationBar":{"titleText":"添加手机联系人","type":"default"},"isNVue":false}},{"path":"pages/API/on-accelerometer-change/on-accelerometer-change","meta":{"navigationBar":{"titleText":"监听加速度计数据","type":"default"},"isNVue":false}},{"path":"pages/API/on-compass-change/on-compass-change","meta":{"navigationBar":{"titleText":"监听罗盘数据","type":"default"},"isNVue":false}},{"path":"pages/API/make-phone-call/make-phone-call","meta":{"navigationBar":{"titleText":"打电话","type":"default"},"isNVue":false}},{"path":"pages/API/scan-code/scan-code","meta":{"navigationBar":{"titleText":"扫码","type":"default"},"isNVue":false}},{"path":"pages/API/clipboard/clipboard","meta":{"navigationBar":{"titleText":"剪贴板","type":"default"},"isNVue":false}},{"path":"pages/API/request/request","meta":{"navigationBar":{"titleText":"网络请求","type":"default"},"isNVue":false}},{"path":"pages/API/upload-file/upload-file","meta":{"navigationBar":{"titleText":"上传文件","type":"default"},"isNVue":false}},{"path":"pages/API/download-file/download-file","meta":{"navigationBar":{"titleText":"下载文件","type":"default"},"isNVue":false}},{"path":"pages/API/image/image","meta":{"navigationBar":{"titleText":"图片","type":"default"},"isNVue":false}},{"path":"pages/API/voice/voice","meta":{"navigationBar":{"titleText":"录音","type":"default"},"isNVue":false}},{"path":"pages/API/inner-audio/inner-audio","meta":{"navigationBar":{"titleText":"音频","type":"default"},"isNVue":false}},{"path":"pages/API/background-audio/background-audio","meta":{"navigationBar":{"titleText":"背景音频","type":"default"},"isNVue":false}},{"path":"pages/API/video/video","meta":{"navigationBar":{"titleText":"视频","type":"default"},"isNVue":false}},{"path":"pages/API/file/file","meta":{"navigationBar":{"titleText":"文件","type":"default"},"isNVue":false}},{"path":"pages/API/map/map","meta":{"navigationBar":{"titleText":"map","type":"default"},"isNVue":true}},{"path":"pages/API/map-search/map-search","meta":{"navigationBar":{"titleText":"map search","type":"default"},"isNVue":true}},{"path":"pages/API/get-location/get-location","meta":{"navigationBar":{"titleText":"获取位置","type":"default"},"isNVue":false}},{"path":"pages/API/open-location/open-location","meta":{"navigationBar":{"titleText":"查看位置","type":"default"},"isNVue":false}},{"path":"pages/API/choose-location/choose-location","meta":{"navigationBar":{"titleText":"使用地图选择位置","type":"default"},"isNVue":false}},{"path":"pages/API/storage/storage","meta":{"navigationBar":{"titleText":"数据存储","type":"default"},"isNVue":false}},{"path":"pages/API/sqlite/sqlite","meta":{"navigationBar":{"titleText":"SQLite","type":"default"},"isNVue":false}},{"path":"pages/API/rewarded-video-ad/rewarded-video-ad","meta":{"navigationBar":{"titleText":"激励视频广告","type":"default"},"isNVue":false}},{"path":"pages/API/full-screen-video-ad/full-screen-video-ad","meta":{"navigationBar":{"titleText":"全屏视频广告","type":"default"},"isNVue":false}},{"path":"pages/API/brightness/brightness","meta":{"navigationBar":{"titleText":"屏幕亮度","type":"default"},"isNVue":false}},{"path":"pages/API/save-media/save-media","meta":{"navigationBar":{"titleText":"保存媒体到本地","type":"default"},"isNVue":false}},{"path":"pages/API/bluetooth/bluetooth","meta":{"navigationBar":{"titleText":"蓝牙","type":"default"},"isNVue":false}},{"path":"pages/API/soter/soter","meta":{"navigationBar":{"titleText":"生物认证","type":"default"},"isNVue":false}},{"path":"pages/API/ibeacon/ibeacon","meta":{"navigationBar":{"titleText":"iBeacon","type":"default"},"isNVue":false}},{"path":"pages/API/vibrate/vibrate","meta":{"navigationBar":{"titleText":"震动","type":"default"},"isNVue":false}},{"path":"pages/API/websocket-socketTask/websocket-socketTask","meta":{"navigationBar":{"titleText":"websocket-socketTask","type":"default"},"isNVue":false}},{"path":"pages/API/websocket-global/websocket-global","meta":{"navigationBar":{"titleText":"websocket-global","type":"default"},"isNVue":false}},{"path":"pages/extUI/forms/forms","meta":{"navigationBar":{"titleText":"Form 表单","type":"default"},"isNVue":false}},{"path":"pages/extUI/group/group","meta":{"navigationBar":{"titleText":"Group 分组","type":"default"},"isNVue":false}},{"path":"pages/extUI/badge/badge","meta":{"navigationBar":{"titleText":"Badge 数字角标","type":"default"},"isNVue":false}},{"path":"pages/extUI/breadcrumb/breadcrumb","meta":{"navigationBar":{"titleText":"Breadcrumb 面包屑","type":"default"},"isNVue":false}},{"path":"pages/extUI/countdown/countdown","meta":{"navigationBar":{"titleText":"Countdown 倒计时","type":"default"},"isNVue":true}},{"path":"pages/extUI/drawer/drawer","meta":{"navigationBar":{"titleText":"Drawer 抽屉","type":"default"},"isNVue":false}},{"path":"pages/extUI/icons/icons","meta":{"navigationBar":{"titleText":"Icons 图标","type":"default"},"isNVue":true}},{"path":"pages/extUI/load-more/load-more","meta":{"navigationBar":{"titleText":"LoadMore 加载更多","type":"default"},"isNVue":true}},{"path":"pages/extUI/nav-bar/nav-bar","meta":{"enablePullDownRefresh":true,"titleNView":false,"bounce":"none","pullToRefresh":{"style":"circle","offset":"70px"},"navigationBar":{"titleText":"NavBar 导航栏","style":"custom","type":"default"},"isNVue":true}},{"path":"pages/extUI/number-box/number-box","meta":{"navigationBar":{"titleText":"NumberBox 数字输入框","type":"default"},"isNVue":true}},{"path":"pages/extUI/popup/popup","meta":{"softinputMode":"adjustResize","navigationBar":{"titleText":"Popup 弹出层","type":"default"},"isNVue":false}},{"path":"pages/extUI/segmented-control/segmented-control","meta":{"navigationBar":{"titleText":"SegmentedControl 分段器","type":"default"},"isNVue":false}},{"path":"pages/extUI/tag/tag","meta":{"navigationBar":{"titleText":"Tag 标签","type":"default"},"isNVue":true}},{"path":"pages/extUI/list/list","meta":{"navigationBar":{"titleText":"List 列表","type":"default"},"isNVue":true}},{"path":"pages/extUI/card/card","meta":{"navigationBar":{"titleText":"Card 卡片","type":"default"},"isNVue":true}},{"path":"pages/extUI/collapse/collapse","meta":{"navigationBar":{"titleText":"Collapse 折叠面板","type":"default"},"isNVue":false}},{"path":"pages/extUI/pagination/pagination","meta":{"navigationBar":{"titleText":"Pagination 分页器","type":"default"},"isNVue":false}},{"path":"pages/extUI/swiper-dot/swiper-dot","meta":{"navigationBar":{"titleText":"SwiperDot 轮播图指示点","type":"default"},"isNVue":true}},{"path":"pages/extUI/grid/grid","meta":{"navigationBar":{"titleText":"Grid 宫格","type":"default"},"isNVue":true}},{"path":"pages/extUI/rate/rate","meta":{"navigationBar":{"titleText":"Rate 评分","type":"default"},"isNVue":true}},{"path":"pages/extUI/steps/steps","meta":{"navigationBar":{"titleText":"Steps 步骤条","type":"default"},"isNVue":false}},{"path":"pages/extUI/notice-bar/notice-bar","meta":{"navigationBar":{"titleText":"NoticeBar 通告栏","type":"default"},"isNVue":false}},{"path":"pages/extUI/swipe-action/swipe-action","meta":{"bounce":"none","navigationBar":{"titleText":"SwipeAction 滑动操作","type":"default"},"isNVue":false}},{"path":"pages/extUI/search-bar/search-bar","meta":{"navigationBar":{"titleText":"SearchBar 搜索栏","type":"default"},"isNVue":false}},{"path":"pages/extUI/calendar/calendar","meta":{"navigationBar":{"titleText":"Calendar 日历","type":"default"},"isNVue":false}},{"path":"pages/extUI/indexed-list/indexed-list","meta":{"bounce":"none","navigationBar":{"titleText":"IndexedList 索引列表","type":"default"},"isNVue":true}},{"path":"pages/extUI/fab/fab","meta":{"navigationBar":{"titleText":"Fab 悬浮按钮","type":"default"},"isNVue":false}},{"path":"pages/extUI/fav/fav","meta":{"navigationBar":{"titleText":"Fav 收藏按钮","type":"default"},"isNVue":false}},{"path":"pages/extUI/goods-nav/goods-nav","meta":{"navigationBar":{"titleText":"GoodsNav 商品导航","type":"default"},"isNVue":true}},{"path":"pages/extUI/section/section","meta":{"navigationBar":{"titleText":"Section 标题栏","type":"default"},"isNVue":false}},{"path":"pages/extUI/transition/transition","meta":{"navigationBar":{"titleText":"Transition 过渡动画","type":"default"},"isNVue":false}},{"path":"pages/extUI/title/title","meta":{"navigationBar":{"titleText":"Title 章节标题","type":"default"},"isNVue":false}},{"path":"pages/extUI/tooltip/tooltip","meta":{"navigationBar":{"titleText":"Tooltip 文字提示","type":"default"},"isNVue":false}},{"path":"pages/extUI/link/link","meta":{"navigationBar":{"titleText":"Link 链接","type":"default"},"isNVue":false}},{"path":"pages/extUI/combox/combox","meta":{"navigationBar":{"titleText":"Combox 组合框","type":"default"},"isNVue":false}},{"path":"pages/extUI/list/chat","meta":{"navigationBar":{"type":"default"},"isNVue":false}},{"path":"pages/extUI/table/table","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/extUI/dateformat/dateformat","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"Dateformat 日期格式化","type":"default"},"isNVue":false}},{"path":"pages/extUI/data-checkbox/data-checkbox","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"DataCheckbox 单选复选框","type":"default"},"isNVue":false}},{"path":"pages/extUI/easyinput/easyinput","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"Easyinput 增强输入框","type":"default"},"isNVue":false}},{"path":"pages/extUI/data-picker/data-picker","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"DataPicker 级联选择","type":"default"},"isNVue":true}},{"path":"pages/extUI/data-select/data-select","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"DataSelect 下拉框","type":"default"},"isNVue":false}},{"path":"pages/extUI/datetime-picker/datetime-picker","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"DatetimePicker 日期时间","type":"default"},"isNVue":false}},{"path":"pages/extUI/row/row","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"Layout 布局","type":"default"},"isNVue":false}},{"path":"pages/extUI/file-picker/file-picker","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"FilePicker 文件选择上传","type":"default"},"isNVue":false}},{"path":"pages/extUI/space/space","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"间距","type":"default"},"isNVue":true}},{"path":"pages/extUI/font/font","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"字体","type":"default"},"isNVue":true}},{"path":"pages/extUI/color/color","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"颜色","type":"default"},"isNVue":true}},{"path":"pages/extUI/radius/radius","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"圆角","type":"default"},"isNVue":true}},{"path":"pages/extUI/button/button","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/template/nav-default/nav-default","meta":{"navigationBar":{"titleText":"默认导航栏","type":"default"},"isNVue":false}},{"path":"pages/template/component-communication/component-communication","meta":{"navigationBar":{"titleText":"组件通讯","type":"default"},"isNVue":false}},{"path":"pages/template/nav-transparent/nav-transparent","meta":{"navigationBar":{"titleText":"透明渐变导航栏","type":"transparent","coverage":"132px"},"isNVue":false}},{"path":"pages/template/nav-button/nav-button","meta":{"navigationBar":{"titleText":"导航栏带自定义按钮","type":"default","buttons":[{"type":"share","fontSize":"27px","text":""},{"type":"favorite","fontSize":"27px","text":""}]},"isNVue":false}},{"path":"pages/template/nav-image/nav-image","meta":{"navigationBar":{"backgroundColor":"#FFFFFF","titleImage":"https://web-assets.dcloud.net.cn/unidoc/zh/logo1@2x.png","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/template/nav-city-dropdown/nav-city-dropdown","meta":{"navigationBar":{"titleText":"导航栏带城市选择","type":"default","buttons":[{"text":"北京市","fontSize":"14px","select":true,"width":"auto"}]},"isNVue":false}},{"path":"pages/template/nav-dot/nav-dot","meta":{"navigationBar":{"titleText":"导航栏带红点和角标","type":"default","buttons":[{"text":"消息","fontSize":"14px","redDot":true},{"text":"关注","fontSize":"14px","badgeText":"12"}]},"isNVue":false}},{"path":"pages/template/nav-search-input/nav-search-input","meta":{"navigationBar":{"titleText":"导航栏带搜索框","type":"transparent","titleColor":"#fff","backgroundColor":"#007AFF","buttons":[{"fontSrc":"/static/uni.ttf","text":"","width":"40px","fontSize":"28px","color":"#fff","background":"rgba(0,0,0,0)"}],"searchInput":{"autoFocus":false,"align":"center","color":"#000","backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入地址 如:大钟寺","placeholderColor":"#CCCCCC","disabled":true},"coverage":"132px"},"isNVue":false}},{"path":"pages/template/nav-search-input/detail/detail","meta":{"navigationBar":{"titleText":"搜索","type":"default","titleColor":"#fff","backgroundColor":"#007AFF","buttons":[{"fontSrc":"/static/uni.ttf","text":"","width":"auto","fontSize":"28px","color":"#fff"}],"searchInput":{"autoFocus":true,"align":"center","color":"#000","backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入地址 如:大钟寺","placeholderColor":"#CCCCCC","disabled":false}},"isNVue":false}},{"path":"pages/template/list2detail-list/list2detail-list","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"列表到详情示例","type":"default"},"isNVue":false}},{"path":"pages/template/list2detail-detail/list2detail-detail","meta":{"navigationBar":{"titleText":"详情","type":"transparent","buttons":[{"type":"share","fontSize":"22px","text":""}],"coverage":"132px"},"isNVue":false}},{"path":"pages/template/tabbar/tabbar","meta":{"navigationBar":{"titleText":"可拖动顶部选项卡","type":"default"},"isNVue":true}},{"path":"pages/template/tabbar/detail/detail","meta":{"navigationBar":{"titleText":"详情页面","type":"default"},"isNVue":false}},{"path":"pages/template/swiper-vertical/swiper-vertical","meta":{"titleNView":false,"navigationBar":{"titleText":"上下滑动切换视频","type":"default","style":"custom"},"isNVue":true}},{"path":"pages/template/swiper-list/swiper-list","meta":{"navigationBar":{"titleText":"swiper-list","type":"default"},"isNVue":true}},{"path":"pages/template/swiper-list-nvue/swiper-list-nvue","meta":{"navigationBar":{"titleText":"swiper-list","type":"default"},"isNVue":true}},{"path":"pages/template/scheme/scheme","meta":{"navigationBar":{"titleText":"打开外部应用","type":"default"},"isNVue":false}},{"path":"pages/template/global/global","meta":{"navigationBar":{"titleText":"GlobalData和vuex","type":"default"},"isNVue":false}},{"path":"pages/API/subnvue/subnvue/drawer","meta":{"isSubNVue":true,"isNVue":true,"navigationBar":{}}},{"path":"pages/API/subnvue/subnvue/popup","meta":{"isSubNVue":true,"isNVue":true,"navigationBar":{}}},{"path":"pages/API/subnvue/subnvue/video-mask","meta":{"isSubNVue":true,"isNVue":true,"navigationBar":{}}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); - __uniConfig.styles=[{"uni-border":{"":{"borderWidth":1,"borderStyle":"solid","borderColor":"#F0F0F0"}},"uni-primary":{"":{"color":"#2979ff"}},"uni-primary-bg":{"":{"backgroundColor":"#2979ff"}},"uni-primary-disable":{"":{"color":"#8fb9ff"}},"uni-primary-disable-bg":{"":{"backgroundColor":"#8fb9ff"}},"uni-primary-light":{"":{"color":"#a9c9ff"}},"uni-primary-light-bg":{"":{"backgroundColor":"#a9c9ff"}},"uni-success":{"":{"color":"#18bc37"}},"uni-success-bg":{"":{"backgroundColor":"#18bc37"}},"uni-success-disable":{"":{"color":"#51e96e"}},"uni-success-disable-bg":{"":{"backgroundColor":"#51e96e"}},"uni-success-light":{"":{"color":"#68ec81"}},"uni-success-light-bg":{"":{"backgroundColor":"#68ec81"}},"uni-warning":{"":{"color":"#f3a73f"}},"uni-warning-bg":{"":{"backgroundColor":"#f3a73f"}},"uni-warning-disable":{"":{"color":"#f9d39f"}},"uni-warning-disable-bg":{"":{"backgroundColor":"#f9d39f"}},"uni-warning-light":{"":{"color":"#fbdeb7"}},"uni-warning-light-bg":{"":{"backgroundColor":"#fbdeb7"}},"uni-error":{"":{"color":"#e43d33"}},"uni-error-bg":{"":{"backgroundColor":"#e43d33"}},"uni-error-disable":{"":{"color":"#f0938d"}},"uni-error-disable-bg":{"":{"backgroundColor":"#f0938d"}},"uni-error-light":{"":{"color":"#f3a8a4"}},"uni-error-light-bg":{"":{"backgroundColor":"#f3a8a4"}},"uni-info":{"":{"color":"#8f939c"}},"uni-info-bg":{"":{"backgroundColor":"#8f939c"}},"uni-info-disable":{"":{"color":"#c5c7cc"}},"uni-info-disable-bg":{"":{"backgroundColor":"#c5c7cc"}},"uni-info-light":{"":{"color":"#d3d4d8"}},"uni-info-light-bg":{"":{"backgroundColor":"#d3d4d8"}},"uni-main-color":{"":{"color":"#3a3a3a"}},"uni-main-color-bg":{"":{"backgroundColor":"#3a3a3a"}},"uni-base-color":{"":{"color":"#6a6a6a"}},"uni-base-color-bg":{"":{"backgroundColor":"#6a6a6a"}},"uni-secondary-color":{"":{"color":"#909399"}},"uni-secondary-color-bg":{"":{"backgroundColor":"#909399"}},"uni-extra-color":{"":{"color":"#c7c7c7"}},"uni-extra-color-bg":{"":{"backgroundColor":"#c7c7c7"}},"uni-bg-color":{"":{"color":"#ffffff"}},"uni-bg-color-bg":{"":{"backgroundColor":"#ffffff"}},"uni-border-1":{"":{"color":"#F0F0F0"}},"uni-border-1-bg":{"":{"backgroundColor":"#F0F0F0"}},"uni-border-2":{"":{"color":"#EDEDED"}},"uni-border-2-bg":{"":{"backgroundColor":"#EDEDED"}},"uni-border-3":{"":{"color":"#DCDCDC"}},"uni-border-3-bg":{"":{"backgroundColor":"#DCDCDC"}},"uni-border-4":{"":{"color":"#B9B9B9"}},"uni-border-4-bg":{"":{"backgroundColor":"#B9B9B9"}},"uni-black":{"":{"color":"#000000"}},"uni-black-bg":{"":{"backgroundColor":"#000000"}},"uni-white":{"":{"color":"#ffffff"}},"uni-white-bg":{"":{"backgroundColor":"#ffffff"}},"uni-transparent":{"":{"color":"rgba(0,0,0,0)"}},"uni-transparent-bg":{"":{"backgroundColor":"rgba(0,0,0,0)"}},"uni-shadow-sm":{"":{"boxShadow":"0 0 5px rgba(216, 216, 216, 0.5)"}},"uni-shadow-base":{"":{"boxShadow":"0 1px 8px 1px rgba(165, 165, 165, 0.2)"}},"uni-shadow-lg":{"":{"boxShadow":"0px 1px 10px 2px rgba(165, 164, 164, 0.5)"}},"uni-mask":{"":{"backgroundColor":"rgba(0,0,0,0.4)"}},"uni-mt-0":{"":{"marginTop":0}},"uni-mt-n0":{"":{"marginTop":0}},"uni-mr-0":{"":{"marginRight":0}},"uni-mr-n0":{"":{"marginRight":0}},"uni-mb-0":{"":{"marginBottom":0}},"uni-mb-n0":{"":{"marginBottom":0}},"uni-ml-0":{"":{"marginLeft":0}},"uni-ml-n0":{"":{"marginLeft":0}},"uni-mx-0":{"":{"marginLeft":0,"marginRight":0}},"uni-mx-n0":{"":{"marginLeft":0,"marginRight":0}},"uni-my-0":{"":{"marginTop":0,"marginBottom":0}},"uni-my-n0":{"":{"marginTop":0,"marginBottom":0}},"uni-ma-0":{"":{"marginTop":0,"marginRight":0,"marginBottom":0,"marginLeft":0}},"uni-ma-n0":{"":{"marginTop":0,"marginRight":0,"marginBottom":0,"marginLeft":0}},"uni-mt-1":{"":{"marginTop":2}},"uni-mt-n1":{"":{"marginTop":-2}},"uni-mr-1":{"":{"marginRight":2}},"uni-mr-n1":{"":{"marginRight":-2}},"uni-mb-1":{"":{"marginBottom":2}},"uni-mb-n1":{"":{"marginBottom":-2}},"uni-ml-1":{"":{"marginLeft":2}},"uni-ml-n1":{"":{"marginLeft":-2}},"uni-mx-1":{"":{"marginLeft":2,"marginRight":2}},"uni-mx-n1":{"":{"marginLeft":-2,"marginRight":-2}},"uni-my-1":{"":{"marginTop":2,"marginBottom":2}},"uni-my-n1":{"":{"marginTop":-2,"marginBottom":-2}},"uni-ma-1":{"":{"marginTop":2,"marginRight":2,"marginBottom":2,"marginLeft":2}},"uni-ma-n1":{"":{"marginTop":-2,"marginRight":-2,"marginBottom":-2,"marginLeft":-2}},"uni-mt-2":{"":{"marginTop":4}},"uni-mt-n2":{"":{"marginTop":-4}},"uni-mr-2":{"":{"marginRight":4}},"uni-mr-n2":{"":{"marginRight":-4}},"uni-mb-2":{"":{"marginBottom":4}},"uni-mb-n2":{"":{"marginBottom":-4}},"uni-ml-2":{"":{"marginLeft":4}},"uni-ml-n2":{"":{"marginLeft":-4}},"uni-mx-2":{"":{"marginLeft":4,"marginRight":4}},"uni-mx-n2":{"":{"marginLeft":-4,"marginRight":-4}},"uni-my-2":{"":{"marginTop":4,"marginBottom":4}},"uni-my-n2":{"":{"marginTop":-4,"marginBottom":-4}},"uni-ma-2":{"":{"marginTop":4,"marginRight":4,"marginBottom":4,"marginLeft":4}},"uni-ma-n2":{"":{"marginTop":-4,"marginRight":-4,"marginBottom":-4,"marginLeft":-4}},"uni-mt-3":{"":{"marginTop":6}},"uni-mt-n3":{"":{"marginTop":-6}},"uni-mr-3":{"":{"marginRight":6}},"uni-mr-n3":{"":{"marginRight":-6}},"uni-mb-3":{"":{"marginBottom":6}},"uni-mb-n3":{"":{"marginBottom":-6}},"uni-ml-3":{"":{"marginLeft":6}},"uni-ml-n3":{"":{"marginLeft":-6}},"uni-mx-3":{"":{"marginLeft":6,"marginRight":6}},"uni-mx-n3":{"":{"marginLeft":-6,"marginRight":-6}},"uni-my-3":{"":{"marginTop":6,"marginBottom":6}},"uni-my-n3":{"":{"marginTop":-6,"marginBottom":-6}},"uni-ma-3":{"":{"marginTop":6,"marginRight":6,"marginBottom":6,"marginLeft":6}},"uni-ma-n3":{"":{"marginTop":-6,"marginRight":-6,"marginBottom":-6,"marginLeft":-6}},"uni-mt-4":{"":{"marginTop":8}},"uni-mt-n4":{"":{"marginTop":-8}},"uni-mr-4":{"":{"marginRight":8}},"uni-mr-n4":{"":{"marginRight":-8}},"uni-mb-4":{"":{"marginBottom":8}},"uni-mb-n4":{"":{"marginBottom":-8}},"uni-ml-4":{"":{"marginLeft":8}},"uni-ml-n4":{"":{"marginLeft":-8}},"uni-mx-4":{"":{"marginLeft":8,"marginRight":8}},"uni-mx-n4":{"":{"marginLeft":-8,"marginRight":-8}},"uni-my-4":{"":{"marginTop":8,"marginBottom":8}},"uni-my-n4":{"":{"marginTop":-8,"marginBottom":-8}},"uni-ma-4":{"":{"marginTop":8,"marginRight":8,"marginBottom":8,"marginLeft":8}},"uni-ma-n4":{"":{"marginTop":-8,"marginRight":-8,"marginBottom":-8,"marginLeft":-8}},"uni-mt-5":{"":{"marginTop":10}},"uni-mt-n5":{"":{"marginTop":-10}},"uni-mr-5":{"":{"marginRight":10}},"uni-mr-n5":{"":{"marginRight":-10}},"uni-mb-5":{"":{"marginBottom":10}},"uni-mb-n5":{"":{"marginBottom":-10}},"uni-ml-5":{"":{"marginLeft":10}},"uni-ml-n5":{"":{"marginLeft":-10}},"uni-mx-5":{"":{"marginLeft":10,"marginRight":10}},"uni-mx-n5":{"":{"marginLeft":-10,"marginRight":-10}},"uni-my-5":{"":{"marginTop":10,"marginBottom":10}},"uni-my-n5":{"":{"marginTop":-10,"marginBottom":-10}},"uni-ma-5":{"":{"marginTop":10,"marginRight":10,"marginBottom":10,"marginLeft":10}},"uni-ma-n5":{"":{"marginTop":-10,"marginRight":-10,"marginBottom":-10,"marginLeft":-10}},"uni-mt-6":{"":{"marginTop":12}},"uni-mt-n6":{"":{"marginTop":-12}},"uni-mr-6":{"":{"marginRight":12}},"uni-mr-n6":{"":{"marginRight":-12}},"uni-mb-6":{"":{"marginBottom":12}},"uni-mb-n6":{"":{"marginBottom":-12}},"uni-ml-6":{"":{"marginLeft":12}},"uni-ml-n6":{"":{"marginLeft":-12}},"uni-mx-6":{"":{"marginLeft":12,"marginRight":12}},"uni-mx-n6":{"":{"marginLeft":-12,"marginRight":-12}},"uni-my-6":{"":{"marginTop":12,"marginBottom":12}},"uni-my-n6":{"":{"marginTop":-12,"marginBottom":-12}},"uni-ma-6":{"":{"marginTop":12,"marginRight":12,"marginBottom":12,"marginLeft":12}},"uni-ma-n6":{"":{"marginTop":-12,"marginRight":-12,"marginBottom":-12,"marginLeft":-12}},"uni-mt-7":{"":{"marginTop":14}},"uni-mt-n7":{"":{"marginTop":-14}},"uni-mr-7":{"":{"marginRight":14}},"uni-mr-n7":{"":{"marginRight":-14}},"uni-mb-7":{"":{"marginBottom":14}},"uni-mb-n7":{"":{"marginBottom":-14}},"uni-ml-7":{"":{"marginLeft":14}},"uni-ml-n7":{"":{"marginLeft":-14}},"uni-mx-7":{"":{"marginLeft":14,"marginRight":14}},"uni-mx-n7":{"":{"marginLeft":-14,"marginRight":-14}},"uni-my-7":{"":{"marginTop":14,"marginBottom":14}},"uni-my-n7":{"":{"marginTop":-14,"marginBottom":-14}},"uni-ma-7":{"":{"marginTop":14,"marginRight":14,"marginBottom":14,"marginLeft":14}},"uni-ma-n7":{"":{"marginTop":-14,"marginRight":-14,"marginBottom":-14,"marginLeft":-14}},"uni-mt-8":{"":{"marginTop":16}},"uni-mt-n8":{"":{"marginTop":-16}},"uni-mr-8":{"":{"marginRight":16}},"uni-mr-n8":{"":{"marginRight":-16}},"uni-mb-8":{"":{"marginBottom":16}},"uni-mb-n8":{"":{"marginBottom":-16}},"uni-ml-8":{"":{"marginLeft":16}},"uni-ml-n8":{"":{"marginLeft":-16}},"uni-mx-8":{"":{"marginLeft":16,"marginRight":16}},"uni-mx-n8":{"":{"marginLeft":-16,"marginRight":-16}},"uni-my-8":{"":{"marginTop":16,"marginBottom":16}},"uni-my-n8":{"":{"marginTop":-16,"marginBottom":-16}},"uni-ma-8":{"":{"marginTop":16,"marginRight":16,"marginBottom":16,"marginLeft":16}},"uni-ma-n8":{"":{"marginTop":-16,"marginRight":-16,"marginBottom":-16,"marginLeft":-16}},"uni-mt-9":{"":{"marginTop":18}},"uni-mt-n9":{"":{"marginTop":-18}},"uni-mr-9":{"":{"marginRight":18}},"uni-mr-n9":{"":{"marginRight":-18}},"uni-mb-9":{"":{"marginBottom":18}},"uni-mb-n9":{"":{"marginBottom":-18}},"uni-ml-9":{"":{"marginLeft":18}},"uni-ml-n9":{"":{"marginLeft":-18}},"uni-mx-9":{"":{"marginLeft":18,"marginRight":18}},"uni-mx-n9":{"":{"marginLeft":-18,"marginRight":-18}},"uni-my-9":{"":{"marginTop":18,"marginBottom":18}},"uni-my-n9":{"":{"marginTop":-18,"marginBottom":-18}},"uni-ma-9":{"":{"marginTop":18,"marginRight":18,"marginBottom":18,"marginLeft":18}},"uni-ma-n9":{"":{"marginTop":-18,"marginRight":-18,"marginBottom":-18,"marginLeft":-18}},"uni-mt-10":{"":{"marginTop":20}},"uni-mt-n10":{"":{"marginTop":-20}},"uni-mr-10":{"":{"marginRight":20}},"uni-mr-n10":{"":{"marginRight":-20}},"uni-mb-10":{"":{"marginBottom":20}},"uni-mb-n10":{"":{"marginBottom":-20}},"uni-ml-10":{"":{"marginLeft":20}},"uni-ml-n10":{"":{"marginLeft":-20}},"uni-mx-10":{"":{"marginLeft":20,"marginRight":20}},"uni-mx-n10":{"":{"marginLeft":-20,"marginRight":-20}},"uni-my-10":{"":{"marginTop":20,"marginBottom":20}},"uni-my-n10":{"":{"marginTop":-20,"marginBottom":-20}},"uni-ma-10":{"":{"marginTop":20,"marginRight":20,"marginBottom":20,"marginLeft":20}},"uni-ma-n10":{"":{"marginTop":-20,"marginRight":-20,"marginBottom":-20,"marginLeft":-20}},"uni-mt-11":{"":{"marginTop":22}},"uni-mt-n11":{"":{"marginTop":-22}},"uni-mr-11":{"":{"marginRight":22}},"uni-mr-n11":{"":{"marginRight":-22}},"uni-mb-11":{"":{"marginBottom":22}},"uni-mb-n11":{"":{"marginBottom":-22}},"uni-ml-11":{"":{"marginLeft":22}},"uni-ml-n11":{"":{"marginLeft":-22}},"uni-mx-11":{"":{"marginLeft":22,"marginRight":22}},"uni-mx-n11":{"":{"marginLeft":-22,"marginRight":-22}},"uni-my-11":{"":{"marginTop":22,"marginBottom":22}},"uni-my-n11":{"":{"marginTop":-22,"marginBottom":-22}},"uni-ma-11":{"":{"marginTop":22,"marginRight":22,"marginBottom":22,"marginLeft":22}},"uni-ma-n11":{"":{"marginTop":-22,"marginRight":-22,"marginBottom":-22,"marginLeft":-22}},"uni-mt-12":{"":{"marginTop":24}},"uni-mt-n12":{"":{"marginTop":-24}},"uni-mr-12":{"":{"marginRight":24}},"uni-mr-n12":{"":{"marginRight":-24}},"uni-mb-12":{"":{"marginBottom":24}},"uni-mb-n12":{"":{"marginBottom":-24}},"uni-ml-12":{"":{"marginLeft":24}},"uni-ml-n12":{"":{"marginLeft":-24}},"uni-mx-12":{"":{"marginLeft":24,"marginRight":24}},"uni-mx-n12":{"":{"marginLeft":-24,"marginRight":-24}},"uni-my-12":{"":{"marginTop":24,"marginBottom":24}},"uni-my-n12":{"":{"marginTop":-24,"marginBottom":-24}},"uni-ma-12":{"":{"marginTop":24,"marginRight":24,"marginBottom":24,"marginLeft":24}},"uni-ma-n12":{"":{"marginTop":-24,"marginRight":-24,"marginBottom":-24,"marginLeft":-24}},"uni-mt-13":{"":{"marginTop":26}},"uni-mt-n13":{"":{"marginTop":-26}},"uni-mr-13":{"":{"marginRight":26}},"uni-mr-n13":{"":{"marginRight":-26}},"uni-mb-13":{"":{"marginBottom":26}},"uni-mb-n13":{"":{"marginBottom":-26}},"uni-ml-13":{"":{"marginLeft":26}},"uni-ml-n13":{"":{"marginLeft":-26}},"uni-mx-13":{"":{"marginLeft":26,"marginRight":26}},"uni-mx-n13":{"":{"marginLeft":-26,"marginRight":-26}},"uni-my-13":{"":{"marginTop":26,"marginBottom":26}},"uni-my-n13":{"":{"marginTop":-26,"marginBottom":-26}},"uni-ma-13":{"":{"marginTop":26,"marginRight":26,"marginBottom":26,"marginLeft":26}},"uni-ma-n13":{"":{"marginTop":-26,"marginRight":-26,"marginBottom":-26,"marginLeft":-26}},"uni-mt-14":{"":{"marginTop":28}},"uni-mt-n14":{"":{"marginTop":-28}},"uni-mr-14":{"":{"marginRight":28}},"uni-mr-n14":{"":{"marginRight":-28}},"uni-mb-14":{"":{"marginBottom":28}},"uni-mb-n14":{"":{"marginBottom":-28}},"uni-ml-14":{"":{"marginLeft":28}},"uni-ml-n14":{"":{"marginLeft":-28}},"uni-mx-14":{"":{"marginLeft":28,"marginRight":28}},"uni-mx-n14":{"":{"marginLeft":-28,"marginRight":-28}},"uni-my-14":{"":{"marginTop":28,"marginBottom":28}},"uni-my-n14":{"":{"marginTop":-28,"marginBottom":-28}},"uni-ma-14":{"":{"marginTop":28,"marginRight":28,"marginBottom":28,"marginLeft":28}},"uni-ma-n14":{"":{"marginTop":-28,"marginRight":-28,"marginBottom":-28,"marginLeft":-28}},"uni-mt-15":{"":{"marginTop":30}},"uni-mt-n15":{"":{"marginTop":-30}},"uni-mr-15":{"":{"marginRight":30}},"uni-mr-n15":{"":{"marginRight":-30}},"uni-mb-15":{"":{"marginBottom":30}},"uni-mb-n15":{"":{"marginBottom":-30}},"uni-ml-15":{"":{"marginLeft":30}},"uni-ml-n15":{"":{"marginLeft":-30}},"uni-mx-15":{"":{"marginLeft":30,"marginRight":30}},"uni-mx-n15":{"":{"marginLeft":-30,"marginRight":-30}},"uni-my-15":{"":{"marginTop":30,"marginBottom":30}},"uni-my-n15":{"":{"marginTop":-30,"marginBottom":-30}},"uni-ma-15":{"":{"marginTop":30,"marginRight":30,"marginBottom":30,"marginLeft":30}},"uni-ma-n15":{"":{"marginTop":-30,"marginRight":-30,"marginBottom":-30,"marginLeft":-30}},"uni-mt-16":{"":{"marginTop":32}},"uni-mt-n16":{"":{"marginTop":-32}},"uni-mr-16":{"":{"marginRight":32}},"uni-mr-n16":{"":{"marginRight":-32}},"uni-mb-16":{"":{"marginBottom":32}},"uni-mb-n16":{"":{"marginBottom":-32}},"uni-ml-16":{"":{"marginLeft":32}},"uni-ml-n16":{"":{"marginLeft":-32}},"uni-mx-16":{"":{"marginLeft":32,"marginRight":32}},"uni-mx-n16":{"":{"marginLeft":-32,"marginRight":-32}},"uni-my-16":{"":{"marginTop":32,"marginBottom":32}},"uni-my-n16":{"":{"marginTop":-32,"marginBottom":-32}},"uni-ma-16":{"":{"marginTop":32,"marginRight":32,"marginBottom":32,"marginLeft":32}},"uni-ma-n16":{"":{"marginTop":-32,"marginRight":-32,"marginBottom":-32,"marginLeft":-32}},"uni-pt-0":{"":{"paddingTop":0}},"uni-pt-n0":{"":{"paddingTop":0}},"uni-pr-0":{"":{"paddingRight":0}},"uni-pr-n0":{"":{"paddingRight":0}},"uni-pb-0":{"":{"paddingBottom":0}},"uni-pb-n0":{"":{"paddingBottom":0}},"uni-pl-0":{"":{"paddingLeft":0}},"uni-pl-n0":{"":{"paddingLeft":0}},"uni-px-0":{"":{"paddingLeft":0,"paddingRight":0}},"uni-px-n0":{"":{"paddingLeft":0,"paddingRight":0}},"uni-py-0":{"":{"paddingTop":0,"paddingBottom":0}},"uni-py-n0":{"":{"paddingTop":0,"paddingBottom":0}},"uni-pa-0":{"":{"paddingTop":0,"paddingRight":0,"paddingBottom":0,"paddingLeft":0}},"uni-pa-n0":{"":{"paddingTop":0,"paddingRight":0,"paddingBottom":0,"paddingLeft":0}},"uni-pt-1":{"":{"paddingTop":2}},"uni-pt-n1":{"":{"paddingTop":-2}},"uni-pr-1":{"":{"paddingRight":2}},"uni-pr-n1":{"":{"paddingRight":-2}},"uni-pb-1":{"":{"paddingBottom":2}},"uni-pb-n1":{"":{"paddingBottom":-2}},"uni-pl-1":{"":{"paddingLeft":2}},"uni-pl-n1":{"":{"paddingLeft":-2}},"uni-px-1":{"":{"paddingLeft":2,"paddingRight":2}},"uni-px-n1":{"":{"paddingLeft":-2,"paddingRight":-2}},"uni-py-1":{"":{"paddingTop":2,"paddingBottom":2}},"uni-py-n1":{"":{"paddingTop":-2,"paddingBottom":-2}},"uni-pa-1":{"":{"paddingTop":2,"paddingRight":2,"paddingBottom":2,"paddingLeft":2}},"uni-pa-n1":{"":{"paddingTop":-2,"paddingRight":-2,"paddingBottom":-2,"paddingLeft":-2}},"uni-pt-2":{"":{"paddingTop":4}},"uni-pt-n2":{"":{"paddingTop":-4}},"uni-pr-2":{"":{"paddingRight":4}},"uni-pr-n2":{"":{"paddingRight":-4}},"uni-pb-2":{"":{"paddingBottom":4}},"uni-pb-n2":{"":{"paddingBottom":-4}},"uni-pl-2":{"":{"paddingLeft":4}},"uni-pl-n2":{"":{"paddingLeft":-4}},"uni-px-2":{"":{"paddingLeft":4,"paddingRight":4}},"uni-px-n2":{"":{"paddingLeft":-4,"paddingRight":-4}},"uni-py-2":{"":{"paddingTop":4,"paddingBottom":4}},"uni-py-n2":{"":{"paddingTop":-4,"paddingBottom":-4}},"uni-pa-2":{"":{"paddingTop":4,"paddingRight":4,"paddingBottom":4,"paddingLeft":4}},"uni-pa-n2":{"":{"paddingTop":-4,"paddingRight":-4,"paddingBottom":-4,"paddingLeft":-4}},"uni-pt-3":{"":{"paddingTop":6}},"uni-pt-n3":{"":{"paddingTop":-6}},"uni-pr-3":{"":{"paddingRight":6}},"uni-pr-n3":{"":{"paddingRight":-6}},"uni-pb-3":{"":{"paddingBottom":6}},"uni-pb-n3":{"":{"paddingBottom":-6}},"uni-pl-3":{"":{"paddingLeft":6}},"uni-pl-n3":{"":{"paddingLeft":-6}},"uni-px-3":{"":{"paddingLeft":6,"paddingRight":6}},"uni-px-n3":{"":{"paddingLeft":-6,"paddingRight":-6}},"uni-py-3":{"":{"paddingTop":6,"paddingBottom":6}},"uni-py-n3":{"":{"paddingTop":-6,"paddingBottom":-6}},"uni-pa-3":{"":{"paddingTop":6,"paddingRight":6,"paddingBottom":6,"paddingLeft":6}},"uni-pa-n3":{"":{"paddingTop":-6,"paddingRight":-6,"paddingBottom":-6,"paddingLeft":-6}},"uni-pt-4":{"":{"paddingTop":8}},"uni-pt-n4":{"":{"paddingTop":-8}},"uni-pr-4":{"":{"paddingRight":8}},"uni-pr-n4":{"":{"paddingRight":-8}},"uni-pb-4":{"":{"paddingBottom":8}},"uni-pb-n4":{"":{"paddingBottom":-8}},"uni-pl-4":{"":{"paddingLeft":8}},"uni-pl-n4":{"":{"paddingLeft":-8}},"uni-px-4":{"":{"paddingLeft":8,"paddingRight":8}},"uni-px-n4":{"":{"paddingLeft":-8,"paddingRight":-8}},"uni-py-4":{"":{"paddingTop":8,"paddingBottom":8}},"uni-py-n4":{"":{"paddingTop":-8,"paddingBottom":-8}},"uni-pa-4":{"":{"paddingTop":8,"paddingRight":8,"paddingBottom":8,"paddingLeft":8}},"uni-pa-n4":{"":{"paddingTop":-8,"paddingRight":-8,"paddingBottom":-8,"paddingLeft":-8}},"uni-pt-5":{"":{"paddingTop":10}},"uni-pt-n5":{"":{"paddingTop":-10}},"uni-pr-5":{"":{"paddingRight":10}},"uni-pr-n5":{"":{"paddingRight":-10}},"uni-pb-5":{"":{"paddingBottom":10}},"uni-pb-n5":{"":{"paddingBottom":-10}},"uni-pl-5":{"":{"paddingLeft":10}},"uni-pl-n5":{"":{"paddingLeft":-10}},"uni-px-5":{"":{"paddingLeft":10,"paddingRight":10}},"uni-px-n5":{"":{"paddingLeft":-10,"paddingRight":-10}},"uni-py-5":{"":{"paddingTop":10,"paddingBottom":10}},"uni-py-n5":{"":{"paddingTop":-10,"paddingBottom":-10}},"uni-pa-5":{"":{"paddingTop":10,"paddingRight":10,"paddingBottom":10,"paddingLeft":10}},"uni-pa-n5":{"":{"paddingTop":-10,"paddingRight":-10,"paddingBottom":-10,"paddingLeft":-10}},"uni-pt-6":{"":{"paddingTop":12}},"uni-pt-n6":{"":{"paddingTop":-12}},"uni-pr-6":{"":{"paddingRight":12}},"uni-pr-n6":{"":{"paddingRight":-12}},"uni-pb-6":{"":{"paddingBottom":12}},"uni-pb-n6":{"":{"paddingBottom":-12}},"uni-pl-6":{"":{"paddingLeft":12}},"uni-pl-n6":{"":{"paddingLeft":-12}},"uni-px-6":{"":{"paddingLeft":12,"paddingRight":12}},"uni-px-n6":{"":{"paddingLeft":-12,"paddingRight":-12}},"uni-py-6":{"":{"paddingTop":12,"paddingBottom":12}},"uni-py-n6":{"":{"paddingTop":-12,"paddingBottom":-12}},"uni-pa-6":{"":{"paddingTop":12,"paddingRight":12,"paddingBottom":12,"paddingLeft":12}},"uni-pa-n6":{"":{"paddingTop":-12,"paddingRight":-12,"paddingBottom":-12,"paddingLeft":-12}},"uni-pt-7":{"":{"paddingTop":14}},"uni-pt-n7":{"":{"paddingTop":-14}},"uni-pr-7":{"":{"paddingRight":14}},"uni-pr-n7":{"":{"paddingRight":-14}},"uni-pb-7":{"":{"paddingBottom":14}},"uni-pb-n7":{"":{"paddingBottom":-14}},"uni-pl-7":{"":{"paddingLeft":14}},"uni-pl-n7":{"":{"paddingLeft":-14}},"uni-px-7":{"":{"paddingLeft":14,"paddingRight":14}},"uni-px-n7":{"":{"paddingLeft":-14,"paddingRight":-14}},"uni-py-7":{"":{"paddingTop":14,"paddingBottom":14}},"uni-py-n7":{"":{"paddingTop":-14,"paddingBottom":-14}},"uni-pa-7":{"":{"paddingTop":14,"paddingRight":14,"paddingBottom":14,"paddingLeft":14}},"uni-pa-n7":{"":{"paddingTop":-14,"paddingRight":-14,"paddingBottom":-14,"paddingLeft":-14}},"uni-pt-8":{"":{"paddingTop":16}},"uni-pt-n8":{"":{"paddingTop":-16}},"uni-pr-8":{"":{"paddingRight":16}},"uni-pr-n8":{"":{"paddingRight":-16}},"uni-pb-8":{"":{"paddingBottom":16}},"uni-pb-n8":{"":{"paddingBottom":-16}},"uni-pl-8":{"":{"paddingLeft":16}},"uni-pl-n8":{"":{"paddingLeft":-16}},"uni-px-8":{"":{"paddingLeft":16,"paddingRight":16}},"uni-px-n8":{"":{"paddingLeft":-16,"paddingRight":-16}},"uni-py-8":{"":{"paddingTop":16,"paddingBottom":16}},"uni-py-n8":{"":{"paddingTop":-16,"paddingBottom":-16}},"uni-pa-8":{"":{"paddingTop":16,"paddingRight":16,"paddingBottom":16,"paddingLeft":16}},"uni-pa-n8":{"":{"paddingTop":-16,"paddingRight":-16,"paddingBottom":-16,"paddingLeft":-16}},"uni-pt-9":{"":{"paddingTop":18}},"uni-pt-n9":{"":{"paddingTop":-18}},"uni-pr-9":{"":{"paddingRight":18}},"uni-pr-n9":{"":{"paddingRight":-18}},"uni-pb-9":{"":{"paddingBottom":18}},"uni-pb-n9":{"":{"paddingBottom":-18}},"uni-pl-9":{"":{"paddingLeft":18}},"uni-pl-n9":{"":{"paddingLeft":-18}},"uni-px-9":{"":{"paddingLeft":18,"paddingRight":18}},"uni-px-n9":{"":{"paddingLeft":-18,"paddingRight":-18}},"uni-py-9":{"":{"paddingTop":18,"paddingBottom":18}},"uni-py-n9":{"":{"paddingTop":-18,"paddingBottom":-18}},"uni-pa-9":{"":{"paddingTop":18,"paddingRight":18,"paddingBottom":18,"paddingLeft":18}},"uni-pa-n9":{"":{"paddingTop":-18,"paddingRight":-18,"paddingBottom":-18,"paddingLeft":-18}},"uni-pt-10":{"":{"paddingTop":20}},"uni-pt-n10":{"":{"paddingTop":-20}},"uni-pr-10":{"":{"paddingRight":20}},"uni-pr-n10":{"":{"paddingRight":-20}},"uni-pb-10":{"":{"paddingBottom":20}},"uni-pb-n10":{"":{"paddingBottom":-20}},"uni-pl-10":{"":{"paddingLeft":20}},"uni-pl-n10":{"":{"paddingLeft":-20}},"uni-px-10":{"":{"paddingLeft":20,"paddingRight":20}},"uni-px-n10":{"":{"paddingLeft":-20,"paddingRight":-20}},"uni-py-10":{"":{"paddingTop":20,"paddingBottom":20}},"uni-py-n10":{"":{"paddingTop":-20,"paddingBottom":-20}},"uni-pa-10":{"":{"paddingTop":20,"paddingRight":20,"paddingBottom":20,"paddingLeft":20}},"uni-pa-n10":{"":{"paddingTop":-20,"paddingRight":-20,"paddingBottom":-20,"paddingLeft":-20}},"uni-pt-11":{"":{"paddingTop":22}},"uni-pt-n11":{"":{"paddingTop":-22}},"uni-pr-11":{"":{"paddingRight":22}},"uni-pr-n11":{"":{"paddingRight":-22}},"uni-pb-11":{"":{"paddingBottom":22}},"uni-pb-n11":{"":{"paddingBottom":-22}},"uni-pl-11":{"":{"paddingLeft":22}},"uni-pl-n11":{"":{"paddingLeft":-22}},"uni-px-11":{"":{"paddingLeft":22,"paddingRight":22}},"uni-px-n11":{"":{"paddingLeft":-22,"paddingRight":-22}},"uni-py-11":{"":{"paddingTop":22,"paddingBottom":22}},"uni-py-n11":{"":{"paddingTop":-22,"paddingBottom":-22}},"uni-pa-11":{"":{"paddingTop":22,"paddingRight":22,"paddingBottom":22,"paddingLeft":22}},"uni-pa-n11":{"":{"paddingTop":-22,"paddingRight":-22,"paddingBottom":-22,"paddingLeft":-22}},"uni-pt-12":{"":{"paddingTop":24}},"uni-pt-n12":{"":{"paddingTop":-24}},"uni-pr-12":{"":{"paddingRight":24}},"uni-pr-n12":{"":{"paddingRight":-24}},"uni-pb-12":{"":{"paddingBottom":24}},"uni-pb-n12":{"":{"paddingBottom":-24}},"uni-pl-12":{"":{"paddingLeft":24}},"uni-pl-n12":{"":{"paddingLeft":-24}},"uni-px-12":{"":{"paddingLeft":24,"paddingRight":24}},"uni-px-n12":{"":{"paddingLeft":-24,"paddingRight":-24}},"uni-py-12":{"":{"paddingTop":24,"paddingBottom":24}},"uni-py-n12":{"":{"paddingTop":-24,"paddingBottom":-24}},"uni-pa-12":{"":{"paddingTop":24,"paddingRight":24,"paddingBottom":24,"paddingLeft":24}},"uni-pa-n12":{"":{"paddingTop":-24,"paddingRight":-24,"paddingBottom":-24,"paddingLeft":-24}},"uni-pt-13":{"":{"paddingTop":26}},"uni-pt-n13":{"":{"paddingTop":-26}},"uni-pr-13":{"":{"paddingRight":26}},"uni-pr-n13":{"":{"paddingRight":-26}},"uni-pb-13":{"":{"paddingBottom":26}},"uni-pb-n13":{"":{"paddingBottom":-26}},"uni-pl-13":{"":{"paddingLeft":26}},"uni-pl-n13":{"":{"paddingLeft":-26}},"uni-px-13":{"":{"paddingLeft":26,"paddingRight":26}},"uni-px-n13":{"":{"paddingLeft":-26,"paddingRight":-26}},"uni-py-13":{"":{"paddingTop":26,"paddingBottom":26}},"uni-py-n13":{"":{"paddingTop":-26,"paddingBottom":-26}},"uni-pa-13":{"":{"paddingTop":26,"paddingRight":26,"paddingBottom":26,"paddingLeft":26}},"uni-pa-n13":{"":{"paddingTop":-26,"paddingRight":-26,"paddingBottom":-26,"paddingLeft":-26}},"uni-pt-14":{"":{"paddingTop":28}},"uni-pt-n14":{"":{"paddingTop":-28}},"uni-pr-14":{"":{"paddingRight":28}},"uni-pr-n14":{"":{"paddingRight":-28}},"uni-pb-14":{"":{"paddingBottom":28}},"uni-pb-n14":{"":{"paddingBottom":-28}},"uni-pl-14":{"":{"paddingLeft":28}},"uni-pl-n14":{"":{"paddingLeft":-28}},"uni-px-14":{"":{"paddingLeft":28,"paddingRight":28}},"uni-px-n14":{"":{"paddingLeft":-28,"paddingRight":-28}},"uni-py-14":{"":{"paddingTop":28,"paddingBottom":28}},"uni-py-n14":{"":{"paddingTop":-28,"paddingBottom":-28}},"uni-pa-14":{"":{"paddingTop":28,"paddingRight":28,"paddingBottom":28,"paddingLeft":28}},"uni-pa-n14":{"":{"paddingTop":-28,"paddingRight":-28,"paddingBottom":-28,"paddingLeft":-28}},"uni-pt-15":{"":{"paddingTop":30}},"uni-pt-n15":{"":{"paddingTop":-30}},"uni-pr-15":{"":{"paddingRight":30}},"uni-pr-n15":{"":{"paddingRight":-30}},"uni-pb-15":{"":{"paddingBottom":30}},"uni-pb-n15":{"":{"paddingBottom":-30}},"uni-pl-15":{"":{"paddingLeft":30}},"uni-pl-n15":{"":{"paddingLeft":-30}},"uni-px-15":{"":{"paddingLeft":30,"paddingRight":30}},"uni-px-n15":{"":{"paddingLeft":-30,"paddingRight":-30}},"uni-py-15":{"":{"paddingTop":30,"paddingBottom":30}},"uni-py-n15":{"":{"paddingTop":-30,"paddingBottom":-30}},"uni-pa-15":{"":{"paddingTop":30,"paddingRight":30,"paddingBottom":30,"paddingLeft":30}},"uni-pa-n15":{"":{"paddingTop":-30,"paddingRight":-30,"paddingBottom":-30,"paddingLeft":-30}},"uni-pt-16":{"":{"paddingTop":32}},"uni-pt-n16":{"":{"paddingTop":-32}},"uni-pr-16":{"":{"paddingRight":32}},"uni-pr-n16":{"":{"paddingRight":-32}},"uni-pb-16":{"":{"paddingBottom":32}},"uni-pb-n16":{"":{"paddingBottom":-32}},"uni-pl-16":{"":{"paddingLeft":32}},"uni-pl-n16":{"":{"paddingLeft":-32}},"uni-px-16":{"":{"paddingLeft":32,"paddingRight":32}},"uni-px-n16":{"":{"paddingLeft":-32,"paddingRight":-32}},"uni-py-16":{"":{"paddingTop":32,"paddingBottom":32}},"uni-py-n16":{"":{"paddingTop":-32,"paddingBottom":-32}},"uni-pa-16":{"":{"paddingTop":32,"paddingRight":32,"paddingBottom":32,"paddingLeft":32}},"uni-pa-n16":{"":{"paddingTop":-32,"paddingRight":-32,"paddingBottom":-32,"paddingLeft":-32}},"uni-radius-0":{"":{"borderRadius":0}},"uni-radius":{"":{"borderRadius":5}},"uni-radius-lg":{"":{"borderRadius":10}},"uni-radius-xl":{"":{"borderRadius":30}},"uni-radius-pill":{"":{"borderRadius":9999}},"uni-radius-circle":{"":{"borderRadius":50}},"uni-radius-t-0":{"":{"borderTopLeftRadius":0,"borderTopRightRadius":0}},"uni-radius-t":{"":{"borderTopLeftRadius":5,"borderTopRightRadius":5}},"uni-radius-t-lg":{"":{"borderTopLeftRadius":10,"borderTopRightRadius":10}},"uni-radius-t-xl":{"":{"borderTopLeftRadius":30,"borderTopRightRadius":30}},"uni-radius-t-pill":{"":{"borderTopLeftRadius":9999,"borderTopRightRadius":9999}},"uni-radius-t-circle":{"":{"borderTopLeftRadius":50,"borderTopRightRadius":50}},"uni-radius-r-0":{"":{"borderTopRightRadius":0,"borderBottomRightRadius":0}},"uni-radius-r":{"":{"borderTopRightRadius":5,"borderBottomRightRadius":5}},"uni-radius-r-lg":{"":{"borderTopRightRadius":10,"borderBottomRightRadius":10}},"uni-radius-r-xl":{"":{"borderTopRightRadius":30,"borderBottomRightRadius":30}},"uni-radius-r-pill":{"":{"borderTopRightRadius":9999,"borderBottomRightRadius":9999}},"uni-radius-r-circle":{"":{"borderTopRightRadius":50,"borderBottomRightRadius":50}},"uni-radius-b-0":{"":{"borderBottomLeftRadius":0,"borderBottomRightRadius":0}},"uni-radius-b":{"":{"borderBottomLeftRadius":5,"borderBottomRightRadius":5}},"uni-radius-b-lg":{"":{"borderBottomLeftRadius":10,"borderBottomRightRadius":10}},"uni-radius-b-xl":{"":{"borderBottomLeftRadius":30,"borderBottomRightRadius":30}},"uni-radius-b-pill":{"":{"borderBottomLeftRadius":9999,"borderBottomRightRadius":9999}},"uni-radius-b-circle":{"":{"borderBottomLeftRadius":50,"borderBottomRightRadius":50}},"uni-radius-l-0":{"":{"borderTopLeftRadius":0,"borderBottomLeftRadius":0}},"uni-radius-l":{"":{"borderTopLeftRadius":5,"borderBottomLeftRadius":5}},"uni-radius-l-lg":{"":{"borderTopLeftRadius":10,"borderBottomLeftRadius":10}},"uni-radius-l-xl":{"":{"borderTopLeftRadius":30,"borderBottomLeftRadius":30}},"uni-radius-l-pill":{"":{"borderTopLeftRadius":9999,"borderBottomLeftRadius":9999}},"uni-radius-l-circle":{"":{"borderTopLeftRadius":50,"borderBottomLeftRadius":50}},"uni-radius-tl-0":{"":{"borderTopLeftRadius":0}},"uni-radius-tl":{"":{"borderTopLeftRadius":5}},"uni-radius-tl-lg":{"":{"borderTopLeftRadius":10}},"uni-radius-tl-xl":{"":{"borderTopLeftRadius":30}},"uni-radius-tl-pill":{"":{"borderTopLeftRadius":9999}},"uni-radius-tl-circle":{"":{"borderTopLeftRadius":50}},"uni-radius-tr-0":{"":{"borderTopRightRadius":0}},"uni-radius-tr":{"":{"borderTopRightRadius":5}},"uni-radius-tr-lg":{"":{"borderTopRightRadius":10}},"uni-radius-tr-xl":{"":{"borderTopRightRadius":30}},"uni-radius-tr-pill":{"":{"borderTopRightRadius":9999}},"uni-radius-tr-circle":{"":{"borderTopRightRadius":50}},"uni-radius-br-0":{"":{"borderBottomRightRadius":0}},"uni-radius-br":{"":{"borderBottomRightRadius":5}},"uni-radius-br-lg":{"":{"borderBottomRightRadius":10}},"uni-radius-br-xl":{"":{"borderBottomRightRadius":30}},"uni-radius-br-pill":{"":{"borderBottomRightRadius":9999}},"uni-radius-br-circle":{"":{"borderBottomRightRadius":50}},"uni-radius-bl-0":{"":{"borderBottomLeftRadius":0}},"uni-radius-bl":{"":{"borderBottomLeftRadius":5}},"uni-radius-bl-lg":{"":{"borderBottomLeftRadius":10}},"uni-radius-bl-xl":{"":{"borderBottomLeftRadius":30}},"uni-radius-bl-pill":{"":{"borderBottomLeftRadius":9999}},"uni-radius-bl-circle":{"":{"borderBottomLeftRadius":50}},"uni-h1":{".container ":{"fontSize":32,"fontWeight":"300","lineHeight":50}},"uni-h2":{".container ":{"fontSize":28,"fontWeight":"300","lineHeight":40}},"uni-h3":{".container ":{"fontSize":24,"fontWeight":"400","lineHeight":32}},"uni-h4":{".container ":{"fontSize":20,"fontWeight":"400","lineHeight":30}},"uni-h5":{".container ":{"fontSize":16,"fontWeight":"400","lineHeight":24}},"uni-h6":{".container ":{"fontSize":14,"fontWeight":"500","lineHeight":18}},"uni-subtitle":{".container ":{"fontSize":12,"fontWeight":"400","lineHeight":20}},"uni-body":{".container ":{"fontSize":14,"fontWeight":"400","lineHeight":22}},"uni-caption":{".container ":{"fontSize":12,"fontWeight":"400","lineHeight":20}}}];//styles + const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"欧轩收银端","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"欧轩收银端","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.99","entryPagePath":"pages/login/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}}; + const __uniRoutes = [{"path":"pages/login/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/index/standby","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/index/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/pay/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/login/success","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); + __uniConfig.styles=[];//styles __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}}); diff --git a/app/src/main/assets/apps/__UNI__3B4D40B/www/app-renderjs.js b/app/src/main/assets/apps/__UNI__3B4D40B/www/app-renderjs.js index 187bb22..3367911 100644 --- a/app/src/main/assets/apps/__UNI__3B4D40B/www/app-renderjs.js +++ b/app/src/main/assets/apps/__UNI__3B4D40B/www/app-renderjs.js @@ -1,4 +1,45 @@ var __renderjsModules={}; -__renderjsModules["39c049d8"]=(()=>{var l=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var I=(i,t)=>{for(var h in t)l(i,h,{get:t[h],enumerable:!0})},q=(i,t,h,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of D(t))!F.call(i,s)&&s!==h&&l(i,s,{get:()=>t[s],enumerable:!(a=A(t,s))||a.enumerable});return i};var E=i=>q(l({},"__esModule",{value:!0}),i);var V={};I(V,{default:()=>S});function v({x:i,y:t,vx:h,vy:a,canvasWidth:s,canvasHeight:n,ctx:c}){this.canvasWidth=s,this.canvasHeight=n,this.ctx=c,this.x=i,this.y=t,this.vx=h,this.vy=a,this.radius=5}v.prototype.draw=function(){this.ctx.beginPath(),this.ctx.fillStyle="#007AFF",this.ctx.arc(this.x,this.y,this.radius,0,2*Math.PI),this.ctx.closePath(),this.ctx.fill()};v.prototype.move=function(){if(this.x+=this.vx,this.y+=this.vy,this.xthis.canvasWidth-this.radius&&(this.vx=-Math.abs(this.vx)),this.ythis.canvasWidth-this.radius&&(this.vy=-Math.abs(this.vy))};function H(i,t){return Math.pow(Math.pow(i,2)+Math.pow(t,2),.5)}var S={methods:{start(i,t,h,a){let s=a.getDataset().width,n=a.getDataset().height,c=document.querySelectorAll(".canvas>canvas")[0],d=c.getContext("2d"),u=3,x=[],y=3,f=20;for(let e=0;e{var H=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var Pe=Object.prototype.hasOwnProperty;var Ie=(e,t)=>{for(var n in t)H(e,n,{get:t[n],enumerable:!0})},Me=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ke(t))!Pe.call(e,o)&&o!==n&&H(e,o,{get:()=>t[o],enumerable:!(r=Re(t,o))||r.enumerable});return e};var $e=e=>Me(H({},"__esModule",{value:!0}),e);var Tt={};Ie(Tt,{default:()=>wt});function U(e,t){let n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}var Le=Object.prototype.hasOwnProperty,E=(e,t)=>Le.call(e,t),g=Array.isArray,y=e=>re(e)==="[object Map]";var Fe=e=>typeof e=="string",N=e=>typeof e=="symbol",v=e=>e!==null&&typeof e=="object";var He=Object.prototype.toString,re=e=>He.call(e),oe=e=>re(e).slice(8,-1);var T=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var D=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ue=/-(\w)/g,xt=D(e=>e.replace(Ue,(t,n)=>n?n.toUpperCase():"")),je=/\B([A-Z])/g,Vt=D(e=>e.replace(je,"-$1").toLowerCase()),Be=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),At=D(e=>e?`on${Be(e)}`:""),O=(e,t)=>!Object.is(e,t);var Ke="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Ct=U(Ke+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var se;function We(e,t){let n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}var R=!0,j=0,fe=[];function z(){fe.push(R),R=!1}function q(){let e=fe.pop();R=e===void 0?!0:e}function J(){j++}function X(){for(j--;!j&&B.length;)B.shift()()}function Ye(e,t,n){var r;if(t.get(e)!==e._trackId){t.set(e,e._trackId);let o=e.deps[e._depsLength];o!==t?(o&&We(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}var B=[];function Ge(e,t,n){var r;J();for(let o of e.keys())if(e.get(o)===o._trackId){if(o._dirtyLevel{let n=new Map;return n.cleanup=e,n.computed=t,n},K=new WeakMap,_=Symbol(""),W=Symbol("");function f(e,t,n){if(R&&se){let r=K.get(e);r||K.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=ze(()=>r.delete(n))),Ye(se,o,void 0)}}function d(e,t,n,r,o,s){let i=K.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&g(e)){let a=Number(r);i.forEach((p,u)=>{(u==="length"||!N(u)&&u>=a)&&l.push(p)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":g(e)?T(n)&&l.push(i.get("length")):(l.push(i.get(_)),y(e)&&l.push(i.get(W)));break;case"delete":g(e)||(l.push(i.get(_)),y(e)&&l.push(i.get(W)));break;case"set":y(e)&&l.push(i.get(_));break}J();for(let a of l)a&&Ge(a,2,void 0);X()}var qe=U("__proto__,__v_isRef,__isVue"),pe=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(N)),ie=Je();function Je(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){let r=c(this);for(let s=0,i=this.length;s{e[t]=function(...n){z(),J();let r=c(this)[t].apply(this,n);return X(),q(),r}}),e}function Xe(e){let t=c(this);return f(t,"has",e),t.hasOwnProperty(e)}var k=class{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){let o=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?ct:ge:s?lt:he).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let i=g(t);if(!o){if(i&&E(ie,n))return Reflect.get(ie,n,r);if(n==="hasOwnProperty")return Xe}let l=Reflect.get(t,n,r);return(N(n)?pe.has(n):qe(n))||(o||f(t,"get",n),s)?l:I(l)?i&&T(n)?l:l.value:v(l)?o?me(l):Q(l):l}},Y=class extends k{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._shallow){let a=P(s);if(!Ee(r)&&!P(r)&&(s=c(s),r=c(r)),!g(t)&&I(s)&&!I(r))return a?!1:(s.value=r,!0)}let i=g(t)&&T(n)?Number(n)e,M=e=>Reflect.getPrototypeOf(e);function x(e,t,n=!1,r=!1){e=e.__v_raw;let o=c(e),s=c(t);n||(O(t,s)&&f(o,"get",t),f(o,"get",s));let{has:i}=M(o),l=r?Z:n?te:ee;if(i.call(o,t))return l(e.get(t));if(i.call(o,s))return l(e.get(s));e!==o&&e.get(t)}function V(e,t=!1){let n=this.__v_raw,r=c(n),o=c(e);return t||(O(e,o)&&f(r,"has",e),f(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function A(e,t=!1){return e=e.__v_raw,!t&&f(c(e),"iterate",_),Reflect.get(e,"size",e)}function le(e){e=c(e);let t=c(this);return M(t).has.call(t,e)||(t.add(e),d(t,"add",e,e)),this}function ce(e,t){t=c(t);let n=c(this),{has:r,get:o}=M(n),s=r.call(n,e);s||(e=c(e),s=r.call(n,e));let i=o.call(n,e);return n.set(e,t),s?O(t,i)&&d(n,"set",e,t,i):d(n,"add",e,t),this}function ae(e){let t=c(this),{has:n,get:r}=M(t),o=n.call(t,e);o||(e=c(e),o=n.call(t,e));let s=r?r.call(t,e):void 0,i=t.delete(e);return o&&d(t,"delete",e,void 0,s),i}function ue(){let e=c(this),t=e.size!==0,n=void 0,r=e.clear();return t&&d(e,"clear",void 0,void 0,n),r}function C(e,t){return function(r,o){let s=this,i=s.__v_raw,l=c(i),a=t?Z:e?te:ee;return!e&&f(l,"iterate",_),i.forEach((p,u)=>r.call(o,a(p),a(u),s))}}function S(e,t,n){return function(...r){let o=this.__v_raw,s=c(o),i=y(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,p=o[e](...r),u=n?Z:t?te:ee;return!t&&f(s,"iterate",a?W:_),{next(){let{value:w,done:F}=p.next();return F?{value:w,done:F}:{value:l?[u(w[0]),u(w[1])]:u(w),done:F}},[Symbol.iterator](){return this}}}}function m(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function et(){let e={get(s){return x(this,s)},get size(){return A(this)},has:V,add:le,set:ce,delete:ae,clear:ue,forEach:C(!1,!1)},t={get(s){return x(this,s,!1,!0)},get size(){return A(this)},has:V,add:le,set:ce,delete:ae,clear:ue,forEach:C(!1,!0)},n={get(s){return x(this,s,!0)},get size(){return A(this,!0)},has(s){return V.call(this,s,!0)},add:m("add"),set:m("set"),delete:m("delete"),clear:m("clear"),forEach:C(!0,!1)},r={get(s){return x(this,s,!0,!0)},get size(){return A(this,!0)},has(s){return V.call(this,s,!0)},add:m("add"),set:m("set"),delete:m("delete"),clear:m("clear"),forEach:C(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=S(s,!1,!1),n[s]=S(s,!0,!1),t[s]=S(s,!1,!0),r[s]=S(s,!0,!0)}),[e,n,t,r]}var[tt,nt,rt,ot]=et();function de(e,t){let n=t?e?ot:rt:e?nt:tt;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(E(n,o)&&o in r?n:r,o,s)}var st={get:de(!1,!1)};var it={get:de(!0,!1)};var he=new WeakMap,lt=new WeakMap,ge=new WeakMap,ct=new WeakMap;function at(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ut(e){return e.__v_skip||!Object.isExtensible(e)?0:at(oe(e))}function Q(e){return P(e)?e:_e(e,!1,Ze,st,he)}function me(e){return _e(e,!0,Qe,it,ge)}function _e(e,t,n,r,o){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let s=o.get(e);if(s)return s;let i=ut(e);if(i===0)return e;let l=new Proxy(e,i===2?r:n);return o.set(e,l),l}function P(e){return!!(e&&e.__v_isReadonly)}function Ee(e){return!!(e&&e.__v_isShallow)}function c(e){let t=e&&e.__v_raw;return t?c(t):e}var ee=e=>v(e)?Q(e):e,te=e=>v(e)?me(e):e;function I(e){return!!(e&&e.__v_isRef===!0)}function Ne(e,t){let n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}var ve=()=>!1;var ft=Array.isArray;var b=e=>typeof e=="function";var Oe=e=>e!==null&&typeof e=="object",be=e=>(Oe(e)||b(e))&&b(e.then)&&b(e.catch);var $=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pt=/-(\w)/g,dt=$(e=>e.replace(pt,(t,n)=>n?n.toUpperCase():"")),ht=/\B([A-Z])/g,gt=$(e=>e.replace(ht,"-$1").toLowerCase()),we=$(e=>e.charAt(0).toUpperCase()+e.slice(1)),mt=$(e=>e?`on${we(e)}`:"");var ye,Te=()=>ye||(ye=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});var _t="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Et=Ne(_t+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function De(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){Ve(s,t,n)}return o}function xe(e,t,n,r){if(b(e)){let s=De(e,t,n,r);return s&&be(s)&&s.catch(i=>{Ve(i,t,n)}),s}let o=[];for(let s=0;s{if(n.isUnmounted)return;z();let l=bt(n),a=xe(t,n,e,i);return l(),q(),a});return r?o.unshift(s):o.push(s),s}}var h=e=>(t,n=L)=>(!Ce||e==="sp")&&Nt(e,(...r)=>t(...r),n),kn=h("bm"),Pn=h("m"),In=h("bu"),Mn=h("u"),Ae=h("bum"),$n=h("um"),Ln=h("sp"),Fn=h("rtg"),Hn=h("rtc");function vt(){return{app:null,config:{isNativeTag:ve,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Un=Symbol.for("v-fgt"),jn=Symbol.for("v-txt"),Bn=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc");var Wn=vt();var L=null;var ne,Ot;{let e=Te(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};ne=t("__VUE_INSTANCE_SETTERS__",n=>L=n),Ot=t("__VUE_SSR_SETTERS__",n=>Ce=n)}var bt=e=>{let t=L;return ne(e),e.scope.on(),()=>{e.scope.off(),ne(t)}};var Ce=!1;function Se(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}var wt={mounted(){let e=r=>{let o=["type","timeStamp"],s=["altKey","code","ctrlKey","isComposing","key","location","metaKey","repeat","shiftKey"],i=["char","charCode","keyCode","keyIdentifier","keyLocation","which"],l={};o.concat(s,i).forEach(a=>l[a]=r[a]),this.$ownerInstance.callMethod("onEvent",l)},t=["keydown","keyup"];t.forEach(r=>{document.addEventListener(r,e,!1)}),Se().on("hook:beforeUnmount",()=>{t.forEach(r=>{document.removeEventListener(r,e,!1)})})},setup(){Ae(()=>{names.forEach(e=>{document.removeEventListener(e,onKey,!1)})})}};return $e(Tt);})(); +/*! Bundled license information: -__renderjsModules["5a1e922e"]=(()=>{var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var o in e)u(t,o,{get:e[o],enumerable:!0})},g=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!p.call(t,i)&&i!==o&&u(t,i,{get:()=>e[i],enumerable:!(a=c(e,i))||a.enumerable});return t};var v=t=>g(u({},"__esModule",{value:!0}),t);var S={};m(S,{default:()=>D});var l={showWatch(t,e,o,a,i){var s=i.state,r=o.$el||o.$vm&&o.$vm.$el;if(r){if(this.getDom(a,o,i),t&&t!=="none"){this.openState(t,a,o,i);return}s.left&&this.openState("none",a,o,i),this.resetTouchStatus(a,i)}},touchstart(t,e,o){let a=t.instance,i=a.getDataset().disabled,s=o.state;this.getDom(a,e,o),i=this.getDisabledType(i),!i&&(a.requestAnimationFrame(function(){a.removeClass("ani"),e.callMethod("closeSwipe")}),s.x=s.left||0,this.stopTouchStart(t,e,o))},touchmove(t,e,o){let a=t.instance;if(!a)return;let i=a.getDataset().disabled,s=o.state;if(i=this.getDisabledType(i),i||(this.stopTouchMove(t,o),s.direction!=="horizontal"))return;t.preventDefault&&t.preventDefault();let r=s.x+s.deltaX;this.move(r,a,e,o)},touchend(t,e,o){let a=t.instance,i=a.getDataset().disabled,s=o.state;i=this.getDisabledType(i),!i&&this.moveDirection(s.left,a,e,o)},move(t,e,o,a){t=t||0;let i=a.state,s=i.leftWidth,r=i.rightWidth;i.left=this.range(t,-r,s),e.requestAnimationFrame(function(){e.setStyle({transform:"translateX("+i.left+"px)","-webkit-transform":"translateX("+i.left+"px)"})})},getDom(t,e,o){var a=o.state,i=e.$el||e.$vm&&e.$vm.$el,s=i.querySelector(".button-group--left"),r=i.querySelector(".button-group--right");a.leftWidth=s.offsetWidth||0,a.rightWidth=r.offsetWidth||0,a.threshold=t.getDataset().threshold},getDisabledType(t){return(typeof t=="string"?JSON.parse(t):t)||!1},range(t,e,o){return Math.min(Math.max(t,e),o)},moveDirection(t,e,o,a){var i=a.state,s=i.threshold,r=i.position,h=i.isopen||"none",n=i.leftWidth,d=i.rightWidth;if(i.deltaX===0){this.openState("none",e,o,a);return}h==="none"&&d>0&&-t>s||h!=="none"&&d>0&&d+t0&&t>s||h!=="none"&&n>0&&n-t{e.addClass("ani"),this.move(h,e,o,a)})},getDirection(t,e){return t>e&&t>10?"horizontal":e>t&&e>10?"vertical":""},resetTouchStatus(t,e){let o=e.state;o.direction="",o.deltaX=0,o.deltaY=0,o.offsetX=0,o.offsetY=0},stopTouchStart(t,e,o){let a=t.instance,i=o.state;this.resetTouchStatus(a,o);var s=t.touches[0];i.startX=s.clientX,i.startY=s.clientY},stopTouchMove(t,e){let o=t.instance,a=e.state,i=t.touches[0];a.deltaX=i.clientX-a.startX,a.deltaY=i.clientY-a.startY,a.offsetY=Math.abs(a.deltaY),a.offsetX=Math.abs(a.deltaX),a.direction=a.direction||this.getDirection(a.offsetX,a.offsetY)}};var D={mounted(t,e,o){this.state={}},methods:{showWatch(t,e,o,a){l.showWatch(t,e,o,a,this)},touchstart(t,e){l.touchstart(t,e,this)},touchmove(t,e){l.touchmove(t,e,this)},touchend(t,e){l.touchend(t,e,this)}}};return v(S);})(); +@vue/shared/dist/shared.esm-bundler.js: + (** + * @vue/shared v3.4.14 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **) + +@vue/reactivity/dist/reactivity.esm-bundler.js: + (** + * @vue/reactivity v3.4.14 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **) + +@vue/shared/dist/shared.esm-bundler.js: + (** + * @vue/shared v3.4.14 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **) + +@vue/runtime-core/dist/runtime-core.esm-bundler.js: + (** + * @vue/runtime-core v3.4.14 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **) + +@vue/runtime-core/dist/runtime-core.esm-bundler.js: + (*! #__NO_SIDE_EFFECTS__ *) + +@vue/runtime-core/dist/runtime-core.esm-bundler.js: + (*! #__NO_SIDE_EFFECTS__ *) + +vue/dist/vue.runtime.esm-bundler.js: + (** + * vue v3.4.14 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **) +*/ diff --git a/app/src/main/assets/apps/__UNI__3B4D40B/www/app-service.js b/app/src/main/assets/apps/__UNI__3B4D40B/www/app-service.js index 8a201c5..68adebf 100644 --- a/app/src/main/assets/apps/__UNI__3B4D40B/www/app-service.js +++ b/app/src/main/assets/apps/__UNI__3B4D40B/www/app-service.js @@ -1,6 +1 @@ -if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e,t){"use strict";const a=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a};const i=a({name:"page-head",props:{title:{type:String,default:""}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"common-page-head"},[e.createElementVNode("view",{class:"common-page-head-title"},e.toDisplayString(i.title),1)])}]]);function n(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function o(e,a){return t.isString(e)?a:e}const s=a({data:()=>({})},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"view"}),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-hello-text"}," Flex是Flexible Box的缩写,意为“弹性布局”,用来为盒状模型提供最大的灵活性。当设置display: flex后,继续给view等容器组件设置flex-direction: row或column,就可以在该容器内按行或列排布子组件。uni-app推荐使用flex布局。因为flex布局有利于跨更多平台,尤其是采用原生渲染的平台。 "),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" flex-direction: row "),e.createElementVNode("text",null,"\\n横向布局")]),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"flex-item uni-bg-red"},"A"),e.createElementVNode("view",{class:"flex-item uni-bg-green"},"B"),e.createElementVNode("view",{class:"flex-item uni-bg-blue"},"C")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" flex-direction: column "),e.createElementVNode("text",null,"\\n纵向布局")]),e.createElementVNode("view",{class:"uni-flex uni-column"},[e.createElementVNode("view",{class:"flex-item flex-item-V uni-bg-red"},"A"),e.createElementVNode("view",{class:"flex-item flex-item-V uni-bg-green"},"B"),e.createElementVNode("view",{class:"flex-item flex-item-V uni-bg-blue"},"C")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 更多布局示例 "),e.createElementVNode("text",null,"\\nflex布局演示")]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"text"},"纵向布局-自动宽度"),e.createElementVNode("view",{class:"text",style:{width:"300rpx"}},"纵向布局-固定宽度"),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text"},"横向布局-自动宽度"),e.createElementVNode("view",{class:"text"},"横向布局-自动宽度")]),e.createElementVNode("view",{class:"uni-flex uni-row",style:{"-webkit-justify-content":"center","justify-content":"center"}},[e.createElementVNode("view",{class:"text"},"横向布局-居中"),e.createElementVNode("view",{class:"text"},"横向布局-居中")]),e.createElementVNode("view",{class:"uni-flex uni-row",style:{"-webkit-justify-content":"flex-end","justify-content":"flex-end"}},[e.createElementVNode("view",{class:"text"},"横向布局-居右"),e.createElementVNode("view",{class:"text"},"横向布局-居右")]),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text",style:{"-webkit-flex":"1",flex:"1"}},"横向布局-平均分布"),e.createElementVNode("view",{class:"text",style:{"-webkit-flex":"1",flex:"1"}},"横向布局-平均分布")]),e.createElementVNode("view",{class:"uni-flex uni-row",style:{"-webkit-justify-content":"space-between","justify-content":"space-between"}},[e.createElementVNode("view",{class:"text"},"横向布局-两端对齐"),e.createElementVNode("view",{class:"text"},"横向布局-两端对齐")]),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text",style:{width:"200rpx"}},"固定宽度"),e.createElementVNode("view",{class:"text",style:{"-webkit-flex":"1",flex:"1"}},"自动占满余量")]),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text",style:{width:"200rpx"}},"固定宽度"),e.createElementVNode("view",{class:"text",style:{"-webkit-flex":"1",flex:"1"}},"自动占满"),e.createElementVNode("view",{class:"text",style:{width:"200rpx"}},"固定宽度")]),e.createElementVNode("view",{class:"uni-flex uni-row",style:{"-webkit-flex-wrap":"wrap","flex-wrap":"wrap"}},[e.createElementVNode("view",{class:"text",style:{width:"280rpx"}},"一行显示不全,wrap折行"),e.createElementVNode("view",{class:"text",style:{width:"280rpx"}},"一行显示不全,wrap折行"),e.createElementVNode("view",{class:"text",style:{width:"280rpx"}},"一行显示不全,wrap折行")]),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text uni-flex",style:{"-webkit-flex":"1",flex:"1",height:"200rpx","-webkit-justify-content":"center","justify-content":"center","-webkit-align-items":"flex-start","align-items":"flex-start"}},[e.createElementVNode("text",null,"垂直居顶")]),e.createElementVNode("view",{class:"text uni-flex",style:{"-webkit-flex":"1",flex:"1",height:"200rpx","-webkit-justify-content":"center","justify-content":"center","-webkit-align-items":"center","align-items":"center"}},[e.createElementVNode("text",null,"垂直居中")]),e.createElementVNode("view",{class:"text uni-flex",style:{"-webkit-flex":"1",flex:"1",height:"200rpx","-webkit-justify-content":"center","justify-content":"center","-webkit-align-items":"flex-end","align-items":"flex-end"}},[e.createElementVNode("text",null,"垂直居底")])])]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 组合示例 "),e.createElementVNode("text",null,"\\nflex布局演示")]),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text uni-flex",style:{width:"200rpx",height:"220rpx","-webkit-justify-content":"center","justify-content":"center","-webkit-align-items":"center","align-items":"center"}},[e.createElementVNode("image",{src:"/static/plus.png",style:{width:"150rpx",height:"150rpx"}})]),e.createElementVNode("view",{class:"uni-flex uni-column",style:{"-webkit-flex":"1",flex:"1","-webkit-justify-content":"space-between","justify-content":"space-between"}},[e.createElementVNode("view",{class:"text",style:{height:"120rpx","text-align":"left","padding-left":"20rpx","padding-top":"10rpx"}}," 文字居左,留出左间距 "),e.createElementVNode("view",{class:"uni-flex uni-row"},[e.createElementVNode("view",{class:"text",style:{"-webkit-flex":"1",flex:"1"}},"剩余数量"),e.createElementVNode("view",{class:"text",style:{"-webkit-flex":"1",flex:"1"}},"立即购买")])])])])])}]]),l={data:()=>({scrollTop:0,old:{scrollTop:0}}),methods:{upper:function(e){n("log","at pages/component/scroll-view/scroll-view.vue:48",e)},lower:function(e){n("log","at pages/component/scroll-view/scroll-view.vue:51",e)},scroll:function(e){n("log","at pages/component/scroll-view/scroll-view.vue:54",e),this.old.scrollTop=e.detail.scrollTop},goTop:function(e){this.scrollTop=this.old.scrollTop,this.$nextTick((function(){this.scrollTop=0})),uni.showToast({icon:"none",title:"纵向滚动 scrollTop 值已被修改为 0"})}}};const r=a(l,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"scroll-view,区域滚动视图"}),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" Vertical Scroll "),e.createElementVNode("text",null,"\\n纵向滚动")]),e.createElementVNode("view",null,[e.createElementVNode("scroll-view",{"scroll-top":l.scrollTop,"scroll-y":"true",class:"scroll-Y",onScrolltoupper:a[0]||(a[0]=(...e)=>r.upper&&r.upper(...e)),onScrolltolower:a[1]||(a[1]=(...e)=>r.lower&&r.lower(...e)),onScroll:a[2]||(a[2]=(...e)=>r.scroll&&r.scroll(...e))},[e.createElementVNode("view",{id:"demo1",class:"scroll-view-item uni-bg-red"},"A"),e.createElementVNode("view",{id:"demo2",class:"scroll-view-item uni-bg-green"},"B"),e.createElementVNode("view",{id:"demo3",class:"scroll-view-item uni-bg-blue"},"C")],40,["scroll-top"])]),e.createElementVNode("view",{onClick:a[3]||(a[3]=(...e)=>r.goTop&&r.goTop(...e)),class:"uni-link uni-center uni-common-mt"}," 点击这里返回顶部 "),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" Horizontal Scroll "),e.createElementVNode("text",null,"\\n横向滚动")]),e.createElementVNode("view",null,[e.createElementVNode("scroll-view",{class:"scroll-view_H","scroll-x":"true",onScroll:a[4]||(a[4]=(...e)=>r.scroll&&r.scroll(...e)),"scroll-left":"120"},[e.createElementVNode("view",{id:"demo1",class:"scroll-view-item_H uni-bg-red"},"A"),e.createElementVNode("view",{id:"demo2",class:"scroll-view-item_H uni-bg-green"},"B"),e.createElementVNode("view",{id:"demo3",class:"scroll-view-item_H uni-bg-blue"},"C")],32)]),e.createElementVNode("view",{class:"uni-common-pb"})])])}]]),c={data:()=>({background:["color1","color2","color3"],indicatorDots:!0,autoplay:!0,interval:2e3,duration:500}),methods:{changeIndicatorDots(e){this.indicatorDots=!this.indicatorDots},changeAutoplay(e){this.autoplay=!this.autoplay},intervalChange(e){this.interval=e.detail.value},durationChange(e){this.duration=e.detail.value}}};const d=a(c,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"swiper,可滑动视图"}),e.createElementVNode("view",{class:"uni-margin-wrap"},[e.createElementVNode("swiper",{class:"swiper",circular:"","indicator-dots":l.indicatorDots,autoplay:l.autoplay,interval:l.interval,duration:l.duration},[e.createElementVNode("swiper-item",null,[e.createElementVNode("view",{class:"swiper-item uni-bg-red"},"A")]),e.createElementVNode("swiper-item",null,[e.createElementVNode("view",{class:"swiper-item uni-bg-green"},"B")]),e.createElementVNode("swiper-item",null,[e.createElementVNode("view",{class:"swiper-item uni-bg-blue"},"C")])],8,["indicator-dots","autoplay","interval","duration"])]),e.createElementVNode("view",{class:"swiper-list"},[e.createElementVNode("view",{class:"uni-list-cell uni-list-cell-pd"},[e.createElementVNode("view",{class:"uni-list-cell-db"},"指示点"),e.createElementVNode("switch",{checked:l.indicatorDots,onChange:a[0]||(a[0]=(...e)=>r.changeIndicatorDots&&r.changeIndicatorDots(...e))},null,40,["checked"])]),e.createElementVNode("view",{class:"uni-list-cell uni-list-cell-pd"},[e.createElementVNode("view",{class:"uni-list-cell-db"},"自动播放"),e.createElementVNode("switch",{checked:l.autoplay,onChange:a[1]||(a[1]=(...e)=>r.changeAutoplay&&r.changeAutoplay(...e))},null,40,["checked"])])]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("text",null,"幻灯片切换时长(ms)"),e.createElementVNode("text",{class:"info"},e.toDisplayString(l.duration),1)]),e.createElementVNode("slider",{onChange:a[2]||(a[2]=(...e)=>r.durationChange&&r.durationChange(...e)),value:l.duration,min:"500",max:"2000"},null,40,["value"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("text",null,"自动播放间隔时长(ms)"),e.createElementVNode("text",{class:"info"},e.toDisplayString(l.interval),1)]),e.createElementVNode("slider",{onChange:a[3]||(a[3]=(...e)=>r.intervalChange&&r.intervalChange(...e)),value:l.interval,min:"2000",max:"10000"},null,40,["value"])])])}]]),u={data:()=>({x:0,y:0,scale:2,old:{x:0,y:0,scale:2}}),methods:{tap:function(e){this.x=this.old.x,this.y=this.old.y,this.$nextTick((function(){this.x=30,this.y=30}))},tap2(){this.scale=this.old.scale,this.scale=this.old.scale,this.$nextTick((function(){this.scale=3}))},onChange:function(e){this.old.x=e.detail.x,this.old.y=e.detail.y},onScale:function(e){this.old.scale=e.detail.scale}}};const h=a(u,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"page-body"},[e.createVNode(c,{title:"movable-view,可拖动视图"}),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 1 "),e.createElementVNode("text",null,"\\nmovable-view 区域小于 movable-area")]),e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{x:l.x,y:l.y,direction:"all",onChange:a[0]||(a[0]=(...e)=>r.onChange&&r.onChange(...e))},"text",40,["x","y"])]),e.createElementVNode("view",{onClick:a[1]||(a[1]=(...e)=>r.tap&&r.tap(...e)),class:"uni-link uni-center uni-common-mt"}," 点击这里移动至 (30px, 30px) "),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 2 "),e.createElementVNode("text",null,"\\nmovable-view区域大于movable-area")]),e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{class:"max",direction:"all"},"text")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 3 "),e.createElementVNode("text",null,"\\n只可以横向移动")]),e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{direction:"horizontal"},"text")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 4 "),e.createElementVNode("text",null,"\\n只可以纵向移动")]),e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{direction:"vertical"},"text")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 5 "),e.createElementVNode("text",null,"\\n可超出边界")]),e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{direction:"all","out-of-bounds":""},"text")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 6 "),e.createElementVNode("text",null,"\\n带有惯性")]),e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{direction:"all",inertia:""},"text")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例 7 "),e.createElementVNode("text",null,"\\n可放缩")]),e.createElementVNode("movable-area",{"scale-area":""},[e.createElementVNode("movable-view",{direction:"all",onScale:a[2]||(a[2]=(...e)=>r.onScale&&r.onScale(...e)),scale:"","scale-min":"0.5","scale-max":"4","scale-value":l.scale},"text",40,["scale-value"])]),e.createElementVNode("view",{onClick:a[3]||(a[3]=(...e)=>r.tap2&&r.tap2(...e)),class:"uni-link uni-center uni-common-mt",style:{"padding-bottom":"80rpx"}}," 点击这里放大3倍 ")])])}]]);const p=a({data:()=>({title:"text",texts:["HBuilder,400万开发者选择的IDE","MUI,轻巧、漂亮的前端开源框架","wap2app,M站快速转换原生体验的App","5+Runtime,为HTML5插上原生的翅膀","HBuilderX,轻巧、极速,极客编辑器","uni-app,终极跨平台方案","HBuilder,400万开发者选择的IDE","MUI,轻巧、漂亮的前端开源框架","wap2app,M站快速转换原生体验的App","5+Runtime,为HTML5插上原生的翅膀","HBuilderX,轻巧、极速,极客编辑器","uni-app,终极跨平台方案","......"],text:"",canAdd:!0,canRemove:!1,extraLine:[]}),methods:{add:function(e){this.extraLine.push(this.texts[this.extraLine.length%12]),this.text=this.extraLine.join("\n"),this.canAdd=this.extraLine.length<12,this.canRemove=this.extraLine.length>0},remove:function(e){this.extraLine.length>0&&(this.extraLine.pop(),this.text=this.extraLine.join("\n"),this.canAdd=this.extraLine.length<12,this.canRemove=this.extraLine.length>0)}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"text-box","scroll-y":"true"},[e.createElementVNode("text",null,e.toDisplayString(l.text),1)]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",disabled:!l.canAdd,onClick:a[0]||(a[0]=(...e)=>r.add&&r.add(...e))},"add line",8,["disabled"]),e.createElementVNode("button",{type:"warn",disabled:!l.canRemove,onClick:a[1]||(a[1]=(...e)=>r.remove&&r.remove(...e))},"remove line",8,["disabled"])])])])}]]);const m=a({data:()=>({title:"rich-text",nodes:[{name:"div",attrs:{class:"div-class",style:"line-height: 60px; color: red; text-align:center;"},children:[{type:"text",text:"Hello uni-app!"}]}],strings:'
'})},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 数组类型 "),e.createElementVNode("text",null,"\\nnodes属性为Array")]),e.createElementVNode("view",{class:"uni-common-mt",style:{background:"#FFF",padding:"20rpx"}},[e.createElementVNode("rich-text",{nodes:l.nodes},null,8,["nodes"])]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 字符串类型 "),e.createElementVNode("text",null,"\\nnodes属性为String")]),e.createElementVNode("view",{class:"uni-common-mt",style:{background:"#FFF",padding:"20rpx"}},[e.createElementVNode("rich-text",{nodes:l.strings},null,8,["nodes"])])])])}]]),g={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};const f=a({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:g.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle({color:i.color,"font-size":s.iconSize}),class:e.normalizeClass(["uni-icons",["uniui-"+i.type,i.customPrefix,i.customPrefix?i.type:""]]),onClick:a[0]||(a[0]=(...e)=>s._onClick&&s._onClick(...e))},null,6)}],["__scopeId","data-v-7c2f6cb0"]]);const y=a({data:()=>({title:"progress",pgList:[0,0,0,0]}),methods:{setProgress(){this.pgList=[20,40,60,80]},clearProgress(){this.pgList=[0,0,0,0]}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"progress-box"},[e.createElementVNode("progress",{percent:l.pgList[0],"show-info":"","stroke-width":"3"},null,8,["percent"])]),e.createElementVNode("view",{class:"progress-box"},[e.createElementVNode("progress",{percent:l.pgList[1],"stroke-width":"3"},null,8,["percent"]),e.createVNode(d,{type:"close",class:"progress-cancel",color:"#dd524d"})]),e.createElementVNode("view",{class:"progress-box"},[e.createElementVNode("progress",{percent:l.pgList[2],"stroke-width":"3"},null,8,["percent"])]),e.createElementVNode("view",{class:"progress-box"},[e.createElementVNode("progress",{percent:l.pgList[3],activeColor:"#10AEFF","stroke-width":"3"},null,8,["percent"])]),e.createElementVNode("view",{class:"progress-control"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.setProgress&&r.setProgress(...e))},"设置进度"),e.createElementVNode("button",{type:"warn",onClick:a[1]||(a[1]=(...e)=>r.clearProgress&&r.clearProgress(...e))},"清除进度")])])])}]]);const v=a({data:()=>({title:"button",loading:!1}),onLoad(){this._timer=null},onShow(){this.clearTimer(),this._timer=setTimeout((()=>{this.loading=!0}),300)},onUnload(){this.clearTimer(),this.loading=!1},methods:{openTypeError(e){n("error","at pages/component/button/button.vue:56","open-type error:",e)},clearTimer(){null!=this._timer&&clearTimeout(this._timer)}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("button",{type:"primary"},"页面主操作 Normal"),e.createElementVNode("button",{type:"primary",loading:l.loading},"页面主操作 Loading",8,["loading"]),e.createElementVNode("button",{type:"primary",disabled:"true"},"页面主操作 Disabled"),e.createElementVNode("button",{type:"default"},"页面次要操作 Normal"),e.createElementVNode("button",{type:"default",disabled:"true"},"页面次要操作 Disabled"),e.createElementVNode("button",{type:"warn"},"警告类操作 Normal"),e.createElementVNode("button",{type:"warn",disabled:"true"},"警告类操作 Disabled"),e.createElementVNode("view",{class:"button-sp-area"},[e.createElementVNode("button",{type:"primary",plain:"true"},"按钮"),e.createElementVNode("button",{type:"primary",disabled:"true",plain:"true"},"不可点击的按钮"),e.createElementVNode("button",{type:"default",plain:"true"},"按钮"),e.createElementVNode("button",{type:"default",disabled:"true",plain:"true"},"按钮"),e.createElementVNode("button",{class:"mini-btn",type:"primary",size:"mini"},"按钮"),e.createElementVNode("button",{class:"mini-btn",type:"default",size:"mini"},"按钮"),e.createElementVNode("button",{class:"mini-btn",type:"warn",size:"mini"},"按钮")])])])}]]),b={data:()=>({title:"checkbox 复选框",items:[{value:"USA",name:"美国"},{value:"CHN",name:"中国",checked:"true"},{value:"BRA",name:"巴西"},{value:"JPN",name:"日本"},{value:"ENG",name:"英国"},{value:"FRA",name:"法国"}]}),methods:{checkboxChange:function(e){for(var t=this.items,a=e.detail.value,i=0,n=t.length;i=0?this.$set(e,"checked",!0):this.$set(e,"checked",!1)}}}};const w=a(b,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title uni-common-mt"},"默认样式"),e.createElementVNode("view",null,[e.createElementVNode("checkbox-group",null,[e.createElementVNode("label",null,[e.createElementVNode("checkbox",{value:"cb1",checked:"true"}),e.createTextVNode("选中 ")]),e.createElementVNode("label",null,[e.createElementVNode("checkbox",{value:"cb"}),e.createTextVNode("未选中 ")])])]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},"不同颜色和尺寸的checkbox"),e.createElementVNode("view",null,[e.createElementVNode("checkbox-group",null,[e.createElementVNode("label",null,[e.createElementVNode("checkbox",{value:"cb1",checked:"true",color:"#FFCC33",style:{transform:"scale(0.7)"}}),e.createTextVNode("选中 ")]),e.createElementVNode("label",null,[e.createElementVNode("checkbox",{value:"cb",color:"#FFCC33",style:{transform:"scale(0.7)"}}),e.createTextVNode("未选中 ")])])])]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 推荐展示样式 "),e.createElementVNode("text",null,"\\n使用 uni-list 布局")])]),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("checkbox-group",{onChange:a[0]||(a[0]=(...e)=>r.checkboxChange&&r.checkboxChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(t=>(e.openBlock(),e.createElementBlock("label",{class:"uni-list-cell uni-list-cell-pd",key:t.value},[e.createElementVNode("view",null,[e.createElementVNode("checkbox",{value:t.value,checked:t.checked},null,8,["value","checked"])]),e.createElementVNode("view",null,e.toDisplayString(t.name),1)])))),128))],32)])])}]]),k={error:"",check:function(e,t){for(var a=0;ai[1]||e[t[a].name]i[1]||e[t[a].name]i[1]||e[t[a].name]({}),methods:{formSubmit:function(e){n("log","at pages/component/form/form.vue:59","form发生了submit事件,携带数据为:"+JSON.stringify(e.detail.value));var t=e.detail.value;k.check(t,[{name:"nickname",checkType:"string",checkRule:"1,3",errorMsg:"姓名应为1-3个字符"},{name:"gender",checkType:"in",checkRule:"男,女",errorMsg:"请选择性别"},{name:"loves",checkType:"notnull",checkRule:"",errorMsg:"请选择爱好"}])?uni.showToast({title:"验证通过!",icon:"none"}):uni.showToast({title:k.error,icon:"none"})},formReset:function(e){n("log","at pages/component/form/form.vue:76","清空数据")}}};const V=a(x,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"form"}),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("form",{onSubmit:a[0]||(a[0]=(...e)=>r.formSubmit&&r.formSubmit(...e)),onReset:a[1]||(a[1]=(...e)=>r.formReset&&r.formReset(...e))},[e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"姓名"),e.createElementVNode("input",{class:"uni-input",name:"nickname",placeholder:"请输入姓名"})]),e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"性别"),e.createElementVNode("radio-group",{name:"gender"},[e.createElementVNode("label",null,[e.createElementVNode("radio",{value:"男"}),e.createElementVNode("text",null,"男")]),e.createElementVNode("label",null,[e.createElementVNode("radio",{value:"女"}),e.createElementVNode("text",null,"女")])])]),e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"爱好"),e.createElementVNode("checkbox-group",{name:"loves"},[e.createElementVNode("label",null,[e.createElementVNode("checkbox",{value:"读书"}),e.createElementVNode("text",null,"读书")]),e.createElementVNode("label",null,[e.createElementVNode("checkbox",{value:"写字"}),e.createElementVNode("text",null,"写字")])])]),e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"年龄"),e.createElementVNode("slider",{value:"20",name:"age","show-value":""})]),e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"保留选项"),e.createElementVNode("view",null,[e.createElementVNode("switch",{name:"switch"})])]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{"form-type":"submit"},"Submit"),e.createElementVNode("button",{type:"default","form-type":"reset"},"Reset")])],32)])])}]]),N={data:()=>({title:"label",checkboxItems:[{name:"USA",value:"美国"},{name:"CHN",value:"中国",checked:"true"}],radioItems:[{name:"USA",value:"美国"},{name:"CHN",value:"中国",checked:"true"}],hidden:!1}),methods:{checkboxChange:function(e){n("log","at pages/component/label/label.vue:80",e.detail.value)},radioChange:function(e){n("log","at pages/component/label/label.vue:85",e.detail.value)}}};const _=a(N,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"表单组件在label内"),e.createElementVNode("checkbox-group",{class:"uni-list",onChange:a[0]||(a[0]=(...e)=>r.checkboxChange&&r.checkboxChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.checkboxItems,(t=>(e.openBlock(),e.createElementBlock("label",{class:"uni-list-cell uni-list-cell-pd",key:t.name},[e.createElementVNode("view",null,[e.createElementVNode("checkbox",{value:t.name,checked:t.checked},null,8,["value","checked"])]),e.createElementVNode("view",null,e.toDisplayString(t.value),1)])))),128))],32)]),e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"label用for标识表单组件"),e.createElementVNode("radio-group",{class:"uni-list",onChange:a[1]||(a[1]=(...e)=>r.radioChange&&r.radioChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.radioItems,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-list-cell uni-list-cell-pd",key:a},[e.createElementVNode("view",null,[e.createElementVNode("radio",{id:t.name,value:t.name,checked:t.checked},null,8,["id","value","checked"])]),e.createElementVNode("label",{class:"label-2-text",for:t.name},[e.createElementVNode("text",null,e.toDisplayString(t.value),1)],8,["for"])])))),128))],32)]),e.createElementVNode("view",{class:"uni-form-item uni-column"},[e.createElementVNode("view",{class:"title"},"label内有多个时选中第一个"),e.createElementVNode("checkbox-group",{class:"uni-list",onChange:a[2]||(a[2]=(...e)=>r.checkboxChange&&r.checkboxChange(...e))},[e.createElementVNode("label",{class:"label-3"},[e.createElementVNode("view",{class:"uni-list-cell uni-list-cell-pd"},[e.createElementVNode("checkbox",{class:"checkbox-3"},"选项一")]),e.createElementVNode("view",{class:"uni-list-cell uni-list-cell-pd"},[e.createElementVNode("checkbox",{class:"checkbox-3"},"选项二")]),e.createElementVNode("view",{class:"uni-link uni-center",style:{"margin-top":"20rpx"}},"点击该label下的文字默认选中第一个checkbox")])],32)])])])}]]);function E(e){const t=new Date;let a=t.getFullYear(),i=t.getMonth()+1,n=t.getDate();return"start"===e?a-=10:"end"===e&&(a+=10),i=i>9?i:"0"+i,n=n>9?n:"0"+n,`${a}-${i}-${n}`}const C={data:()=>({title:"picker",array:[{name:"中国"},{name:"美国"},{name:"巴西"},{name:"日本"}],index:0,multiArray:[["亚洲","欧洲"],["中国","日本"],["北京","上海","广州"]],multiIndex:[0,0,0],date:E({format:!0}),startDate:E("start"),endDate:E("end"),time:"12:01"}),methods:{bindPickerChange:function(e){n("log","at pages/component/picker/picker.vue:110","picker发送选择改变,携带值为:"+e.detail.value),this.index=e.detail.value},bindMultiPickerColumnChange:function(e){switch(n("log","at pages/component/picker/picker.vue:114","修改的列为:"+e.detail.column+",值为:"+e.detail.value),this.multiIndex[e.detail.column]=e.detail.value,e.detail.column){case 0:switch(this.multiIndex[0]){case 0:this.multiArray[1]=["中国","日本"],this.multiArray[2]=["北京","上海","广州"];break;case 1:this.multiArray[1]=["英国","法国"],this.multiArray[2]=["伦敦","曼彻斯特"]}this.multiIndex.splice(1,1,0),this.multiIndex.splice(2,1,0);break;case 1:switch(this.multiIndex[0]){case 0:switch(this.multiIndex[1]){case 0:this.multiArray[2]=["北京","上海","广州"];break;case 1:this.multiArray[2]=["东京","北海道"]}break;case 1:switch(this.multiIndex[1]){case 0:this.multiArray[2]=["伦敦","曼彻斯特"];break;case 1:this.multiArray[2]=["巴黎","马赛"]}}this.multiIndex.splice(2,1,0)}this.$forceUpdate()},bindDateChange:function(e){this.date=e.detail.value},bindTimeChange:function(e){this.time=e.detail.value}}};const S=a(C,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-title uni-common-pl"},"普通选择器"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"}," 当前选择 "),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("picker",{onChange:a[0]||(a[0]=(...e)=>r.bindPickerChange&&r.bindPickerChange(...e)),value:l.index,range:l.array,"range-key":"name"},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.array[l.index].name),1)],40,["value","range"])])])]),e.createElementVNode("view",{class:"uni-title uni-common-pl"},"多列选择器"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"}," 当前选择 "),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("picker",{mode:"multiSelector",onColumnchange:a[1]||(a[1]=(...e)=>r.bindMultiPickerColumnChange&&r.bindMultiPickerColumnChange(...e)),value:l.multiIndex,range:l.multiArray},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.multiArray[0][l.multiIndex[0]])+","+e.toDisplayString(l.multiArray[1][l.multiIndex[1]])+","+e.toDisplayString(l.multiArray[2][l.multiIndex[2]]),1)],40,["value","range"])])])]),e.createElementVNode("view",{class:"uni-title uni-common-pl"},"时间选择器"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"}," 当前选择 "),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("picker",{mode:"time",value:l.time,start:"09:01",end:"21:01",onChange:a[2]||(a[2]=(...e)=>r.bindTimeChange&&r.bindTimeChange(...e))},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.time),1)],40,["value"])])])]),e.createElementVNode("view",{class:"uni-picker-tips"}," 注:选择 09:01 ~ 21:01 之间的时间, 不在区间内不能选中 "),e.createElementVNode("view",{class:"uni-title uni-common-pl"},"日期选择器"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"}," 当前选择 "),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("picker",{mode:"date",value:l.date,start:l.startDate,end:l.endDate,onChange:a[3]||(a[3]=(...e)=>r.bindDateChange&&r.bindDateChange(...e))},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.date),1)],40,["value","start","end"])])])]),e.createElementVNode("view",{class:"uni-picker-tips"}," 注:选择当前时间 ±10 年之间的时间, 不在区间内不能选中 ")])}]]),T={data(){const e=new Date,t=[],a=e.getFullYear(),i=[],n=e.getMonth()+1,o=[],s=e.getDate();for(let l=1990;l<=e.getFullYear();l++)t.push(l);for(let l=1;l<=12;l++)i.push(l);for(let l=1;l<=31;l++)o.push(l);return{title:"picker-view",years:t,year:a,months:i,month:n,days:o,day:s,value:[9999,n-1,s-1],visible:!0,indicatorStyle:"height: 50px;",maskStyle:""}},methods:{bindChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]}}};const D=a(T,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-title"}," 日期:"+e.toDisplayString(l.year)+"年"+e.toDisplayString(l.month)+"月"+e.toDisplayString(l.day)+"日 ",1)]),l.visible?(e.openBlock(),e.createElementBlock("picker-view",{key:0,"indicator-style":l.indicatorStyle,"mask-style":l.maskStyle,value:l.value,onChange:a[0]||(a[0]=(...e)=>r.bindChange&&r.bindChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.years,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},e.toDisplayString(t)+"年",1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.months,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},e.toDisplayString(t)+"月",1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.days,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},e.toDisplayString(t)+"日",1)))),128))])],40,["indicator-style","mask-style","value"])):e.createCommentVNode("",!0)])}]]);const B=a({data:()=>({title:"radio 单选框",items:[{value:"USA",name:"美国"},{value:"CHN",name:"中国",checked:"true"},{value:"BRA",name:"巴西"},{value:"JPN",name:"日本"},{value:"ENG",name:"英国"},{value:"FRA",name:"法国"}],current:0}),methods:{radioChange(e){for(let t=0;tr.radioChange&&r.radioChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,((t,a)=>(e.openBlock(),e.createElementBlock("label",{class:"uni-list-cell uni-list-cell-pd",key:t.value},[e.createElementVNode("view",null,[e.createElementVNode("radio",{value:t.value,checked:a===l.current},null,8,["value","checked"])]),e.createElementVNode("view",null,e.toDisplayString(t.name),1)])))),128))],32)])])}]]),I={data:()=>({title:"slider 滑块"}),methods:{sliderChange(e){n("log","at pages/component/slider/slider.vue:36","value 发生变化:"+e.detail.value)}}};const P=a(I,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},"显示当前value"),e.createElementVNode("view",null,[e.createElementVNode("slider",{value:"50",onChange:a[0]||(a[0]=(...e)=>r.sliderChange&&r.sliderChange(...e)),"show-value":""},null,32)]),e.createElementVNode("view",{class:"uni-title"},"设置步进step跳动"),e.createElementVNode("view",null,[e.createElementVNode("slider",{value:"60",onChange:a[1]||(a[1]=(...e)=>r.sliderChange&&r.sliderChange(...e)),step:"5"},null,32)]),e.createElementVNode("view",{class:"uni-title"},"设置最小/最大值"),e.createElementVNode("view",null,[e.createElementVNode("slider",{value:"100",onChange:a[2]||(a[2]=(...e)=>r.sliderChange&&r.sliderChange(...e)),min:"50",max:"200","show-value":""},null,32)]),e.createElementVNode("view",{class:"uni-title"},"不同颜色和大小的滑块"),e.createElementVNode("view",null,[e.createElementVNode("slider",{value:"50",onChange:a[3]||(a[3]=(...e)=>r.sliderChange&&r.sliderChange(...e)),activeColor:"#FFCC33",backgroundColor:"#000000","block-color":"#8A6DE9","block-size":"20"},null,32)])])])}]]),A={data:()=>({title:"switch 开关"}),methods:{switch1Change:function(e){n("log","at pages/component/switch/switch.vue:39","switch1 发生 change 事件,携带值为",e.detail.value)},switch2Change:function(e){n("log","at pages/component/switch/switch.vue:42","switch2 发生 change 事件,携带值为",e.detail.value)}}};const M=a(A,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},"默认样式"),e.createElementVNode("view",null,[e.createElementVNode("switch",{checked:"",onChange:a[0]||(a[0]=(...e)=>r.switch1Change&&r.switch1Change(...e))},null,32),e.createElementVNode("switch",{onChange:a[1]||(a[1]=(...e)=>r.switch2Change&&r.switch2Change(...e))},null,32)]),e.createElementVNode("view",{class:"uni-title"},"不同颜色和尺寸的switch"),e.createElementVNode("view",null,[e.createElementVNode("switch",{checked:"",color:"#FFCC33",style:{transform:"scale(0.7)"}}),e.createElementVNode("switch",{color:"#FFCC33",style:{transform:"scale(0.7)"}})]),e.createElementVNode("view",{class:"uni-title"},"推荐展示样式")]),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell uni-list-cell-pd"},[e.createElementVNode("view",{class:"uni-list-cell-db"},"开启中"),e.createElementVNode("switch",{checked:""})]),e.createElementVNode("view",{class:"uni-list-cell uni-list-cell-pd"},[e.createElementVNode("view",{class:"uni-list-cell-db"},"关闭"),e.createElementVNode("switch")])])])}]]),L={data:()=>({title:"textarea",focus:!1}),methods:{bindTextAreaBlur:function(e){n("log","at pages/component/textarea/textarea.vue:24",e.detail.value)}}};const F=a(L,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-title uni-common-pl"},"输入区域高度自适应,不会出现滚动条"),e.createElementVNode("view",{class:"uni-textarea"},[e.createElementVNode("textarea",{onBlur:a[0]||(a[0]=(...e)=>r.bindTextAreaBlur&&r.bindTextAreaBlur(...e)),"auto-height":""},null,32)]),e.createElementVNode("view",{class:"uni-title uni-common-pl"},"占位符字体是红色的textarea"),e.createElementVNode("view",{class:"uni-textarea"},[e.createElementVNode("textarea",{"placeholder-style":"color:#F76260",placeholder:"占位符字体是红色的"})])])}]]),U={data:()=>({readOnly:!1,formats:{}}),onLoad(){uni.loadFontFace({family:"Pacifico",source:'url("https://sungd.github.io/Pacifico.ttf")'})},methods:{readOnlyChange(){this.readOnly=!this.readOnly},onEditorReady(){uni.createSelectorQuery().select("#editor").context((e=>{this.editorCtx=e.context})).exec()},undo(){this.editorCtx.undo()},redo(){this.editorCtx.redo()},format(e){let{name:t,value:a}=e.target.dataset;t&&this.editorCtx.format(t,a)},onStatusChange(e){const t=e.detail;this.formats=t},insertDivider(){this.editorCtx.insertDivider({success:function(){n("log","at pages/component/editor/editor.vue:115","insert divider success")}})},clear(){uni.showModal({title:"清空编辑器",content:"确定清空编辑器全部内容?",success:e=>{e.confirm&&this.editorCtx.clear({success:function(e){n("log","at pages/component/editor/editor.vue:127","clear success")}})}})},removeFormat(){this.editorCtx.removeFormat()},insertDate(){const e=new Date,t=`${e.getFullYear()}/${e.getMonth()+1}/${e.getDate()}`;this.editorCtx.insertText({text:t})},insertImage(){uni.chooseImage({count:1,success:e=>{this.editorCtx.insertImage({src:e.tempFilePaths[0],alt:"图像",success:function(){n("log","at pages/component/editor/editor.vue:152","insert image success")}})}})}}};const R=a(U,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"page-body"},[e.createElementVNode("view",{class:"wrapper"},[e.createElementVNode("view",{class:"toolbar",onClick:a[7]||(a[7]=(...e)=>s.format&&s.format(...e)),style:{height:"120px","overflow-y":"auto"}},[e.createElementVNode("view",{class:e.normalizeClass([o.formats.bold?"ql-active":"","iconfont icon-zitijiacu"]),"data-name":"bold"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.italic?"ql-active":"","iconfont icon-zitixieti"]),"data-name":"italic"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.underline?"ql-active":"","iconfont icon-zitixiahuaxian"]),"data-name":"underline"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.strike?"ql-active":"","iconfont icon-zitishanchuxian"]),"data-name":"strike"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["left"===o.formats.align?"ql-active":"","iconfont icon-zuoduiqi"]),"data-name":"align","data-value":"left"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["center"===o.formats.align?"ql-active":"","iconfont icon-juzhongduiqi"]),"data-name":"align","data-value":"center"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["right"===o.formats.align?"ql-active":"","iconfont icon-youduiqi"]),"data-name":"align","data-value":"right"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["justify"===o.formats.align?"ql-active":"","iconfont icon-zuoyouduiqi"]),"data-name":"align","data-value":"justify"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.lineHeight?"ql-active":"","iconfont icon-line-height"]),"data-name":"lineHeight","data-value":"2"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.letterSpacing?"ql-active":"","iconfont icon-Character-Spacing"]),"data-name":"letterSpacing","data-value":"2em"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.marginTop?"ql-active":"","iconfont icon-722bianjiqi_duanqianju"]),"data-name":"marginTop","data-value":"20px"},null,2),e.createElementVNode("view",{class:e.normalizeClass([o.formats.marginBottom?"ql-active":"","iconfont icon-723bianjiqi_duanhouju"]),"data-name":"marginBottom","data-value":"20px"},null,2),e.createElementVNode("view",{class:"iconfont icon-clearedformat",onClick:a[0]||(a[0]=(...e)=>s.removeFormat&&s.removeFormat(...e))}),e.createElementVNode("view",{class:e.normalizeClass([o.formats.fontFamily?"ql-active":"","iconfont icon-font"]),"data-name":"fontFamily","data-value":"Pacifico"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["24px"===o.formats.fontSize?"ql-active":"","iconfont icon-fontsize"]),"data-name":"fontSize","data-value":"24px"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["#0000ff"===o.formats.color?"ql-active":"","iconfont icon-text_color"]),"data-name":"color","data-value":"#0000ff"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["#00ff00"===o.formats.backgroundColor?"ql-active":"","iconfont icon-fontbgcolor"]),"data-name":"backgroundColor","data-value":"#00ff00"},null,2),e.createElementVNode("view",{class:"iconfont icon-date",onClick:a[1]||(a[1]=(...e)=>s.insertDate&&s.insertDate(...e))}),e.createElementVNode("view",{class:"iconfont icon--checklist","data-name":"list","data-value":"check"}),e.createElementVNode("view",{class:e.normalizeClass(["ordered"===o.formats.list?"ql-active":"","iconfont icon-youxupailie"]),"data-name":"list","data-value":"ordered"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["bullet"===o.formats.list?"ql-active":"","iconfont icon-wuxupailie"]),"data-name":"list","data-value":"bullet"},null,2),e.createElementVNode("view",{class:"iconfont icon-undo",onClick:a[2]||(a[2]=(...e)=>s.undo&&s.undo(...e))}),e.createElementVNode("view",{class:"iconfont icon-redo",onClick:a[3]||(a[3]=(...e)=>s.redo&&s.redo(...e))}),e.createElementVNode("view",{class:"iconfont icon-outdent","data-name":"indent","data-value":"-1"}),e.createElementVNode("view",{class:"iconfont icon-indent","data-name":"indent","data-value":"+1"}),e.createElementVNode("view",{class:"iconfont icon-fengexian",onClick:a[4]||(a[4]=(...e)=>s.insertDivider&&s.insertDivider(...e))}),e.createElementVNode("view",{class:"iconfont icon-charutupian",onClick:a[5]||(a[5]=(...e)=>s.insertImage&&s.insertImage(...e))}),e.createElementVNode("view",{class:e.normalizeClass([1===o.formats.header?"ql-active":"","iconfont icon-format-header-1"]),"data-name":"header","data-value":1},null,2),e.createElementVNode("view",{class:e.normalizeClass(["sub"===o.formats.script?"ql-active":"","iconfont icon-zitixiabiao"]),"data-name":"script","data-value":"sub"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["super"===o.formats.script?"ql-active":"","iconfont icon-zitishangbiao"]),"data-name":"script","data-value":"super"},null,2),e.createElementVNode("view",{class:"iconfont icon-shanchu",onClick:a[6]||(a[6]=(...e)=>s.clear&&s.clear(...e))}),e.createElementVNode("view",{class:e.normalizeClass(["rtl"===o.formats.direction?"ql-active":"","iconfont icon-direction-rtl"]),"data-name":"direction","data-value":"rtl"},null,2)]),e.createElementVNode("view",{class:"editor-wrapper"},[e.createElementVNode("editor",{id:"editor",class:"ql-container",placeholder:"开始输入...","show-img-size":"","show-img-toolbar":"","show-img-resize":"",onStatuschange:a[8]||(a[8]=(...e)=>s.onStatusChange&&s.onStatusChange(...e)),"read-only":o.readOnly,onReady:a[9]||(a[9]=(...e)=>s.onEditorReady&&s.onEditorReady(...e))},null,40,["read-only"])])])])])}]]);function O(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const $="function"==typeof Proxy;class z{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const a={};if(e.settings)for(const o in e.settings){const t=e.settings[o];a[o]=t.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let n={...a};try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(n,t)}catch(dn){}this.fallbacks={getSettings:()=>n,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(dn){}n=e}},t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((a=>{this.targetQueue.push({method:t,args:e,resolve:a})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function q(e,t){const a=O(),i=O().__VUE_DEVTOOLS_GLOBAL_HOOK__,n=$&&e.enableEarlyProxy;if(!i||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&n){const o=n?new z(e,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)} -/*! - * vuex v4.1.0 - * (c) 2022 Evan You - * @license MIT - */function j(e,t){Object.keys(e).forEach((function(a){return t(e[a],a)}))}function H(e){return null!==e&&"object"==typeof e}function W(e,t,a){return t.indexOf(e)<0&&(a&&a.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function J(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var a=e.state;Y(e,a,[],e._modules.root,!0),G(e,a,t)}function G(t,a,i){var n=t._state,o=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,l={},r={},c=e.effectScope(!0);c.run((function(){j(s,(function(a,i){l[i]=function(e,t){return function(){return e(t)}}(a,t),r[i]=e.computed((function(){return l[i]()})),Object.defineProperty(t.getters,i,{get:function(){return r[i].value},enumerable:!0})}))})),t._state=e.reactive({data:a}),t._scope=c,t.strict&&function(t){e.watch((function(){return t._state.data}),(function(){}),{deep:!0,flush:"sync"})}(t),n&&i&&t._withCommit((function(){n.data=null})),o&&o.stop()}function Y(e,t,a,i,n){var o=!a.length,s=e._modules.getNamespace(a);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!o&&!n){var l=Q(t,a.slice(0,-1)),r=a[a.length-1];e._withCommit((function(){l[r]=i.state}))}var c=i.context=function(e,t,a){var i=""===t,n={dispatch:i?e.dispatch:function(a,i,n){var o=Z(a,i,n),s=o.payload,l=o.options,r=o.type;return l&&l.root||(r=t+r),e.dispatch(r,s)},commit:i?e.commit:function(a,i,n){var o=Z(a,i,n),s=o.payload,l=o.options,r=o.type;l&&l.root||(r=t+r),e.commit(r,s,l)}};return Object.defineProperties(n,{getters:{get:i?function(){return e.getters}:function(){return K(e,t)}},state:{get:function(){return Q(e.state,a)}}}),n}(e,s,a);i.forEachMutation((function(t,a){!function(e,t,a,i){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){a.call(e,i.state,t)}))}(e,s+a,t,c)})),i.forEachAction((function(t,a){var i=t.root?a:s+a,n=t.handler||t;!function(e,t,a,i){(e._actions[t]||(e._actions[t]=[])).push((function(t){var n,o=a.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return(n=o)&&"function"==typeof n.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,i,n,c)})),i.forEachGetter((function(t,a){!function(e,t,a,i){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return a(i.state,i.getters,e.state,e.getters)}}(e,s+a,t,c)})),i.forEachChild((function(i,o){Y(e,t,a.concat(o),i,n)}))}function K(e,t){if(!e._makeLocalGettersCache[t]){var a={},i=t.length;Object.keys(e.getters).forEach((function(n){if(n.slice(0,i)===t){var o=n.slice(i);Object.defineProperty(a,o,{get:function(){return e.getters[n]},enumerable:!0})}})),e._makeLocalGettersCache[t]=a}return e._makeLocalGettersCache[t]}function Q(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Z(e,t,a){return H(e)&&e.type&&(a=t,t=e,e=e.type),{type:e,payload:t,options:a}}var X="vuex:mutations",ee="vuex:actions",te="vuex",ae=0;function ie(e,t){q({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(a){a.addTimelineLayer({id:X,label:"Vuex Mutations",color:ne}),a.addTimelineLayer({id:ee,label:"Vuex Actions",color:ne}),a.addInspector({id:te,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),a.on.getInspectorTree((function(a){if(a.app===e&&a.inspectorId===te)if(a.filter){var i=[];re(i,t._modules.root,a.filter,""),a.rootNodes=i}else a.rootNodes=[le(t._modules.root,"")]})),a.on.getInspectorState((function(a){if(a.app===e&&a.inspectorId===te){var i=a.nodeId;K(t,i),a.state=function(e,t,a){t="root"===a?t:t[a];var i=Object.keys(t),n={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(i.length){var o=function(e){var t={};return Object.keys(e).forEach((function(a){var i=a.split("/");if(i.length>1){var n=t,o=i.pop();i.forEach((function(e){n[e]||(n[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),n=n[e]._custom.value})),n[o]=ce((function(){return e[a]}))}else t[a]=ce((function(){return e[a]}))})),t}(t);n.getters=Object.keys(o).map((function(e){return{key:e.endsWith("/")?se(e):e,editable:!1,value:ce((function(){return o[e]}))}}))}return n}((n=t._modules,(s=(o=i).split("/").filter((function(e){return e}))).reduce((function(e,t,a){var i=e[t];if(!i)throw new Error('Missing module "'+t+'" for path "'+o+'".');return a===s.length-1?i:i._children}),"root"===o?n:n.root._children)),"root"===i?t.getters:t._makeLocalGettersCache,i)}var n,o,s})),a.on.editInspectorState((function(a){if(a.app===e&&a.inspectorId===te){var i=a.nodeId,n=a.path;"root"!==i&&(n=i.split("/").filter(Boolean).concat(n)),t._withCommit((function(){a.set(t._state.data,n,a.state.value)}))}})),t.subscribe((function(e,t){var i={};e.payload&&(i.payload=e.payload),i.state=t,a.notifyComponentUpdate(),a.sendInspectorTree(te),a.sendInspectorState(te),a.addTimelineEvent({layerId:X,event:{time:Date.now(),title:e.type,data:i}})})),t.subscribeAction({before:function(e,t){var i={};e.payload&&(i.payload=e.payload),e._id=ae++,e._time=Date.now(),i.state=t,a.addTimelineEvent({layerId:ee,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:i}})},after:function(e,t){var i={},n=Date.now()-e._time;i.duration={_custom:{type:"duration",display:n+"ms",tooltip:"Action duration",value:n}},e.payload&&(i.payload=e.payload),i.state=t,a.addTimelineEvent({layerId:ee,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:i}})}})}))}var ne=8702998,oe={label:"namespaced",textColor:16777215,backgroundColor:6710886};function se(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function le(e,t){return{id:t||"root",label:se(t),tags:e.namespaced?[oe]:[],children:Object.keys(e._children).map((function(a){return le(e._children[a],t+a+"/")}))}}function re(e,t,a,i){i.includes(a)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[oe]:[]}),Object.keys(t._children).forEach((function(n){re(e,t._children[n],a,i+n+"/")}))}function ce(e){try{return e()}catch(dn){return dn}}var de=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var a=e.state;this.state=("function"==typeof a?a():a)||{}},ue={namespaced:{configurable:!0}};ue.namespaced.get=function(){return!!this._rawModule.namespaced},de.prototype.addChild=function(e,t){this._children[e]=t},de.prototype.removeChild=function(e){delete this._children[e]},de.prototype.getChild=function(e){return this._children[e]},de.prototype.hasChild=function(e){return e in this._children},de.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},de.prototype.forEachChild=function(e){j(this._children,e)},de.prototype.forEachGetter=function(e){this._rawModule.getters&&j(this._rawModule.getters,e)},de.prototype.forEachAction=function(e){this._rawModule.actions&&j(this._rawModule.actions,e)},de.prototype.forEachMutation=function(e){this._rawModule.mutations&&j(this._rawModule.mutations,e)},Object.defineProperties(de.prototype,ue);var he=function(e){this.register([],e,!1)};function pe(e,t,a){if(t.update(a),a.modules)for(var i in a.modules){if(!t.getChild(i))return;pe(e.concat(i),t.getChild(i),a.modules[i])}}he.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},he.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,a){return e+((t=t.getChild(a)).namespaced?a+"/":"")}),"")},he.prototype.update=function(e){pe([],this.root,e)},he.prototype.register=function(e,t,a){var i=this;void 0===a&&(a=!0);var n=new de(t,a);0===e.length?this.root=n:this.get(e.slice(0,-1)).addChild(e[e.length-1],n);t.modules&&j(t.modules,(function(t,n){i.register(e.concat(n),t,a)}))},he.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1],i=t.getChild(a);i&&i.runtime&&t.removeChild(a)},he.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1];return!!t&&t.hasChild(a)};var me=function(e){var t=this;void 0===e&&(e={});var a=e.plugins;void 0===a&&(a=[]);var i=e.strict;void 0===i&&(i=!1);var n=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new he(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=n;var o=this,s=this.dispatch,l=this.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,a){return l.call(o,e,t,a)},this.strict=i;var r=this._modules.root.state;Y(this,r,[],this._modules.root),G(this,r),a.forEach((function(e){return e(t)}))},ge={state:{configurable:!0}};me.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&ie(e,this)},ge.state.get=function(){return this._state.data},ge.state.set=function(e){},me.prototype.commit=function(e,t,a){var i=this,n=Z(e,t,a),o=n.type,s=n.payload,l={type:o,payload:s},r=this._mutations[o];r&&(this._withCommit((function(){r.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(l,i.state)})))},me.prototype.dispatch=function(e,t){var a=this,i=Z(e,t),n=i.type,o=i.payload,s={type:n,payload:o},l=this._actions[n];if(l){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,a.state)}))}catch(dn){}var r=l.length>1?Promise.all(l.map((function(e){return e(o)}))):l[0](o);return new Promise((function(e,t){r.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,a.state)}))}catch(dn){}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,a.state,e)}))}catch(dn){}t(e)}))}))}},me.prototype.subscribe=function(e,t){return W(e,this._subscribers,t)},me.prototype.subscribeAction=function(e,t){return W("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},me.prototype.watch=function(t,a,i){var n=this;return e.watch((function(){return t(n.state,n.getters)}),a,Object.assign({},i))},me.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},me.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),Y(this,this.state,e,this._modules.get(e),a.preserveState),G(this,this.state)},me.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete Q(t.state,e.slice(0,-1))[e[e.length-1]]})),J(this)},me.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},me.prototype.hotUpdate=function(e){this._modules.update(e),J(this,!0)},me.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(me.prototype,ge);var fe=ke((function(e,t){var a={};return we(t).forEach((function(t){var i=t.key,n=t.val;a[i]=function(){var t=this.$store.state,a=this.$store.getters;if(e){var i=xe(this.$store,"mapState",e);if(!i)return;t=i.context.state,a=i.context.getters}return"function"==typeof n?n.call(this,t,a):t[n]},a[i].vuex=!0})),a})),ye=ke((function(e,t){var a={};return we(t).forEach((function(t){var i=t.key,n=t.val;a[i]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var i=this.$store.commit;if(e){var o=xe(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"==typeof n?n.apply(this,[i].concat(t)):i.apply(this.$store,[n].concat(t))}})),a})),ve=ke((function(e,t){var a={};return we(t).forEach((function(t){var i=t.key,n=t.val;n=e+n,a[i]=function(){if(!e||xe(this.$store,"mapGetters",e))return this.$store.getters[n]},a[i].vuex=!0})),a})),be=ke((function(e,t){var a={};return we(t).forEach((function(t){var i=t.key,n=t.val;a[i]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var i=this.$store.dispatch;if(e){var o=xe(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"==typeof n?n.apply(this,[i].concat(t)):i.apply(this.$store,[n].concat(t))}})),a}));function we(e){return function(e){return Array.isArray(e)||H(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function ke(e){return function(t,a){return"string"!=typeof t?(a=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,a)}}function xe(e,t,a){return e._modulesNamespaceMap[a]}const Ve=a({data:()=>({title:"navigator"}),computed:{...fe({hasLeftWin:e=>!e.noMatchLeftWindow})}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("navigator",{url:"navigate/navigate?title=navigate","hover-class":"navigator-hover"},[e.createElementVNode("button",{type:"default"},"跳转到新页面")]),e.createElementVNode("navigator",{url:"redirect/redirect?title=redirect","open-type":"redirect","hover-class":"other-navigator-hover"},[e.createElementVNode("button",{type:"default"},"在当前页打开")]),t.hasLeftWin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("navigator",{key:0,url:"/pages/tabBar/extUI/extUI","open-type":"switchTab","hover-class":"other-navigator-hover"},[e.createElementVNode("button",{type:"default"},"跳转tab页面")]))])])])}]]);const Ne=a({data:()=>({title:"新建的页面"})},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"])])}]]);const _e=a({data:()=>({title:"当前页"})},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"])])}]]);const Ee=a({data:()=>({title:"image"})},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createTextVNode(" 示例1 "),e.createElementVNode("text",null,"\\n本地图片")]),e.createElementVNode("view",{class:"uni-center",style:{background:"#FFFFFF","font-size":"0"}},[e.createElementVNode("image",{class:"image",mode:"widthFix",src:"/static/uni.png"})]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},[e.createTextVNode(" 示例2 "),e.createElementVNode("text",null,"\\n网络图片")]),e.createElementVNode("view",{class:"uni-center",style:{background:"#FFFFFF","font-size":"0"}},[e.createElementVNode("image",{class:"image",mode:"widthFix",src:"https://web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png"})])])])}]]),Ce=e=>{(e.$renderjs||(e.$renderjs=[])).push("animate"),(e.$renderjsModules||(e.$renderjsModules={})).animate="39c049d8"},Se={data:()=>({title:"canvas",canvasWidth:0,startStatus:!1,ballList:[]}),onReady:function(){this.$nextTick((()=>{uni.createSelectorQuery().select(".canvas").boundingClientRect((e=>{this.canvasWidth=e.width,this.startStatus=!0})).exec()}))}};Ce(Se);const Te=a(Se,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"page-body"},[e.createElementVNode("view",{class:"page-body-wrapper"},[e.createElementVNode("canvas",{"canvas-id":"canvas",class:"canvas",start:e.wp(l.startStatus),"change:start":t.animate.start,"data-width":l.canvasWidth,"data-height":l.canvasWidth},null,8,["start","change:start","data-width","data-height"])])])])}]]),De={data:()=>({url:"https://uniapp.dcloud.io/static/web-view.html"}),onLoad(e){e&&e.url&&(this.url=e.url)},methods:{getMessage(e){uni.showModal({content:JSON.stringify(e.detail),showCancel:!1})}}};const Be=a(De,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("web-view",{src:o.url,onMessage:a[0]||(a[0]=(...e)=>s.getMessage&&s.getMessage(...e))},null,40,["src"])])}]]),Ie={data:()=>({title:"AD组件",unitId:"",isLoad:!1,adMessage:"广告加载中..."}),onLoad(){},methods:{adload(){this.isLoad=!0},aderror(e){this.adMessage=e.detail.errMsg},gotoapi(){uni.navigateTo({url:"/pages/API/rewarded-video-ad/rewarded-video-ad"})}}};const Pe=a(Ie,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"ad-view"},[e.createElementVNode("ad",{adpid:"1111111111",onLoad:a[0]||(a[0]=(...e)=>r.adload&&r.adload(...e)),onError:a[1]||(a[1]=(...e)=>r.aderror&&r.aderror(...e))},null,32),l.isLoad?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"ad-tips"},[e.createElementVNode("text",null,e.toDisplayString(l.adMessage),1)]))]),e.createElementVNode("view",{class:"tips"},[e.createElementVNode("text",{class:"tips-text"},"本示例页面仅演示ad组件。另点此可体验"),e.createElementVNode("text",{class:"tips-hl",onClick:a[2]||(a[2]=(...e)=>r.gotoapi&&r.gotoapi(...e))},"激励视频API"),e.createElementVNode("text",{class:"tips-text"},"。")])])}]]),Ae={methods:{getMessage(e){uni.showModal({content:JSON.stringify(e.detail),showCancel:!1})}}};const Me=a(Ae,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("web-view",{src:"/hybrid/html/local.html",onMessage:a[0]||(a[0]=(...e)=>s.getMessage&&s.getMessage(...e))},null,32)])}]]);var Le;const Fe={get isIOS(){return"boolean"==typeof Le?Le:Le="ios"===uni.getSystemInfoSync().platform},requestIOS:function(e){return new Promise(((t,a)=>{switch(e){case"push":t(function(){var e=0,t=plus.ios.import("UIApplication"),a=t.sharedApplication();if(a.currentUserNotificationSettings){var i=a.currentUserNotificationSettings();0==i.plusGetAttribute("types")?(e=0,n("log","at common/permission.js:63","推送权限没有开启")):(e=1,n("log","at common/permission.js:66","已经开启推送功能!")),plus.ios.deleteObject(i)}else 0==a.enabledRemoteNotificationTypes()?(e=3,n("log","at common/permission.js:73","推送权限没有开启!")):(e=4,n("log","at common/permission.js:76","已经开启推送功能!"));return plus.ios.deleteObject(a),plus.ios.deleteObject(t),e}());break;case"location":t((i=0,o=plus.ios.import("CLLocationManager"),s=o.locationServicesEnabled(),l=o.authorizationStatus(),i=s?0===l?null:3===l||4===l?1:0:2,plus.ios.deleteObject(o),i));break;case"record":t(function(){var e=null,t=plus.ios.import("AVAudioSession"),a=t.sharedInstance().recordPermission();return n("log","at common/permission.js:104","permissionStatus:"+a),e=1970168948===a?null:1735552628===a?1:0,plus.ios.deleteObject(t),e}());break;case"camera":t(function(){var e=0,t=plus.ios.import("AVCaptureDevice"),a=t.authorizationStatusForMediaType("vide");return e=0===a?null:3==a?1:0,plus.ios.deleteObject(t),e}());break;case"album":t(function(){var e=0,t=plus.ios.import("PHPhotoLibrary"),a=t.authorizationStatus();return e=0===a?null:3==a?1:0,plus.ios.deleteObject(t),e}());break;case"contact":t(function(){var e=0,t=plus.ios.import("CNContactStore"),a=t.authorizationStatusForEntityType(0);return e=0===a?null:3==a?1:0,plus.ios.deleteObject(t),e}());break;case"calendar":t(function(){var e=null,t=plus.ios.import("EKEventStore");return 3==t.authorizationStatusForEntityType(0)?(e=1,n("log","at common/permission.js:122","日历权限已经开启")):n("log","at common/permission.js:124","日历权限没有开启"),plus.ios.deleteObject(t),e}());break;case"memo":t(function(){var e=null,t=plus.ios.import("EKEventStore");return 3==t.authorizationStatusForEntityType(1)?(e=1,n("log","at common/permission.js:136","备忘录权限已经开启")):n("log","at common/permission.js:138","备忘录权限没有开启"),plus.ios.deleteObject(t),e}());break;default:t(0)}var i,o,s,l}))},requestAndroid:function(e){return new Promise(((t,a)=>{plus.android.requestPermissions([e],(function(e){for(var a=0,i=0;i({title:"speech",value:""}),onUnload(){this.value=""},methods:{async startRecognize(){if(1===await this.checkPermission()){var e={},t=this;e.engine="baidu",t.value="",plus.speech.startRecognize(e,(function(e){n("log","at platforms/app-plus/speech/speech.vue:42",e),t.value+=e}),(function(e){n("log","at platforms/app-plus/speech/speech.vue:45","语音识别失败:"+e.message)}))}},async startRecognizeEnglish(){if(1===await this.checkPermission()){var e={},t=this;e.engine="baidu",e.lang="en-us",t.value="",plus.speech.startRecognize(e,(function(e){n("log","at platforms/app-plus/speech/speech.vue:63",e),t.value+=e}),(function(e){n("log","at platforms/app-plus/speech/speech.vue:66","语音识别失败:"+e.message)}))}},async checkPermission(){let e=Fe.isIOS?await Fe.requestIOS("record"):await Fe.requestAndroid("android.permission.RECORD_AUDIO");return null===e||1===e?e=1:2===e?uni.showModal({content:"系统麦克风已关闭",confirmText:"确定",showCancel:!1,success:function(e){}}):uni.showModal({content:"需要麦克风权限",confirmText:"设置",success:function(e){e.confirm&&Fe.gotoAppSetting()}}),e}}};const Re=a(Ue,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-textarea"},[e.createElementVNode("textarea",{value:l.value,placeholder:"语音识别内容展示区域",disabled:""},null,8,["value"])]),e.createElementVNode("view",{class:"uni-common-mt uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.startRecognize&&r.startRecognize(...e))},"开始语音识别")])])])}]]);var Oe=null;const $e={data:()=>({title:"orientation",value:""}),onUnload(){this.watchStop()},methods:{getOrient:function(){var e=this;plus.orientation.getCurrentOrientation((function(t){e.value="alpha:"+t.alpha+"\nbeta:"+t.beta+"\ngamma:"+t.gamma}),(function(e){n("log","at platforms/app-plus/orientation/orientation.vue:34","获取失败:"+e.message)}))},watchOrient:function(){var e=this;Oe||(Oe=plus.orientation.watchOrientation((function(t){e.value="监听设备方向变化信息\nalpha:"+t.alpha+"\nbeta:"+t.beta+"\ngamma:"+t.gamma}),(function(e){plus.orientation.clearWatch(Oe),Oe=null,n("log","at platforms/app-plus/orientation/orientation.vue:47","监听失败:"+e.message)})))},watchStop:function(){Oe?(plus.orientation.clearWatch(Oe),Oe=null):n("log","at platforms/app-plus/orientation/orientation.vue:55","没有监听设备方向变化")}}};const ze=a($e,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.getOrient&&r.getOrient(...e))},"获取设备的方向信息"),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.watchOrient&&r.watchOrient(...e))},"监听设备的方向变化"),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.watchStop&&r.watchStop(...e))},"停止监听")]),e.createElementVNode("view",{class:"uni-textarea"},[e.createElementVNode("textarea",{value:l.value},null,8,["value"])])])])}]]);var qe=null,je=null;const He={data:()=>({title:"proximity",value:""}),methods:{getProximity:function(){var e=this;plus.proximity.getCurrentProximity((function(t){e.value="距离为:"+t}),(function(t){e.value="获取失败:"+t.message}))},watchProximity:function(){var e=this;qe||(je=plus.screen.getBrightness(),qe=plus.proximity.watchProximity((function(t){e.value="距离变化:"+t,plus.screen.setBrightness(t<1?.01:je)}),(function(t){plus.proximity.clearWatch(qe),qe=null,e.value="监听失败:"+t.message})))},watchStop:function(){qe?(this.value="停止监听设备距离传感器信息",plus.proximity.clearWatch(qe),qe=null):this.value="没有监听设备距离传感器"}}};const We=a(He,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-hello-text"}," 手机顶部听筒处有传感器监听距离手机屏幕的障碍物,覆盖该传感器会触发本事件变化 "),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.getProximity&&r.getProximity(...e))},"获取距离传感器信息"),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.watchProximity&&r.watchProximity(...e))},"监听距离传感器变化"),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.watchStop&&r.watchStop(...e))},"停止监听")]),e.createElementVNode("view",{class:"uni-textarea uni-common-mt"},[e.createElementVNode("textarea",{value:l.value},null,8,["value"])])])])}]]),Je={data:()=>({title:"push",provider:[],pushServer:"http://demo.dcloud.net.cn/push/?",tranMsg:""}),onLoad:function(){uni.getProvider({service:"push",success:e=>{n("log","at platforms/app-plus/push/push.vue:32","success",e),this.provider=e.provider},fail:e=>{n("log","at platforms/app-plus/push/push.vue:36","获取推送通道失败",e)}})},onUnload:function(){this.tranMsg=""},methods:{listenTranMsg(){plus.push.addEventListener("click",(e=>{this.tranMsg=JSON.stringify(e)})),plus.push.addEventListener("receive",(e=>{this.tranMsg=JSON.stringify(e)})),uni.showToast({title:"开始监听透传数据",icon:"success"})},requireTranMsg(){var e=plus.push.getClientInfo(),t=this.pushServer+"type=tran&appid="+encodeURIComponent(plus.runtime.appid);e.id&&(t+="&id="+e.id),t+="&cid="+encodeURIComponent(e.clientid),"iOS"==plus.os.name&&(t+="&token="+encodeURIComponent(e.token)),t+="&title="+encodeURIComponent("Hello uniapp"),t+="&content="+encodeURIComponent("带透传数据推送通知!"),"iOS"===plus.os.name?t+="&payload="+encodeURIComponent('{"title":"Hello uniapp Test","content":"test content"}'):t+="&payload="+encodeURIComponent('\'{"title":"Hello uniapp Test","content":"test content"}\''),t+="&version="+encodeURIComponent(plus.runtime.version),plus.runtime.openURL(t)}}};const Ge=a(Je,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),l.provider[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.listenTranMsg&&r.listenTranMsg(...e))},"监听透传数据")]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.requireTranMsg&&r.requireTranMsg(...e))},'发送"透传数据"消息')]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},"透传内容:"),e.createElementVNode("view",{class:"uni-textarea"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[2]||(a[2]=e=>l.tranMsg=e)},null,512),[[e.vModelText,l.tranMsg]])])])):e.createCommentVNode("",!0)])}]]);const Ye=a({data:()=>({img:"https://web-assets.dcloud.net.cn/unidoc/zh/1.jpg",show:!1,isOpened:!1,index:1}),computed:{pageIndex(){return 1===this.index?"aff47ed0-517d-11eb-8ff1-d5dcf8779628":2===this.index?"1fc36f80-5199-11eb-a16f-5b3e54966275":3===this.index?"20a3bd60-5199-11eb-97b7-0dc4655d6e68":4===this.index?"8b872410-51a7-11eb-8a36-ebb87efcf8c0":"aff47ed0-517d-11eb-8ff1-d5dcf8779628"}},onLoad:function(){this.music=uni.createInnerAudioContext(),this.music.src="https://web-assets.dcloud.net.cn/unidoc/zh/shake.wav";let e=null;uni.onAccelerometerChange((t=>{Math.abs(t.x)+Math.abs(t.y)+Math.abs(t.z)>20&&!this.show&&this.isOpened&&(this.music.play(),setTimeout((()=>{this.index++,this.index>4&&(this.index=1),this.img="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/"+this.pageIndex+".jpg"}),2e3),this.show=!0,e&&clearTimeout(e),e=setTimeout((()=>{e=null,this.show=!1}),600))}))},onShow(){this.isOpened=!0},onUnload(){this.show=!1,this.isOpened=!1,uni.stopAccelerometer(),this.music.destroy()}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"root",style:e.normalizeStyle({backgroundImage:"url("+o.img+")"})},[e.createElementVNode("view",{class:e.normalizeClass([o.show?"up":"","shake-up"])},[e.createElementVNode("image",{mode:"aspectFit",src:"https://web-assets.dcloud.net.cn/unidoc/zh/shakeup.png"})],2),e.createElementVNode("view",{class:e.normalizeClass([o.show?"down":"","shake-down"])},[e.createElementVNode("image",{mode:"aspectFit",src:"https://web-assets.dcloud.net.cn/unidoc/zh/shakedown.png"})],2)],4)}]]);const Ke=a({name:"u-link",props:{href:{type:String,default:""},text:{type:String,default:""},inWhiteList:{type:Boolean,default:!1}},methods:{openURL(){plus.runtime.openURL(this.href)}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("text",{style:{"text-decoration":"underline"},href:i.href,onClick:a[0]||(a[0]=(...e)=>s.openURL&&s.openURL(...e)),inWhiteList:i.inWhiteList},e.toDisplayString(i.text),9,["href","inWhiteList"])}]]);const Qe=a({data:()=>({providerList:[],version:""}),onLoad(){this.version=plus.runtime.version,uni.getProvider({service:"share",success:e=>{const t=[];for(let a=0;a{n("log","at pages/about/about.vue:78","获取分享通道失败"+JSON.stringify(e))}})},methods:{save(){uni.showActionSheet({itemList:["保存图片到相册"],success:()=>{plus.gallery.save("https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/app_download.png",(function(){uni.showToast({title:"保存成功",icon:"none"})}),(function(){uni.showToast({title:"保存失败,请重试!",icon:"none"})}))}})},share(e){if(0===this.providerList.length)return void uni.showModal({title:"当前环境无分享渠道!",showCancel:!1});let t=this.providerList.map((function(e){return e.name}));uni.showActionSheet({itemList:t,success:e=>{let t=this.providerList[e.tapIndex].id;uni.share({provider:t,scene:this.providerList[e.tapIndex].type&&"WXSceneTimeline"===this.providerList[e.tapIndex].type?"WXSceneTimeline":"WXSceneSession",type:"qq"===t?1:0,title:"欢迎体验uni-app",summary:"uni-app 是一个使用 Vue.js 开发跨平台应用的前端框架",imageUrl:"https://web-assets.dcloud.net.cn/unidoc/zh/8.jpg",href:"https://m3w.cn/uniapp",success:e=>{n("log","at pages/about/about.vue:128","success:"+JSON.stringify(e))},fail:e=>{uni.showModal({content:e.errMsg,showCancel:!1})}})}})}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("u-link"),Ke);return e.openBlock(),e.createElementBlock("view",{class:"about"},[e.createElementVNode("view",{class:"content"},[e.createElementVNode("view",{class:"qrcode"},[e.createElementVNode("image",{src:"https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/app_download.png",onLongtap:a[0]||(a[0]=(...e)=>l.save&&l.save(...e))},null,32),e.createElementVNode("text",{class:"tip"},"扫码体验uni-app")]),e.createElementVNode("view",{class:"desc"},[e.createElementVNode("text",{class:"code"},"uni-app"),e.createTextVNode(" 是一个使用 "),e.createElementVNode("text",{class:"code"},"Vue.js"),e.createTextVNode(" 开发跨平台应用的前端框架。 ")]),e.createElementVNode("view",{class:"source"},[e.createElementVNode("view",{class:"title"},"本示例源码获取方式:"),e.createElementVNode("view",{class:"source-list"},[e.createElementVNode("view",{class:"source-cell"},[e.createElementVNode("text",{space:"nbsp"},"1. "),e.createElementVNode("text",null,[e.createTextVNode("下载 HBuilderX,新建 uni-app 项目时选择 "),e.createElementVNode("text",{class:"code"},"Hello uni-app"),e.createTextVNode(" 模板。")])]),e.createElementVNode("view",{class:"source-cell"},[e.createElementVNode("text",{space:"nbsp"},"2. "),e.createVNode(r,{class:"link",href:"https://github.com/dcloudio/hello-uniapp",text:"https://github.com/dcloudio/hello-uniapp"},null,8,["href","text"])])])]),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>l.share&&l.share(...e))},"分享")]),e.createElementVNode("view",{class:"version"}," 当前版本:"+e.toDisplayString(s.version),1)])}]]),Ze={name:"UniRate",props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},disabledColor:{type:String,default:"#c0c0c0"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},readonly:{type:[Boolean,String],default:!1},allowHalf:{type:[Boolean,String],default:!1},touchable:{type:[Boolean,String],default:!0}},data:()=>({valueSync:"",userMouseFristMove:!0,userRated:!1,userLastRate:1}),watch:{value(e){this.valueSync=Number(e)},modelValue(e){this.valueSync=Number(e)}},computed:{stars(){const e=this.valueSync?this.valueSync:0,t=[],a=Math.floor(e),i=Math.ceil(e);for(let n=0;nn?t.push({activeWitch:"100%"}):i-1===n?t.push({activeWitch:100*(e-a)+"%"}):t.push({activeWitch:"0"});return t},marginNumber(){return Number(this.margin)}},created(){this.valueSync=Number(this.value||this.modelValue),this._rateBoxLeft=0,this._oldValue=null},mounted(){setTimeout((()=>{this._getSize()}),100)},methods:{touchstart(e){if(this.readonly||this.disabled)return;const{clientX:t,screenX:a}=e.changedTouches[0];this._getRateCount(t||a)},touchmove(e){if(this.readonly||this.disabled||!this.touchable)return;const{clientX:t,screenX:a}=e.changedTouches[0];this._getRateCount(t||a)},mousedown(e){},mousemove(e){},mouseleave(e){},_getRateCount(e){this._getSize();const t=Number(this.size);if(isNaN(t))return new Error("size 属性只能设置为数字");const a=e-this._rateBoxLeft;let i=parseInt(a/(t+this.marginNumber));i=i<0?0:i,i=i>this.max?this.max:i;const n=parseInt(a-(t+this.marginNumber)*i);let o=0;(this._oldValue!==i||this.PC)&&(this._oldValue=i,o=this.allowHalf?n>t/2?i+1:i+.5:i+1,o=Math.max(.5,Math.min(o,this.max)),this.valueSync=o,this._onChange())},_onChange(){this.$emit("input",this.valueSync),this.$emit("update:modelValue",this.valueSync),this.$emit("change",{value:this.valueSync})},_getSize(){uni.createSelectorQuery().in(this).select(".uni-rate").boundingClientRect().exec((e=>{e&&(this._rateBoxLeft=e[0].left)}))}}};const Xe=a(Ze,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{ref:"uni-rate",class:"uni-rate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.stars,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-rate__icon",{"uni-cursor-not-allowed":i.disabled}]),style:e.normalizeStyle({"margin-right":l.marginNumber+"px"}),key:n,onTouchstart:a[0]||(a[0]=e.withModifiers(((...e)=>l.touchstart&&l.touchstart(...e)),["stop"])),onTouchmove:a[1]||(a[1]=e.withModifiers(((...e)=>l.touchmove&&l.touchmove(...e)),["stop"])),onMousedown:a[2]||(a[2]=e.withModifiers(((...e)=>l.mousedown&&l.mousedown(...e)),["stop"])),onMousemove:a[3]||(a[3]=e.withModifiers(((...e)=>l.mousemove&&l.mousemove(...e)),["stop"])),onMouseleave:a[4]||(a[4]=(...e)=>l.mouseleave&&l.mouseleave(...e))},[e.createVNode(r,{color:i.color,size:i.size,type:i.isFill?"star-filled":"star"},null,8,["color","size","type"]),e.createElementVNode("view",{style:e.normalizeStyle({width:t.activeWitch}),class:"uni-rate__icon-on"},[e.createVNode(r,{color:i.disabled?i.disabledColor:i.activeColor,size:i.size,type:"star-filled"},null,8,["color","size"])],4)],38)))),128))],512)])}],["__scopeId","data-v-77c606f8"]]),et={data:()=>({msgContents:["界面显示错乱","启动缓慢,卡出翔了","UI无法直视,丑哭了","偶发性崩溃"],stars:[1,2,3,4,5],imageList:[],sendDate:{score:0,content:"",contact:""}}),onLoad(){this.deviceInfo={appid:"__UNI__5D0B0CA",imei:plus.device.imei,p:"Android"===plus.os.name?"a":"i",md:plus.device.model,app_version:plus.runtime.version,plus_version:plus.runtime.innerVersion,os:plus.os.version,net:""+plus.networkinfo.getCurrentType()},this.sendDate=Object.assign(this.deviceInfo,this.sendDate)},methods:{close(e){this.imageList.splice(e,1)},chooseMsg(){uni.showActionSheet({itemList:this.msgContents,success:e=>{this.sendDate.content=this.msgContents[e.tapIndex]}})},chooseImg(){uni.chooseImage({sourceType:["camera","album"],sizeType:"compressed",count:5-this.imageList.length,success:e=>{this.imageList=this.imageList.concat(e.tempFilePaths)}})},chooseStar(e){this.sendDate.score=e},previewImage(e){uni.previewImage({urls:this.imageList,current:this.imageList[e]})},send(){if(0===this.sendDate.content.length)return void uni.showModal({content:"请输入问题和意见",showCancel:!1});uni.showLoading({title:"上传中..."});let e=this.imageList.map(((e,t)=>({name:"images"+t,uri:e})));this.request(this.sendDate,e).then((e=>{"string"==typeof e.data&&(e.data=JSON.parse(e.data)),200===e.statusCode&&e.data&&0===e.data.ret?(uni.showModal({content:"反馈成功",showCancel:!1}),this.imageList=[],this.sendDate=Object.assign(this.deviceInfo,{score:0,content:"",contact:""})):200!==e.statusCode?uni.showModal({content:"反馈失败,错误码为:"+e.statusCode,showCancel:!1}):uni.showModal({content:"反馈失败",showCancel:!1})})).catch((e=>{n("log","at platforms/app-plus/feedback/feedback.vue:173",e)}))},request:(e,t)=>new Promise(((a,i)=>{let n={url:"https://service.dcloud.net.cn/feedback",success:e=>{a(e)},fail:e=>{i(e)},complete(){uni.hideLoading()}};t.length>0?(n.files=t,n.formData=e,uni.uploadFile(n)):(n.data=e,n.method="POST",uni.request(n))}))}};const tt=a(et,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-rate"),Xe);return e.openBlock(),e.createElementBlock("view",{class:"page"},[e.createElementVNode("view",{class:"feedback-title"},[e.createElementVNode("text",null,"问题和意见"),e.createElementVNode("text",{class:"feedback-quick",onClick:a[0]||(a[0]=(...e)=>l.chooseMsg&&l.chooseMsg(...e))},"快速键入")]),e.createElementVNode("view",{class:"feedback-body"},[e.withDirectives(e.createElementVNode("textarea",{placeholder:"请详细描述你的问题和意见...","onUpdate:modelValue":a[1]||(a[1]=e=>s.sendDate.content=e),class:"feedback-textare"},null,512),[[e.vModelText,s.sendDate.content]])]),e.createElementVNode("view",{class:"feedback-title"},[e.createElementVNode("text",null,"图片(选填,提供问题截图,总大小10M以下)")]),e.createElementVNode("view",{class:"feedback-body feedback-uploader"},[e.createElementVNode("view",{class:"uni-uploader"},[e.createElementVNode("view",{class:"uni-uploader-head"},[e.createElementVNode("view",{class:"uni-uploader-title"},"点击预览图片"),e.createElementVNode("view",{class:"uni-uploader-info"},e.toDisplayString(s.imageList.length)+"/5",1)]),e.createElementVNode("view",{class:"uni-uploader-body"},[e.createElementVNode("view",{class:"uni-uploader__files"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.imageList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"uni-uploader__file",style:{position:"relative"}},[e.createElementVNode("image",{class:"uni-uploader__img",src:t,onClick:e=>l.previewImage(a)},null,8,["src","onClick"]),e.createElementVNode("view",{class:"close-view",onClick:e=>l.close(a)},"x",8,["onClick"])])))),128)),e.withDirectives(e.createElementVNode("view",{class:"uni-uploader__input-box"},[e.createElementVNode("view",{class:"uni-uploader__input",onClick:a[2]||(a[2]=(...e)=>l.chooseImg&&l.chooseImg(...e))})],512),[[e.vShow,s.imageList.length<5]])])])])]),e.createElementVNode("view",{class:"feedback-title"},[e.createElementVNode("text",null,"QQ/邮箱")]),e.createElementVNode("view",{class:"feedback-body"},[e.withDirectives(e.createElementVNode("input",{class:"feedback-input","onUpdate:modelValue":a[3]||(a[3]=e=>s.sendDate.contact=e),placeholder:"(选填,方便我们联系你 )"},null,512),[[e.vModelText,s.sendDate.contact]])]),e.createElementVNode("view",{class:"feedback-title feedback-star-view"},[e.createElementVNode("text",null,"应用评分"),e.createElementVNode("view",{class:"feedback-star-view"},[e.createVNode(r,{modelValue:s.sendDate.score,"onUpdate:modelValue":a[4]||(a[4]=e=>s.sendDate.score=e),color:"#bbb"},null,8,["modelValue"])])]),e.createElementVNode("button",{type:"default",class:"feedback-submit",onClick:a[5]||(a[5]=(...e)=>l.send&&l.send(...e))},"提交"),e.createElementVNode("view",{class:"feedback-title"},[e.createElementVNode("text",null,"用户反馈的结果可在app打包后于DCloud开发者中心查看")])])}]]),at="UNI_ADMIN_UPGRADE_CENTER_LOCAL_FILE_PATH";let it,nt=null;const ot=a({data:()=>({installForBeforeFilePath:"",installed:!1,installing:!1,downloadSuccess:!1,downloading:!1,downLoadPercent:0,downloadedSize:0,packageFileSize:0,tempFilePath:"",title:"更新日志",contents:"",is_mandatory:!1,subTitle:"发现新版本",downLoadBtnTextiOS:"立即跳转更新",downLoadBtnText:"立即下载更新",downLoadingText:"安装包下载中,请稍后"}),onLoad({local_storage_key:e}){if(!e)return n("error","at uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue:149","local_storage_key为空,请检查后重试"),void uni.navigateBack();const t=uni.getStorageSync(e);if(!t)return n("error","at uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue:156","安装包信息为空,请检查后重试"),void uni.navigateBack();const a=["version","url","type"];for(let i in t)if(-1!==a.indexOf(i)&&!t[i])return n("error","at uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue:164",`参数 ${i} 必填,请检查后重试`),void uni.navigateBack();Object.assign(this,t),this.checkLocalStoragePackage()},onBackPress(){if(this.is_mandatory)return!0;nt&&nt.abort()},onHide(){it=null},computed:{isWGT(){return"wgt"===this.type},isiOS(){return!this.isWGT&&this.platform.includes("iOS")},isAppStore(){return this.isiOS||!this.isiOS&&!this.isWGT&&-1===this.url.indexOf(".apk")}},methods:{checkLocalStoragePackage(){const e=uni.getStorageSync(at);if(e){const{version:t,savedFilePath:a,installed:i}=e;i||0!==function(e="0",t="0"){e=String(e).split("."),t=String(t).split(".");const a=Math.min(e.length,t.length);let i=0;for(let n=0;no){i=1;break}if(at.length,o=n?e:t;for(let e=a;e0){i=n?1:-1;break}}return i}(t,this.version)?this.deleteSavedFile(a):(this.downloadSuccess=!0,this.installForBeforeFilePath=a,this.tempFilePath=a)}},async closeUpdate(){return this.downloading?this.is_mandatory?uni.showToast({title:"下载中,请稍后……",icon:"none",duration:500}):void uni.showModal({title:"是否取消下载?",cancelText:"否",confirmText:"是",success:e=>{e.confirm&&(nt&&nt.abort(),uni.navigateBack())}}):this.downloadSuccess&&this.tempFilePath?(await this.saveFile(this.tempFilePath,this.version),void uni.navigateBack()):void uni.navigateBack()},updateApp(){this.checkStoreScheme().catch((()=>{this.downloadPackage()}))},checkStoreScheme(){return this.store_list&&this.store_list.length?(this.store_list.filter((e=>e.enable)).sort(((e,t)=>t.priority-e.priority)).map((e=>e.scheme)).reduce(((e,t,a)=>(it=(e||(e=Promise.reject())).catch((()=>new Promise(((e,a)=>{plus.runtime.openURL(t,(e=>{a(e)}))})))),it)),it),it):Promise.reject()},downloadPackage(){this.downloading=!0,nt=uni.downloadFile({url:this.url,success:e=>{200==e.statusCode&&(this.downloadSuccess=!0,this.tempFilePath=e.tempFilePath,this.is_mandatory&&this.installPackage())},complete:()=>{this.downloading=!1,this.downLoadPercent=0,this.downloadedSize=0,this.packageFileSize=0,nt=null}}),nt.onProgressUpdate((e=>{this.downLoadPercent=e.progress,this.downloadedSize=(e.totalBytesWritten/Math.pow(1024,2)).toFixed(2),this.packageFileSize=(e.totalBytesExpectedToWrite/Math.pow(1024,2)).toFixed(2)}))},installPackage(){this.isWGT&&(this.installing=!0),plus.runtime.install(this.tempFilePath,{force:!1},(async e=>{if(this.installing=!1,this.installed=!0,this.isWGT)this.is_mandatory&&(uni.showLoading({icon:"none",title:"安装成功,正在重启……"}),setTimeout((()=>{uni.hideLoading(),this.restart()}),1e3));else{const e=uni.getStorageSync(at);uni.setStorageSync(at,{...e,installed:!0})}}),(async e=>{this.installForBeforeFilePath&&(await this.deleteSavedFile(this.installForBeforeFilePath),this.installForBeforeFilePath=""),this.installing=!1,this.installed=!1,uni.showModal({title:"更新失败,请重新下载",content:e.message,showCancel:!1})})),this.isWGT||this.is_mandatory||uni.navigateBack()},restart(){this.installed=!1,plus.runtime.restart()},saveFile:(e,t)=>new Promise(((a,i)=>{uni.saveFile({tempFilePath:e,success({savedFilePath:e}){uni.setStorageSync(at,{version:t,savedFilePath:e})},complete(){a()}})})),deleteSavedFile:e=>(uni.removeStorageSync(at),uni.removeSavedFile({filePath:e})),jumpToAppStore(){plus.runtime.openURL(this.url)}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"mask flex-center"},[e.createElementVNode("view",{class:"content botton-radius"},[e.createElementVNode("view",{class:"content-top"},[e.createElementVNode("text",{class:"content-top-text"},e.toDisplayString(o.title),1),e.createElementVNode("image",{class:"content-top",style:{top:"0"},width:"100%",height:"100%",src:"/assets/bg_top.84172c45.png"})]),e.createElementVNode("view",{class:"content-header"}),e.createElementVNode("view",{class:"content-body"},[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,e.toDisplayString(o.subTitle),1)]),e.createElementVNode("view",{class:"body"},[e.createElementVNode("scroll-view",{class:"box-des-scroll","scroll-y":"true"},[e.createElementVNode("text",{class:"box-des"},e.toDisplayString(o.contents),1)])]),e.createElementVNode("view",{class:"footer flex-center"},[s.isAppStore?(e.openBlock(),e.createElementBlock("button",{key:0,class:"content-button",style:{border:"none",color:"#fff"},plain:"",onClick:a[0]||(a[0]=(...e)=>s.jumpToAppStore&&s.jumpToAppStore(...e))},e.toDisplayString(o.downLoadBtnTextiOS),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.downloadSuccess?o.downloadSuccess&&!o.installed?(e.openBlock(),e.createElementBlock("button",{key:1,class:"content-button",style:{border:"none",color:"#fff"},plain:"",loading:o.installing,disabled:o.installing,onClick:a[2]||(a[2]=(...e)=>s.installPackage&&s.installPackage(...e))},e.toDisplayString(o.installing?"正在安装……":"下载完成,立即安装"),9,["loading","disabled"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.downloading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"progress-box flex-column"},[e.createElementVNode("progress",{class:"progress","border-radius":"35",percent:o.downLoadPercent,activeColor:"#3DA7FF","show-info":"","stroke-width":"10"},null,8,["percent"]),e.createElementVNode("view",{style:{width:"100%","font-size":"28rpx",display:"flex","justify-content":"space-around"}},[e.createElementVNode("text",null,e.toDisplayString(o.downLoadingText),1),e.createElementVNode("text",null,"("+e.toDisplayString(o.downloadedSize)+"/"+e.toDisplayString(o.packageFileSize)+"M)",1)])])):(e.openBlock(),e.createElementBlock("button",{key:1,class:"content-button",style:{border:"none",color:"#fff"},plain:"",onClick:a[1]||(a[1]=(...e)=>s.updateApp&&s.updateApp(...e))},e.toDisplayString(o.downLoadBtnText),1))],64)),o.installed&&s.isWGT?(e.openBlock(),e.createElementBlock("button",{key:2,class:"content-button",style:{border:"none",color:"#fff"},plain:"",onClick:a[3]||(a[3]=(...e)=>s.restart&&s.restart(...e))}," 安装完毕,点击重启 ")):e.createCommentVNode("",!0)],64))])]),o.is_mandatory?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:0,class:"close-img",src:"/assets/app_update_close.91137466.png",onClick:a[4]||(a[4]=e.withModifiers(((...e)=>s.closeUpdate&&s.closeUpdate(...e)),["stop"]))}))])])}]]),st="univerifyInfo",lt={data:()=>({title:"login",providerList:[],phoneNumber:"",univerifyBtnLoading:!1}),computed:{...fe(["hasLogin","isUniverifyLogin","univerifyErrorMsg"])},onLoad(){uni.getProvider({service:"oauth",success:e=>{this.providerList=e.provider.map((e=>{let t="";switch(e){case"weixin":t="微信登录";break;case"qq":t="QQ登录";break;case"sinaweibo":t="新浪微博登录";break;case"xiaomi":t="小米登录";break;case"alipay":t="支付宝登录";break;case"baidu":t="百度登录";break;case"jd":t="京东登录";break;case"toutiao":t="头条登录";break;case"apple":t="苹果登录";break;case"univerify":t="一键登录"}return{name:t,id:e}}))},fail:e=>{n("log","at pages/API/login/login.vue:104","获取登录通道失败",e)}}),this.hasLogin&&this.isUniverifyLogin&&this.getPhoneNumber(uni.getStorageSync(st)).then((e=>{this.phoneNumber=e}))},methods:{...ye(["login","setUniverifyLogin"]),...be(["getPhoneNumber"]),Toast(e,t=1e3){uni.showToast(Object.assign({},e,{duration:t}))},tologin(e){"univerify"===e.id&&(this.univerifyBtnLoading=!0),uni.login({provider:e.id,success:async t=>{switch(n("log","at pages/API/login/login.vue:134","login success:",t),this.Toast({title:"登录成功"}),this.login(e.id),this.setUniverifyLogin("univerify"===e.id),e.id){case"univerify":this.loginByUniverify(e.id,t);break;case"apple":this.loginByApple(e.id,t)}},fail:e=>{if(n("log","at pages/API/login/login.vue:180","login fail:",e),"30002"==e.code)return uni.closeAuthView(),void this.Toast({title:"其他登录方式"});1e3!=e.code?"30005"!=e.code?"30003"!=e.code&&uni.showModal({showCancel:!1,title:"登录失败",content:JSON.stringify(e)}):uni.showModal({showCancel:!1,title:"预登录失败",content:this.univerifyErrorMsg||e.errMsg}):uni.showModal({title:"登录失败",content:`${e.errMsg}\n,错误码:${e.code}`,confirmText:"开通指南",cancelText:"确定",success:e=>{e.confirm&&setTimeout((()=>{plus.runtime.openWeb("https://ask.dcloud.net.cn/article/37965")}),500)}})},complete:()=>{this.univerifyBtnLoading=!1}})},loginByUniverify(e,t){this.setUniverifyLogin(!0),uni.closeAuthView();const a={provider:e,...t.authResult};this.getPhoneNumber(a).then((e=>{this.phoneNumber=e,uni.setStorageSync(st,a)})).catch((e=>{uni.showModal({showCancel:!1,title:"手机号获取失败",content:`${e.errMsg}\n,错误码:${e.code}`}),n("error","at pages/API/login/login.vue:251",t)}))},async loginByApple(e,t){let a,i;try{i=await uni.getUserInfo({provider:e})}catch(dn){a=dn}if(a){let e=a.errMsg;~e.indexOf("uni.login")&&(e="请在登录页面完成登录操作"),uni.showModal({title:"获取用户信息失败",content:"错误原因"+e,showCancel:!1})}n("warn","at pages/API/login/login.vue:285","此处使用uni-id处理苹果登录,详情参考: https://uniapp.dcloud.net.cn/uniCloud/uni-id"),uni.request({url:"https://97fca9f2-41f6-449f-a35e-3f135d4c3875.bspapp.com/http/user-center",method:"POST",data:{action:"loginByApple",params:i.userInfo},success:e=>{n("log","at pages/API/login/login.vue:294","uniId login success",e),0!==e.data.code?uni.showModal({showCancel:!1,content:`苹果登录失败: ${JSON.stringify(e.data.msg)}`}):(uni.setStorageSync("openid",e.data.openid),uni.setStorageSync("apple_nickname",e.data.userInfo.nickname))},fail:e=>{uni.showModal({content:`苹果登录失败: ${JSON.stringify(e)}`,showCancel:!1})}})}}};const rt=a(lt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{style:{background:"#FFF",padding:"40rpx"}},[!0===t.hasLogin?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"uni-h3 uni-center uni-common-mt"},[e.createTextVNode("已登录 "),t.isUniverifyLogin?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"font-size":"0.8em"}},[l.phoneNumber.length?(e.openBlock(),e.createElementBlock("i",{key:1},"("+e.toDisplayString(l.phoneNumber)+")",1)):(e.openBlock(),e.createElementBlock("i",{key:0,class:"uni-icon_toast uni-loading"}))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-hello-text uni-center"},[e.createElementVNode("text",null,"每个账号仅需登录 1 次,\\n后续每次进入页面即可自动拉取用户信息。")])],64)):e.createCommentVNode("",!0),!1===t.hasLogin?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"uni-h3 uni-center uni-common-mt"},"未登录"),e.createElementVNode("view",{class:"uni-hello-text uni-center"}," 请点击按钮登录 ")],64)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-btn-v uni- uni-common-mt"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.providerList,((t,a)=>(e.openBlock(),e.createElementBlock("button",{type:"primary",class:"page-body-button",onClick:e=>r.tologin(t),loading:"univerify"===t.id&&l.univerifyBtnLoading,key:a},e.toDisplayString(t.name),9,["onClick","loading"])))),128))])])])}]]);const ct=a({data:()=>({title:"SubNvue",showVideo:!1}),onLoad(){this.closeMask(),uni.$on("popup-page",(e=>{if("interactive"===e.type)uni.showModal({title:"来自Popup的消息",content:e.info});else uni.showToast({title:e.title})})),uni.$on("drawer-page",(e=>{uni.showToast({title:"点击了第"+e+"项",icon:"none"})}))},onUnload(){uni.$off("popup-page"),uni.$off("drawer-page")},onReady(){this.showVideo=!0},methods:{showDrawer(){uni.getSubNVueById("drawer").show("slide-in-left",200)},showPopup(){uni.$emit("page-popup",{title:"请阅读软件内容",content:"uni-app 是一个使用 Vue.js 开发跨平台应用的前端框架,开发者编写一套代码,可编译到iOS、Android、H5、小程序等多个平台。"});uni.getSubNVueById("popup").show("slide-in-top",250)},videoErrorCallback:function(){uni.showModal({content:"视频加载失败",showCancel:!1})},playVideo(){uni.getSubNVueById("video_mask").show("fade-in",200,(()=>{uni.$emit("play-video",{status:"open"})}))},closeMask(){let e=uni.getSubNVueById("video_mask");uni.$emit("close-video",{status:"close"}),e.hide("fade-out",200)}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"example"},[e.createElementVNode("view",{class:"example-title"},"从左侧滑出"),e.createElementVNode("button",{onClick:a[0]||(a[0]=(...e)=>r.showDrawer&&r.showDrawer(...e))},"显示抽屉")]),e.createElementVNode("view",{class:"example"},[e.createElementVNode("view",{class:"example-title"},"从上侧竖向滑出"),e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.showPopup&&r.showPopup(...e))},"显示 弹出层")]),e.createElementVNode("view",{style:{width:"100%"}},[l.showVideo?(e.openBlock(),e.createElementBlock("video",{key:0,id:"video",onPlay:a[2]||(a[2]=(...e)=>r.playVideo&&r.playVideo(...e)),onPause:a[3]||(a[3]=(...e)=>r.closeMask&&r.closeMask(...e)),controls:!1,src:"https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20181126-lite.m4v",onError:a[4]||(a[4]=(...e)=>r.videoErrorCallback&&r.videoErrorCallback(...e)),poster:"https://web-assets.dcloud.net.cn/unidoc/zh/poster.png"},null,32)):e.createCommentVNode("",!0)])])}]]);const dt=a({data:()=>({title:"getUserInfo",hasUserInfo:!1,userInfo:{},btnLoading:!1}),computed:{...fe(["loginProvider","isUniverifyLogin"])},methods:{...be(["getPhoneNumber"]),getUserInfo(){if(this.btnLoading=!0,this.isUniverifyLogin)this.getPhoneNumber(uni.getStorageSync("univerifyInfo")).then((e=>{this.hasUserInfo=!0,this.userInfo={phoneNumber:e}})).catch((e=>{n("error","at pages/API/get-user-info/get-user-info.vue:65","getUserInfo fail:",e),this.hasUserInfo=!1})).finally((()=>{this.btnLoading=!1}));else{if("apple"===this.loginProvider){const e=uni.getStorageSync("apple_nickname");if(e)return this.hasUserInfo=!0,this.userInfo={nickName:e},void(this.btnLoading=!1)}uni.getUserInfo({provider:this.loginProvider,success:e=>{this.hasUserInfo=!0,this.userInfo=e.userInfo},fail:e=>{n("log","at pages/API/get-user-info/get-user-info.vue:90","getUserInfo fail",e);let t=e.errMsg;~t.indexOf("uni.login")&&(t="请在登录页面完成登录操作"),uni.showModal({title:"获取用户信息失败",content:"错误原因"+t,showCancel:!1})},complete:()=>{this.btnLoading=!1}})}},mpGetUserInfo(e){n("log","at pages/API/get-user-info/get-user-info.vue:133","mpGetUserInfo",e),"getUserInfo:ok"===e.detail.errMsg?(this.hasUserInfo=!0,e.detail&&e.detail.userInfo&&(this.userInfo=e.detail.userInfo)):uni.showModal({title:"获取用户信息失败",content:"错误原因"+e.detail.errMsg,showCancel:!1})},clear(){this.hasUserInfo=!1,this.userInfo={}}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{style:{background:"#FFF",padding:"40rpx"}},[!1===l.hasUserInfo?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-hello-text uni-center"},[e.createElementVNode("text",null,"请点击下方按钮获取用户头像及昵称或手机号")])):e.createCommentVNode("",!0),!0===l.hasUserInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"uni-h4 uni-center uni-common-mt"},e.toDisplayString(l.userInfo.nickName||l.userInfo.nickname||l.userInfo.gender||l.userInfo.email||l.userInfo.phoneNumber),1),l.userInfo.avatarUrl||l.userInfo.avatar_url?(e.openBlock(),e.createElementBlock("view",{key:0,style:{padding:"30rpx 0","text-align":"center"}},[e.createElementVNode("image",{class:"userinfo-avatar",src:l.userInfo.avatarUrl||l.userInfo.avatar_url},null,8,["src"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",loading:l.btnLoading,onClick:a[0]||(a[0]=(...e)=>r.getUserInfo&&r.getUserInfo(...e))},"获取用户信息",8,["loading"]),e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.clear&&r.clear(...e))},"清空")])])])}]]),ut={data:()=>({title:"request-payment",loading:!1,price:1,providerList:[]}),onLoad:function(){uni.getProvider({service:"payment",success:e=>{n("log","at pages/API/request-payment/request-payment.vue:40","payment success:"+JSON.stringify(e));let t=[];e.provider.map((e=>{switch(e){case"alipay":t.push({name:"支付宝",id:e,loading:!1});break;case"wxpay":t.push({name:"微信",id:e,loading:!1})}})),this.providerList=t},fail:e=>{n("log","at pages/API/request-payment/request-payment.vue:65","获取支付通道失败:",e)}})},methods:{loginMpWeixin:()=>new Promise(((e,t)=>{uni.login({provider:"weixin",success(a){n("warn","at pages/API/request-payment/request-payment.vue:76","此处使用uni-id处理微信小程序登录,详情参考: https://uniapp.dcloud.net.cn/uniCloud/uni-id"),uni.request({url:"https://97fca9f2-41f6-449f-a35e-3f135d4c3875.bspapp.com/http/user-center",method:"POST",data:{action:"loginByWeixin",params:{code:a.code,platform:"mp-weixin"}},success(a){0===a.data.code?(uni.setStorageSync("openid",a.data.openid),e(a.data.openid)):t(new Error("获取openid失败:",a.result.msg))},fail(e){t(new Error("获取openid失败:"+e))}})},fail(e){t(e)}})})),async weixinPay(){let e=uni.getStorageSync("openid");if(n("log","at pages/API/request-payment/request-payment.vue:108","发起支付"),this.loading=!0,!e){try{e=await this.loginMpWeixin()}catch(dn){n("error","at pages/API/request-payment/request-payment.vue:114",dn)}if(!e)return uni.showModal({content:"获取openid失败",showCancel:!1}),void(this.loading=!1)}this.openid=e;let t=await this.getOrderInfo("wxpay");t?uni.requestPayment({...t,success:e=>{uni.showToast({title:"感谢您的赞助!"})},fail:e=>{uni.showModal({content:"支付失败,原因为: "+e.errMsg,showCancel:!1})},complete:()=>{this.loading=!1}}):uni.showModal({content:"获取支付信息失败",showCancel:!1})},async requestPayment(e,t){this.providerList[t].loading=!0;const a=e.id;let i=await this.getOrderInfo(a);i?(n("log","at pages/API/request-payment/request-payment.vue:165","--------orderInfo--------"),n("log","at pages/API/request-payment/request-payment.vue:166",i),uni.requestPayment({provider:a,orderInfo:i,success:e=>{n("log","at pages/API/request-payment/request-payment.vue:171","success",e),uni.showToast({title:"感谢您的赞助!"})},fail:e=>{n("log","at pages/API/request-payment/request-payment.vue:177","fail",e),uni.showModal({content:"支付失败,原因为: "+e.errMsg,showCancel:!1})},complete:()=>{this.providerList[t].loading=!1}})):uni.showModal({content:"获取支付信息失败",showCancel:!1})},getOrderInfo(e){return new Promise(((t,a)=>{this.price||a(new Error("请输入金额")),n("warn","at pages/API/request-payment/request-payment.vue:193","此处使用uni-pay处理支付,详情参考: https://uniapp.dcloud.io/uniCloud/unipay"),uni.request({method:"POST",url:"https://97fca9f2-41f6-449f-a35e-3f135d4c3875.bspapp.com/http/pay",data:{provider:e,openid:this.openid,totalFee:100*Number(this.price),platform:"app-plus"},success(e){0===e.data.code?t(e.data.orderInfo):a(new Error("获取支付信息失败"+e.data.msg))},fail(e){a(new Error("请求支付接口失败"+e))}})}))},priceChange(e){n("log","at pages/API/request-payment/request-payment.vue:222",e.detail.value),this.price=e.detail.value}}};const ht=a(ut,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{style:{background:"#FFF",padding:"50rpx 0"}},[e.createElementVNode("view",{class:"uni-hello-text uni-center"},[e.createElementVNode("text",null,"支付金额")]),e.createElementVNode("view",{class:"uni-h1 uni-center uni-common-mt"},[e.createElementVNode("text",{class:"rmbLogo"},"¥"),e.createElementVNode("input",{class:"price",type:"digit",value:l.price,maxlength:"4",onInput:a[0]||(a[0]=(...e)=>r.priceChange&&r.priceChange(...e))},null,40,["value"])])]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[l.providerList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.providerList,((t,a)=>(e.openBlock(),e.createElementBlock("button",{key:a,onClick:e=>r.requestPayment(t,a),loading:t.loading},e.toDisplayString(t.name)+"支付",9,["onClick","loading"])))),128)):e.createCommentVNode("",!0)])])])}]]),pt={data:()=>({title:"share",shareText:"uni-app可以同时发布成原生App、小程序、H5,邀请你一起体验!",href:"https://uniapp.dcloud.io",image:"",shareType:1,providerList:[]}),computed:{isDisableButton:()=>function(e){return 0===this.shareType&&"qq"===e.id||5===this.shareType&&"分享到微信好友"!==e.name}},onShareAppMessage(){return{title:this.shareText?this.shareText:"欢迎体验uni-app",path:"/pages/tabBar/component/component",imageUrl:this.image?this.image:"https://web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png"}},onUnload:function(){this.shareText="uni-app可以同时发布成原生App、小程序、H5,邀请你一起体验!",this.href="https://uniapp.dcloud.io",this.image=""},onLoad:function(){uni.getProvider({service:"share",success:e=>{n("log","at pages/API/share/share.vue:87","success",e);let t=[];for(let a=0;ae.sort-t.sort))},fail:e=>{n("log","at pages/API/share/share.vue:127","获取分享通道失败",e),uni.showModal({content:"获取分享通道失败",showCancel:!1})}})},methods:{async share(e){if(n("log","at pages/API/share/share.vue:137","分享通道:"+e.id+"; 分享类型:"+this.shareType),!this.shareText&&(1===this.shareType||0===this.shareType))return void uni.showModal({content:"分享内容不能为空",showCancel:!1});if(!this.image&&(2===this.shareType||0===this.shareType))return void uni.showModal({content:"分享图片不能为空",showCancel:!1});let t={provider:e.id,scene:e.type&&"WXSceneTimeline"===e.type?"WXSceneTimeline":"WXSceneSession",type:this.shareType,success:e=>{n("log","at pages/API/share/share.vue:160","success",e),uni.showModal({content:"已分享",showCancel:!1})},fail:e=>{n("log","at pages/API/share/share.vue:167","fail",e),uni.showModal({content:e.errMsg,showCancel:!1})},complete:function(){n("log","at pages/API/share/share.vue:174","分享操作结束!")}};switch(this.shareType){case 0:t.summary=this.shareText,t.imageUrl=this.image,t.title="欢迎体验uniapp",t.href="https://uniapp.dcloud.io";break;case 1:t.summary=this.shareText;break;case 2:t.imageUrl=this.image;break;case 5:t.imageUrl=this.image?this.image:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b6304f00-5168-11eb-bd01-97bc1429a9ff.png",t.title="欢迎体验uniapp",t.miniProgram={id:"gh_33446d7f7a26",path:"/pages/tabBar/component/component",webUrl:"https://uniapp.dcloud.io",type:0}}0===t.type&&"iOS"===plus.os.name&&(t.imageUrl=await this.compress()),1===t.type&&"qq"===t.provider&&(t.href="https://uniapp.dcloud.io",t.title="欢迎体验uniapp"),uni.share(t)},radioChange(e){n("log","at pages/API/share/share.vue:215","type:"+e.detail.value),this.shareType=parseInt(e.detail.value)},chooseImage(){uni.chooseImage({count:1,sourceType:["album","camera"],sizeType:["compressed","original"],success:e=>{this.image=e.tempFilePaths[0]},fail:e=>{}})},compress(){n("log","at pages/API/share/share.vue:249","开始压缩");let e=this.image;return new Promise((t=>{var a=plus.io.convertAbsoluteFileSystem(e.replace("file://",""));n("log","at pages/API/share/share.vue:253","after"+a),plus.io.resolveLocalFileSystemURL(a,(a=>{a.file((a=>{n("log","at pages/API/share/share.vue:257","getFile:"+JSON.stringify(a)),a.size>20480&&plus.zip.compressImage({src:e,dst:e.replace(".jpg","2222.jpg").replace(".JPG","2222.JPG"),width:"10%",height:"10%",quality:1,overwrite:!0},(a=>{n("log","at pages/API/share/share.vue:267","success zip****"+a.size);let i=e.replace(".jpg","2222.jpg").replace(".JPG","2222.JPG");t(i)}),(function(e){uni.showModal({content:"分享图片太大,需要请重新选择图片!",showCancel:!1})}))}))}),(e=>{n("log","at pages/API/share/share.vue:279","Resolve file URL failed: "+e.message),uni.showModal({content:"分享图片太大,需要请重新选择图片!",showCancel:!1})}))}))}}};const mt=a(pt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-title"},"分享内容"),e.createElementVNode("view",{class:"uni-textarea"},[e.withDirectives(e.createElementVNode("textarea",{class:"textarea","onUpdate:modelValue":a[0]||(a[0]=e=>l.shareText=e)},null,512),[[e.vModelText,l.shareText]])]),e.createElementVNode("view",{class:"uni-title"},"分享图片:"),e.createElementVNode("view",{class:"uni-uploader",style:{padding:"15rpx",background:"#FFF"}},[l.image?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-uploader__input-box",onClick:a[1]||(a[1]=(...e)=>r.chooseImage&&r.chooseImage(...e))})),l.image?(e.openBlock(),e.createElementBlock("image",{key:1,class:"uni-uploader__img",src:l.image},null,8,["src"])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-title"},"分享类型:"),e.createElementVNode("view",null,[e.createElementVNode("radio-group",{onChange:a[2]||(a[2]=(...e)=>r.radioChange&&r.radioChange(...e))},[e.createElementVNode("label",{class:"radio"},[e.createElementVNode("radio",{value:"1",checked:"true"}),e.createTextVNode("文字 ")]),e.createElementVNode("label",{class:"radio"},[e.createElementVNode("radio",{value:"2"}),e.createTextVNode("图片 ")]),e.createElementVNode("label",{class:"radio"},[e.createElementVNode("radio",{value:"0"}),e.createTextVNode("图文 ")]),e.createElementVNode("label",{class:"radio"},[e.createElementVNode("radio",{value:"5"}),e.createTextVNode("小程序 ")])],32)]),l.providerList.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-btn-v uni-common-mt"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.providerList,((t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[t?(e.openBlock(),e.createElementBlock("button",{key:0,type:"primary",disabled:r.isDisableButton(t),onClick:e=>r.share(t)},e.toDisplayString(t.name),9,["disabled","onClick"])):e.createCommentVNode("",!0)],64)))),128))])):e.createCommentVNode("",!0)])])}]]);const gt=a({data:()=>({title:"nav-default",hasSetText:!1,hasSetBg:!1}),methods:{setText(){this.hasSetText=!this.hasSetText,uni.setNavigationBarTitle({title:this.hasSetText?"Hello uni-app":"默认导航栏"})},setBg(){this.hasSetBg=!this.hasSetBg,uni.setNavigationBarColor({frontColor:this.hasSetBg?"#000000":"#ffffff",backgroundColor:this.hasSetBg?"#F8F8F8":"#007AFF"})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"page"},[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-helllo-text"}," 本页标题栏是uni-app的默认配置,开发者可在pages.json里配置文字内容及标题颜色,也可通过api接口将其改变。 "),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"default",onClick:a[0]||(a[0]=(...e)=>r.setText&&r.setText(...e))},"改变标题栏文字"),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.setBg&&r.setBg(...e))},"改变标题栏颜色")])])])}]]);const ft=a({data:()=>({title:"loading"}),methods:{showLoading:function(){uni.showLoading({title:"loading"})},hideLoading:function(){uni.hideLoading()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{class:"btn-load",type:"primary",onClick:a[0]||(a[0]=(...e)=>r.showLoading&&r.showLoading(...e))},"显示 loading 提示框"),e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.hideLoading&&r.hideLoading(...e))},"隐藏 loading 提示框")])])])}]]),yt="/pages/extUI/calendar/calendar";const vt=a({data:()=>({title:"navigate"}),computed:{...fe({hasLeftWin:e=>!e.noMatchLeftWindow})},methods:{navigateTo(){uni.navigateTo({url:"new-page/new-vue-page-1?data=Hello"})},navigateBack(){uni.navigateBack()},redirectTo(){uni.redirectTo({url:"new-page/new-vue-page-1"})},switchTab(){uni.switchTab({url:"/pages/tabBar/template/template"})},reLaunch(){this.hasLeftWin?uni.reLaunch({url:"/pages/component/view/view"}):uni.reLaunch({url:"/pages/tabBar/component/component"})},customAnimation(){uni.navigateTo({url:"new-page/new-vue-page-1?data=使用自定义动画打开页面",animationType:"slide-in-bottom",animationDuration:200})},preloadPage(){uni.preloadPage({url:yt,success(){uni.showToast({title:"页面预载成功"})},fail(){uni.showToast({title:"页面预载失败"})}})},unPreloadPage(){uni.unPreloadPage({url:yt})},navigateToPreloadPage(){uni.navigateTo({url:yt})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{onClick:a[0]||(a[0]=(...e)=>r.navigateTo&&r.navigateTo(...e))},"跳转新页面,并传递数据"),e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.navigateBack&&r.navigateBack(...e))},"返回上一页"),e.createElementVNode("button",{onClick:a[2]||(a[2]=(...e)=>r.redirectTo&&r.redirectTo(...e))},"在当前页面打开"),e.createElementVNode("button",{onClick:a[3]||(a[3]=(...e)=>r.switchTab&&r.switchTab(...e))},"切换到模板选项卡"),t.hasLeftWin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[4]||(a[4]=(...e)=>r.reLaunch&&r.reLaunch(...e))},"关闭所有页面,打开首页")),e.createElementVNode("button",{onClick:a[5]||(a[5]=(...e)=>r.customAnimation&&r.customAnimation(...e))},"使用自定义动画打开页面"),e.createElementVNode("button",{onClick:a[6]||(a[6]=(...e)=>r.preloadPage&&r.preloadPage(...e))},"预载复杂页面"),e.createElementVNode("button",{onClick:a[7]||(a[7]=(...e)=>r.unPreloadPage&&r.unPreloadPage(...e))},"取消页面预载"),e.createElementVNode("button",{onClick:a[8]||(a[8]=(...e)=>r.navigateToPreloadPage&&r.navigateToPreloadPage(...e))},"打开复杂页面")])])])}]]),bt={data:()=>({title:"新页面",data:""}),computed:{...fe(["colorIndex","colorList"]),...ve(["currentColor"])},onLoad(e){e.data&&(this.data=e.data),uni.$on("postMsg",(e=>{uni.showModal({content:`收到uni.$emit消息:${e.msg}`,showCancel:!1})}))},onUnload(){uni.$off("postMsg")},methods:{...ye(["setColorIndex"]),navToNvue(){uni.navigateTo({url:"new-nvue-page-1"})},navToVue(){uni.navigateTo({url:"new-vue-page-2"})}}};const wt=a(bt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"root"},[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"page-body"},[e.createElementVNode("view",{class:"new-page__text-box"},[e.createElementVNode("text",{class:"new-page__text"},"从上个页面接收到参数:"+e.toDisplayString(l.data),1)]),e.createElementVNode("view",{class:"new-page__color",onClick:a[0]||(a[0]=e=>t.setColorIndex(t.colorIndex>1?0:t.colorIndex+1)),style:e.normalizeStyle({backgroundColor:t.currentColor})},[e.createElementVNode("text",{class:"new-page__color-text"},"点击改变颜色")],4),e.createElementVNode("view",{class:"new-page__text-box"},[e.createElementVNode("text",{class:"new-page__text"},"点击上方色块使用vuex在页面之间进行通讯")]),e.createElementVNode("view",{class:"new-page__button"},[e.createElementVNode("button",{class:"new-page__button-item",onClick:a[1]||(a[1]=(...e)=>r.navToVue&&r.navToVue(...e))},"跳转VUE页面")])])])}]]);const kt=a({data:()=>({}),computed:{...fe(["colorIndex","colorList"]),...ve(["currentColor"])},methods:{...ye(["setColorIndex"]),emitMsg(){uni.$emit("postMsg",{msg:"From: Vue Page"})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"root"},[e.createElementVNode("view",{class:"page-body"},[e.createElementVNode("view",{class:"new-page__color",onClick:a[0]||(a[0]=e=>t.setColorIndex(t.colorIndex>1?0:t.colorIndex+1)),style:e.normalizeStyle({backgroundColor:t.currentColor})},[e.createElementVNode("text",{class:"new-page__color-text"},"点击改变颜色")],4),e.createElementVNode("view",{class:"new-page__text-box"},[e.createElementVNode("text",{class:"new-page__text"},"点击上方色块使用vuex在页面之间进行通讯")]),e.createElementVNode("view",{class:"new-page__button"},[e.createElementVNode("button",{class:"new-page__button-item",onClick:a[1]||(a[1]=(...e)=>s.emitMsg&&s.emitMsg(...e))},"向上一页面传递数据")])])])}]]);const xt=a({data:()=>({title:"下拉刷新 + 加载更多",data:[],loadMoreText:"加载中...",showLoadMore:!1,max:0}),onLoad(){this.initData()},onUnload(){this.max=0,this.data=[],this.loadMoreText="加载更多",this.showLoadMore=!1},onReachBottom(){n("log","at pages/API/pull-down-refresh/pull-down-refresh.vue:32","onReachBottom"),this.max>40?this.loadMoreText="没有更多数据了!":(this.showLoadMore=!0,setTimeout((()=>{this.setListData()}),300))},onPullDownRefresh(){n("log","at pages/API/pull-down-refresh/pull-down-refresh.vue:43","onPullDownRefresh"),this.initData()},methods:{initData(){setTimeout((()=>{this.max=0,this.data=[];let e=[];this.max+=20;for(var t=this.max-19;t(e.openBlock(),e.createElementBlock("view",{class:"text",key:a},"list - "+e.toDisplayString(t),1)))),128)),l.showLoadMore?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-loadmore"},e.toDisplayString(l.loadMoreText),1)):e.createCommentVNode("",!0)])])}]]);const Vt=a({data:()=>({title:"createAnimation",animationData:""}),onUnload(){this.animationData=""},onLoad(){this.animation=uni.createAnimation()},methods:{rotate:function(){this.animation.rotate(720*Math.random()-360).step(),this.animationData=this.animation.export()},scale:function(){this.animation.scale(2*Math.random()).step(),this.animationData=this.animation.export()},translate:function(){this.animation.translate(100*Math.random()-50,100*Math.random()-50).step(),this.animationData=this.animation.export()},skew:function(){this.animation.skew(90*Math.random(),90*Math.random()).step(),this.animationData=this.animation.export()},rotateAndScale:function(){this.animation.rotate(720*Math.random()-360).scale(2*Math.random()).step(),this.animationData=this.animation.export()},rotateThenScale:function(){this.animation.rotate(720*Math.random()-360).step().scale(2*Math.random()).step(),this.animationData=this.animation.export()},all:function(){this.animation.rotate(720*Math.random()-360).scale(2*Math.random()).translate(100*Math.random()-50,100*Math.random()-50).skew(90*Math.random(),90*Math.random()).step(),this.animationData=this.animation.export()},allInQueue:function(){this.animation.rotate(720*Math.random()-360).step().scale(2*Math.random()).step().translate(100*Math.random()-50,100*Math.random()-50).step().skew(90*Math.random(),90*Math.random()).step(),this.animationData=this.animation.export()},reset:function(){this.animation.rotate(0,0).scale(1).translate(0,0).skew(0,0).step({duration:0}),this.animationData=this.animation.export()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"animation-element-wrapper"},[e.createElementVNode("view",{class:"animation-element",animation:l.animationData},null,8,["animation"])]),e.createElementVNode("scroll-view",{class:"animation-buttons","scroll-y":"true"},[e.createElementVNode("button",{class:"animation-button",onClick:a[0]||(a[0]=(...e)=>r.rotate&&r.rotate(...e))},"旋转"),e.createElementVNode("button",{class:"animation-button",onClick:a[1]||(a[1]=(...e)=>r.scale&&r.scale(...e))},"缩放"),e.createElementVNode("button",{class:"animation-button",onClick:a[2]||(a[2]=(...e)=>r.translate&&r.translate(...e))},"移动"),e.createElementVNode("button",{class:"animation-button",onClick:a[3]||(a[3]=(...e)=>r.skew&&r.skew(...e))},"倾斜"),e.createElementVNode("button",{class:"animation-button",onClick:a[4]||(a[4]=(...e)=>r.rotateAndScale&&r.rotateAndScale(...e))},"旋转并缩放"),e.createElementVNode("button",{class:"animation-button",onClick:a[5]||(a[5]=(...e)=>r.rotateThenScale&&r.rotateThenScale(...e))},"旋转后缩放"),e.createElementVNode("button",{class:"animation-button",onClick:a[6]||(a[6]=(...e)=>r.all&&r.all(...e))},"同时展示全部"),e.createElementVNode("button",{class:"animation-button",onClick:a[7]||(a[7]=(...e)=>r.allInQueue&&r.allInQueue(...e))},"顺序展示全部"),e.createElementVNode("button",{class:"animation-button animation-button-reset",onClick:a[8]||(a[8]=(...e)=>r.reset&&r.reset(...e))},"还原")])])])}]]);const Nt=a({data:()=>({title:"createSelectorQuery",top:0,left:"0px",info:[]}),onReady(){this.getNodeInfo()},methods:{setPosition(){this.left=Math.random()*uni.upx2px(320)+"px",this.top=Math.random()*uni.upx2px(320)+"px",this.getNodeInfo()},getNodeInfo(){uni.createSelectorQuery().select(".target").boundingClientRect().exec((e=>{const t=e[0];if(t){const e=["left","right","top","bottom","width","height"],a=[];for(let i in e){let n=e[i];a.push({key:n,val:t[n]})}this.info=a}}))}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"movable block"},[e.createElementVNode("movable-area",null,[e.createElementVNode("movable-view",{class:"target",direction:"all",onChange:a[0]||(a[0]=(...e)=>r.getNodeInfo&&r.getNodeInfo(...e))},"Drag",32)])]),e.createElementVNode("view",{class:"movable"},[e.createElementVNode("view",{class:"info"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.info,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("text",{class:"b"},e.toDisplayString(t.key),1),e.createElementVNode("text",{class:"span"},e.toDisplayString(t.val),1)])))),128))])])])])}]]);let _t=null;const Et=a({data:()=>({appear:!1,title:"intersectionObserver"}),onReady(){_t=uni.createIntersectionObserver(this),_t.relativeTo(".scroll-view").observe(".ball",(e=>{e.intersectionRatio>0&&!this.appear?this.appear=!0:!e.intersectionRatio>0&&this.appear&&(this.appear=!1)}))},onUnload(){_t&&_t.disconnect()}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title uni-common-mt"},e.toDisplayString(l.appear?"小球出现":"小球消失"),1),e.createElementVNode("scroll-view",{class:"scroll-view","scroll-y":""},[e.createElementVNode("view",{class:"scroll-area"},[e.createElementVNode("text",{class:"notice"},"向下滚动让小球出现"),e.createElementVNode("view",{class:"ball"})])])])])}]]);var Ct=null;const St=a({data:()=>({title:"createContext",names:["rotate","scale","reset","translate","save","restore","drawImage","fillText","fill","stroke","clearRect","beginPath","closePath","moveTo","lineTo","rect","arc","quadraticCurveTo","bezierCurveTo","setFillStyle","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit"]}),onReady:function(){Ct=uni.createCanvasContext("canvas",this)},methods:{toTempFilePath:function(){uni.canvasToTempFilePath({canvasId:"canvas",success:function(e){n("log","at pages/API/canvas/canvas.vue:36",e.tempFilePath)},fail:function(e){n("error","at pages/API/canvas/canvas.vue:39",JSON.stringify(e))}})},handleCanvasButton:function(e){this[e]&&this[e]()},rotate:function(){Ct.beginPath(),Ct.rotate(10*Math.PI/180),Ct.rect(225,75,20,10),Ct.fill(),Ct.draw()},scale:function(){Ct.beginPath(),Ct.rect(25,25,50,50),Ct.stroke(),Ct.scale(2,2),Ct.beginPath(),Ct.rect(25,25,50,50),Ct.stroke(),Ct.draw()},reset:function(){Ct.beginPath(),Ct.setFillStyle("#000000"),Ct.setStrokeStyle("#000000"),Ct.setFontSize(10),Ct.setGlobalAlpha(1),Ct.setShadow(0,0,0,"rgba(0, 0, 0, 0)"),Ct.setLineCap("butt"),Ct.setLineJoin("miter"),Ct.setLineWidth(1),Ct.setMiterLimit(10),Ct.draw()},translate:function(){Ct.beginPath(),Ct.rect(10,10,100,50),Ct.fill(),Ct.translate(70,70),Ct.beginPath(),Ct.fill(),Ct.draw()},save:function(){Ct.beginPath(),Ct.setStrokeStyle("#00ff00"),Ct.save(),Ct.scale(2,2),Ct.setStrokeStyle("#ff0000"),Ct.rect(0,0,100,100),Ct.stroke(),Ct.restore(),Ct.rect(0,0,50,50),Ct.stroke(),Ct.draw()},restore:function(){[3,2,1].forEach((function(e){Ct.beginPath(),Ct.save(),Ct.scale(e,e),Ct.rect(10,10,100,100),Ct.stroke(),Ct.restore()})),Ct.draw()},drawImage:function(){Ct.drawImage("../../../static/app-plus/uni@2x.png",0,0),Ct.draw()},fillText:function(){Ct.setStrokeStyle("#ff0000"),Ct.beginPath(),Ct.moveTo(0,10),Ct.lineTo(300,10),Ct.stroke(),Ct.setFontSize(10),Ct.fillText("Hello World",0,30),Ct.setFontSize(20),Ct.fillText("Hello World",100,30),Ct.beginPath(),Ct.moveTo(0,30),Ct.lineTo(300,30),Ct.stroke(),Ct.draw()},fill:function(){Ct.beginPath(),Ct.rect(20,20,150,100),Ct.setStrokeStyle("#00ff00"),Ct.fill(),Ct.draw()},stroke:function(){Ct.beginPath(),Ct.moveTo(20,20),Ct.lineTo(20,100),Ct.lineTo(70,100),Ct.setStrokeStyle("#00ff00"),Ct.stroke(),Ct.draw()},clearRect:function(){Ct.setFillStyle("#ff0000"),Ct.beginPath(),Ct.rect(0,0,300,150),Ct.fill(),Ct.clearRect(20,20,100,50),Ct.draw()},beginPath:function(){Ct.beginPath(),Ct.setLineWidth(5),Ct.setStrokeStyle("#ff0000"),Ct.moveTo(0,75),Ct.lineTo(250,75),Ct.stroke(),Ct.beginPath(),Ct.setStrokeStyle("#0000ff"),Ct.moveTo(50,0),Ct.lineTo(150,130),Ct.stroke(),Ct.draw()},closePath:function(){Ct.beginPath(),Ct.setLineWidth(1),Ct.moveTo(20,20),Ct.lineTo(20,100),Ct.lineTo(70,100),Ct.closePath(),Ct.stroke(),Ct.draw()},moveTo:function(){Ct.beginPath(),Ct.moveTo(0,0),Ct.lineTo(300,150),Ct.stroke(),Ct.draw()},lineTo:function(){Ct.beginPath(),Ct.moveTo(20,20),Ct.lineTo(20,100),Ct.lineTo(70,100),Ct.stroke(),Ct.draw()},rect:function(){Ct.beginPath(),Ct.rect(20,20,150,100),Ct.stroke(),Ct.draw()},arc:function(){Ct.beginPath(),Ct.setLineWidth(2),Ct.arc(75,75,50,0,2*Math.PI,!0),Ct.moveTo(110,75),Ct.arc(75,75,35,0,Math.PI,!1),Ct.moveTo(65,65),Ct.arc(60,65,5,0,2*Math.PI,!0),Ct.moveTo(95,65),Ct.arc(90,65,5,0,2*Math.PI,!0),Ct.stroke(),Ct.draw()},quadraticCurveTo:function(){Ct.beginPath(),Ct.moveTo(20,20),Ct.quadraticCurveTo(20,100,200,20),Ct.stroke(),Ct.draw()},bezierCurveTo:function(){Ct.beginPath(),Ct.moveTo(20,20),Ct.bezierCurveTo(20,100,200,100,200,20),Ct.stroke(),Ct.draw()},setFillStyle:function(){["#fef957","rgb(242,159,63)","rgb(242,117,63)","#e87e51"].forEach((function(e,t){Ct.setFillStyle(e),Ct.beginPath(),Ct.rect(0+75*t,0,50,50),Ct.fill()})),Ct.draw()},setStrokeStyle:function(){["#fef957","rgb(242,159,63)","rgb(242,117,63)","#e87e51"].forEach((function(e,t){Ct.setStrokeStyle(e),Ct.beginPath(),Ct.rect(0+75*t,0,50,50),Ct.stroke()})),Ct.draw()},setGlobalAlpha:function(){Ct.setFillStyle("#000000"),[1,.5,.1].forEach((function(e,t){Ct.setGlobalAlpha(e),Ct.beginPath(),Ct.rect(0+75*t,0,50,50),Ct.fill()})),Ct.draw(),Ct.setGlobalAlpha(1)},setShadow:function(){Ct.beginPath(),Ct.setShadow(10,10,10,"rgba(0, 0, 0, 199)"),Ct.rect(10,10,100,100),Ct.fill(),Ct.draw()},setFontSize:function(){[10,20,30,40].forEach((function(e,t){Ct.setFontSize(e),Ct.fillText("Hello, world",20,20+40*t)})),Ct.draw()},setLineCap:function(){Ct.setLineWidth(10),["butt","round","square"].forEach((function(e,t){Ct.beginPath(),Ct.setLineCap(e),Ct.moveTo(20,20+20*t),Ct.lineTo(100,20+20*t),Ct.stroke()})),Ct.draw()},setLineJoin:function(){Ct.setLineWidth(10),["bevel","round","miter"].forEach((function(e,t){Ct.beginPath(),Ct.setLineJoin(e),Ct.moveTo(20+80*t,20),Ct.lineTo(100+80*t,50),Ct.lineTo(20+80*t,100),Ct.stroke()})),Ct.draw()},setLineWidth:function(){[2,4,6,8,10].forEach((function(e,t){Ct.beginPath(),Ct.setLineWidth(e),Ct.moveTo(20,20+20*t),Ct.lineTo(100,20+20*t),Ct.stroke()})),Ct.draw()},setMiterLimit:function(){Ct.setLineWidth(4),[2,4,6,8,10].forEach((function(e,t){Ct.beginPath(),Ct.setMiterLimit(e),Ct.moveTo(20+80*t,20),Ct.lineTo(100+80*t,50),Ct.lineTo(20+80*t,100),Ct.stroke()})),Ct.draw()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("canvas",{class:"canvas-element","canvas-id":"canvas",id:"canvas"}),e.createElementVNode("scroll-view",{class:"canvas-buttons","scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.names,((t,a)=>(e.openBlock(),e.createElementBlock("button",{key:a,class:"canvas-button",onClick:e=>r.handleCanvasButton(t)},e.toDisplayString(t),9,["onClick"])))),128)),e.createElementVNode("button",{class:"canvas-button",onClick:a[0]||(a[0]=(...e)=>r.toTempFilePath&&r.toTempFilePath(...e)),type:"primary"},"toTempFilePath")])])])}]]),Tt={data:()=>({title:"action-sheet",buttonRect:{}}),methods:{actionSheetTap(){const e=this;uni.showActionSheet({title:"标题",itemList:["item1","item2","item3","item4"],popover:{top:e.buttonRect.top+104+e.buttonRect.height,left:e.buttonRect.left+e.buttonRect.width/2},success:e=>{n("log","at pages/API/action-sheet/action-sheet.vue:40",e.tapIndex),uni.showToast({title:"点击了第"+e.tapIndex+"个选项",icon:"none"})}})}}};const Dt=a(Tt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{class:"target",type:"default",onClick:a[0]||(a[0]=(...e)=>r.actionSheetTap&&r.actionSheetTap(...e))},"弹出action sheet")])])])}]]);const Bt=a({data:()=>({title:"modal",modalHidden:!0,modalHidden2:!0}),methods:{modalTap:function(e){uni.showModal({title:"弹窗标题",content:"弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内",showCancel:!1,confirmText:"确定"})},noTitlemodalTap:function(e){uni.showModal({content:"弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内",confirmText:"确定",cancelText:"取消"})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"default",onClick:a[0]||(a[0]=(...e)=>r.modalTap&&r.modalTap(...e))},"有标题的modal"),e.createElementVNode("button",{type:"default",onClick:a[1]||(a[1]=(...e)=>r.noTitlemodalTap&&r.noTitlemodalTap(...e))},"无标题的modal")])])])}]]);const It=a({data:()=>({title:"toast"}),methods:{toast1Tap:function(){uni.showToast({title:"默认"})},toast2Tap:function(){uni.showToast({title:"duration 3000",duration:3e3})},toast3Tap:function(){uni.showToast({title:"loading",icon:"loading",duration:5e3})},toast4Tap:function(){uni.showToast({title:"logo",image:"../../../static/uni.png"})},toast5Tap:function(){uni.showToast({title:"显示一段轻提示",position:"bottom"})},hideToast:function(){uni.hideToast()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"default",onClick:a[0]||(a[0]=(...e)=>r.toast1Tap&&r.toast1Tap(...e))},"点击弹出默认toast"),e.createElementVNode("button",{type:"default",onClick:a[1]||(a[1]=(...e)=>r.toast2Tap&&r.toast2Tap(...e))},"点击弹出设置duration的toast"),e.createElementVNode("button",{type:"default",onClick:a[2]||(a[2]=(...e)=>r.toast3Tap&&r.toast3Tap(...e))},"点击弹出显示loading的toast"),e.createElementVNode("button",{type:"default",onClick:a[3]||(a[3]=(...e)=>r.toast4Tap&&r.toast4Tap(...e))},"点击弹出显示自定义图片的toast"),e.createElementVNode("button",{type:"default",onClick:a[4]||(a[4]=(...e)=>r.toast5Tap&&r.toast5Tap(...e))},"点击显示无图标的居底toast"),e.createElementVNode("button",{type:"default",onClick:a[5]||(a[5]=(...e)=>r.hideToast&&r.hideToast(...e))},"点击隐藏toast")])])])}]]);const Pt=a({data:()=>({title:"getNetworkType",hasNetworkType:!1,networkType:"",connectedWifi:""}),onUnload:function(){this.networkType="",this.hasNetworkType=!1},methods:{getNetworkType:function(){uni.getNetworkType({success:e=>{n("log","at pages/API/get-network-type/get-network-type.vue:45",e),this.hasNetworkType=!0,this.networkType=e.subtype||e.networkType},fail:()=>{uni.showModal({content:"获取失败!",showCancel:!1})}})},clear:function(){this.hasNetworkType=!1,this.networkType="",this.connectedWifi=""}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{style:{background:"#FFFFFF",padding:"40rpx"}},[e.createElementVNode("view",{class:"uni-hello-text uni-center"},"网络状态"),!1===l.hasNetworkType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"uni-h2 uni-center uni-common-mt"},"未获取"),e.createElementVNode("view",{class:"uni-hello-text uni-center uni-common-mt"},"请点击下面按钮获取网络状态")],64)):e.createCommentVNode("",!0),!0===l.hasNetworkType?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-h2 uni-center uni-common-mt"},e.toDisplayString(l.networkType),1)):e.createCommentVNode("",!0),!0===l.hasNetworkType&&"wifi"===l.networkType?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-textarea uni-common-mt"},[e.createElementVNode("textarea",{value:l.connectedWifi},null,8,["value"])])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.getNetworkType&&r.getNetworkType(...e))},"获取设备网络状态"),e.createElementVNode("button",{class:"uni-common-mt",onClick:a[1]||(a[1]=(...e)=>r.clear&&r.clear(...e))},"清空")])])])}]]);const At=a({data:()=>({title:"getSystemInfo",systemInfo:{}}),onUnload:function(){this.systemInfo={}},methods:{getSystemInfo:function(){uni.getSystemInfo({success:e=>{this.systemInfo=e}})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"设备型号")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.model},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"客户端平台")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.platform},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"操作系统版本")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.system},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"语言")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.language},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"版本")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.version},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"屏幕宽度")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.screenWidth},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"屏幕高度")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.screenHeight},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"可使用窗口高度")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.windowHeight},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"可使用窗口的顶部位置")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.windowTop},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"可使用窗口的底部位置")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.windowBottom},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"状态栏的高度")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.statusBarHeight},null,8,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-pd"},[e.createElementVNode("view",{class:"uni-label",style:{width:"180px"}},"DPI")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,placeholder:"未获取",value:l.systemInfo.pixelRatio},null,8,["value"])])])]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.getSystemInfo&&r.getSystemInfo(...e))},"获取设备系统信息")])])])])}]]),Mt={data:()=>({title:"addPhoneContact",name:"",phone:""}),methods:{nameChange:function(e){this.name=e.detail.value},phoneChange:function(e){this.phone=e.detail.value},async add(){1===await this.checkPermission()&&uni.addPhoneContact({firstName:this.name,mobilePhoneNumber:this.phone,success:function(){uni.showModal({content:"已成功添加联系人!",showCancel:!1})},fail:function(){uni.showModal({content:"添加联系人失败!",showCancel:!1})}})},async checkPermission(){let e=Fe.isIOS?await Fe.requestIOS("contact"):await Fe.requestAndroid("android.permission.WRITE_CONTACTS");return null===e||1===e?e=1:uni.showModal({content:"需要联系人权限",confirmText:"设置",success:function(e){e.confirm&&Fe.gotoAppSetting()}}),e}}};const Lt=a(Mt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"名称")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",placeholder:"请输入联系人名称",name:"name",value:l.name,onInput:a[0]||(a[0]=(...e)=>r.nameChange&&r.nameChange(...e))},null,40,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"手机号")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",placeholder:"请输入联系人手机号",name:"phone",value:l.phone,onInput:a[1]||(a[1]=(...e)=>r.phoneChange&&r.phoneChange(...e))},null,40,["value"])])])]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",class:"btn-setstorage",onClick:a[2]||(a[2]=(...e)=>r.add&&r.add(...e))},"添加联系人")])])])])}]]);const Ft=a({data:()=>({title:"onAccelerometerChange",value:""}),onUnload(){uni.stopAccelerometer()},methods:{shake(){uni.navigateTo({url:"/platforms/app-plus/shake/shake"})},watchAcce(){uni.onAccelerometerChange((e=>{this.value="监听设备的加速度变化:\nX轴:"+e.x.toFixed(2)+"\nY轴:"+e.y.toFixed(2)+"\nZ轴:"+e.z.toFixed(2)}))},stopAcce(){uni.stopAccelerometer()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{class:"shake",onClick:a[0]||(a[0]=(...e)=>r.shake&&r.shake(...e))},"摇一摇")]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.watchAcce&&r.watchAcce(...e))},"监听设备的加速度变化"),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.stopAcce&&r.stopAcce(...e))},"停止监听设备的加速度变化")]),e.createElementVNode("view",{class:"uni-textarea uni-common-mt"},[e.createElementVNode("textarea",{class:"acc-show",value:l.value},null,8,["value"])])])])}]]);const Ut=a({data:()=>({title:"onCompassChange",direction:0}),onReady:function(){uni.onCompassChange((e=>{this.direction=parseInt(e.direction)}))},onUnload(){uni.stopCompass(),this.direction=0}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-hello-text uni-center",style:{"padding-bottom":"50rpx"}}," 旋转手机即可获取方位信息 "),e.createElementVNode("view",{class:"direction"},[e.createElementVNode("view",{class:"bg-compass-line"}),e.createElementVNode("image",{class:"bg-compass",src:"/static/compass.png",style:e.normalizeStyle("transform: rotate("+l.direction+"deg)")},null,4),e.createElementVNode("view",{class:"direction-value"},[e.createElementVNode("text",null,e.toDisplayString(l.direction),1),e.createElementVNode("text",{class:"direction-degree"},"o")])])])])}]]),Rt={data:()=>({title:"makePhoneCall",disabled:!0}),methods:{bindInput:function(e){this.inputValue=e.detail.value,this.inputValue.length>0?this.disabled=!1:this.disabled=!0},makePhoneCall:function(){uni.makePhoneCall({phoneNumber:this.inputValue,success:()=>{n("log","at pages/API/make-phone-call/make-phone-call.vue:34","成功拨打电话")}})}}};const Ot=a(Rt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-hello-text uni-center"},"请在下方输入电话号码"),e.createElementVNode("input",{class:"input uni-common-mt",type:"number",name:"input",onInput:a[0]||(a[0]=(...e)=>r.bindInput&&r.bindInput(...e))},null,32),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.makePhoneCall&&r.makePhoneCall(...e)),type:"primary",disabled:l.disabled},"拨打",8,["disabled"])])])])}]]);const $t=a({data:()=>({title:"scanCode",result:""}),methods:{async scan(){1===await this.checkPermission()&&uni.scanCode({success:e=>{this.result=e.result},fail:e=>{}})},async checkPermission(e){let t=Fe.isIOS?await Fe.requestIOS("camera"):await Fe.requestAndroid("android.permission.CAMERA");return null===t||1===t?t=1:uni.showModal({content:"需要相机权限",confirmText:"设置",success:function(e){e.confirm&&Fe.gotoAppSetting()}}),t}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},"扫码结果:"),l.result?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-list"},[e.createElementVNode("view",{class:"uni-cell"},[e.createElementVNode("view",{class:"scan-result"},e.toDisplayString(l.result),1)])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.scan&&r.scan(...e))},"扫一扫")])])])}]]),zt={data:()=>({title:"get/setClipboardData",data:""}),methods:{dataChange:function(e){this.data=e.detail.value},getClipboard:function(){uni.getClipboardData({success:e=>{n("log","at pages/API/clipboard/clipboard.vue:33",e.data);const t=e.data?"剪贴板内容为:"+e.data:"剪贴板暂无内容";uni.showModal({content:t,title:"读取剪贴板",showCancel:!1})},fail:()=>{uni.showModal({content:"读取剪贴板失败!",showCancel:!1})}})},setClipboard:function(){var e=this.data;0===e.length?uni.showModal({title:"设置剪贴板失败",content:"内容不能为空",showCancel:!1}):uni.setClipboardData({data:e,success:()=>{},fail:()=>{}})}}};const qt=a(zt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-title"},"请输入剪贴板内容"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("input",{class:"uni-input",type:"text",placeholder:"请输入剪贴板内容",value:l.data,onInput:a[0]||(a[0]=(...e)=>r.dataChange&&r.dataChange(...e))},null,40,["value"])])]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.setClipboard&&r.setClipboard(...e))},"存储数据"),e.createElementVNode("button",{onClick:a[2]||(a[2]=(...e)=>r.getClipboard&&r.getClipboard(...e))},"读取数据")])])])}]]),jt="https://unidemo.dcloud.net.cn/ajax/echo/text?name=uni-app",Ht=2e3,Wt={data:()=>({title:"request",loading:!1,res:""}),methods:{sendRequest(e){switch(this.loading=!0,e){case"promise":this._requestPromise();break;case"await":this._requestAwait();break;default:this._request()}},_request(){uni.request({url:jt,dataType:"text",data:{noncestr:Date.now()},success:e=>{n("log","at pages/API/request/request.vue:53","request success",e),uni.showToast({title:"请求成功",icon:"success",mask:!0,duration:Ht}),this.res="请求结果 : "+JSON.stringify(e)},fail:e=>{n("log","at pages/API/request/request.vue:63","request fail",e),uni.showModal({content:e.errMsg,showCancel:!1})},complete:()=>{this.loading=!1}})},_requestPromise(){uni.request({url:jt,dataType:"text",data:{noncestr:Date.now()}}).then((e=>{n("log","at pages/API/request/request.vue:111","request success",e),uni.showToast({title:"请求成功",icon:"success",mask:!0,duration:Ht}),this.res="请求结果 : "+JSON.stringify(e),this.loading=!1})).catch((e=>{n("log","at pages/API/request/request.vue:122","request fail",e),uni.showModal({content:e.errMsg,showCancel:!1}),this.loading=!1}))},async _requestAwait(){let e,t;try{e=await uni.request({url:jt,dataType:"text",data:{noncestr:Date.now()}})}catch(dn){t=dn}t?(n("log","at pages/API/request/request.vue:157","request fail",t),uni.showModal({content:t.errMsg,showCancel:!1})):(n("log","at pages/API/request/request.vue:163","request success",e),uni.showToast({title:"请求成功",icon:"success",mask:!0,duration:Ht}),this.res="请求结果 : "+JSON.stringify(e)),this.loading=!1}}};const Jt=a(Wt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-hello-text"}," 请点击按钮向服务器发起请求 "),e.createElementVNode("view",{class:"uni-textarea uni-common-mt"},[e.createElementVNode("textarea",{value:l.res},null,8,["value"])]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.sendRequest&&r.sendRequest(...e)),loading:l.loading},"发起请求(Callback)",8,["loading"]),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=e=>r.sendRequest("promise")),loading:l.loading},"发起请求(Promise)",8,["loading"]),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=e=>r.sendRequest("await")),loading:l.loading},"发起请求(Async/Await)",8,["loading"])])])])}]]);const Gt=a({data:()=>({title:"uploadFile",imageSrc:""}),onUnload(){this.imageSrc=""},methods:{chooseImage:function(){uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["album"],success:e=>{n("log","at pages/API/upload-file/upload-file.vue:34","chooseImage success, temp path is",e.tempFilePaths[0]);var t=e.tempFilePaths[0];uni.uploadFile({url:"https://unidemo.dcloud.net.cn/upload",filePath:t,fileType:"image",name:"data",success:e=>{n("log","at pages/API/upload-file/upload-file.vue:42","uploadImage success, res is:",e),uni.showToast({title:"上传成功",icon:"success",duration:1e3}),this.imageSrc=t},fail:e=>{n("log","at pages/API/upload-file/upload-file.vue:51","uploadImage fail",e),uni.showModal({content:e.errMsg,showCancel:!1})}})},fail:e=>{n("log","at pages/API/upload-file/upload-file.vue:60","chooseImage fail",e)}})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"demo"},[l.imageSrc?(e.openBlock(),e.createElementBlock("image",{key:0,src:l.imageSrc,class:"image",mode:"widthFix"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-hello-addfile",onClick:a[0]||(a[0]=(...e)=>r.chooseImage&&r.chooseImage(...e))},"+ 选择图片"))])])])}]]);const Yt=a({data:()=>({title:"downloadFile",imageSrc:""}),onUnload(){this.imageSrc=""},methods:{downloadImage:function(){uni.showLoading({title:"下载中"});var e=this;uni.downloadFile({url:"https://web-assets.dcloud.net.cn/unidoc/zh/uni-app.png",success:t=>{n("log","at pages/API/download-file/download-file.vue:39","downloadFile success, res is",t),e.imageSrc=t.tempFilePath,uni.hideLoading()},fail:e=>{n("log","at pages/API/download-file/download-file.vue:44","downloadFile fail, err is:",e)}})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[l.imageSrc?(e.openBlock(),e.createElementBlock("view",{key:0,class:"image-container"},[e.createElementVNode("image",{class:"img",src:l.imageSrc,mode:"center"},null,8,["src"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"uni-hello-text"}," 点击按钮下载服务端示例图片(下载网络文件到本地临时目录) "),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.downloadImage&&r.downloadImage(...e))},"下载")])],64))])])}]]);var Kt=[["camera"],["album"],["camera","album"]],Qt=[["compressed"],["original"],["compressed","original"]];const Zt={data:()=>({title:"choose/previewImage",imageList:[],sourceTypeIndex:2,sourceType:["拍照","相册","拍照或相册"],sizeTypeIndex:2,sizeType:["压缩","原图","压缩或原图"],countIndex:8,count:[1,2,3,4,5,6,7,8,9]}),onUnload(){this.imageList=[],this.sourceTypeIndex=2,this.sourceType=["拍照","相册","拍照或相册"],this.sizeTypeIndex=2,this.sizeType=["压缩","原图","压缩或原图"],this.countIndex=8},methods:{sourceTypeChange:function(e){this.sourceTypeIndex=parseInt(e.detail.value)},sizeTypeChange:function(e){this.sizeTypeIndex=parseInt(e.detail.value)},countChange:function(e){this.countIndex=e.detail.value},chooseImage:async function(){if(2!==this.sourceTypeIndex){if(1!==await this.checkPermission())return}if(9===this.imageList.length){let e=await this.isFullImg();if(n("log","at pages/API/image/image.vue:124","是否继续?",e),!e)return}uni.chooseImage({sourceType:Kt[this.sourceTypeIndex],sizeType:Qt[this.sizeTypeIndex],count:this.imageList.length+this.count[this.countIndex]>9?9-this.imageList.length:this.count[this.countIndex],success:e=>{this.imageList=this.imageList.concat(e.tempFilePaths)},fail:e=>{n("log","at pages/API/image/image.vue:137","err: ",e),e.code&&0!==e.code&&2===this.sourceTypeIndex&&this.checkPermission(e.code)}})},isFullImg:function(){return new Promise((e=>{uni.showModal({content:"已经有9张图片了,是否清空现有图片?",success:t=>{t.confirm?(this.imageList=[],e(!0)):e(!1)},fail:()=>{e(!1)}})}))},previewImage:function(e){var t=e.target.dataset.src;uni.previewImage({current:t,urls:this.imageList})},async checkPermission(e){let t=e?e-1:this.sourceTypeIndex,a=Fe.isIOS?await Fe.requestIOS(Kt[t][0]):await Fe.requestAndroid(0===t?"android.permission.CAMERA":"android.permission.READ_EXTERNAL_STORAGE");return null===a||1===a?a=1:uni.showModal({content:"没有开启权限",confirmText:"设置",success:function(e){e.confirm&&Fe.gotoAppSetting()}}),a}}};const Xt=a(Zt,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("form",null,[e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"图片来源")]),e.createElementVNode("view",{class:"uni-list-cell-right"},[e.createElementVNode("picker",{range:l.sourceType,onChange:a[0]||(a[0]=(...e)=>r.sourceTypeChange&&r.sourceTypeChange(...e)),value:l.sourceTypeIndex,mode:"selector"},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.sourceType[l.sourceTypeIndex]),1)],40,["range","value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"图片质量")]),e.createElementVNode("view",{class:"uni-list-cell-right"},[e.createElementVNode("picker",{range:l.sizeType,onChange:a[1]||(a[1]=(...e)=>r.sizeTypeChange&&r.sizeTypeChange(...e)),value:l.sizeTypeIndex,mode:"selector"},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.sizeType[l.sizeTypeIndex]),1)],40,["range","value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"数量限制")]),e.createElementVNode("view",{class:"uni-list-cell-right"},[e.createElementVNode("picker",{range:l.count,onChange:a[2]||(a[2]=(...e)=>r.countChange&&r.countChange(...e)),mode:"selector"},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.count[l.countIndex]),1)],40,["range"])])])]),e.createElementVNode("view",{class:"uni-list list-pd"},[e.createElementVNode("view",{class:"uni-list-cell cell-pd"},[e.createElementVNode("view",{class:"uni-uploader"},[e.createElementVNode("view",{class:"uni-uploader-head"},[e.createElementVNode("view",{class:"uni-uploader-title"},"点击可预览选好的图片"),e.createElementVNode("view",{class:"uni-uploader-info"},e.toDisplayString(l.imageList.length)+"/9",1)]),e.createElementVNode("view",{class:"uni-uploader-body"},[e.createElementVNode("view",{class:"uni-uploader__files"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.imageList,((t,i)=>(e.openBlock(),e.createElementBlock("view",{key:i,class:"uni-uploader__file"},[e.createElementVNode("image",{class:"uni-uploader__img",src:t,"data-src":t,onClick:a[3]||(a[3]=(...e)=>r.previewImage&&r.previewImage(...e))},null,8,["src","data-src"])])))),128)),e.createElementVNode("view",{class:"uni-uploader__input-box"},[e.createElementVNode("view",{class:"uni-uploader__input",onClick:a[4]||(a[4]=(...e)=>r.chooseImage&&r.chooseImage(...e))})])])])])])])])])])}]]);function ea(e){if("number"!=typeof e||e<0)return e;var t=parseInt(e/3600);return e%=3600,[t,parseInt(e/60),e%=60].map((function(e){return(e=e.toString())[1]?e:"0"+e})).join(":")}function ta(e,t){return"string"==typeof e&&"string"==typeof t&&(e=parseFloat(e),t=parseFloat(t)),e=e.toFixed(2),t=t.toFixed(2),{longitude:e.toString().split("."),latitude:t.toString().split(".")}}var aa={UNITS:{"年":315576e5,"月":26298e5,"天":864e5,"小时":36e5,"分钟":6e4,"秒":1e3},humanize:function(e){var t="";for(var a in this.UNITS)if(e>=this.UNITS[a]){t=Math.floor(e/this.UNITS[a])+a+"前";break}return t||"刚刚"},format:function(e){var t=this.parse(e),a=Date.now()-t.getTime();if(a({title:"start/stopRecord、play/stopVoice",recording:!1,playing:!1,hasRecord:!1,tempFilePath:"",recordTime:0,playTime:0,formatedRecordTime:"00:00:00",formatedPlayTime:"00:00:00"}),onUnload:function(){this.end()},onLoad:function(){(sa=uni.createInnerAudioContext()).onEnded((()=>{clearInterval(ia);n("log","at pages/API/voice/voice.vue:91","play voice finished"),this.playing=!1,this.formatedPlayTime=ea(0),this.playTime=0})),(oa=uni.getRecorderManager()).onStart((()=>{n("log","at pages/API/voice/voice.vue:98","recorder start"),this.recording=!0,na=setInterval((()=>{this.recordTime+=1,this.formatedRecordTime=ea(this.recordTime)}),1e3)})),oa.onStop((e=>{n("log","at pages/API/voice/voice.vue:107","on stop"),sa.src=e.tempFilePath,this.hasRecord=!0,this.recording=!1})),oa.onError((()=>{n("log","at pages/API/voice/voice.vue:114","recorder onError")}))},methods:{async startRecord(){1===await this.checkPermission()&&oa.start({format:"mp3"})},stopRecord(){oa.stop(),clearInterval(na)},playVoice(){n("log","at pages/API/voice/voice.vue:136","play voice"),this.playing=!0,ia=setInterval((()=>{this.playTime+=1,this.formatedPlayTime=ea(this.playTime)}),1e3),sa.play()},stopVoice(){clearInterval(ia),this.playing=!1,this.formatedPlayTime=ea(0),this.playTime=0,sa.stop()},end(){sa.stop(),oa.stop(),clearInterval(na),clearInterval(ia),this.recording=!1,this.playing=!1,this.hasRecord=!1,this.playTime=0,this.recordTime=0,this.formatedRecordTime="00:00:00",this.formatedRecordTime="00:00:00"},clear(){this.end()},async checkPermission(){let e=Fe.isIOS?await Fe.requestIOS("record"):await Fe.requestAndroid("android.permission.RECORD_AUDIO");return null===e||1===e?e=1:2===e?uni.showModal({content:"系统麦克风已关闭",confirmText:"确定",showCancel:!1,success:function(e){}}):uni.showModal({content:"需要麦克风权限",confirmText:"设置",success:function(e){e.confirm&&Fe.gotoAppSetting()}}),e}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[l.recording||l.playing||l.hasRecord?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"page-body-time"},[e.createElementVNode("text",{class:"time-big"},e.toDisplayString(l.formatedRecordTime),1)]),e.createElementVNode("view",{class:"page-body-buttons"},[e.createElementVNode("view",{class:"page-body-button"}),e.createElementVNode("view",{class:"page-body-button",onClick:a[0]||(a[0]=(...e)=>r.startRecord&&r.startRecord(...e))},[e.createElementVNode("image",{src:"/static/record.png"})]),e.createElementVNode("view",{class:"page-body-button"})])],64)),!0===l.recording?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"page-body-time"},[e.createElementVNode("text",{class:"time-big"},e.toDisplayString(l.formatedRecordTime),1)]),e.createElementVNode("view",{class:"page-body-buttons"},[e.createElementVNode("view",{class:"page-body-button"}),e.createElementVNode("view",{class:"page-body-button",onClick:a[1]||(a[1]=(...e)=>r.stopRecord&&r.stopRecord(...e))},[e.createElementVNode("view",{class:"button-stop-record"})]),e.createElementVNode("view",{class:"page-body-button"})])],64)):e.createCommentVNode("",!0),!0===l.hasRecord&&!1===l.playing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("view",{class:"page-body-time"},[e.createElementVNode("text",{class:"time-big"},e.toDisplayString(l.formatedPlayTime),1),e.createElementVNode("text",{class:"time-small"},e.toDisplayString(l.formatedRecordTime),1)]),e.createElementVNode("view",{class:"page-body-buttons"},[e.createElementVNode("view",{class:"page-body-button",onClick:a[2]||(a[2]=(...e)=>r.playVoice&&r.playVoice(...e))},[e.createElementVNode("image",{src:"/static/play.png"})]),e.createElementVNode("view",{class:"page-body-button",onClick:a[3]||(a[3]=(...e)=>r.clear&&r.clear(...e))},[e.createElementVNode("image",{src:"/static/trash.png"})])])],64)):e.createCommentVNode("",!0),!0===l.hasRecord&&!0===l.playing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("view",{class:"page-body-time"},[e.createElementVNode("text",{class:"time-big"},e.toDisplayString(l.formatedPlayTime),1),e.createElementVNode("text",{class:"time-small"},e.toDisplayString(l.formatedRecordTime),1)]),e.createElementVNode("view",{class:"page-body-buttons"},[e.createElementVNode("view",{class:"page-body-button",onClick:a[4]||(a[4]=(...e)=>r.stopVoice&&r.stopVoice(...e))},[e.createElementVNode("image",{src:"/static/stop.png"})]),e.createElementVNode("view",{class:"page-body-button",onClick:a[5]||(a[5]=(...e)=>r.clear&&r.clear(...e))},[e.createElementVNode("image",{src:"/static/trash.png"})])])],64)):e.createCommentVNode("",!0)])])}]]),ra={data:()=>({title:"innerAudioContext",isPlaying:!1,isPlayEnd:!1,currentTime:0,duration:100}),computed:{position(){return this.isPlayEnd?0:this.currentTime},playImage(){return this.isPlaying?"/static/pause.png":"/static/play.png"}},onLoad(){this._isChanging=!1,this._audioContext=null,this.createAudio()},onUnload(){null!=this._audioContext&&this.isPlaying&&this.stop()},methods:{createAudio(){var e=this._audioContext=uni.createInnerAudioContext();return e.autoplay=!1,e.src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3",e.onPlay((()=>{n("log","at pages/API/inner-audio/inner-audio.vue:52","开始播放")})),e.onTimeUpdate((t=>{!0!==this._isChanging&&(this.currentTime=e.currentTime||0,this.duration=e.duration||0)})),e.onEnded((()=>{this.currentTime=0,this.isPlaying=!1,this.isPlayEnd=!0})),e.onError((e=>{this.isPlaying=!1,n("log","at pages/API/inner-audio/inner-audio.vue:68",e.errMsg),n("log","at pages/API/inner-audio/inner-audio.vue:69",e.errCode)})),e},onchanging(){this._isChanging=!0},onchange(e){n("log","at pages/API/inner-audio/inner-audio.vue:77",e.detail.value),n("log","at pages/API/inner-audio/inner-audio.vue:78",typeof e.detail.value),this._audioContext.seek(e.detail.value),this._isChanging=!1},play(){this.isPlaying?this.pause():(this.isPlaying=!0,this._audioContext.play(),this.isPlayEnd=!1)},pause(){this._audioContext.pause(),this.isPlaying=!1},stop(){this._audioContext.stop(),this.isPlaying=!1}}};const ca=a(ra,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"uni-padding-wrap"},[e.createVNode(c,{title:"audio"}),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("slider",{value:r.position,min:0,max:l.duration,onChanging:a[0]||(a[0]=(...e)=>r.onchanging&&r.onchanging(...e)),onChange:a[1]||(a[1]=(...e)=>r.onchange&&r.onchange(...e))},null,40,["value","max"])]),e.createElementVNode("view",{class:"play-button-area"},[e.createElementVNode("image",{class:"icon-play",src:r.playImage,onClick:a[2]||(a[2]=(...e)=>r.play&&r.play(...e))},null,8,["src"])])])}]]),da={data:()=>({title:"backgroundAudio",bgAudioMannager:null,dataUrl:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3",playing:!1,playTime:0,formatedPlayTime:"00:00:00"}),onLoad:function(){this.playing=this.$backgroundAudioData.playing,this.playTime=this.$backgroundAudioData.playTime,this.formatedPlayTime=this.$backgroundAudioData.formatedPlayTime;let e=uni.getBackgroundAudioManager();e.title||(e.title="致爱丽丝"),e.singer||(e.singer="暂无"),e.coverImgUrl||(e.coverImgUrl="https://web-assets.dcloud.net.cn/unidoc/zh/Alice.jpeg"),e.onPlay((()=>{n("log","at pages/API/background-audio/background-audio.vue:68","开始播放"),this.$backgroundAudioData.playing=this.playing=!0})),e.onPause((()=>{n("log","at pages/API/background-audio/background-audio.vue:72","暂停播放"),this.$backgroundAudioData.playing=this.playing=!1})),e.onEnded((()=>{this.playing=!1,this.$backgroundAudioData.playing=!1,this.$backgroundAudioData.playTime=this.playTime=0,this.$backgroundAudioData.formatedPlayTime=this.formatedPlayTime=ea(0)})),e.onTimeUpdate((t=>{Math.floor(e.currentTime)>Math.floor(this.playTime)&&(this.$backgroundAudioData.formatedPlayTime=this.formatedPlayTime=ea(Math.floor(e.currentTime))),this.$backgroundAudioData.playTime=this.playTime=e.currentTime})),this.bgAudioMannager=e},methods:{play:function(e){this.bgAudioMannager.src?(this.bgAudioMannager.seek(this.playTime),this.bgAudioMannager.play()):(this.bgAudioMannager.startTime=this.playTime,this.bgAudioMannager.src=this.dataUrl)},seek:function(e){this.bgAudioMannager.seek(e.detail.value)},pause:function(){this.bgAudioMannager.pause()},stop:function(){this.bgAudioMannager.stop(),this.$backgroundAudioData.playing=this.playing=!1,this.$backgroundAudioData.playTime=this.playTime=0,this.$backgroundAudioData.formatedPlayTime=this.formatedPlayTime=ea(0)}}};const ua=a(da,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-center"},[e.createElementVNode("text",{class:"time-big"},e.toDisplayString(l.formatedPlayTime),1)]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("slider",{class:"slider",min:"0",max:"21",step:"1",value:l.playTime,onChange:a[0]||(a[0]=(...e)=>r.seek&&r.seek(...e))},null,40,["value"])]),e.createElementVNode("view",{class:"play-time"},[e.createElementVNode("text",null,"00:00"),e.createElementVNode("text",null,"00:21")]),e.createElementVNode("view",{class:"uni-hello-text"},"注意:离开当前页面后背景音乐将保持播放,但退出uni-app将停止"),e.createElementVNode("view",{class:"page-body-buttons"},[l.playing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"page-body-button",onClick:a[1]||(a[1]=(...e)=>r.stop&&r.stop(...e))},[e.createElementVNode("image",{src:"/static/stop.png"})]),e.createElementVNode("view",{class:"page-body-button",onClick:a[2]||(a[2]=(...e)=>r.pause&&r.pause(...e))},[e.createElementVNode("image",{src:"/static/pause.png"})])],64)):e.createCommentVNode("",!0),l.playing?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"page-body-button"}),e.createElementVNode("view",{class:"page-body-button",onClick:a[3]||(a[3]=(...e)=>r.play&&r.play(...e))},[e.createElementVNode("image",{src:"/static/play.png"})])],64)),e.createElementVNode("view",{class:"page-body-button"})])])])}]]);var ha=[["camera"],["album"],["camera","album"]];const pa={data:()=>({title:"chooseVideo",sourceTypeIndex:2,sourceType:["拍摄","相册","拍摄或相册"],src:"",cameraList:[{value:"back",name:"后置摄像头",checked:"true"},{value:"front",name:"前置摄像头"}],cameraIndex:0}),onUnload(){this.src="",this.sourceTypeIndex=2,this.sourceType=["拍摄","相册","拍摄或相册"]},methods:{radioChange(e){for(let t=0;t{this.src=e.tempFilePath},fail:e=>{}})}}};const ma=a(pa,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"视频来源")]),e.createElementVNode("view",{class:"uni-list-cell-right"},[e.createElementVNode("picker",{range:l.sourceType,onChange:a[0]||(a[0]=(...e)=>r.sourceTypeChange&&r.sourceTypeChange(...e)),value:l.sourceTypeIndex},[e.createElementVNode("view",{class:"uni-input"},e.toDisplayString(l.sourceType[l.sourceTypeIndex]),1)],40,["range","value"])])])])]),e.createElementVNode("view",{class:"uni-title uni-common-mt uni-common-pl"},"摄像头位置"),e.createElementVNode("view",{class:"uni-hello-text camera-tips"},"注意:部分 Android 手机下由于系统 ROM 不支持无法生效,打开拍摄界面后可操作切换"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("radio-group",{onChange:a[1]||(a[1]=(...e)=>r.radioChange&&r.radioChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cameraList,((t,a)=>(e.openBlock(),e.createElementBlock("label",{class:"uni-list-cell uni-list-cell-pd",key:t.value},[e.createElementVNode("radio",{value:t.value,checked:a===l.cameraIndex},e.toDisplayString(t.name),9,["value","checked"])])))),128))],32)]),l.src?(e.openBlock(),e.createElementBlock("video",{key:1,src:l.src,class:"video"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-hello-addfile",onClick:a[2]||(a[2]=(...e)=>r.chooseVideo&&r.chooseVideo(...e))},"+ 添加视频"))])}]]);const ga=a({data:()=>({title:"saveFile",tempFilePath:"",savedFilePath:""}),onLoad(){this.savedFilePath=uni.getStorageSync("savedFilePath")},methods:{chooseImage(){uni.chooseImage({count:1,success:e=>{this.tempFilePath=e.tempFilePaths[0]},fail:e=>{}})},saveFile(){this.tempFilePath.length>0?uni.saveFile({tempFilePath:this.tempFilePath,success:e=>{this.savedFilePath=e.savedFilePath,uni.setStorageSync("savedFilePath",e.savedFilePath),uni.showModal({title:"保存成功",content:"下次进入页面时,此文件仍可用",showCancel:!1})},fail:e=>{uni.showModal({title:"保存失败",content:"失败原因: "+JSON.stringify(e),showCancel:!1})}}):uni.showModal({content:"请选择文件",showCancel:!1})},clear(){uni.setStorageSync("savedFilePath",""),this.tempFilePath="",this.savedFilePath=""},openDocument(){uni.downloadFile({url:"https://web-assets.dcloud.net.cn/unidoc/zh/helloworld.pdf",success:e=>{uni.openDocument({filePath:e.tempFilePath,success:()=>{n("log","at pages/API/file/file.vue:108","打开文档成功")}})}})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[l.tempFilePath?(e.openBlock(),e.createElementBlock("image",{key:0,src:l.tempFilePath,class:"image",mode:"aspectFit"},null,8,["src"])):e.createCommentVNode("",!0),!l.tempFilePath&&l.savedFilePath?(e.openBlock(),e.createElementBlock("image",{key:1,src:l.savedFilePath,class:"image",mode:"aspectFit"},null,8,["src"])):e.createCommentVNode("",!0),l.tempFilePath||l.savedFilePath?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-hello-addfile",onClick:a[0]||(a[0]=(...e)=>r.chooseImage&&r.chooseImage(...e))},"+ 请选择文件")),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{class:"btn-savefile",onClick:a[1]||(a[1]=(...e)=>r.saveFile&&r.saveFile(...e))},"保存文件"),e.createElementVNode("button",{onClick:a[2]||(a[2]=(...e)=>r.clear&&r.clear(...e))},"删除文件")]),e.createElementVNode("view",{class:"btn-area"},[e.createElementVNode("button",{onClick:a[3]||(a[3]=(...e)=>r.openDocument&&r.openDocument(...e))},"打开pdf文件")])])])}]]);class fa{constructor(e,t){this.options=e,this.animation=uni.createAnimation(e),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let a=this.currentStepAnimates[this.next],i={};if(i=a||{styles:{},config:{}},ya.includes(e)){i.styles.transform||(i.styles.transform="");let a="";"rotate"===e&&(a="deg"),i.styles.transform+=`${e}(${t+a}) `}else i.styles[e]=`${t}`;this.currentStepAnimates[this.next]=i}_animateRun(e={},t={}){let a=this.$.$refs.ani.ref;if(a)return new Promise(((i,n)=>{nvueAnimation.transition(a,{styles:e,...t},(e=>{i()}))}))}_nvueNextAnimate(e,t=0,a){let i=e[t];if(i){let{styles:n,config:o}=i;this._animateRun(n,o).then((()=>{t+=1,this._nvueNextAnimate(e,t,a)}))}else this.currentStepAnimates={},"function"==typeof a&&a(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const ya=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function va(e,t){if(t)return clearTimeout(t.timer),new fa(e,t)}ya.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{fa.prototype[e]=function(...t){return this.animation[e](...t),this}}));const ba=a({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let a in e){t+=this.toLine(a)+":"+e[a]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=va(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(dn){n("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:139",`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=va(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},a=(e,a)=>{"fade"===a?t.opacity=this.animationType(e)[a]:t.transform+=this.animationType(e)[a]+" "};return"string"==typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((t=>{a(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let a=null;"fade"===t?a=e?0:1:(a=e?"-100%":"0","zoom-in"===t&&(a=e?.8:1),"zoom-out"===t&&(a=e?1.2:1),"slide-right"===t&&(a=e?"100%":"0"),"slide-bottom"===t&&(a=e?"100%":"0")),this.animation[this.animationMode()[t]](a)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((a=>{t(e,a)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,a,i,n,o,s){return o.isShow?(e.openBlock(),e.createElementBlock("view",{key:0,ref:"ani",animation:o.animationData,class:e.normalizeClass(i.customClass),style:e.normalizeStyle(s.transformStyles),onClick:a[0]||(a[0]=(...e)=>s.onClick&&s.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])):e.createCommentVNode("",!0)}]]),wa={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:a,safeArea:i,screenHeight:n,safeAreaInsets:o}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),i&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){this.showPopup&&(clearTimeout(this.timer),this.showPopup=!1);e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):n("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:280","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const ka=a(wa,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-transition"),ba);return s.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[s.popupstyle,l.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:a[1]||(a[1]=(...e)=>l.touchstart&&l.touchstart(...e))},[s.maskShow?(e.openBlock(),e.createBlock(r,{key:"1",name:"mask","mode-class":"fade",styles:s.maskClass,duration:s.duration,show:s.showTrans,onClick:l.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(r,{key:"2","mode-class":s.ani,name:"content",styles:s.transClass,duration:s.duration,show:s.showTrans,onClick:l.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[s.popupstyle]]),style:e.normalizeStyle({backgroundColor:l.bg}),onClick:a[0]||(a[0]=(...e)=>l.clear&&l.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-3eaad31b"]]);var xa=ta;const Va=a({data:()=>({title:"getLocation",hasLocation:!1,location:{},type:""}),methods:{togglePopup(e){this.type=e},showConfirm(){this.type="showpopup"},hideConfirm(){this.type=""},async getLocation(){1===await this.checkPermission()&&this.doGetLocation()},doGetLocation(){uni.getLocation({success:e=>{this.hasLocation=!0,this.location=xa(e.longitude,e.latitude)},fail:e=>{e.errMsg.indexOf("auth deny")>=0?uni.showToast({title:"访问位置被拒绝"}):uni.showToast({title:e.errMsg})}})},getSetting:function(){return new Promise(((e,t)=>{uni.getSetting({success:t=>{void 0!==t.authSetting["scope.userLocation"]?t.authSetting["scope.userLocation"]?e(1):e(2):e(0)}})}))},openSetting:function(){this.hideConfirm(),uni.openSetting({success:e=>{e.authSetting&&e.authSetting["scope.userLocation"]&&this.doGetLocation()},fail:e=>{}})},async checkPermission(){let e=Fe.isIOS?await Fe.requestIOS("location"):await Fe.requestAndroid("android.permission.ACCESS_FINE_LOCATION");return null===e||1===e?e=1:2===e?uni.showModal({content:"系统定位已关闭",confirmText:"确定",showCancel:!1,success:function(e){}}):e.code?uni.showModal({content:e.message}):uni.showModal({content:"需要定位权限",confirmText:"设置",success:function(e){e.confirm&&Fe.gotoAppSetting()}}),e},clear:function(){this.hasLocation=!1}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=o(e.resolveDynamicComponent("uni-popup"),ka);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{style:{background:"#FFFFFF",padding:"40rpx"}},[e.createElementVNode("view",{class:"uni-hello-text uni-center"},"当前位置经纬度"),!1===l.hasLocation?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-h2 uni-center uni-common-mt"},"未获取")):e.createCommentVNode("",!0),!0===l.hasLocation?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-h2 uni-center uni-common-mt"},[e.createElementVNode("text",null,"E: "+e.toDisplayString(l.location.longitude[0])+"°"+e.toDisplayString(l.location.longitude[1])+"′",1),e.createElementVNode("text",null,"\\nN: "+e.toDisplayString(l.location.latitude[0])+"°"+e.toDisplayString(l.location.latitude[1])+"′",1)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.getLocation&&r.getLocation(...e))},"获取位置"),e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.clear&&r.clear(...e))},"清空")])]),e.createVNode(d,{show:"showpopup"===l.type,mode:"fixed",onHidePopup:a[4]||(a[4]=e=>r.togglePopup(""))},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-view"},[e.createElementVNode("text",{class:"popup-title"},"需要用户授权位置权限"),e.createElementVNode("view",{class:"uni-flex popup-buttons"},[e.createElementVNode("button",{class:"uni-flex-item",type:"primary","open-type":"openSetting",onClick:a[2]||(a[2]=(...e)=>r.openSetting&&r.openSetting(...e))},"设置"),e.createElementVNode("button",{class:"uni-flex-item",onClick:a[3]||(a[3]=e=>r.togglePopup(""))},"取消")])])])),_:1},8,["show"])])}]]),Na={data:()=>({title:"openLocation"}),methods:{openLocation:function(e){n("log","at pages/API/open-location/open-location.vue:58",e);var t=e.detail.value;uni.openLocation({longitude:Number(t.longitude),latitude:Number(t.latitude),name:t.name,address:t.address})}}};const _a=a(Na,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("form",{onSubmit:a[0]||(a[0]=(...e)=>r.openLocation&&r.openLocation(...e))},[e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"经度")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,value:"116.39747",name:"longitude"})])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"纬度")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,value:"39.9085",name:"latitude"})])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"位置名称")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,value:"天安门",name:"name"})])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"详细位置")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",disabled:!0,value:"北京市东城区东长安街",name:"address"})])])]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",formType:"submit"},"查看位置")])])],32)])])}]]);var Ea=ta;const Ca=a({data:()=>({title:"chooseLocation",hasLocation:!1,location:{},locationAddress:""}),methods:{chooseLocation:function(){uni.chooseLocation({success:e=>{this.hasLocation=!0,this.location=Ea(e.longitude,e.latitude),this.locationAddress=e.address}})},clear:function(){this.hasLocation=!1}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{style:{background:"#FFFFFF",padding:"40rpx"}},[e.createElementVNode("view",{class:"uni-hello-text uni-center"},"当前位置信息"),!1===l.hasLocation?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-h2 uni-center uni-common-mt"},"未选择位置")):e.createCommentVNode("",!0),!0===l.hasLocation?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"uni-hello-text uni-center",style:{"margin-top":"10px"}},e.toDisplayString(l.locationAddress),1),e.createElementVNode("view",{class:"uni-h2 uni-center uni-common-mt"},[e.createElementVNode("text",null,"E: "+e.toDisplayString(l.location.longitude[0])+"°"+e.toDisplayString(l.location.longitude[1])+"′",1),e.createElementVNode("text",null,"\\nN: "+e.toDisplayString(l.location.latitude[0])+"°"+e.toDisplayString(l.location.latitude[1])+"′",1)])],64)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.chooseLocation&&r.chooseLocation(...e))},"选择位置"),e.createElementVNode("button",{onClick:a[1]||(a[1]=(...e)=>r.clear&&r.clear(...e))},"清空")])])])}]]),Sa={data:()=>({title:"get/set/clearStorage",key:"",data:""}),methods:{keyChange:function(e){this.key=e.detail.value},dataChange:function(e){this.data=e.detail.value},getStorage:function(){var e=this.key;this.data,0===e.length?uni.showModal({title:"读取数据失败",content:"key 不能为空",showCancel:!1}):uni.getStorage({key:e,success:e=>{uni.showModal({title:"读取数据成功",content:"data: '"+e.data+"'",showCancel:!1})},fail:()=>{uni.showModal({title:"读取数据失败",content:"找不到 key 对应的数据",showCancel:!1})}})},setStorage:function(){var e=this.key,t=this.data;0===e.length?uni.showModal({title:"保存数据失败",content:"key 不能为空",showCancel:!1}):uni.setStorage({key:e,data:t,success:e=>{uni.showModal({title:"存储数据成功",content:JSON.stringify(e.errMsg),showCancel:!1})},fail:()=>{uni.showModal({title:"储存数据失败!",showCancel:!1})}})},clearStorage:function(){uni.clearStorageSync(),this.key="",this.data="",uni.showModal({title:"清除数据成功",content:" ",showCancel:!1})}}};const Ta=a(Sa,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-common-mt"},[e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"key")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",placeholder:"请输入key",name:"key",value:l.key,onInput:a[0]||(a[0]=(...e)=>r.keyChange&&r.keyChange(...e))},null,40,["value"])])]),e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("view",{class:"uni-list-cell-left"},[e.createElementVNode("view",{class:"uni-label"},"value")]),e.createElementVNode("view",{class:"uni-list-cell-db"},[e.createElementVNode("input",{class:"uni-input",type:"text",placeholder:"请输入value",name:"data",value:l.data,onInput:a[1]||(a[1]=(...e)=>r.dataChange&&r.dataChange(...e))},null,40,["value"])])])]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",class:"btn-setstorage",onClick:a[2]||(a[2]=(...e)=>r.setStorage&&r.setStorage(...e))},"存储数据"),e.createElementVNode("button",{onClick:a[3]||(a[3]=(...e)=>r.getStorage&&r.getStorage(...e))},"读取数据"),e.createElementVNode("button",{onClick:a[4]||(a[4]=(...e)=>r.clearStorage&&r.clearStorage(...e))},"清理数据")])])])])}]]),Da={data:()=>({title:"SQLite"}),methods:{openDB:function(){plus.sqlite.openDatabase({name:"first",path:"_doc/test.db",success:function(e){plus.nativeUI.alert("打开数据库test.db成功 ")},fail:function(e){plus.nativeUI.alert("打开数据库test.db失败: "+JSON.stringify(e))}})},executeSQL:function(){plus.sqlite.executeSql({name:"first",sql:'create table if not exists database("name" CHAR(110),"sex" CHAR(10),"age" INT(11))',success:function(e){plus.sqlite.executeSql({name:"first",sql:"insert into database values('彦','女','7000')",success:function(e){plus.nativeUI.alert("创建表table和插入数据成功")},fail:function(e){plus.nativeUI.alert("创建表table成功但插入数据失败: "+JSON.stringify(e))}})},fail:function(e){plus.nativeUI.alert("创建表table失败: "+JSON.stringify(e))}})},selectSQL:function(){plus.sqlite.selectSql({name:"first",sql:"select * from database",success:function(e){plus.nativeUI.alert("查询SQL语句成功: "+JSON.stringify(e))},fail:function(e){plus.nativeUI.alert("查询SQL语句失败: "+JSON.stringify(e))}})},droptable:function(){plus.sqlite.executeSql({name:"first",sql:"drop table database",success:function(e){plus.nativeUI.alert("删除表database成功")},fail:function(e){plus.nativeUI.alert("删除表database失败: "+JSON.stringify(e))}})},closeDB:function(){plus.sqlite.closeDatabase({name:"first",success:function(e){plus.nativeUI.alert("关闭数据库成功")},fail:function(e){plus.nativeUI.alert("关闭数据库失败: "+JSON.stringify(e))}})},isOpenDB:function(){plus.sqlite.isOpenDatabase({name:"first",path:"_doc/test.db"})?plus.nativeUI.alert("Opened!"):plus.nativeUI.alert("Unopened!")}}};const Ba=a(Da,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.openDB&&r.openDB(...e))},"打开数据库test.db")]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.executeSQL&&r.executeSQL(...e))},"创建表database及插入数据")]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.selectSQL&&r.selectSQL(...e))},"查询表database的数据")]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=(...e)=>r.droptable&&r.droptable(...e))},"删除表database")]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[4]||(a[4]=(...e)=>r.closeDB&&r.closeDB(...e))},"关闭数据库test.db")]),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[5]||(a[5]=(...e)=>r.isOpenDB&&r.isOpenDB(...e))},"查询是否打开数据库")])])])}]]),Ia=[-5001,-5002,-5003,-5004,-5005,-5006];const Pa=a({data:()=>({title:"激励视频广告",loading:!1,loadError:!1}),onReady(){this.adOption={adpid:"1507000689"},this.createAd()},methods:{createAd(){var e=this.rewardedVideoAd=uni.createRewardedVideoAd(this.adOption);e.onLoad((()=>{this.loading=!1,this.loadError=!1,n("log","at pages/API/rewarded-video-ad/rewarded-video-ad.vue:46","onLoad event")})),e.onClose((e=>{this.loading=!0,e&&e.isEnded?n("log","at pages/API/rewarded-video-ad/rewarded-video-ad.vue:53","onClose "+e.isEnded):n("log","at pages/API/rewarded-video-ad/rewarded-video-ad.vue:56","onClose "+e.isEnded),setTimeout((()=>{uni.showToast({title:"激励视频"+(e.isEnded?"成功":"未")+"播放完毕",duration:1e4,position:"bottom"})}),500)})),e.onError((e=>{this.loading=!1,e.code&&-1!==Ia.indexOf(e.code)&&(this.loadError=!0),n("log","at pages/API/rewarded-video-ad/rewarded-video-ad.vue:72","onError event",e)})),this.loading=!0},show(){const e=this.rewardedVideoAd;e.show().catch((()=>{e.load().then((()=>e.show())).catch((e=>{n("log","at pages/API/rewarded-video-ad/rewarded-video-ad.vue:82","激励视频 广告显示失败",e),uni.showToast({title:e.errMsg||e.message,duration:5e3,position:"bottom"})}))}))},reloadAd(){this.loading=!0,this.rewardedVideoAd.load()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[l.loadError?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,loading:l.loading,disabled:l.loading,type:"primary",class:"btn",onClick:a[0]||(a[0]=(...e)=>r.show&&r.show(...e))},"显示广告",8,["loading","disabled"])),l.loadError?(e.openBlock(),e.createElementBlock("button",{key:1,loading:l.loading,disabled:l.loading,type:"primary",class:"btn",onClick:a[1]||(a[1]=(...e)=>r.reloadAd&&r.reloadAd(...e))},"重新加载广告",8,["loading","disabled"])):e.createCommentVNode("",!0)])])}]]);const Aa=a({data:()=>({title:"全屏视频广告",loading:!1,loadError:!1}),onReady(){this.adOption={adpid:"1507000611"},this.createAd()},methods:{createAd(){var e=this._ad=uni.createFullScreenVideoAd(this.adOption);e.onLoad((()=>{this.loading=!1,this.loadError=!1,e.show(),n("log","at pages/API/full-screen-video-ad/full-screen-video-ad.vue:34","onLoad event")})),e.onClose((e=>{e&&e.isEnded?n("log","at pages/API/full-screen-video-ad/full-screen-video-ad.vue:40","onClose "+e.isEnded):n("log","at pages/API/full-screen-video-ad/full-screen-video-ad.vue:43","onClose "+e.isEnded),setTimeout((()=>{uni.showToast({title:"全屏视频"+(e.isEnded?"成功":"未")+"播放完毕",duration:1e4,position:"bottom"})}),500)})),e.onError((e=>{this.loading=!1,e.code&&(this.loadError=!0),n("log","at pages/API/full-screen-video-ad/full-screen-video-ad.vue:59","onError event",e),uni.showToast({title:e.errMsg,position:"bottom"})}))},showAd(){this.loading=!0,this._ad.load()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("button",{loading:l.loading,disabled:l.loading,type:"primary",class:"btn",onClick:a[0]||(a[0]=(...e)=>r.showAd&&r.showAd(...e))},"显示广告",8,["loading","disabled"])])])}]]),Ma={data:()=>({title:"brightness",screen:0,keepScreenOn:!0}),onLoad(){uni.getScreenBrightness({success:e=>{this.screen=(100*e.value).toFixed()},fail(e){n("log","at pages/API/brightness/brightness.vue:33",e)}})},methods:{sliderChange(e){let t=e.detail.value;this.screen!==t&&(n("log","at pages/API/brightness/brightness.vue:42","当前数值:"+e.detail.value),uni.setScreenBrightness({value:t/100,success:function(){},fail(e){n("log","at pages/API/brightness/brightness.vue:48",e)}}),this.screen=t)},keep(){uni.setKeepScreenOn({keepScreenOn:this.keepScreenOn}),this.keepScreenOn=!this.keepScreenOn}}};const La=a(Ma,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"text-box"},"亮度 : "+e.toDisplayString(l.screen),1),e.createElementVNode("view",{class:"uni-slider"},[e.createElementVNode("slider",{value:l.screen,onChanging:a[0]||(a[0]=(...e)=>r.sliderChange&&r.sliderChange(...e)),step:"1"},null,40,["value"])]),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.keep&&r.keep(...e))},e.toDisplayString(l.keepScreenOn?"保持常亮状态":"关闭常亮状态"),1),e.createElementVNode("view",{class:"tips"}," 保持常亮时,屏幕不会熄灭。仅在当前应用生效,离开应用后设置失效。 ")])])}]]);const Fa=a({data:()=>({title:"saveImage/saveVideo",imagePath:"",videoPath:""}),onLoad(){},methods:{videoErrorCallback:function(){uni.showModal({content:"视频加载失败",showCancel:!1})},saveImage(){uni.chooseImage({count:1,sourceType:["camera"],success:e=>{this.imagePath=e.tempFilePaths[0],this.getTempFilePath(e.tempFilePaths[0],"imageTempPath")},fail:e=>{}})},saveVideo(){uni.chooseVideo({count:1,sourceType:["camera"],success:e=>{n("log","at pages/API/save-media/save-media.vue:76",e.tempFilePath),this.videoPath=e.tempFilePath,this.getTempFilePath(e.tempFilePath,"videoTempPath")},fail:e=>{}})},getTempFilePath(e,t){let a={filePath:e,success:()=>{n("log","at pages/API/save-media/save-media.vue:108","save success"),uni.showModal({content:"保存成功",showCancel:!1}),uni.hideLoading()},fail:e=>{uni.hideLoading(),uni.showModal({content:"保存失败",showCancel:!1})}};uni.showLoading({title:"保存中..."}),"videoTempPath"===t?uni.saveVideoToPhotosAlbum(a):uni.saveImageToPhotosAlbum(a)}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[""!==l.imagePath?(e.openBlock(),e.createElementBlock("view",{key:0,class:"media-box image"},[e.createElementVNode("image",{class:"image",mode:"widthFix",src:l.imagePath},null,8,["src"])])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"primary",class:"uni-button",onClick:a[0]||(a[0]=(...e)=>r.saveImage&&r.saveImage(...e))},"拍摄图片并保存到本地"),""!==l.videoPath?(e.openBlock(),e.createElementBlock("view",{key:1,class:"media-box"},[e.createElementVNode("video",{id:"myVideo",src:l.videoPath,onError:a[1]||(a[1]=(...e)=>r.videoErrorCallback&&r.videoErrorCallback(...e)),"enable-danmu":"","danmu-btn":"",controls:""},null,40,["src"])])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"primary",class:"uni-button",onClick:a[2]||(a[2]=(...e)=>r.saveVideo&&r.saveVideo(...e))},"录制视频并保存到本地")])])}]]),Ua={data:()=>({title:"bluetooth",disabled:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0],newDeviceLoad:!1,searchLoad:!1,maskShow:!1,equipment:[],adapterState:{discovering:!1,available:!1},connected:!1,showMaskType:"device",servicesData:[],characteristicsData:[],valueChangeData:{},isStop:!0,list:[]}),onLoad(){this.onBLEConnectionStateChange()},methods:{moveHandle(){},maskclose(){this.maskShow=!1},queryDevices(){this.showMaskType="device",this.maskShow=!0},tapQuery(e){"device"===this.showMaskType&&(this.$set(this.disabled,4,!1),this.equipment.length>0?this.equipment[0]=e:this.equipment.push(e),this.newDeviceLoad=!1),"service"===this.showMaskType&&(this.$set(this.disabled,6,!1),this.servicesData.length>0?this.servicesData[0]=e:this.servicesData.push(e)),"characteristics"===this.showMaskType&&(this.$set(this.disabled,7,!1),this.characteristicsData.length>0?this.characteristicsData[0]=e:this.characteristicsData.push(e)),this.maskShow=!1},openBluetoothAdapter(){uni.openBluetoothAdapter({success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:212","初始化蓝牙成功:"+e.errMsg),n("log","at pages/API/bluetooth/bluetooth.vue:213",JSON.stringify(e)),this.isStop=!1,this.$set(this.disabled,0,!0),this.$set(this.disabled,1,!1),this.$set(this.disabled,10,!1),this.getBluetoothAdapterState()},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:221",e),n("log","at pages/API/bluetooth/bluetooth.vue:222","初始化蓝牙失败,错误码:"+(e.errCode||e.errMsg)),0!==e.errCode&&Ra(e.errCode,e.errMsg)}})},startBluetoothDevicesDiscovery(){uni.startBluetoothDevicesDiscovery({success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:235","开始搜索蓝牙设备:"+e.errMsg),this.searchLoad=!0,this.$set(this.disabled,1,!0),this.$set(this.disabled,2,!1),this.$set(this.disabled,3,!1),this.onBluetoothDeviceFound()},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:243","搜索蓝牙设备失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},stopBluetoothDevicesDiscovery(e){uni.stopBluetoothDevicesDiscovery({success:t=>{n("log","at pages/API/bluetooth/bluetooth.vue:256","停止搜索蓝牙设备:"+t.errMsg),e?this.$set(this.disabled,1,!0):this.$set(this.disabled,1,!1),this.$set(this.disabled,2,!0),this.searchLoad=!1},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:267","停止搜索蓝牙设备失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},onBluetoothDeviceFound(){uni.onBluetoothDeviceFound((e=>{n("log","at pages/API/bluetooth/bluetooth.vue:279","开始监听寻找到新设备的事件"),this.getBluetoothDevices()}))},getBluetoothDevices(){uni.getBluetoothDevices({success:e=>{this.newDeviceLoad=!1,n("log","at pages/API/bluetooth/bluetooth.vue:291","获取蓝牙设备成功:"+e.errMsg),this.list=e.devices},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:296","获取蓝牙设备错误,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},getBluetoothAdapterState(){n("log","at pages/API/bluetooth/bluetooth.vue:307","---\x3e"),uni.getBluetoothAdapterState({success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:310",JSON.stringify(e)),this.adapterState=e},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:314","获取本机蓝牙适配器状态失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},createBLEConnection(){let e=this.equipment[0].deviceId;uni.showToast({title:"连接蓝牙...",icon:"loading",duration:99999}),uni.createBLEConnection({deviceId:e,success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:335",e),n("log","at pages/API/bluetooth/bluetooth.vue:336","连接蓝牙成功:"+e.errMsg),this.stopBluetoothDevicesDiscovery(!0),uni.hideToast(),uni.showToast({title:"连接成功",icon:"success",duration:2e3}),this.$set(this.disabled,3,!0),this.$set(this.disabled,4,!0),this.$set(this.disabled,5,!1),this.$set(this.disabled,9,!1),this.connected=!0},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:352","连接低功耗蓝牙失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},closeBLEConnection(){let e=this.equipment[0].deviceId;uni.closeBLEConnection({deviceId:e,success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:367",e),n("log","at pages/API/bluetooth/bluetooth.vue:368","断开低功耗蓝牙成功:"+e.errMsg),this.$set(this.disabled,1,!1),this.$set(this.disabled,3,!0),this.$set(this.disabled,4,!0),this.$set(this.disabled,5,!0),this.$set(this.disabled,6,!0),this.$set(this.disabled,7,!0),this.$set(this.disabled,8,!0),this.$set(this.disabled,9,!0),this.equipment=[],this.servicesData=[],this.characteristicsData=[]},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:382","断开低功耗蓝牙成功,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},getBLEDeviceServices(){let e=this.equipment[0].deviceId;n("log","at pages/API/bluetooth/bluetooth.vue:394","获取所有服务的 uuid:"+e),uni.getBLEDeviceServices({deviceId:e,success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:400",JSON.stringify(e.services)),n("log","at pages/API/bluetooth/bluetooth.vue:401","获取设备服务成功:"+e.errMsg),this.$set(this.disabled,7,!0),this.$set(this.disabled,8,!0),this.showMaskType="service",this.list=e.services,this.characteristicsData=[],this.list.length<=0?Oa("获取服务失败,请重试!"):this.maskShow=!0},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:415","获取设备服务失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},getBLEDeviceCharacteristics(){let e=this.equipment[0].deviceId,t=this.servicesData[0].uuid;n("log","at pages/API/bluetooth/bluetooth.vue:428",e),n("log","at pages/API/bluetooth/bluetooth.vue:429",t),uni.getBLEDeviceCharacteristics({deviceId:e,serviceId:t,success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:436",JSON.stringify(e)),n("log","at pages/API/bluetooth/bluetooth.vue:437","获取特征值成功:"+e.errMsg),this.$set(this.disabled,7,!0),this.valueChangeData={},this.showMaskType="characteristics",this.list=e.characteristics,this.list.length<=0?Oa("获取特征值失败,请重试!"):this.maskShow=!0},fail:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:449","获取特征值失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}})},onBLEConnectionStateChange(){uni.onBLEConnectionStateChange((e=>{if(n("log","at pages/API/bluetooth/bluetooth.vue:462","蓝牙连接状态 --------------------------\x3e"),n("log","at pages/API/bluetooth/bluetooth.vue:463",JSON.stringify(e)),!e.connected){if(this.isStop)return;n("log","at pages/API/bluetooth/bluetooth.vue:466","断开低功耗蓝牙成功:"),this.$set(this.disabled,1,!1),this.$set(this.disabled,3,!0),this.$set(this.disabled,4,!0),this.$set(this.disabled,5,!0),this.$set(this.disabled,6,!0),this.$set(this.disabled,7,!0),this.$set(this.disabled,8,!0),this.$set(this.disabled,9,!0),this.searchLoad=!1,this.equipment=[],this.servicesData=[],this.characteristicsData=[],this.valueChangeData={},Oa("已经断开当前蓝牙连接")}}))},readBLECharacteristicValue(){let e=this.equipment[0].deviceId,t=this.servicesData[0].uuid,a=this.characteristicsData[0].uuid;n("log","at pages/API/bluetooth/bluetooth.vue:491",e),n("log","at pages/API/bluetooth/bluetooth.vue:492",t),n("log","at pages/API/bluetooth/bluetooth.vue:493",a),uni.readBLECharacteristicValue({deviceId:e,serviceId:t,characteristicId:a,success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:502","读取设备数据值成功"),n("log","at pages/API/bluetooth/bluetooth.vue:503",JSON.stringify(e)),this.notifyBLECharacteristicValueChange()},fail(e){n("log","at pages/API/bluetooth/bluetooth.vue:507","读取设备数据值失败,错误码:"+e.errCode),0!==e.errCode&&Ra(e.errCode)}}),this.onBLECharacteristicValueChange()},onBLECharacteristicValueChange(){uni.onBLECharacteristicValueChange((e=>{n("log","at pages/API/bluetooth/bluetooth.vue:521","监听低功耗蓝牙设备的特征值变化事件成功"),n("log","at pages/API/bluetooth/bluetooth.vue:522",JSON.stringify(e)),this.valueChangeData=e}))},notifyBLECharacteristicValueChange(){let e=this.equipment[0].deviceId,t=this.servicesData[0].uuid,a=this.characteristicsData[0].uuid,i=this.characteristicsData[0].properties.notify;n("log","at pages/API/bluetooth/bluetooth.vue:534",e),n("log","at pages/API/bluetooth/bluetooth.vue:535",t),n("log","at pages/API/bluetooth/bluetooth.vue:536",a),n("log","at pages/API/bluetooth/bluetooth.vue:537",i),uni.notifyBLECharacteristicValueChange({state:!0,deviceId:e,serviceId:t,characteristicId:a,success(e){n("log","at pages/API/bluetooth/bluetooth.vue:547","notifyBLECharacteristicValueChange success:"+e.errMsg),n("log","at pages/API/bluetooth/bluetooth.vue:548",JSON.stringify(e))}})},closeBluetoothAdapter(e){uni.closeBluetoothAdapter({success:e=>{n("log","at pages/API/bluetooth/bluetooth.vue:558","断开蓝牙模块成功"),this.isStop=!0,this.$set(this.disabled,0,!1),this.$set(this.disabled,1,!0),this.$set(this.disabled,2,!0),this.$set(this.disabled,3,!0),this.$set(this.disabled,4,!0),this.$set(this.disabled,5,!0),this.$set(this.disabled,6,!0),this.$set(this.disabled,7,!0),this.$set(this.disabled,8,!0),this.$set(this.disabled,9,!0),this.$set(this.disabled,10,!0),this.equipment=[],this.servicesData=[],this.characteristicsData=[],this.valueChangeData={},this.adapterState=[],this.searchLoad=!1,Oa("断开蓝牙模块")}})}}};function Ra(e,t){switch(e){case 1e4:Oa("未初始化蓝牙适配器");break;case 10001:Oa("未检测到蓝牙,请打开蓝牙重试!");break;case 10002:Oa("没有找到指定设备");break;case 10003:Oa("连接失败");break;case 10004:Oa("没有找到指定服务");break;case 10005:Oa("没有找到指定特征值");break;case 10006:Oa("当前连接已断开");break;case 10007:Oa("当前特征值不支持此操作");break;case 10008:Oa("其余所有系统上报的异常");break;case 10009:Oa("Android 系统特有,系统版本低于 4.3 不支持 BLE");break;default:Oa(t)}}function Oa(e,t=!1){uni.showModal({title:"提示",content:e,showCancel:t})}const $a=a(Ua,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",null," 本蓝牙协议只支持低功耗蓝牙协议ble。如果想连接非ble蓝牙设备,请在社区搜索 Native.js 蓝牙。 "),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",disabled:l.disabled[0],onClick:a[0]||(a[0]=(...e)=>r.openBluetoothAdapter&&r.openBluetoothAdapter(...e))}," 初始化蓝牙模块 ",8,["disabled"]),l.adapterState.available?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString("蓝牙适配器不可用,请初始化蓝牙模块"))),e.createElementVNode("button",{type:"primary",loading:l.searchLoad,disabled:l.disabled[1],onClick:a[1]||(a[1]=(...e)=>r.startBluetoothDevicesDiscovery&&r.startBluetoothDevicesDiscovery(...e))}," 开始搜索蓝牙设备 ",8,["loading","disabled"]),e.createElementVNode("button",{type:"primary",disabled:l.disabled[2],onClick:a[2]||(a[2]=e=>r.stopBluetoothDevicesDiscovery(!1))}," 停止搜索蓝牙设备 ",8,["disabled"]),e.createElementVNode("button",{type:"primary",loading:l.newDeviceLoad,disabled:l.disabled[3],onClick:a[3]||(a[3]=(...e)=>r.queryDevices&&r.queryDevices(...e))}," 选择设备 ",8,["loading","disabled"]),l.equipment.length>0?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString((l.connected?"已连接设备":"已选择设备")+" : "+l.equipment[0].name+" ("+l.equipment[0].deviceId+")"),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"primary",disabled:l.disabled[4],onClick:a[4]||(a[4]=(...e)=>r.createBLEConnection&&r.createBLEConnection(...e))}," 连接蓝牙设备 ",8,["disabled"]),e.createElementVNode("button",{type:"primary",disabled:l.disabled[5],onClick:a[5]||(a[5]=(...e)=>r.getBLEDeviceServices&&r.getBLEDeviceServices(...e))}," 选择设备服务 ",8,["disabled"]),l.servicesData.length>0?(e.openBlock(),e.createElementBlock("view",{key:2},"已选服务uuid:"+e.toDisplayString(l.servicesData[0].uuid),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"primary",disabled:l.disabled[6],onClick:a[6]||(a[6]=(...e)=>r.getBLEDeviceCharacteristics&&r.getBLEDeviceCharacteristics(...e))}," 获取服务的特征值 ",8,["disabled"]),l.characteristicsData.length>0?(e.openBlock(),e.createElementBlock("view",{key:3},[e.createElementVNode("view",{class:"uni-list_name"},"uuid:"+e.toDisplayString(l.characteristicsData[0].uuid),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 read 操作:"+e.toDisplayString(l.characteristicsData[0].properties.read),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 write 操作:"+e.toDisplayString(l.characteristicsData[0].properties.write),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 notify 操作:"+e.toDisplayString(l.characteristicsData[0].properties.notify),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 indicate 操作:"+e.toDisplayString(l.characteristicsData[0].properties.indicate),1)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"primary",disabled:l.disabled[9],onClick:a[7]||(a[7]=(...e)=>r.closeBLEConnection&&r.closeBLEConnection(...e))}," 断开蓝牙设备 ",8,["disabled"]),e.createElementVNode("button",{type:"primary",disabled:l.disabled[10],onClick:a[8]||(a[8]=(...e)=>r.closeBluetoothAdapter&&r.closeBluetoothAdapter(...e))}," 关闭蓝牙模块 ",8,["disabled"])])]),l.maskShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-mask",onTouchmove:a[11]||(a[11]=e.withModifiers(((...e)=>r.moveHandle&&r.moveHandle(...e)),["stop","prevent"])),onClick:a[12]||(a[12]=(...e)=>r.maskclose&&r.maskclose(...e))},[e.createElementVNode("scroll-view",{class:"uni-scroll_box","scroll-y":"",onTouchmove:a[9]||(a[9]=e.withModifiers(((...e)=>r.moveHandle&&r.moveHandle(...e)),["stop","prevent"])),onClick:a[10]||(a[10]=e.withModifiers(((...e)=>r.moveHandle&&r.moveHandle(...e)),["stop"]))},[e.createElementVNode("view",{class:"uni-title"}," 已经发现"+e.toDisplayString(l.list.length)+e.toDisplayString("device"===l.showMaskType?"台设备":"个服务")+": ",1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-list-box",key:a,onClick:e=>r.tapQuery(t)},["device"===l.showMaskType?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("view",{class:"uni-list_name"},e.toDisplayString(t.name||t.localName),1),e.createElementVNode("view",{class:"uni-list_item"},"信号强度:"+e.toDisplayString(t.RSSI)+"dBm",1),e.createElementVNode("view",{class:"uni-list_item"},"UUID:"+e.toDisplayString(t.deviceId),1)])):e.createCommentVNode("",!0),"service"===l.showMaskType?(e.openBlock(),e.createElementBlock("view",{key:1},[e.createElementVNode("view",{class:"uni-list_item",style:{"line-height":"2.2"}},[e.createTextVNode(" UUID: "+e.toDisplayString(t.uuid)+" ",1),"service"===l.showMaskType?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(t.isPrimary?"(主服务)":""),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),"characteristics"===l.showMaskType?(e.openBlock(),e.createElementBlock("view",{key:2},[e.createElementVNode("view",{class:"uni-list_name"},"uuid:"+e.toDisplayString(t.uuid),1),e.createElementVNode("view",{class:"uni-list_item"},"是否支持 read 操作:"+e.toDisplayString(t.properties.read),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 write 操作:"+e.toDisplayString(t.properties.write),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 notify 操作:"+e.toDisplayString(t.properties.notify),1),e.createElementVNode("view",{class:"uni-list_item"}," 是否支持 indicate 操作:"+e.toDisplayString(t.properties.indicate),1)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))],32)],32)):e.createCommentVNode("",!0)])}]]);const za=a({data:()=>({title:"生物认证",result:""}),onLoad(){},methods:{checkIsSupportSoterAuthentication(){uni.checkIsSupportSoterAuthentication({success(e){uni.showModal({content:"支持的认证方式:"+e.supportMode,showCancel:!1}),n("log","at pages/API/soter/soter.vue:36",e)},fail(e){n("log","at pages/API/soter/soter.vue:39",e)}})},checkIsSoterEnrolledInDeviceFingerPrint(){uni.checkIsSoterEnrolledInDevice({checkAuthMode:"fingerPrint",success(e){e.isEnrolled?uni.showToast({icon:"none",title:"已录入指纹"}):uni.showModal({content:"未录入指纹",showCancel:!1}),n("log","at pages/API/soter/soter.vue:58",e)},fail(e){uni.showModal({content:"未录入指纹",showCancel:!1}),n("log","at pages/API/soter/soter.vue:65",e)}})},checkIsSoterEnrolledInDeviceFaceID(){uni.checkIsSoterEnrolledInDevice({checkAuthMode:"facial",success(e){e.isEnrolled?uni.showToast({icon:"none",title:"已录入FaceID"}):uni.showModal({content:"未录入FaceID",showCancel:!1}),n("log","at pages/API/soter/soter.vue:84",e)},fail(e){uni.showModal({content:"未录入FaceID",showCancel:!1}),n("log","at pages/API/soter/soter.vue:91",e)}})},startSoterAuthenticationFingerPrint(){uni.startSoterAuthentication({requestAuthModes:["fingerPrint"],challenge:"123456",authContent:"请用指纹解锁",success(e){uni.showToast({icon:"none",title:"指纹验证成功"}),n("log","at pages/API/soter/soter.vue:105",e)},fail(e){uni.showModal({content:"指纹验证失败,errCode:"+e.errCode,showCancel:!1}),n("log","at pages/API/soter/soter.vue:112",e)}})},startSoterAuthenticationFaceID(){uni.startSoterAuthentication({requestAuthModes:["facial"],challenge:"123456",authContent:"请用FaceID解锁",success(e){uni.showToast({icon:"none",title:"FaceID验证成功"}),n("log","at pages/API/soter/soter.vue:126",e)},fail(e){uni.showModal({content:"FaceID验证失败,errCode:"+e.errCode,showCancel:!1}),n("log","at pages/API/soter/soter.vue:133",e)}})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.checkIsSupportSoterAuthentication&&r.checkIsSupportSoterAuthentication(...e))},"检查支持的认证方式"),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.checkIsSoterEnrolledInDeviceFingerPrint&&r.checkIsSoterEnrolledInDeviceFingerPrint(...e))},"检查是否录入指纹"),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.checkIsSoterEnrolledInDeviceFaceID&&r.checkIsSoterEnrolledInDeviceFaceID(...e))},"检查是否录入FaceID"),e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=(...e)=>r.startSoterAuthenticationFingerPrint&&r.startSoterAuthenticationFingerPrint(...e))},"开始指纹认证"),e.createElementVNode("button",{type:"primary",onClick:a[4]||(a[4]=(...e)=>r.startSoterAuthenticationFaceID&&r.startSoterAuthenticationFaceID(...e))},"开始FaceID认证")]),e.createElementVNode("view",{style:{width:"100%","text-align":"center"}},e.toDisplayString(l.result),1)])])}]]);function qa(e,t){switch(e){case 1e4:ja("未初始化蓝牙适配器");break;case 10001:ja("未检测到蓝牙,请打开蓝牙重试!");break;case 10002:ja("没有找到指定设备");break;case 10003:ja("连接失败");break;case 10004:ja("没有找到指定服务");break;case 10005:ja("没有找到指定特征值");break;case 10006:ja("当前连接已断开");break;case 10007:ja("当前特征值不支持此操作");break;case 10008:ja("其余所有系统上报的异常");break;case 10009:ja("Android 系统特有,系统版本低于 4.3 不支持 BLE");break;default:ja(t)}}function ja(e,t=!1){uni.showModal({title:"提示",content:e,showCancel:t})}const Ha=a({data:()=>({title:"iBeacon",isOpen:!1,isStarted:!1,deviceList:[],isPageOpened:!1}),onLoad(){this.onBeaconUpdate()},onShow(){this.isPageOpened=!0},methods:{maskclose(){this.maskShow=!1},openBluetoothAdapter(){uni.openBluetoothAdapter({success:e=>{n("log","at pages/API/ibeacon/ibeacon.vue:52","初始化蓝牙成功:"+e.errMsg),n("log","at pages/API/ibeacon/ibeacon.vue:53",e),this.isOpen=!0,this.deviceList=[]},fail:e=>{n("log","at pages/API/ibeacon/ibeacon.vue:58","初始化蓝牙失败,错误码:"+(e.errCode||e.errMsg)),0!==e.errCode&&qa(e.errCode,e.errMsg)}})},closeBluetoothAdapter(e){this.stopBeaconDiscovery(),wx.closeBluetoothAdapter({success:e=>{this.isOpen=!1,n("log","at pages/API/ibeacon/ibeacon.vue:70","断开蓝牙模块成功")}})},onBeaconUpdate(){uni.onBeaconUpdate((e=>{this.isPageOpened&&this.isOpen&&this.isStarted&&(n("log","at pages/API/ibeacon/ibeacon.vue:79",e),e.beacons&&e.beacons.length>0?this.getBeacons():e.connected||(this.deviceList=[]))}))},startBeaconDiscovery(){uni.startBeaconDiscovery({uuids:this.getUUIDList(),success:e=>{this.isStarted=!0,n("log","at pages/API/ibeacon/ibeacon.vue:95",e)},fail:e=>{n("error","at pages/API/ibeacon/ibeacon.vue:98",e)}})},stopBeaconDiscovery(e){this.isStarted&&uni.stopBeaconDiscovery({success:e=>{this.isStarted=!1},fail:e=>{n("error","at pages/API/ibeacon/ibeacon.vue:109",e)}})},getBeacons(){uni.getBeacons({success:e=>{e.beacons&&e.beacons.length>0&&(n("log","at pages/API/ibeacon/ibeacon.vue:118",e.beacons),this.deviceList=e.beacons)},fail:e=>{n("log","at pages/API/ibeacon/ibeacon.vue:123","获取设备服务失败,错误码:"+e.errCode),0!==errCode.errCode&&qa(errCode.errCode)}})},getUUIDList(){const e=uni.getSystemInfoSync();if(!e)return[];return!!e.platform&&"ios"===e.platform.toLowerCase()?["FDA50693-A4E2-4FB1-AFCF-C6EB07647825"]:[]}},onUnload(){this.isPageOpened=!1}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"primary",disabled:l.isOpen,onClick:a[0]||(a[0]=(...e)=>r.openBluetoothAdapter&&r.openBluetoothAdapter(...e))},"打开蓝牙模块",8,["disabled"]),e.createElementVNode("button",{type:"primary",disabled:!l.isOpen,onClick:a[1]||(a[1]=(...e)=>r.closeBluetoothAdapter&&r.closeBluetoothAdapter(...e))},"关闭蓝牙模块",8,["disabled"]),e.createElementVNode("button",{type:"primary",disabled:!l.isOpen||l.isStarted,loading:l.isStarted,onClick:a[2]||(a[2]=(...e)=>r.startBeaconDiscovery&&r.startBeaconDiscovery(...e))},"开始搜索附近的iBeacon设备",8,["disabled","loading"]),e.createElementVNode("button",{type:"primary",disabled:!l.isStarted,onClick:a[3]||(a[3]=(...e)=>r.stopBeaconDiscovery&&r.stopBeaconDiscovery(...e))},"停止搜索附近的iBeacon设备",8,["disabled"])])]),e.createElementVNode("scroll-view",{class:"uni-scroll_box"},[l.isStarted||l.deviceList.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-title"},"已经发现 "+e.toDisplayString(l.deviceList.length)+" 台设备:",1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.deviceList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-list-box",key:t.uuid},[e.createElementVNode("view",null,[e.createElementVNode("view",{class:"uni-list_name"},"UUID: "+e.toDisplayString(t.uuid),1),e.createElementVNode("view",{class:"uni-list_item"},"major: "+e.toDisplayString(t.major),1),e.createElementVNode("view",{class:"uni-list_item"},"minor: "+e.toDisplayString(t.minor),1),e.createElementVNode("view",{class:"uni-list_item"},"rssi: "+e.toDisplayString(t.rssi)+" dBm",1),e.createElementVNode("view",{class:"uni-list_item"},"accuracy: "+e.toDisplayString(t.accuracy),1),e.createElementVNode("view",{class:"uni-list_item"},"heading: "+e.toDisplayString(t.heading),1)])])))),128))])])}]]);const Wa=a({data:()=>({title:"vibrateLong/vibrateShort"}),onLoad(){},methods:{longshock(){uni.vibrateLong({success:function(){n("log","at pages/API/vibrate/vibrate.vue:28","success")}})},shortshock(){uni.vibrateShort({success:function(){n("log","at pages/API/vibrate/vibrate.vue:35","success")}})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("button",{class:"uni-button",type:"primary",onClick:a[0]||(a[0]=(...e)=>r.longshock&&r.longshock(...e))},"长震动"),e.createElementVNode("button",{class:"uni-button",onClick:a[1]||(a[1]=(...e)=>r.shortshock&&r.shortshock(...e))},"短震动"),e.createElementVNode("view",{class:"uni-tips"},[e.createElementVNode("view",null,"Tips"),e.createElementVNode("view",{class:"uni-tips-text"},"iOS上只有长震动,没有短震动"),e.createElementVNode("view",{class:"uni-tips-text"},"iOS上需要手机设置“打开响铃时震动”或“静音时震动”,否则无法震动")])])])}]]);let Ja=uni.getSystemInfoSync().platform;const Ga=a({data:()=>({connected:!1,connecting:!1,socketTask:!1,msg:!1}),computed:{showMsg(){return this.connected?this.msg?"收到消息:"+this.msg:"等待接收消息":"尚未连接"}},onUnload(){uni.hideLoading(),this.socketTask&&this.socketTask.close&&this.socketTask.close()},methods:{connect(){if(this.connected||this.connecting)return uni.showModal({content:"正在连接或者已经连接,请勿重复连接",showCancel:!1}),!1;this.connecting=!0,uni.showLoading({title:"连接中..."}),this.socketTask=uni.connectSocket({url:"wss://echo.websocket.org",data:()=>({msg:"Hello"}),success(e){},fail(e){}}),n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:81",this.socketTask),this.socketTask.onOpen((e=>{this.connecting=!1,this.connected=!0,uni.hideLoading(),uni.showToast({icon:"none",title:"连接成功"}),n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:90","onOpen",e)})),this.socketTask.onError((e=>{this.connecting=!1,this.connected=!1,uni.hideLoading(),uni.showModal({content:"连接失败,可能是websocket服务不可用,请稍后再试",showCancel:!1}),n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:100","onError",e)})),this.socketTask.onMessage((e=>{this.msg=e.data,n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:104","onMessage",e)})),this.socketTask.onClose((e=>{this.connected=!1,this.startRecive=!1,this.socketTask=!1,this.msg=!1,n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:111","onClose",e)})),n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:113","task",this.socketTask)},send(){this.socketTask.send({data:"from "+Ja+" : "+parseInt(1e4*Math.random()).toString(),success(e){n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:119",e)},fail(e){n("log","at pages/API/websocket-socketTask/websocket-socketTask.vue:122",e)}})},close(){this.socketTask&&this.socketTask.close&&this.socketTask.close()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"websocket通讯示例"}),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("view",{class:"websocket-msg"},e.toDisplayString(r.showMsg),1),e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.connect&&r.connect(...e))},"连接websocket服务"),e.withDirectives(e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.send&&r.send(...e))},"发送一条消息",512),[[e.vShow,l.connected]]),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.close&&r.close(...e))},"断开websocket服务"),e.createElementVNode("view",{class:"websocket-tips"},"发送消息后会收到一条服务器返回的消息(与发送的消息内容一致)")])])])}]]);let Ya=uni.getSystemInfoSync().platform;const Ka=a({data:()=>({connected:!1,connecting:!1,msg:!1,roomId:""}),computed:{showMsg(){return this.connected?this.msg?"收到消息:"+this.msg:"等待接收消息":"尚未连接"}},onUnload(){uni.closeSocket(),uni.hideLoading()},methods:{connect(){if(this.connected||this.connecting)return uni.showModal({content:"正在连接或者已经连接,请勿重复连接",showCancel:!1}),!1;this.connecting=!0,uni.showLoading({title:"连接中..."}),uni.connectSocket({url:"wss://echo.websocket.org",data:()=>({msg:"Hello"}),success(e){},fail(e){}}),uni.onSocketOpen((e=>{this.connecting=!1,this.connected=!0,uni.hideLoading(),uni.showToast({icon:"none",title:"连接成功"}),n("log","at pages/API/websocket-global/websocket-global.vue:87","onOpen",e)})),uni.onSocketError((e=>{this.connecting=!1,this.connected=!1,uni.hideLoading(),uni.showModal({content:"连接失败,可能是websocket服务不可用,请稍后再试",showCancel:!1}),n("log","at pages/API/websocket-global/websocket-global.vue:97","onError",e)})),uni.onSocketMessage((e=>{this.msg=e.data,n("log","at pages/API/websocket-global/websocket-global.vue:101","onMessage",e)})),uni.onSocketClose((e=>{this.connected=!1,this.startRecive=!1,this.msg=!1,n("log","at pages/API/websocket-global/websocket-global.vue:107","onClose",e)}))},send(){uni.sendSocketMessage({data:"from "+Ya+" : "+parseInt(1e4*Math.random()).toString(),success(e){n("log","at pages/API/websocket-global/websocket-global.vue:114",e)},fail(e){n("log","at pages/API/websocket-global/websocket-global.vue:117",e)}})},close(){uni.closeSocket()}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"websocket通讯示例"}),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("view",{class:"websocket-msg"},e.toDisplayString(r.showMsg),1),e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>r.connect&&r.connect(...e))},"连接websocket服务"),e.withDirectives(e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.send&&r.send(...e))},"发送一条消息",512),[[e.vShow,l.connected]]),e.createElementVNode("button",{type:"primary",onClick:a[2]||(a[2]=(...e)=>r.close&&r.close(...e))},"断开websocket服务"),e.createElementVNode("view",{class:"websocket-tips"},"发送消息后会收到一条服务器返回的消息(与发送的消息内容一致)")])])])}]]);const Qa=a({name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(e){this.$emit("click",e)}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-card",{"uni-card--full":i.isFull,"uni-card--shadow":i.isShadow,"uni-card--border":i.border}]),style:e.normalizeStyle({margin:i.isFull?0:i.margin,padding:i.spacing,"box-shadow":i.isShadow?i.shadow:""})},[e.renderSlot(t.$slots,"cover",{},(()=>[i.cover?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-card__cover"},[e.createElementVNode("image",{class:"uni-card__cover-image",mode:"widthFix",onClick:a[0]||(a[0]=e=>s.onClick("cover")),src:i.cover},null,8,["src"])])):e.createCommentVNode("",!0)]),!0),e.renderSlot(t.$slots,"title",{},(()=>[i.title||i.extra?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-card__header"},[e.createElementVNode("view",{class:"uni-card__header-box",onClick:a[1]||(a[1]=e=>s.onClick("title"))},[i.thumbnail?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-card__header-avatar"},[e.createElementVNode("image",{class:"uni-card__header-avatar-image",src:i.thumbnail,mode:"aspectFit"},null,8,["src"])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-card__header-content"},[e.createElementVNode("text",{class:"uni-card__header-content-title uni-ellipsis"},e.toDisplayString(i.title),1),i.title&&i.subTitle?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},e.toDisplayString(i.subTitle),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"uni-card__header-extra",onClick:a[2]||(a[2]=e=>s.onClick("extra"))},[e.createElementVNode("text",{class:"uni-card__header-extra-text"},e.toDisplayString(i.extra),1)])])):e.createCommentVNode("",!0)]),!0),e.createElementVNode("view",{class:"uni-card__content",style:e.normalizeStyle({padding:i.padding}),onClick:a[3]||(a[3]=e=>s.onClick("content"))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),e.createElementVNode("view",{class:"uni-card__actions",onClick:a[4]||(a[4]=e=>s.onClick("actions"))},[e.renderSlot(t.$slots,"actions",{},void 0,!0)])],6)}],["__scopeId","data-v-a4d554f5"]]);function Za(e){let t="";for(let a in e){t+=`${a}:${e[a]};`}return t}const Xa=a({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!0},passwordIcon:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let a in e)e[a]&&(t+=`${a} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return Za({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:"#fff"})},inputStyle(){return Za({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("focus",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":l.msg}]),style:e.normalizeStyle(l.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",l.inputContentClass]),style:e.normalizeStyle(l.inputContentStyle)},[i.prefixIcon?(e.openBlock(),e.createBlock(r,{key:0,class:"content-clear-icon",type:i.prefixIcon,color:"#c0c4cc",onClick:a[0]||(a[0]=e=>l.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),"textarea"===i.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":i.inputBorder}]),name:i.name,value:s.val,placeholder:i.placeholder,placeholderStyle:i.placeholderStyle,disabled:i.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:l.inputMaxlength,focus:s.focused,autoHeight:i.autoHeight,onInput:a[1]||(a[1]=(...e)=>l.onInput&&l.onInput(...e)),onBlur:a[2]||(a[2]=(...e)=>l._Blur&&l._Blur(...e)),onFocus:a[3]||(a[3]=(...e)=>l._Focus&&l._Focus(...e)),onConfirm:a[4]||(a[4]=(...e)=>l.onConfirm&&l.onConfirm(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===i.type?"text":i.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(l.inputStyle),name:i.name,value:s.val,password:!s.showPassword&&"password"===i.type,placeholder:i.placeholder,placeholderStyle:i.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:i.disabled,maxlength:l.inputMaxlength,focus:s.focused,confirmType:i.confirmType,onFocus:a[5]||(a[5]=(...e)=>l._Focus&&l._Focus(...e)),onBlur:a[6]||(a[6]=(...e)=>l._Blur&&l._Blur(...e)),onInput:a[7]||(a[7]=(...e)=>l.onInput&&l.onInput(...e)),onConfirm:a[8]||(a[8]=(...e)=>l.onConfirm&&l.onConfirm(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType"])),"password"===i.type&&i.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[l.isVal?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===i.type}]),type:s.showPassword?"eye-slash-filled":"eye-filled",size:22,color:s.focusShow?i.primaryColor:"#c0c4cc",onClick:l.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):i.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[i.suffixIcon?(e.openBlock(),e.createBlock(r,{key:0,class:"content-clear-icon",type:i.suffixIcon,color:"#c0c4cc",onClick:a[9]||(a[9]=e=>l.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[i.clearable&&l.isVal&&!i.disabled&&"textarea"!==i.type?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===i.type}]),type:"clear",size:i.clearSize,color:l.msg?"#dd524d":s.focusShow?i.primaryColor:"#c0c4cc",onClick:l.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-a48dafcc"]]);const ei=a({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",isRequired:!1,userRules:null,localLabelAlign:"left",localLabelWidth:"65px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(e,t=!0){const{formData:a,localData:i,errShowType:n,validateCheck:o,validateTrigger:s,_isRequiredField:l,_realName:r}=this.form,c=r(this.name);e||(e=this.form.formData[c]);const d=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!d||0===d)return;const u=l(this.itemRules.rules||[]);let h=null;return"bind"===s||t?(h=await this.validator.validateUpdate({[c]:e},a),u||void 0!==e&&""!==e||(h=null),h&&h.errorMessage?("undertext"===n&&(this.errMsg=h?h.errorMessage:""),"toast"===n&&uni.showToast({title:h.errorMessage||"校验错误",icon:"none"}),"modal"===n&&uni.showModal({title:"提示",content:h.errorMessage||"校验错误"})):this.errMsg="",o(h||null)):this.errMsg="",h||null},init(e=!1){const{validator:t,formRules:a,childrens:i,formData:n,localData:o,_realName:s,labelWidth:l,_getDataValue:r,_setDataValue:c}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(l),this.localLabelPos=this._labelPosition(),this.isRequired=this.required,this.form&&e&&i.push(this),!t||!a)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const d=s(this.name),u=this.userRules||this.rules;"object"==typeof a&&u&&(a[d]={rules:u},t.updateSchema(a));const h=a[d]||{};this.itemRules=h,this.validator=t,this.itemSetValue(r(this.name,o)),this.isRequired=this._isRequired()},unInit(){if(this.form){const{childrens:e,formData:t,_realName:a}=this.form;e.forEach(((e,i)=>{e===this&&(this.form.childrens.splice(i,1),delete t[a(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),a=this.itemRules.rules||[],i=this.form._getValue(t,e,a);return this.form._setDataValue(t,this.form.formData,i),i},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?65:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,a)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===a?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-forms-item",["is-direction-"+o.localLabelPos,o.border?"uni-forms-item--border":"",o.border&&o.isFirstBorder?"is-first-border":""]])},[e.renderSlot(t.$slots,"label",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-forms-item__label",{"no-label":!i.label&&!o.isRequired}]),style:e.normalizeStyle({width:o.localLabelWidth,justifyContent:o.localLabelAlign})},[o.isRequired?(e.openBlock(),e.createElementBlock("text",{key:0,class:"is-required"},"*")):e.createCommentVNode("",!0),e.createElementVNode("text",null,e.toDisplayString(i.label),1)],6)]),!0),e.createElementVNode("view",{class:"uni-forms-item__content"},[e.renderSlot(t.$slots,"default",{},void 0,!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-forms-item__error",{"msg--active":s.msg}])},[e.createElementVNode("text",null,e.toDisplayString(s.msg),1)],2)])],2)}],["__scopeId","data-v-693ff975"]]),ti={leftWindow:{path:"windows/left-window.vue",style:{width:"350px"}},topWindow:{path:"windows/top-window.vue",style:{height:"60px"}},pages:[{path:"pages/tabBar/component/component",style:{navigationBarTitleText:"内置组件","app-plus":{bounce:"vertical",titleNView:{buttons:[{text:"",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/API/API",style:{navigationBarTitleText:"接口","app-plus":{titleNView:{buttons:[{text:"",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/template/template",style:{navigationBarTitleText:"模版","app-plus":{titleNView:{buttons:[{text:"",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/extUI/extUI",style:{navigationBarTitleText:"扩展组件","app-plus":{titleNView:{buttons:[{text:"",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/component/view/view",style:{navigationBarTitleText:"view"}},{path:"pages/component/scroll-view/scroll-view",style:{navigationBarTitleText:"scroll-view"}},{path:"pages/component/swiper/swiper",style:{navigationBarTitleText:"swiper"}},{path:"pages/component/cover-view/cover-view",style:{navigationBarTitleText:"cover-view"}},{path:"pages/component/movable-view/movable-view",style:{navigationBarTitleText:"movable-view"}},{path:"pages/component/text/text",style:{navigationBarTitleText:"text"}},{path:"pages/component/rich-text/rich-text",style:{navigationBarTitleText:"rich-text"}},{path:"pages/component/progress/progress",style:{navigationBarTitleText:"progress"}},{path:"pages/component/button/button",style:{navigationBarTitleText:"button"}},{path:"pages/component/checkbox/checkbox",style:{navigationBarTitleText:"checkbox"}},{path:"pages/component/form/form",style:{navigationBarTitleText:"form"}},{path:"pages/component/input/input",style:{navigationBarTitleText:"input","app-plus":{softinputNavBar:"none"}}},{path:"pages/component/label/label",style:{navigationBarTitleText:"label"}},{path:"pages/component/picker/picker",style:{navigationBarTitleText:"picker"}},{path:"pages/component/picker-view/picker-view",style:{navigationBarTitleText:"picker-view"}},{path:"pages/component/radio/radio",style:{navigationBarTitleText:"radio"}},{path:"pages/component/slider/slider",style:{navigationBarTitleText:"slider"}},{path:"pages/component/switch/switch",style:{navigationBarTitleText:"switch"}},{path:"pages/component/textarea/textarea",style:{navigationBarTitleText:"textarea"}},{path:"pages/component/editor/editor",style:{navigationBarTitleText:"editor","app-plus":{softinputMode:"adjustResize"}}},{path:"pages/component/navigator/navigator",style:{navigationBarTitleText:"navigator"}},{path:"pages/component/navigator/navigate/navigate",style:{navigationBarTitleText:"navigatePage"}},{path:"pages/component/navigator/redirect/redirect",style:{navigationBarTitleText:"redirectPage"}},{path:"pages/component/image/image",style:{navigationBarTitleText:"image"}},{path:"pages/component/video/video",style:{navigationBarTitleText:"video"}},{path:"pages/component/map/map",style:{navigationBarTitleText:"map"}},{path:"pages/component/canvas/canvas",style:{navigationBarTitleText:"canvas"}},{path:"pages/component/web-view/web-view",style:{navigationBarTitleText:"web-view"}},{path:"pages/component/ad/ad",style:{navigationBarTitleText:"AD"}},{path:"pages/component/web-view-local/web-view-local",style:{}},{path:"platforms/app-plus/speech/speech",style:{navigationBarTitleText:"语音识别"}},{path:"platforms/app-plus/orientation/orientation",style:{navigationBarTitleText:"方向传感器"}},{path:"platforms/app-plus/proximity/proximity",style:{navigationBarTitleText:"距离传感器"}},{path:"platforms/app-plus/push/push",style:{navigationBarTitleText:"推送"}},{path:"platforms/app-plus/shake/shake",style:{navigationBarTitleText:"摇一摇"}},{path:"pages/about/about",style:{navigationBarTitleText:"关于"}},{path:"platforms/app-plus/feedback/feedback",style:{navigationBarTitleText:"问题反馈"}},{path:"uni_modules/uni-upgrade-center-app/pages/upgrade-popup",style:{"app-plus":{animationDuration:200,animationType:"fade-in",background:"transparent",backgroundColorTop:"transparent",popGesture:"none",scrollIndicator:!1,titleNView:!1},disableScroll:!0}}],subPackages:[{root:"pages/API",pages:[{path:"login/login",style:{navigationBarTitleText:"授权登录"}},{path:"subnvue/subnvue",style:{navigationBarTitleText:"原生子窗体","app-plus":{subNVues:[{id:"drawer",path:"subnvue/subnvue/drawer",type:"popup",style:{width:"50%"}},{id:"popup",path:"subnvue/subnvue/popup",type:"popup",style:{margin:"auto",width:"80%",height:"600rpx"}},{id:"video_mask",path:"subnvue/subnvue/video-mask",style:{position:"absolute",bottom:"30px",left:"0",width:"230px",height:"110px",background:"transparent"}}]}}},{path:"get-user-info/get-user-info",style:{navigationBarTitleText:"获取用户信息"}},{path:"request-payment/request-payment",style:{navigationBarTitleText:"发起支付"}},{path:"share/share",style:{navigationBarTitleText:"分享"}},{path:"set-navigation-bar-title/set-navigation-bar-title",style:{navigationBarTitleText:"设置界面标题"}},{path:"show-loading/show-loading",style:{navigationBarTitleText:"加载提示框"}},{path:"navigator/navigator",style:{navigationBarTitleText:"页面跳转"}},{path:"navigator/new-page/new-vue-page-1",style:{navigationBarTitleText:"新VUE页面1"}},{path:"navigator/new-page/new-vue-page-2",style:{navigationBarTitleText:"新VUE页面2"}},{path:"pull-down-refresh/pull-down-refresh",style:{navigationBarTitleText:"下拉刷新",enablePullDownRefresh:!0}},{path:"animation/animation",style:{navigationBarTitleText:"创建动画"}},{path:"get-node-info/get-node-info",style:{navigationBarTitleText:"节点信息"}},{path:"intersection-observer/intersection-observer",style:{navigationBarTitleText:"节点布局相交状态"}},{path:"canvas/canvas",style:{navigationBarTitleText:"创建绘画"}},{path:"action-sheet/action-sheet",style:{navigationBarTitleText:"操作菜单"}},{path:"modal/modal",style:{navigationBarTitleText:"模态弹窗"}},{path:"toast/toast",style:{navigationBarTitleText:"消息提示框"}},{path:"get-network-type/get-network-type",style:{navigationBarTitleText:"获取设备网络状态"}},{path:"get-system-info/get-system-info",style:{navigationBarTitleText:"获取设备系统信息"}},{path:"add-phone-contact/add-phone-contact",style:{navigationBarTitleText:"添加手机联系人"}},{path:"on-accelerometer-change/on-accelerometer-change",style:{navigationBarTitleText:"监听加速度计数据"}},{path:"on-compass-change/on-compass-change",style:{navigationBarTitleText:"监听罗盘数据"}},{path:"make-phone-call/make-phone-call",style:{navigationBarTitleText:"打电话"}},{path:"scan-code/scan-code",style:{navigationBarTitleText:"扫码"}},{path:"clipboard/clipboard",style:{navigationBarTitleText:"剪贴板"}},{path:"request/request",style:{navigationBarTitleText:"网络请求"}},{path:"upload-file/upload-file",style:{navigationBarTitleText:"上传文件"}},{path:"download-file/download-file",style:{navigationBarTitleText:"下载文件"}},{path:"image/image",style:{navigationBarTitleText:"图片"}},{path:"voice/voice",style:{navigationBarTitleText:"录音"}},{path:"inner-audio/inner-audio",style:{navigationBarTitleText:"音频"}},{path:"background-audio/background-audio",style:{navigationBarTitleText:"背景音频"}},{path:"video/video",style:{navigationBarTitleText:"视频"}},{path:"file/file",style:{navigationBarTitleText:"文件"}},{path:"map/map",style:{navigationBarTitleText:"map"}},{path:"map-search/map-search",style:{navigationBarTitleText:"map search"}},{path:"get-location/get-location",style:{navigationBarTitleText:"获取位置"}},{path:"open-location/open-location",style:{navigationBarTitleText:"查看位置"}},{path:"choose-location/choose-location",style:{navigationBarTitleText:"使用地图选择位置"}},{path:"storage/storage",style:{navigationBarTitleText:"数据存储"}},{path:"sqlite/sqlite",style:{navigationBarTitleText:"SQLite"}},{path:"rewarded-video-ad/rewarded-video-ad",style:{navigationBarTitleText:"激励视频广告"}},{path:"full-screen-video-ad/full-screen-video-ad",style:{navigationBarTitleText:"全屏视频广告"}},{path:"brightness/brightness",style:{navigationBarTitleText:"屏幕亮度"}},{path:"save-media/save-media",style:{navigationBarTitleText:"保存媒体到本地"}},{path:"bluetooth/bluetooth",style:{navigationBarTitleText:"蓝牙"}},{path:"soter/soter",style:{navigationBarTitleText:"生物认证"}},{path:"ibeacon/ibeacon",style:{navigationBarTitleText:"iBeacon"}},{path:"vibrate/vibrate",style:{navigationBarTitleText:"震动"}},{path:"websocket-socketTask/websocket-socketTask",style:{navigationBarTitleText:"websocket-socketTask"}},{path:"websocket-global/websocket-global",style:{navigationBarTitleText:"websocket-global"}}]},{root:"pages/extUI",pages:[{path:"forms/forms",style:{navigationBarTitleText:"Form 表单"}},{path:"group/group",style:{navigationBarTitleText:"Group 分组"}},{path:"badge/badge",style:{navigationBarTitleText:"Badge 数字角标"}},{path:"breadcrumb/breadcrumb",style:{navigationBarTitleText:"Breadcrumb 面包屑"}},{path:"countdown/countdown",style:{navigationBarTitleText:"Countdown 倒计时"}},{path:"drawer/drawer",style:{navigationBarTitleText:"Drawer 抽屉"}},{path:"icons/icons",style:{navigationBarTitleText:"Icons 图标"}},{path:"load-more/load-more",style:{navigationBarTitleText:"LoadMore 加载更多"}},{path:"nav-bar/nav-bar",style:{navigationBarTitleText:"NavBar 导航栏",navigationStyle:"custom",enablePullDownRefresh:!0,"app-plus":{titleNView:!1,bounce:"none",pullToRefresh:{style:"circle",offset:"70px"}}}},{path:"number-box/number-box",style:{navigationBarTitleText:"NumberBox 数字输入框"}},{path:"popup/popup",style:{navigationBarTitleText:"Popup 弹出层","app-plus":{softinputMode:"adjustResize"}}},{path:"segmented-control/segmented-control",style:{navigationBarTitleText:"SegmentedControl 分段器"}},{path:"tag/tag",style:{navigationBarTitleText:"Tag 标签"}},{path:"list/list",style:{navigationBarTitleText:"List 列表"}},{path:"card/card",style:{navigationBarTitleText:"Card 卡片"}},{path:"collapse/collapse",style:{navigationBarTitleText:"Collapse 折叠面板"}},{path:"pagination/pagination",style:{navigationBarTitleText:"Pagination 分页器"}},{path:"swiper-dot/swiper-dot",style:{navigationBarTitleText:"SwiperDot 轮播图指示点","mp-baidu":{disableSwipeBack:!0}}},{path:"grid/grid",style:{navigationBarTitleText:"Grid 宫格"}},{path:"rate/rate",style:{navigationBarTitleText:"Rate 评分"}},{path:"steps/steps",style:{navigationBarTitleText:"Steps 步骤条"}},{path:"notice-bar/notice-bar",style:{navigationBarTitleText:"NoticeBar 通告栏"}},{path:"swipe-action/swipe-action",style:{navigationBarTitleText:"SwipeAction 滑动操作","app-plus":{bounce:"none"}}},{path:"search-bar/search-bar",style:{navigationBarTitleText:"SearchBar 搜索栏"}},{path:"calendar/calendar",style:{navigationBarTitleText:"Calendar 日历"}},{path:"indexed-list/indexed-list",style:{navigationBarTitleText:"IndexedList 索引列表","mp-weixin":{disableScroll:!0},"app-plus":{bounce:"none"},"mp-alipay":{allowsBounceVertical:"NO"},"mp-baidu":{disableScroll:!0}}},{path:"fab/fab",style:{navigationBarTitleText:"Fab 悬浮按钮"}},{path:"fav/fav",style:{navigationBarTitleText:"Fav 收藏按钮"}},{path:"goods-nav/goods-nav",style:{navigationBarTitleText:"GoodsNav 商品导航"}},{path:"section/section",style:{navigationBarTitleText:"Section 标题栏"}},{path:"transition/transition",style:{navigationBarTitleText:"Transition 过渡动画"}},{path:"title/title",style:{navigationBarTitleText:"Title 章节标题"}},{path:"tooltip/tooltip",style:{navigationBarTitleText:"Tooltip 文字提示"}},{path:"link/link",style:{navigationBarTitleText:"Link 链接"}},{path:"combox/combox",style:{navigationBarTitleText:"Combox 组合框"}},{path:"list/chat",style:{}},{path:"table/table",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"dateformat/dateformat",style:{navigationBarTitleText:"Dateformat 日期格式化",enablePullDownRefresh:!1}},{path:"data-checkbox/data-checkbox",style:{navigationBarTitleText:"DataCheckbox 单选复选框",enablePullDownRefresh:!1}},{path:"easyinput/easyinput",style:{navigationBarTitleText:"Easyinput 增强输入框",enablePullDownRefresh:!1}},{path:"data-picker/data-picker",style:{navigationBarTitleText:"DataPicker 级联选择",enablePullDownRefresh:!1}},{path:"data-select/data-select",style:{navigationBarTitleText:"DataSelect 下拉框",enablePullDownRefresh:!1}},{path:"datetime-picker/datetime-picker",style:{navigationBarTitleText:"DatetimePicker 日期时间",enablePullDownRefresh:!1}},{path:"row/row",style:{navigationBarTitleText:"Layout 布局",enablePullDownRefresh:!1}},{path:"file-picker/file-picker",style:{navigationBarTitleText:"FilePicker 文件选择上传",enablePullDownRefresh:!1}},{path:"space/space",style:{navigationBarTitleText:"间距",enablePullDownRefresh:!1}},{path:"font/font",style:{navigationBarTitleText:"字体",enablePullDownRefresh:!1}},{path:"color/color",style:{navigationBarTitleText:"颜色",enablePullDownRefresh:!1}},{path:"radius/radius",style:{navigationBarTitleText:"圆角",enablePullDownRefresh:!1}},{path:"button/button",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}}]},{root:"pages/template",pages:[{path:"nav-default/nav-default",style:{navigationBarTitleText:"默认导航栏"}},{path:"component-communication/component-communication",style:{navigationBarTitleText:"组件通讯"}},{path:"nav-transparent/nav-transparent",style:{navigationBarTitleText:"透明渐变导航栏",transparentTitle:"auto"}},{path:"nav-button/nav-button",style:{navigationBarTitleText:"导航栏带自定义按钮","app-plus":{titleNView:{buttons:[{type:"share"},{type:"favorite"}]}}}},{path:"nav-image/nav-image",style:{navigationBarBackgroundColor:"#FFFFFF",navigationBarTextStyle:"black",titleImage:"https://web-assets.dcloud.net.cn/unidoc/zh/logo1@2x.png"}},{path:"nav-city-dropdown/nav-city-dropdown",style:{navigationBarTitleText:"导航栏带城市选择","app-plus":{titleNView:{buttons:[{text:"北京市",fontSize:"14",select:!0,width:"auto"}]}}}},{path:"nav-dot/nav-dot",style:{navigationBarTitleText:"导航栏带红点和角标","app-plus":{titleNView:{buttons:[{text:"消息",fontSize:"14",redDot:!0},{text:"关注",fontSize:"14",badgeText:"12"}]}}}},{path:"nav-search-input/nav-search-input",style:{navigationBarTitleText:"导航栏带搜索框","app-plus":{titleNView:{type:"transparent",titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"",width:"40px",fontSize:"28px",color:"#fff",background:"rgba(0,0,0,0)"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"请输入地址 如:大钟寺",disabled:!0}}}}},{path:"nav-search-input/detail/detail",style:{navigationBarTitleText:"搜索","app-plus":{titleNView:{titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"",width:"auto",fontSize:"28px",color:"#fff"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"请输入地址 如:大钟寺",autoFocus:!0}}}}},{path:"list2detail-list/list2detail-list",style:{navigationBarTitleText:"列表到详情示例",enablePullDownRefresh:!0}},{path:"list2detail-detail/list2detail-detail",style:{navigationBarTitleText:"详情","app-plus":{titleNView:{type:"transparent",buttons:[{type:"share"}]}},h5:{titleNView:{type:"transparent",buttons:[]}}}},{path:"tabbar/tabbar",style:{navigationBarTitleText:"可拖动顶部选项卡"}},{path:"tabbar/detail/detail",style:{navigationBarTitleText:"详情页面"}},{path:"swiper-vertical/swiper-vertical",style:{navigationBarTitleText:"上下滑动切换视频","app-plus":{titleNView:!1}}},{path:"swiper-list/swiper-list",style:{navigationBarTitleText:"swiper-list"}},{path:"swiper-list-nvue/swiper-list-nvue",style:{navigationBarTitleText:"swiper-list"}},{path:"scheme/scheme",style:{navigationBarTitleText:"打开外部应用"}},{path:"global/global",style:{navigationBarTitleText:"GlobalData和vuex"}}]}],globalStyle:{pageOrientation:"portrait",navigationBarTitleText:"Hello uniapp",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#007AFF",backgroundColor:"#F8F8F8",backgroundColorTop:"#F4F5F6",backgroundColorBottom:"#F4F5F6","mp-360":{navigationStyle:"custom"},h5:{maxWidth:1190,navigationBarTextStyle:"black",navigationBarBackgroundColor:"#F1F1F1"}},tabBar:{color:"#7A7E83",selectedColor:"#007AFF",borderStyle:"black",backgroundColor:"#F8F8F8",list:[{pagePath:"pages/tabBar/component/component",iconPath:"static/component.png",selectedIconPath:"static/componentHL.png",text:"内置组件"},{pagePath:"pages/tabBar/API/API",iconPath:"static/api.png",selectedIconPath:"static/apiHL.png",text:"接口"},{pagePath:"pages/tabBar/extUI/extUI",iconPath:"static/extui.png",selectedIconPath:"static/extuiHL.png",text:"扩展组件"},{pagePath:"pages/tabBar/template/template",iconPath:"static/template.png",selectedIconPath:"static/templateHL.png",text:"模板"}]}};function ai(e,t,a){return e(a={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&a.path)}},a.exports),a.exports}var ii=ai((function(e,t){var a;e.exports=(a=a||function(e,t){var a=Object.create||function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),i={},n=i.lib={},o=n.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=n.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||r).stringify(this)},concat:function(e){var t=this.words,a=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o>>2]=a[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var a,i=[],n=function(t){var a=987654321,i=4294967295;return function(){var n=((a=36969*(65535&a)+(a>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,a=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new s.init(a,t/2)}},c=l.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,a=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new s.init(a,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a=this._data,i=a.words,n=a.sigBytes,o=this.blockSize,l=n/(4*o),r=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*o,c=e.min(4*r,n);if(r){for(var d=0;d>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,s=e[t+0],r=e[t+1],p=e[t+2],m=e[t+3],g=e[t+4],f=e[t+5],y=e[t+6],v=e[t+7],b=e[t+8],w=e[t+9],k=e[t+10],x=e[t+11],V=e[t+12],N=e[t+13],_=e[t+14],E=e[t+15],C=o[0],S=o[1],T=o[2],D=o[3];C=c(C,S,T,D,s,7,l[0]),D=c(D,C,S,T,r,12,l[1]),T=c(T,D,C,S,p,17,l[2]),S=c(S,T,D,C,m,22,l[3]),C=c(C,S,T,D,g,7,l[4]),D=c(D,C,S,T,f,12,l[5]),T=c(T,D,C,S,y,17,l[6]),S=c(S,T,D,C,v,22,l[7]),C=c(C,S,T,D,b,7,l[8]),D=c(D,C,S,T,w,12,l[9]),T=c(T,D,C,S,k,17,l[10]),S=c(S,T,D,C,x,22,l[11]),C=c(C,S,T,D,V,7,l[12]),D=c(D,C,S,T,N,12,l[13]),T=c(T,D,C,S,_,17,l[14]),C=d(C,S=c(S,T,D,C,E,22,l[15]),T,D,r,5,l[16]),D=d(D,C,S,T,y,9,l[17]),T=d(T,D,C,S,x,14,l[18]),S=d(S,T,D,C,s,20,l[19]),C=d(C,S,T,D,f,5,l[20]),D=d(D,C,S,T,k,9,l[21]),T=d(T,D,C,S,E,14,l[22]),S=d(S,T,D,C,g,20,l[23]),C=d(C,S,T,D,w,5,l[24]),D=d(D,C,S,T,_,9,l[25]),T=d(T,D,C,S,m,14,l[26]),S=d(S,T,D,C,b,20,l[27]),C=d(C,S,T,D,N,5,l[28]),D=d(D,C,S,T,p,9,l[29]),T=d(T,D,C,S,v,14,l[30]),C=u(C,S=d(S,T,D,C,V,20,l[31]),T,D,f,4,l[32]),D=u(D,C,S,T,b,11,l[33]),T=u(T,D,C,S,x,16,l[34]),S=u(S,T,D,C,_,23,l[35]),C=u(C,S,T,D,r,4,l[36]),D=u(D,C,S,T,g,11,l[37]),T=u(T,D,C,S,v,16,l[38]),S=u(S,T,D,C,k,23,l[39]),C=u(C,S,T,D,N,4,l[40]),D=u(D,C,S,T,s,11,l[41]),T=u(T,D,C,S,m,16,l[42]),S=u(S,T,D,C,y,23,l[43]),C=u(C,S,T,D,w,4,l[44]),D=u(D,C,S,T,V,11,l[45]),T=u(T,D,C,S,E,16,l[46]),C=h(C,S=u(S,T,D,C,p,23,l[47]),T,D,s,6,l[48]),D=h(D,C,S,T,v,10,l[49]),T=h(T,D,C,S,_,15,l[50]),S=h(S,T,D,C,f,21,l[51]),C=h(C,S,T,D,V,6,l[52]),D=h(D,C,S,T,m,10,l[53]),T=h(T,D,C,S,k,15,l[54]),S=h(S,T,D,C,r,21,l[55]),C=h(C,S,T,D,b,6,l[56]),D=h(D,C,S,T,E,10,l[57]),T=h(T,D,C,S,y,15,l[58]),S=h(S,T,D,C,N,21,l[59]),C=h(C,S,T,D,g,6,l[60]),D=h(D,C,S,T,x,10,l[61]),T=h(T,D,C,S,p,15,l[62]),S=h(S,T,D,C,w,21,l[63]),o[0]=o[0]+C|0,o[1]=o[1]+S|0,o[2]=o[2]+T|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,a=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;a[n>>>5]|=128<<24-n%32;var o=e.floor(i/4294967296),s=i;a[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a[14+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(a.length+1),this._process();for(var l=this._hash,r=l.words,c=0;c<4;c++){var d=r[c];r[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return l},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,a,i,n,o,s){var l=e+(t&a|~t&i)+n+s;return(l<>>32-o)+t}function d(e,t,a,i,n,o,s){var l=e+(t&i|a&~i)+n+s;return(l<>>32-o)+t}function u(e,t,a,i,n,o,s){var l=e+(t^a^i)+n+s;return(l<>>32-o)+t}function h(e,t,a,i,n,o,s){var l=e+(a^(t|~i))+n+s;return(l<>>32-o)+t}t.MD5=o._createHelper(r),t.HmacMD5=o._createHmacHelper(r)}(Math),a.MD5)})),ai((function(e,t){var a,i,n;e.exports=(i=(a=ni).lib.Base,n=a.enc.Utf8,void(a.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var a=e.blockSize,i=4*a;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),l=o.words,r=s.words,c=0;c>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l>>6*(3-l)&63));var r=i.charAt(64);if(r)for(;n.length%4;)n.push(r);return n.join("")},parse:function(e){var t=e.length,a=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-s%4*2;i[o>>>2]|=(l|r)<<24-o%4*8,o++}return n.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},a.enc.Base64)}));const ri="FUNCTION",ci="pending",di="rejected";function ui(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function hi(e){return"object"===ui(e)}function pi(e){return"function"==typeof e}function mi(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const gi="REJECTED",fi="NOT_PENDING";class yi{constructor({createPromise:e,retryRule:t=gi}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case gi:return this.status===di;case fi:return this.status!==ci}}exec(){return this.needRetry?(this.status=ci,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=di,Promise.reject(e)))),this.promise):this.promise}}function vi(e){return e&&"string"==typeof e?JSON.parse(e):e}const bi=vi([]);vi("");const wi=vi("[]")||[];let ki="";try{ki="__UNI__3B4D40B"}catch(dn){}let xi={};function Vi(e,t={}){var a,i;return a=xi,i=e,Object.prototype.hasOwnProperty.call(a,i)||(xi[e]=t),xi[e]}xi=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const Ni=["invoke","success","fail","complete"],_i=Vi("_globalUniCloudInterceptor");function Ei(e,t){_i[e]||(_i[e]={}),hi(t)&&Object.keys(t).forEach((a=>{Ni.indexOf(a)>-1&&function(e,t,a){let i=_i[e][t];i||(i=_i[e][t]=[]),-1===i.indexOf(a)&&pi(a)&&i.push(a)}(e,a,t[a])}))}function Ci(e,t){_i[e]||(_i[e]={}),hi(t)?Object.keys(t).forEach((a=>{Ni.indexOf(a)>-1&&function(e,t,a){const i=_i[e][t];if(!i)return;const n=i.indexOf(a);n>-1&&i.splice(n,1)}(e,a,t[a])})):delete _i[e]}function Si(e,t){return e&&0!==e.length?e.reduce(((e,a)=>e.then((()=>a(t)))),Promise.resolve()):Promise.resolve()}function Ti(e,t){return _i[e]&&_i[e][t]||[]}function Di(e){Ei("callObject",e)}const Bi=Vi("_globalUniCloudListener"),Ii="response",Pi="needLogin",Ai="refreshToken",Mi="clientdb",Li="cloudfunction",Fi="cloudobject";function Ui(e){return Bi[e]||(Bi[e]=[]),Bi[e]}function Ri(e,t){const a=Ui(e);a.includes(t)||a.push(t)}function Oi(e,t){const a=Ui(e),i=a.indexOf(t);-1!==i&&a.splice(i,1)}function $i(e,t){const a=Ui(e);for(let i=0;i{qi&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(qi=!0,e())}qi||setTimeout((()=>{t()}),30)}()})),zi)}function Hi(e){const t={};for(const a in e){const i=e[a];pi(i)&&(t[a]=mi(i))}return t}class Wi extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Ji={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()};function Gi(e){return e&&Gi(e.__v_raw)||e}function Yi(){return{token:Ji.getStorageSync("uni_id_token")||Ji.getStorageSync("uniIdToken"),tokenExpired:Ji.getStorageSync("uni_id_token_expired")}}function Ki({token:e,tokenExpired:t}={}){e&&Ji.setStorageSync("uni_id_token",e),t&&Ji.setStorageSync("uni_id_token_expired",t)}let Qi,Zi;function Xi(){return Qi||(Qi=uni.getSystemInfoSync()),Qi}function en(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:a,channel:i}=uni.getLaunchOptionsSync();e=i,t=a}}catch(a){}return{channel:e,scene:t}}function tn(){const e=uni.getLocale&&uni.getLocale()||"en";if(Zi)return{...Zi,locale:e,LOCALE:e};const t=Xi(),{deviceId:a,osName:i,uniPlatform:n,appId:o}=t,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let l=0;l{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return i(new Wi({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const n=e.data;if(n.error)return i(new Wi({code:n.error.code,message:n.error.message,requestId:t}));n.result=n.data,n.requestId=t,delete n.data,a(n)}}))}))},on=function(e){return li.stringify(si.parse(e))},sn=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Ji,this._getAccessTokenPromiseHub=new yi({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Wi({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:fi})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return nn(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,a)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?a(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=an(t.data,this.config.clientSecret),t}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(a.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=an(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:a,filePath:i,fileType:n,onUploadProgress:o}){return new Promise(((s,l)=>{const r=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:i,fileType:n,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?s(e):l(new Wi({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){l(new Wi({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:a="image",cloudPathAsRealPath:i=!1,onUploadProgress:n,config:o}){if("string"!==ui(t))throw new Wi({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Wi({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Wi({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=o&&o.envType||this.config.envType;if(i&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Wi({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const l=(await this.getOSSUploadOptionsFromPath({env:s,filename:i?t.split("/").pop():t,fileId:i?t:void 0})).result,r="https://"+l.cdnDomain+"/"+l.ossPath,{securityToken:c,accessKeyId:d,signature:u,host:h,ossPath:p,id:m,policy:g,ossCallbackUrl:f}=l,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:u,host:h,id:m,key:p,policy:g,success_action_status:200};if(c&&(y["x-oss-security-token"]=c),f){const e=JSON.stringify({callbackUrl:f,callbackBody:JSON.stringify({fileId:m,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=on(e)}const v={url:"https://"+l.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:a};if(await this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:n})),f)return{success:!0,filePath:e,fileID:r};if((await this.reportOSSUpload({id:m})).success)return{success:!0,filePath:e,fileID:r};throw new Wi({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,a)=>{Array.isArray(e)&&0!==e.length||a(new Wi({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Wi({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},ln={init(e){const t=new sn(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}};const rn="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var cn,dn;(dn=cn||(cn={})).local="local",dn.none="none",dn.session="session";var un=function(){},hn=ai((function(e,t){var a;e.exports=(a=ni,function(e){var t=a,i=t.lib,n=i.WordArray,o=i.Hasher,s=t.algo,l=[],r=[];!function(){function t(t){for(var a=e.sqrt(t),i=2;i<=a;i++)if(!(t%i))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var i=2,n=0;n<64;)t(i)&&(n<8&&(l[n]=a(e.pow(i,.5))),r[n]=a(e.pow(i,1/3)),n++),i++}();var c=[],d=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(l.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,i=a[0],n=a[1],o=a[2],s=a[3],l=a[4],d=a[5],u=a[6],h=a[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var m=c[p-15],g=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,f=c[p-2],y=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[p]=g+c[p-7]+y+c[p-16]}var v=i&n^i&o^n&o,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=h+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&d^~l&u)+r[p]+c[p];h=u,u=d,d=l,l=s+w|0,s=o,o=n,n=i,i=w+(b+v)|0}a[0]=a[0]+i|0,a[1]=a[1]+n|0,a[2]=a[2]+o|0,a[3]=a[3]+s|0,a[4]=a[4]+l|0,a[5]=a[5]+d|0,a[6]=a[6]+u|0,a[7]=a[7]+h|0},_doFinalize:function(){var t=this._data,a=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return a[n>>>5]|=128<<24-n%32,a[14+(n+64>>>9<<4)]=e.floor(i/4294967296),a[15+(n+64>>>9<<4)]=i,t.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(d),t.HmacSHA256=o._createHmacHelper(d)}(Math),a.SHA256)})),pn=hn,mn=ai((function(e,t){e.exports=ni.HmacSHA256}));const gn=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Wi({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,a)=>{e=(e,i)=>e?a(e):t(i)}));return e.promise=t,e};function fn(e){return void 0===e}function yn(e){return"[object Null]"===Object.prototype.toString.call(e)}var vn;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(vn||(vn={}));const bn={adapter:null,runtime:void 0},wn=["anonymousUuidKey"];class kn extends un{constructor(){super(),bn.adapter.root.tcbObject||(bn.adapter.root.tcbObject={})}setItem(e,t){bn.adapter.root.tcbObject[e]=t}getItem(e){return bn.adapter.root.tcbObject[e]}removeItem(e){delete bn.adapter.root.tcbObject[e]}clear(){delete bn.adapter.root.tcbObject}}function xn(e,t){switch(e){case"local":return t.localStorage||new kn;case"none":return new kn;default:return t.sessionStorage||new kn}}class Vn{constructor(e){if(!this._storage){this._persistence=bn.adapter.primaryStorage||e.persistence,this._storage=xn(this._persistence,bn.adapter);const t=`access_token_${e.env}`,a=`access_token_expire_${e.env}`,i=`refresh_token_${e.env}`,n=`anonymous_uuid_${e.env}`,o=`login_type_${e.env}`,s=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:a,refreshTokenKey:i,anonymousUuidKey:n,loginTypeKey:o,userInfoKey:s}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const a=xn(e,bn.adapter);for(const i in this.keys){const e=this.keys[i];if(t&&wn.includes(i))continue;const n=this._storage.getItem(e);fn(n)||yn(n)||(a.setItem(e,n),this._storage.removeItem(e))}this._storage=a}setStore(e,t,a){if(!this._storage)return;const i={version:a||"localCachev1",content:t},n=JSON.stringify(i);try{this._storage.setItem(e,n)}catch(o){throw o}}getStore(e,t){try{if(!this._storage)return}catch(i){return""}t=t||"localCachev1";const a=this._storage.getItem(e);return a&&a.indexOf(t)>=0?JSON.parse(a).content:""}removeStore(e){this._storage.removeItem(e)}}const Nn={},_n={};function En(e){return Nn[e]}class Cn{constructor(e,t){this.data=t||null,this.name=e}}class Sn extends Cn{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Tn=new class{constructor(){this._listeners={}}on(e,t){return a=e,i=t,(n=this._listeners)[a]=n[a]||[],n[a].push(i),this;var a,i,n}off(e,t){return function(e,t,a){if(a&&a[e]){const i=a[e].indexOf(t);-1!==i&&a[e].splice(i,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Sn)return console.error(e.error),this;const a="string"==typeof e?new Cn(e,t||{}):e,i=a.name;if(this._listens(i)){a.target=this;const e=this._listeners[i]?[...this._listeners[i]]:[];for(const t of e)t.call(this,a)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Dn(e,t){Tn.on(e,t)}function Bn(e,t={}){Tn.fire(e,t)}function In(e,t){Tn.off(e,t)}const Pn="loginStateChanged",An="loginStateExpire",Mn="loginTypeChanged",Ln="anonymousConverted",Fn="refreshAccessToken";var Un;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Un||(Un={}));const Rn=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],On={"X-SDK-Version":"1.3.5"};function $n(e,t,a){const i=e[t];e[t]=function(t){const n={},o={};a.forEach((a=>{const{data:i,headers:s}=a.call(e,t);Object.assign(n,i),Object.assign(o,s)}));const s=t.data;return s&&(()=>{var e;if(e=s,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...s,...n};else for(const t in n)s.append(t,n[t])})(),t.headers={...t.headers||{},...o},i.call(e,t)}}function zn(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...On,"x-seqid":e}}}class qn{constructor(e={}){var t;this.config=e,this._reqClass=new bn.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=En(this.config.env),this._localCache=(t=this.config.env,_n[t]),$n(this._reqClass,"post",[zn]),$n(this._reqClass,"upload",[zn]),$n(this._reqClass,"download",[zn])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(a){t=a}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a,loginTypeKey:i,anonymousUuidKey:n}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(a);if(!o)throw new Wi({message:"未登录CloudBase"});const s={refresh_token:o},l=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(l.data.code){const{code:e}=l.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(i)===Un.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(n),t=this._cache.getStore(a),i=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(i.refresh_token),this._refreshAccessToken()}Bn(An),this._cache.removeStore(a)}throw new Wi({code:l.data.code,message:`刷新access token失败:${l.data.code}`})}if(l.data.access_token)return Bn(Fn),this._cache.setStore(e,l.data.access_token),this._cache.setStore(t,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire};l.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,l.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a}=this._cache.keys;if(!this._cache.getStore(a))throw new Wi({message:"refresh token不存在,登录状态异常"});let i=this._cache.getStore(e),n=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(i,n))&&(o=!1),(!i||!n||n{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:a,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:a,avatarUrl:i,province:n,country:o,city:s}=e,{data:l}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:a,avatarUrl:i,province:n,country:o,city:s});this.setLocalUserInfo(l)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Gn{constructor(e){if(!e)throw new Wi({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=En(e);const{refreshTokenKey:t,accessTokenKey:a,accessTokenExpireKey:i}=this._cache.keys,n=this._cache.getStore(t),o=this._cache.getStore(a),s=this._cache.getStore(i);this.credential={refreshToken:n,accessToken:o,accessTokenExpire:s},this.user=new Jn(e)}get isAnonymousAuth(){return this.loginType===Un.ANONYMOUS}get isCustomAuth(){return this.loginType===Un.CUSTOM}get isWeixinAuth(){return this.loginType===Un.WECHAT||this.loginType===Un.WECHAT_OPEN||this.loginType===Un.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Yn extends Wn{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,a=this._cache.getStore(e)||void 0,i=this._cache.getStore(t)||void 0,n=await this._request.send("auth.signInAnonymously",{anonymous_uuid:a,refresh_token:i});if(n.uuid&&n.refresh_token){this._setAnonymousUUID(n.uuid),this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),Bn(Pn),Bn(Mn,{env:this.config.env,loginType:Un.ANONYMOUS,persistence:"local"});const e=new Gn(this.config.env);return await e.user.refresh(),e}throw new Wi({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:a}=this._cache.keys,i=this._cache.getStore(t),n=this._cache.getStore(a),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:n,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),Bn(Ln,{env:this.config.env}),Bn(Mn,{loginType:Un.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new Wi({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(a,Un.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Kn extends Wn{async signIn(e){if("string"!=typeof e)throw new Wi({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,a=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(a.refresh_token)return this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),Bn(Pn),Bn(Mn,{env:this.config.env,loginType:Un.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Gn(this.config.env);throw new Wi({message:"自定义登录失败"})}}class Qn extends Wn{async signIn(e,t){if("string"!=typeof e)throw new Wi({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:a}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:n,access_token:o,access_token_expire:s}=i;if(n)return this.setRefreshToken(n),o&&s?this.setAccessToken(o,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Bn(Pn),Bn(Mn,{env:this.config.env,loginType:Un.EMAIL,persistence:this.config.persistence}),new Gn(this.config.env);throw i.code?new Wi({code:i.code,message:`邮箱登录失败: ${i.message}`}):new Wi({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Zn extends Wn{async signIn(e,t){if("string"!=typeof e)throw new Wi({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:a}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:Un.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:n,access_token_expire:o,access_token:s}=i;if(n)return this.setRefreshToken(n),s&&o?this.setAccessToken(s,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Bn(Pn),Bn(Mn,{env:this.config.env,loginType:Un.USERNAME,persistence:this.config.persistence}),new Gn(this.config.env);throw i.code?new Wi({code:i.code,message:`用户名密码登录失败: ${i.message}`}):new Wi({message:"用户名密码登录失败"})}}class Xn{constructor(e){this.config=e,this._cache=En(e.env),this._request=Hn(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Dn(Mn,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Yn(this.config)}customAuthProvider(){return new Kn(this.config)}emailAuthProvider(){return new Qn(this.config)}usernameAuthProvider(){return new Zn(this.config)}async signInAnonymously(){return new Yn(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Qn(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Zn(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Yn(this.config)),Dn(Ln,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Un.ANONYMOUS)throw new Wi({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:a}=this._cache.keys,i=this._cache.getStore(e);if(!i)return;const n=await this._request.send("auth.logout",{refresh_token:i});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(a),Bn(Pn),Bn(Mn,{env:this.config.env,loginType:Un.NULL,persistence:this.config.persistence}),n}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Dn(Pn,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Dn(An,e.bind(this))}onAccessTokenRefreshed(e){Dn(Fn,e.bind(this))}onAnonymousConverted(e){Dn(Ln,e.bind(this))}onLoginTypeChanged(e){Dn(Mn,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Gn(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Wi({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Kn(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,a=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+a}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:a,env:i}=e.data;i===this.config.env&&(this._cache.updatePersistence(a),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const eo=function(e,t){t=t||gn();const a=Hn(this.config.env),{cloudPath:i,filePath:n,onUploadProgress:o,fileType:s="image"}=e;return a.send("storage.getUploadMetadata",{path:i}).then((e=>{const{data:{url:l,authorization:r,token:c,fileId:d,cosFileId:u},requestId:h}=e,p={key:i,signature:r,"x-cos-meta-fileid":u,success_action_status:"201","x-cos-security-token":c};a.upload({url:l,data:p,file:n,name:i,fileType:s,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:d,requestId:h}):t(new Wi({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},to=function(e,t){t=t||gn();const a=Hn(this.config.env),{cloudPath:i}=e;return a.send("storage.getUploadMetadata",{path:i}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},ao=function({fileList:e},t){if(t=t||gn(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let i of e)if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const a={fileid_list:e};return Hn(this.config.env).send("storage.batchDeleteFile",a).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},io=function({fileList:e},t){t=t||gn(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let a=[];for(let n of e)"object"==typeof n?(n.hasOwnProperty("fileID")&&n.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),a.push({fileid:n.fileID,max_age:n.maxAge})):"string"==typeof n?a.push({fileid:n}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const i={file_list:a};return Hn(this.config.env).send("storage.batchGetDownloadUrl",i).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},no=async function({fileID:e},t){const a=(await io.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==a.code)return t?t(a):new Promise((e=>{e(a)}));const i=Hn(this.config.env);let n=a.download_url;if(n=encodeURI(n),!t)return i.download({url:n});t(await i.download({url:n}))},oo=function({name:e,data:t,query:a,parse:i,search:n},o){const s=o||gn();let l;try{l=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Wi({code:"PARAM_ERROR",message:"函数名不能为空"}));const r={inQuery:a,parse:i,search:n,function_name:e,request_data:l};return Hn(this.config.env).send("functions.invokeFunction",r).then((e=>{if(e.code)s(null,e);else{let a=e.data.response_data;if(i)s(null,{result:a,requestId:e.requestId});else try{a=JSON.parse(e.data.response_data),s(null,{result:a,requestId:e.requestId})}catch(t){s(new Wi({message:"response data must be json"}))}}return s.promise})).catch((e=>{s(e)})),s.promise},so={timeout:15e3,persistence:"session"},lo={};class ro{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(bn.adapter||(this.requestClient=new bn.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...so,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new ro(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||bn.adapter.primaryStorage||so.persistence;var a;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Nn[t]=new Vn(e),_n[t]=new Vn({...e,persistence:"local"})}(this.config),a=this.config,jn[a.env]=new qn(a),this.authObj=new Xn(this.config),this.authObj}on(e,t){return Dn.apply(this,[e,t])}off(e,t){return In.apply(this,[e,t])}callFunction(e,t){return oo.apply(this,[e,t])}deleteFile(e,t){return ao.apply(this,[e,t])}getTempFileURL(e,t){return io.apply(this,[e,t])}downloadFile(e,t){return no.apply(this,[e,t])}uploadFile(e,t){return eo.apply(this,[e,t])}getUploadMetadata(e,t){return to.apply(this,[e,t])}registerExtension(e){lo[e.name]=e}async invokeExtension(e,t){const a=lo[e];if(!a)throw new Wi({message:`扩展${e} 必须先注册`});return await a.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:a}=function(e){const t=(a=e,"[object Array]"===Object.prototype.toString.call(a)?e:[e]);var a;for(const i of t){const{isMatch:e,genAdapter:t,runtime:a}=i;if(e())return{adapter:t(),runtime:a}}}(e)||{};t&&(bn.adapter=t),a&&(bn.runtime=a)}}var co=new ro;function uo(e,t,a){void 0===a&&(a={});var i=/\?/.test(t),n="";for(var o in a)""===n?!i&&(t+="?"):n+="&",n+=o+"="+encodeURIComponent(a[o]);return/^http(s)?:\/\//.test(t+=n)?t:""+e+t}class ho{post(e){const{url:t,data:a,headers:i}=e;return new Promise(((e,n)=>{Ji.request({url:uo("https:",t),data:a,method:"POST",header:i,success(t){e(t)},fail(e){n(e)}})}))}upload(e){return new Promise(((t,a)=>{const{url:i,file:n,data:o,headers:s,fileType:l}=e,r=Ji.uploadFile({url:uo("https:",i),name:"file",formData:Object.assign({},o),filePath:n,fileType:l,header:s,success(e){const a={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(a.statusCode=parseInt(o.success_action_status,10)),t(a)},fail(e){a(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const po={setItem(e,t){Ji.setStorageSync(e,t)},getItem:e=>Ji.getStorageSync(e),removeItem(e){Ji.removeStorageSync(e)},clear(){Ji.clearStorageSync()}};var mo={genAdapter:function(){return{root:{},reqClass:ho,localStorage:po,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};co.useAdapters(mo);const go=co,fo=go.init;go.init=function(e){e.env=e.spaceId;const t=fo.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const a=t.auth;return t.auth=function(e){const t=a.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var a;t[e]=(a=t[e],function(e){e=e||{};const{success:t,fail:i,complete:n}=Hi(e);if(!(t||i||n))return a.call(this,e);a.call(this,e).then((e=>{t&&t(e),n&&n(e)}),(e=>{i&&i(e),n&&n(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var yo=go,vo=class extends sn{getAccessToken(){return new Promise(((e,t)=>{const a="Anonymous_Access_token";this.setAccessToken(a),e(a)}))}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(a.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=an(a,this.config.clientSecret);const n=tn();i["x-client-info"]=encodeURIComponent(JSON.stringify(n));const{token:o}=Yi();return i["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify(i))}}uploadFileToOSS({url:e,formData:t,name:a,filePath:i,fileType:n,onUploadProgress:o}){return new Promise(((s,l)=>{const r=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:i,fileType:n,success(e){e&&e.statusCode<400?s(e):l(new Wi({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){l(new Wi({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:a="image",onUploadProgress:i}){if(!t)throw new Wi({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let n;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:o,formData:s,name:l}=t.result;n=t.result.fileUrl;const r={url:o,formData:s,name:l,filePath:e,fileType:a};return this.uploadFileToOSS(Object.assign({},r,{onUploadProgress:i}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((a,i)=>{t.success?a({success:!0,filePath:e,fileID:n}):i(new Wi({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Wi({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Wi({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const a={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(a)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Wi({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},bo={init(e){const t=new vo(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}},wo=ai((function(e,t){e.exports=ni.enc.Hex}));function ko(e="",t={}){const{data:a,functionName:i,method:n,headers:o,signHeaderKeys:s=[],config:l}=t,r=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},o,{"x-from-app-id":l.spaceAppId,"x-from-env-id":l.spaceId,"x-to-env-id":l.spaceId,"x-from-instance-id":r,"x-from-function-name":i,"x-client-timestamp":r,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),u=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),[h="",p=""]=e.split("?")||[],m=function(e){const t=e.signedHeaders.join(";"),a=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),i=pn(e.body).toString(wo),n=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${a}\n${t}\n${i}\n`,o=pn(n).toString(wo),s=`HMAC-SHA256\n${e.timestamp}\n${o}\n`,l=mn(s,e.secretKey).toString(wo);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${l}`}({path:h,query:p,method:n,headers:d,timestamp:r,body:JSON.stringify(a),secretId:l.accessKey,secretKey:l.secretKey,signedHeaders:u.sort()});return{url:`${l.endpoint}${e}`,headers:Object.assign({},d,{Authorization:m})}}function xo({url:e,data:t,method:a="POST",headers:i={}}){return new Promise(((n,o)=>{Ji.request({url:e,method:a,data:t,header:i,dataType:"json",complete:(e={})=>{const t=i["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:a,errMsg:i,trace_id:n}=e.data||{};return o(new Wi({code:"SYS_ERR",message:a||i||"request:fail",requestId:n||t}))}n({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Vo(e,t){const{path:a,data:i,method:n="GET"}=e,{url:o,headers:s}=ko(a,{functionName:"",data:i,method:n,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return xo({url:o,data:i,method:n,headers:s}).then((e=>{const t=e.data||{};if(!t.success)throw new Wi({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Wi({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function No(e=""){const t=e.trim().replace(/^cloud:\/\//,""),a=t.indexOf("/");if(a<=0)throw new Wi({code:"INVALID_PARAM",message:"fileID不合法"});const i=t.substring(0,a),n=t.substring(a+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),n}function _o(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Eo={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:a,data:i}=e,n="POST",{url:o,headers:s}=ko("/functions/invokeFunction",{functionName:a,data:i,method:n,headers:{"x-to-function-name":a},signHeaderKeys:["x-to-function-name"],config:t});return xo({url:o,data:i,method:n,headers:s}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new Wi({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:a,formData:i,onUploadProgress:n}){return new Promise(((o,s)=>{const l=Ji.uploadFile({url:e,filePath:t,fileType:a,formData:i,name:"file",success(e){e&&e.statusCode<400?o(e):s(new Wi({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new Wi({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof n&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{n({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:a="image",onUploadProgress:i}){if("string"!==ui(t))throw new Wi({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Wi({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Wi({code:"INVALID_PARAM",message:"cloudPath不合法"});const n=await Vo({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:s,form_data:l}=n,r=l&&l.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:s,filePath:e,fileType:a,formData:r,onUploadProgress:i}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,a)=>{(!e||e.length<0)&&a(new Wi({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&a(new Wi({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const i=[];for(const n of e){"string"!==ui(n)&&a(new Wi({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=No.call(this,n);i.push({file_id:e,expire:600})}Vo({path:"/?download_url",data:{file_list:i},method:"POST"},this.config).then((e=>{const{file_list:a=[]}=e;t({fileList:a.map((e=>({fileID:_o.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>a(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Co({data:e}){let t;t=tn();const a=JSON.parse(JSON.stringify(e||{}));if(Object.assign(a,{clientInfo:t}),!a.uniIdToken){const{token:e}=Yi();e&&(a.uniIdToken=e)}return a}const So=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var To=/[\\^$.*+?()[\]{}|]/g,Do=RegExp(To.source);function Bo(e,t,a){return e.replace(new RegExp((i=t)&&Do.test(i)?i.replace(To,"\\$&"):i,"g"),a);var i}const Io=2e4,Po={code:20101,message:"Invalid client"};function Ao(e){const{errSubject:t,subject:a,errCode:i,errMsg:n,code:o,message:s,cause:l}=e||{};return new Wi({subject:t||a||"uni-secure-network",code:i||o||Io,message:n||s,cause:l})}let Mo;function Lo({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function Fo({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function Uo({functionName:e,result:t,logPvd:a}){}function Ro(e){const t=e.callFunction,a=function(a){const i=a.name;a.data=Co.call(e,{data:a.data});const n={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Lo(a),s=Fo(a),l=o||s;return t.call(this,a).then((e=>(e.errCode=0,!l&&Uo.call(this,{functionName:i,result:e,logPvd:n}),Promise.resolve(e))),(e=>(!l&&Uo.call(this,{functionName:i,result:e,logPvd:n}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:a=[]}={}){for(let i=0;ia.provider===e&&a.spaceId===t));return i&&i.config}({provider:e,spaceId:t});if(!l||!l.accessControl||!l.accessControl.enable)return!1;const r=l.accessControl.function||{},c=Object.keys(r);if(0===c.length)return!0;const d=function(e,t){let a,i,n;for(let o=0;oe.trim())).indexOf(t)>-1&&(i=s):n=s:a=s}return a||i||n}(c,a);if(!d)return!1;if((r[d]||[]).find(((e={})=>e.appId===i&&(e.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${i}, platform: ${s}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Ao(Po)}({provider:i,spaceId:n,functionName:o})?new Mo({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(a.bind(e))(t):s(t),Object.defineProperty(l,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),l}}Mo=class{constructor(){throw Ao({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const Oo=Symbol("CLIENT_DB_INTERNAL");function $o(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Oo,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,a,i){if("_uniClient"===a)return null;if("symbol"==typeof a)return e[a];if(a in e||"string"!=typeof a){const t=e[a];return"function"==typeof t?t.bind(e):t}return t.get(e,a,i)}})}function zo(e){return{on:(t,a)=>{e[t]=e[t]||[],e[t].indexOf(a)>-1||e[t].push(a)},off:(t,a)=>{e[t]=e[t]||[];const i=e[t].indexOf(a);-1!==i&&e[t].splice(i,1)}}}const qo=["db.Geo","db.command","command.aggregate"];function jo(e,t){return qo.indexOf(`${e}.${t}`)>-1}function Ho(e){switch(ui(e=Gi(e))){case"array":return e.map((e=>Ho(e)));case"object":return e._internalType===Oo||Object.keys(e).forEach((t=>{e[t]=Ho(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Wo(e){return e&&e.content&&e.content.$method}class Jo{constructor(e,t,a){this.content=e,this.prevStage=t||null,this.udb=null,this._database=a}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Ho(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Wo(e),a=Wo(e.prevStage);if("aggregate"===t&&"collection"===a||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Wo(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Wo(e),a=Wo(e.prevStage);if("aggregate"===t&&"command"===a)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Go({$method:e,$param:Ho(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const a=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:Ho(t)}),this._database._callCloudFunction({action:a,command:i})}}function Go(e,t,a){return $o(new Jo(e,t,a),{get(e,t){let i="db";return e&&e.content&&(i=e.content.$method),jo(i,t)?Go({$method:t},e,a):function(){return Go({$method:t,$param:Ho(Array.from(arguments))},e,a)}}})}function Yo({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Ko(e,t={}){return $o(new e(t),{get:(e,t)=>jo("db",t)?Go({$method:t},null,e):function(){return Go({$method:t,$param:Ho(Array.from(arguments))},null,e)}})}class Qo extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Vi("_globalUniCloudDatabaseCallback")),t||(this.auth=zo(this._authCallBacks)),this._isJQL=t,Object.assign(this,zo(this._dbCallBacks)),this.env=$o({},{get:(e,t)=>({$env:t})}),this.Geo=$o({},{get:(e,t)=>Yo({path:["Geo"],method:t})}),this.serverDate=Yo({path:[],method:"serverDate"}),this.RegExp=Yo({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const a=this._dbCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const a=this._authCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),a=e.getCommand();if("getTemp"!==a.$db[a.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:a}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:a,queryList:i}){function n(e,t){if(a&&i)for(let a=0;aSi(Ti(s,"complete"),e))).then((()=>(n(null,e),$i(Ii,{type:Mi,content:e}),Promise.reject(e))))}const r=Si(Ti(s,"invoke")),c=this._uniClient;return r.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:a}}))).then((e=>{const{code:t,message:a,token:i,tokenExpired:r,systemInfo:c=[]}=e.result;if(c)for(let n=0;n(console.warn(a),i)})}}return u=e,Si(Ti(s,"success"),u).then((()=>Si(Ti(s,"complete"),u))).then((()=>{n(u,null);const e=o._parseResult(u);return $i(Ii,{type:Mi,content:e}),Promise.resolve(e)}));var u}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),l(new Wi({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Zo="token无效,跳转登录页面",Xo="token过期,跳转登录页面",es={TOKEN_INVALID_TOKEN_EXPIRED:Xo,TOKEN_INVALID_INVALID_CLIENTID:Zo,TOKEN_INVALID:Zo,TOKEN_INVALID_WRONG_TOKEN:Zo,TOKEN_INVALID_ANONYMOUS_USER:Zo},ts={"uni-id-token-expired":Xo,"uni-id-check-token-failed":Zo,"uni-id-token-not-exist":Zo,"uni-id-check-device-feature-failed":Zo};function as(e,t){let a="";return a=e?`${e}/${t}`:t,a.replace(/^\//,"")}function is(e=[],t=""){const a=[],i=[];return e.forEach((e=>{!0===e.needLogin?a.push(as(t,e.path)):!1===e.needLogin&&i.push(as(t,e.path))})),{needLoginPage:a,notNeedLoginPage:i}}function ns(e){return e.split("?")[0].replace(/^\//,"")}function os(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function ss(){return ns(os())}function ls(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const a=t.list,i=ns(e);return a.some((e=>e.pagePath===i))}const rs=!!ti.uniIdRouter,{loginPage:cs,routerNeedLogin:ds,resToLogin:us,needLoginPage:hs,notNeedLoginPage:ps,loginPageInTabBar:ms}=function({pages:e=[],subPackages:t=[],uniIdRouter:a={},tabBar:i={}}=ti){const{loginPage:n,needLogin:o=[],resToLogin:s=!0}=a,{needLoginPage:l,notNeedLoginPage:r}=is(e),{needLoginPage:c,notNeedLoginPage:d}=function(e=[]){const t=[],a=[];return e.forEach((e=>{const{root:i,pages:n=[]}=e,{needLoginPage:o,notNeedLoginPage:s}=is(n,i);t.push(...o),a.push(...s)})),{needLoginPage:t,notNeedLoginPage:a}}(t);return{loginPage:n,routerNeedLogin:o,resToLogin:s,needLoginPage:[...l,...c],notNeedLoginPage:[...r,...d],loginPageInTabBar:ls(n,i)}}();if(hs.indexOf(cs)>-1)throw new Error(`Login page [${cs}] should not be "needLogin", please check your pages.json`);function gs(e){const t=ss();if("/"===e.charAt(0))return e;const[a,i]=e.split("?"),n=a.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let s=0;s-1?i+`&uniIdRedirectUrl=${encodeURIComponent(n)}`:i+`?uniIdRedirectUrl=${encodeURIComponent(n)}`:i);var i,n;ms?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{o[e]({url:a})}))}function vs({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},a=function(){const{token:e,tokenExpired:t}=Yi();let a;if(e){if(t-1)&&(hs.indexOf(t)>-1||ds.some((t=>{return a=e,new RegExp(t).test(a);var a})))}(e)&&a){if(a.uniIdRedirectUrl=e,Ui(Pi).length>0)return setTimeout((()=>{$i(Pi,a)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function bs(){!function(){const e=os(),{abortLoginPageJump:t,autoToLoginPage:a}=vs({url:e});t||a&&ys({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:a}=e;let i=!1;switch(t){case"cloudobject":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ts}(a);break;case"clientdb":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in es}(a)}i&&function(e={}){const t=Ui(Pi);ji().then((()=>{const a=os();if(a&&fs({redirect:a}))return t.length>0?$i(Pi,Object.assign({uniIdRedirectUrl:a},e)):void(cs&&ys({api:"navigateTo",redirect:a}))}))}(a)}))}function ks(e){var t;(t=e).onResponse=function(e){Ri(Ii,e)},t.offResponse=function(e){Oi(Ii,e)},function(e){e.onNeedLogin=function(e){Ri(Pi,e)},e.offNeedLogin=function(e){Oi(Pi,e)},rs&&(Vi("_globalUniCloudStatus").needLoginInit||(Vi("_globalUniCloudStatus").needLoginInit=!0,ji().then((()=>{bs.call(e)})),us&&ws.call(e)))}(e),function(e){e.onRefreshToken=function(e){Ri(Ai,e)},e.offRefreshToken=function(e){Oi(Ai,e)}}(e)}let xs;const Vs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ns=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function _s(){const e=Yi().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let a;try{a=JSON.parse((i=t[1],decodeURIComponent(xs(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}var i;return a.tokenExpired=1e3*a.exp,delete a.exp,delete a.iat,a}xs="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ns.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var a,i,n="",o=0;o>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return n}:atob;var Es=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ai((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function n(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function o(e,t,{onChooseFile:i,onUploadProgress:n}){return t.then((e=>{if(i){const t=i(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:a,tempFilePaths:[],tempFiles:[]}:function(e,t,i=5,n){(t=Object.assign({},t)).errMsg=a;const o=t.tempFiles,s=o.length;let l=0;return new Promise((a=>{for(;l=s)return void(!o.find((e=>!e.url&&!e.errMsg))&&a(t));const c=o[i];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,n&&n(e)}}).then((e=>{c.url=e.fileID,i{c.errMsg=e.errMsg||e.message,i{uni.chooseImage({count:t,sizeType:a,sourceType:o,extension:s,success(t){e(n(t,"image"))},fail(e){l({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?o(e,function(e){const{camera:t,compressed:a,maxDuration:o,sourceType:s=["album","camera"],extension:l}=e;return new Promise(((e,r)=>{uni.chooseVideo({camera:t,compressed:a,maxDuration:o,sourceType:s,extension:l,success(t){const{tempFilePath:a,duration:i,size:o,height:s,width:l}=t;e(n({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:o,type:t.tempFile&&t.tempFile.type||"",width:l,height:s,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){r({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):o(e,function(e){const{count:t,extension:a}=e;return new Promise(((e,o)=>{let s=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return o({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:a,success(t){e(n(t))},fail(e){o({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function Cs(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let a=!1;const i=[];for(let n=2;n{this.mixinDatacomLoading=!1;const{data:i,count:n}=a.result;this.getcount&&(this.mixinDatacomPage.count=n),this.mixinDatacomHasMore=i.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,a&&a(e)})))},mixinDatacomGet(t={}){let a=e.database(this.spaceInfo);const i=t.action||this.action;i&&(a=a.action(i));const n=t.collection||this.collection;a=Array.isArray(n)?a.collection(...n):a.collection(n);const o=t.where||this.where;o&&Object.keys(o).length&&(a=a.where(o));const s=t.field||this.field;s&&(a=a.field(s));const l=t.foreignKey||this.foreignKey;l&&(a=a.foreignKey(l));const r=t.groupby||this.groupby;r&&(a=a.groupBy(r));const c=t.groupField||this.groupField;c&&(a=a.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(a=a.distinct());const d=t.orderby||this.orderby;d&&(a=a.orderBy(d));const u=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,m=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,f={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return m&&(f.getTree=y),g&&(f.getTreePath=y),a=a.skip(h*(u-1)).limit(h).get(f),a}}}}function Ss(e){return Vi("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Ts({openid:e,callLoginByWeixin:t=!1}={}){throw Ss(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Ds(e){const t=Ss(this);return t.initPromise||(t.initPromise=Ts.call(this,e)),t.initPromise}function Bs(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(a){return new Promise(((i,n)=>{t[e]({...a,success(e){i(e)},fail(e){n(e)}})}))}}class Is extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const a=this._callback[e];if(!a)return;const i=function(e,t){for(let a=e.length-1;a>=0;a--)if(e[a]===t)return a;return-1}(a,t);a.splice(i,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const a=this._callback[e];if(a)for(let i=0;i{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:a,messageId:i,message:n}=t;this._payloadQueue.push({action:a,messageId:i,message:n}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:a,message:i}=e;"end"===t?this._end({messageId:a,message:i}):"message"===t&&this._appendMessage({messageId:a,message:i})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const Ps={tcb:yo,tencent:yo,aliyun:ln,private:bo,alipay:Eo};let As=new class{init(e){let t={};const a=Ps[e.provider];if(!a)throw new Error("未提供正确的provider参数");var i;return t=a.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new yi({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const a=e.auth();return t.then((()=>a.getLoginState())).then((e=>e?Promise.resolve():a.signInAnonymously()))}}))}(t),Ro(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(i=t).database=function(e){if(e&&Object.keys(e).length>0)return i.init(e).database();if(this._database)return this._database;const t=Ko(Qo,{uniClient:i});return this._database=t,t},i.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return i.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Ko(Qo,{uniClient:i,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=_s,e.chooseAndUploadFile=Es.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Cs(e)}}),e.SSEChannel=Is,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:a=!1}={}){return Ds.call(e,{openid:t,callLoginByWeixin:a})}}(e),e.importObject=function(t){return function(a,i={}){i=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},i);const{customUI:n,loadingOptions:o,errorOptions:s,parseSystemError:l}=i,r=!n;return new Proxy({},{get(n,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:a}={}){return async function(...i){const n=a?a({params:i}):{};let o,s;try{return await Si(Ti(t,"invoke"),{...n}),o=await e(...i),await Si(Ti(t,"success"),{...n,result:o}),o}catch(l){throw s=l,await Si(Ti(t,"fail"),{...n,error:s}),s}finally{await Si(Ti(t,"complete"),s?{...n,error:s}:{...n,result:o})}}}({fn:async function n(...d){let u;r&&uni.showLoading({title:o.title,mask:o.mask});const h={name:a,type:"OBJECT",data:{method:c,params:d}};"object"==typeof i.secretMethods&&function(e,t){const a=t.data.method,i=e.secretMethods||{},n=i[a]||i["*"];n&&(t.secretType=n)}(i,h);let p=!1;try{u=await t.callFunction(h)}catch(e){p=!0,u={result:new Wi(e)}}const{errSubject:m,errCode:g,errMsg:f,newToken:y}=u.result||{};if(r&&uni.hideLoading(),y&&y.token&&y.tokenExpired&&(Ki(y),$i(Ai,{...y})),g){let e=f;if(p&&l&&(e=(await l({objectName:a,methodName:c,params:d,errSubject:m,errCode:g,errMsg:f})).errMsg||f),r)if("toast"===s.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:a,cancelText:i,confirmText:n}={}){return new Promise(((o,s)=>{uni.showModal({title:e,content:t,showCancel:a,cancelText:i,confirmText:n,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&t)return n(...d)}}const t=new Wi({subject:m,code:g,message:f,requestId:u.requestId});throw t.detail=u.result,$i(Ii,{type:Fi,content:t}),t}return $i(Ii,{type:Fi,content:u.result}),u.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:a,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const a=t[e];var i,n;t[e]=function(){return a.apply(t,Array.from(arguments))},t[e]=(i=t[e],n=e,function(e){let t=!1;if("callFunction"===n){const a=e&&e.type||ri;t=a!==ri}const a="callFunction"===n&&!t,o=this._initPromiseHub.exec();e=e||{};const{success:s,fail:l,complete:r}=Hi(e),c=o.then((()=>t?Promise.resolve():Si(Ti(n,"invoke"),e))).then((()=>i.call(this,e))).then((e=>t?Promise.resolve(e):Si(Ti(n,"success"),e).then((()=>Si(Ti(n,"complete"),e))).then((()=>(a&&$i(Ii,{type:Li,content:e}),Promise.resolve(e))))),(e=>t?Promise.reject(e):Si(Ti(n,"fail"),e).then((()=>Si(Ti(n,"complete"),e))).then((()=>($i(Ii,{type:Li,content:e}),Promise.reject(e))))));if(!(s||l||r))return c;c.then((e=>{s&&s(e),r&&r(e),a&&$i(Ii,{type:Li,content:e})}),(e=>{l&&l(e),r&&r(e),a&&$i(Ii,{type:Li,content:e})}))}).bind(t)})),t.init=this.init,t}};(()=>{const e=wi;let t={};if(e&&1===e.length)t=e[0],As=As.init(t),As._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let a;a=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{As[e]=function(){return console.error(a),Promise.reject(new Wi({code:"SYS_ERR",message:a}))}}))}Object.assign(As,{get mixinDatacom(){return Cs(As)}}),ks(As),As.addInterceptor=Ei,As.removeInterceptor=Ci,As.interceptObject=Di})();var Ms=As;const Ls=["{","}"];const Fs=/^(?:\d)+/,Us=/^(?:\w)+/;const Rs="zh-Hans",Os="zh-Hant",$s="en",zs=Object.prototype.hasOwnProperty,qs=(e,t)=>zs.call(e,t),js=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=Ls){if(!t)return[e];let i=this._caches[e];return i||(i=function(e,[t,a]){const i=[];let n=0,o="";for(;n-1?Rs:e.indexOf("-hant")>-1?Os:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?Os:Rs);var a;let i=[$s,"fr","es"];t&&Object.keys(t).length>0&&(i=Object.keys(t));const n=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,i);return n||void 0}class Ws{constructor({locale:e,fallbackLocale:t,messages:a,watcher:i,formater:n}){this.locale=$s,this.fallbackLocale=$s,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=n||js,this.messages=a||{},this.setLocale(e||$s),i&&this.watchLocale(i)}setLocale(e){const t=this.locale;this.locale=Hs(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,a=!0){const i=this.messages[e];i?a?Object.assign(i,t):Object.keys(t).forEach((e=>{qs(i,e)||(i[e]=t[e])})):this.messages[e]=t}f(e,t,a){return this.formater.interpolate(e,t,a).join("")}t(e,t,a){let i=this.message;return"string"==typeof t?(t=Hs(t,this.messages))&&(i=this.messages[t]):a=t,qs(i,e)?this.formater.interpolate(i[e],a).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Js(e,t={},a,i){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():$s),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||$s);const n=new Ws({locale:e,fallbackLocale:a,messages:t,watcher:i});let o=(e,t)=>{if("function"!=typeof getApp)o=function(e,t){return n.t(e,t)};else{let e=!1;o=function(t,a){const i=getApp().$vm;return i&&(i.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(i,n))),n.t(t,a)}}return o(e,t)};return{i18n:n,f:(e,t,a)=>n.f(e,t,a),t:(e,t)=>o(e,t),add:(e,t,a=!0)=>n.add(e,t,a),watch:e=>n.watchLocale(e),getLocale:()=>n.getLocale(),setLocale:e=>n.setLocale(e)}}const Gs={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let Ys;setTimeout((()=>{Ys=uni.getSystemInfoSync().platform}),16);const{t:Ks}=Js(Gs);const Qs=a({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:Ys,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||Ks("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||Ks("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||Ks("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:a[0]||(a[0]=(...e)=>s.onClick&&s.onClick(...e))},[!o.webviewHide&&("circle"===i.iconType||"auto"===i.iconType&&"android"===o.platform)&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4)],4)):!o.webviewHide&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:o.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),i.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:i.color})},e.toDisplayString("more"===i.status?s.contentdownText:"loading"===i.status?s.contentrefreshText:s.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),Zs={name:"uniDataChecklist",mixins:[Ms.mixinDatacom||{}],emits:["input","update:modelValue","change"],props:{mode:{type:String,default:"default"},multiple:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>""},modelValue:{type:[Array,String,Number],default:()=>""},localdata:{type:Array,default:()=>[]},min:{type:[Number,String],default:""},max:{type:[Number,String],default:""},wrap:{type:Boolean,default:!1},icon:{type:String,default:"left"},selectedColor:{type:String,default:""},selectedTextColor:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},disabled:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},watch:{localdata:{handler(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},deep:!0},mixinDatacomResData(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},value(e){this.dataList=this.getDataList(e)},modelValue(e){this.dataList=this.getDataList(e)}},data:()=>({dataList:[],range:[],contentText:{contentdown:"查看更多",contentrefresh:"加载中",contentnomore:"没有更多"},isLocal:!0,styles:{selectedColor:"#2979ff",selectedTextColor:"#666"},isTop:0}),computed:{dataValue(){return""===this.value?this.modelValue:(this.modelValue,this.value)}},created(){this.localdata&&0!==this.localdata.length?(this.isLocal=!0,this.range=this.localdata,this.dataList=this.getDataList(this.getSelectedValue(this.range))):this.collection&&(this.isLocal=!1,this.loadData())},methods:{loadData(){this.mixinDatacomGet().then((e=>{this.mixinDatacomResData=e.result.data,0===this.mixinDatacomResData.length?(this.isLocal=!1,this.mixinDatacomErrorMessage=this.emptyText):this.isLocal=!0})).catch((e=>{this.mixinDatacomErrorMessage=e.message}))},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},chagne(e){const t=e.detail.value;let a={value:[],data:[]};if(this.multiple)this.range.forEach((e=>{t.includes(e[this.map.value]+"")&&(a.value.push(e[this.map.value]),a.data.push(e))}));else{const e=this.range.find((e=>e[this.map.value]+""===t));e&&(a={value:e[this.map.value],data:e})}this.$emit("input",a.value),this.$emit("update:modelValue",a.value),this.$emit("change",{detail:a}),this.multiple?this.dataList=this.getDataList(a.value,!0):this.dataList=this.getDataList(a.value)},getDataList(e){let t=JSON.parse(JSON.stringify(this.range)),a=[];return this.multiple&&(Array.isArray(e)||(e=[])),t.forEach(((t,i)=>{if(t.disabled=t.disable||t.disabled||!1,this.multiple)if(e.length>0){let a=e.find((e=>e===t[this.map.value]));t.selected=void 0!==a}else t.selected=!1;else t.selected=e===t[this.map.value];a.push(t)})),this.setRange(a)},setRange(e){let t=e.filter((e=>e.selected)),a=Number(this.min)||0,i=Number(this.max)||"";return e.forEach(((n,o)=>{if(this.multiple){if(t.length<=a){void 0!==t.find((e=>e[this.map.value]===n[this.map.value]))&&(n.disabled=!0)}if(t.length>=i&&""!==i){void 0===t.find((e=>e[this.map.value]===n[this.map.value]))&&(n.disabled=!0)}}this.setStyles(n,o),e[o]=n})),e},setStyles(e,t){e.styleBackgroud=this.setStyleBackgroud(e),e.styleIcon=this.setStyleIcon(e),e.styleIconText=this.setStyleIconText(e),e.styleRightIcon=this.setStyleRightIcon(e)},getSelectedValue(e){if(!this.multiple)return this.dataValue;let t=[];return e.forEach((e=>{e.selected&&t.push(e[this.map.value])})),this.dataValue.length>0?this.dataValue:t},setStyleBackgroud(e){let t={},a=this.selectedColor?this.selectedColor:"#2979ff";this.selectedColor&&("list"!==this.mode&&(t["border-color"]=e.selected?a:"#DCDFE6"),"tag"===this.mode&&(t["background-color"]=e.selected?a:"#f5f5f5"));let i="";for(let n in t)i+=`${n}:${t[n]};`;return i},setStyleIcon(e){let t={},a="";if(this.selectedColor){let a=this.selectedColor?this.selectedColor:"#2979ff";t["background-color"]=e.selected?a:"#fff",t["border-color"]=e.selected?a:"#DCDFE6",!e.selected&&e.disabled&&(t["background-color"]="#F2F6FC",t["border-color"]=e.selected?a:"#DCDFE6")}for(let i in t)a+=`${i}:${t[i]};`;return a},setStyleIconText(e){let t={},a="";if(this.selectedColor){let a=this.selectedColor?this.selectedColor:"#2979ff";"tag"===this.mode?t.color=e.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":t.color=e.selected?this.selectedTextColor?this.selectedTextColor:a:"#666",!e.selected&&e.disabled&&(t.color="#999")}for(let i in t)a+=`${i}:${t[i]};`;return a},setStyleRightIcon(e){let t={},a="";"list"===this.mode&&(t["border-color"]=e.selected?this.styles.selectedColor:"#DCDFE6");for(let i in t)a+=`${i}:${t[i]};`;return a}}};const Xs=a(Zs,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-load-more"),Qs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-checklist",style:e.normalizeStyle({"margin-top":s.isTop+"px"})},[s.isLocal?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.multiple?(e.openBlock(),e.createElementBlock("checkbox-group",{key:0,class:e.normalizeClass(["checklist-group",{"is-list":"list"===i.mode||i.wrap}]),onChange:a[0]||(a[0]=(...e)=>l.chagne&&l.chagne(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataList,((t,a)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["checklist-box",["is--"+i.mode,t.selected?"is-checked":"",i.disabled||t.disabled?"is-disable":"",0!==a&&"list"===i.mode?"is-list-border":""]]),style:e.normalizeStyle(t.styleBackgroud),key:a},[e.createElementVNode("checkbox",{class:"hidden",hidden:"",disabled:i.disabled||!!t.disabled,value:t[i.map.value]+"",checked:t.selected},null,8,["disabled","value","checked"]),"tag"!==i.mode&&"list"!==i.mode||"list"===i.mode&&"left"===i.icon?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox__inner",style:e.normalizeStyle(t.styleIcon)},[e.createElementVNode("view",{class:"checkbox__inner-icon"})],4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["checklist-content",{"list-content":"list"===i.mode&&"left"===i.icon}])},[e.createElementVNode("text",{class:"checklist-text",style:e.normalizeStyle(t.styleIconText)},e.toDisplayString(t[i.map.text]),5),"list"===i.mode&&"right"===i.icon?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkobx__list",style:e.normalizeStyle(t.styleBackgroud)},null,4)):e.createCommentVNode("",!0)],2)],6)))),128))],34)):(e.openBlock(),e.createElementBlock("radio-group",{key:1,class:e.normalizeClass(["checklist-group",{"is-list":"list"===i.mode,"is-wrap":i.wrap}]),onChange:a[1]||(a[1]=(...e)=>l.chagne&&l.chagne(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataList,((t,a)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["checklist-box",["is--"+i.mode,t.selected?"is-checked":"",i.disabled||t.disabled?"is-disable":"",0!==a&&"list"===i.mode?"is-list-border":""]]),style:e.normalizeStyle(t.styleBackgroud),key:a},[e.createElementVNode("radio",{class:"hidden",hidden:"",disabled:i.disabled||t.disabled,value:t[i.map.value]+"",checked:t.selected},null,8,["disabled","value","checked"]),"tag"!==i.mode&&"list"!==i.mode||"list"===i.mode&&"left"===i.icon?(e.openBlock(),e.createElementBlock("view",{key:0,class:"radio__inner",style:e.normalizeStyle(t.styleBackgroud)},[e.createElementVNode("view",{class:"radio__inner-icon",style:e.normalizeStyle(t.styleIcon)},null,4)],4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["checklist-content",{"list-content":"list"===i.mode&&"left"===i.icon}])},[e.createElementVNode("text",{class:"checklist-text",style:e.normalizeStyle(t.styleIconText)},e.toDisplayString(t[i.map.text]),5),"list"===i.mode&&"right"===i.icon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle(t.styleRightIcon),class:"checkobx__list"},null,4)):e.createCommentVNode("",!0)],2)],6)))),128))],34))],64)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-loading"},[t.mixinDatacomErrorMessage?(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.mixinDatacomErrorMessage),1)):(e.openBlock(),e.createBlock(r,{key:0,status:"loading",iconType:"snow",iconSize:18,"content-text":s.contentText},null,8,["content-text"]))]))],4)}],["__scopeId","data-v-f48e19f2"]]);const el=a({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},lunar:{type:Boolean,default:!1},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":i.weeks.disable,"uni-calendar-item--before-checked-x":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked-x":i.weeks.afterMultiple}]),onClick:a[0]||(a[0]=e=>s.choiceDate(i.weeks)),onMouseenter:a[1]||(a[1]=e=>s.handleMousemove(i.weeks))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&(i.calendar.userChecked||!i.checkHover),"uni-calendar-item--checked-range-text":i.checkHover,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},[i.selected&&i.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},e.toDisplayString(i.weeks.date),1)],2),e.createElementVNode("view",{class:e.normalizeClass({"uni-calendar-item--isDay":i.weeks.isDay})},null,2)],34)}],["__scopeId","data-v-9dae72bb"]]),tl={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select datetime","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:al}=Js(tl),il={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(this.fixIosDateFormat(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(this.fixIosDateFormat(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(this.fixIosDateFormat(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>al("uni-datetime-picker.selectTime"),okText:()=>al("uni-datetime-picker.ok"),clearText:()=>al("uni-datetime-picker.clear"),cancelText:()=>al("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,a){let i=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),a=this.superTimeStamp(a),i=t&&a?ea?new Date(a):new Date(e):t&&!a?t<=e?new Date(e):new Date(t):!t&&a?e<=a?new Date(e):new Date(a):new Date(e),i},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const a=e.split(":");this[t+"Hour"]=Number(a[0]),this[t+"Minute"]=Number(a[1]),this[t+"Second"]=Number(a[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const a=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||a.test(e)||(e+=" 23:59:59");const i=new Date(e);this[t+"Year"]=i.getFullYear(),this[t+"Month"]=i.getMonth()+1,this[t+"Day"]=i.getDate(),"datetime"===this.type&&(this[t+"Hour"]=i.getHours(),this[t+"Minute"]=i.getMinutes(),this[t+"Second"]=i.getSeconds())}},getCurrentRange(e){const t=[];for(let a=this["min"+this.capitalize(e)];a<=this["max"+this.capitalize(e)];a++)t.push(a);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,a){-1===a.indexOf(t)&&(this[e]=a[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),fixIosDateFormat:e=>("string"==typeof e&&(e=e.replace(/-/g,"/")),e),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=this.fixIosDateFormat(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const nl=a(il,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=(...e)=>s.initTimePicker&&s.initTimePicker(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":i.disabled,"uni-datetime-picker-timebox":i.border}])},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(o.time),1),o.time?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker-time"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.selectTimeText),1)]))],2)]),!0)]),o.visible?(e.openBlock(),e.createElementBlock("view",{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:a[1]||(a[1]=(...e)=>s.tiggerTimePicker&&s.tiggerTimePicker(...e))})):e.createCommentVNode("",!0),o.visible?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-datetime-picker-popup",[o.dateShow&&o.timeShow?"":"fix-nvue-height"]]),style:e.normalizeStyle(o.fixNvueBug)},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.selectTimeText),1)]),o.dateShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:"uni-datetime-picker-view","indicator-style":o.indicatorStyle,value:s.ymd,onChange:a[2]||(a[2]=(...e)=>s.bindDateChange&&s.bindDateChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.years,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(s.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.months,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(s.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.days,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(s.lessThanTen(t)),1)])))),128))])],40,["indicator-style","value"]),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-left"},"-"),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-right"},"-")])):e.createCommentVNode("",!0),o.timeShow?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:e.normalizeClass(["uni-datetime-picker-view",[i.hideSecond?"time-hide-second":""]]),"indicator-style":o.indicatorStyle,value:s.hms,onChange:a[3]||(a[3]=(...e)=>s.bindTimeChange&&s.bindTimeChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.hours,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(s.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.minutes,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(s.lessThanTen(t)),1)])))),128))]),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("picker-view-column",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.seconds,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(s.lessThanTen(t)),1)])))),128))]))],42,["indicator-style","value"]),e.createElementVNode("text",{class:e.normalizeClass(["uni-datetime-picker-sign",[i.hideSecond?"sign-center":"sign-left"]])},":",2),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-datetime-picker-sign sign-right"},":"))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-datetime-picker-btn"},[e.createElementVNode("view",{onClick:a[4]||(a[4]=(...e)=>s.clearTime&&s.clearTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(s.clearText),1)]),e.createElementVNode("view",{class:"uni-datetime-picker-btn-group"},[e.createElementVNode("view",{class:"uni-datetime-picker-cancel",onClick:a[5]||(a[5]=(...e)=>s.tiggerTimePicker&&s.tiggerTimePicker(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(s.cancelText),1)]),e.createElementVNode("view",{onClick:a[6]||(a[6]=(...e)=>s.setTime&&s.setTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(s.okText),1)])])])],6)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-6cc35753"]]),{t:ol}=Js(tl),sl={components:{calendarItem:el,timePicker:nl},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},lunar:{type:Boolean,default:!1},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},typeHasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},left:{type:Boolean,default:!0},right:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:"",aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.resetSatrtDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.resetEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:a,fulldate:i,which:n}=e;this.tempRange.before=t,this.tempRange.after=a,setTimeout((()=>{if(i)if(this.cale.setHoverMultiple(i),t&&a){if(this.cale.lastHover=!0,this.rangeWithinMonth(a,t))return;this.setDate(t)}else this.cale.setMultiple(i),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,a),"left"===n?(this.setDate(t),this.weeks=this.cale.weeks):(this.setDate(a),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{reactStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},reactEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>ol("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||ol("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||ol("uni-datetime-picker.endDate")},okText:()=>ol("uni-datetime-picker.ok"),yearText:()=>ol("uni-datetime-picker.year"),monthText:()=>ol("uni-datetime-picker.month"),MONText:()=>ol("uni-calender.MON"),TUEText:()=>ol("uni-calender.TUE"),WEDText:()=>ol("uni-calender.WED"),THUText:()=>ol("uni-calender.THU"),FRIText:()=>ol("uni-calender.FRI"),SATText:()=>ol("uni-calender.SAT"),SUNText:()=>ol("uni-calender.SUN"),confirmText:()=>ol("uni-calender.confirm")},created(){this.cale=new class{constructor({date:e,selected:t,startDate:a,endDate:i,range:n}={}){this.date=this.getDate(new Date),this.selected=t||[],this.startDate=a,this.endDate=i,this.range=n,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){this.selectDate=this.getDate(e),this._getWeek(this.selectDate.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}resetSatrtDate(e){this.startDate=e}resetEndDate(e){this.endDate=e}getDate(e,t=0,a="day"){e||(e=new Date),"object"!=typeof e&&(e=e.replace(/-/g,"/"));const i=new Date(e);switch(a){case"day":i.setDate(i.getDate()+t);break;case"month":if(31===i.getDate()&&t>0)i.setDate(i.getDate()+t);else{const e=i.getMonth();i.setMonth(e+t);const a=i.getMonth();t<0&&0!==e&&a-e>t&&i.setMonth(a+(a-e+t)),t>0&&a-e>t&&i.setMonth(a-(a-e-t))}break;case"year":i.setFullYear(i.getFullYear()+t)}const n=i.getFullYear(),o=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,s=i.getDate()<10?"0"+i.getDate():i.getDate();return{fullDate:n+"-"+o+"-"+s,year:n,month:o,date:s,day:i.getDay()}}_getLastMonthDays(e,t){let a=[];for(let i=e;i>0;i--){const e=new Date(t.year,t.month-1,1-i).getDate();a.push({date:e,month:t.month-1,disable:!0})}return a}_currentMonthDys(e,t){let a=[],i=this.date.fullDate;for(let n=1;n<=e;n++){let e=t.year+"-"+(t.month,t.month+"-")+(n<10?"0"+n:n),o=i===e,s=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t})),l=!0,r=!0;this.startDate&&(l=this.dateCompare(this.startDate,e)),this.endDate&&(r=this.dateCompare(e,this.endDate));let c=this.multipleStatus.data,d=!1,u=-1;this.range&&(c&&(u=c.findIndex((t=>this.dateEqual(t,e)))),-1!==u&&(d=!0));let h={fullDate:e,year:t.year,date:n,multiple:!!this.range&&d,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:!(l&&r),isDay:o,userChecked:!1};s&&(h.extraInfo=s),a.push(h)}return a}_getNextMonthDays(e,t){let a=[];for(let i=1;it.fullDate===this.getDate(e).fullDate))}dateCompare(e,t){return(e=new Date(e.replace("-","/").replace("-","/")))<=new Date(t.replace("-","/").replace("-","/"))}dateEqual(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e.getTime()-t.getTime()==0}isLogicBefore(e,t,a){let i=t;return t&&a&&(i=this.dateCompare(t,a)?t:a),this.dateEqual(i,e)}isLogicAfter(e,t,a){let i=a;return t&&a&&(i=this.dateCompare(t,a)?a:t),this.dateEqual(i,e)}geDateAll(e,t){var a=[],i=e.split("-"),n=t.split("-"),o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);var s=new Date;s.setFullYear(n[0],n[1]-1,n[2]);for(var l=o.getTime()-864e5,r=s.getTime()-864e5,c=l;c<=r;)c+=864e5,a.push(this.getDate(new Date(parseInt(c))).fullDate);return a}setMultiple(e){let{before:t,after:a}=this.multipleStatus;if(this.range){if(t&&a){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.lastHover=!1);this._getWeek(e)}}setHoverMultiple(e){let{before:t,after:a}=this.multipleStatus;this.range&&(this.lastHover||(t?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this._getWeek(e)))}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(this.dateCompare(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this._getWeek(t)):(this.multipleStatus.data=this.geDateAll(t,e),this._getWeek(e)))}_getWeek(e){const{fullDate:t,year:a,month:i,date:n,day:o}=this.getDate(e);let s=new Date(a,i-1,1).getDay(),l=new Date(a,i,0).getDate(),r={lastMonthDays:this._getLastMonthDays(s,this.getDate(e)),currentMonthDys:this._currentMonthDys(l,this.getDate(e)),nextMonthDays:[],weeks:[]},c=[];const d=42-(r.lastMonthDays.length+r.currentMonthDys.length);r.nextMonthDays=this._getNextMonthDays(d,this.getDate(e)),c=c.concat(r.lastMonthDays,r.currentMonthDys,r.nextMonthDays);let u={};for(let h=0;h{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(){this.insert&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){let{year:t,month:a,date:i,fullDate:n,lunar:o,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:a,date:i,time:this.time,timeRange:this.timeRange,fulldate:n,lunar:o,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),a=new Date(this.cale.multipleStatus.after).getTime();t>a&&a?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change()},backtoday(){let e=this.cale.getDate(new Date).fullDate;this.init(e),this.change()},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),pre(){const e=this.cale.getDate(this.nowDate.fullDate,-1,"month").fullDate;this.setDate(e),this.monthSwitch()},next(){const e=this.cale.getDate(this.nowDate.fullDate,1,"month").fullDate;this.setDate(e),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const ll={name:"UniDatetimePicker",options:{virtualHost:!0},components:{calendar:a(sl,[["render",function(t,a,i,n,s,l){const r=e.resolveComponent("calendar-item"),c=e.resolveComponent("time-picker"),d=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar",onMouseleave:a[9]||(a[9]=(...e)=>l.leaveCale&&l.leaveCale(...e))},[!i.insert&&s.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":s.aniMaskShow}]),onClick:a[0]||(a[0]=e=>{l.clean(),l.maskClick()})},null,2)):e.createCommentVNode("",!0),i.insert||s.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!i.insert,"uni-calendar--ani-show":s.aniMaskShow,"uni-calendar__content-mobile":s.aniMaskShow}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!i.insert}])},[i.left?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__header-btn-box",onClick:a[1]||(a[1]=e.withModifiers(((...e)=>l.pre&&l.pre(...e)),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})])):e.createCommentVNode("",!0),e.createElementVNode("picker",{mode:"date",value:i.date,fields:"month",onChange:a[2]||(a[2]=(...e)=>l.bindDateChange&&l.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((s.nowDate.year||"")+l.yearText+(s.nowDate.month||"")+l.monthText),1)],40,["value"]),i.right?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-calendar__header-btn-box",onClick:a[3]||(a[3]=e.withModifiers(((...e)=>l.next&&l.next(...e)),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})])):e.createCommentVNode("",!0),i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"dialog-close",onClick:a[4]||(a[4]=(...e)=>l.clean&&l.clean(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})]))],2),e.createElementVNode("view",{class:"uni-calendar__box"},[i.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(s.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.MONText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(l.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.weeks,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:a},[e.createVNode(r,{class:"uni-calendar-item--hook",weeks:t,calendar:s.calendar,selected:i.selected,lunar:i.lunar,checkHover:i.range,onChange:l.choiceDate,onHandleMouse:l.handleMouse},null,8,["weeks","calendar","selected","lunar","checkHover","onChange","onHandleMouse"])])))),128))])))),128))]),i.insert||i.range||!i.typeHasTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(s.tempSingleDate?s.tempSingleDate:l.selectDateText),1),e.createVNode(c,{type:"time",start:l.reactStartTime,end:l.reactEndTime,modelValue:s.time,"onUpdate:modelValue":a[5]||(a[5]=e=>s.time=e),disabled:!s.tempSingleDate,border:!1,"hide-second":i.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),!i.insert&&i.range&&i.typeHasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-changed uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-date-changed--time-start"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(s.tempRange.before?s.tempRange.before:l.startDateText),1),e.createVNode(c,{type:"time",start:l.reactStartTime,modelValue:s.timeRange.startTime,"onUpdate:modelValue":a[6]||(a[6]=e=>s.timeRange.startTime=e),border:!1,"hide-second":i.hideSecond,disabled:!s.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])]),e.createElementVNode("view",{style:{"line-height":"50px"}},[e.createVNode(d,{type:"arrowthinright",color:"#999"})]),e.createElementVNode("view",{class:"uni-date-changed--time-end"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(s.tempRange.after?s.tempRange.after:l.endDateText),1),e.createVNode(c,{type:"time",end:l.reactEndTime,modelValue:s.timeRange.endTime,"onUpdate:modelValue":a[7]||(a[7]=e=>s.timeRange.endTime=e),border:!1,"hide-second":i.hideSecond,disabled:!s.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])])):e.createCommentVNode("",!0),i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date-changed uni-date-btn--ok"},[e.createElementVNode("view",{class:"uni-datetime-picker--btn",onClick:a[8]||(a[8]=(...e)=>l.confirm&&l.confirm(...e))},e.toDisplayString(l.confirmText),1)]))],2)):e.createCommentVNode("",!0)],32)}],["__scopeId","data-v-6e55eeb0"]]),timePicker:nl},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",caleRange:{startDate:"",startTime:"",endDate:"",endTime:""},range:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,popover:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){if(!e)return;const{defDate:t,defTime:a}=this.parseDate(e);this.caleRange.startDate=t,this.hasTime&&(this.caleRange.startTime=a)}},end:{immediate:!0,handler(e){if(!e)return;const{defDate:t,defTime:a}=this.parseDate(e);this.caleRange.endDate=t,this.hasTime&&(this.caleRange.endTime=a)}}},computed:{reactStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.caleRange.startDate?this.caleRange.startTime:""},reactEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.caleRange.endDate?this.caleRange.endTime:""},reactMobDefTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.caleRange.startTime,end:this.caleRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.range.startDate&&this.range.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=Js(tl);this.i18nT=e.t},initPicker(e){if(!e||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,a]=e;if(!t&&!a)return;const i=this.parseDate(t),n=this.parseDate(a),o=i.defDate,s=n.defDate;this.range.startDate=this.tempRange.startDate=o,this.range.endDate=this.tempRange.endDate=s,this.hasTime&&(this.range.startDate=i.defDate+" "+i.defTime,this.range.endDate=n.defDate+" "+n.defTime,this.tempRange.startTime=i.defTime,this.tempRange.endTime=n.defTime);const l={before:i.defDate,after:n.defDate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,l,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,l,{which:"left"})}else{const{defDate:t,defTime:a}=this.parseDate(e);this.displayValue=t,this.inputDate=t,this.calendarDate=t,this.hasTime&&(this.displayValue=t+" "+a,this.pickerTime=a)}},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){const{windowWidth:e}=uni.getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.disabled)return;if(this.platform(),this.isPhone)return void this.$refs.mobile.open();this.popover={top:"10px"};uni.createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.range;e&&t?this.diffDate(e,t)<30&&this.$refs.right.next():(this.$refs.right.next(),this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("change",e),this.$emit("input",e),this.$emit("update:modelValue",e),this.isEmitValue=!0},createTimestamp(e){return e=this.fixIosDateFormat(e),Date.parse(new Date(e))},singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!this.inputDate)return void(this.pickerVisible=!1);this.checkDate(this.inputDate)||(this.inputDate=this.getDate(Date.now()));let e,t,a=!1;if(this.start){let i=this.start;"number"==typeof this.start&&(i=this.getDateTime(this.start)),[e,t]=i.split(" "),this.start&&!this.dateCompare(e,this.inputDate)&&(a=!0,this.inputDate=e)}let i,n,o=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=this.getDateTime(this.end)),[i,n]=e.split(" "),this.end&&!this.dateCompare(this.inputDate,i)&&(o=!0,this.inputDate=i)}this.hasTime?(a&&(this.pickerTime=t||this.getDefaultSecond()),o&&(this.pickerTime=n||this.getDefaultSecond()),this.pickerTime||(this.pickerTime=this.getTime(Date.now())),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:a}=e.range;this.rangeChange(t,a);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i)},rightChange(e){const{before:t,after:a}=e.range;this.rangeChange(t,a);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i)},mobileChange(e){if(this.isRange){const{before:t,after:a}=e.range;if(!t||!a)return;if(this.handleStartAndEnd(t,a,!0),this.hasTime){const{startTime:t,endTime:a}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=a}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;this.checkDate(this.tempRange.startDate)||(this.tempRange.startDate=this.getDate(Date.now())),this.checkDate(this.tempRange.endDate)||(this.tempRange.endDate=this.getDate(Date.now()));let a,i,n=!1,o=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=this.getDateTime(this.start)),[a,i]=e.split(" "),this.start&&!this.dateCompare(this.start,this.tempRange.startDate)&&(n=!0,this.tempRange.startDate=a),this.start&&!this.dateCompare(this.start,this.tempRange.endDate)&&(o=!0,this.tempRange.endDate=a)}let s,l,r=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=this.getDateTime(this.end)),[s,l]=e.split(" "),this.end&&!this.dateCompare(this.tempRange.startDate,this.end)&&(r=!0,this.tempRange.startDate=s),this.end&&!this.dateCompare(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=s)}this.hasTime?(n?this.tempRange.startTime=i||this.getDefaultSecond():r&&(this.tempRange.startTime=l||this.getDefaultSecond()),this.tempRange.startTime||(this.tempRange.startTime=this.getTime(Date.now())),o?this.tempRange.endTime=i||this.getDefaultSecond():c&&(this.tempRange.endTime=l||this.getDefaultSecond()),this.tempRange.endTime||(this.tempRange.endTime=this.getTime(Date.now())),e=this.range.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.range.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.range.startDate=this.tempRange.startDate,t=this.range.endDate=this.tempRange.endDate),this.dateCompare(e,t)||([e,t]=[t,e]),this.range.startDate=e,this.range.endDate=t;const d=[e,t];this.setEmit(d),this.pickerVisible=!1},handleStartAndEnd(e,t,a=!1){if(!e||!t)return;const i=a?"tempRange":"range",n=this.dateCompare(e,t);this[i].startDate=n?e:t,this[i].endDate=n?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const a=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(a)},clear(e=!0){this.isRange?(this.range.startDate="",this.range.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.next()),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},parseDate(e){e=this.fixIosDateFormat(e);const t=new Date(e),a=t.getFullYear(),i=t.getMonth()+1,n=t.getDate(),o=t.getHours(),s=t.getMinutes(),l=t.getSeconds();return{defDate:a+"-"+this.lessTen(i)+"-"+this.lessTen(n),defTime:this.lessTen(o)+":"+this.lessTen(s)+(this.hideSecond?"":":"+this.lessTen(l))}},lessTen:e=>e<10?"0"+e:e,fixIosDateFormat:e=>("string"==typeof e&&(e=e.replace(/-/g,"/")),e),checkDate:e=>e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g),getDateTime(e){return`${this.getDate(e)} ${this.getTime(e)}`},getDate(e){const t=(e=new Date(e)).getFullYear(),a=e.getMonth()+1,i=e.getDate();return`${t}-${this.addZero(a)}-${this.addZero(i)}`},getTime(e){const t=(e=new Date(e)).getHours(),a=e.getMinutes(),i=e.getSeconds();return this.hideSecond?`${this.addZero(t)}:${this.addZero(a)}`:`${this.addZero(t)}:${this.addZero(a)}:${this.addZero(i)}`},addZero:e=>(e<10&&(e=`0${e}`),e),getDefaultSecond(){return this.hideSecond?"00:00":"00:00:00"}}};const rl=a(ll,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f),c=e.resolveComponent("time-picker"),d=e.resolveComponent("calendar");return e.openBlock(),e.createElementBlock("view",{class:"uni-date"},[e.createElementVNode("view",{class:"uni-date-editor",onClick:a[4]||(a[4]=(...e)=>l.show&&l.show(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":i.disabled,"uni-date-x--border":i.border}])},[s.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-x uni-date-range"},[e.createVNode(r,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.withDirectives(e.createElementVNode("input",{class:"uni-date__x-input t-c",type:"text","onUpdate:modelValue":a[1]||(a[1]=e=>s.range.startDate=e),placeholder:l.startPlaceholderText,disabled:!0},null,8,["placeholder"]),[[e.vModelText,s.range.startDate]]),e.createElementVNode("view",{class:"range-separator"},e.toDisplayString(i.rangeSeparator),1),e.withDirectives(e.createElementVNode("input",{class:"uni-date__x-input t-c",type:"text","onUpdate:modelValue":a[2]||(a[2]=e=>s.range.endDate=e),placeholder:l.endPlaceholderText,disabled:!0},null,8,["placeholder"]),[[e.vModelText,s.range.endDate]])])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-x uni-date-single"},[e.createVNode(r,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.withDirectives(e.createElementVNode("input",{class:"uni-date__x-input",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>s.displayValue=e),placeholder:l.singlePlaceholderText,disabled:!0},null,8,["placeholder"]),[[e.vModelText,s.displayValue]])])),l.showClearIcon?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date__icon-clear",onClick:a[3]||(a[3]=e.withModifiers(((...e)=>l.clear&&l.clear(...e)),["stop"]))},[e.createVNode(r,{type:"clear",color:"#c0c4cc",size:"22"})])):e.createCommentVNode("",!0)],2)]),!0)]),e.withDirectives(e.createElementVNode("view",{class:"uni-date-mask--pc",onClick:a[5]||(a[5]=(...e)=>l.close&&l.close(...e))},null,512),[[e.vShow,s.pickerVisible]]),s.isPhone?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,ref:"datePicker",class:"uni-date-picker__container"},[s.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-range--x",style:e.normalizeStyle(s.popover)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),s.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-x-header uni-date-changed"},[e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":a[10]||(a[10]=e=>s.tempRange.startDate=e),placeholder:l.startDateText},null,8,["placeholder"]),[[e.vModelText,s.tempRange.startDate]]),e.createVNode(c,{type:"time",modelValue:s.tempRange.startTime,"onUpdate:modelValue":a[12]||(a[12]=e=>s.tempRange.startTime=e),start:l.reactStartTime,border:!1,disabled:!s.tempRange.startDate,hideSecond:i.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":a[11]||(a[11]=e=>s.tempRange.startTime=e),placeholder:l.startTimeText,disabled:!s.tempRange.startDate},null,8,["placeholder","disabled"]),[[e.vModelText,s.tempRange.startTime]])])),_:1},8,["modelValue","start","disabled","hideSecond"])]),e.createVNode(r,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":a[13]||(a[13]=e=>s.tempRange.endDate=e),placeholder:l.endDateText},null,8,["placeholder"]),[[e.vModelText,s.tempRange.endDate]]),e.createVNode(c,{type:"time",modelValue:s.tempRange.endTime,"onUpdate:modelValue":a[15]||(a[15]=e=>s.tempRange.endTime=e),end:l.reactEndTime,border:!1,disabled:!s.tempRange.endDate,hideSecond:i.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":a[14]||(a[14]=e=>s.tempRange.endTime=e),placeholder:l.endTimeText,disabled:!s.tempRange.endDate},null,8,["placeholder","disabled"]),[[e.vModelText,s.tempRange.endTime]])])),_:1},8,["modelValue","end","disabled","hideSecond"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"popup-x-body"},[e.createVNode(d,{ref:"left",showMonth:!1,"start-date":s.caleRange.startDate,"end-date":s.caleRange.endDate,range:!0,onChange:l.leftChange,pleStatus:s.endMultipleStatus,onFirstEnterCale:l.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"]),e.createVNode(d,{ref:"right",showMonth:!1,"start-date":s.caleRange.startDate,"end-date":s.caleRange.endDate,range:!0,onChange:l.rightChange,pleStatus:s.startMultipleStatus,onFirstEnterCale:l.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])]),s.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"",onClick:a[16]||(a[16]=(...e)=>l.clear&&l.clear(...e))},e.toDisplayString(l.clearText),1),e.createElementVNode("text",{class:"confirm",onClick:a[17]||(a[17]=(...e)=>l.confirmRangeChange&&l.confirmRangeChange(...e))},e.toDisplayString(l.okText),1)])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-single--x",style:e.normalizeStyle(s.popover)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),s.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed popup-x-header"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input t-c",type:"text","onUpdate:modelValue":a[6]||(a[6]=e=>s.inputDate=e),placeholder:l.selectDateText},null,8,["placeholder"]),[[e.vModelText,s.inputDate]]),e.createVNode(c,{type:"time",modelValue:s.pickerTime,"onUpdate:modelValue":a[8]||(a[8]=e=>s.pickerTime=e),border:!1,disabled:!s.inputDate,start:l.reactStartTime,end:l.reactEndTime,hideSecond:i.hideSecond,style:{width:"100%"}},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input t-c",type:"text","onUpdate:modelValue":a[7]||(a[7]=e=>s.pickerTime=e),placeholder:l.selectTimeText,disabled:!s.inputDate},null,8,["placeholder","disabled"]),[[e.vModelText,s.pickerTime]])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])):e.createCommentVNode("",!0),e.createVNode(d,{ref:"pcSingle",showMonth:!1,"start-date":s.caleRange.startDate,"end-date":s.caleRange.endDate,date:s.calendarDate,onChange:l.singleChange,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange"]),s.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"confirm",onClick:a[9]||(a[9]=(...e)=>l.confirmSingleChange&&l.confirmSingleChange(...e))},e.toDisplayString(l.okText),1)])):e.createCommentVNode("",!0)],4))],512)),[[e.vShow,s.pickerVisible]]),s.isPhone?(e.openBlock(),e.createBlock(d,{key:1,ref:"mobile",clearDate:!1,date:s.calendarDate,defTime:l.reactMobDefTime,"start-date":s.caleRange.startDate,"end-date":s.caleRange.endDate,selectableTimes:l.mobSelectableTime,startPlaceholder:i.startPlaceholder,endPlaceholder:i.endPlaceholder,pleStatus:s.endMultipleStatus,showMonth:!1,range:s.isRange,typeHasTime:s.hasTime,insert:!1,hideSecond:i.hideSecond,onConfirm:l.mobileChange,onMaskClose:l.close},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","pleStatus","range","typeHasTime","hideSecond","onConfirm","onMaskClose"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-2077820f"]]),cl={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocaldata(){return!this.collection.length},postField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let a=2;a{this.loading=!1,this.selected=t.result.data,e&&e()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},getTreePath(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((t=>{this.loading=!1;let a=[];this._extractTreePath(t.result.data,a),this.selected=a,e&&e()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},loadData(){this.isLocaldata?this._processLocalData():null==this.dataValue?this.stepSearh?this._loadNodeData((e=>{this._treeData=e,this._updateBindData()})):this._loadAllData((e=>{this._treeData=[],this._extractTree(e,this._treeData,null),this._updateBindData()})):this._loadNodeData((e=>{this._treeData=e,this._updateBindData(),this._updateSelected()}))},_loadAllData(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,gettree:!0,startwith:`${this.selfField}=='${this.dataValue}'`}).then((t=>{this.loading=!1,e(t.result.data),this.onDataChange()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},_loadNodeData(e,t){this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:t||this._postWhere(),pageSize:500}).then((t=>{this.loading=!1,e(t.result.data),this.onDataChange()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},_pathWhere(){let e=[],t=this._getParentNameByField();return t&&e.push(`${t} == '${this.dataValue}'`),this.where?`(${this.where}) && (${e.join(" || ")})`:e.join(" || ")},_postWhere(){let e=[],t=this.selected,a=this.parentField;if(a&&e.push(`${a} == null || ${a} == ""`),t.length)for(var i=0;inull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let s=0;se.parent_value===n));o.length?a.push(o):i=!1}return{dataList:a,hasNodes:i}},_extractTree(e,t,a){let i=this.map.value;for(let n=0;n({}),created(){this.managedMode||this.$nextTick((()=>{this.load()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.isLocaldata?this.loadData():this.dataValue.length&&this.getTreePath((e=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,a){if(e.disable)return;const i=this.dataList[t][a],n=i[this.map.text],o=i[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(i)):i.isleaf=!0,this.onSelectedChange(i,i.isleaf)}),this._nodeWhere()):this.onSelectedChange(i,!0)},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-load-more"),Qs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-pickerview"},[e.createElementVNode("scroll-view",{class:"selected-area","scroll-x":"true","scroll-y":"false","show-scrollbar":!1},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,((a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.text?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["selected-item",{"selected-item-active":n==t.selectedIndex,"selected-item-text-overflow":i.ellipsis}]),onClick:e=>l.handleSelect(n)},[e.createElementVNode("text",{class:""},e.toDisplayString(a.text),1)],10,["onClick"])):e.createCommentVNode("",!0)],64)))),256))])]),e.createElementVNode("view",{class:"tab-c"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList,((a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i==t.selectedIndex?(e.openBlock(),e.createElementBlock("scroll-view",{class:"list",key:i,"scroll-y":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{"is-disabled":!!a.disable}]),onClick:e=>l.handleNodeClick(a,i,n)},[e.createElementVNode("text",{class:"item-text item-text-overflow"},e.toDisplayString(a[t.map.text]),1),t.selected.length>i&&a[t.map.value]==t.selected[i].value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"check"})):e.createCommentVNode("",!0)],10,["onClick"])))),256))])):e.createCommentVNode("",!0)],64)))),256)),t.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-cover"},[e.createVNode(r,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-message"},[e.createElementVNode("text",{class:"error-text"},e.toDisplayString(t.errorMessage),1)])):e.createCommentVNode("",!0)])])}],["__scopeId","data-v-f4fa1c50"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this)),this.$nextTick((()=>{this.load()}))},methods:{clear(){this.inputSelected.splice(0),this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocaldata?(this.loadData(),this.inputSelected=this.selected.slice(0)):this.parentField||this.selfField||!this.hasValue?this.hasValue&&this.getTreePath((()=>{this.inputSelected=this.selected.slice(0)})):this.getNodeData((()=>{this.inputSelected=this.selected.slice(0)}))},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly||this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let a=[];for(let o=0;oe.value==i));n&&a.push(n)}a.length&&(this.inputSelected=a)},_filterForArray(e,t){var a=[];for(let o=0;oe.value==i));n&&a.push(n)}return a},_dispatchEvent(e){let t={};if(e.length){for(var a=new Array(e.length),i=0;il.handleInput&&l.handleInput(...e))},[e.renderSlot(t.$slots,"default",{options:i.options,data:s.inputSelected,error:t.errorMessage},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["input-value",{"input-value-border":i.border}])},[t.errorMessage?(e.openBlock(),e.createElementBlock("text",{key:0,class:"selected-area error-text"},e.toDisplayString(t.errorMessage),1)):t.loading&&!s.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-area"},[e.createVNode(r,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):s.inputSelected.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:2,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.inputSelected,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"selected-item",key:a},[e.createElementVNode("text",{class:"text-color"},e.toDisplayString(t.text),1),al.clear&&l.clear(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):e.createCommentVNode("",!0),i.clearIcon&&s.inputSelected.length||i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:"arrow-area"},[e.createElementVNode("view",{class:"input-arrow"})]))],2)]),!0)]),s.isOpened?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-tree-cover",onClick:a[2]||(a[2]=(...e)=>l.handleClose&&l.handleClose(...e))})):e.createCommentVNode("",!0),s.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-data-tree-dialog"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("view",{class:"dialog-caption"},[e.createElementVNode("view",{class:"title-area"},[e.createElementVNode("text",{class:"dialog-title"},e.toDisplayString(i.popupTitle),1)]),e.createElementVNode("view",{class:"dialog-close",onClick:a[3]||(a[3]=(...e)=>l.handleClose&&l.handleClose(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),e.createVNode(d,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":a[4]||(a[4]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:i.ellipsis,onChange:l.onchange,onDatachange:l.ondatachange,onNodeclick:l.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-3d083ba0"]]);const hl=a({name:"uni-stat-select",mixins:[Ms.mixinDatacom||{}],data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[]}),props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""}},created(){this.last=`${this.collection}_last_selected_option_value`,this.collection&&!this.localdata.length&&this.query()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},modelValue(){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.query()},initDefVal(){let e="";if(!this.value&&0!==this.value||this.isDisabled(this.value))if(!this.modelValue&&0!==this.modelValue||this.isDisabled(this.modelValue)){let t;if(this.collection&&(t=uni.getStorageSync(this.last)),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.modelValue;else e=this.value;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&uni.removeStorageSync(this.last)},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("change",e),this.$emit("input",e),this.$emit("update:modelValue",e),this.collection&&uni.setStorageSync(this.last,e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:i}=e;if(i=i?`(${i})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${i}`}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-stat__select"},[i.label?(e.openBlock(),e.createElementBlock("span",{key:0,class:"uni-label-text hide-on-phone"},e.toDisplayString(i.label+":"),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-stat-box",{"uni-stat__actived":s.current}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-select",{"uni-select--disabled":i.disabled}])},[e.createElementVNode("view",{class:"uni-select__input-box",onClick:a[0]||(a[0]=(...e)=>l.toggleSelector&&l.toggleSelector(...e))},[s.current?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select__input-text"},e.toDisplayString(s.current),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-select__input-text uni-select__input-placeholder"},e.toDisplayString(l.typePlaceholder),1)),s.current&&i.clear?(e.openBlock(),e.createBlock(r,{key:2,type:"clear",color:"#c0c4cc",size:"24",onClick:l.clearVal},null,8,["onClick"])):(e.openBlock(),e.createBlock(r,{key:3,type:s.showSelector?"top":"bottom",size:"14",color:"#999"},null,8,["type"]))]),s.showSelector?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select--mask",onClick:a[1]||(a[1]=(...e)=>l.toggleSelector&&l.toggleSelector(...e))})):e.createCommentVNode("",!0),s.showSelector?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-select__selector"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"uni-select__selector-scroll"},[0===s.mixinDatacomResData.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select__selector-empty"},[e.createElementVNode("text",null,e.toDisplayString(i.emptyTips),1)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(s.mixinDatacomResData,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-select__selector-item",key:a,onClick:e=>l.change(t)},[e.createElementVNode("text",{class:e.normalizeClass({"uni-select__selector__disabled":t.disable})},e.toDisplayString(l.formatItemName(t)),3)],8,["onClick"])))),128))])])):e.createCommentVNode("",!0)],2)],2)])}],["__scopeId","data-v-5d6768e2"]]);var pl={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const ml={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function gl(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let a=t;for(let i in e){let t=new RegExp("{"+i+"}");a=a.replace(t,e[i])}return a}const fl={integer:e=>fl.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return fl.number(e)&&!fl.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!fl.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(pl.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(pl.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(dn){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(pl.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const yl={required:(e,t,a)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?gl(e,e.errorMessage||a.required):null,range(e,t,a){const{range:i,errorMessage:n}=e;let o=new Array(i.length);for(let l=0;l-1&&(s=!0),s?null:gl(e,n||a.enum)},rangeNumber(e,t,a){if(!fl.number(t))return gl(e,e.errorMessage||a.pattern.mismatch);let{minimum:i,maximum:n,exclusiveMinimum:o,exclusiveMaximum:s}=e,l=o?t<=i:t=n:t>n;return void 0!==i&&l?gl(e,e.errorMessage||a.number[o?"exclusiveMinimum":"minimum"]):void 0!==n&&r?gl(e,e.errorMessage||a.number[s?"exclusiveMaximum":"maximum"]):void 0!==i&&void 0!==n&&(l||r)?gl(e,e.errorMessage||a.number.range):null},rangeLength(e,t,a){if(!fl.string(t)&&!fl.array(t))return gl(e,e.errorMessage||a.pattern.mismatch);let i=e.minLength,n=e.maxLength,o=t.length;return void 0!==i&&on?gl(e,e.errorMessage||a.length.maxLength):void 0!==i&&void 0!==n&&(on)?gl(e,e.errorMessage||a.length.range):null},pattern:(e,t,a)=>fl.pattern(e.pattern,t)?null:gl(e,e.errorMessage||a.pattern.mismatch),format(e,t,a){var i=Object.keys(fl),n=ml[e.format]?ml[e.format]:e.format||e.arrayType;return i.indexOf(n)>-1&&!fl[n](t)?gl(e,e.errorMessage||a.typeError):null},arrayTypeFormat(e,t,a){if(!Array.isArray(t))return gl(e,e.errorMessage||a.typeError);for(let i=0;ie.required))<0){if(null==a)return o;if("string"==typeof a&&!a.length)return o}var l=this._message;if(void 0===s)return l.default;for(var r=0;r{s=e}));(s||"string"==typeof l&&l||!1===l)&&(o=this._getMessage(e,s||l,n))}catch(dn){o=this._getMessage(e,dn.message,n)}return o}_getMessage(e,t,a){return gl(e,t||e.errorMessage||this._message[a]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}{constructor(e,t){super(vl.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!1,t)),a.length?a[0]:null}async validateAll(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!0,t)),a}async validateUpdate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidateUpdate(e,!1,t)),a.length?a[0]:null}async invokeValidate(e,t,a){let i=[],n=this._schema;for(let o in n){let s=n[o],l=await this.validateRule(o,s,e[o],e,a);if(null!=l&&(i.push({key:o,errorMessage:l}),!t))break}return i}async invokeValidateUpdate(e,t,a){let i=[];for(let n in e){let o=await this.validateRule(n,this._schema[n],e[n],e,a);if(null!=o&&(i.push({key:n,errorMessage:o}),!t))break}return i}_checkFieldInSchema(e){var t=Object.keys(e),a=Object.keys(this._schema);if(new Set(t.concat(a)).size===a.length)return"";var i=t.filter((e=>a.indexOf(e)<0));return[{key:"invalid",errorMessage:gl({field:JSON.stringify(i)},vl.message.TAG+vl.message.defaultInvalid)}]}}vl.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const bl=(e,t,a)=>{const i=a.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),n=a.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return i&&(t=t||0===t?El(Number(t))?Number(t):t:null),n&&(t=!!Cl(t)&&t),t},wl=(e,t)=>_l(t,e),kl=(e,t={})=>{const a=Nl(e);if("object"==typeof a&&Array.isArray(a)&&a.length>1){return a.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return a[0]||e},xl=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>El(e)?Number(e):e)),t},Vl=(e,t,a)=>("object"!=typeof e||Nl(t).reduce(((e,t,i,n)=>i===n.length-1?(e[t]=a,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(n[i+1])?[]:{}),e[t])),e),e);function Nl(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const _l=(e,t,a="undefined")=>{let i=Nl(t).reduce(((e,t)=>(e||{})[t]),e);return i&&void 0===i?a:i},El=e=>!isNaN(Number(e)),Cl=e=>"boolean"==typeof e;const Sl=a({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){getApp().$vm.$.appContext.config.globalProperties.binddata||(getApp().$vm.$.appContext.config.globalProperties.binddata=function(e,t,a){if(a)this.$refs[a].setValue(e,t);else{let a;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){a=t;break}}if(!a)return n("error","at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:182","当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new vl(e)},setValue(e,t){let a=this.childrens.find((t=>t.name===e));return a?(this.formData[e]=bl(0,t,this.formRules[e]&&this.formRules[e].rules||[]),a.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let a={};return this.childrens.forEach((t=>{const i=kl(t.name);-1!==e.indexOf(i)&&(a=Object.assign({},a,{[i]:this.formData[i]}))})),this.checkAll(a,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const a=kl(t.name);-1!==e.indexOf(a)&&(t.errMsg="")}}))},submit(e,t,a){for(let i in this.dataValue){this.childrens.find((e=>e.name===i))&&void 0===this.formData[i]&&(this.formData[i]=this._getValue(i,this.dataValue[i]))}return a||n("warn","at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:289","submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,a,i){if(!this.validator)return;let n,o=[];for(let c in e){const e=this.childrens.find((e=>kl(e.name)===c));e&&o.push(e)}a||"function"!=typeof t||(a=t),!a&&"function"!=typeof a&&Promise&&(n=new Promise(((e,t)=>{a=function(a,i){a?t(a):e(i)}})));let s=[],l=JSON.parse(JSON.stringify(e));for(let c in o){const e=o[c];let t=kl(e.name);const a=await e.onFieldChange(l[t]);if(a&&(s.push(a),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(s)&&0===s.length&&(s=null),Array.isArray(t)&&t.forEach((e=>{let t=kl(e),a=wl(e,this.localData);void 0!==a&&(l[t]=a)})),"submit"===i?this.$emit("submit",{detail:{value:l,errors:s}}):this.$emit("validate",s);let r={};return r=((e={},t)=>{let a=JSON.parse(JSON.stringify(e)),i={};for(let n in a){let e=xl(n);Vl(i,e,a[n])}return i})(l,this.name),a&&"function"==typeof a&&a(s,r),n&&a?n:null},validateCheck(e){this.$emit("validate",e)},_getValue:bl,_isRequiredField:e=>{let t=!1;for(let a=0;a(t[e]=a,a||""),_getDataValue:wl,_realName:kl,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==a){var i=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(i.length!=n.length)return!1;for(var o=0;os.onClick&&s.onClick(...e))},[i.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-section-header__decoration",i.type])},null,2)):e.renderSlot(t.$slots,"decoration",{key:1},void 0,!0),e.createElementVNode("view",{class:"uni-section-header__content"},[e.createElementVNode("text",{style:e.normalizeStyle({"font-size":i.titleFontSize,color:i.titleColor}),class:e.normalizeClass(["uni-section__content-title",{distraction:!i.subTitle}])},e.toDisplayString(i.title),7),i.subTitle?(e.openBlock(),e.createElementBlock("text",{key:0,style:e.normalizeStyle({"font-size":i.subTitleFontSize,color:i.subTitleColor}),class:"uni-section-header__content-sub"},e.toDisplayString(i.subTitle),5)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"uni-section-header__slot-right"},[e.renderSlot(t.$slots,"right",{},void 0,!0)])]),e.createElementVNode("view",{class:"uni-section-content",style:e.normalizeStyle({padding:s._padding})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4)])}],["__scopeId","data-v-0a8818d5"]]);const Dl=a({name:"UniSegmentedControl",emits:["clickItem"],props:{current:{type:Number,default:0},values:{type:Array,default:()=>[]},activeColor:{type:String,default:"#2979FF"},styleType:{type:String,default:"button"}},data:()=>({currentIndex:0}),watch:{current(e){e!==this.currentIndex&&(this.currentIndex=e)}},created(){this.currentIndex=this.current},methods:{_onClick(e){this.currentIndex!==e&&(this.currentIndex=e,this.$emit("clickItem",{currentIndex:e}))}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([["text"===i.styleType?"segmented-control--text":"segmented-control--button"],"segmented-control"]),style:e.normalizeStyle({borderColor:"text"===i.styleType?"":i.activeColor})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.values,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([["text"===i.styleType?"":"segmented-control__item--button",a===o.currentIndex&&"button"===i.styleType?"segmented-control__item--button--active":"",0===a&&"button"===i.styleType?"segmented-control__item--button--first":"",a===i.values.length-1&&"button"===i.styleType?"segmented-control__item--button--last":""],"segmented-control__item"]),key:a,style:e.normalizeStyle({backgroundColor:a===o.currentIndex&&"button"===i.styleType?i.activeColor:"",borderColor:a===o.currentIndex&&"text"===i.styleType||"button"===i.styleType?i.activeColor:"transparent"}),onClick:e=>s._onClick(a)},[e.createElementVNode("view",null,[e.createElementVNode("text",{style:e.normalizeStyle({color:a===o.currentIndex?"text"===i.styleType?i.activeColor:"#fff":"text"===i.styleType?"#000":i.activeColor}),class:e.normalizeClass(["segmented-control__text","text"===i.styleType&&a===o.currentIndex?"segmented-control__item--text":""])},e.toDisplayString(t),7)])],14,["onClick"])))),128))],6)}],["__scopeId","data-v-e6131c9b"]]),Bl={data:()=>({baseFormData:{name:"",age:"",introduction:"",sex:2,hobby:[5],datetimesingle:1627529992399,city:"",skills:0},cityData:[{text:"北京",value:"10001"},{text:"上海",value:"10002"},{text:"深圳",value:"10004"}],skillsRange:[{value:0,text:"编程"},{value:1,text:"绘画"},{value:2,text:"运动"}],alignmentFormData:{name:"",age:""},sexs:[{text:"男",value:0},{text:"女",value:1},{text:"保密",value:2}],hobbys:[{text:"跑步",value:0},{text:"游泳",value:1},{text:"绘画",value:2},{text:"足球",value:3},{text:"篮球",value:4},{text:"其他",value:5}],current:0,items:["左对齐","顶部对齐"],valiFormData:{name:"",age:"",introduction:""},rules:{name:{rules:[{required:!0,errorMessage:"姓名不能为空"}]},age:{rules:[{required:!0,errorMessage:"年龄不能为空"},{format:"number",errorMessage:"年龄只能输入数字"}]}},customFormData:{name:"",age:"",hobby:[]},customRules:{name:{rules:[{required:!0,errorMessage:"姓名不能为空"}]},age:{rules:[{required:!0,errorMessage:"年龄不能为空"}]},hobby:{rules:[{format:"array"},{validateFunction:function(e,t,a,i){return t.length<2&&i("请至少勾选两个兴趣爱好"),!0}}]}},dynamicFormData:{email:"",domains:[]},dynamicLists:[],dynamicRules:{email:{rules:[{required:!0,errorMessage:"域名不能为空"},{format:"email",errorMessage:"域名格式错误"}]}}}),computed:{alignment(){return 0===this.current?"left":1===this.current?"top":"left"}},onLoad(){},onReady(){this.$refs.customForm.setRules(this.customRules)},methods:{onClickItem(e){n("log","at pages/extUI/forms/forms.vue:293",e),this.current=e.currentIndex},add(){this.dynamicFormData.domains.push({label:"域名",value:"",rules:[{required:!0,errorMessage:"域名项必填"}],id:Date.now()})},del(e){let t=this.dynamicLists.findIndex((t=>t.id===e));this.dynamicLists.splice(t,1)},submit(e){n("log","at pages/extUI/forms/forms.vue:312",this.baseFormData),this.$refs[e].validate().then((e=>{n("log","at pages/extUI/forms/forms.vue:314","success",e),uni.showToast({title:"校验通过"})})).catch((e=>{n("log","at pages/extUI/forms/forms.vue:319","err",e)}))}}};const Il=a(Bl,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-easyinput"),Xa),d=o(e.resolveDynamicComponent("uni-forms-item"),ei),u=o(e.resolveDynamicComponent("uni-data-checkbox"),Xs),h=o(e.resolveDynamicComponent("uni-datetime-picker"),rl),p=o(e.resolveDynamicComponent("uni-data-picker"),ul),m=o(e.resolveDynamicComponent("uni-data-select"),hl),g=o(e.resolveDynamicComponent("uni-forms"),Sl),f=o(e.resolveDynamicComponent("uni-section"),Tl),y=o(e.resolveDynamicComponent("uni-segmented-control"),Dl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"uni-forms 组件一般由输入框、选择器、单选框、多选框等控件组成,用以收集、校验、提交数据。")])),_:1}),e.createVNode(f,{title:"基本用法",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example"},[e.createVNode(g,{ref:"baseForm",model:s.baseFormData,labelWidth:"80px"},{default:e.withCtx((()=>[e.createVNode(d,{label:"姓名",required:""},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.baseFormData.name,"onUpdate:modelValue":a[0]||(a[0]=e=>s.baseFormData.name=e),placeholder:"请输入姓名"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"年龄",required:""},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.baseFormData.age,"onUpdate:modelValue":a[1]||(a[1]=e=>s.baseFormData.age=e),placeholder:"请输入年龄"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"性别",required:""},{default:e.withCtx((()=>[e.createVNode(u,{modelValue:s.baseFormData.sex,"onUpdate:modelValue":a[2]||(a[2]=e=>s.baseFormData.sex=e),localdata:s.sexs},null,8,["modelValue","localdata"])])),_:1}),e.createVNode(d,{label:"兴趣爱好",required:""},{default:e.withCtx((()=>[e.createVNode(u,{modelValue:s.baseFormData.hobby,"onUpdate:modelValue":a[3]||(a[3]=e=>s.baseFormData.hobby=e),multiple:"",localdata:s.hobbys},null,8,["modelValue","localdata"])])),_:1}),e.createVNode(d,{label:"自我介绍"},{default:e.withCtx((()=>[e.createVNode(c,{type:"textarea",modelValue:s.baseFormData.introduction,"onUpdate:modelValue":a[4]||(a[4]=e=>s.baseFormData.introduction=e),placeholder:"请输入自我介绍"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"日期时间"},{default:e.withCtx((()=>[e.createVNode(h,{type:"datetime","return-type":"timestamp",modelValue:s.baseFormData.datetimesingle,"onUpdate:modelValue":a[5]||(a[5]=e=>s.baseFormData.datetimesingle=e)},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"选择城市"},{default:e.withCtx((()=>[e.createVNode(p,{modelValue:s.baseFormData.city,"onUpdate:modelValue":a[6]||(a[6]=e=>s.baseFormData.city=e),localdata:s.cityData,"popup-title":"选择城市"},null,8,["modelValue","localdata"])])),_:1}),e.createVNode(d,{label:"选择技能"},{default:e.withCtx((()=>[e.createVNode(m,{modelValue:s.baseFormData.skills,"onUpdate:modelValue":a[7]||(a[7]=e=>s.baseFormData.skills=e),localdata:s.skillsRange},null,8,["modelValue","localdata"])])),_:1})])),_:1},8,["model"])])])),_:1}),e.createVNode(f,{title:"对齐方式",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example"},[e.createElementVNode("view",{class:"segmented-control"},[e.createVNode(y,{current:s.current,values:s.items,onClickItem:l.onClickItem,styleType:"button"},null,8,["current","values","onClickItem"])]),e.createVNode(g,{ref:"baseForm",modelValue:s.alignmentFormData,"label-position":l.alignment},{default:e.withCtx((()=>[e.createVNode(d,{label:"姓名",required:""},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.baseFormData.name,"onUpdate:modelValue":a[8]||(a[8]=e=>s.baseFormData.name=e),placeholder:"请输入姓名"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"年龄",required:""},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.baseFormData.age,"onUpdate:modelValue":a[9]||(a[9]=e=>s.baseFormData.age=e),placeholder:"请输入年龄"},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","label-position"])])])),_:1}),e.createVNode(f,{title:"表单校验",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example"},[e.createVNode(g,{ref:"valiForm",rules:s.rules,model:s.valiFormData,labelWidth:"80px"},{default:e.withCtx((()=>[e.createVNode(d,{label:"姓名",required:"",name:"name"},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.valiFormData.name,"onUpdate:modelValue":a[10]||(a[10]=e=>s.valiFormData.name=e),placeholder:"请输入姓名"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"年龄",required:"",name:"age"},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.valiFormData.age,"onUpdate:modelValue":a[11]||(a[11]=e=>s.valiFormData.age=e),placeholder:"请输入年龄"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"自我介绍"},{default:e.withCtx((()=>[e.createVNode(c,{type:"textarea",modelValue:s.valiFormData.introduction,"onUpdate:modelValue":a[12]||(a[12]=e=>s.valiFormData.introduction=e),placeholder:"请输入自我介绍"},null,8,["modelValue"])])),_:1})])),_:1},8,["rules","model"]),e.createElementVNode("button",{type:"primary",onClick:a[13]||(a[13]=e=>l.submit("valiForm"))},"提交")])])),_:1}),e.createVNode(f,{title:"自定义校验规则",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example"},[e.createVNode(g,{ref:"customForm",rules:s.customRules,labelWidth:"80px",modelValue:s.customFormData},{default:e.withCtx((()=>[e.createVNode(d,{label:"姓名",required:"",name:"name"},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.customFormData.name,"onUpdate:modelValue":a[14]||(a[14]=e=>s.customFormData.name=e),placeholder:"请输入姓名"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"年龄",required:"",name:"age"},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.customFormData.age,"onUpdate:modelValue":a[15]||(a[15]=e=>s.customFormData.age=e),placeholder:"请输入年龄"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{label:"兴趣爱好",required:"",name:"hobby"},{default:e.withCtx((()=>[e.createVNode(u,{modelValue:s.customFormData.hobby,"onUpdate:modelValue":a[16]||(a[16]=e=>s.customFormData.hobby=e),multiple:"",localdata:s.hobbys},null,8,["modelValue","localdata"])])),_:1})])),_:1},8,["rules","modelValue"]),e.createElementVNode("button",{type:"primary",onClick:a[17]||(a[17]=e=>l.submit("customForm"))},"提交")])])),_:1}),e.createVNode(f,{title:"动态表单",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example"},[e.createVNode(g,{ref:"dynamicForm",rules:s.dynamicRules,model:s.dynamicFormData,labelWidth:"80px"},{default:e.withCtx((()=>[e.createVNode(d,{label:"邮箱",required:"",name:"email"},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.dynamicFormData.email,"onUpdate:modelValue":a[18]||(a[18]=e=>s.dynamicFormData.email=e),placeholder:"请输入姓名"},null,8,["modelValue"])])),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dynamicFormData.domains,((t,a)=>(e.openBlock(),e.createBlock(d,{key:t.id,label:t.label+" "+a,required:"",rules:t.rules,name:["domains",a,"value"]},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"form-item"},[e.createVNode(c,{modelValue:s.dynamicFormData.domains[a].value,"onUpdate:modelValue":e=>s.dynamicFormData.domains[a].value=e,placeholder:"请输入域名"},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("button",{class:"button",size:"mini",type:"default",onClick:e=>l.del(t.id)},"删除",8,["onClick"])])])),_:2},1032,["label","rules","name"])))),128))])),_:1},8,["rules","model"]),e.createElementVNode("view",{class:"button-group"},[e.createElementVNode("button",{type:"primary",size:"mini",onClick:a[19]||(a[19]=(...e)=>l.add&&l.add(...e))},"新增域名"),e.createElementVNode("button",{type:"primary",size:"mini",onClick:a[20]||(a[20]=e=>l.submit("dynamicForm"))},"提交")])])])),_:1})])}]]);const Pl=a({name:"uniGroup",emits:["click"],props:{title:{type:String,default:""},top:{type:[Number,String],default:10},mode:{type:String,default:"default"},stat:{type:Boolean,default:!1}},data:()=>({margin:!1,border:!1}),watch:{title(e){uni.report&&this.stat&&""!==e&&uni.report("title",e)}},created(){this.form=this.getForm(),this.form&&(this.margin=!0,this.border=this.form.border)},methods:{getForm(){let e=this.$parent,t=e.$options.name;for(;"uniForms"!==t;){if(e=e.$parent,!e)return!1;t=e.$options.name}return e},onClick(){this.$emit("click")}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-group",["uni-group--"+i.mode,o.margin?"group-margin":""]]),style:e.normalizeStyle({marginTop:`${i.top}px`})},[e.renderSlot(t.$slots,"title",{},(()=>[i.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-group__title",style:e.normalizeStyle({"padding-left":o.border?"30px":"15px"})},[e.createElementVNode("text",{class:"uni-group__title-text"},e.toDisplayString(i.title),1)],4)):e.createCommentVNode("",!0)]),!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-group__content",{"group-conent-padding":o.border}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],6)}],["__scopeId","data-v-f9b5d343"]]);const Al=a({components:{},data:()=>({appear:!1,name:"",mobile:"139 9999 9999",weixin:"sskd",message:"",errorMessage:""}),onReady(){},methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-group"),Pl),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"分组组件可用于将组件分组,添加间隔,以产生明显的区块。")])),_:1}),e.createVNode(d,{title:"基础分组",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,null,{default:e.withCtx((()=>[e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 ")])),_:1}),e.createVNode(c,{title:"基本模式","margin-top":"20"},{default:e.withCtx((()=>[e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 ")])),_:1})])),_:1}),e.createVNode(d,{title:"卡片分组",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{mode:"card"},{default:e.withCtx((()=>[e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 ")])),_:1}),e.createVNode(c,{title:"card 模式",mode:"card"},{default:e.withCtx((()=>[e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 "),e.createElementVNode("view",null," 分组内容 ")])),_:1})])),_:1})])}]]);const Ml=a({name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:e,type:t,size:a,absolute:i}=this;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+a,i?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let e=this.width/2,t=10;this.isDot&&(e=5,t=5);const a=`${-e+this.offset[0]}px`,i=`${-t+this.offset[1]}px`,n={rightTop:{right:a,top:i},rightBottom:{right:a,bottom:i},leftBottom:{left:a,bottom:i},leftTop:{left:a,top:i}},o=n[this.absolute];return o||n.rightTop},dotStyle(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue(){const{isDot:e,text:t,maxNum:a}=this;return e?"":Number(t)>a?`${a}+`:t}},methods:{onClick(){this.$emit("click")}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-badge--x"},[e.renderSlot(t.$slots,"default",{},void 0,!0),i.text?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass([s.classNames,"uni-badge"]),style:e.normalizeStyle([s.positionStyle,i.customStyle,s.dotStyle]),onClick:a[0]||(a[0]=e=>s.onClick())},e.toDisplayString(s.displayValue),7)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-7917da67"]]);const Ll=a({components:{},data:()=>({value:0,customStyle:{backgroundColor:"#62ed0d",color:"#fff"}}),mounted(){const e=setInterval((()=>{this.value>=199?clearInterval(e):this.value++}),100)}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-badge"),Ml),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"数字角标通用来标记重点信息使用,如接受到新消息、有未读消息等")])),_:1}),e.createVNode(d,{title:"基础用法",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{class:"uni-badge-left-margin",text:"1"}),e.createVNode(c,{class:"uni-badge-left-margin",text:"2",type:"primary"}),e.createVNode(c,{class:"uni-badge-left-margin",text:"34",type:"success"}),e.createVNode(c,{class:"uni-badge-left-margin",text:"45",type:"warning"}),e.createVNode(c,{class:"uni-badge-left-margin",text:"123",type:"info"})])])),_:1}),e.createVNode(d,{title:"无底色",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{class:"uni-badge-left-margin",inverted:!0,text:"1"}),e.createVNode(c,{class:"uni-badge-left-margin",inverted:!0,text:"2",type:"primary"}),e.createVNode(c,{class:"uni-badge-left-margin",inverted:!0,text:"34",type:"success"}),e.createVNode(c,{class:"uni-badge-left-margin",inverted:!0,text:"45",type:"warning"}),e.createVNode(c,{class:"uni-badge-left-margin",inverted:!0,text:"123",type:"info"})])])),_:1}),e.createVNode(d,{title:"自定义样式",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{class:"uni-badge-left-margin",text:"2",type:"primary",customStyle:{background:"#4335d6"}}),e.createVNode(c,{class:"uni-badge-left-margin",text:"2",type:"primary",customStyle:s.customStyle},null,8,["customStyle"])])])),_:1}),e.createVNode(d,{title:"定位: aboslute 属性",subTitle:"注:在安卓端不支持 nvue",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{class:"uni-badge-left-margin",text:s.value,absolute:"rightTop",size:"small"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"box"},[e.createElementVNode("text",{class:"box-text"},"右上")])])),_:1},8,["text"])])),_:1}),e.createVNode(d,{title:"偏移: offset 属性(存在 aboslute)",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{class:"uni-badge-left-margin",text:8,absolute:"rightTop",offset:[-3,-3],size:"small"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"box"},[e.createElementVNode("text",{class:"box-text"},"右上")])])),_:1})])),_:1}),e.createVNode(d,{title:"仅显示点: is-dot 属性",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{class:"uni-badge-left-margin","is-dot":!0,text:s.value,absolute:"rightTop",size:"small"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"box"},[e.createElementVNode("text",{class:"box-text"},"圆点")])])),_:1},8,["text"])])),_:1})])}]]);const Fl=a({data:()=>({currentPage:""}),options:{virtualHost:!0},props:{to:{type:String,default:""},replace:{type:Boolean,default:!1}},inject:{uniBreadcrumb:{from:"uniBreadcrumb",default:null}},created(){const e=getCurrentPages(),t=e[e.length-1];t&&(this.currentPage=`/${t.route}`)},computed:{separator(){return this.uniBreadcrumb.separator},separatorClass(){return this.uniBreadcrumb.separatorClass}},methods:{navTo(){const{to:e}=this;e&&this.currentPage!==e&&(this.replace?uni.redirectTo({url:e}):uni.navigateTo({url:e}))}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-breadcrumb-item"},[e.createElementVNode("view",{class:e.normalizeClass({"uni-breadcrumb-item--slot":!0,"uni-breadcrumb-item--slot-link":i.to&&o.currentPage!==i.to}),onClick:a[0]||(a[0]=(...e)=>s.navTo&&s.navTo(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),s.separatorClass?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["uni-breadcrumb-item--separator",s.separatorClass])},null,2)):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-breadcrumb-item--separator"},e.toDisplayString(s.separator),1))])}],["__scopeId","data-v-c8775c9c"]]);const Ul=a({options:{virtualHost:!0},props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide(){return{uniBreadcrumb:this}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-breadcrumb"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-fd9c4191"]]);const Rl=a({components:{},data:()=>({routes:[{to:"/pages/index/index",name:"首页"},{to:"",name:"菜单 A"},{to:"",name:"菜单 B"}]})},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-breadcrumb-item"),Fl),d=o(e.resolveDynamicComponent("uni-breadcrumb"),Ul),u=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"面包屑导航显示当前页面的路径,快速返回之前的任意可跳转页面")])),_:1}),e.createVNode(u,{title:"基础用法",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(d,{separator:"/"},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.routes,((t,a)=>(e.openBlock(),e.createBlock(c,{key:a,to:t.to},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.name),1)])),_:2},1032,["to"])))),128))])),_:1})])),_:1}),e.createVNode(u,{title:"自定义分隔符",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(d,{separator:">"},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.routes,((t,a)=>(e.openBlock(),e.createBlock(c,{key:a,to:t.to},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.name),1)])),_:2},1032,["to"])))),128))])),_:1})])),_:1})])}]]);const Ol=a({name:"UniDrawer",components:{},emits:["change"],props:{mode:{type:String,default:""},mask:{type:Boolean,default:!0},maskClick:{type:Boolean,default:!0},width:{type:Number,default:220}},data:()=>({visibleSync:!1,showDrawer:!1,rightMode:!1,watchTimer:null,drawerWidth:220}),created(){this.drawerWidth=this.width,this.rightMode="right"===this.mode},methods:{clear(){},close(e){("mask"!==e||this.maskClick)&&this.visibleSync&&this._change("showDrawer","visibleSync",!1)},open(){this.visibleSync||this._change("visibleSync","showDrawer",!0)},_change(e,t,a){this[e]=a,this.watchTimer&&clearTimeout(this.watchTimer),this.watchTimer=setTimeout((()=>{this[t]=a,this.$emit("change",a)}),a?50:300)}}},[["render",function(t,a,i,n,o,s){return o.visibleSync?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass([{"uni-drawer--visible":o.showDrawer},"uni-drawer"]),onTouchmove:a[1]||(a[1]=e.withModifiers(((...e)=>s.clear&&s.clear(...e)),["stop","prevent"]))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-drawer__mask",{"uni-drawer__mask--visible":o.showDrawer&&i.mask}]),onClick:a[0]||(a[0]=e=>s.close("mask"))},null,2),e.createElementVNode("view",{class:e.normalizeClass(["uni-drawer__content",{"uni-drawer--right":o.rightMode,"uni-drawer--left":!o.rightMode,"uni-drawer__content--visible":o.showDrawer}]),style:e.normalizeStyle({width:o.drawerWidth+"px"})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)],34)):e.createCommentVNode("",!0)}],["__scopeId","data-v-8b8b609c"]]),$l={data:()=>({showRight:!1,showLeft:!1}),methods:{confirm(){},showDrawer(e){this.$refs[e].open()},closeDrawer(e){this.$refs[e].close()},change(e,t){n("log","at pages/extUI/drawer/drawer.vue:67",("showLeft"===t?"左窗口":"右窗口")+(e?"打开":"关闭")),this[t]=e}},onNavigationBarButtonTap(e){this.showLeft?this.$refs.showLeft.close():this.$refs.showLeft.open()},onBackPress(){if(this.showRight||this.showLeft)return this.$refs.showLeft.close(),this.$refs.showRight.close(),!0}};const zl=a($l,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-drawer"),Ol),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"这是抽屉式导航组件使用示例,可以指定菜单左侧或者右侧弹出(仅初始化生效),组件内部可以放置任何内容。点击页面按钮即可显示导航菜单。")])),_:1}),e.createVNode(d,{title:"左侧滑出",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=e=>l.showDrawer("showLeft"))},[e.createElementVNode("text",{class:"word-btn-white"},"显示Drawer")]),e.createVNode(c,{ref:"showLeft",mode:"left",width:320,onChange:a[2]||(a[2]=e=>l.change(e,"showLeft"))},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"close"},[e.createElementVNode("button",{onClick:a[1]||(a[1]=e=>l.closeDrawer("showLeft"))},[e.createElementVNode("text",{class:"word-btn-white"},"关闭Drawer")])])])),_:1},512)])])),_:1}),e.createVNode(d,{title:"右侧滑出",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=e=>l.showDrawer("showRight"))},[e.createElementVNode("text",{class:"word-btn-white"},"显示Drawer")]),e.createVNode(c,{ref:"showRight",mode:"right","mask-click":!1,onChange:a[6]||(a[6]=e=>l.change(e,"showRight"))},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"scroll-view"},[e.createElementVNode("scroll-view",{class:"scroll-view-box","scroll-y":"true"},[e.createElementVNode("view",{class:"info"},[e.createElementVNode("text",{class:"info-text"},"右侧遮罩只能通过按钮关闭,不能通过点击遮罩关闭")]),e.createElementVNode("view",{class:"close"},[e.createElementVNode("button",{onClick:a[4]||(a[4]=e=>l.closeDrawer("showRight"))},[e.createElementVNode("text",{class:"word-btn-white"},"关闭Drawer")])]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(100,(t=>e.createElementVNode("view",{class:"info-content",key:t},[e.createElementVNode("text",null,"可滚动内容 "+e.toDisplayString(t),1)]))),64)),e.createElementVNode("view",{class:"close"},[e.createElementVNode("button",{onClick:a[5]||(a[5]=e=>l.closeDrawer("showRight"))},[e.createElementVNode("text",{class:"word-btn-white"},"关闭Drawer")])])])])])),_:1},512)])])),_:1})])}]]),ql={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}};const jl=a({name:"uniPopupMessage",mixins:[ql],props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3},maskShow:{type:Boolean,default:!1}},data:()=>({}),created(){this.popup.maskShow=this.maskShow,this.popup.messageChild=this},methods:{timerClose(){0!==this.duration&&(clearTimeout(this.timer),this.timer=setTimeout((()=>{this.popup.close()}),this.duration))}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-message"},[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup-message__box fixforpc-width","uni-popup__"+i.type])},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:e.normalizeClass(["uni-popup-message-text","uni-popup__"+i.type+"-text"])},e.toDisplayString(i.message),3)]),!0)],2)])}],["__scopeId","data-v-d81cfb56"]]),Hl={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:Wl}=Js(Hl);const Jl=a({name:"uniPopupDialog",mixins:[ql],emits:["confirm","close"],props:{value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:()=>({dialogType:"error",focus:!1,val:""}),computed:{okText(){return this.confirmText||Wl("uni-popup.ok")},closeText(){return this.cancelText||Wl("uni-popup.cancel")},placeholderText(){return this.placeholder||Wl("uni-popup.placeholder")},titleText(){return this.title||Wl("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){this.val=e}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted(){this.focus=!0},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-dialog"},[e.createElementVNode("view",{class:"uni-dialog-title"},[e.createElementVNode("text",{class:e.normalizeClass(["uni-dialog-title-text",["uni-popup__"+o.dialogType]])},e.toDisplayString(s.titleText),3)]),"base"===i.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:"uni-dialog-content-text"},e.toDisplayString(i.content),1)]),!0)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-dialog-input","onUpdate:modelValue":a[0]||(a[0]=e=>o.val=e),type:"text",placeholder:s.placeholderText,focus:o.focus},null,8,["placeholder","focus"]),[[e.vModelText,o.val]])]),!0)])),e.createElementVNode("view",{class:"uni-dialog-button-group"},[e.createElementVNode("view",{class:"uni-dialog-button",onClick:a[1]||(a[1]=(...e)=>s.closeDialog&&s.closeDialog(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text"},e.toDisplayString(s.closeText),1)]),e.createElementVNode("view",{class:"uni-dialog-button uni-border-left",onClick:a[2]||(a[2]=(...e)=>s.onOk&&s.onOk(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text uni-button-color"},e.toDisplayString(s.okText),1)])])])}],["__scopeId","data-v-d19f9ee6"]]),{t:Gl}=Js(Hl);const Yl=a({name:"UniPopupShare",mixins:[ql],emits:["select"],props:{title:{type:String,default:""},beforeClose:{type:Boolean,default:!1}},data:()=>({bottomData:[{text:"微信",icon:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/c2b17470-50be-11eb-b680-7980c8a877b8.png",name:"wx"},{text:"支付宝",icon:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/d684ae40-50be-11eb-8ff1-d5dcf8779628.png",name:"wx"},{text:"QQ",icon:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/e7a79520-50be-11eb-b997-9918a5dda011.png",name:"qq"},{text:"新浪",icon:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/0dacdbe0-50bf-11eb-8ff1-d5dcf8779628.png",name:"sina"}]}),created(){},computed:{cancelText:()=>Gl("uni-popup.cancel"),shareTitleText(){return this.title||Gl("uni-popup.shareTitle")}},methods:{select(e,t){this.$emit("select",{item:e,index:t}),this.close()},close(){this.beforeClose||this.popup.close()}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-share"},[e.createElementVNode("view",{class:"uni-share-title"},[e.createElementVNode("text",{class:"uni-share-title-text"},e.toDisplayString(s.shareTitleText),1)]),e.createElementVNode("view",{class:"uni-share-content"},[e.createElementVNode("view",{class:"uni-share-content-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.bottomData,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-share-content-item",key:a,onClick:e.withModifiers((e=>s.select(t,a)),["stop"])},[e.createElementVNode("image",{class:"uni-share-image",src:t.icon,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",{class:"uni-share-text"},e.toDisplayString(t.text),1)],8,["onClick"])))),128))])]),e.createElementVNode("view",{class:"uni-share-button-box"},[e.createElementVNode("button",{class:"uni-share-button",onClick:a[0]||(a[0]=(...e)=>s.close&&s.close(...e))},e.toDisplayString(s.cancelText),1)])])}],["__scopeId","data-v-db6bde47"]]),Kl={data:()=>({type:"center",msgType:"success",messageText:"这是一条成功提示",value:""}),onReady(){},methods:{change(e){n("log","at pages/extUI/popup/popup.vue:107","当前模式:"+e.type+",状态:"+e.show)},toggle(e){this.type=e,this.$refs.popup.open(e)},messageToggle(e){this.msgType=e,this.messageText=`这是一条${e}消息提示`,this.$refs.message.open()},dialogToggle(e){this.msgType=e,this.$refs.alertDialog.open()},dialogConfirm(){n("log","at pages/extUI/popup/popup.vue:124","点击确认"),this.messageText=`点击确认了 ${this.msgType} 窗口`,this.$refs.message.open()},inputDialogToggle(){this.$refs.inputDialog.open()},dialogClose(){n("log","at pages/extUI/popup/popup.vue:132","点击关闭")},dialogInputConfirm(e){uni.showLoading({title:"3秒后会关闭"}),setTimeout((()=>{uni.hideLoading(),n("log","at pages/extUI/popup/popup.vue:141",e),this.value=e,this.$refs.inputDialog.close()}),3e3)},shareToggle(){this.$refs.share.open()}}};const Ql=a(Kl,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl),d=o(e.resolveDynamicComponent("uni-popup"),ka),u=o(e.resolveDynamicComponent("uni-popup-message"),jl),h=o(e.resolveDynamicComponent("uni-popup-dialog"),Jl),p=o(e.resolveDynamicComponent("uni-popup-share"),Yl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"弹出层组件用于弹出一个覆盖到页面上的内容,使用场景如:底部弹出分享弹窗、页面插屏广告等。")])),_:1}),e.createVNode(c,{title:"基本示例",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body box"},[e.createElementVNode("button",{class:"button",type:"primary",onClick:a[0]||(a[0]=e=>l.toggle("top"))},[e.createElementVNode("text",{class:"button-text"},"顶部")]),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[1]||(a[1]=e=>l.toggle("bottom"))},[e.createElementVNode("text",{class:"button-text"},"底部")]),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[2]||(a[2]=e=>l.toggle("center"))},[e.createElementVNode("text",{class:"button-text"},"居中")]),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[3]||(a[3]=e=>l.toggle("left"))},[e.createElementVNode("text",{class:"button-text"},"左侧")]),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[4]||(a[4]=e=>l.toggle("right"))},[e.createElementVNode("text",{class:"button-text"},"右侧")])])])),_:1}),e.createVNode(c,{title:"提示消息",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body box"},[e.createElementVNode("button",{class:"button popup-success",onClick:a[5]||(a[5]=e=>l.messageToggle("success"))},[e.createElementVNode("text",{class:"button-text success-text"},"成功")]),e.createElementVNode("button",{class:"button popup-error",onClick:a[6]||(a[6]=e=>l.messageToggle("error"))},[e.createElementVNode("text",{class:"button-text error-text"},"失败")]),e.createElementVNode("button",{class:"button popup-warn",onClick:a[7]||(a[7]=e=>l.messageToggle("warn"))},[e.createElementVNode("text",{class:"button-text warn-text"},"警告")]),e.createElementVNode("button",{class:"button popup-info",onClick:a[8]||(a[8]=e=>l.messageToggle("info"))},[e.createElementVNode("text",{class:"button-text info-text"},"信息")])])])),_:1}),e.createVNode(c,{title:"对话框示例",type:"line",class:"hideOnPc"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body box"},[e.createElementVNode("button",{class:"button popup-success",onClick:a[9]||(a[9]=e=>l.dialogToggle("success"))},[e.createElementVNode("text",{class:"button-text success-text"},"成功")]),e.createElementVNode("button",{class:"button popup-error",onClick:a[10]||(a[10]=e=>l.dialogToggle("error"))},[e.createElementVNode("text",{class:"button-text error-text"},"失败")]),e.createElementVNode("button",{class:"button popup-warn",onClick:a[11]||(a[11]=e=>l.dialogToggle("warn"))},[e.createElementVNode("text",{class:"button-text warn-text"},"警告")]),e.createElementVNode("button",{class:"button popup-info",onClick:a[12]||(a[12]=e=>l.dialogToggle("info"))},[e.createElementVNode("text",{class:"button-text info-text"},"信息")])])])),_:1}),e.createVNode(c,{title:"输入框示例",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"dialog-box"},[e.createElementVNode("text",{class:"dialog-text"},"输入内容:"+e.toDisplayString(s.value),1)]),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[13]||(a[13]=(...e)=>l.inputDialogToggle&&l.inputDialogToggle(...e))},[e.createElementVNode("text",{class:"button-text"},"输入对话框")])])),_:1}),e.createVNode(c,{title:"底部分享示例",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("button",{class:"button",type:"primary",onClick:a[14]||(a[14]=(...e)=>l.shareToggle&&l.shareToggle(...e))},[e.createElementVNode("text",{class:"button-text"},"分享模版示例")])])),_:1}),e.createElementVNode("view",null,[e.createVNode(d,{ref:"popup","background-color":"#fff",onChange:l.change},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["popup-content",{"popup-height":"left"===s.type||"right"===s.type}])},[e.createElementVNode("text",{class:"text"},"popup 内容")],2)])),_:1},8,["onChange"])]),e.createElementVNode("view",null,[e.createVNode(d,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(u,{type:s.msgType,message:s.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)]),e.createElementVNode("view",null,[e.createVNode(d,{ref:"alertDialog",type:"dialog"},{default:e.withCtx((()=>[e.createVNode(h,{type:s.msgType,cancelText:"关闭",confirmText:"同意",title:"通知",content:"欢迎使用 uni-popup!",onConfirm:l.dialogConfirm,onClose:l.dialogClose},null,8,["type","onConfirm","onClose"])])),_:1},512)]),e.createElementVNode("view",null,[e.createVNode(d,{ref:"inputDialog",type:"dialog"},{default:e.withCtx((()=>[e.createVNode(h,{ref:"inputClose",mode:"input",title:"输入内容",value:"对话框预置提示内容!",placeholder:"请输入内容",onConfirm:l.dialogInputConfirm},null,8,["onConfirm"])])),_:1},512)]),e.createElementVNode("view",null,[e.createVNode(d,{ref:"share",type:"share",safeArea:"",backgroundColor:"#fff"},{default:e.withCtx((()=>[e.createVNode(p)])),_:1},512)])])}]]),Zl={components:{},data:()=>({items:["选项卡1","选项卡2","选项卡3"],styles:[{value:"button",text:"按钮",checked:!0},{value:"text",text:"文字"}],colors:["#007aff","#4cd964","#dd524d"],current:0,colorIndex:0,activeColor:"#007aff",styleType:"button"}),methods:{onClickItem(e){this.current!==e.currentIndex&&(this.current=e.currentIndex)},styleChange(e){this.styleType!==e.detail.value&&(this.styleType=e.detail.value)},colorChange(e){this.styleType!==e.detail.value&&(n("log","at pages/extUI/segmented-control/segmented-control.vue:88",e.detail.value),this.activeColor=e.detail.value)}}};const Xl=a(Zl,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-segmented-control"),Dl),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"标签组件多用于商品分类、重点内容显示等场景。")])),_:1}),e.createVNode(d,{title:"实心标签",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createVNode(c,{current:s.current,values:s.items,"style-type":s.styleType,"active-color":s.activeColor,onClickItem:l.onClickItem},null,8,["current","values","style-type","active-color","onClickItem"])]),e.createElementVNode("view",{class:"content"},[0===s.current?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("text",{class:"content-text"},"选项卡1的内容")])):e.createCommentVNode("",!0),1===s.current?(e.openBlock(),e.createElementBlock("view",{key:1},[e.createElementVNode("text",{class:"content-text"},"选项卡2的内容")])):e.createCommentVNode("",!0),2===s.current?(e.openBlock(),e.createElementBlock("view",{key:2},[e.createElementVNode("text",{class:"content-text"},"选项卡3的内容")])):e.createCommentVNode("",!0)])])),_:1}),e.createVNode(d,{title:"Style",type:"line"}),e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("radio-group",{class:"uni-list",onChange:a[0]||(a[0]=(...e)=>l.styleChange&&l.styleChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.styles,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"uni-list-item"},[e.createElementVNode("view",{class:"uni-list-item__container"},[e.createElementVNode("view",{class:"uni-list-item__content"},[e.createElementVNode("text",{class:"uni-list-item__content-title"},e.toDisplayString(t.text),1)]),e.createElementVNode("view",{class:"uni-list-item__extra"},[e.createElementVNode("radio",{value:t.value,checked:t.checked},null,8,["value","checked"])])])])))),128))],32)]),e.createVNode(d,{title:"Color",type:"line"}),e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("radio-group",{class:"uni-list",onChange:a[1]||(a[1]=(...e)=>l.colorChange&&l.colorChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.colors,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"uni-list-item"},[e.createElementVNode("view",{class:"uni-list-item__container"},[e.createElementVNode("view",{class:"uni-list-item__content"},[e.createElementVNode("view",{style:e.normalizeStyle({backgroundColor:t}),class:"color-tag"},null,4)]),e.createElementVNode("view",{class:"uni-list-item__extra"},[e.createElementVNode("radio",{value:t,checked:a===s.colorIndex},null,8,["value","checked"])])])])))),128))],32)])])}]]);const er=a({name:"uniCollapseItem",props:{title:{type:String,default:""},name:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1},showAnimation:{type:Boolean,default:!1},open:{type:Boolean,default:!1},thumb:{type:String,default:""},titleBorder:{type:String,default:"auto"},border:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0}},data:()=>({isOpen:!1,isheight:null,height:0,elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,nameSync:0}),watch:{open(e){this.isOpen=e,this.onClick(e,"init")}},updated(e){this.$nextTick((()=>{this.init(!0)}))},created(){this.collapse=this.getCollapse(),this.oldHeight=0,this.onClick(this.open,"init")},unmounted(){this.__isUnmounted=!0,this.uninstall()},mounted(){this.collapse&&(""!==this.name?this.nameSync=this.name:this.nameSync=this.collapse.childrens.length+"",-1===this.collapse.names.indexOf(this.nameSync)?this.collapse.names.push(this.nameSync):n("warn","at uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue:154",`name 值 ${this.nameSync} 重复`),-1===this.collapse.childrens.indexOf(this)&&this.collapse.childrens.push(this),this.init())},methods:{init(e){this.getCollapseHeight(e)},uninstall(){this.collapse&&(this.collapse.childrens.forEach(((e,t)=>{e===this&&this.collapse.childrens.splice(t,1)})),this.collapse.names.forEach(((e,t)=>{e===this.nameSync&&this.collapse.names.splice(t,1)})))},onClick(e,t){this.disabled||(this.isOpen=e,this.isOpen&&this.collapse&&this.collapse.setAccordion(this),"init"!==t&&this.collapse.onChange(e,this))},getCollapseHeight(e,t=0){uni.createSelectorQuery().in(this).select(`#${this.elId}`).fields({size:!0},(a=>{if(!(t>=10)){if(!a)return t++,void this.getCollapseHeight(!1,t);this.height=a.height,this.isheight=!0,e||this.onClick(this.isOpen,"init")}})).exec()},getNvueHwight(e){dom.getComponentRect(this.$refs["collapse--hook"],(t=>{if(t&&t.result&&t.size){if(this.height=t.size.height,this.isheight=!0,e)return;this.onClick(this.open,"init")}}))},getCollapse(e="uniCollapse"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-collapse-item"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=e=>l.onClick(!s.isOpen)),class:e.normalizeClass(["uni-collapse-item__title",{"is-open":s.isOpen&&"auto"===i.titleBorder,"uni-collapse-item-border":"none"!==i.titleBorder}])},[e.createElementVNode("view",{class:"uni-collapse-item__title-wrap"},[e.renderSlot(t.$slots,"title",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-collapse-item__title-box",{"is-disabled":i.disabled}])},[i.thumb?(e.openBlock(),e.createElementBlock("image",{key:0,src:i.thumb,class:"uni-collapse-item__title-img"},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-collapse-item__title-text"},e.toDisplayString(i.title),1)],2)]),!0)]),i.showArrow?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass([{"uni-collapse-item__title-arrow-active":s.isOpen,"uni-collapse-item--animation":!0===i.showAnimation},"uni-collapse-item__title-arrow"])},[e.createVNode(r,{color:i.disabled?"#ddd":"#bbb",size:"14",type:"bottom"},null,8,["color"])],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("view",{class:e.normalizeClass(["uni-collapse-item__wrap",{"is--transition":i.showAnimation}]),style:e.normalizeStyle({height:(s.isOpen?s.height:0)+"px"})},[e.createElementVNode("view",{id:s.elId,ref:"collapse--hook",class:e.normalizeClass(["uni-collapse-item__wrap-content",{open:s.isheight,"uni-collapse-item--border":i.border&&s.isOpen}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],10,["id"])],6)])}],["__scopeId","data-v-d45d8802"]]);const tr=a({name:"uniCollapse",emits:["change","activeItem","input","update:modelValue"],props:{value:{type:[String,Array],default:""},modelValue:{type:[String,Array],default:""},accordion:{type:[Boolean,String],default:!1}},data:()=>({}),computed:{dataValue(){let e="string"==typeof this.value&&""===this.value||Array.isArray(this.value)&&0===this.value.length;"string"==typeof this.modelValue&&""===this.modelValue||Array.isArray(this.modelValue)&&this.modelValue.length;return e?this.modelValue:this.value}},watch:{dataValue(e){this.setOpen(e)}},created(){this.childrens=[],this.names=[]},mounted(){this.$nextTick((()=>{this.setOpen(this.dataValue)}))},methods:{setOpen(e){let t="string"==typeof e,a=Array.isArray(e);this.childrens.forEach(((i,o)=>{if(t&&e===i.nameSync){if(!this.accordion)return void n("warn","at uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue:75","accordion 属性为 false ,v-model 类型应该为 array");i.isOpen=!0}a&&e.forEach((e=>{if(e===i.nameSync){if(this.accordion)return void n("warn","at uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue:85","accordion 属性为 true ,v-model 类型应该为 string");i.isOpen=!0}}))})),this.emit(e)},setAccordion(e){this.accordion&&this.childrens.forEach(((t,a)=>{e!==t&&(t.isOpen=!1)}))},resize(){this.childrens.forEach(((e,t)=>{e.getCollapseHeight()}))},onChange(e,t){let a=[];this.accordion?a=e?t.nameSync:"":this.childrens.forEach(((e,t)=>{e.isOpen&&a.push(e.nameSync)})),this.$emit("change",a),this.emit(a)},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e)}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-collapse"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-61e2e72f"]]),ar={name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:()=>({})},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:()=>({type:"",color:"#000000",size:20})},border:{type:Boolean,default:!0}},data:()=>({isFirstChild:!1}),mounted(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm(e="uniList"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},onClick(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange(e){this.$emit("switchChange",e.detail)},openPage(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi(e){let t={url:this.to,success:e=>{this.$emit("click",{data:e})},fail:e=>{this.$emit("click",{data:e})}};switch(e){case"navigateTo":default:uni.navigateTo(t);break;case"redirectTo":uni.redirectTo(t);break;case"reLaunch":uni.reLaunch(t);break;case"switchTab":uni.switchTab(t)}}}};const ir=a(ar,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f),c=o(e.resolveDynamicComponent("uni-badge"),Ml);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([{"uni-list-item--disabled":i.disabled},"uni-list-item"]),"hover-class":!i.clickable&&!i.link||i.disabled||i.showSwitch?"":"uni-list-item--hover",onClick:a[1]||(a[1]=(...e)=>l.onClick&&l.onClick(...e))},[s.isFirstChild?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["border--left",{"uni-list--border":i.border}])},null,2)),e.createElementVNode("view",{class:e.normalizeClass(["uni-list-item__container",{"container--right":i.showArrow||i.link,"flex--direction":"column"===i.direction}])},[e.renderSlot(t.$slots,"header",{},(()=>[e.createElementVNode("view",{class:"uni-list-item__header"},[i.thumb?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-list-item__icon"},[e.createElementVNode("image",{src:i.thumb,class:e.normalizeClass(["uni-list-item__icon-img",["uni-list--"+i.thumbSize]])},null,10,["src"])])):i.showExtraIcon?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-list-item__icon"},[e.createVNode(r,{color:i.extraIcon.color,size:i.extraIcon.size,type:i.extraIcon.type},null,8,["color","size","type"])])):e.createCommentVNode("",!0)])]),!0),e.renderSlot(t.$slots,"body",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-list-item__content",{"uni-list-item__content--center":i.thumb||i.showExtraIcon||i.showBadge||i.showSwitch}])},[i.title?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(["uni-list-item__content-title",[0!==i.ellipsis&&i.ellipsis<=2?"uni-ellipsis-"+i.ellipsis:""]])},e.toDisplayString(i.title),3)):e.createCommentVNode("",!0),i.note?(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-list-item__content-note"},e.toDisplayString(i.note),1)):e.createCommentVNode("",!0)],2)]),!0),e.renderSlot(t.$slots,"footer",{},(()=>[i.rightText||i.showBadge||i.showSwitch?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-list-item__extra",{"flex--justify":"column"===i.direction}])},[i.rightText?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-list-item__extra-text"},e.toDisplayString(i.rightText),1)):e.createCommentVNode("",!0),i.showBadge?(e.openBlock(),e.createBlock(c,{key:1,type:i.badgeType,text:i.badgeText,"custom-style":i.badgeStyle},null,8,["type","text","custom-style"])):e.createCommentVNode("",!0),i.showSwitch?(e.openBlock(),e.createElementBlock("switch",{key:2,disabled:i.disabled,checked:i.switchChecked,onChange:a[0]||(a[0]=(...e)=>l.onSwitchChange&&l.onSwitchChange(...e))},null,40,["disabled","checked"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),!0)],2),i.showArrow||i.link?(e.openBlock(),e.createBlock(r,{key:1,size:16,class:"uni-icon-wrapper",color:"#bbb",type:"arrowright"})):e.createCommentVNode("",!0)],10,["hover-class"])}],["__scopeId","data-v-19252fe4"]]);const nr=a({name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0}},created(){this.firstChildAppend=!1},methods:{loadMore(e){this.$emit("scrolltolower")}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-list uni-border-top-bottom"},[i.border?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-list--border-top"})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},void 0,!0),i.border?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-list--border-bottom"})):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a351b006"]]),or={components:{},data:()=>({value:["0"],accordionVal:"1",content:"折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。",extraIcon:{color:"#4cd964",size:"26",type:"image"}}),methods:{add(){this.content.length>35?this.content="折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。":this.content="折叠内容主体,这是一段比较长内容。通过点击按钮修改后内容后,使组件高度发生变化,在次点击按钮恢复之前的内容和高度。"},onClick(e){uni.showToast({title:"列表被点击"})},change(e){n("log","at pages/extUI/collapse/collapse.vue:144",e)}}};const sr=a(or,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-collapse-item"),er),d=o(e.resolveDynamicComponent("uni-collapse"),tr),u=o(e.resolveDynamicComponent("uni-section"),Tl),h=o(e.resolveDynamicComponent("uni-list-item"),ir),p=o(e.resolveDynamicComponent("uni-list"),nr);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。")])),_:1}),e.createVNode(u,{title:"基础用法",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,{ref:"collapse",modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e),onChange:l.change},{default:e.withCtx((()=>[e.createVNode(c,{title:"默认开启"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},e.toDisplayString(s.content),1)])])),_:1}),e.createVNode(c,{title:"折叠内容"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"折叠内容主体,这是一段比较长内容。默认折叠主要内容,只显示当前项标题。点击标题展开,才能看到这段文字。再次点击标题,折叠内容。")])])),_:1}),e.createVNode(c,{title:"禁用状态",disabled:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"禁用状态内容主体,页面上是看不到这段话的。")])])),_:1})])),_:1},8,["modelValue","onChange"])])),_:1}),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[1]||(a[1]=(...e)=>l.add&&l.add(...e))},"动态修改内容"),e.createVNode(u,{title:"使用动画效果",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[e.createVNode(c,{title:"使用动画","show-animation":!0},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"默认开启组件动画,使用动画效果折叠内容会有一个从上到下的动画。")])])),_:1}),e.createVNode(c,{title:"不使用动画","show-animation":!1},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},'设置 show-animation="false",关闭当前组件动画效果。')])])),_:1})])),_:1})])),_:1}),e.createVNode(u,{title:"手风琴效果(只会保留一个的打开状态)",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,{accordion:"",modelValue:s.accordionVal,"onUpdate:modelValue":a[2]||(a[2]=e=>s.accordionVal=e),onChange:l.change},{default:e.withCtx((()=>[e.createVNode(c,{title:"手风琴效果"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。")])])),_:1}),e.createVNode(c,{title:"手风琴效果"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。")])])),_:1}),e.createVNode(c,{title:"手风琴效果"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。")])])),_:1})])),_:1},8,["modelValue","onChange"])])),_:1}),e.createVNode(u,{title:"配置图片",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[e.createVNode(c,{title:"标题文字",thumb:"https://web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"折叠内容主体,可自定义内容及样式")])])),_:1}),e.createVNode(c,{title:"标题文字",thumb:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"折叠内容主体,可自定义内容及样式")])])),_:1})])),_:1})])),_:1}),e.createVNode(u,{title:"使用插槽",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[e.createVNode(c,{titleBorder:"none"},{title:e.withCtx((()=>[e.createVNode(p,null,{default:e.withCtx((()=>[e.createVNode(h,{title:"标题使用自定义标题插槽","show-extra-icon":!0,"extra-icon":s.extraIcon},null,8,["extra-icon"])])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[e.createElementVNode("text",{class:"text"},"折叠内容主体,可自定义内容及样式")])])),_:1}),e.createVNode(c,{title:"折叠内容使用 uni-list 组件"},{default:e.withCtx((()=>[e.createVNode(p,null,{default:e.withCtx((()=>[e.createVNode(h,{title:"列表文字"}),e.createVNode(h,{disabled:!0,title:"列表文字",note:"列表禁用状态"}),e.createVNode(h,{title:"列表右侧显示 switch","show-switch":!0}),e.createVNode(h,{"show-extra-icon":!0,"extra-icon":s.extraIcon,title:"列表左侧带扩展图标"},null,8,["extra-icon"]),e.createVNode(h,{title:"列表左侧带略缩图",note:"列表描述信息",thumb:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png","thumb-size":"lg",rightText:"右侧文字",showArrow:""}),e.createVNode(h,{title:"开启点击反馈",clickable:"",showArrow:"",onClick:l.onClick},null,8,["onClick"])])),_:1})])),_:1})])),_:1})])),_:1})])}]]),lr={en:{"uni-pagination.prevText":"prev","uni-pagination.nextText":"next","uni-pagination.piecePerPage":"piece/page"},es:{"uni-pagination.prevText":"anterior","uni-pagination.nextText":"prxima","uni-pagination.piecePerPage":"Art��culo/P��gina"},fr:{"uni-pagination.prevText":"précédente","uni-pagination.nextText":"suivante","uni-pagination.piecePerPage":"Articles/Pages"},"zh-Hans":{"uni-pagination.prevText":"上一页","uni-pagination.nextText":"下一页","uni-pagination.piecePerPage":"条/页"},"zh-Hant":{"uni-pagination.prevText":"上一頁","uni-pagination.nextText":"下一頁","uni-pagination.piecePerPage":"條/頁"}},{t:rr}=Js(lr),cr={name:"UniPagination",emits:["update:modelValue","input","change","pageSizeChange"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},prevText:{type:String},nextText:{type:String},piecePerPageText:{type:String},current:{type:[Number,String],default:1},total:{type:[Number,String],default:0},pageSize:{type:[Number,String],default:10},showIcon:{type:[Boolean,String],default:!1},showPageSize:{type:[Boolean,String],default:!1},pagerCount:{type:Number,default:7},pageSizeRange:{type:Array,default:()=>[20,50,100,500]}},data:()=>({pageSizeIndex:0,currentIndex:1,paperData:[],pickerShow:!1}),computed:{piecePerPage(){return this.piecePerPageText||rr("uni-pagination.piecePerPage")},prevPageText(){return this.prevText||rr("uni-pagination.prevText")},nextPageText(){return this.nextText||rr("uni-pagination.nextText")},maxPage(){let e=1,t=Number(this.total),a=Number(this.pageSize);return t&&a&&(e=Math.ceil(t/a)),e},paper(){const e=this.currentIndex,t=this.pagerCount,a=this.total,i=this.pageSize;let n=[],o=[],s=Math.ceil(a/i);for(let r=0;r{(t+1)/2>=e?a1&&o.push(a):e+2<=l?a>e-(t+1)/2&&ae-(t+1)/2||s-tt?((t+1)/2>=e?o[o.length-1]="...":e+2<=l?(o[1]="...",o[o.length-1]="..."):o[1]="...",o.push(n[n.length-1])):(t+1)/2>=e||e+2<=l||(o.shift(),o.push(n[n.length-1])),o}},watch:{current:{immediate:!0,handler(e,t){this.currentIndex=e<1?1:e}},value:{immediate:!0,handler(e){1===Number(this.current)&&(this.currentIndex=e<1?1:e)}},pageSizeIndex(e){this.$emit("pageSizeChange",this.pageSizeRange[e])}},methods:{pickerChange(e){this.pageSizeIndex=e.detail.value,this.pickerClick()},pickerClick(){},selectPage(e,t){if(parseInt(e))this.currentIndex=e,this.change("current");else{let e=Math.ceil(this.total/this.pageSize);if(t<=1)return void(this.currentIndex-5>1?this.currentIndex-=5:this.currentIndex=1);if(t>=6)return void(this.currentIndex+5>e?this.currentIndex=e:this.currentIndex+=5)}},clickLeft(){1!==Number(this.currentIndex)&&(this.currentIndex-=1,this.change("prev"))},clickRight(){Number(this.currentIndex)>=this.maxPage||(this.currentIndex+=1,this.change("next"))},change(e){this.$emit("input",this.currentIndex),this.$emit("update:modelValue",this.currentIndex),this.$emit("change",{type:e,current:this.currentIndex})}}};const dr=a(cr,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-pagination"},[!0===i.showPageSize||"true"===i.showPageSize?(e.openBlock(),e.createElementBlock("picker",{key:0,class:"select-picker",mode:"selector",value:s.pageSizeIndex,range:i.pageSizeRange,onChange:a[0]||(a[0]=(...e)=>l.pickerChange&&l.pickerChange(...e)),onCancel:a[1]||(a[1]=(...e)=>l.pickerClick&&l.pickerClick(...e)),onClick:a[2]||(a[2]=(...e)=>l.pickerClick&&l.pickerClick(...e))},[e.createElementVNode("button",{type:"default",size:"mini",plain:!0},[e.createElementVNode("text",null,e.toDisplayString(i.pageSizeRange[s.pageSizeIndex])+" "+e.toDisplayString(l.piecePerPage),1),e.createVNode(r,{class:"select-picker-icon",type:"arrowdown",size:"12",color:"#999"})])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-pagination__total is-phone-hide"},"共 "+e.toDisplayString(i.total)+" 条",1),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",1===s.currentIndex?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":1===s.currentIndex?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:a[3]||(a[3]=(...e)=>l.clickLeft&&l.clickLeft(...e))},[!0===i.showIcon||"true"===i.showIcon?(e.openBlock(),e.createBlock(r,{key:0,color:"#666",size:"16",type:"left"})):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(l.prevPageText),1))],10,["hover-class"]),e.createElementVNode("view",{class:"uni-pagination__num uni-pagination__num-flex-none"},[e.createElementVNode("view",{class:"uni-pagination__num-current"},[e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide current-index-text"},e.toDisplayString(s.currentIndex),1),e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide"},"/"+e.toDisplayString(l.maxPage||0),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.paper,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass([{"page--active":t===s.currentIndex},"uni-pagination__num-tag tag--active is-phone-hide"]),onClick:e=>l.selectPage(t,a)},[e.createElementVNode("text",null,e.toDisplayString(t),1)],10,["onClick"])))),128))])]),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",s.currentIndex>=l.maxPage?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":s.currentIndex===l.maxPage?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:a[4]||(a[4]=(...e)=>l.clickRight&&l.clickRight(...e))},[!0===i.showIcon||"true"===i.showIcon?(e.openBlock(),e.createBlock(r,{key:0,color:"#666",size:"16",type:"right"})):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(l.nextPageText),1))],10,["hover-class"])])}],["__scopeId","data-v-e95c131e"]]),ur={components:{},data:()=>({current:3,total:10,pageSize:10}),mounted(){setTimeout((()=>{this.current=5}),3e3)},methods:{add(){this.total+=10},reset(){this.total=0,this.current=1},change(e){n("log","at pages/extUI/pagination/pagination.vue:55",e),this.current=e.current}}};const hr=a(ur,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-pagination"),dr),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"分页器组件,用于展示页码、请求数据等")])),_:1}),e.createVNode(d,{title:"默认样式",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{total:50,title:"标题文字"})])),_:1}),e.createVNode(d,{title:"修改按钮文字",subTitle:"使用 prev-text / next-text 属性修改按钮文字",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{total:50,title:"标题文字","prev-text":"前一页","next-text":"后一页"})])),_:1}),e.createVNode(d,{title:"图标样式",subTitle:"使用 show-icon 属性显示图标按钮",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{"show-icon":!0,total:50,title:"标题文字"})])),_:1}),e.createVNode(d,{title:"修改数据长度",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{current:s.current,total:s.total,pageSize:20,title:"标题文字","show-icon":!0,onChange:l.change},null,8,["current","total","onChange"]),e.createElementVNode("view",{class:"btn-view"},[e.createElementVNode("view",null,[e.createElementVNode("text",{class:"example-info"},"当前页:"+e.toDisplayString(s.current)+",数据总量:"+e.toDisplayString(s.total)+"条,每页数据:"+e.toDisplayString(s.pageSize),1)]),e.createElementVNode("view",{class:"btn-flex"},[e.createElementVNode("button",{class:"button word-btn","hover-class":"word-btn--hover","hover-start-time":20,"hover-stay-time":70,onClick:a[0]||(a[0]=(...e)=>l.add&&l.add(...e))},[e.createElementVNode("text",{class:"word-btn-white"},"增加10条数据")]),e.createElementVNode("button",{class:"button",type:"default",onClick:a[1]||(a[1]=(...e)=>l.reset&&l.reset(...e))},"重置数据")])])])),_:1})])}]]);const pr=a({name:"UniSteps",props:{direction:{type:String,default:"row"},activeColor:{type:String,default:"#2979FF"},deactiveColor:{type:String,default:"#B7BDC6"},active:{type:Number,default:0},activeIcon:{type:String,default:"checkbox-filled"},options:{type:Array,default:()=>[]}},data:()=>({})},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-steps"},[e.createElementVNode("view",{class:e.normalizeClass(["column"===i.direction?"uni-steps__column":"uni-steps__row"])},[e.createElementVNode("view",{class:e.normalizeClass(["column"===i.direction?"uni-steps__column-text-container":"uni-steps__row-text-container"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass(["column"===i.direction?"uni-steps__column-text":"uni-steps__row-text"])},[e.createElementVNode("text",{style:e.normalizeStyle({color:a===i.active?i.activeColor:i.deactiveColor}),class:e.normalizeClass(["column"===i.direction?"uni-steps__column-title":"uni-steps__row-title"])},e.toDisplayString(t.title),7),e.createElementVNode("text",{style:e.normalizeStyle({color:i.deactiveColor}),class:e.normalizeClass(["column"===i.direction?"uni-steps__column-desc":"uni-steps__row-desc"])},e.toDisplayString(t.desc),7)],2)))),128))],2),e.createElementVNode("view",{class:e.normalizeClass(["column"===i.direction?"uni-steps__column-container":"uni-steps__row-container"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["column"===i.direction?"uni-steps__column-line-item":"uni-steps__row-line-item"]),key:a},[e.createElementVNode("view",{class:e.normalizeClass(["column"===i.direction?"uni-steps__column-line":"uni-steps__row-line","column"===i.direction?"uni-steps__column-line--before":"uni-steps__row-line--before"]),style:e.normalizeStyle({backgroundColor:a<=i.active&&0!==a?i.activeColor:0===a?"transparent":i.deactiveColor})},null,6),a===i.active?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["column"===i.direction?"uni-steps__column-check":"uni-steps__row-check"])},[e.createVNode(r,{color:i.activeColor,type:i.activeIcon,size:"14"},null,8,["color","type"])],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["column"===i.direction?"uni-steps__column-circle":"uni-steps__row-circle"]),style:e.normalizeStyle({backgroundColor:a({active:1,list1:[{title:"事件一"},{title:"事件二"},{title:"事件三"},{title:"事件四"}],list2:[{title:"买家下单",desc:"2018-11-11"},{title:"卖家发货",desc:"2018-11-12"},{title:"买家签收",desc:"2018-11-13"},{title:"交易完成",desc:"2018-11-14"}]}),methods:{change(){this.active[e.createVNode(r,{options:s.list1,active:s.active},null,8,["options","active"])])),_:1}),e.createVNode(c,{title:"自定义图标",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(r,{options:s.list1,"active-icon":"checkbox",active:s.active},null,8,["options","active"])])),_:1}),e.createVNode(c,{title:"自定义图标",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(r,{options:s.list1,"active-icon":"medal",active:s.active},null,8,["options","active"])])),_:1}),e.createVNode(c,{title:"纵向排列",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(r,{options:s.list2,"active-color":"#007AFF",active:s.active,direction:"column"},null,8,["options","active"])])),_:1}),e.createElementVNode("button",{type:"primary",size:"mini",style:{margin:"30px 10px",width:"100px"},onClick:a[0]||(a[0]=(...e)=>l.change&&l.change(...e))},"改变状态")])}]]);const gr=a({name:"UniNoticeBar",emits:["click","getmore","close"],props:{text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:"#FFF9EA"},speed:{type:Number,default:100},color:{type:String,default:"#FF9A43"},fontSize:{type:Number,default:14},moreColor:{type:String,default:"#FF9A43"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},data:()=>({textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,elIdBox:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}),computed:{isShowGetMore(){return!0===this.showGetMore||"true"===this.showGetMore},isShowClose(){return!(!0!==this.showClose&&"true"!==this.showClose||!1!==this.showGetMore&&"false"!==this.showGetMore)}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1})),this.$nextTick((()=>{this.initSize()}))},methods:{initSize(){if(this.scrollable){let e=[],t=new Promise(((e,t)=>{uni.createSelectorQuery().in(this).select(`#${this.elId}`).boundingClientRect().exec((t=>{this.textWidth=t[0].width,e()}))})),a=new Promise(((e,t)=>{uni.createSelectorQuery().in(this).select(`#${this.elIdBox}`).boundingClientRect().exec((t=>{this.boxWidth=t[0].width,e()}))}));e.push(t),e.push(a),Promise.all(e).then((()=>{this.animationDuration=this.textWidth/this.speed+"s",this.animationDelay=`-${this.boxWidth/this.speed}s`,setTimeout((()=>{this.animationPlayState="running"}),1e3)}))}},loopAnimation(){},clickMore(){this.$emit("getmore")},close(){this.show=!1,this.$emit("close")},onClick(){this.$emit("click")}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return s.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-noticebar",style:e.normalizeStyle({backgroundColor:i.backgroundColor}),onClick:a[1]||(a[1]=(...e)=>l.onClick&&l.onClick(...e))},[!0===i.showIcon||"true"===i.showIcon?(e.openBlock(),e.createBlock(r,{key:0,class:"uni-noticebar-icon",type:"sound",color:i.color,size:1.5*i.fontSize},null,8,["color","size"])):e.createCommentVNode("",!0),e.createElementVNode("view",{ref:"textBox",class:e.normalizeClass(["uni-noticebar__content-wrapper",{"uni-noticebar__content-wrapper--scrollable":i.scrollable,"uni-noticebar__content-wrapper--single":!i.scrollable&&(i.single||i.moreText)}]),style:e.normalizeStyle({height:i.scrollable?1.5*i.fontSize+"px":"auto"})},[e.createElementVNode("view",{id:s.elIdBox,class:e.normalizeClass(["uni-noticebar__content",{"uni-noticebar__content--scrollable":i.scrollable,"uni-noticebar__content--single":!i.scrollable&&(i.single||i.moreText)}])},[e.createElementVNode("text",{id:s.elId,ref:"animationEle",class:e.normalizeClass(["uni-noticebar__content-text",{"uni-noticebar__content-text--scrollable":i.scrollable,"uni-noticebar__content-text--single":!i.scrollable&&(i.single||i.showGetMore)}]),style:e.normalizeStyle({color:i.color,fontSize:i.fontSize+"px",lineHeight:1.5*i.fontSize+"px",width:s.wrapWidth+"px",animationDuration:s.animationDuration,"-webkit-animationDuration":s.animationDuration,animationPlayState:s.webviewHide?"paused":s.animationPlayState,"-webkit-animationPlayState":s.webviewHide?"paused":s.animationPlayState,animationDelay:s.animationDelay,"-webkit-animationDelay":s.animationDelay})},e.toDisplayString(i.text),15,["id"])],10,["id"])],6),l.isShowGetMore?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-noticebar__more uni-cursor-point",onClick:a[0]||(a[0]=(...e)=>l.clickMore&&l.clickMore(...e))},[i.moreText.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,style:e.normalizeStyle({color:i.moreColor,fontSize:i.fontSize+"px"})},e.toDisplayString(i.moreText),5)):(e.openBlock(),e.createBlock(r,{key:1,type:"right",color:i.moreColor,size:1.1*i.fontSize},null,8,["color","size"]))])):e.createCommentVNode("",!0),l.isShowClose?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-noticebar-close uni-cursor-point"},[e.createVNode(r,{type:"closeempty",color:i.color,size:1.1*i.fontSize,onClick:l.close},null,8,["color","size","onClick"])])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)}],["__scopeId","data-v-4e374b08"]]);const fr=a({components:{},data:()=>({}),created(){},methods:{getMore(){uni.showToast({title:"点击查看更多",icon:"none"})}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-notice-bar"),gr),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"通告栏组件多用于系统通知,广告通知等场景,可自定义图标,颜色,展现方式等。")])),_:1}),e.createVNode(d,{title:"多行显示",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{text:"uni-app 版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。"})])),_:1}),e.createVNode(d,{title:"单行显示",subTitle:"使用 single 属性单行显示通知",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{single:"",text:"uni-app 版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。"})])),_:1}),e.createVNode(d,{title:"显示图标",subTitle:"使用 show-icon 属性显示左侧小喇叭图标",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{"show-icon":"",text:"uni-app发布,开发一次、7端覆盖!"})])),_:1}),e.createVNode(d,{title:"文字滚动",subTitle:"使用 scrollable 属性使通告滚动,此时 single 属性将失效,始终单行显示",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{"show-icon":"",scrollable:"",text:"uni-app 版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。"})])),_:1}),e.createVNode(d,{title:"查看更多",subTitle:"使用 show-get-more 显示更多,此时 single 属性将失效,始终单行显示,如不配置 more-text 属性 ,将显示箭头图标",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{"show-get-more":"","show-icon":"",text:"年末大礼:uni-app1.4 新增百度、支付宝小程序。插件市场重磅上线!",onGetmore:l.getMore},null,8,["onGetmore"]),e.createVNode(c,{"show-get-more":"","show-icon":"","more-text":"查看更多",text:"年末大礼:uni-app1.4 新增百度、支付宝小程序。插件市场重磅上线!",onGetmore:l.getMore},null,8,["onGetmore"])])),_:1}),e.createVNode(d,{title:"修改颜色",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{single:"",color:"#2979FF","background-color":"#EAF2FF",text:"uni-app 1.6版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。"})])),_:1}),e.createVNode(d,{title:"关闭按钮",subTitle:"使用 show-close 属性,可关闭通知",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{"show-close":"",single:"",text:"HBuilderX 1.0正式发布!uni-app实现里程碑突破实现里程碑突破!"})])),_:1})])}]]);let yr={};yr={data:()=>({is_show:"none"}),watch:{show(e){this.is_show=this.show}},created(){this.swipeaction=this.getSwipeAction(),void 0!==this.swipeaction.children&&this.swipeaction.children.push(this)},mounted(){this.is_show=this.show},methods:{closeSwipe(e){this.autoClose&&this.swipeaction.closeOther(this)},change(e){this.$emit("change",e.open),this.is_show!==e.open&&(this.is_show=e.open)},appTouchStart(e){const{clientX:t}=e.changedTouches[0];this.clientX=t,this.timestamp=(new Date).getTime()},appTouchEnd(e,t,a,i){const{clientX:n}=e.changedTouches[0];let o=Math.abs(this.clientX-n),s=(new Date).getTime()-this.timestamp;o<40&&s<300&&this.$emit("click",{content:a,index:t,position:i})},onClickForPC(e,t,a){}}};const vr=e=>{(e.$wxs||(e.$wxs=[])).push("wxsswipe"),(e.$wxsModules||(e.$wxsModules={})).wxsswipe="afd46426"},br=e=>{(e.$renderjs||(e.$renderjs=[])).push("renderswipe"),(e.$renderjsModules||(e.$renderjsModules={})).renderswipe="5a1e922e"},wr={mixins:[yr,{},{}],emits:["click","change"],props:{show:{type:String,default:"none"},disabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},threshold:{type:Number,default:20},leftOptions:{type:Array,default:()=>[]},rightOptions:{type:Array,default:()=>[]}},unmounted(){this.__isUnmounted=!0,this.uninstall()},methods:{uninstall(){this.swipeaction&&this.swipeaction.children.forEach(((e,t)=>{e===this&&this.swipeaction.children.splice(t,1)}))},getSwipeAction(e="uniSwipeAction"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}};vr(wr),br(wr);const kr=a(wr,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-swipe"},[e.createElementVNode("view",{class:"uni-swipe_box","change:prop":t.wxsswipe.showWatch,prop:e.wp(t.is_show),"data-threshold":i.threshold,"data-disabled":i.disabled,onTouchstart:a[2]||(a[2]=(...e)=>t.wxsswipe.touchstart&&t.wxsswipe.touchstart(...e)),onTouchmove:a[3]||(a[3]=(...e)=>t.wxsswipe.touchmove&&t.wxsswipe.touchmove(...e)),onTouchend:a[4]||(a[4]=(...e)=>t.wxsswipe.touchend&&t.wxsswipe.touchend(...e))},[e.createElementVNode("view",{class:"uni-swipe_button-group button-group--left"},[e.renderSlot(t.$slots,"left",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.leftOptions,((i,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,style:e.normalizeStyle({backgroundColor:i.style&&i.style.backgroundColor?i.style.backgroundColor:"#C7C6CD"}),class:"uni-swipe_button button-hock",onTouchstart:a[0]||(a[0]=(...e)=>t.appTouchStart&&t.appTouchStart(...e)),onTouchend:e=>t.appTouchEnd(e,n,i,"left"),onClick:e.withModifiers((e=>t.onClickForPC(n,i,"left")),["stop"])},[e.createElementVNode("text",{class:"uni-swipe_button-text",style:e.normalizeStyle({color:i.style&&i.style.color?i.style.color:"#FFFFFF",fontSize:i.style&&i.style.fontSize?i.style.fontSize:"16px"})},e.toDisplayString(i.text),5)],44,["onTouchend","onClick"])))),128))]),!0)]),e.createElementVNode("view",{class:"uni-swipe_text--center"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"uni-swipe_button-group button-group--right"},[e.renderSlot(t.$slots,"right",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.rightOptions,((i,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,style:e.normalizeStyle({backgroundColor:i.style&&i.style.backgroundColor?i.style.backgroundColor:"#C7C6CD"}),class:"uni-swipe_button button-hock",onTouchstart:a[1]||(a[1]=(...e)=>t.appTouchStart&&t.appTouchStart(...e)),onTouchend:e=>t.appTouchEnd(e,n,i,"right"),onClick:e.withModifiers((e=>t.onClickForPC(n,i,"right")),["stop"])},[e.createElementVNode("text",{class:"uni-swipe_button-text",style:e.normalizeStyle({color:i.style&&i.style.color?i.style.color:"#FFFFFF",fontSize:i.style&&i.style.fontSize?i.style.fontSize:"16px"})},e.toDisplayString(i.text),5)],44,["onTouchend","onClick"])))),128))]),!0)])],40,["change:prop","prop","data-threshold","data-disabled"])])}],["__scopeId","data-v-f7da9057"]]);const xr=a({name:"uniSwipeAction",data:()=>({}),created(){this.children=[]},methods:{resize(){},closeAll(){this.children.forEach((e=>{e.is_show="none"}))},closeOther(e){this.openItem&&this.openItem!==e&&(this.openItem.is_show="none"),this.openItem=e}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",null,[e.renderSlot(t.$slots,"default")])}]]),Vr={components:{},data:()=>({show:!1,isOpened:"none",options1:[{text:"取消置顶"}],options2:[{text:"取消",style:{backgroundColor:"#007aff"}},{text:"确认",style:{backgroundColor:"#F56C6C"}}],swipeList:[{options:[{text:"添加",style:{backgroundColor:"#F56C6C"}}],id:0,content:"左滑点击添加新增一条数据"},{id:1,options:[{text:"置顶"},{text:"删除",style:{backgroundColor:"rgb(255,58,49)"}}],content:"item2"},{id:2,options:[{text:"置顶"},{text:"标记为已读",style:{backgroundColor:"rgb(254,156,1)"}},{text:"删除",style:{backgroundColor:"rgb(255,58,49)"}}],content:"item3"}]}),onReady(){setTimeout((()=>{this.isOpened="right"}),1e3),uni.$on("update",(e=>{n("log","at pages/extUI/swipe-action/swipe-action.vue:187",111),this.swipeClick({content:{text:"添加"}})}))},methods:{contentClick(){n("log","at pages/extUI/swipe-action/swipe-action.vue:197","点击内容"),uni.showToast({title:"点击内容",icon:"none"})},bindClick(e){n("log","at pages/extUI/swipe-action/swipe-action.vue:204",e),uni.showToast({title:`点击了${"left"===e.position?"左侧":"右侧"} ${e.content.text}按钮`,icon:"none"})},setOpened(){"none"!==this.isOpened?"left"!==this.isOpened?"right"!==this.isOpened||(this.isOpened="none"):this.isOpened="right":this.isOpened="left"},change(e){this.isOpened=e,n("log","at pages/extUI/swipe-action/swipe-action.vue:226","返回:",e)},swipeChange(e,t){n("log","at pages/extUI/swipe-action/swipe-action.vue:229","返回:",e),n("log","at pages/extUI/swipe-action/swipe-action.vue:230","当前索引:",t)},swipeClick(e,t){let{content:a}=e;"删除"===a.text?uni.showModal({title:"提示",content:"是否删除",success:e=>{e.confirm?this.swipeList.splice(t,1):e.cancel&&n("log","at pages/extUI/swipe-action/swipe-action.vue:244","用户点击取消")}}):"添加"===a.text?this.swipeList.length<10?(this.swipeList.push({id:(new Date).getTime(),options:[{text:"置顶"},{text:"标记为已读",style:{backgroundColor:"rgb(254,156,1)"}},{text:"删除",style:{backgroundColor:"rgb(255,58,49)"}}],content:"新增"+(new Date).getTime()}),uni.showToast({title:"添加了一条数据",icon:"none"})):uni.showToast({title:"最多添加十条数据",icon:"none"}):uni.showToast({title:`点击了${e.content.text}按钮`,icon:"none"})}}};const Nr=a(Vr,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl),d=o(e.resolveDynamicComponent("uni-swipe-action-item"),kr),u=o(e.resolveDynamicComponent("uni-swipe-action"),xr);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"通过滑动触发选项的容器,容器内可放置列表等组件,通过左右滑动来触发一些操作。")])),_:1}),e.createVNode(c,{title:"基本用法",type:"line"}),e.createVNode(u,null,{default:e.withCtx((()=>[e.createVNode(d,{"left-options":s.options2,threshold:0,"right-options":s.options1,onClick:l.bindClick},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box",onClick:a[0]||(a[0]=(...e)=>l.contentClick&&l.contentClick(...e))},[e.createElementVNode("text",{class:"content-text"},"使用数据填充")])])),_:1},8,["left-options","right-options","onClick"]),e.createVNode(d,{onClick:l.bindClick},{left:e.withCtx((()=>[e.createElementVNode("view",{class:"slot-button"},[e.createElementVNode("text",{class:"slot-button-text",onClick:a[1]||(a[1]=e=>l.bindClick({position:"left",content:{text:"置顶"}}))},"置顶")])])),right:e.withCtx((()=>[e.createElementVNode("view",{class:"slot-button",onClick:a[3]||(a[3]=e=>l.bindClick({position:"right",content:{text:"删除"}}))},[e.createElementVNode("text",{class:"slot-button-text"},"删除")])])),default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box",onClick:a[2]||(a[2]=(...e)=>l.contentClick&&l.contentClick(...e))},[e.createElementVNode("text",{class:"content-text"},"使用左右插槽")])])),_:1},8,["onClick"]),e.createVNode(d,{"right-options":s.options1,onClick:l.bindClick},{left:e.withCtx((()=>[e.createElementVNode("view",{class:"slot-button"},[e.createElementVNode("text",{class:"slot-button-text",onClick:a[4]||(a[4]=e=>l.bindClick({position:"left",content:{text:"置顶"}}))},"置顶")])])),default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box",onClick:a[5]||(a[5]=(...e)=>l.contentClick&&l.contentClick(...e))},[e.createElementVNode("text",{class:"content-text"},"数据与插槽混合使用")])])),_:1},8,["right-options","onClick"])])),_:1}),e.createVNode(c,{title:"禁止滑动",type:"line"}),e.createVNode(u,null,{default:e.withCtx((()=>[e.createVNode(d,{disabled:!0},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box"},[e.createElementVNode("text",{class:"content-text"},"禁止左右滚动")])])),_:1})])),_:1}),e.createVNode(c,{title:"使用变量控制开关",type:"line"}),e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("view",{class:"button",onClick:a[6]||(a[6]=(...e)=>l.setOpened&&l.setOpened(...e))},[e.createElementVNode("text",{class:"button-text"},"当前状态:"+e.toDisplayString(s.isOpened),1)])]),e.createVNode(u,null,{default:e.withCtx((()=>[e.createVNode(d,{"left-options":s.options2,"right-options":s.options2,show:s.isOpened,"auto-close":!1,onChange:l.change,onClick:l.bindClick},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box"},[e.createElementVNode("text",{class:"content-text"},"使用变量控制SwipeAction的开启状态")])])),_:1},8,["left-options","right-options","show","onChange","onClick"])])),_:1}),e.createVNode(c,{title:"swipe-action 列表",type:"line"}),e.createVNode(u,{ref:"swipeAction"},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.swipeList,((t,a)=>(e.openBlock(),e.createBlock(d,{"right-options":t.options,key:t.id,onChange:e=>l.swipeChange(e,a),onClick:e=>l.swipeClick(e,a)},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box"},[e.createElementVNode("text",{class:"content-text"},e.toDisplayString(t.content),1)])])),_:2},1032,["right-options","onChange","onClick"])))),128))])),_:1},512)])}]]),_r={en:{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"},"zh-Hans":{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"请输入搜索内容"},"zh-Hant":{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"請輸入搜索內容"}},{t:Er}=Js(_r),Cr={name:"UniSearchBar",emits:["input","update:modelValue","clear","cancel","confirm","blur","focus"],props:{placeholder:{type:String,default:""},radius:{type:[Number,String],default:5},clearButton:{type:String,default:"auto"},cancelButton:{type:String,default:"auto"},cancelText:{type:String,default:"取消"},bgColor:{type:String,default:"#F8F8F8"},maxlength:{type:[Number,String],default:100},value:{type:[Number,String],default:""},modelValue:{type:[Number,String],default:""},focus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:()=>({show:!1,showSync:!1,searchVal:""}),computed:{cancelTextI18n(){return this.cancelText||Er("uni-search-bar.cancel")},placeholderText(){return this.placeholder||Er("uni-search-bar.placeholder")}},watch:{modelValue:{immediate:!0,handler(e){this.searchVal=e,e&&(this.show=!0)}},focus:{immediate:!0,handler(e){if(e){if(this.readonly)return;this.show=!0,this.$nextTick((()=>{this.showSync=!0}))}}},searchVal(e,t){this.$emit("input",e),this.$emit("update:modelValue",e)}},methods:{searchClick(){this.readonly||this.show||(this.show=!0,this.$nextTick((()=>{this.showSync=!0})))},clear(){this.$emit("clear",{value:this.searchVal}),this.searchVal=""},cancel(){this.readonly||(this.$emit("cancel",{value:this.searchVal}),this.searchVal="",this.show=!1,this.showSync=!1,plus.key.hideSoftKeybord())},confirm(){plus.key.hideSoftKeybord(),this.$emit("confirm",{value:this.searchVal})},blur(){plus.key.hideSoftKeybord(),this.$emit("blur",{value:this.searchVal})},emitFocus(e){this.$emit("focus",e.detail)}}};const Sr=a(Cr,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-searchbar"},[e.createElementVNode("view",{style:e.normalizeStyle({borderRadius:i.radius+"px",backgroundColor:i.bgColor}),class:"uni-searchbar__box",onClick:a[5]||(a[5]=(...e)=>l.searchClick&&l.searchClick(...e))},[e.createElementVNode("view",{class:"uni-searchbar__box-icon-search"},[e.renderSlot(t.$slots,"searchIcon",{},(()=>[e.createVNode(r,{color:"#c0c4cc",size:"18",type:"search"})]),!0)]),s.show||s.searchVal?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,focus:s.showSync,disabled:i.readonly,placeholder:l.placeholderText,maxlength:i.maxlength,class:"uni-searchbar__box-search-input","confirm-type":"search",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>s.searchVal=e),onConfirm:a[1]||(a[1]=(...e)=>l.confirm&&l.confirm(...e)),onBlur:a[2]||(a[2]=(...e)=>l.blur&&l.blur(...e)),onFocus:a[3]||(a[3]=(...e)=>l.emitFocus&&l.emitFocus(...e))},null,40,["focus","disabled","placeholder","maxlength"])),[[e.vModelText,s.searchVal]]):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-searchbar__text-placeholder"},e.toDisplayString(i.placeholder),1)),s.show&&("always"===i.clearButton||"auto"===i.clearButton&&""!==s.searchVal)&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-searchbar__box-icon-clear",onClick:a[4]||(a[4]=(...e)=>l.clear&&l.clear(...e))},[e.renderSlot(t.$slots,"clearIcon",{},(()=>[e.createVNode(r,{color:"#c0c4cc",size:"20",type:"clear"})]),!0)])):e.createCommentVNode("",!0)],4),"always"===i.cancelButton||s.show&&"auto"===i.cancelButton?(e.openBlock(),e.createElementBlock("text",{key:0,onClick:a[6]||(a[6]=(...e)=>l.cancel&&l.cancel(...e)),class:"uni-searchbar__cancel"},e.toDisplayString(l.cancelTextI18n),1)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-c0062357"]]),Tr={data:()=>({searchValue:"123123"}),methods:{search(e){uni.showToast({title:"搜索:"+e.value,icon:"none"})},input(e){n("log","at pages/extUI/search-bar/search-bar.vue:52","----input:",e)},clear(e){uni.showToast({title:"clear事件,清除值为:"+e.value,icon:"none"})},blur(e){uni.showToast({title:"blur事件,输入值为:"+e.value,icon:"none"})},focus(e){uni.showToast({title:"focus事件,输出值为:"+e.value,icon:"none"})},cancel(e){uni.showToast({title:"点击取消,输入值为:"+e.value,icon:"none"})}},onBackPress(){plus.key.hideSoftKeybord()}};const Dr=a(Tr,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-search-bar"),Sr),d=o(e.resolveDynamicComponent("uni-section"),Tl),u=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"搜索栏组件,通常用于搜索商品、文章等。")])),_:1}),e.createVNode(d,{title:"基本用法",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{onConfirm:l.search,focus:!0,modelValue:s.searchValue,"onUpdate:modelValue":a[0]||(a[0]=e=>s.searchValue=e),onBlur:l.blur,onFocus:l.focus,onInput:l.input,onCancel:l.cancel,onClear:l.clear},null,8,["onConfirm","modelValue","onBlur","onFocus","onInput","onCancel","onClear"]),e.createElementVNode("view",{class:"search-result"},[e.createElementVNode("text",{class:"search-result-text"},"当前输入为:"+e.toDisplayString(s.searchValue),1)])])),_:1}),e.createVNode(d,{title:"自定义样式",subTitle:"使用 bgColor 属性自定义背景色",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{placeholder:"自定义背景色",bgColor:"#EEEEEE",onConfirm:l.search},null,8,["onConfirm"])])),_:1}),e.createVNode(d,{title:"只读样式",subTitle:"使用 readonly 使搜索框只读",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{readonly:"",placeholder:"自定义背景色",onConfirm:l.search},null,8,["onConfirm"])])),_:1}),e.createVNode(d,{title:"自定义icon",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{placeholder:"自定义searchIcon",onConfirm:l.search,onCancel:l.cancel,"cancel-text":"cancel"},{default:e.withCtx((()=>[e.createVNode(u,{slot:"searchIcon",color:"#999999",size:"18",type:"home"})])),_:1},8,["onConfirm","onCancel"])])),_:1}),e.createVNode(d,{title:"控制清除/取消按钮",subTitle:"使用 clearButton 属性设置清除按钮",type:"line"},{default:e.withCtx((()=>[e.createVNode(c,{radius:"5",placeholder:"一直显示",clearButton:"always",cancelButton:"always",onConfirm:l.search,onCancel:l.cancel},null,8,["onConfirm","onCancel"]),e.createVNode(c,{class:"uni-mt-10",radius:"5",placeholder:"自动显示隐藏",clearButton:"auto",cancelButton:"none",onConfirm:l.search},null,8,["onConfirm"]),e.createVNode(c,{class:"uni-mt-10",radius:"100",placeholder:"一直不显示",clearButton:"none",cancelButton:"none",onConfirm:l.search},null,8,["onConfirm"])])),_:1})])}]]);var Br={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(e){var t,a=348;for(t=32768;t>8;t>>=1)a+=this.lunarInfo[e-1900]&t?1:0;return a+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var a=t-1;return 1==a?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[a]},toGanZhiYear:function(e){var t=(e-3)%10,a=(e-3)%12;return 0==t&&(t=10),0==a&&(a=12),this.Gan[t-1]+this.Zhi[a-1]},toAstro:function(e,t){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*e-(t<[20,19,21,21,21,22,23,23,23,23,22,22][e-1]?2:0),2)+"座"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var a=this.sTermInfo[e-1900],i=[parseInt("0x"+a.substr(0,5)).toString(),parseInt("0x"+a.substr(5,5)).toString(),parseInt("0x"+a.substr(10,5)).toString(),parseInt("0x"+a.substr(15,5)).toString(),parseInt("0x"+a.substr(20,5)).toString(),parseInt("0x"+a.substr(25,5)).toString()],n=[i[0].substr(0,1),i[0].substr(1,2),i[0].substr(3,1),i[0].substr(4,2),i[1].substr(0,1),i[1].substr(1,2),i[1].substr(3,1),i[1].substr(4,2),i[2].substr(0,1),i[2].substr(1,2),i[2].substr(3,1),i[2].substr(4,2),i[3].substr(0,1),i[3].substr(1,2),i[3].substr(3,1),i[3].substr(4,2),i[4].substr(0,1),i[4].substr(1,2),i[4].substr(3,1),i[4].substr(4,2),i[5].substr(0,1),i[5].substr(1,2),i[5].substr(3,1),i[5].substr(4,2)];return parseInt(n[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月"},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,a){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&a<31)return-1;if(e)i=new Date(e,parseInt(t)-1,a);else var i=new Date;var n,o=0,s=(e=i.getFullYear(),t=i.getMonth()+1,a=i.getDate(),(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(1900,0,31))/864e5);for(n=1900;n<2101&&s>0;n++)s-=o=this.lYearDays(n);s<0&&(s+=o,n--);var l=new Date,r=!1;l.getFullYear()==e&&l.getMonth()+1==t&&l.getDate()==a&&(r=!0);var c=i.getDay(),d=this.nStr1[c];0==c&&(c=7);var u=n,h=this.leapMonth(n),p=!1;for(n=1;n<13&&s>0;n++)h>0&&n==h+1&&0==p?(--n,p=!0,o=this.leapDays(u)):o=this.monthDays(u,n),1==p&&n==h+1&&(p=!1),s-=o;0==s&&h>0&&n==h+1&&(p?p=!1:(p=!0,--n)),s<0&&(s+=o,--n);var m=n,g=s+1,f=t-1,y=this.toGanZhiYear(u),v=this.getTerm(e,2*t-1),b=this.getTerm(e,2*t),w=this.toGanZhi(12*(e-1900)+t+11);a>=v&&(w=this.toGanZhi(12*(e-1900)+t+12));var k=!1,x=null;v==a&&(k=!0,x=this.solarTerm[2*t-2]),b==a&&(k=!0,x=this.solarTerm[2*t-1]);var V=Date.UTC(e,f,1,0,0,0,0)/864e5+25567+10,N=this.toGanZhi(V+a-1),_=this.toAstro(t,a);return{lYear:u,lMonth:m,lDay:g,Animal:this.getAnimal(u),IMonthCn:(p?"闰":"")+this.toChinaMonth(m),IDayCn:this.toChinaDay(g),cYear:e,cMonth:t,cDay:a,gzYear:y,gzMonth:w,gzDay:N,isToday:r,isLeap:p,nWeek:c,ncWeek:"星期"+d,isTerm:k,Term:x,astro:_}},lunar2solar:function(e,t,a,i){i=!!i;var n=this.leapMonth(e);if(this.leapDays(e),i&&n!=t)return-1;if(2100==e&&12==t&&a>1||1900==e&&1==t&&a<31)return-1;var o=this.monthDays(e,t),s=o;if(i&&(s=this.leapDays(e,t)),e<1900||e>2100||a>s)return-1;for(var l=0,r=1900;r0&&(l+=this.leapDays(e),d=!0),l+=this.monthDays(e,r);i&&(l+=o);var u=Date.UTC(1900,1,30,0,0,0),h=new Date(864e5*(l+a-31)+u),p=h.getUTCFullYear(),m=h.getUTCMonth()+1,g=h.getUTCDate();return this.solar2lunar(p,m,g)}};class Ir{constructor({date:e,selected:t,startDate:a,endDate:i,range:n}={}){this.date=this.getDate(new Date),this.selected=t||[],this.startDate=a,this.endDate=i,this.range=n,this.cleanMultipleStatus(),this.weeks={}}setDate(e){this.selectDate=this.getDate(e),this._getWeek(this.selectDate.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}resetSatrtDate(e){this.startDate=e}resetEndDate(e){this.endDate=e}getDate(e,t=0,a="day"){e||(e=new Date),"object"!=typeof e&&(e=e.replace(/-/g,"/"));const i=new Date(e);switch(a){case"day":i.setDate(i.getDate()+t);break;case"month":31===i.getDate()?i.setDate(i.getDate()+t):i.setMonth(i.getMonth()+t);break;case"year":i.setFullYear(i.getFullYear()+t)}const n=i.getFullYear(),o=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,s=i.getDate()<10?"0"+i.getDate():i.getDate();return{fullDate:n+"-"+o+"-"+s,year:n,month:o,date:s,day:i.getDay()}}_getLastMonthDays(e,t){let a=[];for(let i=e;i>0;i--){const e=new Date(t.year,t.month-1,1-i).getDate();a.push({date:e,month:t.month-1,lunar:this.getlunar(t.year,t.month-1,e),disable:!0})}return a}_currentMonthDys(e,t){let a=[],i=this.date.fullDate;for(let n=1;n<=e;n++){let e=t.year+"-"+(t.month,t.month+"-")+(n<10?"0"+n:n),o=i===e,s=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t})),l=!0,r=!0;this.startDate&&(l=this.dateCompare(this.startDate,e)),this.endDate&&(r=this.dateCompare(e,this.endDate));let c=this.multipleStatus.data,d=!1,u=-1;this.range&&(c&&(u=c.findIndex((t=>this.dateEqual(t,e)))),-1!==u&&(d=!0));let h={fullDate:e,year:t.year,date:n,multiple:!!this.range&&d,beforeMultiple:this.dateEqual(this.multipleStatus.before,e),afterMultiple:this.dateEqual(this.multipleStatus.after,e),month:t.month,lunar:this.getlunar(t.year,t.month,n),disable:!(l&&r),isDay:o};s&&(h.extraInfo=s),a.push(h)}return a}_getNextMonthDays(e,t){let a=[];for(let i=1;it.fullDate===this.getDate(e).fullDate))}dateCompare(e,t){return(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/")))}dateEqual(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e.getTime()-t.getTime()==0}geDateAll(e,t){var a=[],i=e.split("-"),n=t.split("-"),o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);var s=new Date;s.setFullYear(n[0],n[1]-1,n[2]);for(var l=o.getTime()-864e5,r=s.getTime()-864e5,c=l;c<=r;)c+=864e5,a.push(this.getDate(new Date(parseInt(c))).fullDate);return a}getlunar(e,t,a){return Br.solar2lunar(e,t,a)}setSelectInfo(e,t){this.selected=t,this._getWeek(e)}setMultiple(e){let{before:t,after:a}=this.multipleStatus;this.range&&(t&&a?(this.multipleStatus.before="",this.multipleStatus.after="",this.multipleStatus.data=[]):t?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this._getWeek(e))}_getWeek(e){const{year:t,month:a}=this.getDate(e);let i=new Date(t,a-1,1).getDay(),n=new Date(t,a,0).getDate(),o={lastMonthDays:this._getLastMonthDays(i,this.getDate(e)),currentMonthDys:this._currentMonthDys(n,this.getDate(e)),nextMonthDays:[],weeks:[]},s=[];const l=42-(o.lastMonthDays.length+o.currentMonthDys.length);o.nextMonthDays=this._getNextMonthDays(l,this.getDate(e)),s=s.concat(o.lastMonthDays,o.currentMonthDys,o.nextMonthDays);let r={};for(let c=0;c({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},lunar:{type:Boolean,default:!1}},computed:{todayText:()=>Ar("uni-calender.today")},methods:{choiceDate(e){this.$emit("change",e)}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":i.weeks.disable,"uni-calendar-item--isDay":i.calendar.fullDate===i.weeks.fullDate&&i.weeks.isDay,"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&!i.weeks.isDay,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple}]),onClick:a[0]||(a[0]=e=>s.choiceDate(i.weeks))},[e.createElementVNode("view",{class:"uni-calendar-item__weeks-box-item"},[i.selected&&i.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:e.normalizeClass(["uni-calendar-item__weeks-box-text",{"uni-calendar-item--isDay-text":i.weeks.isDay,"uni-calendar-item--isDay":i.calendar.fullDate===i.weeks.fullDate&&i.weeks.isDay,"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&!i.weeks.isDay,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},e.toDisplayString(i.weeks.date),3),i.lunar||i.weeks.extraInfo||!i.weeks.isDay?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(["uni-calendar-item__weeks-lunar-text",{"uni-calendar-item--isDay-text":i.weeks.isDay,"uni-calendar-item--isDay":i.calendar.fullDate===i.weeks.fullDate&&i.weeks.isDay,"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&!i.weeks.isDay,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple}])},e.toDisplayString(s.todayText),3)),i.lunar&&!i.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(["uni-calendar-item__weeks-lunar-text",{"uni-calendar-item--isDay-text":i.weeks.isDay,"uni-calendar-item--isDay":i.calendar.fullDate===i.weeks.fullDate&&i.weeks.isDay,"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&!i.weeks.isDay,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},e.toDisplayString(i.weeks.isDay?s.todayText:"初一"===i.weeks.lunar.IDayCn?i.weeks.lunar.IMonthCn:i.weeks.lunar.IDayCn),3)):e.createCommentVNode("",!0),i.weeks.extraInfo&&i.weeks.extraInfo.info?(e.openBlock(),e.createElementBlock("text",{key:3,class:e.normalizeClass(["uni-calendar-item__weeks-lunar-text",{"uni-calendar-item--extra":i.weeks.extraInfo.info,"uni-calendar-item--isDay-text":i.weeks.isDay,"uni-calendar-item--isDay":i.calendar.fullDate===i.weeks.fullDate&&i.weeks.isDay,"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&!i.weeks.isDay,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},e.toDisplayString(i.weeks.extraInfo.info),3)):e.createCommentVNode("",!0)])],2)}],["__scopeId","data-v-6eedeb9f"]]),{t:Lr}=Js(Pr),Fr={components:{calendarItem:Mr},emits:["close","confirm","change","monthSwitch"],props:{date:{type:String,default:""},selected:{type:Array,default:()=>[]},lunar:{type:Boolean,default:!1},startDate:{type:String,default:""},endDate:{type:String,default:""},range:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:"",aniMaskShow:!1}),computed:{okText:()=>Lr("uni-calender.ok"),cancelText:()=>Lr("uni-calender.cancel"),todayText:()=>Lr("uni-calender.today"),monText:()=>Lr("uni-calender.MON"),TUEText:()=>Lr("uni-calender.TUE"),WEDText:()=>Lr("uni-calender.WED"),THUText:()=>Lr("uni-calender.THU"),FRIText:()=>Lr("uni-calender.FRI"),SATText:()=>Lr("uni-calender.SAT"),SUNText:()=>Lr("uni-calender.SUN")},watch:{date(e){this.init(e)},startDate(e){this.cale.resetSatrtDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks},endDate(e){this.cale.resetEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks},selected(e){this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks}},created(){this.cale=new Ir({selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.date)},methods:{clean(){},bindDateChange(e){const t=e.detail.value+"-1";n("log","at uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue:220",this.cale.getDate(t)),this.setDate(t)},init(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(e)},open(){this.clearDate&&!this.insert&&(this.cale.cleanMultipleStatus(),this.init(this.date)),this.show=!0,this.$nextTick((()=>{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(){this.insert&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){let{year:t,month:a,date:i,fullDate:n,lunar:o,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:a,date:i,fulldate:n,lunar:o,extraInfo:s||{}})},choiceDate(e){e.disable||(this.calendar=e,this.cale.setMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.change())},backtoday(){n("log","at uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue:327",this.cale.getDate(new Date).fullDate);let e=this.cale.getDate(new Date).fullDate;this.init(e),this.change()},pre(){const e=this.cale.getDate(this.nowDate.fullDate,-1,"month").fullDate;this.setDate(e),this.monthSwitch()},next(){const e=this.cale.getDate(this.nowDate.fullDate,1,"month").fullDate;this.setDate(e),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const Ur=a(Fr,[["render",function(t,a,i,n,o,s){const l=e.resolveComponent("calendar-item");return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar"},[!i.insert&&o.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":o.aniMaskShow}]),onClick:a[0]||(a[0]=(...e)=>s.clean&&s.clean(...e))},null,2)):e.createCommentVNode("",!0),i.insert||o.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!i.insert,"uni-calendar--ani-show":o.aniMaskShow}])},[i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__header uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:a[1]||(a[1]=(...e)=>s.close&&s.close(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text uni-calendar--fixed-width"},e.toDisplayString(s.cancelText),1)]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:a[2]||(a[2]=(...e)=>s.confirm&&s.confirm(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text uni-calendar--fixed-width"},e.toDisplayString(s.okText),1)])])),e.createElementVNode("view",{class:"uni-calendar__header"},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:a[3]||(a[3]=e.withModifiers(((...e)=>s.pre&&s.pre(...e)),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})]),e.createElementVNode("picker",{mode:"date",value:i.date,fields:"month",onChange:a[4]||(a[4]=(...e)=>s.bindDateChange&&s.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((o.nowDate.year||"")+" / "+(o.nowDate.month||"")),1)],40,["value"]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:a[5]||(a[5]=e.withModifiers(((...e)=>s.next&&s.next(...e)),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})]),e.createElementVNode("text",{class:"uni-calendar__backtoday",onClick:a[6]||(a[6]=(...e)=>s.backtoday&&s.backtoday(...e))},e.toDisplayString(s.todayText),1)]),e.createElementVNode("view",{class:"uni-calendar__box"},[i.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(o.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks"},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.monText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(s.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.weeks,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:a},[e.createVNode(l,{class:"uni-calendar-item--hook",weeks:t,calendar:o.calendar,selected:i.selected,lunar:i.lunar,onChange:s.choiceDate},null,8,["weeks","calendar","selected","lunar","onChange"])])))),128))])))),128))])],2)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-87bb08fe"]]);function Rr(e,t=0){e||(e=new Date),"object"!=typeof e&&(e=e.replace(/-/g,"/"));const a=new Date(e);a.setDate(a.getDate()+t);const i=a.getFullYear(),n=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,o=a.getDate()<10?"0"+a.getDate():a.getDate();return{fullDate:i+"-"+n+"-"+o,year:i,month:n,date:o,day:a.getDay()}}const Or={components:{},data:()=>({showCalendar:!1,info:{lunar:!0,range:!0,insert:!1,selected:[]}}),onReady(){this.$nextTick((()=>{this.showCalendar=!0})),setTimeout((()=>{this.info.date=Rr(new Date,-30).fullDate,this.info.startDate=Rr(new Date,-60).fullDate,this.info.endDate=Rr(new Date,30).fullDate,this.info.selected=[{date:Rr(new Date,-3).fullDate,info:"打卡"},{date:Rr(new Date,-2).fullDate,info:"签到",data:{custom:"自定义信息",name:"自定义消息头"}},{date:Rr(new Date,-1).fullDate,info:"已打卡"}]}),2e3)},methods:{open(){this.$refs.calendar.open()},close(){n("log","at pages/extUI/calendar/calendar.vue:102","弹窗关闭")},change(e){n("log","at pages/extUI/calendar/calendar.vue:105","change 返回:",e),this.info.selected.length>5||this.info.selected.push({date:e.fulldate,info:"打卡"})},confirm(e){n("log","at pages/extUI/calendar/calendar.vue:114","confirm 返回:",e)},monthSwitch(e){n("log","at pages/extUI/calendar/calendar.vue:117","monthSwitchs 返回:",e)}}};const $r=a(Or,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl),d=o(e.resolveDynamicComponent("uni-calendar"),Ur);return s.showCalendar?(e.openBlock(),e.createElementBlock("view",{key:0,class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"日历组件可以查看日期,选择任意范围内的日期,打点操作。常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等。")])),_:1}),e.createVNode(c,{title:"插入模式",type:"line"}),e.createElementVNode("view",null,[e.createVNode(d,{class:"uni-calendar--hook",selected:s.info.selected,showMonth:!1,onChange:l.change,onMonthSwitch:l.monthSwitch},null,8,["selected","onChange","onMonthSwitch"])]),e.createVNode(c,{class:"hideOnPc",title:"弹出模式",type:"line"}),e.createElementVNode("view",{class:"example-body hideOnPc"},[e.createElementVNode("button",{class:"calendar-button",type:"button",onClick:a[0]||(a[0]=(...e)=>l.open&&l.open(...e))},"打开日历")]),e.createVNode(d,{ref:"calendar",class:"uni-calendar--hook","clear-date":!0,date:s.info.date,insert:s.info.insert,lunar:s.info.lunar,startDate:s.info.startDate,endDate:s.info.endDate,range:s.info.range,onConfirm:l.confirm,onClose:l.close},null,8,["date","insert","lunar","startDate","endDate","range","onConfirm","onClose"])])):e.createCommentVNode("",!0)}]]);const zr=a({name:"UniFab",emits:["fabClick","trigger"],props:{pattern:{type:Object,default:()=>({})},horizontal:{type:String,default:"left"},vertical:{type:String,default:"bottom"},direction:{type:String,default:"horizontal"},content:{type:Array,default:()=>[]},show:{type:Boolean,default:!1},popMenu:{type:Boolean,default:!0}},data:()=>({fabShow:!1,isShow:!1,isAndroidNvue:!1,styles:{color:"#3c3e49",selectedColor:"#007AFF",backgroundColor:"#fff",buttonColor:"#007AFF",iconColor:"#fff"}}),computed:{contentWidth(e){return 55*(this.content.length+1)+15+"px"},contentWidthMin:()=>"55px",boxWidth(){return this.getPosition(3,"horizontal")},boxHeight(){return this.getPosition(3,"vertical")},leftBottom(){return this.getPosition(0,"left","bottom")},rightBottom(){return this.getPosition(0,"right","bottom")},leftTop(){return this.getPosition(0,"left","top")},rightTop(){return this.getPosition(0,"right","top")},flexDirectionStart(){return this.getPosition(1,"vertical","top")},flexDirectionEnd(){return this.getPosition(1,"vertical","bottom")},horizontalLeft(){return this.getPosition(2,"horizontal","left")},horizontalRight(){return this.getPosition(2,"horizontal","right")},nvueBottom:()=>(uni.getSystemInfoSync().windowBottom,30)},watch:{pattern:{handler(e,t){this.styles=Object.assign({},this.styles,e)},deep:!0}},created(){this.isShow=this.show,0===this.top&&(this.fabShow=!0),this.styles=Object.assign({},this.styles,this.pattern)},methods:{_onClick(){this.$emit("fabClick"),this.popMenu&&(this.isShow=!this.isShow)},open(){this.isShow=!0},close(){this.isShow=!1},_onItemClick(e,t){this.$emit("trigger",{index:e,item:t})},getPosition(e,t,a){return 0===e?this.horizontal===t&&this.vertical===a:1===e?this.direction===t&&this.vertical===a:2===e?this.direction===t&&this.horizontal===a:this.isShow&&this.direction===t?this.contentWidth:this.contentWidthMin}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:"uni-cursor-point"},[i.popMenu&&(l.leftBottom||l.rightBottom||l.leftTop||l.rightTop)&&i.content.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass([{"uni-fab--leftBottom":l.leftBottom,"uni-fab--rightBottom":l.rightBottom,"uni-fab--leftTop":l.leftTop,"uni-fab--rightTop":l.rightTop},"uni-fab"]),style:e.normalizeStyle(l.nvueBottom)},[e.createElementVNode("view",{class:e.normalizeClass([{"uni-fab__content--left":"left"===i.horizontal,"uni-fab__content--right":"right"===i.horizontal,"uni-fab__content--flexDirection":"vertical"===i.direction,"uni-fab__content--flexDirectionStart":l.flexDirectionStart,"uni-fab__content--flexDirectionEnd":l.flexDirectionEnd,"uni-fab__content--other-platform":!s.isAndroidNvue},"uni-fab__content"]),style:e.normalizeStyle({width:l.boxWidth,height:l.boxHeight,backgroundColor:s.styles.backgroundColor}),elevation:"5"},[l.flexDirectionStart||l.horizontalLeft?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-fab__item uni-fab__item--first"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.content,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass([{"uni-fab__item--active":s.isShow},"uni-fab__item"]),onClick:e=>l._onItemClick(a,t)},[e.createElementVNode("image",{src:t.active?t.selectedIconPath:t.iconPath,class:"uni-fab__item-image",mode:"aspectFit"},null,8,["src"]),e.createElementVNode("text",{class:"uni-fab__item-text",style:e.normalizeStyle({color:t.active?s.styles.selectedColor:s.styles.color})},e.toDisplayString(t.text),5)],10,["onClick"])))),128)),l.flexDirectionEnd||l.horizontalRight?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-fab__item uni-fab__item--first"})):e.createCommentVNode("",!0)],6)],6)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass([{"uni-fab__circle--leftBottom":l.leftBottom,"uni-fab__circle--rightBottom":l.rightBottom,"uni-fab__circle--leftTop":l.leftTop,"uni-fab__circle--rightTop":l.rightTop,"uni-fab__content--other-platform":!s.isAndroidNvue},"uni-fab__circle uni-fab__plus"]),style:e.normalizeStyle({"background-color":s.styles.buttonColor,bottom:l.nvueBottom}),onClick:a[0]||(a[0]=(...e)=>l._onClick&&l._onClick(...e))},[e.createVNode(r,{class:e.normalizeClass(["fab-circle-icon",{"uni-fab__plus--active":s.isShow&&i.content.length>0}]),type:"plusempty",color:s.styles.iconColor,size:"32"},null,8,["color","class"])],6)])}],["__scopeId","data-v-5d9a01fc"]]),qr={components:{},data:()=>({title:"uni-fab",directionStr:"垂直",horizontal:"left",vertical:"bottom",direction:"horizontal",pattern:{color:"#7A7E83",backgroundColor:"#fff",selectedColor:"#007AFF",buttonColor:"#007AFF",iconColor:"#fff"},is_color_type:!1,content:[{iconPath:"/static/image.png",selectedIconPath:"/static/image-active.png",text:"相册",active:!1},{iconPath:"/static/home.png",selectedIconPath:"/static/home-active.png",text:"首页",active:!1},{iconPath:"/static/star.png",selectedIconPath:"/static/star-active.png",text:"收藏",active:!1}]}),onBackPress(){return!!this.$refs.fab.isShow&&(this.$refs.fab.close(),!0)},methods:{trigger(e){n("log","at pages/extUI/fab/fab.vue:71",e),this.content[e.index].active=!e.item.active,uni.showModal({title:"提示",content:`您${this.content[e.index].active?"选中了":"取消了"}${e.item.text}`,success:function(e){e.confirm?n("log","at pages/extUI/fab/fab.vue:78","用户点击确定"):e.cancel&&n("log","at pages/extUI/fab/fab.vue:80","用户点击取消")}})},fabClick(){uni.showToast({title:"点击了悬浮按钮",icon:"none"})},switchBtn(e,t){0===e?(this.direction="horizontal"===this.direction?"vertical":"horizontal",this.directionStr="horizontal"===this.direction?"垂直":"水平"):(this.horizontal=e,this.vertical=t),this.$forceUpdate()},switchColor(){this.is_color_type=!this.is_color_type,this.is_color_type?(this.pattern.iconColor="#aaa",this.pattern.buttonColor="#fff"):(this.pattern.iconColor="#fff",this.pattern.buttonColor="#007AFF")}}};const jr=a(qr,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl),d=o(e.resolveDynamicComponent("uni-fab"),zr);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"uni-ui 规范颜色色板,通过内置样式快速指定元素前景和背景色。")])),_:1}),e.createVNode(c,{title:"基本功能",subTitle:"点击按钮,切换 fab 不同状态",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"warp"},[e.createElementVNode("button",{class:"button",type:"primary",onClick:a[0]||(a[0]=e=>l.switchBtn(0))},"切换菜单方向("+e.toDisplayString(s.directionStr)+")",1),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[1]||(a[1]=e=>l.switchBtn("left","bottom"))},"左下角显示"),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[2]||(a[2]=e=>l.switchBtn("right","bottom"))},"右下角显示"),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[3]||(a[3]=e=>l.switchBtn("left","top"))},"左上角显示"),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[4]||(a[4]=e=>l.switchBtn("left","top"))},"左上角显示"),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[5]||(a[5]=e=>l.switchBtn("right","top"))},"右上角显示"),e.createElementVNode("button",{class:"button",type:"primary",onClick:a[6]||(a[6]=(...e)=>l.switchColor&&l.switchColor(...e))},"修改颜色")])])),_:1}),e.createVNode(d,{ref:"fab",pattern:s.pattern,content:s.content,horizontal:s.horizontal,vertical:s.vertical,direction:s.direction,onTrigger:l.trigger,onFabClick:l.fabClick},null,8,["pattern","content","horizontal","vertical","direction","onTrigger","onFabClick"])])}]]),Hr={en:{"uni-fav.collect":"collect","uni-fav.collected":"collected"},"zh-Hans":{"uni-fav.collect":"收藏","uni-fav.collected":"已收藏"},"zh-Hant":{"uni-fav.collect":"收藏","uni-fav.collected":"已收藏"}},{t:Wr}=Js(Hr);const Jr=a({name:"UniFav",emits:["click"],props:{star:{type:[Boolean,String],default:!0},bgColor:{type:String,default:"#eeeeee"},fgColor:{type:String,default:"#666666"},bgColorChecked:{type:String,default:"#007aff"},fgColorChecked:{type:String,default:"#FFFFFF"},circle:{type:[Boolean,String],default:!1},checked:{type:Boolean,default:!1},contentText:{type:Object,default:()=>({contentDefault:"",contentFav:""})},stat:{type:Boolean,default:!1}},computed:{contentDefault(){return this.contentText.contentDefault||Wr("uni-fav.collect")},contentFav(){return this.contentText.contentFav||Wr("uni-fav.collected")}},watch:{checked(){uni.report&&this.stat&&(this.checked?uni.report("收藏","收藏"):uni.report("取消收藏","取消收藏"))}},methods:{onClick(){this.$emit("click")}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([[!0===i.circle||"true"===i.circle?"uni-fav--circle":""],"uni-fav"]),style:e.normalizeStyle([{backgroundColor:i.checked?i.bgColorChecked:i.bgColor}]),onClick:a[0]||(a[0]=(...e)=>l.onClick&&l.onClick(...e))},[i.checked||!0!==i.star&&"true"!==i.star?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:0,color:i.fgColor,style:e.normalizeStyle({color:i.checked?i.fgColorChecked:i.fgColor}),class:"uni-fav-star",size:"14",type:"star-filled"},null,8,["color","style"])),e.createElementVNode("text",{style:e.normalizeStyle({color:i.checked?i.fgColorChecked:i.fgColor}),class:"uni-fav-text"},e.toDisplayString(i.checked?l.contentFav:l.contentDefault),5)],6)}],["__scopeId","data-v-5edc009f"]]);const Gr=e=>"number"==typeof e?e+"px":e;const Yr=a({name:"UniNavBar",components:{statusBar:a({name:"UniStatusBar",data:()=>({statusBarHeight:20}),mounted(){this.statusBarHeight=uni.getSystemInfoSync().statusBarHeight+"px"}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{style:e.normalizeStyle({height:o.statusBarHeight}),class:"uni-status-bar"},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4)}],["__scopeId","data-v-40847dd0"]])},emits:["clickLeft","clickRight","clickTitle"],props:{dark:{type:Boolean,default:!1},title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},fixed:{type:[Boolean,String],default:!1},color:{type:String,default:""},backgroundColor:{type:String,default:""},statusBar:{type:[Boolean,String],default:!1},shadow:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},height:{type:[Number,String],default:44},leftWidth:{type:[Number,String],default:60},rightWidth:{type:[Number,String],default:60},stat:{type:[Boolean,String],default:""}},computed:{themeBgColor(){return this.dark?this.backgroundColor?this.backgroundColor:this.dark?"#333":"#FFF":this.backgroundColor||"#FFF"},themeColor(){return this.dark?this.color?this.color:this.dark?"#fff":"#333":this.color||"#333"},navbarHeight(){return Gr(this.height)},leftIconWidth(){return Gr(this.leftWidth)},rightIconWidth(){return Gr(this.rightWidth)}},mounted(){uni.report&&this.stat&&""!==this.title&&uni.report("title",this.title)},methods:{onClickLeft(){this.$emit("clickLeft")},onClickRight(){this.$emit("clickRight")},onClickTitle(){this.$emit("clickTitle")}}},[["render",function(t,a,i,n,s,l){const r=e.resolveComponent("status-bar"),c=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-navbar",{"uni-dark":i.dark,"uni-nvue-fixed":i.fixed}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-navbar__content",{"uni-navbar--fixed":i.fixed,"uni-navbar--shadow":i.shadow,"uni-navbar--border":i.border}]),style:e.normalizeStyle({"background-color":l.themeBgColor})},[i.statusBar?(e.openBlock(),e.createBlock(r,{key:0})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:e.normalizeStyle({color:l.themeColor,backgroundColor:l.themeBgColor,height:l.navbarHeight}),class:"uni-navbar__header"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=(...e)=>l.onClickLeft&&l.onClickLeft(...e)),class:"uni-navbar__header-btns uni-navbar__header-btns-left",style:e.normalizeStyle({width:l.leftIconWidth})},[e.renderSlot(t.$slots,"left",{},(()=>[i.leftIcon.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-navbar__content_view"},[e.createVNode(c,{color:l.themeColor,type:i.leftIcon,size:"20"},null,8,["color","type"])])):e.createCommentVNode("",!0),i.leftText.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass([{"uni-navbar-btn-icon-left":!i.leftIcon.length>0},"uni-navbar-btn-text"])},[e.createElementVNode("text",{style:e.normalizeStyle({color:l.themeColor,fontSize:"12px"})},e.toDisplayString(i.leftText),5)],2)):e.createCommentVNode("",!0)]),!0)],4),e.createElementVNode("view",{class:"uni-navbar__header-container",onClick:a[1]||(a[1]=(...e)=>l.onClickTitle&&l.onClickTitle(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[i.title.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-navbar__header-container-inner"},[e.createElementVNode("text",{class:"uni-nav-bar-text uni-ellipsis-1",style:e.normalizeStyle({color:l.themeColor})},e.toDisplayString(i.title),5)])):e.createCommentVNode("",!0)]),!0)]),e.createElementVNode("view",{onClick:a[2]||(a[2]=(...e)=>l.onClickRight&&l.onClickRight(...e)),class:"uni-navbar__header-btns uni-navbar__header-btns-right",style:e.normalizeStyle({width:l.rightIconWidth})},[e.renderSlot(t.$slots,"right",{},(()=>[i.rightIcon.length?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createVNode(c,{color:l.themeColor,type:i.rightIcon,size:"22"},null,8,["color","type"])])):e.createCommentVNode("",!0),i.rightText.length&&!i.rightIcon.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-navbar-btn-text"},[e.createElementVNode("text",{class:"uni-nav-bar-right-text",style:e.normalizeStyle({color:l.themeColor})},e.toDisplayString(i.rightText),5)])):e.createCommentVNode("",!0)]),!0)],4)],4)],6),i.fixed?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-navbar__placeholder"},[i.statusBar?(e.openBlock(),e.createBlock(r,{key:0})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-navbar__placeholder-view",style:e.normalizeStyle({height:l.navbarHeight})},null,4)])):e.createCommentVNode("",!0)],2)}],["__scopeId","data-v-8d2cba1d"]]);const Kr=a({components:{},data:()=>({checkList:[!1,!1,!1,!1,!1,!1],contentText:{contentDefault:"追番",contentFav:"已追番"}}),methods:{favClick(e){this.checkList[e]=!this.checkList[e],n("log","at pages/extUI/fav/fav.vue:52",this.checkList[e]),this.$forceUpdate()}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-fav"),Jr),d=o(e.resolveDynamicComponent("uni-section"),Tl),u=o(e.resolveDynamicComponent("uni-nav-bar"),Yr);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"用于收藏功能,可点击切换选中、不选中的状态。")])),_:1}),e.createVNode(d,{title:"基本用法",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{checked:s.checkList[0],class:"favBtn",onClick:a[0]||(a[0]=e=>l.favClick(0))},null,8,["checked"]),e.createVNode(c,{checked:s.checkList[1],star:!1,class:"favBtn",onClick:a[1]||(a[1]=e=>l.favClick(1))},null,8,["checked"]),e.createVNode(c,{checked:s.checkList[2],class:"favBtn",circle:!0,"bg-color":"#dd524d","bg-color-checked":"#007aff","fg-color":"#ffffff","fg-color-checked":"#ffffff",onClick:a[2]||(a[2]=e=>l.favClick(2))},null,8,["checked"]),e.createVNode(c,{checked:s.checkList[3],class:"favBtn","bg-color":"#f8f8f8","bg-color-checked":"#eeeeee","fg-color":"#333333","fg-color-checked":"#333333",onClick:a[3]||(a[3]=e=>l.favClick(3))},null,8,["checked"])])])),_:1}),e.createVNode(d,{title:"自定义文字",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{checked:s.checkList[4],"content-text":s.contentText,onClick:a[4]||(a[4]=e=>l.favClick(4))},null,8,["checked","content-text"])])])),_:1}),e.createVNode(d,{title:"在自定义导航栏使用",type:"line"},{default:e.withCtx((()=>[e.createVNode(u,{style:{width:"100%"},fixed:!1,"left-icon":"arrowleft",title:"标题",color:"#333333","background-color":"#FFFFFF"},{right:e.withCtx((()=>[e.createVNode(c,{checked:s.checkList[5],circle:!0,onClick:a[5]||(a[5]=e=>l.favClick(5))},null,8,["checked"])])),_:1})])),_:1}),e.createElementVNode("view",{class:"example-body example-body-fullWidth"})])}]]);const Qr=a({data:()=>({}),onReady(){},methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"uni-wrap"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"uni-section 组件主要用于文章、列表详情等标题展示")])),_:1}),e.createVNode(c,{class:"mb-10",title:"基础用法","sub-title":"副标题"}),e.createVNode(c,{class:"mb-10",title:"竖线装饰","sub-title":"副标题",type:"line"}),e.createVNode(c,{class:"mb-10",title:"装饰器插槽","sub-title":"副标题"},{decoration:e.withCtx((()=>[e.createElementVNode("view",{class:"decoration"})])),_:1}),e.createVNode(c,{class:"mb-10",title:"默认插槽","sub-title":"副标题",padding:"0 0 5px 10px"},{default:e.withCtx((()=>[e.createTextVNode("默认插槽内容")])),_:1}),e.createVNode(c,{class:"mb-10",title:"主标题"},{right:e.withCtx((()=>[e.createTextVNode(" right slot ")])),_:1})])}]]);const Zr=a({components:{},data:()=>({show:!0,modeClass:"fade",styles:{}}),onLoad(){},methods:{handle(e){this.show=!this.show,this.modeClass=e},custom(){this.$refs.ani.step({width:"100px",height:"100px",rotate:"180"},{delay:200,duration:300}),this.$refs.ani.step({width:"100px",height:"100px",rotate:"0"},{transformOrigin:"50% 50%"}),this.$refs.ani.step({translateX:"-100px"},{timingFunction:"ease-in",duration:100}),this.$refs.ani.step({translateX:"100px"},{timingFunction:"ease",duration:300}),this.$refs.ani.step({translateX:"50px",scale:1.5},{timingFunction:"linear",duration:100}),this.$refs.ani.step({translateX:"0px",scale:1},{timingFunction:"linear",duration:150}),this.$refs.ani.run()}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-transition"),ba),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"过渡动画,通常用于元素的过渡效果,例如淡隐淡出效果,遮罩层的效果、放大缩小的效果等")])),_:1}),e.createVNode(d,{title:"示例",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example"},[e.createVNode(c,{ref:"ani","custom-class":"transition","mode-class":s.modeClass,styles:s.styles,show:s.show},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"text"},"示例元素")])),_:1},8,["mode-class","styles","show"])])])),_:1}),e.createVNode(d,{title:"操作",subTitle:"点击按钮 ,切换动画效果",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("button",{class:"transition-button",type:"primary",onClick:a[0]||(a[0]=e=>l.handle("fade"))},"淡隐淡出"),e.createElementVNode("button",{class:"transition-button",type:"primary",onClick:a[1]||(a[1]=e=>l.handle(["fade","slide-top"]))},"由上至下"),e.createElementVNode("button",{class:"transition-button",type:"primary",onClick:a[2]||(a[2]=e=>l.handle(["fade","slide-right"]))},"由右至左过"),e.createElementVNode("button",{class:"transition-button",type:"primary",onClick:a[3]||(a[3]=e=>l.handle(["fade","zoom-in"]))},"由小到大过"),e.createElementVNode("button",{class:"transition-button",type:"primary",onClick:a[4]||(a[4]=(...e)=>l.custom&&l.custom(...e))},"自定义动画")])])),_:1})])}]]);const Xr=a({name:"UniTitle",props:{type:{type:String,default:""},title:{type:String,default:""},align:{type:String,default:"left"},color:{type:String,default:"#333333"},stat:{type:[Boolean,String],default:""}},data:()=>({}),computed:{textAlign(){let e="center";switch(this.align){case"left":e="flex-start";break;case"center":e="center";break;case"right":e="flex-end"}return e}},watch:{title(e){this.isOpenStat()&&uni.report&&uni.report("title",this.title)}},mounted(){this.isOpenStat()&&uni.report&&uni.report("title",this.title)},methods:{isOpenStat(){""===this.stat&&(this.isStat=!1);let e="boolean"==typeof this.stat&&this.stat||"string"==typeof this.stat&&""!==this.stat;return""===this.type&&(this.isStat=!0,"false"===this.stat.toString()&&(this.isStat=!1)),""!==this.type&&(this.isStat=!0,this.isStat=!!e),this.isStat}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-title__box",style:e.normalizeStyle({"align-items":s.textAlign})},[e.createElementVNode("text",{class:e.normalizeClass(["uni-title__base",["uni-"+i.type]]),style:e.normalizeStyle({color:i.color})},e.toDisplayString(i.title),7)],4)}],["__scopeId","data-v-7e58812f"]]);const ec=a({components:{},data:()=>({title:"标题组件通常用于记录页面标题,例如商品标题、新闻标题等,当前组件会自动上报内容统计数据"}),onLoad(){},methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-title"),Xr),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"uni-content"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"}," 标题组件,通常用于记录页面标题,使用当前组件在 uni-app 开启统计的情况下,将会自动统计页面标题.")])),_:1}),e.createVNode(d,{title:"不同类型",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{type:"h1",title:"h1 一级标题"}),e.createVNode(c,{type:"h2",title:"h2 二级标题"}),e.createVNode(c,{type:"h3",title:"h3 三级标题"}),e.createVNode(c,{type:"h4",title:"h4 四级标题"}),e.createVNode(c,{type:"h5",title:"h5 五级标题"})])])),_:1}),e.createVNode(d,{title:"改变颜色",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{type:"h1",title:"h1 一级标题",color:"#027fff"}),e.createVNode(c,{type:"h2",title:"h2 二级标题",color:"#2490ff"}),e.createVNode(c,{type:"h3",title:"h3 三级标题",color:"#439ffc"}),e.createVNode(c,{type:"h4",title:"h4 四级标题",color:"#60adfb"}),e.createVNode(c,{type:"h5",title:"h5 五级标题",color:"#7db9f7"})])])),_:1}),e.createVNode(d,{title:"对齐方式",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{type:"h1",title:"h1 左对齐",align:"left"}),e.createVNode(c,{type:"h2",title:"h2 居中",align:"center"}),e.createVNode(c,{type:"h3",title:"h3 右对齐",align:"right"}),e.createVNode(c,{type:"h4",title:"h4 居中",align:"center"}),e.createVNode(c,{type:"h5",title:"h5 左对齐",align:"left"})])])),_:1}),e.createVNode(d,{title:"组合示例",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createElementVNode("view",{class:"uni-box-head"},[e.createVNode(c,{type:"h1",align:"center",title:"uni-app介绍"})]),e.createElementVNode("view",{class:"uni-box"},[e.createVNode(c,{class:"h3",type:"h3",title:"1 框架介绍"})]),e.createElementVNode("view",{class:"uni-box"},[e.createVNode(c,{class:"h4",type:"h4",title:"1.1 什么是uni-app"})]),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"uni-text"},"uni-app是一个使用Vue.js开发所有前端应用的框架,开发者编写一套代码,可发布到iOS、Android、H5、以及各种小程序(微信/支付宝/百度/头条/QQ/钉钉)等多个平台。即使不跨端,uni-app同时也是更好的小程序开发框架。DCloud公司拥有370万开发者用户,旗下uni-app有5万+案例、900款插件、50+微信/qq群,并且被阿里小程序工具内置,开发者可以放心选择。")]),e.createElementVNode("view",{class:"uni-box"},[e.createVNode(c,{class:"h4",type:"h4",title:"1.2 开发规范"})]),e.createElementVNode("view",{class:""},[e.createVNode(c,{class:"h5",type:"h5",color:"#666",title:"- 页面文件遵循 Vue 单文件组件 (SFC) 规范"}),e.createVNode(c,{class:"h5",type:"h5",color:"#666",title:"- 组件标签靠近小程序规范,详见uni-app 组件规范"}),e.createVNode(c,{class:"h5",type:"h5",color:"#666",title:"- 接口能力(JS API)靠近微信小程序规范,但需将前缀 wx 替换为 uni,详见uni-app接口规范"}),e.createVNode(c,{class:"h5",type:"h5",color:"#666",title:"- 数据绑定及事件处理同 Vue.js 规范,同时补充了App及页面的生命周期"}),e.createVNode(c,{class:"h5",type:"h5",color:"#666",title:"- 为兼容多端运行,建议使用flex布局进行开发"})])])])),_:1})])}]]);const tc=a({name:"uni-tooltip",data:()=>({}),props:{content:{type:String,default:""},placement:{type:String,default:"bottom"}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-tooltip"},[e.renderSlot(t.$slots,"default",{},void 0,!0),i.content||t.$slots.content?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-tooltip-popup"},[e.renderSlot(t.$slots,"content",{},(()=>[e.createTextVNode(e.toDisplayString(i.content),1)]),!0)])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-f9ee3e38"]]);const ac=a({components:{},data:()=>({})},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-tooltip"),tc),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"常用于展示鼠标 hover 时的提示信息,注意:无法覆盖原生组件")])),_:1}),e.createVNode(d,{title:"基础用法",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{content:"提示文字"},{default:e.withCtx((()=>[e.createElementVNode("button",{size:"mini"},"左下")])),_:1})])),_:1}),e.createVNode(d,{title:"弹出层插槽",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,null,{content:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-stat-tooltip"}," 一段文字一段文字一段文字一段文字一段文字一段文字一段文字 一段文字一段文字一段文字一段文字一段文字一段文字一段文字 ")])),default:e.withCtx((()=>[e.createElementVNode("button",{size:"mini"},"多行文字提示")])),_:1})])),_:1})])}]]);const ic=a({name:"uniLink",props:{href:{type:String,default:""},text:{type:String,default:""},download:{type:String,default:""},showUnderLine:{type:[Boolean,String],default:!0},copyTips:{type:String,default:"已自动复制网址,请在手机浏览器里粘贴该网址"},color:{type:String,default:"#999999"},fontSize:{type:[Number,String],default:14}},computed:{isShowA(){return!(!this.isMail()&&!this.isTel()||!0!==this._isH5)}},created(){this._isH5=null},methods:{isMail(){return this.href.startsWith("mailto:")},isTel(){return this.href.startsWith("tel:")},openURL(){this.isTel()?this.makePhoneCall(this.href.replace("tel:","")):plus.runtime.openURL(this.href)},makePhoneCall(e){uni.makePhoneCall({phoneNumber:e})}}},[["render",function(t,a,i,n,o,s){return s.isShowA?(e.openBlock(),e.createElementBlock("a",{key:0,class:e.normalizeClass(["uni-link",{"uni-link--withline":!0===i.showUnderLine||"true"===i.showUnderLine}]),href:i.href,style:e.normalizeStyle({color:i.color,fontSize:i.fontSize+"px"}),download:i.download},[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),!0)],14,["href","download"])):(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(["uni-link",{"uni-link--withline":!0===i.showUnderLine||"true"===i.showUnderLine}]),style:e.normalizeStyle({color:i.color,fontSize:i.fontSize+"px"}),onClick:a[0]||(a[0]=(...e)=>s.openURL&&s.openURL(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),!0)],6))}],["__scopeId","data-v-c0949d4e"]]);const nc=a({components:{},data:()=>({})},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-link"),ic),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打开新网页。")])),_:1}),e.createVNode(d,{title:"基本示例",subTitle:"打开外部连接",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{href:"https://uniapp.dcloud.io/",text:"https://uniapp.dcloud.io/"})])),_:1}),e.createVNode(d,{title:"自定义颜色",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{href:"https://uniapp.dcloud.io/",text:"https://uniapp.dcloud.io/",color:"#007BFF"})])),_:1}),e.createVNode(d,{title:"自定义下划线",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{href:"https://uniapp.dcloud.io/",text:"https://uniapp.dcloud.io/",showUnderLine:"false"})])),_:1}),e.createVNode(d,{title:"自定义字体大小",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{href:"https://uniapp.dcloud.io/",text:"https://uniapp.dcloud.io/",showUnderLine:"false","font-size":"20"})])),_:1}),e.createVNode(d,{title:"自定义插槽",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{href:"https://uniapp.dcloud.io/",text:"https://uniapp.dcloud.io/",showUnderLine:"false",color:"red"},{default:e.withCtx((()=>[e.createTextVNode("点击跳转")])),_:1})])),_:1})])}]]);const oc=a({name:"uniCombox",emits:["input","update:modelValue"],props:{border:{type:Boolean,default:!0},label:{type:String,default:""},labelWidth:{type:String,default:"auto"},placeholder:{type:String,default:""},candidates:{type:Array,default:()=>[]},emptyTips:{type:String,default:"无匹配项"},modelValue:{type:[String,Number],default:""}},data:()=>({showSelector:!1,inputVal:""}),computed:{labelStyle(){return"auto"===this.labelWidth?"":`width: ${this.labelWidth}`},filterCandidates(){return this.candidates.filter((e=>e.toString().indexOf(this.inputVal)>-1))},filterCandidatesLength(){return this.filterCandidates.length}},watch:{modelValue:{handler(e){this.inputVal=e},immediate:!0}},methods:{toggleSelector(){this.showSelector=!this.showSelector},onFocus(){this.showSelector=!0},onBlur(){setTimeout((()=>{this.showSelector=!1}),153)},onSelectorClick(e){this.inputVal=this.filterCandidates[e],this.showSelector=!1,this.$emit("input",this.inputVal),this.$emit("update:modelValue",this.inputVal)},onInput(){setTimeout((()=>{this.$emit("input",this.inputVal),this.$emit("update:modelValue",this.inputVal)}))}}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-combox",i.border?"":"uni-combox__no-border"])},[i.label?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-combox__label",style:e.normalizeStyle(l.labelStyle)},[e.createElementVNode("text",null,e.toDisplayString(i.label),1)],4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-combox__input-box"},[e.withDirectives(e.createElementVNode("input",{class:"uni-combox__input",type:"text",placeholder:i.placeholder,"placeholder-class":"uni-combox__input-plac","onUpdate:modelValue":a[0]||(a[0]=e=>s.inputVal=e),onInput:a[1]||(a[1]=(...e)=>l.onInput&&l.onInput(...e)),onFocus:a[2]||(a[2]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:a[3]||(a[3]=(...e)=>l.onBlur&&l.onBlur(...e))},null,40,["placeholder"]),[[e.vModelText,s.inputVal]]),e.createVNode(r,{type:s.showSelector?"top":"bottom",size:"14",color:"#999",onClick:l.toggleSelector},null,8,["type","onClick"])]),s.showSelector?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-combox__selector"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"uni-combox__selector-scroll"},[0===l.filterCandidatesLength?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-combox__selector-empty"},[e.createElementVNode("text",null,e.toDisplayString(i.emptyTips),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.filterCandidates,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-combox__selector-item",key:a,onClick:e=>l.onSelectorClick(a)},[e.createElementVNode("text",null,e.toDisplayString(t),1)],8,["onClick"])))),128))])])):e.createCommentVNode("",!0)],2)}],["__scopeId","data-v-b4a266aa"]]);const sc=a({components:{},data:()=>({candidates:["北京","南京","东京","武汉","天津","上海","海口"],city:""}),methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-combox"),oc),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"组合框一般用于可以选择也可以输入的表单项。")])),_:1}),e.createVNode(d,{title:"基本用法",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{candidates:s.candidates,placeholder:"请选择所在城市",modelValue:s.city,"onUpdate:modelValue":a[0]||(a[0]=e=>s.city=e)},null,8,["candidates","modelValue"]),e.createElementVNode("view",{class:"result-box"},[e.createElementVNode("text",null,"所选城市为:"+e.toDisplayString(s.city),1)])])])),_:1}),e.createVNode(d,{title:"无边框",subTitle:"使用 border = false 取消边框",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{border:!1,candidates:s.candidates,placeholder:"请选择所在城市"},null,8,["candidates"])])])),_:1}),e.createVNode(d,{title:"设置无匹配项时的提示语",subTitle:"使用 emptyTips 属性设置无匹配项时的提示语",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{emptyTips:"这里啥都没有",placeholder:"请选择所在城市"})])])),_:1})])}]]);const lc=a({name:"UniListChat",emits:["click"],props:{title:{type:String,default:""},note:{type:String,default:""},clickable:{type:Boolean,default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},badgeText:{type:[String,Number],default:""},badgePositon:{type:String,default:"right"},time:{type:String,default:""},avatarCircle:{type:Boolean,default:!1},avatar:{type:String,default:""},avatarList:{type:Array,default:()=>[]}},computed:{isSingle(){if("dot"===this.badgeText)return"uni-badge--dot";return this.badgeText.toString().length>1?"uni-badge--complex":"uni-badge--single"},computedAvatar(){return this.avatarList.length>4?(this.imageWidth=13.95,"avatarItem--3"):this.avatarList.length>1?(this.imageWidth=21.15,"avatarItem--2"):(this.imageWidth=45,"avatarItem--1")}},data:()=>({isFirstChild:!1,border:!0,imageWidth:50}),mounted(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0),this.border=this.list.border)},methods:{getForm(e="uniList"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},onClick(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},openPage(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi(e){uni[e]({url:this.to,success:e=>{this.$emit("click",{data:e})},fail:e=>{this.$emit("click",{data:e}),n("error","at uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue:212",e.errMsg)}})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{"hover-class":i.clickable||i.link?"uni-list-chat--hover":"",class:"uni-list-chat",onClick:a[0]||(a[0]=e.withModifiers(((...e)=>s.onClick&&s.onClick(...e)),["stop"]))},[e.createElementVNode("view",{class:e.normalizeClass({"uni-list--border":o.border,"uni-list-chat--first":o.isFirstChild})},null,2),e.createElementVNode("view",{class:"uni-list-chat__container"},[e.createElementVNode("view",{class:"uni-list-chat__header-warp"},[i.avatarCircle||0===i.avatarList.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-list-chat__header",{"header--circle":i.avatarCircle}])},[e.createElementVNode("image",{class:e.normalizeClass(["uni-list-chat__header-image",{"header--circle":i.avatarCircle}]),src:i.avatar,mode:"aspectFill"},null,10,["src"])],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-list-chat__header"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.avatarList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass(["uni-list-chat__header-box",s.computedAvatar]),style:e.normalizeStyle({width:o.imageWidth+"px",height:o.imageWidth+"px"})},[e.createElementVNode("image",{class:"uni-list-chat__header-image",style:e.normalizeStyle({width:o.imageWidth+"px",height:o.imageWidth+"px"}),src:t.url,mode:"aspectFill"},null,12,["src"])],6)))),128))]))]),i.badgeText&&"left"===i.badgePositon?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-list-chat__badge uni-list-chat__badge-pos",[s.isSingle]])},[e.createElementVNode("text",{class:"uni-list-chat__badge-text"},e.toDisplayString("dot"===i.badgeText?"":i.badgeText),1)],2)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-list-chat__content"},[e.createElementVNode("view",{class:"uni-list-chat__content-main"},[e.createElementVNode("text",{class:"uni-list-chat__content-title uni-ellipsis"},e.toDisplayString(i.title),1),e.createElementVNode("text",{class:"uni-list-chat__content-note uni-ellipsis"},e.toDisplayString(i.note),1)]),e.createElementVNode("view",{class:"uni-list-chat__content-extra"},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:"uni-list-chat__content-extra-text"},e.toDisplayString(i.time),1),i.badgeText&&"right"===i.badgePositon?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-list-chat__badge",[s.isSingle,"right"===i.badgePositon?"uni-list-chat--right":""]])},[e.createElementVNode("text",{class:"uni-list-chat__badge-text"},e.toDisplayString("dot"===i.badgeText?"":i.badgeText),1)],2)):e.createCommentVNode("",!0)]),!0)])])])],8,["hover-class"])}],["__scopeId","data-v-f0916c22"]]),rc={components:{},data:()=>({UNITS:{"年":315576e5,"月":26298e5,"天":864e5,"小时":36e5,"分钟":6e4,"秒":1e3},listData:[],avatarList:[{url:"/static/logo.png"},{url:"/static/logo.png"},{url:"/static/logo.png"}]}),onLoad(){this.getList()},methods:{onClick(){uni.showToast({title:"列表被点击"})},avatar(e){let t=[];return this.avatarList.forEach(((a,i)=>{i{if(200==e.statusCode){let t=this.setTime(e.data);t=this.reload?t:this.listData.concat(t),t.map((e=>(e.text=Math.floor(-19*Math.random()+20),e))),this.listData=this.getRandomArrayElements(t,3)}},fail:(e,t)=>{n("log","at pages/extUI/list/chat.vue:109","fail"+JSON.stringify(e))}})},getRandomArrayElements(e,t){for(var a,i,n=e.slice(0),o=e.length,s=o-t;o-- >s;)a=n[i=Math.floor((o+1)*Math.random())],n[i]=n[o],n[o]=a;return n.slice(s)},setTime(e){var t=[];return e.forEach((e=>{t.push({author_name:e.author_name,cover:e.cover,id:e.id,post_id:e.post_id,published_at:this.format(e.published_at),title:e.title})})),t},format(e){var t=this.parse(e),a=Date.now()-t.getTime();if(a[e.createElementVNode("text",{class:"uni-h6"},"此示例展示了聊天列表的使用场景。")])),_:1}),e.createVNode(u,{title:"圆头像且不显示分割线",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,{border:!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.listData,(t=>(e.openBlock(),e.createBlock(c,{"avatar-circle":!0,key:t.id,title:t.author_name,avatar:t.cover,note:t.title,time:t.published_at,clickable:!1},null,8,["title","avatar","note","time"])))),128))])),_:1})])),_:1}),e.createVNode(u,{title:"带圆点",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.listData,(t=>(e.openBlock(),e.createBlock(c,{key:t.id,title:t.author_name,avatar:t.cover,note:t.title,time:t.published_at,"badge-text":t.text,clickable:!1,"badge-positon":"left"},null,8,["title","avatar","note","time","badge-text"])))),128))])),_:1})])),_:1}),e.createVNode(u,{title:"自定义右侧内容",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.listData,(t=>(e.openBlock(),e.createBlock(c,{key:t.id,title:t.author_name,avatar:t.cover,note:t.title,"badge-positon":"left","badge-text":t.text},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"chat-custom-right"},[e.createElementVNode("text",{class:"chat-custom-text"},"刚刚"),e.createVNode(h,{type:"star-filled",color:"#999",size:"18"})])])),_:2},1032,["title","avatar","note","badge-text"])))),128))])),_:1})])),_:1}),e.createVNode(u,{title:"带通知角标的单头像聊天列表",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.listData,(t=>(e.openBlock(),e.createBlock(c,{key:t.id,title:t.author_name,avatar:t.cover,note:t.title,time:t.published_at,clickable:!0,"badge-text":t.text,onClick:l.onClick},null,8,["title","avatar","note","time","badge-text","onClick"])))),128))])),_:1})])),_:1}),e.createVNode(u,{title:"带通知角标的多头像聊天列表",type:"line"},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.listData,((t,a)=>(e.openBlock(),e.createBlock(c,{key:t.id,title:t.author_name,avatar:t.cover,note:t.title,time:t.published_at,clickable:!0,avatarList:l.avatar(a+1),"badge-text":t.text,onClick:l.onClick},null,8,["title","avatar","note","time","avatarList","badge-text","onClick"])))),128))])),_:1})])),_:1})])}]]),dc={name:"uniTh",options:{virtualHost:!0},components:{},emits:["sort-change","filter-change"],props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1},sortable:{type:Boolean,default:!1},filterType:{type:String,default:""},filterData:{type:Array,default:()=>[]}},data:()=>({border:!1,ascending:!1,descending:!1}),computed:{customWidth(){if("number"==typeof this.width)return this.width;if("string"==typeof this.width){let e=new RegExp(/^[1-9][0-9]*px$/g),t=new RegExp(/^[1-9][0-9]*rpx$/g),a=new RegExp(/^[1-9][0-9]*$/g);if(null!==this.width.match(e))return this.width.replace("px","");if(null!==this.width.match(t)){let e=Number(this.width.replace("rpx","")),t=uni.getSystemInfoSync().screenWidth/750;return Math.round(e*t)}return null!==this.width.match(a)?this.width:""}return""},contentAlign(){let e="left";switch(this.align){case"left":e="flex-start";break;case"center":e="center";break;case"right":e="flex-end"}return e}},created(){this.root=this.getTable("uniTable"),this.rootTr=this.getTable("uniTr"),this.rootTr.minWidthUpdate(this.customWidth?this.customWidth:140),this.border=this.root.border,this.root.thChildren.push(this)},methods:{sort(){if(this.sortable)return this.clearOther(),this.ascending||this.descending?this.ascending&&!this.descending?(this.ascending=!1,this.descending=!0,void this.$emit("sort-change",{order:"descending"})):void(!this.ascending&&this.descending&&(this.ascending=!1,this.descending=!1,this.$emit("sort-change",{order:null}))):(this.ascending=!0,void this.$emit("sort-change",{order:"ascending"}))},ascendingFn(){this.clearOther(),this.ascending=!this.ascending,this.descending=!1,this.$emit("sort-change",{order:this.ascending?"ascending":null})},descendingFn(){this.clearOther(),this.descending=!this.descending,this.ascending=!1,this.$emit("sort-change",{order:this.descending?"descending":null})},clearOther(){this.root.thChildren.map((e=>(e!==this&&(e.ascending=!1,e.descending=!1),e)))},ondropdown(e){this.$emit("filter-change",e)},getTable(e){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}};const uc=a(dc,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-table-th",{"table--border":o.border}]),style:e.normalizeStyle({width:s.customWidth+"px","text-align":i.align})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-a3226158"]]);const hc={name:"uniTr",components:{tableCheckbox:a({name:"TableCheckbox",emits:["checkboxSelected"],props:{indeterminate:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},index:{type:Number,default:-1},cellData:{type:Object,default:()=>({})}},watch:{checked(e){"boolean"==typeof this.checked?this.isChecked=e:this.isChecked=!0},indeterminate(e){this.isIndeterminate=e}},data:()=>({isChecked:!1,isDisabled:!1,isIndeterminate:!1}),created(){"boolean"==typeof this.checked&&(this.isChecked=this.checked),this.isDisabled=this.disabled},methods:{selected(){this.isDisabled||(this.isIndeterminate=!1,this.isChecked=!this.isChecked,this.$emit("checkboxSelected",{checked:this.isChecked,data:this.cellData}))}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-table-checkbox",onClick:a[0]||(a[0]=(...e)=>s.selected&&s.selected(...e))},[i.indeterminate?(e.openBlock(),e.createElementBlock("view",{key:1,class:"checkbox__inner checkbox--indeterminate"},[e.createElementVNode("view",{class:"checkbox__inner-icon"})])):(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["checkbox__inner",{"is-checked":o.isChecked,"is-disable":o.isDisabled}])},[e.createElementVNode("view",{class:"checkbox__inner-icon"})],2))])}],["__scopeId","data-v-e3015225"]])},props:{disabled:{type:Boolean,default:!1},keyValue:{type:[String,Number],default:""}},options:{virtualHost:!0},data:()=>({value:!1,border:!1,selection:!1,widthThArr:[],ishead:!0,checked:!1,indeterminate:!1}),created(){this.root=this.getTable(),this.head=this.getTable("uniThead"),this.head&&(this.ishead=!1,this.head.init(this)),this.border=this.root.border,this.selection=this.root.type,this.root.trChildren.push(this);const e=this.root.data.find((e=>e[this.root.rowKey]===this.keyValue));e&&(this.rowData=e),this.root.isNodata()},mounted(){if(this.widthThArr.length>0){const e="selection"===this.selection?50:0;this.root.minWidth=this.widthThArr.reduce(((e,t)=>Number(e)+Number(t)))+e}},unmounted(){const e=this.root.trChildren.findIndex((e=>e===this));this.root.trChildren.splice(e,1),this.root.isNodata()},methods:{minWidthUpdate(e){this.widthThArr.push(e)},checkboxSelected(e){let t=this.root.data.find((e=>e[this.root.rowKey]===this.keyValue));this.checked=e.checked,this.root.check(t||this,e.checked,t?this.keyValue:null)},change(e){this.root.trChildren.forEach((t=>{t===this&&this.root.check(this,e.detail.value.length>0)}))},getTable(e="uniTable"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}};const pc=a(hc,[["render",function(t,a,i,n,o,s){const l=e.resolveComponent("table-checkbox");return e.openBlock(),e.createElementBlock("view",{class:"uni-table-tr"},["selection"===o.selection?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["checkbox",{"tr-table--border":o.border}])},[e.createVNode(l,{checked:o.checked,indeterminate:o.indeterminate,disabled:i.disabled,onCheckboxSelected:s.checkboxSelected},null,8,["checked","indeterminate","disabled","onCheckboxSelected"])],2)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-d994989e"]]);const mc=a({name:"uniTd",options:{virtualHost:!0},props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1}},data:()=>({border:!1}),created(){this.root=this.getTable(),this.border=this.root.border},methods:{getTable(){let e=this.$parent,t=e.$options.name;for(;"uniTable"!==t;){if(e=e.$parent,!e)return!1;t=e.$options.name}return e}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-table-td",{"table--border":o.border}]),style:e.normalizeStyle({width:i.width+"px","text-align":i.align})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-eb711051"]]);const gc=a({name:"uniTable",options:{virtualHost:!0},emits:["selection-change"],props:{data:{type:Array,default:()=>[]},border:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1},type:{type:String,default:""},emptyText:{type:String,default:"没有更多数据"},loading:{type:Boolean,default:!1},rowKey:{type:String,default:""}},data:()=>({noData:!0,minWidth:0,multiTableHeads:[]}),watch:{loading(e){},data(e){this.theadChildren,this.theadChildren&&this.theadChildren.rowspan,this.noData=!1}},created(){this.trChildren=[],this.thChildren=[],this.theadChildren=null,this.backData=[],this.backIndexData=[]},methods:{isNodata(){this.theadChildren;let e=1;this.theadChildren&&(e=this.theadChildren.rowspan),this.noData=this.trChildren.length-e<=0},selectionAll(){let e=1,t=this.theadChildren;this.theadChildren?e=t.rowspan-1:t=this.trChildren[0];let a=this.data&&this.data.length.length>0;t.checked=!0,t.indeterminate=!1,this.trChildren.forEach(((t,i)=>{if(!t.disabled){if(t.checked=!0,a&&t.keyValue){const e=this.data.find((e=>e[this.rowKey]===t.keyValue));this.backData.find((t=>t[this.rowKey]===e[this.rowKey]))||this.backData.push(e)}i>e-1&&-1===this.backIndexData.indexOf(i-e)&&this.backIndexData.push(i-e)}})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},toggleRowSelection(e,t){e=[].concat(e),this.trChildren.forEach(((a,i)=>{const n=e.findIndex((e=>"number"==typeof e?e===i-1:e[this.rowKey]===a.keyValue));let o=a.checked;-1!==n&&(a.checked="boolean"==typeof t?t:!a.checked,o!==a.checked&&this.check(a.rowData||a,a.checked,a.rowData?a.keyValue:null,!0))})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},clearSelection(){let e=this.theadChildren;this.theadChildren||(e=this.trChildren[0]),e.checked=!1,e.indeterminate=!1,this.trChildren.forEach((e=>{e.checked=!1})),this.backData=[],this.backIndexData=[],this.$emit("selection-change",{detail:{value:[],index:[]}})},toggleAllSelection(){let e=[],t=1,a=this.theadChildren;this.theadChildren?t=a.rowspan-1:a=this.trChildren[0],this.trChildren.forEach(((a,i)=>{a.disabled||i>t-1&&e.push(i-t)})),this.toggleRowSelection(e)},check(e,t,a,i){let n=this.theadChildren;this.theadChildren||(n=this.trChildren[0]);let o=this.trChildren.findIndex(((t,a)=>e===t));if(o<0&&(o=this.data.findIndex((e=>e[this.rowKey]===a))+1),this.trChildren.filter((e=>!e.disabled&&e.keyValue)).length,0===o)return void(t?this.selectionAll():this.clearSelection());if(t)a&&this.backData.push(e),this.backIndexData.push(o-1);else{const e=this.backData.findIndex((e=>e[this.rowKey]===a)),t=this.backIndexData.findIndex((e=>e===o-1));a&&this.backData.splice(e,1),this.backIndexData.splice(t,1)}this.trChildren.find(((e,t)=>t>0&&!e.checked&&!e.disabled))?(n.indeterminate=!0,n.checked=!1):(n.indeterminate=!1,n.checked=!0),0===this.backIndexData.length&&(n.indeterminate=!1),i||this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-table-scroll",{"table--border":i.border,"border-none":!o.noData}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-table",{"table--stripe":i.stripe}]),style:e.normalizeStyle({"min-width":o.minWidth+"px"})},[e.renderSlot(t.$slots,"default",{},void 0,!0),o.noData?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-table-loading"},[e.createElementVNode("view",{class:e.normalizeClass(["uni-table-text",{"empty-border":i.border}])},e.toDisplayString(i.emptyText),3)])):e.createCommentVNode("",!0),i.loading?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-table-mask",{"empty-border":i.border}])},[e.createElementVNode("div",{class:"uni-table--loader"})],2)):e.createCommentVNode("",!0)],6)],2)}],["__scopeId","data-v-b6f0e73c"]]),fc=[{date:"2020-09-01",name:"Dcloud1",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-02",name:"Dcloud2",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-03",name:"Dcloud3",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-04",name:"Dcloud4",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-05",name:"Dcloud5",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-06",name:"Dcloud6",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-07",name:"Dcloud7",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-08",name:"Dcloud8",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-09",name:"Dcloud9",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-10",name:"Dcloud10",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-11",name:"Dcloud11",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-12",name:"Dcloud12",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-13",name:"Dcloud13",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-14",name:"Dcloud14",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-15",name:"Dcloud15",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-16",name:"Dcloud16",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-01",name:"Dcloud17",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-02",name:"Dcloud18",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-03",name:"Dcloud19",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-04",name:"Dcloud20",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-05",name:"Dcloud21",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-06",name:"Dcloud22",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-07",name:"Dcloud23",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-08",name:"Dcloud24",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-09",name:"Dcloud25",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-10",name:"Dcloud26",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-11",name:"Dcloud27",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-12",name:"Dcloud28",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-13",name:"Dcloud29",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-14",name:"Dcloud30",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-15",name:"Dcloud31",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-16",name:"Dcloud32",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-01",name:"Dcloud33",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-02",name:"Dcloud34",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-03",name:"Dcloud35",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-04",name:"Dcloud36",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-05",name:"Dcloud37",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-06",name:"Dcloud38",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-07",name:"Dcloud39",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-08",name:"Dcloud40",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-09",name:"Dcloud41",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-10",name:"Dcloud42",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-11",name:"Dcloud43",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-12",name:"Dcloud44",address:"上海市普陀区金沙江路 1516 弄"},{date:"2020-09-13",name:"Dcloud45",address:"上海市普陀区金沙江路 1518 弄"},{date:"2020-09-14",name:"Dcloud46",address:"上海市普陀区金沙江路 1517 弄"},{date:"2020-09-15",name:"Dcloud47",address:"上海市普陀区金沙江路 1519 弄"},{date:"2020-09-16",name:"Dcloud48",address:"上海市普陀区金沙江路 1516 弄"}],yc={data:()=>({searchVal:"",tableData:[],pageSize:10,pageCurrent:1,total:0,loading:!1}),onLoad(){this.selectedIndexs=[],this.getData(1)},methods:{selectedItems(){return this.selectedIndexs.map((e=>this.tableData[e]))},selectionChange(e){n("log","at pages/extUI/table/table.vue:57",e.detail.index),this.selectedIndexs=e.detail.index},delTable(){n("log","at pages/extUI/table/table.vue:62",this.selectedItems())},change(e){this.$refs.table.clearSelection(),this.selectedIndexs.length=0,this.getData(e.current)},search(){this.getData(1,this.searchVal)},getData(e,t=""){this.loading=!0,this.pageCurrent=e,this.request({pageSize:this.pageSize,pageCurrent:e,value:t,success:e=>{this.tableData=e.data,this.total=e.total,this.loading=!1}})},request(e){const{pageSize:t,pageCurrent:a,success:i,value:n}=e;let o=fc.length,s=fc.filter(((e,i)=>{const n=i-(a-1)*t;return n=0}));n&&(s=[],fc.forEach((e=>{-1!==e.name.indexOf(n)&&s.push(e)})),o=s.length),setTimeout((()=>{"function"==typeof i&&i({data:s,total:o})}),500)}}};const vc=a(yc,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-th"),uc),c=o(e.resolveDynamicComponent("uni-tr"),pc),d=o(e.resolveDynamicComponent("uni-td"),mc),u=o(e.resolveDynamicComponent("uni-table"),gc),h=o(e.resolveDynamicComponent("uni-pagination"),dr);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"uni-container"},[e.createVNode(u,{ref:"table",loading:s.loading,border:"",stripe:"",type:"selection",emptyText:"暂无更多数据",onSelectionChange:l.selectionChange},{default:e.withCtx((()=>[e.createVNode(c,null,{default:e.withCtx((()=>[e.createVNode(r,{width:"150",align:"center"},{default:e.withCtx((()=>[e.createTextVNode("日期")])),_:1}),e.createVNode(r,{width:"150",align:"center"},{default:e.withCtx((()=>[e.createTextVNode("姓名")])),_:1}),e.createVNode(r,{align:"center"},{default:e.withCtx((()=>[e.createTextVNode("地址")])),_:1}),e.createVNode(r,{width:"204",align:"center"},{default:e.withCtx((()=>[e.createTextVNode("设置")])),_:1})])),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tableData,((t,a)=>(e.openBlock(),e.createBlock(c,{key:a},{default:e.withCtx((()=>[e.createVNode(d,null,{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.date),1)])),_:2},1024),e.createVNode(d,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"name"},e.toDisplayString(t.name),1)])),_:2},1024),e.createVNode(d,{align:"center"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.address),1)])),_:2},1024),e.createVNode(d,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-group"},[e.createElementVNode("button",{class:"uni-button",size:"mini",type:"primary"},"修改"),e.createElementVNode("button",{class:"uni-button",size:"mini",type:"warn"},"删除")])])),_:1})])),_:2},1024)))),128))])),_:1},8,["loading","onSelectionChange"]),e.createElementVNode("view",{class:"uni-pagination-box"},[e.createVNode(h,{"show-icon":"","page-size":s.pageSize,current:s.pageCurrent,total:s.total,onChange:l.change},null,8,["page-size","current","total","onChange"])])])])}]]);function bc(e,t=2){for(e+="";e.lengthbc(e.year,4),yy:e=>bc(e.year),MM:e=>bc(e.month),M:e=>e.month,dd:e=>bc(e.day),d:e=>e.day,hh:e=>bc(e.hour),h:e=>e.hour,mm:e=>bc(e.minute),m:e=>e.minute,ss:e=>bc(e.second),s:e=>e.second,SSS:e=>bc(e.millisecond,3),S:e=>e.millisecond};function kc(e){return e instanceof Date?e:"string"==typeof e?e.indexOf("T")>-1?new Date(e):new Date(e.replace(/-/g,"/")):new Date(e)}function xc(e,{locale:t="zh",threshold:a=[6e4,36e5],format:i="yyyy/MM/dd hh:mm:ss"}){if("-"===e)return e;if(!e&&0!==e)return"";const n={zh:{year:"年",month:"月",day:"天",hour:"小时",minute:"分钟",second:"秒",ago:"前",later:"后",justNow:"刚刚",soon:"马上",template:"{num}{unit}{suffix}"},en:{year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",later:"later",justNow:"just now",soon:"soon",template:"{num} {unit} {suffix}"}},o=n[t]||n.zh;let s,l,r=kc(e),c=r.getTime()-Date.now(),d=Math.abs(c);if(d=a[1])return function(e,t="yyyy/MM/dd hh:mm:ss"){if(!e&&0!==e)return"";const a={year:(e=kc(e)).getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()},i=/yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/;let n=!0,o=t;for(;n;)n=!1,o=o.replace(i,(function(e){return n=!0,wc[e](a)}));return o}(r,i);let u=o.later;c<0&&(u=o.ago,c=-c);const h=Math.floor(c/1e3),p=Math.floor(h/60),m=Math.floor(p/60),g=Math.floor(m/24),f=Math.floor(g/30),y=Math.floor(f/12);switch(!0){case y>0:s=y,l=o.year;break;case f>0:s=f,l=o.month;break;case g>0:s=g,l=o.day;break;case m>0:s=m,l=o.hour;break;case p>0:s=p,l=o.minute;break;default:s=h,l=o.second}return"en"===t&&(1===s?s="a":l+="s"),o.template.replace(/{\s*num\s*}/g,s+"").replace(/{\s*unit\s*}/g,l).replace(/{\s*suffix\s*}/g,u)}const Vc=a({name:"uniDateformat",props:{date:{type:[Object,String,Number],default:()=>"-"},locale:{type:String,default:"zh"},threshold:{type:Array,default:()=>[0,0]},format:{type:String,default:"yyyy/MM/dd hh:mm:ss"},refreshRate:{type:[Number,String],default:0}},data:()=>({refreshMark:0}),computed:{dateShow(){return this.refreshMark,xc(this.date,{locale:this.locale,threshold:this.threshold,format:this.format})}},watch:{refreshRate:{handler(){this.setAutoRefresh()},immediate:!0}},methods:{refresh(){this.refreshMark++},setAutoRefresh(){clearInterval(this.refreshInterval),this.refreshRate&&(this.refreshInterval=setInterval((()=>{this.refresh()}),parseInt(this.refreshRate)))}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("text",null,e.toDisplayString(s.dateShow),1)}]]);const Nc=a({data:()=>({now:Date.now()}),methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-dateformat"),Vc),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"日期格式化组件,通常用于需要展示友好的日期格式的场景。")])),_:1}),e.createVNode(d,{title:"基础用法",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{date:s.now-72e5},null,8,["date"]),e.createVNode(c,{date:"2020/12/12"})])])),_:1}),e.createVNode(d,{title:"设置阈值",subTitle:"阈值用于控制什么时候显示刚刚|马上,什么时候显示xx分钟前|xx分钟后",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{date:s.now-3e4,threshold:[0,36e5]},null,8,["date"]),e.createVNode(c,{date:s.now-3e4,threshold:[0,0]},null,8,["date"])])])),_:1}),e.createVNode(d,{title:"使用英文",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{date:s.now-12e5,threshold:[6e4,36e5],locale:"en"},null,8,["date"]),e.createVNode(c,{date:s.now-3e4,threshold:[6e4,36e5],locale:"en"},null,8,["date"]),e.createVNode(c,{date:s.now-8e4,threshold:[6e4,36e5],locale:"en"},null,8,["date"])])])),_:1})])}]]);const _c=a({data:()=>({radio1:0,radio2:0,radio3:0,radio4:0,radio5:0,radio6:0,checkbox1:[0],checkbox2:[0],checkbox3:[0],checkbox4:[0],checkbox5:[0],checkbox6:[0],sex:[{text:"男",value:0},{text:"女",value:1},{text:"未知",value:2}],sex1:[{text:"男",value:0},{text:"女",value:1,disable:!0},{text:"未知",value:2}],hobby:[{text:"足球",value:0},{text:"篮球",value:1},{text:"游泳",value:2}],hobby2:[{text:"足球",value:0,disable:!0},{text:"篮球",value:1,disable:!0},{text:"游泳",value:2}]}),onLoad(){},onReady(){},methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-data-checkbox"),Xs),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"通过数据驱动的单选框和复选框,可直接通过连接 uniCloud 获取数据,同时可以配合表单组件 uni-forms 使用")])),_:1}),e.createVNode(d,{title:"单选",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"单选选中:"+e.toDisplayString(JSON.stringify(s.radio1)),1),e.createVNode(c,{modelValue:s.radio1,"onUpdate:modelValue":a[0]||(a[0]=e=>s.radio1=e),localdata:s.sex},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"多选",subTitle:"使用multiple属性开启多选",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"多选选中:"+e.toDisplayString(JSON.stringify(s.checkbox1)),1),e.createVNode(c,{multiple:"",modelValue:s.checkbox1,"onUpdate:modelValue":a[1]||(a[1]=e=>s.checkbox1=e),localdata:s.hobby},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"最大最小值",subTitle:"使用 min / max 设置多选的最大最小值,单选无效"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"选中:"+e.toDisplayString(JSON.stringify(s.checkbox6)),1),e.createVNode(c,{min:"1",max:"2",multiple:"",modelValue:s.checkbox6,"onUpdate:modelValue":a[2]||(a[2]=e=>s.checkbox6=e),localdata:s.hobby},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"更多样式 - button",subTitle:"使用mode=button属性使用按钮样式",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5"},[e.createElementVNode("view",{class:"text"},"单选选中:"+e.toDisplayString(JSON.stringify(s.radio2)),1),e.createVNode(c,{mode:"button",modelValue:s.radio2,"onUpdate:modelValue":a[3]||(a[3]=e=>s.radio2=e),localdata:s.sex},null,8,["modelValue","localdata"])]),e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"多选选中:"+e.toDisplayString(JSON.stringify(s.checkbox2)),1),e.createVNode(c,{mode:"button",multiple:"",modelValue:s.checkbox2,"onUpdate:modelValue":a[4]||(a[4]=e=>s.checkbox2=e),localdata:s.hobby},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"更多样式 - tag",subTitle:"使用mode=tag属性使用标签样式",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5"},[e.createElementVNode("view",{class:"text"},"单选选中:"+e.toDisplayString(JSON.stringify(s.radio3)),1),e.createVNode(c,{mode:"tag",modelValue:s.radio3,"onUpdate:modelValue":a[5]||(a[5]=e=>s.radio3=e),localdata:s.sex},null,8,["modelValue","localdata"])]),e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"多选选中:"+e.toDisplayString(JSON.stringify(s.checkbox3)),1),e.createVNode(c,{mode:"tag",multiple:"",modelValue:s.checkbox3,"onUpdate:modelValue":a[6]||(a[6]=e=>s.checkbox3=e),localdata:s.hobby},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"禁用",subTitle:"数据中使用 disable 属性实现单独禁用,组件使用 disable 属性实现全部禁用",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5"},[e.createElementVNode("view",{class:"text"},"单选选中:"+e.toDisplayString(JSON.stringify(s.radio4)),1),e.createVNode(c,{mode:"button",modelValue:s.radio4,"onUpdate:modelValue":a[7]||(a[7]=e=>s.radio4=e),localdata:s.sex1},null,8,["modelValue","localdata"])]),e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"多选选中:"+e.toDisplayString(JSON.stringify(s.checkbox4)),1),e.createVNode(c,{mode:"button",multiple:"",modelValue:s.checkbox4,"onUpdate:modelValue":a[8]||(a[8]=e=>s.checkbox4=e),localdata:s.hobby2},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"自定义高亮颜色",subTitle:"使用 selectedColor 属性修改颜色",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5"},[e.createElementVNode("view",{class:"text"},"单选选中:"+e.toDisplayString(JSON.stringify(s.radio5)),1),e.createVNode(c,{selectedColor:"red",modelValue:s.radio5,"onUpdate:modelValue":a[9]||(a[9]=e=>s.radio5=e),localdata:s.sex1},null,8,["modelValue","localdata"])]),e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createElementVNode("view",{class:"text"},"多选选中:"+e.toDisplayString(JSON.stringify(s.checkbox5)),1),e.createVNode(c,{selectedColor:"red",multiple:"",modelValue:s.checkbox5,"onUpdate:modelValue":a[10]||(a[10]=e=>s.checkbox5=e),localdata:s.hobby2},null,8,["modelValue","localdata"])])])),_:1})])}]]),Ec={data:()=>({value:"",password:"",placeholderStyle:"color:#2979FF;font-size:14px",styles:{color:"#2979FF",borderColor:"#2979FF"}}),onLoad(){},onReady(){},methods:{input(e){n("log","at pages/extUI/easyinput/easyinput.vue:85","输入内容:",e)},iconClick(e){uni.showToast({title:`点击了${"prefix"===e?"左侧":"右侧"}的图标`,icon:"none"})}}};const Cc=a(Ec,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-easyinput"),Xa),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"easyinput 组件是对原生input组件的增强 ,是专门为配合表单组件 uni-forms 而设计的,easyinput 内置了边框,图标等,同时包含 input 所有功能")])),_:1}),e.createVNode(d,{title:"默认",subTitle:"使用 focus 属性自动获取输入框焦点",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{errorMessage:"",modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e),focus:"",placeholder:"请输入内容",onInput:l.input},null,8,["modelValue","onInput"])])),_:1}),e.createVNode(d,{title:"去除空格",subTitle:"使用 trim 属性 ,可以控制返回内容的空格 ",type:"line",padding:""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-subtitle"},"输入内容:"+e.toDisplayString('"'+s.value+'"'),1),e.createVNode(c,{class:"uni-mt-5",trim:"all",modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=e=>s.value=e),placeholder:"请输入内容",onInput:l.input},null,8,["modelValue","onInput"])])),_:1}),e.createVNode(d,{title:"自定义样式",subTitle:"使用 styles 属性 ,可以自定义输入框样式",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":a[2]||(a[2]=e=>s.value=e),styles:s.styles,placeholderStyle:s.placeholderStyle,placeholder:"请输入内容",onInput:l.input},null,8,["modelValue","styles","placeholderStyle","onInput"])])),_:1}),e.createVNode(d,{title:"图标",subTitle:"使用 prefixIcon / suffixIcon 属性 ,可以自定义输入框左右侧图标",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{prefixIcon:"search",modelValue:s.value,"onUpdate:modelValue":a[3]||(a[3]=e=>s.value=e),placeholder:"左侧图标",onIconClick:l.iconClick},null,8,["modelValue","onIconClick"]),e.createVNode(c,{class:"uni-mt-5",suffixIcon:"search",modelValue:s.value,"onUpdate:modelValue":a[4]||(a[4]=e=>s.value=e),placeholder:"右侧图标",onIconClick:l.iconClick},null,8,["modelValue","onIconClick"])])),_:1}),e.createVNode(d,{title:"插槽",subTitle:"使用 prefixIcon / suffixIcon 插槽 ,可以自定义输入框左右侧内容",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":a[5]||(a[5]=e=>s.value=e),placeholder:"请输入网址"},{prefixIcon:e.withCtx((()=>[e.createElementVNode("view",{style:{"background-color":"#f2f2f2",padding:"0 10rpx",height:"70rpx","line-height":"70rpx","margin-right":"10rpx"}},"https://")])),_:1},8,["modelValue"]),e.createVNode(c,{class:"uni-mt-5",prefixIcon:"search",modelValue:s.value,"onUpdate:modelValue":a[6]||(a[6]=e=>s.value=e),placeholder:"想看什么,搜索一下"},{suffixIcon:e.withCtx((()=>[e.createElementVNode("button",{class:"uni-btn uni-btn-mini uni-btn-radius",type:"primary",size:"mini"},"搜索")])),_:1},8,["modelValue"])])),_:1}),e.createVNode(d,{title:"禁用",subTitle:"使用 disabled 属性禁用输入框",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{disabled:"",value:"已禁用",placeholder:"请输入内容"})])),_:1}),e.createVNode(d,{title:"密码框",subTitle:"指定属性 type=password 使用密码框,右侧会显示眼睛图标",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{type:"password",modelValue:s.password,"onUpdate:modelValue":a[7]||(a[7]=e=>s.password=e),placeholder:"请输入密码"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{title:"多行文本",subTitle:"指定属性 type=textarea 使用多行文本框",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{type:"textarea",modelValue:s.value,"onUpdate:modelValue":a[8]||(a[8]=e=>s.value=e),placeholder:"请输入内容"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{title:"多行文本自动高度",subTitle:"使用属性 autoHeight 使多行文本框自动增高",type:"line",padding:""},{default:e.withCtx((()=>[e.createVNode(c,{type:"textarea",autoHeight:"",modelValue:s.value,"onUpdate:modelValue":a[9]||(a[9]=e=>s.value=e),placeholder:"请输入内容"},null,8,["modelValue"])])),_:1})])}]]),Sc={data:()=>({value:0,range:[{value:0,text:"篮球",disable:!0},{value:1,text:"足球"},{value:2,text:"游泳"}]}),methods:{change(e){n("log","at pages/extUI/data-select/data-select.vue:55","e:",e)}}};const Tc=a(Sc,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-data-select"),hl),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"通过数据驱动的单选框和复选框,可直接通过连接 uniCloud 获取数据,同时可以配合表单组件 uni-forms 使用")])),_:1}),e.createVNode(d,{title:"本地数据",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e),localdata:s.range,onChange:l.change},null,8,["modelValue","localdata","onChange"])])])),_:1}),e.createVNode(d,{title:"禁用状态",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=e=>s.value=e),disabled:!0,localdata:s.range},null,8,["modelValue","localdata"])])])),_:1}),e.createVNode(d,{title:"是否可清除已选项",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":a[2]||(a[2]=e=>s.value=e),localdata:s.range,onChange:l.change,clear:!1},null,8,["modelValue","localdata","onChange"])])])),_:1}),e.createVNode(d,{title:"配置左侧标题",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-px-5 uni-pb-5"},[e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":a[3]||(a[3]=e=>s.value=e),localdata:s.range,onChange:l.change,label:"应用选择"},null,8,["modelValue","localdata","onChange"])])])),_:1})])}]]),Dc={data(){return{dateString:this.getDateTime(new Date),datetimeString:this.getDateTime(new Date),dateTimestamp:Date.now(),dateInstance:new Date,dateRange:[this.getDate(Date.now()-432e6),this.getDate(Date.now()+432e6)],datetimeRange:[this.getDateTime(Date.now()-432e6),this.getDateTime(Date.now()+432e6)],start:Date.now()-864e6,end:Date.now()+864e6}},watch:{datetimeString(){n("log","at pages/extUI/datetime-picker/datetime-picker.vue:65","日期时间单选:",this.datetimeString)},dateRange(){n("log","at pages/extUI/datetime-picker/datetime-picker.vue:68","日期范围选:",this.dateRange)},datetimeRange(){n("log","at pages/extUI/datetime-picker/datetime-picker.vue:71","日期时间范围选:",this.datetimeRange)}},methods:{change(e){n("log","at pages/extUI/datetime-picker/datetime-picker.vue:76","----change事件:",e)},maskClick(e){n("log","at pages/extUI/datetime-picker/datetime-picker.vue:79","----maskClick事件:",e)},getDateTime(e){return`${this.getDate(e)} ${this.getTime(e)}`},getDate(e){const t=(e=new Date(e)).getFullYear(),a=e.getMonth()+1,i=e.getDate();return`${t}-${this.addZero(a)}-${this.addZero(i)}`},getTime(e){const t=(e=new Date(e)).getHours(),a=e.getMinutes(),i=e.getSeconds();return this.hideSecond?`${this.addZero(t)}:${this.addZero(a)}`:`${this.addZero(t)}:${this.addZero(a)}:${this.addZero(i)}`},addZero:e=>(e<10&&(e=`0${e}`),e)}};const Bc=a(Dc,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl),d=o(e.resolveDynamicComponent("uni-datetime-picker"),rl);return e.openBlock(),e.createElementBlock("view",{class:"page container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"可以同时选择日期和时间的选择器")])),_:1}),e.createVNode(c,{title:"日期用法:"+s.dateString,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{type:"date","clear-icon":!1,modelValue:s.dateString,"onUpdate:modelValue":a[0]||(a[0]=e=>s.dateString=e),onMaskClick:l.maskClick},null,8,["modelValue","onMaskClick"])]),e.createVNode(c,{title:"日期时间用法:"+s.datetimeString,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{type:"datetime",start:s.start,end:s.end,modelValue:s.datetimeString,"onUpdate:modelValue":a[1]||(a[1]=e=>s.datetimeString=e),onChange:l.change},null,8,["start","end","modelValue","onChange"])]),e.createVNode(c,{title:"日期范围用法:["+s.dateRange+"]",type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{modelValue:s.dateRange,"onUpdate:modelValue":a[2]||(a[2]=e=>s.dateRange=e),type:"daterange",onMaskClick:l.maskClick},null,8,["modelValue","onMaskClick"])]),e.createVNode(c,{title:"日期时间范围用法:["+s.datetimeRange+"]",type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{modelValue:s.datetimeRange,"onUpdate:modelValue":a[3]||(a[3]=e=>s.datetimeRange=e),type:"datetimerange",rangeSeparator:"至"},null,8,["modelValue"])]),e.createVNode(c,{title:"时间戳用法:"+s.dateTimestamp,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{returnType:"timestamp",modelValue:s.dateTimestamp,"onUpdate:modelValue":a[4]||(a[4]=e=>s.dateTimestamp=e),onChange:l.change},null,8,["modelValue","onChange"])]),e.createVNode(c,{title:"date 对象用法:"+s.dateInstance,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{type:"datetime",returnType:"date",modelValue:s.dateInstance,"onUpdate:modelValue":a[5]||(a[5]=e=>s.dateInstance=e),onChange:l.change},null,8,["modelValue","onChange"])]),e.createVNode(c,{title:"插槽用法:"+s.dateString,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{modelValue:s.dateString,"onUpdate:modelValue":a[6]||(a[6]=e=>s.dateString=e)},{default:e.withCtx((()=>[e.createTextVNode("我是一个插槽,点击我")])),_:1},8,["modelValue"])]),e.createVNode(c,{title:"无边框用法:"+s.dateString,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{modelValue:s.dateString,"onUpdate:modelValue":a[7]||(a[7]=e=>s.dateString=e),border:!1},null,8,["modelValue"])]),e.createVNode(c,{title:"隐藏清除按钮用法:"+s.dateString,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{modelValue:s.dateString,"onUpdate:modelValue":a[8]||(a[8]=e=>s.dateString=e),clearIcon:!1},null,8,["modelValue"])]),e.createVNode(c,{title:"disabled用法:"+s.dateString,type:"line"},null,8,["title"]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{modelValue:s.dateString,"onUpdate:modelValue":a[9]||(a[9]=e=>s.dateString=e),disabled:""},null,8,["modelValue"])])])}]]);const Ic=a({name:"uniCol",props:{span:{type:Number,default:24},offset:{type:Number,default:-1},pull:{type:Number,default:-1},push:{type:Number,default:-1},xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},data:()=>({gutter:0,sizeClass:"",parentWidth:0,nvueWidth:0,marginLeft:0,right:0,left:0}),created(){let e=this.$parent;for(;e&&"uniRow"!==e.$options.componentName;)e=e.$parent;this.updateGutter(e.gutter),e.$watch("gutter",(e=>{this.updateGutter(e)}))},computed:{sizeList(){let{span:e,offset:t,pull:a,push:i}=this;return{span:e,offset:t,pull:a,push:i}},pointClassList(){let e=[];return["xs","sm","md","lg","xl"].forEach((t=>{const a=this[t];"number"==typeof a?e.push(`uni-col-${t}-${a}`):"object"==typeof a&&a&&Object.keys(a).forEach((i=>{e.push("span"===i?`uni-col-${t}-${a[i]}`:`uni-col-${t}-${i}-${a[i]}`)}))})),e.join(" ")}},methods:{updateGutter(e){e=Number(e),isNaN(e)||(this.gutter=e/2)}},watch:{sizeList:{immediate:!0,handler(e){let t=[];for(let a in e){const i=e[a];!i&&0!==i||-1===i||t.push("span"===a?`uni-col-${i}`:`uni-col-${a}-${i}`)}this.sizeClass=t.join(" ")}}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-col",o.sizeClass,s.pointClassList]),style:e.normalizeStyle({paddingLeft:`${Number(o.gutter)}rpx`,paddingRight:`${Number(o.gutter)}rpx`})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-84ac5f6d"]]);const Pc=a({name:"uniRow",componentName:"uniRow",props:{type:String,gutter:Number,justify:{type:String,default:"start"},align:{type:String,default:"top"},width:{type:[String,Number],default:750}},created(){},computed:{marginValue(){return this.gutter?-this.gutter/2:0},typeClass(){return"flex"===this.type?"uni-row--flex":""},justifyClass(){return"start"!==this.justify?`uni-row--flex-justify-${this.justify}`:""},alignClass(){return"top"!==this.align?`uni-row--flex-align-${this.align}`:""}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-row",s.typeClass,s.justifyClass,s.alignClass]),style:e.normalizeStyle({marginLeft:`${Number(s.marginValue)}rpx`,marginRight:`${Number(s.marginValue)}rpx`})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-9ff25b7f"]]);const Ac=a({data:()=>({gutter:0,nvueWidth:730})},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-col"),Ic),d=o(e.resolveDynamicComponent("uni-row"),Pc),u=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-full":"","is-shadow":!1},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"}," 流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局")])),_:1}),e.createVNode(u,{title:"基础布局",subTitle:"使用单一分栏创建基础的栅格布局",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{class:"demo-uni-row",width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark_deep"})])),_:1})])),_:1},8,["width"]),e.createVNode(d,{class:"demo-uni-row",width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:12},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:12},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["width"]),e.createVNode(d,{class:"demo-uni-row",width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:8},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:8},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{span:8},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1})])),_:1},8,["width"]),e.createVNode(d,{class:"demo-uni-row",width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{span:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["width"]),e.createVNode(d,{class:"demo-uni-row",width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["width"])])])),_:1}),e.createVNode(u,{title:"混合布局",subTitle:"通过基础的 1/24 分栏任意扩展组合形成较为复杂的混合布局",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter,width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:8},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:8},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["gutter","width"]),e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter,width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:16},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{span:4},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1})])),_:1},8,["gutter","width"])])])),_:1}),e.createVNode(u,{title:"分栏偏移",subTitle:"支持偏移指定的栏数",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter,width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:8},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:8,offset:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["gutter","width"]),e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter,width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:6,offset:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:6,offset:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["gutter","width"]),e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter,width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:12,pull:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{span:6,push:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["gutter","width"]),e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter,width:s.nvueWidth},{default:e.withCtx((()=>[e.createVNode(c,{span:12,offset:6},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1})])),_:1},8,["gutter","width"])])])),_:1}),e.createVNode(u,{title:"响应式布局",subTitle:"共五个响应尺寸:xs、sm、md、lg 和 xl",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(d,{class:"demo-uni-row",gutter:s.gutter},{default:e.withCtx((()=>[e.createVNode(c,{xs:8,sm:6,md:4,lg:3,xl:1},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{xs:4,sm:6,md:8,lg:9,xl:11},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1}),e.createVNode(c,{xs:4,sm:6,md:8,lg:9,xl:11},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col dark"})])),_:1}),e.createVNode(c,{xs:8,sm:6,md:4,lg:3,xl:1},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"demo-uni-col light"})])),_:1})])),_:1},8,["gutter"])])])),_:1})])}]]),Mc="chooseAndUploadFile:fail";function Lc(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function Fc(e,t=5,a){const i=(e=JSON.parse(JSON.stringify(e))).length;let n=0,o=this;return new Promise((s=>{for(;n=i)return void(!e.find((e=>!e.url&&!e.errMsg))&&s(e));const r=e[t],c=o.files.findIndex((e=>e.uuid===r.uuid));r.url="",delete r.errMsg,Ms.uploadFile({filePath:r.path,cloudPath:r.cloudPath,fileType:r.fileType,onUploadProgress:e=>{e.index=c,a&&a(e)}}).then((e=>{r.url=e.fileID,r.index=c,t{r.errMsg=e.errMsg||e.message,r.index=c,t{if(t){const a=t(e);if(void 0!==a)return Promise.resolve(a).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function Rc(e={type:"all"}){return"image"===e.type?Uc(function(e){const{count:t,sizeType:a=["original","compressed"],sourceType:i,extension:n}=e;return new Promise(((e,o)=>{uni.chooseImage({count:t,sizeType:a,sourceType:i,extension:n,success(t){e(Lc(t,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",Mc)})}})}))}(e),e):"video"===e.type?Uc(function(e){const{camera:t,compressed:a,maxDuration:i,sourceType:n,extension:o}=e;return new Promise(((e,s)=>{uni.chooseVideo({camera:t,compressed:a,maxDuration:i,sourceType:n,extension:o,success(t){const{tempFilePath:a,duration:i,size:n,height:o,width:s}=t;e(Lc({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:n,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",Mc)})}})}))}(e),e):Uc(function(e){const{count:t,extension:a}=e;return new Promise(((e,i)=>{let n=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(n=wx.chooseMessageFile),"function"!=typeof n)return i({errMsg:Mc+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});n({type:"all",count:t,extension:a,success(t){e(Lc(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",Mc)})}})}))}(e),e)}const Oc=e=>{const t=e.lastIndexOf("."),a=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,a)}},$c=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},zc=async(e,t="image")=>{const a=Oc(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:a||"",cloudPath:e.cloudPath,fileType:e.fileType,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(n=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:n,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var n;return i};const qc=a({name:"uniFilePicker",components:{uploadImage:a({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let a={};"auto"===t?"auto"!==e?(a.height=this.value2px(e),a["padding-top"]=0):a.height=0:(a.height=this.value2px(t),a["padding-top"]=0),a.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let n in a)i+=`${n}:${a[n]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let a=e&&e.width||1;a=this.value2px(a);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":a,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let a="";for(let i in t)a+=`${i}:${t[i]};`;return a}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let a=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{a.push(e.url)})),uni.previewImage({urls:a,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:a,style:e.normalizeStyle(s.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(s.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>s.prviewImage(t,a)),["stop"])},null,8,["src","onClick"]),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>s.delFile(a)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>s.uploadFiles(t,a)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),i.filesList.lengths.choose&&s.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:a({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,a={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),a={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else a.border="none";let i="";for(let n in a)i+=`${n}:${a[n]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let a=t&&t.width||1,i=t&&t.style||0;"number"==typeof a?a+="px":a=a.indexOf("px")?a:a+"px",e["border-width"]=a,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let a="";for(let i in e)a+=`${i}:${e[i]};`;return a}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:a[0]||(a[0]=(...e)=>s.choose&&s.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),s.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(s.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==a&&s.styles.dividline}]),key:a,style:e.normalizeStyle(0!==a&&s.styles.dividline&&s.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>s.delFile(a)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>s.uploadFiles(t,a)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]}},data:()=>({files:[],localValue:[]}),watch:{modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){Ms.config&&Ms.config.provider||(this.noSpace=!0,Ms.chooseAndUploadFile=Rc),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,a)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const a=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await a(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=$c(this.fileExtname);Ms.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{n("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:371","选择失败",e)}))},async chooseFileCallback(e){const t=$c(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:a,files:i}=((e,t)=>{let a=[],i=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const n=Oc(e.name).ext.toLowerCase();-1!==t.indexOf(n)&&(i.push(e),a.push(e.path))})),i.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-i.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:a,files:i}):{filePaths:a,files:i}})(e,t);t&&t.length>0||(a=e.tempFilePaths,i=e.tempFiles);let n=[];for(let o=0;o{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{n("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let a=[],i=[],n=[],o=[];for(let s=0;se.uuid===t.uuid)):t.index;if(-1===l||!this.files)break;if("request:fail"===t.errMsg)this.files[l].url=t.path,this.files[l].status="error",this.files[l].errMsg=t.errMsg,i.push(this.files[l]),o.push(this.files[l].url);else{this.files[l].errMsg="",this.files[l].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[l].url=await this.getTempFileURL(t.url):this.files[l].url=t.url,this.files[l].status="success",this.files[l].progress+=1,a.push(this.files[l]),n.push(this.files[l].fileID)}}a.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(a),tempFilePaths:n})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:o})},setProgress(e,t,a){this.files.length;const i=Math.round(100*e.loaded/e.total);let n=t;a||(n=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==n&&this.files[n]&&(this.files[n].progress=i-1,this.$emit("progress",{index:n,progress:parseInt(i),tempFile:this.files[n]}))},delFile(e){this.$emit("delete",{tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),a=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,a)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await Ms.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}},[["render",function(t,a,i,n,o,s){const l=e.resolveComponent("upload-image"),r=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[i.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(i.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(s.filesList.length)+"/"+e.toDisplayString(s.limitLength),1)])):e.createCommentVNode("",!0),"image"===i.fileMediatype&&"grid"===s.showType?(e.openBlock(),e.createBlock(l,{key:1,readonly:i.readonly,"image-styles":i.imageStyles,"files-list":s.filesList,limit:s.limitLength,disablePreview:i.disablePreview,delIcon:i.delIcon,onUploadFiles:s.uploadFiles,onChoose:s.choose,onDelFile:s.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==i.fileMediatype||"grid"!==s.showType?(e.openBlock(),e.createBlock(r,{key:2,readonly:i.readonly,"list-styles":i.listStyles,"files-list":s.filesList,showType:s.showType,delIcon:i.delIcon,onUploadFiles:s.uploadFiles,onChoose:s.choose,onDelFile:s.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-c0948124"]]);const jc=a({data:()=>({sourceType:["album","camera"],imageStyles:{width:64,height:64,border:{radius:"50%"}},listStyles:{border:!0,dividline:!0,borderStyle:{width:1,color:"blue",style:"dashed",radius:2}},fileLists:[{url:"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao-small.jpg",extname:"png",name:"shuijiao.png"},{url:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b7c7f970-517d-11eb-97b7-0dc4655d6e68.jpg",extname:"png",name:"uniapp-logo.png"},{url:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b7c7f970-517d-11eb-97b7-0dc4655d6e68.jpg",extname:"png",name:"shuijiao.png"}]}),methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-file-picker"),qc),d=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间。")])),_:1}),e.createVNode(d,{title:"只选择图片",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{limit:"9",title:"最多选择9张图片","source-type":s.sourceType},null,8,["source-type"])])])),_:1}),e.createVNode(d,{title:"只选择视频",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{limit:"9","file-mediatype":"video",title:"最多选择9个视频","source-type":s.sourceType},null,8,["source-type"])])])),_:1}),e.createVNode(d,{title:"自定义图片和视频选择的来源",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{limit:"9",title:"从相册选图","source-type":["album"]})]),e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{limit:"9",title:"使用相机","file-mediatype":"video","source-type":["camera"]})])])),_:1}),e.createVNode(d,{title:"自定义图片大小",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body custom-image-box"},[e.createElementVNode("text",{class:"text"},"选择头像"),e.createVNode(c,{limit:"1","del-icon":!1,"disable-preview":"",imageStyles:s.imageStyles,"file-mediatype":"image"},{default:e.withCtx((()=>[e.createTextVNode("选择")])),_:1},8,["imageStyles"])])])),_:1}),e.createVNode(d,{title:"自定义图片大小",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"example-body"},[e.createVNode(c,{readonly:"",value:s.fileLists,imageStyles:s.imageStyles,"file-mediatype":"image"},null,8,["value","imageStyles"]),e.createVNode(c,{readonly:"",value:s.fileLists,listStyles:s.listStyles,"file-mediatype":"all"},null,8,["value","listStyles"])])])),_:1})])}]]);const Hc=a({data:()=>({}),onLoad(){},methods:{}},[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-card"),Qa),c=o(e.resolveDynamicComponent("uni-section"),Tl);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createVNode(r,{"is-shadow":!1,"is-full":""},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"uni-h6"},"使用 '.uni-btn' 样式,可对内置button组件设置样式")])),_:1}),e.createVNode(c,{title:"按钮形状","sub-title":"添加类名 .uni-btn-radius 可以使用圆角按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn"},"默认按钮"),e.createElementVNode("button",{class:"uni-btn uni-btn-radius","hover-class":"hover-class"},"圆角")])])),_:1}),e.createVNode(c,{title:"按钮形状(size=mini)","sub-title":"添加类名 .uni-btn-radius 可以使用圆角按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",size:"mini"},"默认按钮"),e.createElementVNode("button",{class:"uni-btn uni-btn-radius",size:"mini"},"圆角")])])),_:1}),e.createVNode(c,{title:"普通按钮","sub-title":"指定不同的 type 属性 ,展示不同类型按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",type:"default"},"default"),e.createElementVNode("button",{class:"uni-btn",type:"primary"},"primary"),e.createElementVNode("button",{class:"uni-btn",type:"success"},"success"),e.createElementVNode("button",{class:"uni-btn",type:"warning"},"warning"),e.createElementVNode("button",{class:"uni-btn",type:"error"},"error"),e.createElementVNode("button",{class:"uni-btn",type:"info"},"info")])])),_:1}),e.createVNode(c,{title:"普通按钮(size=mini)","sub-title":"指定不同的 type 属性 ,展示不同类型按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",size:"mini"},"default"),e.createElementVNode("button",{class:"uni-btn",type:"primary",size:"mini"},"primary"),e.createElementVNode("button",{class:"uni-btn",type:"success",size:"mini"},"success"),e.createElementVNode("button",{class:"uni-btn",type:"warning",size:"mini"},"warning"),e.createElementVNode("button",{class:"uni-btn",type:"error",size:"mini"},"error"),e.createElementVNode("button",{class:"uni-btn",type:"info",size:"mini"},"info")])])),_:1}),e.createVNode(c,{title:"镂空按钮","sub-title":"添加类名 .uni-btn-plain 使用镂空按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",plain:""},"default"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"primary"},"primary"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"success"},"success"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"warning"},"warning"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"error"},"error"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"info"},"info")])])),_:1}),e.createVNode(c,{title:"镂空按钮(size=mini)","sub-title":"添加类名 .uni-btn-plain 使用镂空按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",plain:"",size:"mini"},"default"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"primary",size:"mini"},"primary"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"success",size:"mini"},"success"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"warning",size:"mini"},"warning"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"error",size:"mini"},"error"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"info",size:"mini"},"info")])])),_:1}),e.createVNode(c,{title:"禁用","sub-title":"使用 disabled 属性 ,展示禁用按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",type:"primary",disabled:""},"primary"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"primary",disabled:""},"primary"),e.createElementVNode("button",{class:"uni-btn uni-btn-radius",disabled:""},"圆角")])])),_:1}),e.createVNode(c,{title:"禁用(size=mini)","sub-title":"使用 disabled 属性 ,展示禁用按钮",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",type:"primary",disabled:"",size:"mini"},"primary"),e.createElementVNode("button",{class:"uni-btn",plain:"",type:"primary",disabled:"",size:"mini"},"primary"),e.createElementVNode("button",{class:"uni-btn uni-btn-radius",disabled:"",size:"mini"},"圆角")])])),_:1}),e.createVNode(c,{title:"大小","sub-title":"添加类名 .uni-btn-small .uni-btn-mini 展示按钮的不同大小",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",type:"primary"},"default"),e.createElementVNode("button",{class:"uni-btn uni-btn-small",type:"primary"},"samll"),e.createElementVNode("button",{class:"uni-btn uni-btn-mini uni-btn-radius",type:"primary"},"mini")])])),_:1}),e.createVNode(c,{title:"大小(sizi=mini)","sub-title":"添加类名 .uni-btn-small .uni-btn-mini 展示按钮的不同大小",type:"line"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"uni-ma-5 uni-pb-5"},[e.createElementVNode("button",{class:"uni-btn",type:"primary",size:"mini"},"default"),e.createElementVNode("button",{class:"uni-btn uni-btn-small",type:"primary",size:"mini"},"samll"),e.createElementVNode("button",{class:"uni-btn uni-btn-mini uni-btn-radius",type:"primary",size:"mini"},"mini")])])),_:1})])}]]);const Wc=a({data:()=>({title:"nav-default",hasSetText:!1,hasSetBg:!1}),methods:{setText(){this.hasSetText=!this.hasSetText,uni.setNavigationBarTitle({title:this.hasSetText?"Hello uni-app":"默认导航栏"})},setBg(){this.hasSetBg=!this.hasSetBg,uni.setNavigationBarColor({frontColor:this.hasSetBg?"#ffffff":"#000000",backgroundColor:this.hasSetBg?"#007AFF":"#F8F8F8"})}}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",{class:"page"},[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-helllo-text"}," 本页标题栏是uni-app的默认配置,开发者可在pages.json里配置文字内容及标题颜色,也可通过api接口将其改变。 "),e.createElementVNode("view",{class:"uni-btn-v"},[e.createElementVNode("button",{type:"default",onClick:a[0]||(a[0]=(...e)=>r.setText&&r.setText(...e))},"改变标题栏文字"),e.createElementVNode("button",{type:"primary",onClick:a[1]||(a[1]=(...e)=>r.setBg&&r.setBg(...e))},"改变标题栏颜色")])])])}]]),Jc={data:()=>({msg:""}),created(){uni.$on("cc",this.recive)},beforeDestroy(){uni.$off("cc",this.recive)},methods:{recive(e){this.msg=e.msg}}};const Gc=a({components:{reciver:a(Jc,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"reciver"},e.toDisplayString(""===o.msg?"等待发送":"收到消息:")+e.toDisplayString(o.msg),1)])}],["__scopeId","data-v-81cc0f62"]]),sender:a({methods:{send(){let e=parseInt(1e4*Math.random());uni.$emit("cc",{msg:"From uni.$emit -> "+e})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"sender-container"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>s.send&&s.send(...e))},"点击发送消息")])}],["__scopeId","data-v-e6fa5a6e"]]),senderBus:a({methods:{send(){let e=parseInt(1e4*Math.random());uni.$emit("cc",{msg:"From event bus -> "+e})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"sender-container"},[e.createElementVNode("button",{type:"primary",onClick:a[0]||(a[0]=(...e)=>s.send&&s.send(...e))},"自定义EventBus")])}],["__scopeId","data-v-63f0290a"]])},data:()=>({}),methods:{}},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=e.resolveComponent("reciver"),u=e.resolveComponent("sender"),h=e.resolveComponent("sender-bus");return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"组件通讯示例"}),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-btn-v"},[e.createVNode(d),e.createVNode(u),e.createVNode(h)])])])}]]),Yc={data:()=>({showSwiper:!1,imgUrls:["../../../static/shuijiao.jpg","https://web-assets.dcloud.net.cn/unidoc/zh/muwu.jpg","https://web-assets.dcloud.net.cn/unidoc/zh/cbd.jpg"],items:[{value:"img",name:"静态图",checked:!0},{value:"swiper",name:"轮播图",checked:!1}]}),methods:{radioChange(e){this.showSwiper="swiper"===e.detail.value}}};const Kc=a(Yc,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"page"},[o.showSwiper?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"img-view"},[e.createElementVNode("image",{src:o.imgUrls[0]},null,8,["src"])])),o.showSwiper?(e.openBlock(),e.createElementBlock("swiper",{key:1,"indicator-dots":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.imgUrls,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a},[e.createElementVNode("image",{src:t},null,8,["src"])])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("view",null,"在App端默认为标题栏透明,当用户向下滚动时,标题栏逐渐由透明转变为不透明;当用户再次向上滚动时,标题栏又从不透明变为透明状态。"),e.createElementVNode("view",null,"在微信小程序端,导航栏始终为不透明样式。")]),e.createElementVNode("view",{class:"uni-title uni-common-mt"},"图片类型")]),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("radio-group",{onChange:a[0]||(a[0]=(...e)=>s.radioChange&&s.radioChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,((t,a)=>(e.openBlock(),e.createElementBlock("label",{class:"uni-list-cell uni-list-cell-pd",key:a},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("view",null,[e.createElementVNode("radio",{value:t.value,checked:t.checked},null,8,["value","checked"])])])))),128))],32)]),e.createElementVNode("view",{style:{height:"1000rpx"}})])}]]),Qc={data:()=>({title:"nav-button"}),onNavigationBarButtonTap(e){uni.showToast({title:0===e.index?"你点了分享按钮":"你点了收藏按钮",icon:"none"})}};const Zc=a(Qc,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createVNode(d,{size:"16",type:"info"}),e.createTextVNode("说明 : ")]),e.createElementVNode("view",{class:"uni-helllo-text"},[e.createElementVNode("view",null,"在App端可在pages.json里配置buttons,暂不支持动态改变buttons的样式,使用onNavigationBarButtonTap可监听buttons的点击事件。"),e.createElementVNode("view",null,"在小程序端,不支持配置buttons,故按钮不见了。")])])])}]]);const Xc=a({data:()=>({title:"nav-image"})},[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createVNode(d,{size:"16",type:"info"}),e.createTextVNode("说明 : ")]),e.createElementVNode("view",{class:"uni-helllo-text"},[e.createElementVNode("view",null,"在App端可在pages.json里通过 style -> titleImage 配置,支付宝小程序只支持https地址的图片,暂不支持动态改变;常用于App首页顶部导航显示产品Logo。"),e.createElementVNode("view",null,"在支付宝小程序里请使用真机调试查看效果。")])])])}]]),ed={data:()=>({pickerChangeValue:[],pickerValue:[],pickerValueArrayChange:!0,modeChange:!1,pickerValueSingleArray:[],pickerValueHour:[],pickerValueMinute:[],pickerValueMulArray:[],pickerValueMulTwoOne:[],pickerValueMulTwoTwo:[],pickerValueMulThreeOne:[],pickerValueMulThreeTwo:[],pickerValueMulThreeThree:[],showPicker:!1}),props:{mode:{type:String,default:"selector"},pickerValueArray:{type:Array,default:()=>[]},pickerValueDefault:{type:Array,default:()=>[]},deepLength:{type:Number,default:2},themeColor:String},watch:{pickerValueArray(e,t){this.pickerValueArrayChange=!0},mode(e,t){this.modeChange=!0},pickerValueArray(e){this.initPicker(e)}},methods:{initPicker(e){let t=e;if(this.pickerValue=this.pickerValueDefault,"selector"===this.mode)this.pickerValueSingleArray=e;else if("timeSelector"===this.mode){this.modeChange=!1;let e=[],t=[];for(let a=0;a<24;a++)e.push({value:a,label:a>9?`${a} 时`:`0${a} 时`});for(let a=0;a<60;a++)t.push({value:a,label:a>9?`${a} 分`:`0${a} 分`});this.pickerValueHour=e,this.pickerValueMinute=t}else if("multiSelector"===this.mode)this.pickerValueMulArray=e;else if("multiLinkageSelector"===this.mode&&2===this.deepLength){let e=[],a=[];for(let i=0,n=t.length;i{this.pickerValueArrayChange||this.modeChange?(this.initPicker(this.pickerValueArray),this.showPicker=!0,this.pickerValueArrayChange=!1,this.modeChange=!1):this.showPicker=!0}),0)},maskClick(){this.pickerCancel()},pickerCancel(){this.showPicker=!1,this._initPickerVale();let e={index:this.pickerValue,value:this._getPickerLabelAndValue(this.pickerValue,this.mode).value,label:this._getPickerLabelAndValue(this.pickerValue,this.mode).label};this.$emit("onCancel",e)},pickerConfirm(e){this.showPicker=!1,this._initPickerVale();let t={index:this.pickerValue,value:this._getPickerLabelAndValue(this.pickerValue,this.mode).value,label:this._getPickerLabelAndValue(this.pickerValue,this.mode).label};this.$emit("onConfirm",t)},showPickerView(){this.showPicker=!0},pickerChange(e){n("log","at components/mpvue-picker/mpvuePicker.vue:271",11111111,e),this.pickerValue=e.detail.value;let t={index:this.pickerValue,value:this._getPickerLabelAndValue(this.pickerValue,this.mode).value,label:this._getPickerLabelAndValue(this.pickerValue,this.mode).label};this.$emit("onChange",t)},pickerChangeMul(e){if(2===this.deepLength){let t=this.pickerValueArray,a=e.detail.value;if(a[0]!==this.pickerValue[0]){let e=[];for(let i=0,n=t[a[0]].children.length;i0?a+=this.pickerValueMulArray[n][e[n]].label+(n===e.length-1?"":"-"):a=this.pickerValueMulArray[n][e[n]].label+"-",i.push(this.pickerValueMulArray[n][e[n]].value);else"multiLinkageSelector"===t&&(a=2===this.deepLength?`${this.pickerValueMulTwoOne[e[0]].label}-${this.pickerValueMulTwoTwo[e[1]].label}`:`${this.pickerValueMulThreeOne[e[0]].label}-${this.pickerValueMulThreeTwo[e[1]].label}-${this.pickerValueMulThreeThree[e[2]].label}`,2===this.deepLength?(i.push(this.pickerValueMulTwoOne[e[0]].value),i.push(this.pickerValueMulTwoTwo[e[1]].value)):(i.push(this.pickerValueMulThreeOne[e[0]].value),i.push(this.pickerValueMulThreeTwo[e[1]].value),i.push(this.pickerValueMulThreeThree[e[2]].value)));return{label:a,value:i}},_initPickerVale(){0===this.pickerValue.length&&("selector"===this.mode?this.pickerValue=[0]:"multiSelector"===this.mode?this.pickerValue=new Int8Array(this.pickerValueArray.length):"multiLinkageSelector"===this.mode&&2===this.deepLength?this.pickerValue=[0,0]:"multiLinkageSelector"===this.mode&&3===this.deepLength&&(this.pickerValue=[0,0,0]))}}};const td={components:{mpvuePicker:a(ed,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"mpvue-picker"},[e.createElementVNode("view",{class:e.normalizeClass({pickerMask:o.showPicker}),onClick:a[0]||(a[0]=(...e)=>s.maskClick&&s.maskClick(...e)),catchtouchmove:"true"},null,2),e.createElementVNode("view",{class:e.normalizeClass(["mpvue-picker-content",{"mpvue-picker-view-show":o.showPicker}])},[e.createElementVNode("view",{class:"mpvue-picker__hd",catchtouchmove:"true"},[e.createElementVNode("view",{class:"mpvue-picker__action",onClick:a[1]||(a[1]=(...e)=>s.pickerCancel&&s.pickerCancel(...e))},"取消"),e.createElementVNode("view",{class:"mpvue-picker__action",style:e.normalizeStyle({color:i.themeColor}),onClick:a[2]||(a[2]=(...e)=>s.pickerConfirm&&s.pickerConfirm(...e))},"确定",4)]),"selector"===i.mode&&o.pickerValueSingleArray.length>0?(e.openBlock(),e.createElementBlock("picker-view",{key:0,"indicator-style":"height: 40px;",class:"mpvue-picker-view",value:o.pickerValue,onChange:a[3]||(a[3]=(...e)=>s.pickerChange&&s.pickerChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueSingleArray,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))])],40,["value"])):e.createCommentVNode("",!0),"timeSelector"===i.mode?(e.openBlock(),e.createElementBlock("picker-view",{key:1,"indicator-style":"height: 40px;",class:"mpvue-picker-view",value:o.pickerValue,onChange:a[4]||(a[4]=(...e)=>s.pickerChange&&s.pickerChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueHour,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMinute,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))])],40,["value"])):e.createCommentVNode("",!0),"multiSelector"===i.mode?(e.openBlock(),e.createElementBlock("picker-view",{key:2,"indicator-style":"height: 40px;",class:"mpvue-picker-view",value:o.pickerValue,onChange:a[5]||(a[5]=(...e)=>s.pickerChange&&s.pickerChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulArray.length,((t,a)=>(e.openBlock(),e.createElementBlock("picker-view-column",{key:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulArray[t],((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))])))),128))],40,["value"])):e.createCommentVNode("",!0),"multiLinkageSelector"===i.mode&&2===i.deepLength?(e.openBlock(),e.createElementBlock("picker-view",{key:3,"indicator-style":"height: 40px;",class:"mpvue-picker-view",value:o.pickerValue,onChange:a[6]||(a[6]=(...e)=>s.pickerChangeMul&&s.pickerChangeMul(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulTwoOne,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulTwoTwo,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))])],40,["value"])):e.createCommentVNode("",!0),"multiLinkageSelector"===i.mode&&3===i.deepLength?(e.openBlock(),e.createElementBlock("picker-view",{key:4,"indicator-style":"height: 40px;",class:"mpvue-picker-view",value:o.pickerValue,onChange:a[7]||(a[7]=(...e)=>s.pickerChangeMul&&s.pickerChangeMul(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulThreeOne,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulThreeTwo,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pickerValueMulThreeThree,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"picker-item",key:a},e.toDisplayString(t.label),1)))),128))])],40,["value"])):e.createCommentVNode("",!0)],2)])}],["__scopeId","data-v-fed4776b"]])},data:()=>({title:"nav-city-dropdown",pickerValueArray:[{label:"北京市",value:11e4},{label:"天津市",value:12e4},{label:"广州市",value:440100},{label:"深圳市",value:440300}],themeColor:"#007AFF",mode:"",deepLength:1,pickerValueDefault:[0],index:0}),onReady(){this.setStyle(0,"北京市")},methods:{onCancel(e){n("log","at pages/template/nav-city-dropdown/nav-city-dropdown.vue:74",e)},showSinglePicker(){this.mode="selector",this.deepLength=1,this.pickerValueDefault=[0],this.$refs.mpvuePicker.show()},onConfirm(e){n("log","at pages/template/nav-city-dropdown/nav-city-dropdown.vue:84",e.label),this.setStyle(0,e.label)},setStyle(e,t){let a=getCurrentPages(),i=a[a.length-1];t.length>3&&(t=t.substr(0,3)+"...");let n=i.$getAppWebview(),o=n.getStyle().titleNView;o.buttons[0].text=t,n.setStyle({titleNView:o})}},onBackPress(){if(this.$refs.mpvuePicker.showPicker)return this.$refs.mpvuePicker.pickerCancel(),!0},onUnload(){this.$refs.mpvuePicker.showPicker&&this.$refs.mpvuePicker.pickerCancel()},onNavigationBarButtonTap(e){0===e.index&&this.showSinglePicker()}};const ad=a(td,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=o(e.resolveDynamicComponent("uni-icons"),f),u=e.resolveComponent("mpvue-picker");return e.openBlock(),e.createElementBlock("view",{class:"mpvue-picker"},[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createVNode(d,{size:"16",type:"info"}),e.createTextVNode(" 说明 : ")]),e.createElementVNode("view",{class:"uni-helllo-text"},[e.createElementVNode("view",null," 在App端可在pages.json里配置buttons,暂不支持动态改变buttons的样式,使用onNavigationBarButtonTap可监听城市选择按钮的点击事件。 ")])]),e.createVNode(u,{themeColor:l.themeColor,ref:"mpvuePicker",mode:l.mode,deepLength:l.deepLength,pickerValueDefault:l.pickerValueDefault,onOnConfirm:r.onConfirm,onOnCancel:r.onCancel,pickerValueArray:l.pickerValueArray},null,8,["themeColor","mode","deepLength","pickerValueDefault","onOnConfirm","onOnCancel","pickerValueArray"])])}]]),id={data:()=>({title:"nav-dot"}),onReady(){this.setStyle(0,!0),this.setStyle(1,!0,"9")},methods:{setStyle(e,t,a){let i=getCurrentPages(),n=i[i.length-1].$getAppWebview();t?0===e?n.showTitleNViewButtonRedDot({index:e,text:a}):n.setTitleNViewButtonBadge({index:e,text:a}):0===e?n.hideTitleNViewButtonRedDot({index:e}):n.removeTitleNViewButtonBadge({index:e})}},onNavigationBarButtonTap(e){uni.showToast({title:0===e.index?"你点了消息按钮":"你点了关注按钮",icon:"none"}),this.setStyle(e.index,!1)}};const nd=a(id,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i),d=o(e.resolveDynamicComponent("uni-icons"),f);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:l.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createVNode(d,{size:"16",type:"info"}),e.createTextVNode("说明 : ")]),e.createElementVNode("view",{class:"uni-helllo-text"},[e.createElementVNode("view",null,"在App端可在pages.json里配置buttons,暂不支持动态改变buttons的样式,使用onNavigationBarButtonTap可监听红点按钮的点击事件。")])])])}]]);const od=a({data:()=>({showSwiper:!1,imgUrls:["https://web-assets.dcloud.net.cn/unidoc/zh/muwu.jpg","https://web-assets.dcloud.net.cn/unidoc/zh/cbd.jpg"]}),onNavigationBarSearchInputClicked(e){n("log","at pages/template/nav-search-input/nav-search-input.vue:42","事件执行了"),uni.navigateTo({url:"/pages/template/nav-search-input/detail/detail"})},onNavigationBarButtonTap(){uni.showModal({title:"提示",content:"用户点击了功能按钮,这里仅做展示。",success:e=>{e.confirm&&n("log","at pages/template/nav-search-input/nav-search-input.vue:56","用户点击了确定")}})}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"page"},[e.createElementVNode("swiper",{"indicator-dots":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.imgUrls,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a},[e.createElementVNode("image",{src:t},null,8,["src"])])))),128))]),e.createElementVNode("view",{class:"uni-padding-wrap uni-common-mt"},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("view",null,"本示例为导航栏带搜索框完整功能演示,主要演示有:"),e.createElementVNode("view",null,"1. 导航栏为 transparent 模式,向上滑动页面,导航栏会从透明变为实色。"),e.createElementVNode("view",null,"2. 点击搜索框跳转到搜索页面。"),e.createElementVNode("view",null,"3. 点击导航栏右侧按钮实现关联操作。"),e.createElementVNode("view",null,"4. 搜索页面为提示词搜索,输入内容实时显示关联词。"),e.createElementVNode("view",null,"5. 搜索结果根据搜索内容高亮显示文字。"),e.createElementVNode("view",null,"6. 点击搜索列表或者软键盘搜索按钮,会将结果保存到搜索历史列表。"),e.createElementVNode("view",null,"7. 点击删除图标,清空历史搜索列表。"),e.createElementVNode("view",null,"Tips "),e.createElementVNode("view",null,"1. 本示例目前仅支持 App 端"),e.createElementVNode("view",null,"2. 所有示例均为演示使用,具体逻辑需要自己实现。")])]),e.createElementVNode("view",{style:{height:"1000rpx"}})])}]]);function sd(e){this.key=e.key,this.requestConfig={key:e.key,s:"rsx",platform:"WXJS",appname:e.key,sdkversion:"1.2.0",logversion:"2.0"}}sd.prototype.getWxLocation=function(e,t){wx.getLocation({type:"gcj02",success:function(e){var a=e.longitude+","+e.latitude;wx.setStorage({key:"userLocation",data:a}),t(a)},fail:function(a){wx.getStorage({key:"userLocation",success:function(e){e.data&&t(e.data)}}),e.fail({errCode:"0",errMsg:a.errMsg||""})}})},sd.prototype.getRegeo=function(e){function t(t){var i=a.requestConfig;wx.request({url:"https://restapi.amap.com/v3/geocode/regeo",data:{key:a.key,location:t,extensions:"all",s:i.s,platform:i.platform,appname:a.key,sdkversion:i.sdkversion,logversion:i.logversion},method:"GET",header:{"content-type":"application/json"},success:function(a){var i,n,o,s,l,r,c,d,u;a.data.status&&"1"==a.data.status?(n=(i=a.data.regeocode).addressComponent,o=[],s="",i&&i.roads[0]&&i.roads[0].name&&(s=i.roads[0].name+"附近"),l=t.split(",")[0],r=t.split(",")[1],i.pois&&i.pois[0]&&(s=i.pois[0].name+"附近",(c=i.pois[0].location)&&(l=parseFloat(c.split(",")[0]),r=parseFloat(c.split(",")[1]))),n.provice&&o.push(n.provice),n.city&&o.push(n.city),n.district&&o.push(n.district),n.streetNumber&&n.streetNumber.street&&n.streetNumber.number?(o.push(n.streetNumber.street),o.push(n.streetNumber.number)):(d="",i&&i.roads[0]&&i.roads[0].name&&(d=i.roads[0].name),o.push(d)),o=o.join(""),u=[{iconPath:e.iconPath,width:e.iconWidth,height:e.iconHeight,name:o,desc:s,longitude:l,latitude:r,id:0,regeocodeData:i}],e.success(u)):e.fail({errCode:a.data.infocode,errMsg:a.data.info})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})}var a=this;e.location?t(e.location):a.getWxLocation(e,(function(e){t(e)}))},sd.prototype.getWeather=function(e){function t(t){var n="base";e.type&&"forecast"==e.type&&(n="all"),wx.request({url:"https://restapi.amap.com/v3/weather/weatherInfo",data:{key:a.key,city:t,extensions:n,s:i.s,platform:i.platform,appname:a.key,sdkversion:i.sdkversion,logversion:i.logversion},method:"GET",header:{"content-type":"application/json"},success:function(t){var a,i,n;t.data.status&&"1"==t.data.status?t.data.lives?(a=t.data.lives)&&a.length>0&&(a=a[0],(i={city:{text:"城市",data:(n=a).city},weather:{text:"天气",data:n.weather},temperature:{text:"温度",data:n.temperature},winddirection:{text:"风向",data:n.winddirection+"风"},windpower:{text:"风力",data:n.windpower+"级"},humidity:{text:"湿度",data:n.humidity+"%"}}).liveData=a,e.success(i)):t.data.forecasts&&t.data.forecasts[0]&&e.success({forecast:t.data.forecasts[0]}):e.fail({errCode:t.data.infocode,errMsg:t.data.info})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})}var a=this,i=a.requestConfig;e.city?t(e.city):a.getWxLocation(e,(function(n){var o;o=n,wx.request({url:"https://restapi.amap.com/v3/geocode/regeo",data:{key:a.key,location:o,extensions:"all",s:i.s,platform:i.platform,appname:a.key,sdkversion:i.sdkversion,logversion:i.logversion},method:"GET",header:{"content-type":"application/json"},success:function(a){var i,n;a.data.status&&"1"==a.data.status?((n=a.data.regeocode).addressComponent?i=n.addressComponent.adcode:n.aois&&n.aois.length>0&&(i=n.aois[0].adcode),t(i)):e.fail({errCode:a.data.infocode,errMsg:a.data.info})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})}))},sd.prototype.getPoiAround=function(e){function t(t){var n={key:a.key,location:t,s:i.s,platform:i.platform,appname:a.key,sdkversion:i.sdkversion,logversion:i.logversion};e.querytypes&&(n.types=e.querytypes),e.querykeywords&&(n.keywords=e.querykeywords),wx.request({url:"https://restapi.amap.com/v3/place/around",data:n,method:"GET",header:{"content-type":"application/json"},success:function(t){var a,i,n,o;if(t.data.status&&"1"==t.data.status){if((t=t.data)&&t.pois){for(a=[],i=0;ird[e]?rd[e]:"#ccc",serachNmme(e,t){let a=new RegExp(e);return`
\n\t\t ${t.replace(a,""+e+"")}\n\t\t
`.trim()},addressToLine(e,t){let a=e.split(";"),i="";return a.forEach((e=>{let a="#cccccc";t===cd[0].id?a=this.lineColor(e):t===cd[1].id&&(a="#4075cb"),i+=`
${e}
`})),`
${i}
`},dataHandle:(e,t)=>(e.nameNodes=t?dd.serachNmme(t,e.name):`
${e.name}
`,e.typecode===dd.typecode[0].id||e.typecode===dd.typecode[1].id?(e.addressNodes=dd.addressToLine(e.address,e.typecode),e.typecode===dd.typecode[0].id?e.icon=dd.typecode[0].icon:e.typecode===dd.typecode[1].id&&(e.icon=dd.typecode[1].icon)):(e.addressNodes=`${e.district}${e.address.length>0?"·"+e.address:""}`.trim(),e.icon="icon-weizhi"),e.location&&0===e.location.length&&(e.icon="icon-sousuo"),e),setHistory(e){let t=uni.getStorageSync("search:history");t||(t=[]);let a={};a="string"==typeof e?{adcode:[],address:[],city:[],district:[],id:[],location:[],name:e,typecode:[]}:e;for(var i=0;i(uni.removeStorage({key:"search:history",success:function(e){n("log","at components/amap-wx/js/util.js:173","success")}}),[])},ud={data:()=>({historyList:[],isHistory:!0,list:[],flng:!0,timer:null}),onLoad(){this.amapPlugin=dd.mapInit(),this.historyList=uni.getStorageSync("search:history")},methods:{listTap(e){e=JSON.parse(JSON.stringify(e)),this.history||(this.isHistory=!0,dd.setHistory(e),uni.navigateBack())},clearSearch(){uni.showModal({title:"提示",content:"是否清理全部搜索历史?该操作不可逆。",success:e=>{e.confirm&&(this.historyList=dd.removeHistory())}})},getInputtips(e){let t=this;this.amapPlugin.getInputtips({keywords:e,city:"北京",success:a=>{let i=a.tips;i.map((t=>dd.dataHandle(t,e))),t.historyList=i},fail:e=>{n("log","at pages/template/nav-search-input/detail/detail.vue:103",e)}})}},onNavigationBarSearchInputChanged(e){let t=e.text;if(!t)return this.isHistory=!0,this.historyList=[],void(this.historyList=uni.getStorageSync("search:history"));this.isHistory=!1,this.getInputtips(t)},onNavigationBarSearchInputConfirmed(e){let t=e.text;if(!t)return this.isHistory=!0,this.historyList=[],this.historyList=uni.getStorageSync("search:history"),void uni.showModal({title:"提示",content:"请输入内容。",success:e=>{e.confirm}});uni.showModal({title:"提示",content:`您输入的内容为"${t}",如果点击确定,将记录到历史搜索,并返回.如果取消不做操作`,success:e=>{e.confirm&&(dd.setHistory(t),uni.navigateBack())}})},onNavigationBarButtonTap(){uni.showModal({title:"提示",content:"点击确定,修改输入框的内容为abc",success:e=>{if(e.confirm){this.$mp.page.$getAppWebview().setTitleNViewSearchInputText("abc")}}})}};const hd=a(ud,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"wrapper"},[o.isHistory?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-box"},[o.historyList.length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("view",{class:"history-title"},[e.createElementVNode("text",null,"搜索历史"),e.createElementVNode("text",{class:"uni-icon uni-icon-trash",onClick:a[0]||(a[0]=(...e)=>s.clearSearch&&s.clearSearch(...e))})]),e.createElementVNode("view",{class:"history-content"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.historyList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"history-item",key:a},e.toDisplayString(t.name),1)))),128))])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},"您还没有历史记录"))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"history-box"},[o.historyList.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-list-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.historyList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"history-list-item",key:a,onClick:e=>s.listTap(t)},[e.createElementVNode("rich-text",{nodes:t.nameNodes},null,8,["nodes"])],8,["onClick"])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},"没有搜索到相关内容"))]))])}]]),pd={data:()=>({banner:{},listData:[],last_id:"",reload:!1,status:"more",adpid:"",contentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"}}),onLoad(){this.adpid=this.$adpid,this.getBanner(),this.getList()},onPullDownRefresh(){this.reload=!0,this.last_id="",this.getBanner(),this.getList()},onReachBottom(){this.status="more",this.getList()},methods:{getBanner(){uni.request({url:"https://unidemo.dcloud.net.cn/api/banner/36kr",data:{column:"id,post_id,title,author_name,cover,published_at"},success:e=>{uni.stopPullDownRefresh(),200==e.statusCode&&(this.banner=e.data)},fail:(e,t)=>{n("log","at pages/template/list2detail-list/list2detail-list.vue:81","fail"+JSON.stringify(e))}})},getList(){var e={column:"id,post_id,title,author_name,cover,published_at"};this.last_id&&(this.status="loading",e.minId=this.last_id,e.time=(new Date).getTime()+"",e.pageSize=10),uni.request({url:"https://unidemo.dcloud.net.cn/api/news",data:e,success:e=>{if(200==e.statusCode){let t=this.setTime(e.data);this.listData=this.reload?t:this.listData.concat(t),this.last_id=t[t.length-1].id,this.reload=!1}},fail:(e,t)=>{n("log","at pages/template/list2detail-list/list2detail-list.vue:108","fail"+JSON.stringify(e))}})},goDetail:function(e){let t={author_name:e.author_name,cover:e.cover,id:e.id,post_id:e.post_id,published_at:e.published_at,title:e.title};uni.navigateTo({url:"../list2detail-detail/list2detail-detail?detailDate="+encodeURIComponent(JSON.stringify(t))})},setTime:function(e){var t=[];return e.forEach((e=>{t.push({author_name:e.author_name,cover:e.cover,id:e.id,post_id:e.post_id,published_at:aa.format(e.published_at),title:e.title})})),t},aderror(e){n("log","at pages/template/list2detail-list/list2detail-list.vue:143","aderror: "+JSON.stringify(e.detail))}}};const md=a(pd,[["render",function(t,a,i,n,s,l){const r=o(e.resolveDynamicComponent("uni-load-more"),Qs);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"banner",onClick:a[0]||(a[0]=e=>l.goDetail(s.banner))},[e.createElementVNode("image",{class:"banner-img",src:s.banner.cover},null,8,["src"]),e.createElementVNode("view",{class:"banner-title"},e.toDisplayString(s.banner.title),1)]),e.createElementVNode("view",{class:"uni-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.listData,((t,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i},[e.createElementVNode("view",{class:"uni-list-cell","hover-class":"uni-list-cell-hover",onClick:e=>l.goDetail(t)},[e.createElementVNode("view",{class:"uni-media-list"},[e.createElementVNode("image",{class:"uni-media-list-logo",src:t.cover},null,8,["src"]),e.createElementVNode("view",{class:"uni-media-list-body"},[e.createElementVNode("view",{class:"uni-media-list-text-top"},e.toDisplayString(t.title),1),e.createElementVNode("view",{class:"uni-media-list-text-bottom"},[e.createElementVNode("text",null,e.toDisplayString(t.author_name),1),e.createElementVNode("text",null,e.toDisplayString(t.published_at),1)])])])],8,["onClick"]),i>0&&(i+1)%10==0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ad-view"},[e.createElementVNode("ad",{adpid:s.adpid,onError:a[1]||(a[1]=(...e)=>l.aderror&&l.aderror(...e))},null,40,["adpid"])])):e.createCommentVNode("",!0)],64)))),128))]),e.createVNode(r,{status:s.status,"icon-size":16,"content-text":s.contentText},null,8,["status","content-text"])])}]]);var gd=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,fd=/^<\/([-A-Za-z0-9_]+)[^>]*>/,yd=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,vd=Nd("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),bd=Nd("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),wd=Nd("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),kd=Nd("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),xd=Nd("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Vd=Nd("script,style");function Nd(e){for(var t={},a=e.split(","),i=0;i\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);var t=[],a={node:"root",children:[]};return function(e,t){var a,i,n,o=[],s=e;for(o.last=function(){return this[this.length-1]};e;){if(i=!0,o.last()&&Vd[o.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,a){return a=a.replace(/|/g,"$1$2"),t.chars&&t.chars(a),""})),c("",o.last());else if(0==e.indexOf("\x3c!--")?(a=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,a)),e=e.substring(a+3),i=!1):0==e.indexOf("=0&&o[i]!=a;i--);else var i=0;if(i>=0){for(var n=o.length-1;n>=i;n--)t.end&&t.end(o[n]);o.length=i}}c()}(e,{start:function(e,i,n){var o={name:e};if(0!==i.length&&(o.attrs=function(e){return e.reduce((function(e,t){var a=t.value,i=t.name;return e[i]?e[i]=e[i]+" "+a:e[i]=a,e}),{})}(i)),n){var s=t[0]||a;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(e){var i=t.shift();if(i.name!==e&&n("error","at common/html-parser.js:303","invalid state: mismatch end tag"),0===t.length)a.children.push(i);else{var o=t[0];o.children||(o.children=[]),o.children.push(i)}},chars:function(e){var i={type:"text",text:e};if(0===t.length)a.children.push(i);else{var n=t[0];n.children||(n.children=[]),n.children.push(i)}},comment:function(e){var a={node:"comment",text:e},i=t[0];i.children||(i.children=[]),i.children.push(a)}}),a.children}const Ed="/pages/template/list2detail-detail/list2detail-detail";const Cd=a({data:()=>({title:"",banner:{},htmlNodes:[]}),onLoad(e){const t=e.detailDate||e.payload;try{this.banner=JSON.parse(decodeURIComponent(t))}catch(a){this.banner=JSON.parse(t)}uni.setNavigationBarTitle({title:this.banner.title}),this.getDetail()},onShareAppMessage(){return{title:this.banner.title,path:Ed+"?detailDate="+JSON.stringify(this.banner)}},onNavigationBarButtonTap(e){0===e.index&&uni.getProvider({service:"share",success:e=>{if(e.provider&&e.provider.length&&~e.provider.indexOf("weixin")){const t=function(e){let t=[];for(let a=0,i=e.length;ae.text)),success:e=>{const t=e.tapIndex;uni.share({provider:"weixin",type:0,title:this.banner.title,scene:0===t?"WXSceneSession":"WXSceneTimeline",href:"https://uniapp.dcloud.io/h5"+Ed+"?detailDate="+JSON.stringify(this.banner),imageUrl:"https://web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png"})}})}else uni.showToast({title:"未检测到可用的微信分享服务"})},fail:e=>{uni.showToast({title:"获取分享服务失败"})}})},methods:{getDetail(){uni.request({url:"https://unidemo.dcloud.net.cn/api/news/36kr/"+this.banner.post_id,success:e=>{if(200==e.statusCode){var t=e.data.content.replace(/\\/g,"").replace(/{n("log","at pages/template/list2detail-detail/list2detail-detail.vue:132","fail")}})}}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"banner"},[e.createElementVNode("image",{class:"banner-img",src:o.banner.cover},null,8,["src"]),e.createElementVNode("view",{class:"banner-title"},e.toDisplayString(o.banner.title),1)]),e.createElementVNode("view",{class:"article-meta"},[e.createElementVNode("text",{class:"article-author"},e.toDisplayString(o.banner.author_name),1),e.createElementVNode("text",{class:"article-text"},"发表于"),e.createElementVNode("text",{class:"article-time"},e.toDisplayString(o.banner.published_at),1)]),e.createElementVNode("view",{class:"article-content"},[e.createElementVNode("rich-text",{nodes:o.htmlNodes},null,8,["nodes"])])])}]]),Sd={data:()=>({title:""}),onLoad(e){this.title=e.title||""}};const Td=a(Sd,[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"root"},[e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("view",{class:"uni-title"},"这是选项卡页面跳转详情页面的演示,下面是页面跳转时传递过来的标题:"),e.createElementVNode("view",{class:"uni-title"},e.toDisplayString(o.title),1)])])}]]),Dd={data:()=>({}),methods:{openBrowser(e){plus.runtime.openURL(e)},openMarket(e){var t;t="Android"==plus.os.name?"market://details?id=io.dcloud.hellouniapp":"itms-apps://itunes.apple.com/cn/app/hello-uni-app/id1417078253",void 0===e?plus.runtime.openURL(t,(function(e){n("log","at pages/template/scheme/scheme.vue:61",e)})):"Android"==plus.os.name?plus.runtime.openURL(t,(function(e){plus.nativeUI.alert("本机没有安装应用宝")}),e):plus.nativeUI.alert("仅Android手机才支持应用宝")},openTaobao(e){plus.runtime.openURL(e,(function(e){uni.showModal({content:"本机未检测到淘宝客户端,是否打开浏览器访问淘宝?",success:function(e){e.confirm&&plus.runtime.openURL("https://s.taobao.com/search?q=uni-app")}})}))},openMap(){var e="";if("Android"==plus.os.name){var t=plus.runtime.isApplicationExist({pname:"com.baidu.BaiduMap",action:"baidumap://"}),a=plus.runtime.isApplicationExist({pname:"com.autonavi.minimap",action:"androidamap://"}),i="baidumap://map/marker?location=39.968789,116.347247&title=DCloud&src=Hello%20uni-app",o="androidamap://viewMap?sourceApplication=Hello%20uni-app&poiname=DCloud&lat=39.9631018208&lon=116.3406135236&dev=0";a&&t?plus.nativeUI.actionSheet({title:"选择地图应用",cancel:"取消",buttons:[{title:"百度地图"},{title:"高德地图"}]},(function(e){switch(e.index){case 1:plus.runtime.openURL(i);break;case 2:plus.runtime.openURL(o)}})):a?plus.runtime.openURL(o):t?plus.runtime.openURL(i):(e="geo:39.96310,116.340698?q=%e6%95%b0%e5%ad%97%e5%a4%a9%e5%a0%82",plus.runtime.openURL(e))}else plus.nativeUI.actionSheet({title:"选择地图应用",cancel:"取消",buttons:[{title:"Apple地图"},{title:"百度地图"},{title:"高德地图"}]},(function(t){switch(n("log","at pages/template/scheme/scheme.vue:117","e.index: "+t.index),t.index){case 1:e="http://maps.apple.com/?q=%e6%95%b0%e5%ad%97%e5%a4%a9%e5%a0%82&ll=39.96310,116.340698&spn=0.008766,0.019441";break;case 2:e="baidumap://map/marker?location=39.968789,116.347247&title=DCloud&src=Hello%20uni-app";break;case 3:e="iosamap://viewMap?sourceApplication=Hello%20uni-app&poiname=DCloud&lat=39.9631018208&lon=116.3406135236&dev=0"}""!=e&&plus.runtime.openURL(e,(function(e){plus.nativeUI.alert("本机未安装指定的地图应用")}))}))},openQQ:function(e){plus.runtime.openURL("mqqwpa://im/chat?chat_type="+e.detail.value.qqNumType+"&uin="+e.detail.value.qqNum,(function(e){plus.nativeUI.alert("本机没有安装QQ,无法启动")}))}}};const Bd=a(Dd,[["render",function(t,a,n,s,l,r){const c=o(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:"通过scheme打开三方app示例"}),e.createElementVNode("button",{class:"button",onClick:a[0]||(a[0]=e=>r.openBrowser("https://uniapp.dcloud.io/h5"))},"使用浏览器打开指定URL"),e.createElementVNode("button",{class:"button",onClick:a[1]||(a[1]=e=>r.openMarket())},"使用应用商店打开指定App"),e.createElementVNode("button",{class:"button",onClick:a[2]||(a[2]=e=>r.openMarket("com.tencent.android.qqdownloader"))},"强制使用应用宝打开指定App"),e.createElementVNode("button",{class:"button",onClick:a[3]||(a[3]=e=>r.openTaobao("taobao://s.taobao.com/search?q=uni-app"))},"打开淘宝搜索页面"),e.createElementVNode("button",{class:"button",onClick:a[4]||(a[4]=e=>r.openMap())},"打开地图并指定地点"),e.createElementVNode("view",{class:"uni-divider"},[e.createElementVNode("view",{class:"uni-divider__content"},"打开QQ"),e.createElementVNode("view",{class:"uni-divider__line"})]),e.createElementVNode("view",{class:"uni-padding-wrap"},[e.createElementVNode("form",{onSubmit:a[5]||(a[5]=(...e)=>r.openQQ&&r.openQQ(...e))},[e.createElementVNode("view",null,[e.createElementVNode("view",{class:"uni-title"},"请输入聊天对象QQ号:"),e.createElementVNode("view",{class:"uni-list"},[e.createElementVNode("view",{class:"uni-list-cell"},[e.createElementVNode("input",{class:"uni-input",name:"qqNum",type:"number"})])])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"uni-title"},"请选择QQ号类型:"),e.createElementVNode("radio-group",{class:"uni-flex",name:"qqNumType"},[e.createElementVNode("label",null,[e.createElementVNode("radio",{value:"wpa",checked:""}),e.createTextVNode("普通QQ号")]),e.createElementVNode("label",null,[e.createElementVNode("radio",{value:"crm"}),e.createTextVNode("营销QQ号(无需加好友直接聊天)")])])]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{class:"button",formType:"submit"},"打开qq并到指定聊天界面")])],32)])])}]]);const Id=a({data:()=>({gd:{}}),computed:{...fe(["testvuex"])},methods:{...ye(["setTestTrue"]),...ye(["setTestFalse"]),setGD:function(){this.gd.test="123"},setVUEX:function(e){e?this.setTestTrue(this.$store.state):this.setTestFalse(this.$store.state)}},onShow(){this.gd=getApp().globalData}},[["render",function(t,a,i,n,o,s){return e.openBlock(),e.createElementBlock("view",{class:"pa"},[e.createElementVNode("view",{class:"uni-divider"},[e.createElementVNode("view",{class:"uni-divider__content"},"globalData"),e.createElementVNode("view",{class:"uni-divider__line"})]),e.createElementVNode("text",{class:"text"},"globalData中text的值: "+e.toDisplayString(o.gd.test),1),e.createElementVNode("button",{onClick:a[0]||(a[0]=e=>s.setGD()),class:"button"},"修改上述值为123"),e.createElementVNode("view",{class:"uni-divider"},[e.createElementVNode("view",{class:"uni-divider__content"},"vuex"),e.createElementVNode("view",{class:"uni-divider__line"})]),e.createElementVNode("text",{class:"text"},"vuex中hasLogin的值: "+e.toDisplayString(t.testvuex),1),e.createElementVNode("button",{onClick:a[1]||(a[1]=e=>s.setVUEX(!0)),class:"button"},"修改上述值为true"),e.createElementVNode("button",{onClick:a[2]||(a[2]=e=>s.setVUEX(!1)),class:"button"},"修改上述值为false")])}]]);__definePage("pages/component/view/view",s),__definePage("pages/component/scroll-view/scroll-view",r),__definePage("pages/component/swiper/swiper",d),__definePage("pages/component/movable-view/movable-view",h),__definePage("pages/component/text/text",p),__definePage("pages/component/rich-text/rich-text",m),__definePage("pages/component/progress/progress",y),__definePage("pages/component/button/button",v),__definePage("pages/component/checkbox/checkbox",w),__definePage("pages/component/form/form",V),__definePage("pages/component/label/label",_),__definePage("pages/component/picker/picker",S),__definePage("pages/component/picker-view/picker-view",D),__definePage("pages/component/radio/radio",B),__definePage("pages/component/slider/slider",P),__definePage("pages/component/switch/switch",M),__definePage("pages/component/textarea/textarea",F),__definePage("pages/component/editor/editor",R),__definePage("pages/component/navigator/navigator",Ve),__definePage("pages/component/navigator/navigate/navigate",Ne),__definePage("pages/component/navigator/redirect/redirect",_e),__definePage("pages/component/image/image",Ee),__definePage("pages/component/canvas/canvas",Te),__definePage("pages/component/web-view/web-view",Be),__definePage("pages/component/ad/ad",Pe),__definePage("pages/component/web-view-local/web-view-local",Me),__definePage("platforms/app-plus/speech/speech",Re),__definePage("platforms/app-plus/orientation/orientation",ze),__definePage("platforms/app-plus/proximity/proximity",We),__definePage("platforms/app-plus/push/push",Ge),__definePage("platforms/app-plus/shake/shake",Ye),__definePage("pages/about/about",Qe),__definePage("platforms/app-plus/feedback/feedback",tt),__definePage("uni_modules/uni-upgrade-center-app/pages/upgrade-popup",ot),__definePage("pages/API/login/login",rt),__definePage("pages/API/subnvue/subnvue",ct),__definePage("pages/API/get-user-info/get-user-info",dt),__definePage("pages/API/request-payment/request-payment",ht),__definePage("pages/API/share/share",mt),__definePage("pages/API/set-navigation-bar-title/set-navigation-bar-title",gt),__definePage("pages/API/show-loading/show-loading",ft),__definePage("pages/API/navigator/navigator",vt),__definePage("pages/API/navigator/new-page/new-vue-page-1",wt),__definePage("pages/API/navigator/new-page/new-vue-page-2",kt),__definePage("pages/API/pull-down-refresh/pull-down-refresh",xt),__definePage("pages/API/animation/animation",Vt),__definePage("pages/API/get-node-info/get-node-info",Nt),__definePage("pages/API/intersection-observer/intersection-observer",Et),__definePage("pages/API/canvas/canvas",St),__definePage("pages/API/action-sheet/action-sheet",Dt),__definePage("pages/API/modal/modal",Bt),__definePage("pages/API/toast/toast",It),__definePage("pages/API/get-network-type/get-network-type",Pt),__definePage("pages/API/get-system-info/get-system-info",At),__definePage("pages/API/add-phone-contact/add-phone-contact",Lt),__definePage("pages/API/on-accelerometer-change/on-accelerometer-change",Ft),__definePage("pages/API/on-compass-change/on-compass-change",Ut),__definePage("pages/API/make-phone-call/make-phone-call",Ot),__definePage("pages/API/scan-code/scan-code",$t),__definePage("pages/API/clipboard/clipboard",qt),__definePage("pages/API/request/request",Jt),__definePage("pages/API/upload-file/upload-file",Gt),__definePage("pages/API/download-file/download-file",Yt),__definePage("pages/API/image/image",Xt),__definePage("pages/API/voice/voice",la),__definePage("pages/API/inner-audio/inner-audio",ca),__definePage("pages/API/background-audio/background-audio",ua),__definePage("pages/API/video/video",ma),__definePage("pages/API/file/file",ga),__definePage("pages/API/get-location/get-location",Va),__definePage("pages/API/open-location/open-location",_a),__definePage("pages/API/choose-location/choose-location",Ca),__definePage("pages/API/storage/storage",Ta),__definePage("pages/API/sqlite/sqlite",Ba),__definePage("pages/API/rewarded-video-ad/rewarded-video-ad",Pa),__definePage("pages/API/full-screen-video-ad/full-screen-video-ad",Aa),__definePage("pages/API/brightness/brightness",La),__definePage("pages/API/save-media/save-media",Fa),__definePage("pages/API/bluetooth/bluetooth",$a),__definePage("pages/API/soter/soter",za),__definePage("pages/API/ibeacon/ibeacon",Ha),__definePage("pages/API/vibrate/vibrate",Wa),__definePage("pages/API/websocket-socketTask/websocket-socketTask",Ga),__definePage("pages/API/websocket-global/websocket-global",Ka),__definePage("pages/extUI/forms/forms",Il),__definePage("pages/extUI/group/group",Al),__definePage("pages/extUI/badge/badge",Ll),__definePage("pages/extUI/breadcrumb/breadcrumb",Rl),__definePage("pages/extUI/drawer/drawer",zl),__definePage("pages/extUI/popup/popup",Ql),__definePage("pages/extUI/segmented-control/segmented-control",Xl),__definePage("pages/extUI/collapse/collapse",sr),__definePage("pages/extUI/pagination/pagination",hr),__definePage("pages/extUI/steps/steps",mr),__definePage("pages/extUI/notice-bar/notice-bar",fr),__definePage("pages/extUI/swipe-action/swipe-action",Nr),__definePage("pages/extUI/search-bar/search-bar",Dr),__definePage("pages/extUI/calendar/calendar",$r),__definePage("pages/extUI/fab/fab",jr),__definePage("pages/extUI/fav/fav",Kr),__definePage("pages/extUI/section/section",Qr),__definePage("pages/extUI/transition/transition",Zr),__definePage("pages/extUI/title/title",ec),__definePage("pages/extUI/tooltip/tooltip",ac),__definePage("pages/extUI/link/link",nc),__definePage("pages/extUI/combox/combox",sc),__definePage("pages/extUI/list/chat",cc),__definePage("pages/extUI/table/table",vc),__definePage("pages/extUI/dateformat/dateformat",Nc),__definePage("pages/extUI/data-checkbox/data-checkbox",_c),__definePage("pages/extUI/easyinput/easyinput",Cc),__definePage("pages/extUI/data-select/data-select",Tc),__definePage("pages/extUI/datetime-picker/datetime-picker",Bc),__definePage("pages/extUI/row/row",Ac),__definePage("pages/extUI/file-picker/file-picker",jc),__definePage("pages/extUI/button/button",Hc),__definePage("pages/template/nav-default/nav-default",Wc),__definePage("pages/template/component-communication/component-communication",Gc),__definePage("pages/template/nav-transparent/nav-transparent",Kc),__definePage("pages/template/nav-button/nav-button",Zc),__definePage("pages/template/nav-image/nav-image",Xc),__definePage("pages/template/nav-city-dropdown/nav-city-dropdown",ad),__definePage("pages/template/nav-dot/nav-dot",nd),__definePage("pages/template/nav-search-input/nav-search-input",od),__definePage("pages/template/nav-search-input/detail/detail",hd),__definePage("pages/template/list2detail-list/list2detail-list",md),__definePage("pages/template/list2detail-detail/list2detail-detail",Cd),__definePage("pages/template/tabbar/detail/detail",Td),__definePage("pages/template/scheme/scheme",Bd),__definePage("pages/template/global/global",Id);const Pd="__package_info__";function Ad(){return new Promise(((e,t)=>{new Promise(((e,t)=>{plus.runtime.getProperty(plus.runtime.appid,(function(a){const i={action:"checkVersion",appid:plus.runtime.appid,appVersion:plus.runtime.version,wgtVersion:a.version};n("log","at uni_modules/uni-upgrade-center-app/utils/call-check-version.js:11","data: ",i),Ms.callFunction({name:"uni-upgrade-center",data:i,success:t=>{n("log","at uni_modules/uni-upgrade-center-app/utils/call-check-version.js:16","e: ",t),e(t)},fail:e=>{t(e)}})}))})).then((async a=>{if(!a.result)return;const{code:i,message:o,is_silently:s,url:l,platform:r,type:c}=a.result;if(i>0){const{fileList:t}=await Ms.getTempFileURL({fileList:[l]});return t[0].tempFileURL&&(a.result.url=t[0].tempFileURL),e(a),s?void uni.downloadFile({url:a.result.url,success:e=>{200==e.statusCode&&plus.runtime.install(e.tempFilePath,{force:!1})}}):(uni.setStorageSync(Pd,a.result),void uni.navigateTo({url:"/uni_modules/uni-upgrade-center-app/pages/upgrade-popup?local_storage_key=__package_info__",fail:e=>{n("error","at uni_modules/uni-upgrade-center-app/utils/check-update.js:63","更新弹框跳转失败",e),uni.removeStorageSync(Pd)}}))}return i<0?(n("error","at uni_modules/uni-upgrade-center-app/utils/check-update.js:71",o),t(a)):e(a)})).catch((e=>{n("error","at uni_modules/uni-upgrade-center-app/utils/check-update.js:77",e.message),t(e)}))}))}const Md={onLaunch:function(){n("log","at App.vue:21","App Launch"),"HBuilder"!==plus.runtime.appid&&Ad(),uni.preLogin({provider:"univerify",success:e=>{this.setUniverifyErrorMsg(),n("log","at App.vue:34","preLogin success: ",e)},fail:e=>{this.setUniverifyLogin(!1),this.setUniverifyErrorMsg(e.errMsg),n("log","at App.vue:40","preLogin fail res: ",e)}})},onShow:function(){n("log","at App.vue:46","App Show")},onHide:function(){n("log","at App.vue:49","App Hide")},globalData:{test:""},methods:{...ye(["setUniverifyErrorMsg","setUniverifyLogin"])}},Ld=new me({state:{hasLogin:!1,isUniverifyLogin:!1,loginProvider:"",openid:null,testvuex:!1,colorIndex:0,colorList:["#FF0000","#00FF00","#0000FF"],noMatchLeftWindow:!0,active:"componentPage",leftWinActive:"/pages/component/view/view",activeOpen:"",menu:[],univerifyErrorMsg:""},mutations:{login(e,t){e.hasLogin=!0,e.loginProvider=t},logout(e){e.hasLogin=!1,e.openid=null},setOpenid(e,t){e.openid=t},setTestTrue(e){e.testvuex=!0},setTestFalse(e){e.testvuex=!1},setColorIndex(e,t){e.colorIndex=t},setMatchLeftWindow(e,t){e.noMatchLeftWindow=!t},setActive(e,t){e.active=t},setLeftWinActive(e,t){e.leftWinActive=t},setActiveOpen(e,t){e.activeOpen=t},setMenu(e,t){e.menu=t},setUniverifyLogin(e,t){"boolean"!=typeof t&&(t=!!t),e.isUniverifyLogin=t},setUniverifyErrorMsg(e,t=""){e.univerifyErrorMsg=t}},getters:{currentColor:e=>e.colorList[e.colorIndex]},actions:{getUserOpenId:async function({commit:e,state:t}){return await new Promise(((a,i)=>{t.openid?a(t.openid):uni.login({success:t=>{e("login"),setTimeout((function(){const t="123456789";n("log","at store/index.js:91","uni.request mock openid[123456789]"),e("setOpenid",t),a(t)}),1e3)},fail:e=>{n("log","at store/index.js:97","uni.login 接口调用失败,将无法正常使用开放接口等服务",e),i(e)}})}))},getPhoneNumber:function({commit:e},t){return new Promise(((e,a)=>{uni.request({url:"https://97fca9f2-41f6-449f-a35e-3f135d4c3875.bspapp.com/http/univerify-login",method:"POST",data:t,success:t=>{const i=t.data;i.success?e(i.phoneNumber):a(t)},fail:e=>{a(res)}})}))}}});const Fd=uni.getSystemInfoSync(),Ud="3.99",Rd="__UNI__3B4D40B",Od=(e,t)=>{let a=uni.getStorageSync("$$STAT__DBDATA:"+Rd)||{};a||(a={}),a[e]=t,uni.setStorageSync("$$STAT__DBDATA:"+Rd,a)},$d=e=>{let t=uni.getStorageSync("$$STAT__DBDATA:"+Rd)||{};if(!t[e]){let a=uni.getStorageSync("$$STAT__DBDATA:"+Rd);if(a||(a={}),!a[e])return;t[e]=a[e]}return t[e]},zd=e=>{let t=uni.getStorageSync("$$STAT__DBDATA:"+Rd)||{};t[e]?(delete t[e],uni.setStorageSync("$$STAT__DBDATA:"+Rd,t)):(t=uni.getStorageSync("$$STAT__DBDATA:"+Rd),t[e]&&(delete t[e],uni.setStorageSync("$$STAT__DBDATA:"+Rd,t)))},qd={version:"2",enable:!0};let jd={};jd={"pages/tabBar/component/component":"内置组件","pages/tabBar/API/API":"接口","pages/tabBar/template/template":"模版","pages/tabBar/extUI/extUI":"扩展组件","pages/component/view/view":"view","pages/component/scroll-view/scroll-view":"scroll-view","pages/component/swiper/swiper":"swiper","pages/component/cover-view/cover-view":"cover-view","pages/component/movable-view/movable-view":"movable-view","pages/component/text/text":"text","pages/component/rich-text/rich-text":"rich-text","pages/component/progress/progress":"progress","pages/component/button/button":"button","pages/component/checkbox/checkbox":"checkbox","pages/component/form/form":"form","pages/component/input/input":"input","pages/component/label/label":"label","pages/component/picker/picker":"picker","pages/component/picker-view/picker-view":"picker-view","pages/component/radio/radio":"radio","pages/component/slider/slider":"slider","pages/component/switch/switch":"switch","pages/component/textarea/textarea":"textarea","pages/component/editor/editor":"editor","pages/component/navigator/navigator":"navigator","pages/component/navigator/navigate/navigate":"navigatePage","pages/component/navigator/redirect/redirect":"redirectPage","pages/component/image/image":"image","pages/component/video/video":"video","pages/component/map/map":"map","pages/component/canvas/canvas":"canvas","pages/component/web-view/web-view":"web-view","pages/component/ad/ad":"AD","platforms/app-plus/speech/speech":"语音识别","platforms/app-plus/orientation/orientation":"方向传感器","platforms/app-plus/proximity/proximity":"距离传感器","platforms/app-plus/push/push":"推送","platforms/app-plus/shake/shake":"摇一摇","pages/about/about":"关于","platforms/app-plus/feedback/feedback":"问题反馈","pages/API/login/login":"授权登录","pages/API/subnvue/subnvue":"原生子窗体","pages/API/get-user-info/get-user-info":"获取用户信息","pages/API/request-payment/request-payment":"发起支付","pages/API/share/share":"分享","pages/API/set-navigation-bar-title/set-navigation-bar-title":"设置界面标题","pages/API/show-loading/show-loading":"加载提示框","pages/API/navigator/navigator":"页面跳转","pages/API/navigator/new-page/new-vue-page-1":"新VUE页面1","pages/API/navigator/new-page/new-vue-page-2":"新VUE页面2","pages/API/pull-down-refresh/pull-down-refresh":"下拉刷新","pages/API/animation/animation":"创建动画","pages/API/get-node-info/get-node-info":"节点信息","pages/API/intersection-observer/intersection-observer":"节点布局相交状态","pages/API/canvas/canvas":"创建绘画","pages/API/action-sheet/action-sheet":"操作菜单","pages/API/modal/modal":"模态弹窗","pages/API/toast/toast":"消息提示框","pages/API/get-network-type/get-network-type":"获取设备网络状态","pages/API/get-system-info/get-system-info":"获取设备系统信息","pages/API/add-phone-contact/add-phone-contact":"添加手机联系人","pages/API/on-accelerometer-change/on-accelerometer-change":"监听加速度计数据","pages/API/on-compass-change/on-compass-change":"监听罗盘数据","pages/API/make-phone-call/make-phone-call":"打电话","pages/API/scan-code/scan-code":"扫码","pages/API/clipboard/clipboard":"剪贴板","pages/API/request/request":"网络请求","pages/API/upload-file/upload-file":"上传文件","pages/API/download-file/download-file":"下载文件","pages/API/image/image":"图片","pages/API/voice/voice":"录音","pages/API/inner-audio/inner-audio":"音频","pages/API/background-audio/background-audio":"背景音频","pages/API/video/video":"视频","pages/API/file/file":"文件","pages/API/map/map":"map","pages/API/map-search/map-search":"map search","pages/API/get-location/get-location":"获取位置","pages/API/open-location/open-location":"查看位置","pages/API/choose-location/choose-location":"使用地图选择位置","pages/API/storage/storage":"数据存储","pages/API/sqlite/sqlite":"SQLite","pages/API/rewarded-video-ad/rewarded-video-ad":"激励视频广告","pages/API/full-screen-video-ad/full-screen-video-ad":"全屏视频广告","pages/API/brightness/brightness":"屏幕亮度","pages/API/save-media/save-media":"保存媒体到本地","pages/API/bluetooth/bluetooth":"蓝牙","pages/API/soter/soter":"生物认证","pages/API/ibeacon/ibeacon":"iBeacon","pages/API/vibrate/vibrate":"震动","pages/API/websocket-socketTask/websocket-socketTask":"websocket-socketTask","pages/API/websocket-global/websocket-global":"websocket-global","pages/extUI/forms/forms":"Form 表单","pages/extUI/group/group":"Group 分组","pages/extUI/badge/badge":"Badge 数字角标","pages/extUI/breadcrumb/breadcrumb":"Breadcrumb 面包屑","pages/extUI/countdown/countdown":"Countdown 倒计时","pages/extUI/drawer/drawer":"Drawer 抽屉","pages/extUI/icons/icons":"Icons 图标","pages/extUI/load-more/load-more":"LoadMore 加载更多","pages/extUI/nav-bar/nav-bar":"NavBar 导航栏","pages/extUI/number-box/number-box":"NumberBox 数字输入框","pages/extUI/popup/popup":"Popup 弹出层","pages/extUI/segmented-control/segmented-control":"SegmentedControl 分段器","pages/extUI/tag/tag":"Tag 标签","pages/extUI/list/list":"List 列表","pages/extUI/card/card":"Card 卡片","pages/extUI/collapse/collapse":"Collapse 折叠面板","pages/extUI/pagination/pagination":"Pagination 分页器","pages/extUI/swiper-dot/swiper-dot":"SwiperDot 轮播图指示点","pages/extUI/grid/grid":"Grid 宫格","pages/extUI/rate/rate":"Rate 评分","pages/extUI/steps/steps":"Steps 步骤条","pages/extUI/notice-bar/notice-bar":"NoticeBar 通告栏","pages/extUI/swipe-action/swipe-action":"SwipeAction 滑动操作","pages/extUI/search-bar/search-bar":"SearchBar 搜索栏","pages/extUI/calendar/calendar":"Calendar 日历","pages/extUI/indexed-list/indexed-list":"IndexedList 索引列表","pages/extUI/fab/fab":"Fab 悬浮按钮","pages/extUI/fav/fav":"Fav 收藏按钮","pages/extUI/goods-nav/goods-nav":"GoodsNav 商品导航","pages/extUI/section/section":"Section 标题栏","pages/extUI/transition/transition":"Transition 过渡动画","pages/extUI/title/title":"Title 章节标题","pages/extUI/tooltip/tooltip":"Tooltip 文字提示","pages/extUI/link/link":"Link 链接","pages/extUI/combox/combox":"Combox 组合框","pages/extUI/dateformat/dateformat":"Dateformat 日期格式化","pages/extUI/data-checkbox/data-checkbox":"DataCheckbox 单选复选框","pages/extUI/easyinput/easyinput":"Easyinput 增强输入框","pages/extUI/data-picker/data-picker":"DataPicker 级联选择","pages/extUI/data-select/data-select":"DataSelect 下拉框","pages/extUI/datetime-picker/datetime-picker":"DatetimePicker 日期时间","pages/extUI/row/row":"Layout 布局","pages/extUI/file-picker/file-picker":"FilePicker 文件选择上传","pages/extUI/space/space":"间距","pages/extUI/font/font":"字体","pages/extUI/color/color":"颜色","pages/extUI/radius/radius":"圆角","pages/template/nav-default/nav-default":"默认导航栏","pages/template/component-communication/component-communication":"组件通讯","pages/template/nav-transparent/nav-transparent":"透明渐变导航栏","pages/template/nav-button/nav-button":"导航栏带自定义按钮","pages/template/nav-city-dropdown/nav-city-dropdown":"导航栏带城市选择","pages/template/nav-dot/nav-dot":"导航栏带红点和角标","pages/template/nav-search-input/nav-search-input":"导航栏带搜索框","pages/template/nav-search-input/detail/detail":"搜索","pages/template/list2detail-list/list2detail-list":"列表到详情示例","pages/template/list2detail-detail/list2detail-detail":"详情","pages/template/tabbar/tabbar":"可拖动顶部选项卡","pages/template/tabbar/detail/detail":"详情页面","pages/template/swiper-vertical/swiper-vertical":"上下滑动切换视频","pages/template/swiper-list/swiper-list":"swiper-list","pages/template/swiper-list-nvue/swiper-list-nvue":"swiper-list","pages/template/scheme/scheme":"打开外部应用","pages/template/global/global":"GlobalData和vuex"};const Hd="__DC_STAT_UUID",Wd="__DC_UUID_VALUE";function Jd(){let e="";if("n"===Yd()){try{e=plus.runtime.getDCloudId()}catch(dn){e=""}return e}try{e=uni.getStorageSync(Hd)}catch(dn){e=Wd}if(!e){e=Date.now()+""+Math.floor(1e7*Math.random());try{uni.setStorageSync(Hd,e)}catch(dn){uni.setStorageSync(Hd,Wd)}}return e}const Gd={appid:"__UNI__3B4D40B"},Yd=()=>{const e={app:"n","app-plus":"n",h5:"h5","mp-weixin":"wx",[["y","a","p","mp-ali"].reverse().join("")]:"ali","mp-baidu":"bd","mp-toutiao":"tt","mp-qq":"qq","quickapp-native":"qn","mp-kuaishou":"ks","mp-lark":"lark","quickapp-webview":"qw"};if("ali"===e.app&&my&&my.env){const e=my.env.clientName;if("ap"===e)return"ali";if("dingtalk"===e)return"dt"}return e.app},Kd=e=>{const t=Yd();let a="";return e||("wx"===t&&(a=uni.getLaunchOptionsSync().scene),a)},Qd=e=>{let t=e||Xd();if("bd"===Yd()){let e=t.$mp&&t.$mp.page&&t.$mp.page.is,a=t.$scope&&t.$scope.is;return e||a||""}return t.route||t.$scope&&t.$scope.route||t.$mp&&t.$mp.page.route},Zd=e=>{let t=e&&(e.$page||e.$scope&&e.$scope.$page),a=uni.getStorageSync("_STAT_LAST_PAGE_ROUTE");return t?"/"===t.fullPath?t.route:t.fullPath||t.route:a||""},Xd=()=>{let e=getCurrentPages(),t=e[e.length-1];return t?t.$vm:null},eu=e=>"page"===e.mpType||"page"===e.$mpType||e.$mp&&"page"===e.$mp.mpType||"page"===e.$options.mpType?"page":"app"===e.mpType||"app"===e.$mpType||e.$mp&&"app"===e.$mp.mpType||"app"===e.$options.mpType?"app":null,tu=e=>{let t=[],a=[],i=[];for(let n in e){e[n].forEach((e=>{let o="";o=e,0===n?t.push(o):3===n?i.push(o):a.push(o)}))}return t.push(...a,...i),JSON.stringify(t)},au=e=>jd&&jd[e]||"",iu="Report_Data_Time",nu="Report_Status",ou=e=>{let t={usv:Ud,conf:JSON.stringify({ak:"__UNI__3B4D40B"})};uni.request({url:"https://tongji.dcloud.io/uni/stat",method:"GET",data:t,success:t=>{const{data:a}=t;0===a.ret&&"function"==typeof e&&e({enable:a.enable})},fail:t=>{let a=1;try{a=uni.getStorageSync(nu)}catch(i){a=1}""===a&&(a=1),"function"==typeof e&&e({enable:a})}})},su=()=>{if(qd.collectItems){const e=qd.collectItems.uniStatPageLog;return void 0===e||("boolean"!=typeof e||e)}return!0},lu="is_handle_device_id",ru="__first__visit__time",cu="__last__visit__time",du=()=>parseInt((new Date).getTime()/1e3),uu=()=>{const e=$d(ru);let t=0;return e?t=e:(t=du(),Od(ru,t),zd(cu)),t},hu="__page__residence__time";let pu=0,mu=0;const gu=()=>(pu=du(),Od(hu,pu),pu),fu="__total__visit__count",yu=()=>{const e=$d(fu);let t=1;return e&&(t=e,t++),Od(fu,t),t},vu="__first_time",bu=()=>{let e=du();return Od(vu,e)},wu=e=>{let t=0;const a=$d(vu),i=du();if(0!==a&&(t=i-a),t=t<1?1:t,"app"===e){return{residenceTime:t,overtime:t>300}}if("page"===e){return{residenceTime:t,overtime:t>1800}}return{residenceTime:t}},ku=(e=>{let t=qd.reportInterval;if(0===Number(t))return 0;t=t||e;return/(^[1-9]\d*$)/.test(t)?Number(t):e})(10);let xu={uuid:Fd.deviceId||Jd(),ak:Gd.appid,p:"android"===Fd.platform?"a":"i",ut:Yd(),mpn:(()=>{let e="";return"wx"!==Yd()&&"qq"!==Yd()||uni.canIUse("getAccountInfoSync")&&(e=uni.getAccountInfoSync().miniProgram.appId||""),Yd(),e})(),usv:Ud,v:"n"===Yd()?plus.runtime.version:"",ch:(()=>{let e="";return"n"===Yd()&&(e=plus.runtime.channel),e})(),cn:"",pn:"",ct:"",t:du(),tt:"",brand:Fd.brand||"",md:Fd.model,sv:Fd.system.replace(/(Android|iOS)\s/,""),mpsdk:Fd.SDKVersion||"",mpv:Fd.version||"",lang:Fd.language,pr:Fd.pixelRatio,ww:Fd.windowWidth,wh:Fd.windowHeight,sw:Fd.screenWidth,sh:Fd.screenHeight};class Vu extends class{constructor(){this.self="",this.__licationShow=!1,this.__licationHide=!1,this.statData=xu,this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._query={},"function"==typeof uni.addInterceptor&&(this.addInterceptorInit(),this.interceptLogin(),this.interceptShare(!0),this.interceptRequestPayment())}addInterceptorInit(){let e=this;uni.addInterceptor("setNavigationBarTitle",{invoke(t){e._navigationBarTitle.page=t.title}})}interceptLogin(){let e=this;uni.addInterceptor("login",{complete(){e._login()}})}interceptShare(e){let t=this;e?uni.addInterceptor("share",{success(){t._share()},fail(){t._share()}}):t._share()}interceptRequestPayment(){let e=this;uni.addInterceptor("requestPayment",{success(){e._payment("pay_success")},fail(){e._payment("pay_fail")}})}_login(){this.sendEventRequest({key:"login"},0)}_share(){this.sendEventRequest({key:"share"},0)}_payment(e){this.sendEventRequest({key:e},0)}applicationShow(){if(this.__licationHide){if(wu("app").overtime){let e={path:uni.getStorageSync("_STAT_LAST_PAGE_ROUTE"),scene:this.statData.sc,cst:2};this.sendReportRequest(e)}this.__licationHide=!1}}applicationHide(e,t){e||(e=Xd()),this.__licationHide=!0;const a=wu(),i=Zd(e);uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",i),this.sendHideRequest({urlref:i,urlref_ts:a.residenceTime},t),bu()}pageShow(e){this._navigationBarTitle={config:"",page:"",report:"",lt:""};const t=Zd(e),a=Qd(e);if(this._navigationBarTitle.config=au(a),this.__licationShow)return bu(),uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",t),void(this.__licationShow=!1);if(wu("page").overtime){let e={path:t,scene:this.statData.sc,cst:3};this.sendReportRequest(e)}bu()}pageHide(e){if(!this.__licationHide){const t=wu("page");let a=Zd(e),i=uni.getStorageSync("_STAT_LAST_PAGE_ROUTE");return i||(i=a),uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",a),void this.sendPageRequest({url:a,urlref:i,urlref_ts:t.residenceTime})}}sendReportRequest(e,t){this._navigationBarTitle.lt="1",this._navigationBarTitle.config=au(e.path);let a=e.query&&"{}"!==JSON.stringify(e.query)?"?"+JSON.stringify(e.query):"";const i=(()=>{const e=$d(cu);let t=0;return e&&(t=e),Od(cu,du()),t})();if(0!==i||!i){const e=(e=>{let t="";if("n"===Yd()){try{t=plus.device.uuid}catch(dn){t=""}return t}return Fd.deviceId||Jd()})();(()=>{let e=$d(lu)||"";return Od(lu,"1"),"1"===e})()||(this.statData.odid=e)}Object.assign(this.statData,{lt:"1",url:e.path+a||"",t:du(),sc:Kd(e.scene),fvts:uu(),lvts:i,tvc:yu(),cst:e.cst||1}),"n"===Yd()?this.getProperty(t):this.getNetworkInfo(t)}sendPageRequest(e){let{url:t,urlref:a,urlref_ts:i}=e;this._navigationBarTitle.lt="11";let n={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"11",ut:this.statData.ut,url:t,tt:this.statData.tt,urlref:a,urlref_ts:i,ch:this.statData.ch,usv:this.statData.usv,t:du()};this.request(n)}sendHideRequest(e,t){let{urlref:a,urlref_ts:i}=e,n={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"3",ut:this.statData.ut,urlref:a,urlref_ts:i,ch:this.statData.ch,usv:this.statData.usv,t:du()};this.request(n,t)}sendEventRequest({key:e="",value:t=""}={}){let a="";try{a=Qd()}catch(n){a=$d("__launch_options").path}this._navigationBarTitle.config=au(a),this._navigationBarTitle.lt="21";let i={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"21",ut:this.statData.ut,url:a,ch:this.statData.ch,e_n:e,e_v:"object"==typeof t?JSON.stringify(t):t.toString(),usv:this.statData.usv,t:du()};this.request(i)}sendPushRequest(e,t){let a=du();const i={lt:"101",cid:t,t:a,ut:this.statData.ut},n=tu({101:[i]});let o={usv:Ud,t:a,requests:n};"n"!==Yd()||"a"!==this.statData.p?this.sendRequest(o):setTimeout((()=>{this.sendRequest(o)}),200)}getProperty(e){plus.runtime.getProperty(plus.runtime.appid,(t=>{this.statData.v=t.version||"",this.getNetworkInfo(e)}))}getNetworkInfo(e){uni.getNetworkType({success:t=>{this.statData.net=t.networkType,this.getLocation(e)}})}getLocation(e){Gd.getLocation?uni.getLocation({type:"wgs84",geocode:!0,success:t=>{t.address&&(this.statData.cn=t.address.country,this.statData.pn=t.address.province,this.statData.ct=t.address.city),this.statData.lat=t.latitude,this.statData.lng=t.longitude,this.request(this.statData,e)}}):(this.statData.lat=0,this.statData.lng=0,this.request(this.statData,e))}request(e,t){let a=du();const i=this._navigationBarTitle;Object.assign(e,{ttn:i.page,ttpj:i.config,ttc:i.report});let n=$d("__UNI__STAT__DATA")||{};if(n[e.lt]||(n[e.lt]=[]),n[e.lt].push(e),Od("__UNI__STAT__DATA",n),(mu=du(),pu=$d(hu),mu-pu){this.sendRequest(s)}),200)}getIsReportData(){return new Promise(((e,t)=>{let a="",i=(new Date).getTime(),n=1;try{a=uni.getStorageSync(iu),n=uni.getStorageSync(nu)}catch(dn){a="",n=1}""!==n?(1===n&&e(),a||(uni.setStorageSync(iu,i),a=i),i-a>864e5&&ou((({enable:e})=>{uni.setStorageSync(iu,i),uni.setStorageSync(nu,e)}))):ou((({enable:t})=>{uni.setStorageSync(iu,i),uni.setStorageSync(nu,t),1===t&&e()}))}))}sendRequest(e){if(!uni.__stat_uniCloud_space)return void console.error("应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.");uni.__stat_uniCloud_space.importObject("uni-stat-receiver",{customUI:!0}).report(e).then((()=>{})).catch((e=>{}))}imageRequest(e){this.getIsReportData().then((()=>{let t=new Image,a=(e=>{let t=Object.keys(e).sort(),a={},i="";for(var n in t)a[t[n]]=e[t[n]],i+=t[n]+"="+e[t[n]]+"&";return{sign:"",options:i.substr(0,i.length-1)}})((e=>{let t={};for(let a in e)t[a]=encodeURIComponent(e[a]);return t})(e)).options;t.src="https://tongji.dcloud.io/uni/stat.gif?"+a}))}sendEvent(e,t){((e,t)=>e?"string"!=typeof e?(console.error("uni.report [eventName] Parameter type error, it can only be of type String"),!0):e.length>255?(console.error("uni.report [eventName] Parameter length cannot be greater than 255"),!0):"string"!=typeof t&&"object"!=typeof t?(console.error("uni.report [options] Parameter type error, Only supports String or Object type"),!0):"string"==typeof t&&t.length>255?(console.error("uni.report [options] Parameter length cannot be greater than 255"),!0):"title"===e&&"string"!=typeof t?(console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String"),!0):void 0:(console.error("uni.report Missing [eventName] parameter"),!0))(e,t)||("title"!==e?this.sendEventRequest({key:e,value:"object"==typeof t?JSON.stringify(t):t},1):this._navigationBarTitle.report=t)}}{static getInstance(){uni.__stat_instance||(uni.__stat_instance=new Vu);{let e=(e=>{const t={},{spaceId:a,provider:i,clientSecret:n,secretKey:o,secretId:s}=t;return-1!==["tcb","tencent","aliyun","alipay"].indexOf(i)&&("aliyun"===i&&a&&n||("tcb"===i||"tencent"===i)&&a||"alipay"===i&&a&&o&&s)?t:e&&e.spaceId?e:null})(Ms.config);if(!uni.__stat_uniCloud_space)if(e&&0!==Object.keys(e).length){let t={provider:e.provider,spaceId:e.spaceId,clientSecret:e.clientSecret};e.endpoint&&(t.endpoint=e.endpoint),"alipay"===e.provider&&(t.secretKey=e.secretKey,t.accessKey=e.accessKey||e.secretId,t.spaceAppId=e.spaceAppId||e.appId),uni.__stat_uniCloud_space=Ms.init(t)}else console.error("应用未关联服务空间,请在uniCloud目录右键关联服务空间")}return uni.__stat_instance}constructor(){super()}pushEvent(e){const t=(()=>{if(qd.collectItems){const e=qd.collectItems.uniPushClientID;return"boolean"==typeof e&&e}return!1})();uni.getPushClientId&&t&&uni.getPushClientId({success:t=>{const a=t.cid||!1;a&&this.sendPushRequest(e,a)}})}launch(e,t){gu(),this.__licationShow=!0,Od("__launch_options",e),e.cst=1,this.sendReportRequest(e,!0)}load(e,t){this.self=t,this._query=e}appHide(e){this.applicationHide(e,!0)}appShow(e){this.applicationShow(e)}show(e){if(this.self=e,"page"===eu(e)){su()&&this.pageShow(e)}"h5"!==Yd()&&"n"!==Yd()||"app"===eu(e)&&this.appShow()}hide(e){if(this.self=e,"page"===eu(e)){su()&&this.pageHide(e)}"h5"!==Yd()&&"n"!==Yd()||"app"===eu(e)&&this.appHide()}error(e){let t="";t=e.message?e.stack:JSON.stringify(e);let a="";try{a=get_route()}catch(dn){a=""}let i={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"31",url:a,ut:this.statData.ut,ch:this.statData.ch,mpsdk:this.statData.mpsdk,mpv:this.statData.mpv,v:this.statData.v,em:t,usv:this.statData.usv,t:parseInt((new Date).getTime()/1e3)};this.request(i)}}const Nu=Vu.getInstance();let _u=!1;const Eu={onLaunch(e){Nu.launch(e,this),Nu.pushEvent(e)},onLoad(e){if(Nu.load(e,this),this.$scope&&this.$scope.onShareAppMessage){let e=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(t){return Nu.interceptShare(!1),e.call(this,t)}}},onShow(){_u=!1,Nu.show(this)},onHide(){_u=!0,Nu.hide(this)},onUnload(){_u?_u=!1:Nu.hide(this)},onError(e){Nu.error(e)}};uni.onCreateVueApp((e=>{e.mixin(Eu),uni.report=function(e,t){Nu.sendEvent(e,t)}})),"h5"!==Yd()&&"n"!==Yd()&&(uni.onAppHide((()=>{Nu.appHide(Xd())})),uni.onAppShow((()=>{Nu.appShow(Xd())})));const{app:Cu,Vuex:Su,Pinia:Tu}=function(){const t=e.createVueApp(Md);return t.use(Ld),t.config.globalProperties.$adpid="1111111111",t.config.globalProperties.$backgroundAudioData={playing:!1,playTime:0,formatedPlayTime:"00:00:00"},{app:t}}();uni.Vuex=Su,uni.Pinia=Tu,Cu.provide("__globalStyles",__uniConfig.styles),Cu._component.mpType="app",Cu._component.render=()=>{},Cu.mount("#app")}(Vue,uni.VueShared); +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e){return weex.requireModule(e)}function n(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}const o=(t=>(n,o=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,o)})("onReady"),r=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const a=r({},[["render",function(t,n,o,r,a,i){return e.openBlock(),e.createElementBlock("view",{class:"background"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-62c1c4f8"]]);const i=r({},[["render",function(t,n,o,r,a,i){return e.openBlock(),e.createElementBlock("view",{class:"logo-box"},[e.createElementVNode("image",{class:"lb-img",mode:"aspectFill",src:"/static/logo@2x.png"})])}],["__scopeId","data-v-4f3439c2"]]),s=r({__name:"form",props:["username","password","brand_id"],emits:["update:username","update:password","update:brand_id"],setup(t,{emit:n}){const o=t;return(t,r)=>(e.openBlock(),e.createElementBlock("view",{class:"form-box"},[e.createElementVNode("view",{class:"login-form"},[e.createElementVNode("view",{class:"lf-item"},[e.createElementVNode("image",{class:"li-icon",mode:"aspectFit",src:"/static/images/person.png"}),e.createElementVNode("input",{class:"li-ipt",value:o.brand_id,placeholder:"请输入品牌ID",onInput:r[0]||(r[0]=e=>n("update:brand_id",e.detail.value))},null,40,["value"])]),e.createElementVNode("view",{class:"lf-item"},[e.createElementVNode("image",{class:"li-icon",mode:"aspectFit",src:"/static/images/person.png"}),e.createElementVNode("input",{class:"li-ipt",value:o.username,placeholder:"请输入登录账号",onInput:r[1]||(r[1]=e=>n("update:username",e.detail.value))},null,40,["value"])]),e.createElementVNode("view",{class:"lf-item"},[e.createElementVNode("image",{class:"li-icon",mode:"aspectFit",src:"/static/images/lock.png"}),e.createElementVNode("input",{class:"li-ipt",type:"safe-password",password:!0,value:o.password,placeholder:"请输入登录密码",onInput:r[2]||(r[2]=e=>n("update:password",e.detail.value))},null,40,["value"])])])]))}},[["__scopeId","data-v-0207b0f1"]]);const l=r({},[["render",function(t,n){return e.openBlock(),e.createElementBlock("view",{class:"btn-box"},[e.createElementVNode("button",{class:"login-button",type:"primary"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])])}],["__scopeId","data-v-ff158653"]]);var c,u=u||{};u.Security=u.Security||{},(c=u.Security).maxExactInt=Math.pow(2,53),c.toUtf8ByteArr=function(e){for(var t,n=[],o=0;o>>6),n[n.length]=63&t|128;else if(t<=65535)n[n.length]=224+(t>>>12),n[n.length]=t>>>6&63|128,n[n.length]=63&t|128;else{if(!(t<=1114111))throw"Unicode standart supports code points up-to U+10FFFF";n[n.length]=240+(t>>>18),n[n.length]=t>>>12&63|128,n[n.length]=t>>>6&63|128,n[n.length]=63&t|128}return n},c.toHex32=function(e){2147483648&e&&(e&=2147483647,e+=Math.pow(2,31));for(var t=e.toString(16);t.length<8;)t="0"+t;return t},c.reverseBytes=function(e){var t=0;return t+=e>>>24&255,t+=(e>>>16&255)<<8,t+=(e>>>8&255)<<16,t+=(255&e)<<24},c.leftRotate=function(e,t){return e<>>32-t},c.md5=function(e){for(var t=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],n=[],o=0;o<=63;o++)n[o]=Math.abs(Math.sin(o+1))*Math.pow(2,32)<<0;var r,a,i=1732584193,s=4023233417,l=2562383102,u=271733878;r=c.toUtf8ByteArr(e),e=null,a=r.length,r.push(128);for(var p=Math.abs(448-8*r.length%512)/8;p--;)r.push(0);for(r.push(8*a&255,8*a>>8&255,8*a>>16&255,8*a>>24&255),o=4;o--;)r.push(0);for(var d=c.leftRotate,f=(o=0,[]);o>>32-s,n);var i,s}function f(e,t,n,o,r,a,i){return d(t&n|~t&o,e,t,r,a,i)}function y(e,t,n,o,r,a,i){return d(t&o|n&~o,e,t,r,a,i)}function g(e,t,n,o,r,a,i){return d(t^n^o,e,t,r,a,i)}function m(e,t,n,o,r,a,i){return d(n^(t|~o),e,t,r,a,i)}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function b(e,t){var n=e[0],o=e[1],r=e[2],a=e[3];n=w(n,o,r,a,t[0],7,-680876936),a=w(a,n,o,r,t[1],12,-389564586),r=w(r,a,n,o,t[2],17,606105819),o=w(o,r,a,n,t[3],22,-1044525330),n=w(n,o,r,a,t[4],7,-176418897),a=w(a,n,o,r,t[5],12,1200080426),r=w(r,a,n,o,t[6],17,-1473231341),o=w(o,r,a,n,t[7],22,-45705983),n=w(n,o,r,a,t[8],7,1770035416),a=w(a,n,o,r,t[9],12,-1958414417),r=w(r,a,n,o,t[10],17,-42063),o=w(o,r,a,n,t[11],22,-1990404162),n=w(n,o,r,a,t[12],7,1804603682),a=w(a,n,o,r,t[13],12,-40341101),r=w(r,a,n,o,t[14],17,-1502002290),n=_(n,o=w(o,r,a,n,t[15],22,1236535329),r,a,t[1],5,-165796510),a=_(a,n,o,r,t[6],9,-1069501632),r=_(r,a,n,o,t[11],14,643717713),o=_(o,r,a,n,t[0],20,-373897302),n=_(n,o,r,a,t[5],5,-701558691),a=_(a,n,o,r,t[10],9,38016083),r=_(r,a,n,o,t[15],14,-660478335),o=_(o,r,a,n,t[4],20,-405537848),n=_(n,o,r,a,t[9],5,568446438),a=_(a,n,o,r,t[14],9,-1019803690),r=_(r,a,n,o,t[3],14,-187363961),o=_(o,r,a,n,t[8],20,1163531501),n=_(n,o,r,a,t[13],5,-1444681467),a=_(a,n,o,r,t[2],9,-51403784),r=_(r,a,n,o,t[7],14,1735328473),n=x(n,o=_(o,r,a,n,t[12],20,-1926607734),r,a,t[5],4,-378558),a=x(a,n,o,r,t[8],11,-2022574463),r=x(r,a,n,o,t[11],16,1839030562),o=x(o,r,a,n,t[14],23,-35309556),n=x(n,o,r,a,t[1],4,-1530992060),a=x(a,n,o,r,t[4],11,1272893353),r=x(r,a,n,o,t[7],16,-155497632),o=x(o,r,a,n,t[10],23,-1094730640),n=x(n,o,r,a,t[13],4,681279174),a=x(a,n,o,r,t[0],11,-358537222),r=x(r,a,n,o,t[3],16,-722521979),o=x(o,r,a,n,t[6],23,76029189),n=x(n,o,r,a,t[9],4,-640364487),a=x(a,n,o,r,t[12],11,-421815835),r=x(r,a,n,o,t[15],16,530742520),n=k(n,o=x(o,r,a,n,t[2],23,-995338651),r,a,t[0],6,-198630844),a=k(a,n,o,r,t[7],10,1126891415),r=k(r,a,n,o,t[14],15,-1416354905),o=k(o,r,a,n,t[5],21,-57434055),n=k(n,o,r,a,t[12],6,1700485571),a=k(a,n,o,r,t[3],10,-1894986606),r=k(r,a,n,o,t[10],15,-1051523),o=k(o,r,a,n,t[1],21,-2054922799),n=k(n,o,r,a,t[8],6,1873313359),a=k(a,n,o,r,t[15],10,-30611744),r=k(r,a,n,o,t[6],15,-1560198380),o=k(o,r,a,n,t[13],21,1309151649),n=k(n,o,r,a,t[4],6,-145523070),a=k(a,n,o,r,t[11],10,-1120210379),r=k(r,a,n,o,t[2],15,718787259),o=k(o,r,a,n,t[9],21,-343485551),e[0]=P(n,e[0]),e[1]=P(o,e[1]),e[2]=P(r,e[2]),e[3]=P(a,e[3])}function v(e,t,n,o,r,a){return t=P(P(t,e),P(o,a)),P(t<>>32-r,n)}function w(e,t,n,o,r,a,i){return v(t&n|~t&o,e,t,r,a,i)}function _(e,t,n,o,r,a,i){return v(t&o|n&~o,e,t,r,a,i)}function x(e,t,n,o,r,a,i){return v(t^n^o,e,t,r,a,i)}function k(e,t,n,o,r,a,i){return v(n^(t|~o),e,t,r,a,i)}function S(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var E="0123456789abcdef".split("");function A(e){for(var t="",n=0;n<4;n++)t+=E[e>>8*n+4&15]+E[e>>8*n&15];return t}function N(e){return function(e){for(var t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(b(o,r),t=0;t<16;t++)r[t]=0;return r[14]=8*n,b(o,r),o}(e))}function P(e,t){return e+t&4294967295}N("hello"),N("hello"),new Array(0,3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745);var I=new Array(new Array(0,7,1),new Array(1,12,2),new Array(2,17,3),new Array(3,22,4),new Array(4,7,5),new Array(5,12,6),new Array(6,17,7),new Array(7,22,8),new Array(8,7,9),new Array(9,12,10),new Array(10,17,11),new Array(11,22,12),new Array(12,7,13),new Array(13,12,14),new Array(14,17,15),new Array(15,22,16)),L=new Array(new Array(1,5,17),new Array(6,9,18),new Array(11,14,19),new Array(0,20,20),new Array(5,5,21),new Array(10,9,22),new Array(15,14,23),new Array(4,20,24),new Array(9,5,25),new Array(14,9,26),new Array(3,14,27),new Array(8,20,28),new Array(13,5,29),new Array(2,9,30),new Array(7,14,31),new Array(12,20,32)),C=new Array(new Array(5,4,33),new Array(8,11,34),new Array(11,16,35),new Array(14,23,36),new Array(1,4,37),new Array(4,11,38),new Array(7,16,39),new Array(10,23,40),new Array(13,4,41),new Array(0,11,42),new Array(3,16,43),new Array(6,23,44),new Array(9,4,45),new Array(12,11,46),new Array(15,16,47),new Array(2,23,48)),V=new Array(new Array(0,6,49),new Array(7,10,50),new Array(14,15,51),new Array(5,21,52),new Array(12,6,53),new Array(3,10,54),new Array(10,15,55),new Array(1,21,56),new Array(8,6,57),new Array(15,10,58),new Array(6,15,59),new Array(13,21,60),new Array(4,6,61),new Array(11,10,62),new Array(2,15,63),new Array(9,21,64));new Array(new Array((function(e,t,n){return e&t|~e&n}),I),new Array((function(e,t,n){return e&n|t&~n}),L),new Array((function(e,t,n){return e^t^n}),C),new Array((function(e,t,n){return t^(e|~n)}),V));const O={hex_md5:function(e){return function(e){for(var t,n=p?"0123456789ABCDEF":"0123456789abcdef",o="",r=0;r>>4&15)+n.charAt(15&t);return o}(function(e){return function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,o=-271733879,r=-1732584194,a=271733878,i=0;i>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<1&&"boolean"!=typeof t)throw new X('"allowMissing" argument must be a boolean');if(null===he(/^%?[^%]*%?$/,e))throw new W("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=me(e,0,1),n=me(e,-1);if("%"===t&&"%"!==n)throw new W("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new W("invalid intrinsic syntax, expected opening `%`");var o=[];return ge(e,be,(function(e,t,n,r){o[o.length]=n?ge(r,ve,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",r=we("%"+o+"%",t),a=r.name,i=r.value,s=!1,l=r.alias;l&&(o=l[0],ye(n,fe([0,1],l)));for(var c=1,u=!0;c=n.length){var y=Z(i,p);i=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:i[p]}else u=de(i,p),i=i[p];u&&!s&&(se[a]=i)}}return i},xe={},ke={get exports(){return xe},set exports(e){xe=e}},Se=_e("%Object.defineProperty%",!0),Ee=function(){if(Se)try{return Se({},"a",{value:1}),!0}catch(ho){return!1}return!1};Ee.hasArrayLengthDefineBug=function(){if(!Ee())return null;try{return 1!==Se([],"length",{value:1}).length}catch(ho){return!0}};var Ae=Ee,Ne=_e("%Object.getOwnPropertyDescriptor%",!0);if(Ne)try{Ne([],"length")}catch(ho){Ne=null}var Pe=Ne,Ie=Ae(),Le=_e,Ce=Ie&&Le("%Object.defineProperty%",!0);if(Ce)try{Ce({},"a",{value:1})}catch(ho){Ce=!1}var Ve=Le("%SyntaxError%"),Oe=Le("%TypeError%"),Be=Pe,je=_e,Te=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new Oe("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new Oe("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Oe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Oe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Oe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Oe("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,i=arguments.length>6&&arguments[6],s=!!Be&&Be(e,t);if(Ce)Ce(e,t,{configurable:null===a&&s?s.configurable:!a,enumerable:null===o&&s?s.enumerable:!o,value:n,writable:null===r&&s?s.writable:!r});else{if(!i&&(o||r||a))throw new Ve("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}},De=Ae(),Re=Pe,Fe=je("%TypeError%"),Me=je("%Math.floor%"),Ue=function(e,t){if("function"!=typeof e)throw new Fe("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||Me(t)!==t)throw new Fe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,r=!0;if("length"in e&&Re){var a=Re(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(r=!1)}return(o||r||!n)&&(De?Te(e,"length",t,!0,!0):Te(e,"length",t)),e};!function(e){var t=$,n=_e,o=Ue,r=n("%TypeError%"),a=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(i,a),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(ho){l=null}e.exports=function(e){if("function"!=typeof e)throw new r("a function is required");var n=s(t,i,arguments);return o(n,1+c(0,e.length-(arguments.length-1)),!0)};var u=function(){return s(t,a,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u}(ke);var Ge=_e,He=xe,Qe=He(Ge("String.prototype.indexOf"));const $e=j(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var qe="function"==typeof Map&&Map.prototype,Ke=Object.getOwnPropertyDescriptor&&qe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ze=qe&&Ke&&"function"==typeof Ke.get?Ke.get:null,We=qe&&Map.prototype.forEach,Je="function"==typeof Set&&Set.prototype,Xe=Object.getOwnPropertyDescriptor&&Je?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ye=Je&&Xe&&"function"==typeof Xe.get?Xe.get:null,Ze=Je&&Set.prototype.forEach,et="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,tt="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,nt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,ot=Boolean.prototype.valueOf,rt=Object.prototype.toString,at=Function.prototype.toString,it=String.prototype.match,st=String.prototype.slice,lt=String.prototype.replace,ct=String.prototype.toUpperCase,ut=String.prototype.toLowerCase,pt=RegExp.prototype.test,dt=Array.prototype.concat,ft=Array.prototype.join,yt=Array.prototype.slice,gt=Math.floor,mt="function"==typeof BigInt?BigInt.prototype.valueOf:null,ht=Object.getOwnPropertySymbols,bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,vt="function"==typeof Symbol&&"object"==typeof Symbol.iterator,wt="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===vt||"symbol")?Symbol.toStringTag:null,_t=Object.prototype.propertyIsEnumerable,xt=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function kt(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||pt.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-gt(-e):gt(e);if(o!==e){var r=String(o),a=st.call(t,r.length+1);return lt.call(r,n,"$&_")+"."+lt.call(lt.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lt.call(t,n,"$&_")}var St=$e,Et=St.custom,At=Ct(Et)?Et:null;function Nt(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function Pt(e){return lt.call(String(e),/"/g,""")}function It(e){return!("[object Array]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}function Lt(e){return!("[object RegExp]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}function Ct(e){if(vt)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!bt)return!1;try{return bt.call(e),!0}catch(ho){}return!1}var Vt=Object.prototype.hasOwnProperty||function(e){return e in this};function Ot(e,t){return Vt.call(e,t)}function Bt(e){return rt.call(e)}function jt(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Tt(st.call(e,0,t.maxStringLength),t)+o}return Nt(lt.call(lt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Dt),"single",t)}function Dt(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ct.call(t.toString(16))}function Rt(e){return"Object("+e+")"}function Ft(e){return e+" { ? }"}function Mt(e,t,n,o){return e+" ("+t+") {"+(o?Ut(n,o):ft.call(n,", "))+"}"}function Ut(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+ft.call(e,","+n)+"\n"+t.prev}function Gt(e,t){var n=It(e),o=[];if(n){o.length=e.length;for(var r=0;r-1?He(n):n},$t=function e(t,n,o,r){var a=n||{};if(Ot(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ot(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Ot(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ot(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ot(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Tt(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return s?kt(t,l):l}if("bigint"==typeof t){var c=String(t)+"n";return s?kt(t,c):c}var u=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=u&&u>0&&"object"==typeof t)return It(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=ft.call(Array(e.indent+1)," ")}return{base:n,prev:ft.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(jt(r,t)>=0)return"[Circular]";function d(t,n,i){if(n&&(r=yt.call(r)).push(n),i){var s={depth:a.depth};return Ot(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!Lt(t)){var f=function(e){if(e.name)return e.name;var t=it.call(at.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),y=Gt(t,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(y.length>0?" { "+ft.call(y,", ")+" }":"")}if(Ct(t)){var g=vt?lt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):bt.call(t);return"object"!=typeof t||vt?g:Rt(g)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var m="<"+ut.call(String(t.nodeName)),h=t.attributes||[],b=0;b"}if(It(t)){if(0===t.length)return"[]";var v=Gt(t,d);return p&&!function(e){for(var t=0;t=0)return!1;return!0}(v)?"["+Ut(v,p)+"]":"[ "+ft.call(v,", ")+" ]"}if(function(e){return!("[object Error]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}(t)){var w=Gt(t,d);return"cause"in Error.prototype||!("cause"in t)||_t.call(t,"cause")?0===w.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ft.call(w,", ")+" }":"{ ["+String(t)+"] "+ft.call(dt.call("[cause]: "+d(t.cause),w),", ")+" }"}if("object"==typeof t&&i){if(At&&"function"==typeof t[At]&&St)return St(t,{depth:u-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!ze||!e||"object"!=typeof e)return!1;try{ze.call(e);try{Ye.call(e)}catch(m){return!0}return e instanceof Map}catch(ho){}return!1}(t)){var _=[];return We&&We.call(t,(function(e,n){_.push(d(n,t,!0)+" => "+d(e,t))})),Mt("Map",ze.call(t),_,p)}if(function(e){if(!Ye||!e||"object"!=typeof e)return!1;try{Ye.call(e);try{ze.call(e)}catch(t){return!0}return e instanceof Set}catch(ho){}return!1}(t)){var x=[];return Ze&&Ze.call(t,(function(e){x.push(d(e,t))})),Mt("Set",Ye.call(t),x,p)}if(function(e){if(!et||!e||"object"!=typeof e)return!1;try{et.call(e,et);try{tt.call(e,tt)}catch(m){return!0}return e instanceof WeakMap}catch(ho){}return!1}(t))return Ft("WeakMap");if(function(e){if(!tt||!e||"object"!=typeof e)return!1;try{tt.call(e,tt);try{et.call(e,et)}catch(m){return!0}return e instanceof WeakSet}catch(ho){}return!1}(t))return Ft("WeakSet");if(function(e){if(!nt||!e||"object"!=typeof e)return!1;try{return nt.call(e),!0}catch(ho){}return!1}(t))return Ft("WeakRef");if(function(e){return!("[object Number]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}(t))return Rt(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!mt)return!1;try{return mt.call(e),!0}catch(ho){}return!1}(t))return Rt(d(mt.call(t)));if(function(e){return!("[object Boolean]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}(t))return Rt(ot.call(t));if(function(e){return!("[object String]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}(t))return Rt(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===B)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Bt(e)||wt&&"object"==typeof e&&wt in e)}(t)&&!Lt(t)){var k=Gt(t,d),S=xt?xt(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",A=!S&&wt&&Object(t)===t&&wt in t?st.call(Bt(t),8,-1):E?"Object":"",N=(S||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(A||E?"["+ft.call(dt.call([],A||[],E||[]),": ")+"] ":"");return 0===k.length?N+"{}":p?N+"{"+Ut(k,p)+"}":N+"{ "+ft.call(k,", ")+" }"}return String(t)},qt=Ht("%TypeError%"),Kt=Ht("%WeakMap%",!0),zt=Ht("%Map%",!0),Wt=Qt("WeakMap.prototype.get",!0),Jt=Qt("WeakMap.prototype.set",!0),Xt=Qt("WeakMap.prototype.has",!0),Yt=Qt("Map.prototype.get",!0),Zt=Qt("Map.prototype.set",!0),en=Qt("Map.prototype.has",!0),tn=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n},nn=String.prototype.replace,on=/%20/g,rn="RFC3986",an={default:rn,formatters:{RFC1738:function(e){return nn.call(e,on,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:rn},sn=an,ln=Object.prototype.hasOwnProperty,cn=Array.isArray,un=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pn=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o1;){var t=e.pop(),n=t.obj[t.prop];if(cn(n)){for(var o=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||r===sn.RFC1738&&(40===l||41===l)?i+=a.charAt(s):l<128?i+=un[l]:l<2048?i+=un[192|l>>6]+un[128|63&l]:l<55296||l>=57344?i+=un[224|l>>12]+un[128|l>>6&63]+un[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(s)),i+=un[240|l>>18]+un[128|l>>12&63]+un[128|l>>6&63]+un[128|63&l])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(cn(e)){for(var n=[],o=0;o0?b.join(",")||null:void 0}];else if(bn(l))N=l;else{var I=Object.keys(b);N=c?I.sort(c):I}for(var L=r&&bn(b)&&1===b.length?n+"[]":n,C=0;C-1?e.split(","):e},On=function(e,t,n,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,l=[];if(s){if(!n.plainObjects&&Pn.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;n.depth>0&&null!==(i=a.exec(r))&&c=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=r:"__proto__"!==l&&(i[l]=r):i={0:r}}r=i}return r}(l,t,n,o)}},Bn={formats:an,parse:function(e,t){var n=function(e){if(!e)return Ln;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ln.charset:e.charset;return{allowDots:void 0===e.allowDots?Ln.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ln.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Ln.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ln.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ln.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ln.comma,decoder:"function"==typeof e.decoder?e.decoder:Ln.decoder,delimiter:"string"==typeof e.delimiter||Nn.isRegExp(e.delimiter)?e.delimiter:Ln.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ln.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ln.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ln.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ln.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ln.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n,o={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,a),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(u=In(u)?[u]:u),Pn.call(o,c)?o[c]=Nn.combine(o[c],u):o[c]=u}return o}(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(o),i=0;i0?f+d:""}};const jn=e=>(e=e.toString())[1]?e:"0"+e;function Tn(e="加载中",t=!0){uni.showLoading({mask:t,title:e})}function Dn(){uni.hideLoading()}function Rn({title:e="提示",content:t="",showCancel:n=!1,cancelText:o="取消",confirmText:r="确定",confirmColor:a="#009874",success:i,fail:s,complete:l}){uni.showModal({title:e,content:t,showCancel:n,cancelText:o,confirmColor:a,confirmText:r,success:i,fail:s,complete:l})}function Fn(e,t){let n=new Date(e),o=new Date(t);return n.setHours(0,0,0,0)==o.setHours(0,0,0,0)}function Mn(e,t){let n="";for(var o in e)n+=`&${o}=${e[o]}`;return t+"?"+n.slice(1)}const Un={checkSerialPortMessage:function(e){return e?"aa01ea"==e?"":e:""},formatTime:e=>{const t=e.getFullYear(),n=e.getMonth()+1,o=e.getDate(),r=e.getHours(),a=e.getMinutes(),i=e.getSeconds();return[t,n,o].map(jn).join("-")+" "+[r,a,i].map(jn).join(":")},formatNumber:jn,formatDate:({date:e=new Date,partition:t="-"})=>{let n;n="string"==typeof e&&-1!=e.indexOf("-")?new Date(e.replace(/\-/g,"/")):new Date(e);const o=n.getFullYear(),r=n.getMonth()+1,a=n.getDate();return"zh"==t?`${o}年${r}月${a}日`:[o,r,a].map(jn).join(t)},routeTo:(e,t)=>{switch(t){case"nT":uni.navigateTo({url:e});break;case"rT":uni.redirectTo({url:e});break;case"rL":uni.reLaunch({url:e});break;case"sT":uni.switchTab({url:e});break;default:uni.navigateBack({delta:1})}},showNone:function(e,t=1500){uni.hideToast(),uni.hideLoading(),uni.showToast({mask:!0,title:e,icon:"none",duration:t})},showLoad:Tn,hideLoad:Dn,showModal:Rn,debounce:function(e,t,n){let o,r,a,i,s;const l=function(){const c=+new Date-i;c0?o=setTimeout(l,t-c):(o=null,n||(s=e.apply(a,r),o||(a=r=null)))};return function(...r){a=this,i=+new Date;const c=n&&!o;return o||(o=setTimeout(l,t)),c&&(s=e.apply(a,r),a=r=null),s}},jsonStr:function(e){return encodeURIComponent(JSON.stringify(e))},jsonPar:function(e){return JSON.parse(decodeURIComponent(e))},promisify:e=>(t,...n)=>new Promise(((o,r)=>{e(Object.assign({},t,{success:o,fail:r}),...n)})),previousPageFunction:function({fnName:e,query:t}){return new Promise(((o,r)=>{try{getCurrentPages().length>1?(n("log","at utils/util.js:153",getCurrentPages()),getCurrentPages()[getCurrentPages().length-2].$vm[e](t),o("success")):(n("error","at utils/util.js:157","当前路由栈为一,无法调取上一页数据"),r("当前路由栈为一,无法调取上一页数据"))}catch(a){n("error","at utils/util.js:161","调用上一页面栈方法失败!",a),r("调用上一页面栈方法失败!")}}))},getNodeMes:function(e,t=null){return new Promise((n=>{(t?uni.createSelectorQuery().in(t):uni.createSelectorQuery()).select(e).boundingClientRect((e=>{n(e)})).exec()}))},failAuthorizeTosetting:function(e="调用失败,请打开检查授权状态"){Rn({title:"提示",content:e,showCancel:!0,confirmText:"打开",success:e=>{e.confirm&&uni.openSetting()}})},getSceneQuery:function(e){return(decodeURIComponent(e)||null).split("&").reduce(((e,t)=>{let n=t.split("=");return e[`${n[0]}`]=n[1],e}),{})||null},getUrlQuery:function(e,t){var n=decodeURI(t).split("?a=1").join("");return-1!=n.indexOf(`${e}=`)?n.split(`${e}=`)[1].split("&")[0]:null},getQueryString:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?n[2]:null},getRandom:function(e,t){return Math.round(Math.random()*(t-e))+e},get_zh_day:function(e){return Fn((new Date).getTime(),new Date(e).getTime())?"今天":["周日","周一","周二","周三","周四","周五","周六"][new Date(e).getDay()]||""},isSameDay:Fn,get_zh_date:function(e=new Date){return`${new Date(e).getMonth()+1}月${new Date(e).getDate()}日`},substrDate:function(e){if(e)return e.substr(0,10)||"-"},requestPayment:function(e={}){Tn(),uni.requestPayment({timeStamp:e.timeStamp||"",nonceStr:e.nonceStr||"",package:e.package||"",signType:e.signType||"",paySign:e.paySign||"",success:function(t){e.success&&e.success(t)},fail:function(t){e.fail&&e.fail(t)},complete:function(t){Dn(),e.complete&&e.complete(t)}})},getQueryStr:function({url:e,name:t}){let n=(e.split("?")[1]||"").split("&")||[];for(let o=0;o{let o=t.split("=");return e[o[0]]=o[1],e}),{})||{}},specialFormatDate:function(e){var t=(new Date).getTime(),n=new Date(t+864e5*e);let o={};return o.y=n.getFullYear(),o.m=n.getMonth()+1,o.d=n.getDate(),o},timeToSec:function(e,t,n){return 1e3*(Number(3600*e)+Number(60*t)+Number(n))},debug:!1,showLog:function(e,t,n){Mn(e,t);let o=t.split("?")[0].split("/");o[o.length-1]},getWebURL:Mn,getUrlParams:function(e){var t={},n=e.split("?");if(n.length<=1)return t;n=n[1].split("&");for(var o=0;o{uni.getSystemInfo({success:function(t){e(t.windowHeight)},fail:e=>{n("log","at utils/util.js:461","getSystemInfo fail",e),t(1e3)}})}))},getNvueRefSize:function(e,t,n){return new Promise(((e,t)=>{}))},getH5RefSize:function(e,t){return new Promise(((e,t)=>{}))},resetHeader:function(e,t,n,o){let r=getApp().globalData.timeDifference||0,{S:a,T:i}=function(e){let t="";e.data&&(t=JSON.stringify(e.data));let n=e.url+"?"+Bn.stringify(e.params),o=parseInt((new Date).getTime()/1e3-e.timeDifference),r=t+"|1ba2212f78610369467de90fb1e3d345|"+n+"|4e68cd333457cb297a05ec7f77a9ad978b56cf57|"+o;return{S:O.hex_md5(r),T:o}}({data:n,params:o,url:t,timeDifference:r});return{...e,S:a,T:i}},updateTimeDifference:function(e){let{now_timestamp:t}=e,n="";t&&(n=parseInt((new Date).getTime()/1e3-t)),getApp().globalData.timeDifference=n}},Gn="https://testmanager.ouxuanzhineng.cn",Hn={padLogin:`${Gn}/assistant/WechatMiniApplogin`,padList:`${Gn}/admin/stadium/list`,getGoodsList:`${Gn}/admin/erpRetailGoods/list`,getGoodFromPad:`${Gn}/admin/erpRetailGoods/getErpGoodsBySkuOfPad`,getGoodsClassify:`${Gn}/classifyer/all`,makeOrder:`${Gn}/admin/erp/retailByPayOfQrcode`,payOrder:`${Gn}/admin/order/pay/online/payByScannedCode`,checkOrder:`${Gn}/pay/huishouqian/checkOrder`,version:`${Gn}/version`};const Qn=new class{request(e,t,o,r,a,i){return new Promise((async(s,l)=>{uni.request({url:e,timeout:2e4,sslVerify:!1,data:t,method:o,header:{...r},success:o=>{if(o.extension&&Un.updateTimeDifference(o.extension),a){if(""==i)throw Error("默认回调,失败提示不能为空 key -> failMsg");!function({res:e,failMsg:t,resolve:n,reject:o,url:r,data:a}){0==e.data.code?n(e.data.data):(Un.hideLoad(),Un.showNone(e.data.message||t||""),o({url:r,res:e,data:a}))}({url:e,data:t,res:o,failMsg:i,resolve:s,reject:l})}else{{n("log","at utils/server.js:37","islog req success----\x3e");let o=function(e,t){let n="";for(var o in e)n+=`&${o}=${e[o]}`;return t+"?"+n.slice(1)}(t,e),r=e.split("?")[0].split("/"),a=r[r.length-1];n("log","at utils/server.js:41","--------------------\x3e> ["+a+"][log]\n请求 Data: \n"+JSON.stringify(t)+"\n URL:\n"+o+"\n <<-------------------- ["+a+"][log] ↑↑↑\n")}s(o)}},fail:r=>{n("log","at utils/server.js:46","req fail----\x3e",{link:e,query:t,method:o,data:r}),Un.hideLoad(),"string"!=typeof r.errMsg||-1==r.errMsg.indexOf("timeout")&&-1==r.errMsg.indexOf("interrupted")&&-1==r.errMsg.indexOf("请求超时")?"string"==typeof r.errMsg?Un.showNone(r.errMsg):Un.showNone("请求数据失败!请检查当前网络状态。"):Un.showNone("网络超时!"),l(r)},complete(n){Un.showLog(t,e,n)}})}))}get({url:e,data:t={},header:n={},isDefaultGet:o=!0,failMsg:r=""}){return n=Un.resetHeader(n,e,t,{}),this.request(e,t,"GET",n,o,r)}post({url:e,data:t={},header:n={},isDefaultGet:o=!0,failMsg:r=""}){return n=Un.resetHeader(n,e,t,{}),this.request(e,t,"POST",n,o,r)}uploadFile({url:e,filePath:t,onProgressCallBack:n,formData:o={}}){return new Promise(((r,a)=>{wx.uploadFile({url:e,filePath:t,formData:o,name:"file",success:r,fail:a}).onProgressUpdate((e=>n&&n(e)))}))}};const $n={resetOXPrintInfo:function(e){let t=[],n="-------------------------------\n";t.push(n);for(let o of e.goods_data){let e=o.name+";"+o.nums+";"+o.price+";"+(o.price*o.nums).toFixed(2);t.push(e)}return t.push(n),t.push(`金额合计:${e.amount||"-"}\n`),t.push(`交易时间:${e.time||"-"}\n`),t.push(`订单号:${e.order_no||"-"}\n`),t.push(`门店:${e.venue_name||"-"}\n`),t},testPrintInfo:{goods_data:[{id:31,name:"南瓜1Kg",nums:1,price:.01,unit:"个"},{id:32,name:"乔丹篮球",nums:2,price:.01,unit:"个"}],amount:.03}},qn={__name:"index",setup(r){const c=t("OX_Pad_Printer");t("Ph-Module");const u=t("TestModule");o((async()=>{!function(){let e=uni.getStorageSync("userInfo");n("log","at pages/login/index.vue:185","page-onReady autoLogin userInfo: ",e||"none"),e&&(p.value=e.username,d.value=e.password,f.value=e.brand_id,v())}()}));const p=e.ref(""),d=e.ref(""),f=e.ref(""),y=e=>{p.value=e},g=e=>{d.value=e},m=e=>{f.value=e};function h(){u.testAsyncFunc({testPrinter:"testPrinter"})}function b(){n("log","at pages/login/index.vue:83","OX_Pad_Printer test------begin---!");let e=$n.resetOXPrintInfo($n.testPrintInfo);c.execAPI({api_name:"doPrint",value:e},(e=>{n("log","at pages/login/index.vue:101","testPrinter: "+JSON.stringify(e))}))}function v(){Un.showLoad("登录中...");let e={assistant_client:"pc",brand_id:f.value,username:p.value,password:d.value};Qn.post({url:Hn.padLogin,data:e,isDefaultGet:!0,failMsg:"操作失败!"}).then((e=>{Un.hideLoad(),n("log","at pages/login/index.vue:143","padLogin suc: ",e);let{token:t,role:o}=e,r=getApp().globalData.autoLogin,a=uni.getStorageSync("stadiumInfo");var i;return i={username:p.value,password:d.value,brand_id:f.value,token:t,role:o},uni.setStorageSync("userInfo",i),getApp().globalData.accountInfo.brand_id=i.brand_id,getApp().globalData.accountInfo.username=i.username,getApp().globalData.accountInfo.password=i.password,getApp().globalData.accountInfo.token=i.token,getApp().globalData.accountInfo.role=i.role,n("log","at pages/login/index.vue:181","存储到本地localStorage "+uni.getStorageSync("userInfo").username),r&&a?(getApp().globalData.autoLogin=!1,setTimeout((()=>{Un.routeTo("/pages/index/standby","nT")}),1e3),Un.showNone("登录成功")):(getApp().globalData.autoLogin=!1,setTimeout((()=>{Un.routeTo("/pages/login/success","nT")}),1e3),Un.showNone("登录成功,请先选择门店"))})).finally((()=>{Un.hideLoad()}))}return(t,n)=>(e.openBlock(),e.createBlock(a,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"login-index"},[e.createElementVNode("view",{class:"li-logo"},[e.createVNode(i)]),e.createElementVNode("view",{class:"li-name"},"欢迎使用欧轩智能场馆平板端系统"),e.createElementVNode("view",{class:"li-from"},[e.createVNode(s,{username:p.value,"onUpdate:username":y,password:d.value,"onUpdate:password":g,brand_id:f.value,"onUpdate:brand_id":m},null,8,["username","password","brand_id"])]),e.createElementVNode("view",{class:"li-tip",onClick:b},"*登录账号密码请从pc端后台管理【设备运营管理平板管理】里获取"),e.createElementVNode("view",{class:"li-tip",onClick:h},"*登录账号密码请从pc端后台管理【222222】里获取"),e.createElementVNode("view",{class:"li-btn"},[e.createVNode(l,{onClick:v},{default:e.withCtx((()=>[e.createTextVNode("登录")])),_:1})])])])),_:1}))}},Kn=r({__name:"page_standby",setup(t){const o=e.ref(0);var r=e.computed((()=>{let{accountInfo:e,stadiumInfo:t}=getApp().globalData,o=e.username||"用户";return uni.getStorageSync("stadiumInfo")&&(n("log","at components/index/page_standby.vue:39","stadiumInfo: ",uni.getStorageSync("stadiumInfo")),t=uni.getStorageSync("stadiumInfo")),t&&(o=t.venue_name),o}));const a=()=>{Un.routeTo("/pages/index/index","nT")};function i(){o.value++,n("log","at components/index/page_standby.vue:63","tabChnage: ",o.value),o.value>=10&&(o.value=0,Un.routeTo("/pages/login/success","nT")),s()}const s=Un.debounce((function(){o.value=0}),1e3,!1);return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"content_title"},[e.createElementVNode("text",{class:"txt",onClick:i},e.toDisplayString(e.unref(r)),1)]),e.createElementVNode("view",{class:"content_info"},[e.createElementVNode("text",{class:"txt"},"欢迎使用自助收银")]),e.createElementVNode("image",{class:"content_tip",src:"/static/index_tips.png",mode:"scaleToFill"}),e.createElementVNode("image",{class:"content_img",src:"/static/index_person.png",mode:"scaleToFill"}),e.createElementVNode("view",{class:"content_btn",onClick:a},[e.createElementVNode("image",{class:"icon_saoma",src:"/static/images/saoma.png",mode:"scaleToFill"}),e.createElementVNode("text",{class:"txt"},"请扫描商品条形码")]),e.createElementVNode("view",{class:"content_logo"},[e.createElementVNode("text",{class:"txt"},"欧轩智能场馆提供技术支持")])]))}},[["__scopeId","data-v-bee7a11a"]]),zn=e=>{(e.$renderjs||(e.$renderjs=[])).push("keyboard"),(e.$renderjsModules||(e.$renderjsModules={})).keyboard="082c61ac"},Wn={methods:{onEvent(e){this.$emit(e.type,e)}}};zn(Wn);const Jn=r(Wn,[["render",function(t,n,o,r,a,i){return e.openBlock(),e.createElementBlock("view")}]]);const Xn={dict:{8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",27:"escape",33:"page_up",34:"page_down",35:"end",36:"home",37:"left_arrow",38:"up_arrow",39:"right_arrow",40:"down_arrow",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"left_window_key",92:"right_window_key",93:"select_key",96:"numpad_0",97:"numpad_1",98:"numpad_2",99:"numpad_3",100:"numpad_4",101:"numpad_5",102:"numpad_6",103:"numpad_7",104:"numpad_8",105:"numpad_9",106:"multiply",107:"add",109:"subtract",110:"decimal_point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"num_lock",145:"scroll_lock",186:"semi_colon",187:"equal_sign",188:"comma",189:"dash",190:"period",191:"forward_slash",192:"grave_accent",219:"open_bracket",220:"back_slash",221:"close_braket",222:"single_quote"},resultScan:async function(e){return e=await function(e,t,o){return new Promise(((r,a)=>{let i=[];try{e.forEach((function(e,n,r){t.forEach((function(t,a,i){e===t&&("shift"==r[n+1]?(r[n+1]="",r[n]=o[a].double):r[n]=o[a].single)}))})),i=e}catch(ho){n("warn","at utils/dictOfKeyboard.js:164","异常:",ho)}r(i)}))}(e,["semi_colon","equal_sign","comma","dash","period","forward_slash","grave_accent","open_bracket","back_slash","close_braket","single_quote","8","7","6","5","4","3","2","1"],[{double:":",single:";"},{double:"+",single:"="},{double:"<",single:","},{double:"_",single:"-"},{double:">",single:"."},{double:"?",single:"/"},{double:"~",single:"`"},{double:"{",single:"["},{double:"|",single:"/"},{double:"}",single:"]"},{double:'"',single:"'"},{double:"*",single:"8"},{double:"&",single:"7"},{double:"^",single:"6"},{double:"%",single:"5"},{double:"$",single:"4"},{double:"#",single:"3"},{double:"@",single:"2"},{double:"!",single:"1"}]),e=await function(e,t,o){return new Promise(((o,r)=>{let a=[];try{e.forEach((function(e,n,o){t.forEach((function(t,r,a){e===t&&"shift"==o[n+1]&&(o[n+1]="",o[n]=o[n].toUpperCase())}))})),a=e}catch(ho){n("warn","at utils/dictOfKeyboard.js:189","异常:",ho)}o(a)}))}(e,["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]),e=await function(e,t,o){return new Promise(((r,a)=>{let i=[];try{e.forEach((function(e,n,r){t.forEach((function(t,a,i){e===t&&(r[n]=o[a])}))})),i=e}catch(ho){n("warn","at utils/dictOfKeyboard.js:210","异常:",ho)}r(i)}))}(e,["multiply","divide","add","subtract","decimal_point"],["*","/","+","-","."]),n("log","at utils/dictOfKeyboard.js:140","result 最后结果: ",e.join("")),e.join("")||""}};let Yn=getApp();const Zn=r({components:{"page-standby":Kn,"keyboard-listener":Jn},watch:{},computed:{shopListTotalPrice(){let e=0;return!this.shopList||this.shopList.length<1?0:(this.shopList.forEach((t=>{e+=t.shopCountPrice})),e)},shopListTotalCount(){let e=0;return!this.shopList||this.shopList.length<1?0:(this.shopList.forEach((t=>{e+=t.shopCount})),e)}},data:()=>({showQRInputBox:!1,showEndPhoneBox:!1,screenHeight:"",footerHeight:"",globalData:"",shopList:[],decryptList:[],strResult:""}),async onLoad(e){n("log","at pages/index/standby.vue:79","onload:",e),n("log","at pages/index/standby.vue:82",123,$n.testPrintInfo,$n.resetOXPrintInfo($n.testPrintInfo))},async onReady(){n("log","at pages/index/standby.vue:86","the index page onReady----"+this.screenHeight),Yn=getApp(),setTimeout((async()=>{await this.updateGoodsList().then((async()=>{}))}),100)},methods:{async setTestSku(){n("log","at pages/index/standby.vue:96","Test set SKU 10000012");let e=await this.searchGoodBySku("10000012");this.shopList=this.shopList.concat(e)},combinedList(e,t){if(n("log","at pages/index/standby.vue:103","combinedList",e,t),!t)return Un.showNone("未找到商品");let o=e;return t.forEach((e=>{let t=o.findIndex((t=>t.id==e.id));-1!=t?(o[t].shopCount+=1,o[t].shopCountPrice=o[t].erp_goods.erp_goods_price*o[t].shopCount):o.push(e)})),o},async onKeyup(e){n("log","at pages/index/standby.vue:121","按键松开: ",e);let t=Xn.dict[e.keyCode];if(n("log","at pages/index/standby.vue:124","keyCode from keyboard:",t),this.decryptList.push(t),13!=e.keyCode)return n("log","at pages/index/standby.vue:127","继续接收:",this.decryptList);this.decryptList.pop(),this.strResult=await Xn.resultScan(this.decryptList),n("log","at pages/index/standby.vue:131","扫码结果-step-1:",this.strResult),this.orderQrcode=this.strResult,n("log","at pages/index/standby.vue:133","decryptList-before-splice: ",this.decryptList),this.decryptList.splice(0),n("log","at pages/index/standby.vue:135","decryptList-after-splice: "+this.decryptList),-1!=this.strResult.indexOf("down_arrow")&&(this.strResult=this.strResult.replace("down_arrow","")),n("log","at pages/index/standby.vue:141","扫码结果-step-2:",this.strResult),await this.searchGoodBySku(this.strResult).then((e=>(n("log","at pages/index/standby.vue:144","searchGoodBySku suc: ",e),e))).then((e=>{this.addSkuListToShopList(e)})).catch((e=>{n("log","at pages/index/standby.vue:150","searchGoodBySku err: ",e),Un.showNone("未找到商品")}))},addSkuListToShopList(e){n("log","at pages/index/standby.vue:160","addSkuListToShopList",e),e=encodeURIComponent(JSON.stringify(e)),uni.reLaunch({url:`/pages/index/index?skulist=${e}`,animationType:"zoom-fade-out",animationDuration:300})},onKeydown(e){},getGoodFromPad:(e,t)=>Qn.get({url:Hn.getGoodFromPad,data:{sku:e,brand_id:t},isDefaultGet:!0}).then((e=>(Un.hideLoad(),e.data.code,e))),async updateGoodsList(){let e=await this.getGoodsList();n("log","at pages/index/standby.vue:194","app.globaldata: ",Yn.globalData),Yn.globalData.goodsList=e},updateShopList(){Yn.globalData.shopList=this.shopList},getGoodsList(){let e=Un.getUrlParams("https://testmanager.ouxuanzhineng.cn/admin/erpRetailGoods/list?brand_id=63&stadium_id=167&type_key=&key=&page=1&page_size=9999&is_sale=1&is_show_on_assistant=1&token=e6cabeae-0c1a-11ee-aa40-5254005df464");return n("log","at pages/index/standby.vue:205","getGoodsList需要适配urlParams:",e),Qn.get({url:Hn.getGoodsList,data:e,isDefaultGet:!0,failMsg:"获取商品列表失败"}).then((e=>(Un.hideLoad(),n("log","at pages/index/standby.vue:216","getGoodsList suc: ",e),e.list.forEach((e=>{e.shopCount=1,e.shopCountPrice=e.erp_goods.erp_goods_price})),e)))},searchGoodBySku:e=>new Promise(((t,n)=>{let o=Yn.globalData.goodsList.list.filter((t=>t.erp_goods.erp_goods_sku==e));o.length?t(o):n(!1)}))}},[["render",function(t,n,o,r,a,i){const s=e.resolveComponent("page-standby"),l=e.resolveComponent("keyboard-listener");return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(s),e.createVNode(l,{style:{height:"1px"},onKeyup:i.onKeyup,onKeydown:i.onKeydown},null,8,["onKeyup","onKeydown"])])}]]),eo=r({__name:"view_header",props:{backgroundCustom:{type:String,default:"#F5F7F8"},needBorder:{type:Boolean,default:!0}},emits:["closeUse"],setup(t,{emit:n}){const o=t,r=e.ref(300);let a=e.ref(null);e.onMounted((async e=>{clearInterval(a),a=null,a=setInterval((()=>{r.value--,r.value<=1&&(clearInterval(a),a=null,Un.routeTo("/pages/index/standby","rL"))}),1e3)})),e.onBeforeUnmount((()=>{clearInterval(a),a=null})),e.onUnmounted((()=>{clearInterval(a),a=null}));const i=e.computed((()=>o.needBorder?"border-bottom: 1rpx solid #F5F7F8;":"border-bottom:none;")),s=()=>{Un.routeTo("/pages/index/standby","rL")};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"header-box",style:e.normalizeStyle([{background:o.backgroundCustom},e.unref(i)])},[e.createElementVNode("view",{class:"video-tip"},[e.createElementVNode("image",{class:"v-image",src:"/static/index/camera_icon2.png",mode:"widthFix"}),e.createElementVNode("text",{class:"v-text"},"您已进入视频覆盖区")]),e.createElementVNode("view",{class:"cancel-button",onClick:s},[e.createElementVNode("text",{class:"v-text"},e.toDisplayString(r.value)+" 取消交易",1)])],4))}},[["__scopeId","data-v-9163470a"]]),to=r({__name:"view_footer",props:{maskHeight:{type:Number,default:200},tolCount:{type:Number,default:0},tolPrice:{type:Number,default:0}},emits:["clickQR","clickVIP","clickToPay"],setup(t,{emit:n}){let o=e.ref(!1);e.ref(""),e.ref("");let r=()=>{n("clickQR","")},a=()=>{n("clickToPay","")};return e.onMounted((async e=>{})),(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"footer-box"},[e.unref(o)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-user"},[e.createElementVNode("text",{class:"txt"},"猫星人(18316553589)")])):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"f-line"})):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createElementBlock("view",{key:2,class:"f-vip-info"},[e.createElementVNode("view",{class:"f-coupon"},[e.createElementVNode("text",{class:"txt1"},"优惠券:"),e.createElementVNode("text",{class:"txt2"},"-¥"),e.createElementVNode("text",{class:"txt3"},"6.00 "),e.createElementVNode("image",{class:"img",src:"/static/index/orange_arrow_right.png",mode:"scaleToFill"})]),e.createElementVNode("view",{class:"f-score"},[e.createElementVNode("text",{class:"txt1"},"积分:"),e.createElementVNode("text",{class:"txt2"},"-¥"),e.createElementVNode("text",{class:"txt3"},"2.00 "),e.createElementVNode("image",{class:"img",src:"/static/index/orange_arrow_right.png",mode:"scaleToFill"})])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f-buy-info"},[e.createElementVNode("view",{class:"fi-area"},[e.createElementVNode("view",{class:"f-total-price"},[e.createElementVNode("text",{class:"txt1"},"应付:"),e.createElementVNode("text",{class:"txt2"},"¥"),e.createElementVNode("text",{class:"txt3"},e.toDisplayString(t.tolPrice.toFixed(2)||"0.00"),1)]),e.createElementVNode("text",{class:"txt_middle"},"|"),e.createElementVNode("view",{class:"f-total-count"},[e.createElementVNode("text",{class:"txt"},"商品:"),e.createElementVNode("text",{class:"txt"},e.toDisplayString(t.tolCount),1)])]),e.createElementVNode("view",{class:"fi-choose"},[e.createElementVNode("view",{class:"qr-box",onClick:i[0]||(i[0]=(...t)=>e.unref(r)&&e.unref(r)(...t))},[e.createElementVNode("image",{class:"qr-img",src:"/static/index/qr_icon.png",mode:"scaleToFill"}),e.createElementVNode("text",{class:"txt"},"输入条形码")])])]),e.createElementVNode("view",{class:"btn-style",onClick:i[1]||(i[1]=(...t)=>e.unref(a)&&e.unref(a)(...t))},[e.createElementVNode("text",{class:"txt"},"去付款")])]))}},[["__scopeId","data-v-3aed5e99"]]),no=r({__name:"list_item",props:["mkey","mitem"],emits:["delItem","addItem","minusItem"],setup(t,{emit:n}){const o=t;e.onMounted((async e=>{}));const r=()=>{n("addItem",o.mkey)},a=()=>{n("minusItem",o.mkey)},i=()=>{n("delItem",o.mkey)};return(n,o)=>{var s,l,c,u;return e.openBlock(),e.createElementBlock("view",{class:"buy-item"},[e.createElementVNode("view",{class:"buy-item-left"},[e.createElementVNode("image",{class:"img",src:t.mitem.goods_img||"-",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"buy-item-right"},[e.createElementVNode("view",{class:"br-top"},[e.createElementVNode("text",{class:"brt-title"},e.toDisplayString((null==(s=t.mitem.erp_goods)?void 0:s.erp_goods_name)||"-"),1),e.createElementVNode("image",{class:"img",src:"/static/index/delete_icon.png",mode:"scaleToFill",onClick:i})]),e.createElementVNode("view",{class:"br-bottom"},[e.createElementVNode("view",{class:"brb-left"},[e.createElementVNode("text",{class:"brb-specs"},e.toDisplayString((null==(l=t.mitem.erp_goods)?void 0:l.erp_goods_specs)||"-"),1),e.createElementVNode("view",{class:"brb-price"},[e.createElementVNode("text",{class:"brbp-single-price"},"¥"+e.toDisplayString((null==(c=t.mitem.erp_goods)?void 0:c.erp_goods_price)||"-"),1),e.createElementVNode("text",{class:"brbp-underline-price"},"¥"+e.toDisplayString((null==(u=t.mitem.erp_goods)?void 0:u.erp_goods_price)||"-"),1)])]),e.createElementVNode("view",{class:"brb-middle"},[e.createElementVNode("image",{class:"img",src:"/static/index/del_icon.png",mode:"scaleToFill",onClick:a}),e.createElementVNode("text",{class:"txt"},e.toDisplayString(t.mitem.shopCount||1),1),e.createElementVNode("image",{class:"img",src:"/static/index/add_icon.png",mode:"scaleToFill",onClick:r})]),e.createElementVNode("view",{class:"brb-right"},[e.createElementVNode("view",{class:"brbr-total-price"},[e.createElementVNode("text",{class:"brbrp-price1"},"¥"),e.createElementVNode("text",{class:"brbrp-price2"},e.toDisplayString(t.mitem.shopCountPrice||"-"),1)])])])])])}}},[["__scopeId","data-v-70590a12"]]),oo=r({__name:"view_keyboard",props:{maxInput:{type:Number,default:11}},emits:["inputValueUpdate"],setup(t,{emit:o}){const r=t;let a=e.ref(""),i=e.ref("");e.onMounted((async e=>{}));const s=e=>11==e?"num-btn-last-child":"num-btn",l=e=>e<=9?e:10==e?"0":11==e?"":void 0,c=Un.debounce((e=>{if(n("log","at components/index/keyboard/view_keyboard.vue:50","clickKeyboard:",e),i.value=e,setTimeout((()=>{i.value=""}),100),11==e)a.value=a.value.substring(0,a.value.length-1);else{if(a.value.length>=r.maxInput)return Un.showNone(`最多输入${r.maxInput}位`);a.value+=l(e)}o("inputValueUpdate",a.value)}),20,!0);return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"i-keyboard"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(11,(t=>e.createElementVNode("view",{class:e.normalizeClass(["num-btn",[s(t),{"active-value":e.unref(i)==t}]]),onClick:n=>e.unref(c)(t)},[t<11?(e.openBlock(),e.createElementBlock("text",{key:0,class:"txt"},e.toDisplayString(l(t)),1)):(e.openBlock(),e.createElementBlock("image",{key:1,class:"img",src:"/static/index/del_btn.png",mode:"widthFix"}))],10,["onClick"]))),64))]))}},[["__scopeId","data-v-fb3ddeaa"]]),ro=r({__name:"input_box_QR",props:{maskHeight:{type:Number,default:1200},maxInput:{type:Number,default:10}},emits:["showIt","clickCommit"],setup(t,{emit:o}){const r=t;let a=e.ref(""),i=e.ref(!1);e.onMounted((async e=>{n("log","at components/index/keyboard/input_box_QR.vue:52"," the keyboard_box component is now mounted. ",app.globalData)}));const s=()=>{o("showIt","false")},l=async()=>{n("log","at components/index/keyboard/input_box_QR.vue:59","handle_clickCommit"),await u(a.value).then((e=>{let t=a.value;o("clickCommit",{inputCode:t,goods:e})})).catch((e=>{n("error","at components/index/keyboard/input_box_QR.vue:65","searchGoodBySku err:",e),i.value=!0}))},c=e=>{n("log","at components/index/keyboard/input_box_QR.vue:70","accept_inputValueClick:",e),a.value=e,a.value.length>0&&(i.value=!1)},u=e=>{let t=getApp();return new Promise(((o,r)=>{let a=t.globalData.goodsList.list.filter((t=>t.erp_goods.erp_goods_sku==e));n("log","at components/index/keyboard/input_box_QR.vue:97","searchGoodBySku:",a),a.length?o(a):r("未找到商品")}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"keyboard-box",style:e.normalizeStyle({height:r.maskHeight+"px"}),onTouchmove:n[0]||(n[0]=e.withModifiers((()=>{}),["prevent"])),onClick:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"kb-area"},[e.createElementVNode("image",{class:"del-icon",src:"/static/index/del_icon_big.png",mode:"aspectFit",onClick:s}),e.createElementVNode("text",{class:"txt-title"},"输入条形码"),e.createElementVNode("view",{class:e.normalizeClass(["txt-input",{"err-border":e.unref(i)}])},[e.createElementVNode("text",{class:e.normalizeClass(["txt",""==a.value?"txt-blank":"txt-write"])},e.toDisplayString(e.unref(a)||"请输入条形码"),3)],2),e.unref(i)?(e.openBlock(),e.createElementBlock("text",{key:0,class:"txt-err-tip"},"查询不到该条形码商品信息, 请检查是否有误")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"input-keyboard"},[e.createVNode(oo,{maxInput:r.maxInput,onInputValueUpdate:c,onCheckRes:t.handle_checkRes},null,8,["maxInput","onCheckRes"]),e.createElementVNode("view",{class:"sure-btn",onClick:l},[e.createElementVNode("text",{class:"txt"},"确定")])])])],36))}},[["__scopeId","data-v-5427abff"]]),ao=r({__name:"input_box_end_phone",props:{maskHeight:{type:Number,default:1200},maxInput:{type:Number,default:4}},emits:["showIt","clickCommit"],setup(t,{emit:o}){const r=t;let a=e.ref("");e.onMounted((async e=>{n("log","at components/index/keyboard/input_box_end_phone.vue:58","the input_box_end_phone component is now mounted. "+r.maskHeight)}));const i=()=>{o("showIt","false")},s=()=>{o("clickCommit",a.value)},l=e=>{n("log","at components/index/keyboard/input_box_end_phone.vue:68","accept_inputValueClick:",e),a.value=e.split(""),n("log","at components/index/keyboard/input_box_end_phone.vue:70","inputValue:",a.value)};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"keyboard-box",style:e.normalizeStyle({height:r.maskHeight+"px"}),onTouchmove:n[0]||(n[0]=e.withModifiers((()=>{}),["prevent"])),onClick:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"kb-area"},[e.createElementVNode("image",{class:"del-icon",src:"/static/index/del_icon_big.png",mode:"aspectFit",onClick:i}),e.createElementVNode("text",{class:"txt-title"},"请输入手机尾号后4位数验证"),e.createElementVNode("view",{class:"end-phone-input"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.maxInput,(t=>(e.openBlock(),e.createElementBlock("view",{class:"epi-box"},[e.createElementVNode("text",{class:"epi-txt"},e.toDisplayString(e.unref(a)[t-1]),1)])))),256))]),e.createElementVNode("view",{class:"input-keyboard"},[e.createVNode(oo,{maxInput:r.maxInput,onInputValueUpdate:l},null,8,["maxInput"]),e.createElementVNode("view",{class:"sure-btn",onClick:s},[e.createElementVNode("text",{class:"txt"},"确定")])])])],36))}},[["__scopeId","data-v-e9eab441"]]);let io="";const so=r({components:{"page-standby":Kn,"view-header":eo,"view-footer":to,"list-item":no,"input-qr-box":ro,"input-box-end-phone":ao,"keyboard-listener":Jn},watch:{},computed:{shopListTotalPrice(){let e=0;return!this.shopList||this.shopList.length<1?0:(this.shopList.forEach((t=>{e+=t.shopCountPrice})),e)},shopListTotalCount(){let e=0;return!this.shopList||this.shopList.length<1?0:(this.shopList.forEach((t=>{e+=t.shopCount})),e)}},data:()=>({showQRInputBox:!1,showEndPhoneBox:!1,screenHeight:"",footerHeight:"",globalData:"",shopList:[],decryptList:[],strResult:""}),async onLoad(e){n("log","at pages/index/index.vue:124","onload:",e),e.skulist&&this.acceptSKUList(e.skulist)},async onReady(){this.screenHeight=await Un.getPageHeight(),n("log","at pages/index/index.vue:133","the index page onReady----"+this.screenHeight),io=getApp(),setTimeout((async()=>{await this.updateGoodsList().then((async()=>{})),this.setFooterHeight()}),1e3)},methods:{acceptSKUList(e){n("log","at pages/index/index.vue:145","acceptSKUList:",e=JSON.parse(decodeURIComponent(e))),e&&e.length>0&&(this.shopList=this.combinedList(this.shopList,e))},acceptSKUListFromGlobalData(){let e=io.globalData.skulist;n("log","at pages/index/index.vue:150","acceptSKUListFromGlobalData:",e),this.shopList=this.combinedList(this.shopList,e)},async setTestSku(){n("log","at pages/index/index.vue:154","Test set SKU 10000012");let e=await this.searchGoodBySku("10000012");this.shopList=this.shopList.concat(e)},clickToPay(){let e={shopList:this.shopList.map((e=>({id:e.erp_goods.id,name:e.erp_goods.erp_goods_name,price:e.erp_goods.erp_goods_price,nums:e.shopCount,unit:e.erp_goods.erp_goods_unit}))),shopListTotalPrice:this.shopListTotalPrice,shopListTotalCount:this.shopListTotalCount};if(n("log","at pages/index/index.vue:182","clickToPay",e),this.shopListTotalPrice<=0)return Un.showNone("请先添加商品");Un.routeTo(`/pages/pay/index?query=${JSON.stringify(e)}`,"rL")},clickToUse(){Un.routeTo("/pages/login/success","nT")},handle_closeStandby(e){n("log","at pages/index/index.vue:192","handle_closeSetting",e),this.showPageStandby=!this.showPageStandby},handle_closeQRInputBox(e){n("log","at pages/index/index.vue:196","handle_closeKeyboardBox",e),this.showQRInputBox=!this.showQRInputBox},handle_closeEndPhoneBox(e){n("log","at pages/index/index.vue:200","handle_closeEndPhoneBox",e),this.showEndPhoneBox=!this.showEndPhoneBox},handle_clickQR(){this.showQRInputBox=!this.showQRInputBox},handle_clickCommit_qr(e){n("log","at pages/index/index.vue:208","handle_clickCommit_qr",e),n("log","at pages/index/index.vue:209",JSON.stringify(e.goods)),Un.showNone("添加商品成功,数量:"+e.goods.length+"个"),e.goods&&e.goods.length>0&&(this.shopList=this.combinedList(this.shopList,e.goods)),this.showQRInputBox=!this.showQRInputBox},handle_clickVIP(){Un.showNone("会员登录"),this.showEndPhoneBox=!this.showEndPhoneBox},combinedList(e,t){if(n("log","at pages/index/index.vue:224","combinedList",e,t),!t)return Un.showNone("未找到商品");let o=e;return t.forEach((e=>{let t=o.findIndex((t=>t.id==e.id));-1!=t?(o[t].shopCount+=1,o[t].shopCountPrice=o[t].erp_goods.erp_goods_price*o[t].shopCount):o.push(e)})),o},async setFooterHeight(){n("log","at pages/index/index.vue:240","Auto setFooterHeight")},async onKeyup(e){let t=Xn.dict[e.keyCode];if(this.decryptList.push(t),13!=e.keyCode)return void n("log","at pages/index/index.vue:260","继续接收:",this.decryptList);this.decryptList.pop(),this.strResult=await Xn.resultScan(this.decryptList),this.orderQrcode=this.strResult,this.decryptList.splice(0),-1!=this.strResult.indexOf("down_arrow")&&(this.strResult=this.strResult.replace("down_arrow","")),n("log","at pages/index/index.vue:275","扫码结果-step-2:",this.strResult);let o=await this.searchGoodBySku(this.strResult).then((e=>(n("log","at pages/index/index.vue:278","searchGoodBySku suc: ",e),e))).catch((e=>{n("log","at pages/index/index.vue:281","searchGoodBySku err: ",e),Un.showNone("未找到商品")}));o&&o.length>0&&(this.shopList=this.combinedList(this.shopList,o)),n("log","at pages/index/index.vue:287","skulist:",this.shopList)},onKeydown(e){},handle_add(e){var t;n("log","at pages/index/index.vue:296","handle_add",e),this.shopList[e].shopCount++,this.shopList[e].shopCountPrice=((null==(t=this.shopList[e].erp_goods)?void 0:t.erp_goods_price)||0)*this.shopList[e].shopCount},handle_minus(e){var t;n("log","at pages/index/index.vue:302","handle_minus",e),this.shopList[e].shopCount>1?(this.shopList[e].shopCount--,this.shopList[e].shopCountPrice=((null==(t=this.shopList[e].erp_goods)?void 0:t.erp_goods_price)||0)*this.shopList[e].shopCount):Un.showNone("商品数量不能小于1")},handle_del(e){n("log","at pages/index/index.vue:313","handle_del",e),this.shopList.splice(e,1),Un.showNone("删除成功")},test(){n("log","at pages/index/index.vue:337","test");let e=Un.getUrlParams("https://testmanager.ouxuanzhineng.cn/admin/erpRetailGoods/list?brand_id=63&stadium_id=167&type_key=&key=&page=1&page_size=9999&is_sale=1&is_show_on_assistant=1&token=e6cabeae-0c1a-11ee-aa40-5254005df464");return n("log","at pages/index/index.vue:342","urlParams:",e),Qn.get({url:Hn.getGoodsList,data:e,isDefaultGet:!1}).then((e=>(n("log","at pages/index/index.vue:349","test suc: ",e),e)))},getGoodFromPad:(e,t)=>Qn.get({url:Hn.getGoodFromPad,data:{sku:e,brand_id:t},isDefaultGet:!0}).then((e=>(Un.hideLoad(),e.data.code,e))),async updateGoodsList(){let e=await this.getGoodsList();n("log","at pages/index/index.vue:375","app.globaldata: ",io.globalData),io.globalData.goodsList=e},updateShopList(){io.globalData.shopList=this.shopList},getGoodsList(){let e=Un.getUrlParams("https://testmanager.ouxuanzhineng.cn/admin/erpRetailGoods/list?brand_id=63&stadium_id=167&type_key=&key=&page=1&page_size=9999&is_sale=1&is_show_on_assistant=1&token=e6cabeae-0c1a-11ee-aa40-5254005df464");return n("log","at pages/index/index.vue:386","getGoodsList需要适配urlParams:",e),Qn.get({url:Hn.getGoodsList,data:e,isDefaultGet:!0,failMsg:"获取商品列表失败"}).then((e=>(Un.hideLoad(),n("log","at pages/index/index.vue:397","getGoodsList suc: ",e),e.list.forEach((e=>{e.shopCount=1,e.shopCountPrice=e.erp_goods.erp_goods_price})),e)))},searchGoodBySku:e=>new Promise(((t,n)=>{let o=io.globalData.goodsList.list.filter((t=>t.erp_goods.erp_goods_sku==e));o.length?t(o):n(!1)}))}},[["render",function(t,n,o,r,a,i){const s=e.resolveComponent("view-header"),l=e.resolveComponent("list-item"),c=e.resolveComponent("view-footer"),u=e.resolveComponent("input-qr-box"),p=e.resolveComponent("input-box-end-phone"),d=e.resolveComponent("keyboard-listener");return e.openBlock(),e.createElementBlock("view",{class:"main-page"},[e.createElementVNode("view",null,[e.createVNode(s,{class:"mheader",onCloseStandby:i.handle_closeStandby},null,8,["onCloseStandby"]),e.createElementVNode("view",{class:"holdplace",style:{height:"100rpx"}}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.shopList,((t,n)=>(e.openBlock(),e.createBlock(l,{key:n,mkey:n,mitem:t,onAddItem:i.handle_add,onMinusItem:i.handle_minus,onDelItem:i.handle_del},null,8,["mkey","mitem","onAddItem","onMinusItem","onDelItem"])))),128)),e.createElementVNode("view",{class:"holdplace",style:{height:"340rpx"}}),(e.openBlock(),e.createElementBlock("view",{key:0,ref:"mfooter",class:"mfooter"},[e.createVNode(c,{tolPrice:i.shopListTotalPrice,tolCount:i.shopListTotalCount,onClickQR:i.handle_clickQR,onClickVIP:i.handle_clickVIP,onClickToPay:i.clickToPay},null,8,["tolPrice","tolCount","onClickQR","onClickVIP","onClickToPay"])],512)),a.showQRInputBox?(e.openBlock(),e.createBlock(u,{key:1,maskHeight:a.screenHeight,maxInput:11,onShowIt:i.handle_closeQRInputBox,onClickCommit:i.handle_clickCommit_qr},null,8,["maskHeight","onShowIt","onClickCommit"])):e.createCommentVNode("",!0),a.showEndPhoneBox?(e.openBlock(),e.createBlock(p,{key:2,maskHeight:a.screenHeight,maxInput:4,onShowIt:i.handle_closeEndPhoneBox,onClickCommit:i.handle_clickCommit_qr},null,8,["maskHeight","onShowIt","onClickCommit"])):e.createCommentVNode("",!0)]),e.createVNode(d,{style:{height:"1px"},onKeyup:i.onKeyup,onKeydown:i.onKeydown},null,8,["onKeyup","onKeydown"])])}],["__scopeId","data-v-99f16e68"]]);const lo=r({components:{"view-header":eo,"input-box-end-phone":ao,paying:r({__name:"paying",props:{payTotal:{type:Number,default:0}},emits:["clickVipCard"],setup:(t,{emit:n})=>(n,o)=>(e.openBlock(),e.createElementBlock("view",{class:"paying-box"},[e.createElementVNode("text",{class:"p-text"},"支付金额"),e.createElementVNode("text",{class:"p-total"},"¥"+e.toDisplayString(t.payTotal||"0.00"),1),e.createElementVNode("view",{class:"p-zhichi"},[e.createElementVNode("view",{class:"p-line"}),e.createElementVNode("text",{class:"p-words"},"支持以下付款方式"),e.createElementVNode("view",{class:"p-line"})]),e.createElementVNode("view",{class:"p-icons"},[e.createElementVNode("image",{class:"p-image-pay-icon",src:"/static/pay/wx-icon.png",mode:"widthFix"}),e.createElementVNode("image",{class:"p-image-pay-icon",src:"/static/pay/zfb-icon.png",mode:"widthFix"})]),e.createElementVNode("image",{class:"p-image-pay-picture",src:"/static/pay/pay-picture.png",mode:"widthFix"}),e.createElementVNode("text",{class:"p-tips"},"请将付款码对准右下方扫码口"),e.createElementVNode("view",{class:"p-user"})]))},[["__scopeId","data-v-69c546ef"]]),"pay-success":r({__name:"success",props:{paySuccessInfo:{type:Object,default:{amount:0,goods_data:[]}}},emits:["clickToIndex"],setup(t,{emit:n}){const o=t,r=e.ref(30);let a=e.ref(null);e.onMounted((async e=>{clearInterval(a),a=null,a=setInterval((()=>{r.value--,r.value<=1&&(clearInterval(a),a=null,Un.routeTo("/pages/index/standby","rL"))}),1e3)})),e.onBeforeUnmount((()=>{clearInterval(a),a=null})),e.onUnmounted((()=>{clearInterval(a),a=null}));let i=e.computed((()=>{let e=o.paySuccessInfo.goods_data,t=0;for(let n=0;n{n("clickToIndex",""),Un.routeTo("/pages/index/standby","rL")};return(n,o)=>(e.openBlock(),e.createElementBlock("view",{class:"success-box"},[e.createElementVNode("view",{class:"s-bg"}),e.createElementVNode("view",{class:"s-header"},[e.createElementVNode("view",{class:"video-tip"},[e.createElementVNode("image",{class:"v-image",src:"/static/index/camera_icon.png",mode:"widthFix"}),e.createElementVNode("text",{class:"v-text"},"您已进入视频覆盖区")])]),e.createElementVNode("view",{class:"s-content"},[e.createElementVNode("view",{class:"sc-title"},[e.createElementVNode("view",{class:"sc-success"},[e.createElementVNode("image",{class:"sc-check-icon",src:"/static/pay/check-icon.png",mode:"acepectFit"}),e.createElementVNode("view",null,"支付成功")]),e.createElementVNode("view",{class:"sc-total"},"¥"+e.toDisplayString(t.paySuccessInfo.amount||"0.00"),1)]),e.createElementVNode("text",{class:"sc-num"},[e.createTextVNode("共 "),e.createElementVNode("text",null,e.toDisplayString(e.unref(i)||"0"),1),e.createTextVNode(" 件商品")]),e.createElementVNode("text",{class:"sc-tip-1"},"请领取小票,期待下次光临!"),e.createElementVNode("image",{class:"sc-print-img",src:"/static/pay/print-img.png",mode:"acepectFit"}),e.createElementVNode("view",{class:"sc-btn",onClick:s},[e.createElementVNode("text",{class:"scb-txt-1"},"返回首页"),e.createElementVNode("text",{class:"scb-txt-2"},e.toDisplayString(r.value)+"s",1)])])]))}},[["__scopeId","data-v-30d19e4a"]]),"input-qr-box":ro,"keyboard-listener":Jn},computed:{payTotal(){return this.dataQuery.amount.toFixed(2)||"0.00"}},watch:{},data:()=>({showPageStandby:!1,showEndPhoneBox:!1,screenHeight:"1000",footerHeight:"",paySuccessStatus:0,decryptList:[],strResult:"",dataQuery:""}),async onLoad(e){n("log","at pages/pay/index.vue:70","pay onload:",e),this.setPayData(e)},async onReady(){await this.setPageHeight()},methods:{setPayData(e){n("log","at pages/pay/index.vue:78","setPayData:",e),n("log","at pages/pay/index.vue:81","setPayData1:",e=JSON.parse(e.query));let t={goods_data:e.shopList,amount:e.shopListTotalPrice};n("log","at pages/pay/index.vue:86","setPayData2:",t),this.dataQuery=t},getPayType(e){let t="";return t=0==e.indexOf("10")||0==e.indexOf("11")||0==e.indexOf("12")||0==e.indexOf("13")||0==e.indexOf("14")||0==e.indexOf("15")?"WECHAT_MICROPAY":0==e.indexOf("28")?"ALI_BARCODEPAY":null,t},async acceptScanCode(e){n("log","at pages/pay/index.vue:103","acceptScanCode:",e),Un.showLoad("交易处理中...");let t=e,o=this.getPayType(t);null!=o?await this.makeOrder((e=>{n("log","at pages/pay/index.vue:114","makeInfo-result",e)})).then((e=>(n("log","at pages/pay/index.vue:116","orderInfo-result",e),this.payOrder({order_no:e.order_no,pay_code:t,pay_type:o})))).then((e=>(n("log","at pages/pay/index.vue:122","payInfo-result:",e),this.checkOrder(e)))).then((e=>{n("log","at pages/pay/index.vue:125","最终checkInfo:",e);let{payRes:t,checkRes:o}=e;"1"==o.pay_order.status?(Un.showNone(o.res.respMsg),this.paySuccessStatus=1):uni.showModal({title:"支付失败",content:o.res.respMsg+"-"+o.res.respCode,showCancel:!1,confirmText:"确定",success:e=>{e.confirm&&n("log","at pages/pay/index.vue:140","用户点击确定")}})})).finally((()=>{Un.hideLoad()})):Un.showNone("支付类型未知,请重试!")},printOrder(){Un.showNone("小票打印中..."),getApp().globalData.accountInfo;let e=uni.getStorageSync("stadiumInfo");this.dataQuery;let{time:t,order_no:o}=this.paySuccessInfo,{venue_name:r}=e;n("log","at pages/pay/index.vue:161","print_info:",{...dataQuery,venue_name:r,time:t,order_no:o}),$n.resetOXPrintInfo($n.testPrintInfo)},async makeOrder(){let{store_id:e,brand_id:t,token:o}=getApp().globalData.accountInfo,{goods_data:r,amount:a}=this.dataQuery,i={store_id:e,brand_id:t,token:o,amount:a,goods_data:r,pay_type:7,other_pay_type:"付款码支付",card_no:"",mark:""};return n("log","at pages/pay/index.vue:177","需要适配makeOrder urlParams:",i),Qn.post({url:Hn.makeOrder,data:i,isDefaultGet:!0,failMsg:"操作失败!"}).then((e=>(Un.hideLoad(),n("log","at pages/pay/index.vue:187","makeOrder suc: ",e),e)))},payOrder(e){n("log","at pages/pay/index.vue:192","payOrder get param:",e);let{order_no:t,pay_code:o,pay_type:r}=e,{goods_data:a,amount:i}=this.dataQuery,{store_id:s,brand_id:l,token:c}=getApp().globalData.accountInfo,u={order_no:t,pay_code:o,pay_type:r,brand_id:l,token:c,order_amt:i,goods_info:t};return n("log","at pages/pay/index.vue:206","需要适配payOrder urlParams:",u),Qn.post({url:Hn.payOrder,data:u,isDefaultGet:!0,failMsg:"payOrder fail"}).then((e=>(n("log","at pages/pay/index.vue:215","payOrder suc: ",e),{order_no:t,pay_code:o,pay_type:r,orderAmt:e.res.orderAmt,transNo:e.res.transNo,res:e.res})))},checkOrder(e){let{store_id:t,brand_id:o,token:r}=getApp().globalData.accountInfo,{transNo:a,orderAmt:i,payCode:s}=e,l={transNo:a,payCode:s,brand_id:o,token:r,orderAmt:i,manual:"yes"};return n("log","at pages/pay/index.vue:235","需要适配checkOrder urlParams:",l),Qn.get({url:Hn.checkOrder,data:l,isDefaultGet:!0,failMsg:"checkOrder fail"}).then((t=>(n("log","at pages/pay/index.vue:244","checkOrder suc: ",e),{payRes:e,checkRes:t})))},handle_clickVipCard(){Un.showNone("储值卡支付未接入"),this.handle_clickVIP()},handle_closeEndPhoneBox(e){n("log","at pages/pay/index.vue:259","handle_closeEndPhoneBox",e),this.showEndPhoneBox=!this.showEndPhoneBox},handle_clickCommit_end_phone(e){n("log","at pages/pay/index.vue:263","handle_clickCommit_end_phone",e),this.showEndPhoneBox=!this.showEndPhoneBox},handle_closeQRInputBox(e){n("log","at pages/pay/index.vue:267","handle_closeQRInputBox",e)},handle_clickCommit_qr(e){n("log","at pages/pay/index.vue:270","handle_clickCommit_qr",e),this.showQRInputBox=!this.showQRInputBox},handle_clickVIP(){this.showEndPhoneBox=!this.showEndPhoneBox},async setPageHeight(){this.screenHeight=await Un.getPageHeight()},async onKeyup(e){let t=Xn.dict[e.keyCode];if(this.decryptList.push(t),13!=e.keyCode)return n("log","at pages/pay/index.vue:287","this.decryptList1: ",this.decryptList);this.decryptList.pop(),this.strResult=await Xn.resultScan(this.decryptList),this.orderQrcode=this.strResult,this.decryptList.splice(0),n("log","at pages/pay/index.vue:294","this.decryptList: "+this.decryptList),-1!=this.strResult.indexOf("down_arrow")&&(this.strResult=this.strResult.replace("down_arrow","")),n("log","at pages/pay/index.vue:299","扫码最终结果--:",this.strResult),this.acceptScanCode(this.strResult)},onKeydown(e){}}},[["render",function(t,n,o,r,a,i){const s=e.resolveComponent("keyboard-listener"),l=e.resolveComponent("view-header"),c=e.resolveComponent("paying"),u=e.resolveComponent("pay-success"),p=e.resolveComponent("input-box-end-phone");return e.openBlock(),e.createElementBlock("view",{class:"pay-page"},[e.createVNode(s,{style:{width:"1rpx"},onKeyup:i.onKeyup,onKeydown:i.onKeydown},null,8,["onKeyup","onKeydown"]),0==a.paySuccessStatus?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createVNode(l,{class:"mheader",backgroundCustom:"none",needBorder:!1,onCloseUse:n[0]||(n[0]=()=>{})},null,8,["backgroundCustom","needBorder"]),(e.openBlock(),e.createBlock(c,{key:0,payTotal:i.payTotal,onClickVipCard:i.handle_clickVipCard},null,8,["payTotal","onClickVipCard"]))])):(e.openBlock(),e.createBlock(u,{key:1,paySuccessInfo:a.dataQuery},null,8,["paySuccessInfo"])),a.showEndPhoneBox?(e.openBlock(),e.createBlock(p,{key:2,maskHeight:a.screenHeight,maxInput:4,onShowIt:i.handle_closeEndPhoneBox,onClickCommit:i.handle_clickCommit_end_phone},null,8,["maskHeight","onShowIt","onClickCommit"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-31451bb4"]]),co=r({__name:"pads_picker",props:{padList:{type:Array,default:[]},padListOrigin:{type:Array,default:[]}},emits:["pickerChange"],setup(t,{emit:o}){const r=t,a=e.ref("");function i(e){n("log","at components/login/pads_picker.vue:52","picker发送选择改变,携带值为",e.detail.value);let t=e.detail.value;a.value=t,o("pickerChange",t)}return e.onMounted((()=>{})),e.watchEffect((()=>{n("log","at components/login/pads_picker.vue:45","watchEffect",r.padListOrigin),r.padListOrigin.length>0&&function(){n("log","at components/login/pads_picker.vue:59","autoShowBackStadium");let e=uni.getStorageSync("stadiumInfo");if(e){let t=r.padListOrigin.findIndex((t=>t.id==e.id));-1!=t&&(a.value=t,n("log","at components/login/pads_picker.vue:67","autoShowBackStadium set index: ",t))}}()})),(n,o)=>(e.openBlock(),e.createElementBlock("view",{class:"pads-picker"},[e.createElementVNode("view",{class:"pp-content"},[e.createElementVNode("view",{class:"pc-text"},"请选择平板"),e.createElementVNode("view",{class:"pc-frame"},[e.createElementVNode("picker",{class:"pt-picker",mode:"selector",range:t.padList,onChange:i},[e.createElementVNode("view",{class:"pp-box"},[e.createElementVNode("view",{class:"pb-text"},e.toDisplayString(t.padList[a.value]||"请选择平板"),1),e.createElementVNode("image",{class:"pt-icon",mode:"aspectFtt",src:"/static/images/triangle.png"})])],40,["range"])])])]))}},[["__scopeId","data-v-cde733f2"]]),uo=r({__name:"setting_mask",emits:["closeSetting"],setup(t,{emit:o}){const r=()=>{o("closeSetting","false")},a=()=>{n("log","at components/login/setting_mask.vue:28","logout"),uni.showModal({title:"提示",content:"确定退出登录?",success:function(e){e.confirm?(n("log","at components/login/setting_mask.vue:35","用户点击确定"),i()):e.cancel&&n("log","at components/login/setting_mask.vue:38","用户点击取消")}})},i=()=>{getApp().globalData.stadiumInfo={},getApp().globalData.accountInfo={},uni.removeStorageSync("stadiumInfo"),uni.removeStorageSync("accountInfo"),uni.removeStorageSync("userInfo"),uni.reLaunch({url:"/pages/login/index"})};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"setting-mask"},[e.createElementVNode("view",{class:"sm-content"},[e.createElementVNode("image",{class:"sc-close",mode:"aspectFit",src:"/static/images/close.png",onClick:r}),e.createElementVNode("view",{class:"sc-title"},"平板信息配置"),e.createElementVNode("view",{class:"sc-container"},[e.createElementVNode("view",{class:"sc-line"},[e.createElementVNode("view",{class:"sl-desc"},"当前设备名称:收银端"),e.createElementVNode("button",{class:"sd-btn",onClick:a},"退出登录")]),e.createElementVNode("view",{class:"sc-line"},[e.createElementVNode("view",{class:"sl-desc"},"屏幕适配设置")])])])]))}},[["__scopeId","data-v-67b1cd74"]]),po={__name:"success",setup(t){let r=e.ref(!1);const s=e.ref([]),c=e.ref(""),u=e.ref([]);o((async()=>{v()}));var p=e.computed((()=>{let{accountInfo:e,stadiumInfo:t}=getApp().globalData,o=e.username||"用户";return uni.getStorageSync("stadiumInfo")&&(n("log","at pages/login/success.vue:53","stadiumInfo: ",uni.getStorageSync("stadiumInfo")),t=uni.getStorageSync("stadiumInfo")),t&&(o=t.venue_name),o})),d=e.computed((()=>{let e=uni.getStorageSync("stadiumInfo");if(e){let t=u.value.findIndex((t=>t.id==e.id));return-1!=t&&(c.value=t,n("log","at pages/login/success.vue:68","autoShowBackStadium set index: ",t),!0)}return!1}));function f(e){n("log","at pages/login/success.vue:78","handle_closeSetting",e),r.value=!r.value}function y(e){n("log","at pages/login/success.vue:82","handle_pickerChange",e),c.value=e,function(e){let t=u.value[e],{id:n}=t;getApp().globalData.accountInfo.store_id=n,getApp().globalData.stadiumInfo=t,uni.setStorageSync("stadiumInfo",t)}(e)}function g(){d.value?Un.routeTo("/pages/index/standby","nT"):Un.showNone("请选择门店")}function m(){r.value=!r.value}function h(){Un.showNone("更新功能暂不可用")}function b(){n("log","at pages/login/success.vue:101","clickUpdatePadList"),v()}function v(){n("log","at pages/login/success.vue:117","updatePadList"),Un.showLoad("更新门店列表...");let{brand_id:e,token:t}=getApp().globalData.accountInfo,o={brand_id:e,token:t,page:1,page_size:200};Qn.post({url:Hn.padList,data:o,isDefaultGet:!0,failMsg:"操作失败!"}).then((e=>(Un.hideLoad(),n("log","at pages/login/success.vue:133","updatePadList suc: ",e),u.value=e.list,s.value=e.list.map((e=>e.venue_name)),e))).finally((()=>{Un.hideLoad()}))}return(t,n)=>(e.openBlock(),e.createBlock(a,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"login-success"},[e.createVNode(i),e.createElementVNode("view",{class:"ls-desc"},[e.createElementVNode("view",{class:"ld-line"},"尊敬的"+e.toDisplayString(e.unref(p)||"用户")+":",1),e.createElementVNode("view",{class:"ld-line"},"欢迎登录欧轩智能场馆平板端系统!")]),e.createElementVNode("view",{class:"ls-pads"},[e.createVNode(co,{padList:s.value,padListOrigin:u.value,onPickerChange:y},null,8,["padList","padListOrigin"])]),e.createElementVNode("view",{class:"ls-botton"},[e.createVNode(l,{onClick:g},{default:e.withCtx((()=>[e.createTextVNode("进入使用")])),_:1})]),e.createElementVNode("view",{class:"ls-links"},[e.createElementVNode("view",{class:"ll-item",onClick:h},"更新"),e.createElementVNode("view",{class:"ll-item",onClick:b},"更新门店"),e.createElementVNode("view",{class:"ll-item",onClick:m},"设置")])]),e.unref(r)?(e.openBlock(),e.createBlock(uo,{key:0,onCloseSetting:f})):e.createCommentVNode("",!0)])),_:1}))}};__definePage("pages/login/index",qn),__definePage("pages/index/standby",Zn),__definePage("pages/index/index",so),__definePage("pages/pay/index",lo),__definePage("pages/login/success",po);const fo={onLaunch(){n("log","at App.vue:16","App Launch default"),this.globalData.autoLogin=!0},onShow(){n("log","at App.vue:20","App Show default")},onHide(){n("log","at App.vue:23","App Hide default")},globalData:{autoLogin:!1,goodsList:[],shopList:[],accountInfo:{brand_id:"63",store_id:"167",username:"Ella06",password:"123456",assistant_client:"PC",token:"e6cabeae-0c1a-11ee-aa40-5254005df464",role:""},stadiumInfo:{id:"",brand_id:"",venue_name:""},loginInfo:{phone:"",password:"",token:"",vip:!1},payInfo:{payType:"",paySuccess:!1}},methods:{}};const{app:yo,Vuex:go,Pinia:mo}={app:e.createVueApp(fo)};uni.Vuex=go,uni.Pinia=mo,yo.provide("__globalStyles",__uniConfig.styles),yo._component.mpType="app",yo._component.render=()=>{},yo.mount("#app")}(Vue); diff --git a/app/src/main/assets/apps/__UNI__3B4D40B/www/app.css b/app/src/main/assets/apps/__UNI__3B4D40B/www/app.css index 7cd293b..c15eedd 100644 --- a/app/src/main/assets/apps/__UNI__3B4D40B/www/app.css +++ b/app/src/main/assets/apps/__UNI__3B4D40B/www/app.css @@ -1,3 +1,2 @@ *{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%}#app{height:100%}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}@media (prefers-color-scheme: dark){html{--UI-BG-CLOLOR-ACTIVE: #373737;--UI-BORDER-CLOLOR-1: #373737;--UI-BG: #000;--UI-BG-0: #191919;--UI-BG-1: #1f1f1f;--UI-BG-2: #232323;--UI-BG-3: #2f2f2f;--UI-BG-4: #606060;--UI-BG-5: #2c2c2c;--UI-FG: #fff;--UI-FG-0: hsla(0, 0%, 100%, .8);--UI-FG-HALF: hsla(0, 0%, 100%, .6);--UI-FG-1: hsla(0, 0%, 100%, .5);--UI-FG-2: hsla(0, 0%, 100%, .3);--UI-FG-3: hsla(0, 0%, 100%, .05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}@media (hover: hover){uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}@media (hover: hover){uni-radio:not([disabled]) .uni-radio-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} -@font-face{font-family:uniicons;font-weight:400;font-style:normal;src:url(static/uni.ttf) format("truetype")}uni-progress,uni-checkbox-group{width:100%}uni-form{width:100%}.uni-flex{display:flex;flex-direction:row}.uni-flex-item{flex:1}.uni-row{flex-direction:row}.uni-column{flex-direction:column}.uni-link{color:#576b95;font-size:.8125rem}.uni-center{text-align:center}.uni-inline-item{display:flex;flex-direction:row;align-items:center}.uni-inline-item uni-text{margin-right:.625rem}.uni-inline-item uni-text:last-child{margin-right:0;margin-left:.625rem}.common-page-head{padding:1.09375rem;text-align:center}.common-page-head-title{display:inline-block;padding:0 1.25rem;font-size:.9375rem;height:2.75rem;line-height:2.75rem;color:#bebebe;box-sizing:border-box;border-bottom:.0625rem solid #D8D8D8}.uni-padding-wrap{padding:0 .9375rem}.uni-word{text-align:center;padding:6.25rem 3.125rem}.uni-title{font-size:.9375rem;font-weight:500;padding:.625rem 0;line-height:1.5}.uni-text{font-size:.875rem}.uni-title uni-text{font-size:.75rem;color:#888}.uni-text-gray{color:#ccc}.uni-text-small{font-size:.75rem}.uni-common-mb{margin-bottom:.9375rem}.uni-common-pb{padding-bottom:.9375rem}.uni-common-pl{padding-left:.9375rem}.uni-common-mt{margin-top:.9375rem}.uni-bg-red{background:#F76260;color:#fff}.uni-bg-green{background:#09BB07;color:#fff}.uni-bg-blue{background:#007AFF;color:#fff}.uni-h1{font-size:2.5rem;font-weight:700}.uni-h2{font-size:1.875rem;font-weight:700}.uni-h3{font-size:1.5rem;font-weight:700}.uni-h4{font-size:1.125rem;font-weight:700}.uni-h5{font-size:.875rem;color:#8f8f94}.uni-h6{font-size:.75rem;color:#8f8f94}.uni-bold{font-weight:700}.uni-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-btn-v{padding:.3125rem 0}.uni-btn-v uni-button{margin:.625rem 0}.uni-form-item{display:flex;width:100%;padding:.3125rem 0}.uni-form-item .title{padding:.3125rem .78125rem}.uni-label{width:6.5625rem;word-wrap:break-word;word-break:break-all;text-indent:.625rem}.uni-input{height:1.5625rem;padding:.46875rem .78125rem;line-height:1.5625rem;font-size:.875rem;background:#FFF;flex:1}uni-radio-group,uni-checkbox-group{width:100%}uni-radio-group uni-label,uni-checkbox-group uni-label{padding-right:.625rem}.uni-form-item .with-fun{display:flex;flex-wrap:nowrap;background:#FFFFFF}.uni-form-item .with-fun .uni-icon{width:40px;height:2.5rem;line-height:2.5rem;flex-shrink:0}.uni-loadmore{height:2.5rem;line-height:2.5rem;text-align:center;padding-bottom:.9375rem}.uni-badge.uni-badge-inverted{padding:0 5px 0 0;color:#929292;background-color:transparent}.uni-badge-primary{color:#fff;background-color:#007aff}.uni-badge-blue.uni-badge-inverted,.uni-badge-primary.uni-badge-inverted{color:#007aff;background-color:transparent}.uni-badge-green,.uni-badge-success{color:#fff;background-color:#4cd964}.uni-badge-green.uni-badge-inverted,.uni-badge-success.uni-badge-inverted{color:#4cd964;background-color:transparent}.uni-badge-warning,.uni-badge-yellow{color:#fff;background-color:#f0ad4e}.uni-badge-warning.uni-badge-inverted,.uni-badge-yellow.uni-badge-inverted{color:#f0ad4e;background-color:transparent}.uni-badge-danger,.uni-badge-red{color:#fff;background-color:#dd524d}.uni-badge-danger.uni-badge-inverted,.uni-badge-red.uni-badge-inverted{color:#dd524d;background-color:transparent}.uni-badge-purple,.uni-badge-royal{color:#fff;background-color:#8a6de9}.uni-badge-purple.uni-badge-inverted,.uni-badge-royal.uni-badge-inverted{color:#8a6de9;background-color:transparent}.uni-collapse-content{height:0;width:100%;overflow:hidden}.uni-collapse-content.uni-active{height:auto}.uni-card{background:#fff;border-radius:.25rem;margin:.625rem 0;position:relative}.uni-card-content{font-size:.9375rem}.uni-card-content.image-view{width:100%;margin:0}.uni-card-content-inner{position:relative;padding:.9375rem}.uni-card-footer,.uni-card-header{position:relative;display:flex;min-height:1.5625rem;padding:.625rem .9375rem;justify-content:space-between;align-items:center}.uni-card-header{font-size:1.125rem}.uni-card-footer{color:#6d6d72}.uni-card-footer:before,.uni-card-header:after{position:absolute;top:0;right:0;left:0;height:.0625rem;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-card-header:after{top:auto;bottom:0}.uni-card-media{justify-content:flex-start}.uni-card-media-logo{height:2.625rem;width:2.625rem;margin-right:.625rem}.uni-card-media-body{height:2.625rem;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.uni-card-media-text-top{line-height:1.125rem;font-size:1.0625rem}.uni-card-media-text-bottom{line-height:.9375rem;font-size:.875rem;color:#8f8f94}.uni-card-link{color:#007aff}.uni-list{background-color:#fff;position:relative;width:100%;display:flex;flex-direction:column}.uni-list:after{position:absolute;z-index:10;right:0;bottom:0;left:0;height:1px;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-list-cell{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.uni-list-cell-hover{background-color:#eee}.uni-list-cell-pd{padding:.6875rem .9375rem}.uni-list-cell-left{white-space:nowrap;font-size:.875rem;padding:0 .9375rem}.uni-list-cell-db,.uni-list-cell-right{flex:1}.uni-list-cell:after{position:absolute;z-index:3;right:0;bottom:0;left:.9375rem;height:1px;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-list .uni-list-cell:last-child:after{height:0}.uni-list-cell-last.uni-list-cell:after{height:0}.uni-list-cell-divider{position:relative;display:flex;color:#999;background-color:#f7f7f7;padding:.46875rem .625rem}.uni-list-cell-divider:before{position:absolute;right:0;top:0;left:0;height:1px;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-list-cell-divider:after{position:absolute;right:0;bottom:0;left:0;height:1px;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-list-cell-navigate{font-size:.9375rem;padding:.6875rem .9375rem;line-height:1.5rem;position:relative;display:flex;box-sizing:border-box;width:100%;flex:1;justify-content:space-between;align-items:center}.uni-list-cell-navigate{padding-right:1.125rem}.uni-navigate-badge{padding-right:1.5625rem}.uni-list-cell-navigate.uni-navigate-right:after{font-family:uniicons;content:"\e583";position:absolute;right:.75rem;top:50%;color:#bbb;transform:translateY(-50%)}.uni-list-cell-navigate.uni-navigate-bottom:after{font-family:uniicons;content:"\e581";position:absolute;right:.75rem;top:50%;color:#bbb;transform:translateY(-50%)}.uni-list-cell-navigate.uni-navigate-bottom.uni-active:after{font-family:uniicons;content:"\e580";position:absolute;right:.75rem;top:50%;color:#bbb;transform:translateY(-50%)}.uni-collapse.uni-list-cell{flex-direction:column}.uni-list-cell-navigate.uni-active{background:#eee}.uni-list.uni-collapse{box-sizing:border-box;height:0;overflow:hidden}.uni-collapse .uni-list-cell{padding-left:.625rem}.uni-collapse .uni-list-cell:after{left:1.625rem}.uni-list.uni-active{height:auto}.uni-triplex-row{display:flex;flex:1;width:100%;box-sizing:border-box;flex-direction:row;padding:.6875rem .9375rem}.uni-triplex-right,.uni-triplex-left{display:flex;flex-direction:column}.uni-triplex-left{width:84%}.uni-triplex-left .uni-title{padding:.25rem 0}.uni-triplex-left .uni-text,.uni-triplex-left .uni-text-small{color:#999}.uni-triplex-right{width:16%;text-align:right}.uni-media-list{padding:.6875rem .9375rem;box-sizing:border-box;display:flex;width:100%;flex-direction:row}.uni-navigate-right.uni-media-list{padding-right:2.3125rem}.uni-pull-right{flex-direction:row-reverse}.uni-pull-right>.uni-media-list-logo{margin-right:0;margin-left:.625rem}.uni-media-list-logo{height:2.625rem;width:2.625rem;margin-right:.625rem}.uni-media-list-logo uni-image{height:100%;width:100%}.uni-media-list-body{height:2.625rem;display:flex;flex:1;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden}.uni-media-list-text-top{width:100%;line-height:1.125rem;font-size:.9375rem}.uni-media-list-text-bottom{width:100%;line-height:.9375rem;font-size:.8125rem;color:#8f8f94}.uni-grid-9{background:#f2f2f2;width:23.4375rem;display:flex;flex-direction:row;flex-wrap:wrap;border-top:.0625rem solid #eee}.uni-grid-9-item{width:7.8125rem;height:6.25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom:.0625rem solid;border-right:.0625rem solid;border-color:#eee;box-sizing:border-box}.no-border-right{border-right:none}.uni-grid-9-image{width:3.125rem;height:3.125rem}.uni-grid-9-text{width:7.8125rem;line-height:.125rem;height:1.25rem;text-align:center;font-size:.9375rem}.uni-grid-9-item-hover{background:rgba(0,0,0,.1)}.uni-uploader{flex:1;flex-direction:column}.uni-uploader-head{display:flex;flex-direction:row;justify-content:space-between}.uni-uploader-info{color:#b2b2b2}.uni-uploader-body{margin-top:.5rem}.uni-uploader__files{display:flex;flex-direction:row;flex-wrap:wrap}.uni-uploader__file{margin:.3125rem;width:6.5625rem;height:6.5625rem}.uni-uploader__img{display:block;width:6.5625rem;height:6.5625rem}.uni-uploader__input-box{position:relative;margin:.3125rem;width:6.5rem;height:6.5rem;border:.0625rem solid #D9D9D9}.uni-uploader__input-box:before,.uni-uploader__input-box:after{content:" ";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#d9d9d9}.uni-uploader__input-box:before{width:.125rem;height:2.46875rem}.uni-uploader__input-box:after{width:2.46875rem;height:.125rem}.uni-uploader__input-box:active{border-color:#999}.uni-uploader__input-box:active:before,.uni-uploader__input-box:active:after{background-color:#999}.uni-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0}.feedback-title{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.625rem;color:#8f8f94;font-size:.875rem}.feedback-star-view.feedback-title{justify-content:flex-start;margin:0}.feedback-quick{position:relative;padding-right:1.25rem}.feedback-quick:after{font-family:uniicons;font-size:1.25rem;content:"\e581";position:absolute;right:0;top:50%;color:#bbb;transform:translateY(-50%)}.feedback-body{background:#fff}.feedback-textare{height:6.25rem;font-size:1.0625rem;line-height:1.5625rem;width:100%;box-sizing:border-box;padding:.625rem .9375rem 0}.feedback-input{font-size:1.0625rem;height:1.5625rem;min-height:1.5625rem;padding:.46875rem .625rem;line-height:1.5625rem}.feedback-uploader{padding:.6875rem .625rem}.feedback-star{font-family:uniicons;font-size:1.25rem;margin-left:.1875rem}.feedback-star-view{margin-left:.625rem}.feedback-star:after{content:"\e408"}.feedback-star.active{color:#ffb400}.feedback-star.active:after{content:"\e438"}.feedback-submit{background:#007AFF;color:#fff;margin:.625rem}.uni-input-group{position:relative;padding:0;border:0;background-color:#fff}.uni-input-group:before{position:absolute;top:0;right:0;left:0;height:.0625rem;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-input-group:after{position:absolute;right:0;bottom:0;left:0;height:.0625rem;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-input-row{position:relative;display:flex;flex-direction:row;font-size:.875rem;padding:.6875rem .9375rem;justify-content:space-between}.uni-input-group .uni-input-row:after{position:absolute;right:0;bottom:0;left:.9375rem;height:.0625rem;content:"";transform:scaleY(.5);background-color:#c8c7cc}.uni-input-row uni-label{line-height:2.1875rem}.uni-textarea{width:100%;background:#FFF}.uni-textarea uni-textarea{width:96%;padding:.5625rem 2%;line-height:1.6;font-size:.875rem;height:4.6875rem}.uni-tab-bar{display:flex;flex:1;flex-direction:column;overflow:hidden;height:100%}.uni-tab-bar .list{width:23.4375rem;height:100%}.uni-swiper-tab{width:100%;white-space:nowrap;line-height:3.125rem;height:3.125rem;border-bottom:1px solid #c8c7cc}.swiper-tab-list{font-size:.9375rem;width:4.6875rem;display:inline-block;text-align:center;color:#555}.uni-tab-bar .active{color:#007aff}.uni-tab-bar .swiper-box{flex:1;width:100%;height:calc(100% - 3.125rem)}.uni-tab-bar-loading{padding:.625rem 0}.uni-comment{padding:.15625rem 0;display:flex;flex-grow:1;flex-direction:column}.uni-comment-list{flex-wrap:nowrap;padding:.3125rem 0;margin:.3125rem 0;width:100%;display:flex}.uni-comment-face{width:2.1875rem;height:2.1875rem;border-radius:100%;margin-right:.625rem;flex-shrink:0;overflow:hidden}.uni-comment-face uni-image{width:100%;border-radius:100%}.uni-comment-body{width:100%}.uni-comment-top{line-height:1.5em;justify-content:space-between}.uni-comment-top uni-text{color:#0a98d5;font-size:.75rem}.uni-comment-date{line-height:1.1875rem;flex-direction:row;justify-content:space-between;display:flex!important;flex-grow:1}.uni-comment-date uni-view{color:#666;font-size:.75rem;line-height:1.1875rem}.uni-comment-content{line-height:1.6em;font-size:.875rem;padding:.25rem 0}.uni-comment-replay-btn{background:#FFF;font-size:.75rem;line-height:.875rem;padding:.15625rem .625rem;border-radius:.9375rem;color:#333!important;margin:0 .3125rem}.uni-swiper-msg{width:100%;padding:.375rem 0;flex-wrap:nowrap;display:flex}.uni-swiper-msg-icon{width:1.5625rem;margin-right:.625rem}.uni-swiper-msg-icon uni-image{width:100%;flex-shrink:0}.uni-swiper-msg uni-swiper{width:100%;height:1.5625rem}.uni-swiper-msg uni-swiper-item{line-height:1.5625rem}.uni-product-list{display:flex;width:100%;flex-wrap:wrap;flex-direction:row}.uni-product{padding:.625rem;display:flex;flex-direction:column}.image-view{height:10.3125rem;width:10.3125rem;margin:.375rem 0}.uni-product-image{height:10.3125rem;width:10.3125rem}.uni-product-title{width:9.375rem;word-break:break-all;display:-webkit-box;overflow:hidden;line-height:1.5;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.uni-product-price{margin-top:.3125rem;font-size:.875rem;line-height:1.5;position:relative}.uni-product-price-original{color:#e80080}.uni-product-price-favour{color:#888;text-decoration:line-through;margin-left:.3125rem}.uni-product-tip{position:absolute;right:.3125rem;background-color:#f33;color:#fff;padding:0 .3125rem;border-radius:.15625rem}.uni-timeline{margin:1.09375rem 0;display:flex;flex-direction:column;position:relative}.uni-timeline-item{display:flex;flex-direction:row;position:relative;padding-bottom:.625rem;box-sizing:border-box;overflow:hidden}.uni-timeline-item .uni-timeline-item-keynode{width:5rem;flex-shrink:0;box-sizing:border-box;padding-right:.625rem;text-align:right;line-height:2.03125rem}.uni-timeline-item .uni-timeline-item-divider{flex-shrink:0;position:relative;width:.9375rem;height:.9375rem;top:.46875rem;border-radius:50%;background-color:#bbb}.uni-timeline-item-divider:before,.uni-timeline-item-divider:after{position:absolute;left:.46875rem;width:.03125rem;height:100vh;content:"";background:inherit}.uni-timeline-item-divider:before{bottom:100%}.uni-timeline-item-divider:after{top:100%}.uni-timeline-last-item .uni-timeline-item-divider:after{display:none}.uni-timeline-first-item .uni-timeline-item-divider:before{display:none}.uni-timeline-item .uni-timeline-item-content{padding-left:.625rem}.uni-timeline-last-item .bottom-border:after{display:none}.uni-timeline-item-content .datetime{color:#ccc}.uni-timeline-last-item .uni-timeline-item-divider{background-color:#1aad19}.uni-icon{font-family:uniicons;font-size:24px;font-weight:400;font-style:normal;line-height:1;display:inline-block;text-decoration:none;-webkit-font-smoothing:antialiased}.uni-icon.uni-active{color:#007aff}.uni-icon-contact:before{content:"\e100"}.uni-icon-person:before{content:"\e101"}.uni-icon-personadd:before{content:"\e102"}.uni-icon-contact-filled:before{content:"\e130"}.uni-icon-person-filled:before{content:"\e131"}.uni-icon-personadd-filled:before{content:"\e132"}.uni-icon-phone:before{content:"\e200"}.uni-icon-email:before{content:"\e201"}.uni-icon-chatbubble:before{content:"\e202"}.uni-icon-chatboxes:before{content:"\e203"}.uni-icon-phone-filled:before{content:"\e230"}.uni-icon-email-filled:before{content:"\e231"}.uni-icon-chatbubble-filled:before{content:"\e232"}.uni-icon-chatboxes-filled:before{content:"\e233"}.uni-icon-weibo:before{content:"\e260"}.uni-icon-weixin:before{content:"\e261"}.uni-icon-pengyouquan:before{content:"\e262"}.uni-icon-chat:before{content:"\e263"}.uni-icon-qq:before{content:"\e264"}.uni-icon-videocam:before{content:"\e300"}.uni-icon-camera:before{content:"\e301"}.uni-icon-mic:before{content:"\e302"}.uni-icon-location:before{content:"\e303"}.uni-icon-mic-filled:before,.uni-icon-speech:before{content:"\e332"}.uni-icon-location-filled:before{content:"\e333"}.uni-icon-micoff:before{content:"\e360"}.uni-icon-image:before{content:"\e363"}.uni-icon-map:before{content:"\e364"}.uni-icon-compose:before{content:"\e400"}.uni-icon-trash:before{content:"\e401"}.uni-icon-upload:before{content:"\e402"}.uni-icon-download:before{content:"\e403"}.uni-icon-close:before{content:"\e404"}.uni-icon-redo:before{content:"\e405"}.uni-icon-undo:before{content:"\e406"}.uni-icon-refresh:before{content:"\e407"}.uni-icon-star:before{content:"\e408"}.uni-icon-plus:before{content:"\e409"}.uni-icon-minus:before{content:"\e410"}.uni-icon-circle:before,.uni-icon-checkbox:before{content:"\e411"}.uni-icon-close-filled:before,.uni-icon-clear:before{content:"\e434"}.uni-icon-refresh-filled:before{content:"\e437"}.uni-icon-star-filled:before{content:"\e438"}.uni-icon-plus-filled:before{content:"\e439"}.uni-icon-minus-filled:before{content:"\e440"}.uni-icon-circle-filled:before{content:"\e441"}.uni-icon-checkbox-filled:before{content:"\e442"}.uni-icon-closeempty:before{content:"\e460"}.uni-icon-refreshempty:before{content:"\e461"}.uni-icon-reload:before{content:"\e462"}.uni-icon-starhalf:before{content:"\e463"}.uni-icon-spinner:before{content:"\e464"}.uni-icon-spinner-cycle:before{content:"\e465"}.uni-icon-search:before{content:"\e466"}.uni-icon-plusempty:before{content:"\e468"}.uni-icon-forward:before{content:"\e470"}.uni-icon-back:before,.uni-icon-left-nav:before{content:"\e471"}.uni-icon-checkmarkempty:before{content:"\e472"}.uni-icon-home:before{content:"\e500"}.uni-icon-navigate:before{content:"\e501"}.uni-icon-gear:before{content:"\e502"}.uni-icon-paperplane:before{content:"\e503"}.uni-icon-info:before{content:"\e504"}.uni-icon-help:before{content:"\e505"}.uni-icon-locked:before{content:"\e506"}.uni-icon-more:before{content:"\e507"}.uni-icon-flag:before{content:"\e508"}.uni-icon-home-filled:before{content:"\e530"}.uni-icon-gear-filled:before{content:"\e532"}.uni-icon-info-filled:before{content:"\e534"}.uni-icon-help-filled:before{content:"\e535"}.uni-icon-more-filled:before{content:"\e537"}.uni-icon-settings:before{content:"\e560"}.uni-icon-list:before{content:"\e562"}.uni-icon-bars:before{content:"\e563"}.uni-icon-loop:before{content:"\e565"}.uni-icon-paperclip:before{content:"\e567"}.uni-icon-eye:before{content:"\e568"}.uni-icon-arrowup:before{content:"\e580"}.uni-icon-arrowdown:before{content:"\e581"}.uni-icon-arrowleft:before{content:"\e582"}.uni-icon-arrowright:before{content:"\e583"}.uni-icon-arrowthinup:before{content:"\e584"}.uni-icon-arrowthindown:before{content:"\e585"}.uni-icon-arrowthinleft:before{content:"\e586"}.uni-icon-arrowthinright:before{content:"\e587"}.uni-icon-pulldown:before{content:"\e588"}.uni-icon-scan:before{content:"\e612"}.uni-divider{height:3.4375rem;display:flex;align-items:center;justify-content:center;position:relative}.uni-divider__content{font-size:.875rem;color:#999;padding:0 .625rem;position:relative;z-index:101;background:#F4F5F6}.uni-divider__line{background-color:#ccc;height:1px;width:100%;position:absolute;z-index:100;top:50%;left:0;transform:translateY(50%)}.left-win-active uni-text{color:#007aff!important}@font-face{font-family:customicons;src:url(static/customicons.ttf) format("truetype")}.customicons{font-family:customicons!important}.youxi:before{content:"\e60e"}.wenjian:before{content:"\e60f"}.zhuanfa:before{content:"\e610"}.uni-border{border:1px #F0F0F0 solid}.uni-primary{color:#2979ff}.uni-primary-bg{background-color:#2979ff}.uni-primary-disable{color:#8fb9ff}.uni-primary-disable-bg{background-color:#8fb9ff}.uni-primary-light{color:#a9c9ff}.uni-primary-light-bg{background-color:#a9c9ff}.uni-success{color:#18bc37}.uni-success-bg{background-color:#18bc37}.uni-success-disable{color:#51e96e}.uni-success-disable-bg{background-color:#51e96e}.uni-success-light{color:#68ec81}.uni-success-light-bg{background-color:#68ec81}.uni-warning{color:#f3a73f}.uni-warning-bg{background-color:#f3a73f}.uni-warning-disable{color:#f9d39f}.uni-warning-disable-bg{background-color:#f9d39f}.uni-warning-light{color:#fbdeb7}.uni-warning-light-bg{background-color:#fbdeb7}.uni-error{color:#e43d33}.uni-error-bg{background-color:#e43d33}.uni-error-disable{color:#f0938d}.uni-error-disable-bg{background-color:#f0938d}.uni-error-light{color:#f3a8a4}.uni-error-light-bg{background-color:#f3a8a4}.uni-info{color:#8f939c}.uni-info-bg{background-color:#8f939c}.uni-info-disable{color:#c5c7cc}.uni-info-disable-bg{background-color:#c5c7cc}.uni-info-light{color:#d3d4d8}.uni-info-light-bg{background-color:#d3d4d8}.uni-main-color{color:#3a3a3a}.uni-main-color-bg{background-color:#3a3a3a}.uni-base-color{color:#6a6a6a}.uni-base-color-bg{background-color:#6a6a6a}.uni-secondary-color{color:#909399}.uni-secondary-color-bg{background-color:#909399}.uni-extra-color{color:#c7c7c7}.uni-extra-color-bg{background-color:#c7c7c7}.uni-bg-color{color:#fff}.uni-bg-color-bg{background-color:#fff}.uni-border-1{color:#f0f0f0}.uni-border-1-bg{background-color:#f0f0f0}.uni-border-2{color:#ededed}.uni-border-2-bg{background-color:#ededed}.uni-border-3{color:#dcdcdc}.uni-border-3-bg{background-color:#dcdcdc}.uni-border-4{color:#b9b9b9}.uni-border-4-bg{background-color:#b9b9b9}.uni-black{color:#000}.uni-black-bg{background-color:#000}.uni-white{color:#fff}.uni-white-bg{background-color:#fff}.uni-transparent{color:rgba(0,0,0,0)}.uni-transparent-bg{background-color:rgba(0,0,0,0)}.uni-shadow-sm{box-shadow:0 0 5px rgba(216,216,216,.5)}.uni-shadow-base{box-shadow:0 1px 8px 1px rgba(165,165,165,.2)}.uni-shadow-lg{box-shadow:0 1px 10px 2px rgba(165,164,164,.5)}.uni-mask{background-color:rgba(0,0,0,.4)}.uni-mt-0,.uni-mt-n0{margin-top:0}.uni-mr-0,.uni-mr-n0{margin-right:0}.uni-mb-0,.uni-mb-n0{margin-bottom:0}.uni-ml-0,.uni-ml-n0{margin-left:0}.uni-mx-0,.uni-mx-n0{margin-left:0;margin-right:0}.uni-my-0,.uni-my-n0{margin-top:0;margin-bottom:0}.uni-ma-0,.uni-ma-n0{margin:0}.uni-mt-1{margin-top:2px}.uni-mt-n1{margin-top:-2px}.uni-mr-1{margin-right:2px}.uni-mr-n1{margin-right:-2px}.uni-mb-1{margin-bottom:2px}.uni-mb-n1{margin-bottom:-2px}.uni-ml-1{margin-left:2px}.uni-ml-n1{margin-left:-2px}.uni-mx-1{margin-left:2px;margin-right:2px}.uni-mx-n1{margin-left:-2px;margin-right:-2px}.uni-my-1{margin-top:2px;margin-bottom:2px}.uni-my-n1{margin-top:-2px;margin-bottom:-2px}.uni-ma-1{margin:2px}.uni-ma-n1{margin:-2px}.uni-mt-2{margin-top:4px}.uni-mt-n2{margin-top:-4px}.uni-mr-2{margin-right:4px}.uni-mr-n2{margin-right:-4px}.uni-mb-2{margin-bottom:4px}.uni-mb-n2{margin-bottom:-4px}.uni-ml-2{margin-left:4px}.uni-ml-n2{margin-left:-4px}.uni-mx-2{margin-left:4px;margin-right:4px}.uni-mx-n2{margin-left:-4px;margin-right:-4px}.uni-my-2{margin-top:4px;margin-bottom:4px}.uni-my-n2{margin-top:-4px;margin-bottom:-4px}.uni-ma-2{margin:4px}.uni-ma-n2{margin:-4px}.uni-mt-3{margin-top:6px}.uni-mt-n3{margin-top:-6px}.uni-mr-3{margin-right:6px}.uni-mr-n3{margin-right:-6px}.uni-mb-3{margin-bottom:6px}.uni-mb-n3{margin-bottom:-6px}.uni-ml-3{margin-left:6px}.uni-ml-n3{margin-left:-6px}.uni-mx-3{margin-left:6px;margin-right:6px}.uni-mx-n3{margin-left:-6px;margin-right:-6px}.uni-my-3{margin-top:6px;margin-bottom:6px}.uni-my-n3{margin-top:-6px;margin-bottom:-6px}.uni-ma-3{margin:6px}.uni-ma-n3{margin:-6px}.uni-mt-4{margin-top:8px}.uni-mt-n4{margin-top:-8px}.uni-mr-4{margin-right:8px}.uni-mr-n4{margin-right:-8px}.uni-mb-4{margin-bottom:8px}.uni-mb-n4{margin-bottom:-8px}.uni-ml-4{margin-left:8px}.uni-ml-n4{margin-left:-8px}.uni-mx-4{margin-left:8px;margin-right:8px}.uni-mx-n4{margin-left:-8px;margin-right:-8px}.uni-my-4{margin-top:8px;margin-bottom:8px}.uni-my-n4{margin-top:-8px;margin-bottom:-8px}.uni-ma-4{margin:8px}.uni-ma-n4{margin:-8px}.uni-mt-5{margin-top:10px}.uni-mt-n5{margin-top:-10px}.uni-mr-5{margin-right:10px}.uni-mr-n5{margin-right:-10px}.uni-mb-5{margin-bottom:10px}.uni-mb-n5{margin-bottom:-10px}.uni-ml-5{margin-left:10px}.uni-ml-n5{margin-left:-10px}.uni-mx-5{margin-left:10px;margin-right:10px}.uni-mx-n5{margin-left:-10px;margin-right:-10px}.uni-my-5{margin-top:10px;margin-bottom:10px}.uni-my-n5{margin-top:-10px;margin-bottom:-10px}.uni-ma-5{margin:10px}.uni-ma-n5{margin:-10px}.uni-mt-6{margin-top:12px}.uni-mt-n6{margin-top:-12px}.uni-mr-6{margin-right:12px}.uni-mr-n6{margin-right:-12px}.uni-mb-6{margin-bottom:12px}.uni-mb-n6{margin-bottom:-12px}.uni-ml-6{margin-left:12px}.uni-ml-n6{margin-left:-12px}.uni-mx-6{margin-left:12px;margin-right:12px}.uni-mx-n6{margin-left:-12px;margin-right:-12px}.uni-my-6{margin-top:12px;margin-bottom:12px}.uni-my-n6{margin-top:-12px;margin-bottom:-12px}.uni-ma-6{margin:12px}.uni-ma-n6{margin:-12px}.uni-mt-7{margin-top:14px}.uni-mt-n7{margin-top:-14px}.uni-mr-7{margin-right:14px}.uni-mr-n7{margin-right:-14px}.uni-mb-7{margin-bottom:14px}.uni-mb-n7{margin-bottom:-14px}.uni-ml-7{margin-left:14px}.uni-ml-n7{margin-left:-14px}.uni-mx-7{margin-left:14px;margin-right:14px}.uni-mx-n7{margin-left:-14px;margin-right:-14px}.uni-my-7{margin-top:14px;margin-bottom:14px}.uni-my-n7{margin-top:-14px;margin-bottom:-14px}.uni-ma-7{margin:14px}.uni-ma-n7{margin:-14px}.uni-mt-8{margin-top:16px}.uni-mt-n8{margin-top:-16px}.uni-mr-8{margin-right:16px}.uni-mr-n8{margin-right:-16px}.uni-mb-8{margin-bottom:16px}.uni-mb-n8{margin-bottom:-16px}.uni-ml-8{margin-left:16px}.uni-ml-n8{margin-left:-16px}.uni-mx-8{margin-left:16px;margin-right:16px}.uni-mx-n8{margin-left:-16px;margin-right:-16px}.uni-my-8{margin-top:16px;margin-bottom:16px}.uni-my-n8{margin-top:-16px;margin-bottom:-16px}.uni-ma-8{margin:16px}.uni-ma-n8{margin:-16px}.uni-mt-9{margin-top:18px}.uni-mt-n9{margin-top:-18px}.uni-mr-9{margin-right:18px}.uni-mr-n9{margin-right:-18px}.uni-mb-9{margin-bottom:18px}.uni-mb-n9{margin-bottom:-18px}.uni-ml-9{margin-left:18px}.uni-ml-n9{margin-left:-18px}.uni-mx-9{margin-left:18px;margin-right:18px}.uni-mx-n9{margin-left:-18px;margin-right:-18px}.uni-my-9{margin-top:18px;margin-bottom:18px}.uni-my-n9{margin-top:-18px;margin-bottom:-18px}.uni-ma-9{margin:18px}.uni-ma-n9{margin:-18px}.uni-mt-10{margin-top:20px}.uni-mt-n10{margin-top:-20px}.uni-mr-10{margin-right:20px}.uni-mr-n10{margin-right:-20px}.uni-mb-10{margin-bottom:20px}.uni-mb-n10{margin-bottom:-20px}.uni-ml-10{margin-left:20px}.uni-ml-n10{margin-left:-20px}.uni-mx-10{margin-left:20px;margin-right:20px}.uni-mx-n10{margin-left:-20px;margin-right:-20px}.uni-my-10{margin-top:20px;margin-bottom:20px}.uni-my-n10{margin-top:-20px;margin-bottom:-20px}.uni-ma-10{margin:20px}.uni-ma-n10{margin:-20px}.uni-mt-11{margin-top:22px}.uni-mt-n11{margin-top:-22px}.uni-mr-11{margin-right:22px}.uni-mr-n11{margin-right:-22px}.uni-mb-11{margin-bottom:22px}.uni-mb-n11{margin-bottom:-22px}.uni-ml-11{margin-left:22px}.uni-ml-n11{margin-left:-22px}.uni-mx-11{margin-left:22px;margin-right:22px}.uni-mx-n11{margin-left:-22px;margin-right:-22px}.uni-my-11{margin-top:22px;margin-bottom:22px}.uni-my-n11{margin-top:-22px;margin-bottom:-22px}.uni-ma-11{margin:22px}.uni-ma-n11{margin:-22px}.uni-mt-12{margin-top:24px}.uni-mt-n12{margin-top:-24px}.uni-mr-12{margin-right:24px}.uni-mr-n12{margin-right:-24px}.uni-mb-12{margin-bottom:24px}.uni-mb-n12{margin-bottom:-24px}.uni-ml-12{margin-left:24px}.uni-ml-n12{margin-left:-24px}.uni-mx-12{margin-left:24px;margin-right:24px}.uni-mx-n12{margin-left:-24px;margin-right:-24px}.uni-my-12{margin-top:24px;margin-bottom:24px}.uni-my-n12{margin-top:-24px;margin-bottom:-24px}.uni-ma-12{margin:24px}.uni-ma-n12{margin:-24px}.uni-mt-13{margin-top:26px}.uni-mt-n13{margin-top:-26px}.uni-mr-13{margin-right:26px}.uni-mr-n13{margin-right:-26px}.uni-mb-13{margin-bottom:26px}.uni-mb-n13{margin-bottom:-26px}.uni-ml-13{margin-left:26px}.uni-ml-n13{margin-left:-26px}.uni-mx-13{margin-left:26px;margin-right:26px}.uni-mx-n13{margin-left:-26px;margin-right:-26px}.uni-my-13{margin-top:26px;margin-bottom:26px}.uni-my-n13{margin-top:-26px;margin-bottom:-26px}.uni-ma-13{margin:26px}.uni-ma-n13{margin:-26px}.uni-mt-14{margin-top:28px}.uni-mt-n14{margin-top:-28px}.uni-mr-14{margin-right:28px}.uni-mr-n14{margin-right:-28px}.uni-mb-14{margin-bottom:28px}.uni-mb-n14{margin-bottom:-28px}.uni-ml-14{margin-left:28px}.uni-ml-n14{margin-left:-28px}.uni-mx-14{margin-left:28px;margin-right:28px}.uni-mx-n14{margin-left:-28px;margin-right:-28px}.uni-my-14{margin-top:28px;margin-bottom:28px}.uni-my-n14{margin-top:-28px;margin-bottom:-28px}.uni-ma-14{margin:28px}.uni-ma-n14{margin:-28px}.uni-mt-15{margin-top:30px}.uni-mt-n15{margin-top:-30px}.uni-mr-15{margin-right:30px}.uni-mr-n15{margin-right:-30px}.uni-mb-15{margin-bottom:30px}.uni-mb-n15{margin-bottom:-30px}.uni-ml-15{margin-left:30px}.uni-ml-n15{margin-left:-30px}.uni-mx-15{margin-left:30px;margin-right:30px}.uni-mx-n15{margin-left:-30px;margin-right:-30px}.uni-my-15{margin-top:30px;margin-bottom:30px}.uni-my-n15{margin-top:-30px;margin-bottom:-30px}.uni-ma-15{margin:30px}.uni-ma-n15{margin:-30px}.uni-mt-16{margin-top:32px}.uni-mt-n16{margin-top:-32px}.uni-mr-16{margin-right:32px}.uni-mr-n16{margin-right:-32px}.uni-mb-16{margin-bottom:32px}.uni-mb-n16{margin-bottom:-32px}.uni-ml-16{margin-left:32px}.uni-ml-n16{margin-left:-32px}.uni-mx-16{margin-left:32px;margin-right:32px}.uni-mx-n16{margin-left:-32px;margin-right:-32px}.uni-my-16{margin-top:32px;margin-bottom:32px}.uni-my-n16{margin-top:-32px;margin-bottom:-32px}.uni-ma-16{margin:32px}.uni-ma-n16{margin:-32px}.uni-pt-0,.uni-pt-n0{padding-top:0}.uni-pr-0,.uni-pr-n0{padding-right:0}.uni-pb-0,.uni-pb-n0{padding-bottom:0}.uni-pl-0,.uni-pl-n0{padding-left:0}.uni-px-0,.uni-px-n0{padding-left:0;padding-right:0}.uni-py-0,.uni-py-n0{padding-top:0;padding-bottom:0}.uni-pa-0,.uni-pa-n0{padding:0}.uni-pt-1{padding-top:2px}.uni-pt-n1{padding-top:-2px}.uni-pr-1{padding-right:2px}.uni-pr-n1{padding-right:-2px}.uni-pb-1{padding-bottom:2px}.uni-pb-n1{padding-bottom:-2px}.uni-pl-1{padding-left:2px}.uni-pl-n1{padding-left:-2px}.uni-px-1{padding-left:2px;padding-right:2px}.uni-px-n1{padding-left:-2px;padding-right:-2px}.uni-py-1{padding-top:2px;padding-bottom:2px}.uni-py-n1{padding-top:-2px;padding-bottom:-2px}.uni-pa-1{padding:2px}.uni-pa-n1{padding:-2px}.uni-pt-2{padding-top:4px}.uni-pt-n2{padding-top:-4px}.uni-pr-2{padding-right:4px}.uni-pr-n2{padding-right:-4px}.uni-pb-2{padding-bottom:4px}.uni-pb-n2{padding-bottom:-4px}.uni-pl-2{padding-left:4px}.uni-pl-n2{padding-left:-4px}.uni-px-2{padding-left:4px;padding-right:4px}.uni-px-n2{padding-left:-4px;padding-right:-4px}.uni-py-2{padding-top:4px;padding-bottom:4px}.uni-py-n2{padding-top:-4px;padding-bottom:-4px}.uni-pa-2{padding:4px}.uni-pa-n2{padding:-4px}.uni-pt-3{padding-top:6px}.uni-pt-n3{padding-top:-6px}.uni-pr-3{padding-right:6px}.uni-pr-n3{padding-right:-6px}.uni-pb-3{padding-bottom:6px}.uni-pb-n3{padding-bottom:-6px}.uni-pl-3{padding-left:6px}.uni-pl-n3{padding-left:-6px}.uni-px-3{padding-left:6px;padding-right:6px}.uni-px-n3{padding-left:-6px;padding-right:-6px}.uni-py-3{padding-top:6px;padding-bottom:6px}.uni-py-n3{padding-top:-6px;padding-bottom:-6px}.uni-pa-3{padding:6px}.uni-pa-n3{padding:-6px}.uni-pt-4{padding-top:8px}.uni-pt-n4{padding-top:-8px}.uni-pr-4{padding-right:8px}.uni-pr-n4{padding-right:-8px}.uni-pb-4{padding-bottom:8px}.uni-pb-n4{padding-bottom:-8px}.uni-pl-4{padding-left:8px}.uni-pl-n4{padding-left:-8px}.uni-px-4{padding-left:8px;padding-right:8px}.uni-px-n4{padding-left:-8px;padding-right:-8px}.uni-py-4{padding-top:8px;padding-bottom:8px}.uni-py-n4{padding-top:-8px;padding-bottom:-8px}.uni-pa-4{padding:8px}.uni-pa-n4{padding:-8px}.uni-pt-5{padding-top:10px}.uni-pt-n5{padding-top:-10px}.uni-pr-5{padding-right:10px}.uni-pr-n5{padding-right:-10px}.uni-pb-5{padding-bottom:10px}.uni-pb-n5{padding-bottom:-10px}.uni-pl-5{padding-left:10px}.uni-pl-n5{padding-left:-10px}.uni-px-5{padding-left:10px;padding-right:10px}.uni-px-n5{padding-left:-10px;padding-right:-10px}.uni-py-5{padding-top:10px;padding-bottom:10px}.uni-py-n5{padding-top:-10px;padding-bottom:-10px}.uni-pa-5{padding:10px}.uni-pa-n5{padding:-10px}.uni-pt-6{padding-top:12px}.uni-pt-n6{padding-top:-12px}.uni-pr-6{padding-right:12px}.uni-pr-n6{padding-right:-12px}.uni-pb-6{padding-bottom:12px}.uni-pb-n6{padding-bottom:-12px}.uni-pl-6{padding-left:12px}.uni-pl-n6{padding-left:-12px}.uni-px-6{padding-left:12px;padding-right:12px}.uni-px-n6{padding-left:-12px;padding-right:-12px}.uni-py-6{padding-top:12px;padding-bottom:12px}.uni-py-n6{padding-top:-12px;padding-bottom:-12px}.uni-pa-6{padding:12px}.uni-pa-n6{padding:-12px}.uni-pt-7{padding-top:14px}.uni-pt-n7{padding-top:-14px}.uni-pr-7{padding-right:14px}.uni-pr-n7{padding-right:-14px}.uni-pb-7{padding-bottom:14px}.uni-pb-n7{padding-bottom:-14px}.uni-pl-7{padding-left:14px}.uni-pl-n7{padding-left:-14px}.uni-px-7{padding-left:14px;padding-right:14px}.uni-px-n7{padding-left:-14px;padding-right:-14px}.uni-py-7{padding-top:14px;padding-bottom:14px}.uni-py-n7{padding-top:-14px;padding-bottom:-14px}.uni-pa-7{padding:14px}.uni-pa-n7{padding:-14px}.uni-pt-8{padding-top:16px}.uni-pt-n8{padding-top:-16px}.uni-pr-8{padding-right:16px}.uni-pr-n8{padding-right:-16px}.uni-pb-8{padding-bottom:16px}.uni-pb-n8{padding-bottom:-16px}.uni-pl-8{padding-left:16px}.uni-pl-n8{padding-left:-16px}.uni-px-8{padding-left:16px;padding-right:16px}.uni-px-n8{padding-left:-16px;padding-right:-16px}.uni-py-8{padding-top:16px;padding-bottom:16px}.uni-py-n8{padding-top:-16px;padding-bottom:-16px}.uni-pa-8{padding:16px}.uni-pa-n8{padding:-16px}.uni-pt-9{padding-top:18px}.uni-pt-n9{padding-top:-18px}.uni-pr-9{padding-right:18px}.uni-pr-n9{padding-right:-18px}.uni-pb-9{padding-bottom:18px}.uni-pb-n9{padding-bottom:-18px}.uni-pl-9{padding-left:18px}.uni-pl-n9{padding-left:-18px}.uni-px-9{padding-left:18px;padding-right:18px}.uni-px-n9{padding-left:-18px;padding-right:-18px}.uni-py-9{padding-top:18px;padding-bottom:18px}.uni-py-n9{padding-top:-18px;padding-bottom:-18px}.uni-pa-9{padding:18px}.uni-pa-n9{padding:-18px}.uni-pt-10{padding-top:20px}.uni-pt-n10{padding-top:-20px}.uni-pr-10{padding-right:20px}.uni-pr-n10{padding-right:-20px}.uni-pb-10{padding-bottom:20px}.uni-pb-n10{padding-bottom:-20px}.uni-pl-10{padding-left:20px}.uni-pl-n10{padding-left:-20px}.uni-px-10{padding-left:20px;padding-right:20px}.uni-px-n10{padding-left:-20px;padding-right:-20px}.uni-py-10{padding-top:20px;padding-bottom:20px}.uni-py-n10{padding-top:-20px;padding-bottom:-20px}.uni-pa-10{padding:20px}.uni-pa-n10{padding:-20px}.uni-pt-11{padding-top:22px}.uni-pt-n11{padding-top:-22px}.uni-pr-11{padding-right:22px}.uni-pr-n11{padding-right:-22px}.uni-pb-11{padding-bottom:22px}.uni-pb-n11{padding-bottom:-22px}.uni-pl-11{padding-left:22px}.uni-pl-n11{padding-left:-22px}.uni-px-11{padding-left:22px;padding-right:22px}.uni-px-n11{padding-left:-22px;padding-right:-22px}.uni-py-11{padding-top:22px;padding-bottom:22px}.uni-py-n11{padding-top:-22px;padding-bottom:-22px}.uni-pa-11{padding:22px}.uni-pa-n11{padding:-22px}.uni-pt-12{padding-top:24px}.uni-pt-n12{padding-top:-24px}.uni-pr-12{padding-right:24px}.uni-pr-n12{padding-right:-24px}.uni-pb-12{padding-bottom:24px}.uni-pb-n12{padding-bottom:-24px}.uni-pl-12{padding-left:24px}.uni-pl-n12{padding-left:-24px}.uni-px-12{padding-left:24px;padding-right:24px}.uni-px-n12{padding-left:-24px;padding-right:-24px}.uni-py-12{padding-top:24px;padding-bottom:24px}.uni-py-n12{padding-top:-24px;padding-bottom:-24px}.uni-pa-12{padding:24px}.uni-pa-n12{padding:-24px}.uni-pt-13{padding-top:26px}.uni-pt-n13{padding-top:-26px}.uni-pr-13{padding-right:26px}.uni-pr-n13{padding-right:-26px}.uni-pb-13{padding-bottom:26px}.uni-pb-n13{padding-bottom:-26px}.uni-pl-13{padding-left:26px}.uni-pl-n13{padding-left:-26px}.uni-px-13{padding-left:26px;padding-right:26px}.uni-px-n13{padding-left:-26px;padding-right:-26px}.uni-py-13{padding-top:26px;padding-bottom:26px}.uni-py-n13{padding-top:-26px;padding-bottom:-26px}.uni-pa-13{padding:26px}.uni-pa-n13{padding:-26px}.uni-pt-14{padding-top:28px}.uni-pt-n14{padding-top:-28px}.uni-pr-14{padding-right:28px}.uni-pr-n14{padding-right:-28px}.uni-pb-14{padding-bottom:28px}.uni-pb-n14{padding-bottom:-28px}.uni-pl-14{padding-left:28px}.uni-pl-n14{padding-left:-28px}.uni-px-14{padding-left:28px;padding-right:28px}.uni-px-n14{padding-left:-28px;padding-right:-28px}.uni-py-14{padding-top:28px;padding-bottom:28px}.uni-py-n14{padding-top:-28px;padding-bottom:-28px}.uni-pa-14{padding:28px}.uni-pa-n14{padding:-28px}.uni-pt-15{padding-top:30px}.uni-pt-n15{padding-top:-30px}.uni-pr-15{padding-right:30px}.uni-pr-n15{padding-right:-30px}.uni-pb-15{padding-bottom:30px}.uni-pb-n15{padding-bottom:-30px}.uni-pl-15{padding-left:30px}.uni-pl-n15{padding-left:-30px}.uni-px-15{padding-left:30px;padding-right:30px}.uni-px-n15{padding-left:-30px;padding-right:-30px}.uni-py-15{padding-top:30px;padding-bottom:30px}.uni-py-n15{padding-top:-30px;padding-bottom:-30px}.uni-pa-15{padding:30px}.uni-pa-n15{padding:-30px}.uni-pt-16{padding-top:32px}.uni-pt-n16{padding-top:-32px}.uni-pr-16{padding-right:32px}.uni-pr-n16{padding-right:-32px}.uni-pb-16{padding-bottom:32px}.uni-pb-n16{padding-bottom:-32px}.uni-pl-16{padding-left:32px}.uni-pl-n16{padding-left:-32px}.uni-px-16{padding-left:32px;padding-right:32px}.uni-px-n16{padding-left:-32px;padding-right:-32px}.uni-py-16{padding-top:32px;padding-bottom:32px}.uni-py-n16{padding-top:-32px;padding-bottom:-32px}.uni-pa-16{padding:32px}.uni-pa-n16{padding:-32px}.uni-radius-0{border-radius:0}.uni-radius{border-radius:5px}.uni-radius-lg{border-radius:10px}.uni-radius-xl{border-radius:30px}.uni-radius-pill{border-radius:9999px}.uni-radius-circle{border-radius:50%}.uni-radius-t-0{border-top-left-radius:0;border-top-right-radius:0}.uni-radius-t{border-top-left-radius:5px;border-top-right-radius:5px}.uni-radius-t-lg{border-top-left-radius:10px;border-top-right-radius:10px}.uni-radius-t-xl{border-top-left-radius:30px;border-top-right-radius:30px}.uni-radius-t-pill{border-top-left-radius:9999px;border-top-right-radius:9999px}.uni-radius-t-circle{border-top-left-radius:50%;border-top-right-radius:50%}.uni-radius-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.uni-radius-r{border-top-right-radius:5px;border-bottom-right-radius:5px}.uni-radius-r-lg{border-top-right-radius:10px;border-bottom-right-radius:10px}.uni-radius-r-xl{border-top-right-radius:30px;border-bottom-right-radius:30px}.uni-radius-r-pill{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.uni-radius-r-circle{border-top-right-radius:50%;border-bottom-right-radius:50%}.uni-radius-b-0{border-bottom-left-radius:0;border-bottom-right-radius:0}.uni-radius-b{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.uni-radius-b-lg{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.uni-radius-b-xl{border-bottom-left-radius:30px;border-bottom-right-radius:30px}.uni-radius-b-pill{border-bottom-left-radius:9999px;border-bottom-right-radius:9999px}.uni-radius-b-circle{border-bottom-left-radius:50%;border-bottom-right-radius:50%}.uni-radius-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.uni-radius-l{border-top-left-radius:5px;border-bottom-left-radius:5px}.uni-radius-l-lg{border-top-left-radius:10px;border-bottom-left-radius:10px}.uni-radius-l-xl{border-top-left-radius:30px;border-bottom-left-radius:30px}.uni-radius-l-pill{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.uni-radius-l-circle{border-top-left-radius:50%;border-bottom-left-radius:50%}.uni-radius-tl-0{border-top-left-radius:0}.uni-radius-tl{border-top-left-radius:5px}.uni-radius-tl-lg{border-top-left-radius:10px}.uni-radius-tl-xl{border-top-left-radius:30px}.uni-radius-tl-pill{border-top-left-radius:9999px}.uni-radius-tl-circle{border-top-left-radius:50%}.uni-radius-tr-0{border-top-right-radius:0}.uni-radius-tr{border-top-right-radius:5px}.uni-radius-tr-lg{border-top-right-radius:10px}.uni-radius-tr-xl{border-top-right-radius:30px}.uni-radius-tr-pill{border-top-right-radius:9999px}.uni-radius-tr-circle{border-top-right-radius:50%}.uni-radius-br-0{border-bottom-right-radius:0}.uni-radius-br{border-bottom-right-radius:5px}.uni-radius-br-lg{border-bottom-right-radius:10px}.uni-radius-br-xl{border-bottom-right-radius:30px}.uni-radius-br-pill{border-bottom-right-radius:9999px}.uni-radius-br-circle{border-bottom-right-radius:50%}.uni-radius-bl-0{border-bottom-left-radius:0}.uni-radius-bl{border-bottom-left-radius:5px}.uni-radius-bl-lg{border-bottom-left-radius:10px}.uni-radius-bl-xl{border-bottom-left-radius:30px}.uni-radius-bl-pill{border-bottom-left-radius:9999px}.uni-radius-bl-circle{border-bottom-left-radius:50%}.uni-h1{font-size:32px;font-weight:300;line-height:50px}.uni-h2{font-size:28px;font-weight:300;line-height:40px}.uni-h3{font-size:24px;font-weight:400;line-height:32px}.uni-h4{font-size:20px;font-weight:400;line-height:30px}.uni-h5{font-size:16px;font-weight:400;line-height:24px}.uni-h6{font-size:14px;font-weight:500;line-height:18px}.uni-subtitle{font-size:12px;font-weight:400;line-height:20px}.uni-body{font-size:14px;font-weight:400;line-height:22px}.uni-caption{font-size:12px;font-weight:400;line-height:20px}.uni-btn{margin:5px;color:#393939;border:1px solid #ccc;font-size:16px;font-weight:200;background-color:#f9f9f9;overflow:visible}.uni-btn:after{border:none}.uni-btn:not([type]),.uni-btn[type=default]{color:#999}.uni-btn:not([type])[loading],.uni-btn[type=default][loading]{background:none}.uni-btn:not([type])[loading]:before,.uni-btn[type=default][loading]:before{margin-right:5px}.uni-btn:not([type])[disabled],.uni-btn[type=default][disabled]{color:#d6d6d6}.uni-btn:not([type])[disabled],.uni-btn:not([type])[disabled][loading],.uni-btn:not([type])[disabled]:active,.uni-btn[type=default][disabled],.uni-btn[type=default][disabled][loading],.uni-btn[type=default][disabled]:active{color:#d6d6d6;background-color:#fafafa;border-color:#f0f0f0}.uni-btn:not([type])[plain],.uni-btn[type=default][plain]{color:#999;background:none;border-color:#f0f0f0}.uni-btn:not([type])[plain]:not([hover-class]):active,.uni-btn[type=default][plain]:not([hover-class]):active{background:none;color:#ccc;border-color:#e6e6e6;outline:none}.uni-btn:not([type])[plain][disabled],.uni-btn:not([type])[plain][disabled][loading],.uni-btn:not([type])[plain][disabled]:active,.uni-btn[type=default][plain][disabled],.uni-btn[type=default][plain][disabled][loading],.uni-btn[type=default][plain][disabled]:active{background:none;color:#d6d6d6;border-color:#f0f0f0}.uni-btn:not([hover-class]):active{color:gray}.uni-btn[size=mini]{font-size:16px;font-weight:200;border-radius:8px}.uni-btn.uni-btn-small{font-size:14px}.uni-btn.uni-btn-mini{font-size:12px}.uni-btn.uni-btn-radius{border-radius:999px}.uni-btn[type=primary]{color:#fff;background-color:#2979ff;border-color:#266feb}.uni-btn[type=primary]:not([hover-class]):active{background:#256de6;border-color:#2161cc;color:#fff;outline:none}.uni-btn[type=primary][loading]{color:#fff;background-color:#2979ff;border-color:#266feb}.uni-btn[type=primary][loading]:not([hover-class]):active{background:#256de6;border-color:#2161cc;color:#fff;outline:none}.uni-btn[type=primary][loading]:before{margin-right:5px}.uni-btn[type=primary][disabled],.uni-btn[type=primary][disabled][loading],.uni-btn[type=primary][disabled]:not([hover-class]):active{color:#fff;border-color:#80aefa;background-color:#94bcff}.uni-btn[type=primary][plain]{color:#2979ff;background-color:#eaf2ff;border-color:#bfd7ff}.uni-btn[type=primary][plain]:not([hover-class]):active{background:#d4e4ff;color:#2979ff;outline:none;border-color:#94bcff}.uni-btn[type=primary][plain][loading]{color:#2979ff;background-color:#eaf2ff;border-color:#bfd7ff}.uni-btn[type=primary][plain][loading]:not([hover-class]):active{background:#d4e4ff;color:#2979ff;outline:none;border-color:#94bcff}.uni-btn[type=primary][plain][loading]:before{margin-right:5px}.uni-btn[type=primary][plain][disabled],.uni-btn[type=primary][plain][disabled]:active{color:#7fafff;background-color:#eaf2ff;border-color:#d4e4ff}.uni-btn[type=success]{color:#fff;background-color:#18bc37;border-color:#16ad33}.uni-btn[type=success]:not([hover-class]):active{background:#16a932;border-color:#13962c;color:#fff;outline:none}.uni-btn[type=success][loading]{color:#fff;background-color:#18bc37;border-color:#16ad33}.uni-btn[type=success][loading]:not([hover-class]):active{background:#16a932;border-color:#13962c;color:#fff;outline:none}.uni-btn[type=success][loading]:before{margin-right:5px}.uni-btn[type=success][disabled],.uni-btn[type=success][disabled][loading],.uni-btn[type=success][disabled]:not([hover-class]):active{color:#fff;border-color:#89c795;background-color:#8cde9b}.uni-btn[type=success][plain]{color:#18bc37;background-color:#e8f8eb;border-color:#baebc3}.uni-btn[type=success][plain]:not([hover-class]):active{background:#d1f2d7;color:#18bc37;outline:none;border-color:#8cde9b}.uni-btn[type=success][plain][loading]{color:#18bc37;background-color:#e8f8eb;border-color:#baebc3}.uni-btn[type=success][plain][loading]:not([hover-class]):active{background:#d1f2d7;color:#18bc37;outline:none;border-color:#8cde9b}.uni-btn[type=success][plain][loading]:before{margin-right:5px}.uni-btn[type=success][plain][disabled],.uni-btn[type=success][plain][disabled]:active{color:#74d787;background-color:#e8f8eb;border-color:#d1f2d7}.uni-btn[type=error]{color:#fff;background-color:#e43d33;border-color:#d2382f}.uni-btn[type=error]:not([hover-class]):active{background:#cd372e;border-color:#b63129;color:#fff;outline:none}.uni-btn[type=error][loading]{color:#fff;background-color:#e43d33;border-color:#d2382f}.uni-btn[type=error][loading]:not([hover-class]):active{background:#cd372e;border-color:#b63129;color:#fff;outline:none}.uni-btn[type=error][loading]:before{margin-right:5px}.uni-btn[type=error][disabled],.uni-btn[type=error][disabled][loading],.uni-btn[type=error][disabled]:not([hover-class]):active{color:#fff;border-color:#e4928d;background-color:#f29e99}.uni-btn[type=error][plain]{color:#e43d33;background-color:#fceceb;border-color:#f7c5c2}.uni-btn[type=error][plain]:not([hover-class]):active{background:#fad8d6;color:#e43d33;outline:none;border-color:#f29e99}.uni-btn[type=error][plain][loading]{color:#e43d33;background-color:#fceceb;border-color:#f7c5c2}.uni-btn[type=error][plain][loading]:not([hover-class]):active{background:#fad8d6;color:#e43d33;outline:none;border-color:#f29e99}.uni-btn[type=error][plain][loading]:before{margin-right:5px}.uni-btn[type=error][plain][disabled],.uni-btn[type=error][plain][disabled]:active{color:#ef8b85;background-color:#fceceb;border-color:#fad8d6}.uni-btn[type=warning]{color:#fff;background-color:#f3a73f;border-color:#e09a3a}.uni-btn[type=warning]:not([hover-class]):active{background:#db9639;border-color:#c28632;color:#fff;outline:none}.uni-btn[type=warning][loading]{color:#fff;background-color:#f3a73f;border-color:#e09a3a}.uni-btn[type=warning][loading]:not([hover-class]):active{background:#db9639;border-color:#c28632;color:#fff;outline:none}.uni-btn[type=warning][loading]:before{margin-right:5px}.uni-btn[type=warning][disabled],.uni-btn[type=warning][disabled][loading],.uni-btn[type=warning][disabled]:not([hover-class]):active{color:#fff;border-color:#f8c887;background-color:#f9d39f}.uni-btn[type=warning][plain]{color:#f3a73f;background-color:#fef6ec;border-color:#fbe5c5}.uni-btn[type=warning][plain]:not([hover-class]):active{background:#fdedd9;color:#f3a73f;outline:none;border-color:#f9d39f}.uni-btn[type=warning][plain][loading]{color:#f3a73f;background-color:#fef6ec;border-color:#fbe5c5}.uni-btn[type=warning][plain][loading]:not([hover-class]):active{background:#fdedd9;color:#f3a73f;outline:none;border-color:#f9d39f}.uni-btn[type=warning][plain][loading]:before{margin-right:5px}.uni-btn[type=warning][plain][disabled],.uni-btn[type=warning][plain][disabled]:active{color:#f8ca8c;background-color:#fef6ec;border-color:#fdedd9}.uni-btn[type=info]{color:#fff;background-color:#8f939c;border-color:#848790}.uni-btn[type=info]:not([hover-class]):active{background:#81848c;border-color:#72767d;color:#fff;outline:none}.uni-btn[type=info][loading]{color:#fff;background-color:#8f939c;border-color:#848790}.uni-btn[type=info][loading]:not([hover-class]):active{background:#81848c;border-color:#72767d;color:#fff;outline:none}.uni-btn[type=info][loading]:before{margin-right:5px}.uni-btn[type=info][disabled],.uni-btn[type=info][disabled][loading],.uni-btn[type=info][disabled]:not([hover-class]):active{color:#fff;border-color:#babcc2;background-color:#c7c9ce}.uni-btn[type=info][plain]{color:#8f939c;background-color:#f4f4f5;border-color:#dddfe1}.uni-btn[type=info][plain]:not([hover-class]):active{background:#e9e9eb;color:#8f939c;outline:none;border-color:#c7c9ce}.uni-btn[type=info][plain][loading]{color:#8f939c;background-color:#f4f4f5;border-color:#dddfe1}.uni-btn[type=info][plain][loading]:not([hover-class]):active{background:#e9e9eb;color:#8f939c;outline:none;border-color:#c7c9ce}.uni-btn[type=info][plain][loading]:before{margin-right:5px}.uni-btn[type=info][plain][disabled],.uni-btn[type=info][plain][disabled]:active{color:#bcbec4;background-color:#f4f4f5;border-color:#e9e9eb}body{background-color:#efeff4;height:100%;font-size:.875rem}.fix-pc-padding{padding:0 50px}.uni-header-logo{padding:.9375rem;flex-direction:column;justify-content:center;align-items:center;margin-top:.3125rem}.uni-header-image{width:100px;height:100px}.uni-hello-text{color:#7a7e83}.uni-hello-addfile{text-align:center;line-height:9.375rem;background:#FFF;padding:1.5625rem;margin-top:10px;font-size:1.1875rem;color:gray} diff --git a/app/src/main/assets/apps/__UNI__3B4D40B/www/manifest.json b/app/src/main/assets/apps/__UNI__3B4D40B/www/manifest.json index d86c30b..731f8e5 100644 --- a/app/src/main/assets/apps/__UNI__3B4D40B/www/manifest.json +++ b/app/src/main/assets/apps/__UNI__3B4D40B/www/manifest.json @@ -1 +1 @@ -{"@platforms":["android","iPhone","iPad"],"id":"__UNI__3B4D40B","name":"checkoutPad_uni_app","version":{"name":"1.0.0","code":"100"},"description":"uni-app 框架示例,一套代码,同时发行到iOS、Android、H5、小程序等多个平台,请使用手机扫码快速体验 uni-app 的强大功能","developer":{"name":"","email":"","url":""},"permissions":{"OAuth":{},"Payment":{},"Push":{},"Share":{},"Speech":{},"VideoPlayer":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview","uniNView":{"path":"pages/tabBar/component/component.js"}},"usingComponents":true,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","compilerVersion":3,"uniStatistics":{"version":"2","enable":true},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#007AFF"},"allowsInlineMediaPlayback":true,"safearea":{"background":"#F8F8F8","bottom":{"offset":"auto"}},"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"3.99","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"fast","webView":{"minUserAgentVersion":"49.0"}},"tabBar":{"position":"bottom","color":"#7A7E83","selectedColor":"#007AFF","borderStyle":"rgba(0,0,0,0.4)","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#F8F8F8","list":[{"pagePath":"pages/tabBar/component/component","iconPath":"/static/component.png","selectedIconPath":"/static/componentHL.png","text":"内置组件"},{"pagePath":"pages/tabBar/API/API","iconPath":"/static/api.png","selectedIconPath":"/static/apiHL.png","text":"接口"},{"pagePath":"pages/tabBar/extUI/extUI","iconPath":"/static/extui.png","selectedIconPath":"/static/extuiHL.png","text":"扩展组件"},{"pagePath":"pages/tabBar/template/template","iconPath":"/static/template.png","selectedIconPath":"/static/templateHL.png","text":"模板"}],"selectedIndex":0,"shown":true,"child":["lauchwebview"],"selected":0}},"screenOrientation":["portrait-primary","portrait-secondary"]} \ No newline at end of file +{"@platforms":["android","iPhone","iPad"],"id":"__UNI__3B4D40B","name":"欧轩收银端","version":{"name":"1.0.0","code":"100"},"description":"","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"3.99","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}}},"launch_path":"__uniappview.html"} \ No newline at end of file diff --git a/uniapp_project_code/src/manifest.json b/uniapp_project_code/src/manifest.json index 6dd65f4..6325fc0 100644 --- a/uniapp_project_code/src/manifest.json +++ b/uniapp_project_code/src/manifest.json @@ -1,6 +1,6 @@ { "name" : "欧轩收银端", - "appid" : "", + "appid" : "__UNI__3B4D40B", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", diff --git a/uniapp_project_code/src/pages/login/index.vue b/uniapp_project_code/src/pages/login/index.vue index c44f0fd..6ed1269 100644 --- a/uniapp_project_code/src/pages/login/index.vue +++ b/uniapp_project_code/src/pages/login/index.vue @@ -13,7 +13,9 @@ > - *登录账号密码请从pc端后台管理【设备运营管理平板管理】里获取 + *登录账号密码请从pc端后台管理【设备运营管理平板管理】里获取 + *登录账号密码请从pc端后台管理【222222】里获取 + 登录 @@ -23,6 +25,14 @@