From f2643367f79a7136c9ddd92b68922112b5c06ef3 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 14 5月 2025 14:08:09 +0800 Subject: [PATCH] 增加pda --- PipeLineLems.PDA/mdImgs/1665970038354.jpg | 0 PipeLineLems.PDA/pages/sortingSearch/index.vue | 386 PipeLineLems.PDA/pages/tasks/module/List.vue | 192 PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/props.js | 34 PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/props.js | 8 PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/props.js | 49 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/button.js | 42 PipeLineLems.PDA/pages/PointHandling/index.vue | 421 PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/node/node.vue | 499 PipeLineLems.PDA/pages/containerUnBind/modules/selectItem.vue | 107 PipeLineLems.PDA/pages/sandingInstore/index.vue | 417 PipeLineLems.PDA/unpackage/res/icons/29x29.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noticeBar.js | 27 PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/u-transition.vue | 92 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config.js | 1 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/skeleton.js | 25 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs | 341 PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/props.js | 144 PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/props.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexAnchor.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/README.md | 66 PipeLineLems.PDA/uni_modules/uview-ui/libs/util/async-validator.js | 1343 + PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/notify.js | 22 PipeLineLems.PDA/uni_modules/uni-badge/changelog.md | 33 PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/u-album.vue | 259 PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/props.js | 5 PipeLineLems.PDA/unpackage/res/icons/20x20.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/props.js | 5 PipeLineLems.PDA/pages/unbind/index.vue | 311 PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/props.js | 39 PipeLineLems.PDA/pages/slicingOn/index.vue | 254 PipeLineLems.PDA/uni_modules/uview-ui/components/u--form/u--form.vue | 78 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/stepsItem.js | 18 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js | 103 PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/props.js | 48 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/u-slider.vue | 55 PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/u-divider.vue | 116 PipeLineLems.PDA/pages/plywoodOut/index.vue | 317 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/props.js | 41 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbar.js | 22 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gap.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/steps.js | 21 PipeLineLems.PDA/uni_modules/uni-icons/changelog.md | 22 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/platform.js | 75 PipeLineLems.PDA/pages/unstackingInstore/modules/edit.vue | 190 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/slider.js | 25 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappchooselocation.js | 1 PipeLineLems.PDA/config/modules/ajax -测试.js | 34 PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/u-list.vue | 157 PipeLineLems.PDA/pages/unstackingInstore/modules/main.vue | 295 PipeLineLems.PDA/pages/start/index.vue | 45 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_styles.scss | 167 PipeLineLems.PDA/api/api - 生产.js | 92 PipeLineLems.PDA/pages/materialStorage/modules/materialList.vue | 161 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/lineProgress.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils.js | 131 PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker.vue | 360 PipeLineLems.PDA/README_multiple_api.md | 480 PipeLineLems.PDA/uni.scss | 102 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item.vue | 142 PipeLineLems.PDA/pages/containerUnBind/modules/containerInfo.vue | 93 PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue | 127 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/scrollList.js | 20 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexList.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/datetimePicker.js | 36 PipeLineLems.PDA/static/img/logo - 副本.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/color.scss | 155 PipeLineLems.PDA/pages/temporaryInstore/modules/Step2.vue | 102 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_variables.scss | 146 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/sticky.js | 20 PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/u-collapse-item.vue | 225 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.css | 1 PipeLineLems.PDA/pages/checkStock/modules/MainList.vue | 239 PipeLineLems.PDA/pages/emptyInCopy/index.vue | 237 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/clipboard.min.js | 58 PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/u-navbar.vue | 186 PipeLineLems.PDA/uni_modules/uni-swipe-action/readme.md | 11 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/props.js | 5 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/list.js | 28 PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/props.js | 79 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/u-tag.vue | 358 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tooltip.js | 25 PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/u-circle-progress.vue | 198 PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/props.js | 45 PipeLineLems.PDA/components/DefaultHeaderPageLayout.vue | 81 PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uni-icons.vue | 96 PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/u-alert.vue | 243 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/link.js | 26 PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/props.js | 9 PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/props.js | 110 PipeLineLems.PDA/api/api - 测试.js | 93 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/circleProgress.js | 15 PipeLineLems.PDA/package.json | 19 PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/u-number-box.vue | 416 PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/u-line.vue | 62 PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/u-button.vue | 490 PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/props.js | 24 PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/props.js | 14 PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/u-code.vue | 129 PipeLineLems.PDA/uni_modules/uni-badge/components/uni-badge/uni-badge.vue | 268 PipeLineLems.PDA/unpackage/res/icons/58x58.png | 0 PipeLineLems.PDA/pages/pick/modules/materialList.vue | 136 PipeLineLems.PDA/App.vue | 85 PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/props.js | 94 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/uni_modules/uview-ui/components/u-icon/iconfont.ttf | 0 PipeLineLems.PDA/pages/unstackingInstore/modules/step2.vue | 107 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js | 3 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/style.js | 228 PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/u-textarea.vue | 239 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js | 12 PipeLineLems.PDA/pages/fapiaoOutStore/index.vue | 328 PipeLineLems.PDA/pages/bindWXJ/modules/materialList.vue | 153 PipeLineLems.PDA/pages/emptyContainerReturn/index.vue | 348 PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/props.js | 52 PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/util.js | 85 PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/u-icon.vue | 234 PipeLineLems.PDA/components/selectItem.vue | 107 PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue | 46 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/props.js | 35 PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/u-scroll-list.vue | 224 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapppicker.js | 1 PipeLineLems.PDA/pages/emptyOut/modules/selectItemWithSearch.vue | 115 PipeLineLems.PDA/pages/oneTouchUnBind/modules/materialList.vue | 165 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config-service.js | 8 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipterIndicator.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/badge.js | 27 PipeLineLems.PDA/components/ReadRfid.vue | 170 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rate.js | 26 PipeLineLems.PDA/pages/bindInForLocation/modules/materialList.vue | 161 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/props.js | 54 PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/u-overlay.vue | 68 PipeLineLems.PDA/pages/temporaryInstore/modules/Step1.vue | 198 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkbox.js | 27 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/parse.js | 22 PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/u-steps-item.vue | 316 PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/props.js | 54 PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/props.js | 24 PipeLineLems.PDA/components/RadioFormItem.vue | 205 PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/u-radio.vue | 339 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/color.js | 5 PipeLineLems.PDA/pages/setting/host.vue | 90 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js | 302 PipeLineLems.PDA/pages/login/index.vue | 263 PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/props.js | 55 PipeLineLems.PDA/pages/oneTouchUnBind/index.vue | 612 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/u-tabs.vue | 354 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpMixin.js | 8 PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/utils.js | 62 PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/other.js | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/carKeyboard.js | 15 PipeLineLems.PDA/mdImgs/1664329468868.jpg | 0 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-view.js | 1 PipeLineLems.PDA/pages/sortingSearch/modules/sortingInfo.vue | 165 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/overlay.js | 18 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/props.js | 44 PipeLineLems.PDA/api/PointHandling.js | 12 PipeLineLems.PDA/pages/bindContaniner/index.vue | 411 PipeLineLems.PDA/uni_modules/uni-scss/readme.md | 4 PipeLineLems.PDA/unpackage/res/icons/76x76.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/header.vue | 99 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/u-tabbar.vue | 141 PipeLineLems.PDA/pages/unstackingInstore/index.vue | 180 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/touch.js | 59 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpother.js | 113 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/props.js | 64 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/col.js | 19 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/regexValidate.js | 64 PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/props.js | 79 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/code.js | 21 PipeLineLems.PDA/pages/exceptionHandle/index.vue | 308 PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/props.js | 76 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/formItem.js | 23 PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/props.js | 65 PipeLineLems.PDA/components/UViewFormSelectPicker.vue | 213 PipeLineLems.PDA/pages/slicingOn/modules/barContent.vue | 179 PipeLineLems.PDA/api/api.js | 92 PipeLineLems.PDA/uni_modules/uni-icons/package.json | 86 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/manifest.json | 1 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue | 60 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/debounce.js | 29 PipeLineLems.PDA/pages/home/index.vue | 283 PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/props.js | 69 PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/u-keyboard.vue | 164 PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/u-steps.vue | 80 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappview.html | 25 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapperror.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/vue.ani-style.scss | 113 PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/month.vue | 579 PipeLineLems.PDA/uni_modules/uni-scss/changelog.md | 8 PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/u-subsection.vue | 299 PipeLineLems.PDA/uni_modules/uview-ui/package.json | 84 PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue | 278 PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/u-upload.vue | 558 PipeLineLems.PDA/main.js | 32 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/props.js | 5 PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/u-read-more.vue | 157 PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/props.js | 161 PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/u-modal.vue | 227 PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/props.js | 109 PipeLineLems.PDA/pages/replenishMent/index.vue | 392 PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/u-form-item.vue | 235 PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/props.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/props.js | 45 PipeLineLems.PDA/pages/print/bluetoothConnection.vue | 118 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_text.scss | 24 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/backtop.js | 27 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/digit.js | 167 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils/clone.js | 264 PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/u-code-input.vue | 252 PipeLineLems.PDA/uni_modules/uni-scss/theme.scss | 31 PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/u-number-keyboard.vue | 196 PipeLineLems.PDA/unpackage/res/icons/40x40.png | 0 PipeLineLems.PDA/__json_server_mock__/db.json | 155 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpShare.js | 13 PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue | 150 PipeLineLems.PDA/uni_modules/uview-ui/libs/util/emitter.js | 51 PipeLineLems.PDA/pages/tasks/index.vue | 120 PipeLineLems.PDA/pages/receiptExecution/index.vue | 313 PipeLineLems.PDA/pages/components/StationSelectFormItem.vue | 377 PipeLineLems.PDA/uni_modules/uni-scss/variables.scss | 62 PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/props.js | 19 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-service.js | 17 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue - backup.js | 270 PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue | 56 PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/props.js | 54 PipeLineLems.PDA/service/store/index.js | 16 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/text.js | 38 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/props.js | 9 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/defaults.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberKeyboard.js | 17 PipeLineLems.PDA/pages/manual/out.vue | 307 PipeLineLems.PDA/uni_modules/uni-icons/readme.md | 8 PipeLineLems.PDA/pages/emptyIn/index.vue | 237 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/props.js | 84 PipeLineLems.PDA/components/EasyPicker.vue | 109 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/components.scss | 15 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/album.js | 25 PipeLineLems.PDA/pages/containerHandle/modules/placeInfo.vue | 132 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js | 14 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.js | 42 PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/props.js | 89 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/config.js | 34 PipeLineLems.PDA/uni_modules/uview-ui/index.scss | 23 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeActionItem.js | 21 PipeLineLems.PDA/pages/materialStorage/modules/addMaterial.vue | 80 PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/props.js | 5 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/props.js | 59 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/icon.js | 36 PipeLineLems.PDA/pages/emptyInCopy/modules/materialInfo.vue | 87 PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue | 115 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/u-swipe-action.vue | 67 PipeLineLems.PDA/static/js/print/gbk.js | 185 PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/u-grid-item.vue | 209 PipeLineLems.PDA/api/receiptExecution.js | 23 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/flex.scss | 257 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/test.js | 288 PipeLineLems.PDA/pages/slicingOff/modules/main.vue | 470 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tag.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/u-input.vue | 352 PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/mixin.js | 21 PipeLineLems.PDA/components/EasyPickerWithSearch.vue | 163 PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/u-index-anchor.vue | 91 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.d.ts | 116 PipeLineLems.PDA/static/img/logo.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/u-count-to.vue | 184 PipeLineLems.PDA/unpackage/res/icons/60x60.png | 0 PipeLineLems.PDA/pages/endProductInstore/index.vue | 167 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabs.js | 32 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/nvue.scss | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/u-checkbox.vue | 344 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/u-swiper-indicator.vue | 110 PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.css | 663 PipeLineLems.PDA/components/AutoCompleteScanInputFormItem.vue | 367 PipeLineLems.PDA/config/modules/pagination.js | 4 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/readMore.js | 22 PipeLineLems.PDA/pages/slicingOff/modules/detail.vue | 85 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/index.js | 705 PipeLineLems.PDA/pages/bindWXJ/index.vue | 475 PipeLineLems.PDA/pages/tasks/module/Search.vue | 91 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/columnNotice.js | 24 PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/props.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/props.js | 54 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/common.scss | 97 PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/u-cell-group.vue | 61 PipeLineLems.PDA/manifest.json | 120 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cell.js | 35 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/codeInput.js | 29 PipeLineLems.PDA/pages/demo/index.vue | 57 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/colorGradient.js | 134 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/openType.js | 25 PipeLineLems.PDA/uni_modules/uview-ui/libs/util/route.js | 124 PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.ttf | 0 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_space.scss | 56 PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/props.js | 44 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index - backup.wxs | 256 PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/u-toolbar.vue | 102 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/vue.scss | 27 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/keyboard.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/props.js | 118 PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/u-row.vue | 93 PipeLineLems.PDA/uni_modules/uni-badge/package.json | 85 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapseItem.js | 25 PipeLineLems.PDA/uni_modules/uview-ui/index.js | 79 PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/u-avatar-group.vue | 103 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappopenlocation.js | 1 PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js | 68 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toast.js | 30 PipeLineLems.PDA/config/index.js | 60 PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/props.js | 59 PipeLineLems.PDA/api/bind.js | 105 PipeLineLems.PDA/config/modules/ajax.js | 32 PipeLineLems.PDA/pages/oneTouchUnBind/modules/containerInfo.vue | 93 PipeLineLems.PDA/static/fonts/iconfont.css | 171 PipeLineLems.PDA/unpackage/res/icons/80x80.png | 0 PipeLineLems.PDA/pages/print/bluePrint.js | 358 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swiper.js | 39 PipeLineLems.PDA/pages/emptyInCopy/modules/barContent.vue | 152 PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/u-search.vue | 303 PipeLineLems.PDA/uni_modules/uview-ui/components/u--textarea/u--textarea.vue | 48 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_border.scss | 3 PipeLineLems.PDA/service/util/RfidMethod.js | 315 PipeLineLems.PDA/uni_modules/uni-swipe-action/changelog.md | 43 PipeLineLems.PDA/pages/PointHandling/modules/placeInfo.vue | 132 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/calendar.js | 42 PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/u-parse.vue | 366 PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/u-sticky.vue | 212 PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/u-calendar.vue | 384 PipeLineLems.PDA/pages/bindContaniner/modules/materialList.vue | 136 PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue | 330 PipeLineLems.PDA/api/slicingOff.js | 12 PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/scrollWxs.wxs | 50 PipeLineLems.PDA/uni_modules/uview-ui/LICENSE | 21 PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/props.js | 84 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/divider.js | 23 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js | 20 PipeLineLems.PDA/api/common.js | 53 PipeLineLems.PDA/static/fonts/iconfont.ttf | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/props.js | 82 PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/u-td.vue | 31 PipeLineLems.PDA/api/replenishMent.js | 20 PipeLineLems.PDA/pages/components/LongWidthHeightFormItem.vue | 154 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappes6.js | 1 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/grid.js | 17 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/u-tr.vue | 31 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gridItem.js | 16 PipeLineLems.PDA/static/js/print/printerjobs.js | 587 PipeLineLems.PDA/pages/changeStore/index.vue | 325 PipeLineLems.PDA/pages/emptyIn/modules/barContent.vue | 152 PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/props.js | 78 PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/icons.js | 1169 PipeLineLems.PDA/unpackage/res/icons/1024x1024.png | 0 PipeLineLems.PDA/pages/PointHandling/modules/containerInfo.vue | 85 PipeLineLems.PDA/api/slicingOn.js | 36 PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/props.js | 61 PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/utils.js | 151 PipeLineLems.PDA/unpackage/res/icons/96x96.png | 0 PipeLineLems.PDA/components/ActionUserRow.vue | 31 PipeLineLems.PDA/pages/emptyOut/index.vue | 267 PipeLineLems.PDA/pages/sortingSearch/modules/contentCard.vue | 215 PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/props.js | 24 PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/props.js | 14 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mixin.scss | 8 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/u-tooltip.vue | 365 PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/props.js | 116 PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/props.js | 119 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js | 84 PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/props.js | 8 PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/props.js | 44 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/section.js | 24 PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/u-image.vue | 232 PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/props.js | 187 PipeLineLems.PDA/pages/innerTailBack/modules/Step1.vue | 204 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkboxGroup.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue.js | 193 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapse.js | 17 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.umd.min.js | 6 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue.js | 174 PipeLineLems.PDA/static/fonts/iconfont.woff2 | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/vue.scss | 80 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radioGroup.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/u-badge.vue | 171 PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/props.js | 85 PipeLineLems.PDA/uni_modules/uni-scss/package.json | 82 PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/props.js | 59 PipeLineLems.PDA/uni_modules/uview-ui/changelog.md | 357 PipeLineLems.PDA/uni_modules/uni-scss/styles/index.scss | 7 PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/props.js | 49 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue | 190 PipeLineLems.PDA/components/FullPageLayout.vue | 96 PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/props.js | 24 PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/props.js | 36 PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/transition.js | 157 PipeLineLems.PDA/unpackage/res/icons/180x180.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u--text/u--text.vue | 44 PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/iconfont.ttf | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/props.js | 84 PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/props.js | 59 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mp.scss | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/props.js | 64 PipeLineLems.PDA/pages/online/index.vue | 354 PipeLineLems.PDA/pages/checkStock/modules/MainSearch.vue | 79 PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/u-empty.vue | 128 PipeLineLems.PDA/service/mixins/mixins.js | 67 PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/props.js | 19 PipeLineLems.PDA/pages/receiptExecution/modules/barContent.vue | 195 PipeLineLems.PDA/service/request/index.js | 245 PipeLineLems.PDA/service/request/modules/beforeSend.js | 22 PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/u-rate.vue | 306 PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/u-col.vue | 162 PipeLineLems.PDA/pages/materialStorage/index.vue | 317 PipeLineLems.PDA/components/EasySelectFormItem.vue | 254 PipeLineLems.PDA/uni_modules/uview-ui/components/u--input/u--input.vue | 73 PipeLineLems.PDA/pages/fapaoInStore/index.vue | 310 PipeLineLems.PDA/unpackage/res/icons/152x152.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/u-no-network.vue | 220 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/navbar.js | 32 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/empty.js | 26 PipeLineLems.PDA/uni_modules/uview-ui/theme.scss | 44 PipeLineLems.PDA/pages/pick/index.vue | 414 PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/props.js | 34 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatar.js | 28 PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/u-popup.vue | 304 PipeLineLems.PDA/unpackage/res/icons/167x167.png | 0 PipeLineLems.PDA/api/callEmptyContainer.js | 14 PipeLineLems.PDA/pages/checkStock/modules/CheckAction.vue | 192 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rowNotice.js | 21 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/row.js | 17 PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/u-column-notice.vue | 160 PipeLineLems.PDA/api/sorting.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/u-car-keyboard.vue | 311 PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/u-count-down.vue | 163 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/image.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/props.js | 5 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/upload.js | 36 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/props.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/props.js | 5 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/button.js | 13 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquill.js | 8 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberBox.js | 35 PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/props.js | 19 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/index.js | 197 PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/u-list-item.vue | 116 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/line.js | 20 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/statusBar.js | 15 PipeLineLems.PDA/static/js/utils/modules/regexValidate.js | 64 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/subsection.js | 23 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props.js | 190 PipeLineLems.PDA/pages/innerTailBack/modules/Step2.vue | 102 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/Request.js | 198 PipeLineLems.PDA/uni_modules/uni-scss/styles/tools/functions.scss | 19 PipeLineLems.PDA/mdImgs/1664329790970.jpg | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cellGroup.js | 17 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingIcon.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js | 50 PipeLineLems.PDA/pages/slicingOff/index.vue | 194 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/textarea.js | 36 PipeLineLems.PDA/static/js/utils/index.js | 197 PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue | 127 PipeLineLems.PDA/service/store/modules/user.js | 147 PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mixin.js | 160 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.js | 3 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue - 副本.js | 180 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/alert.js | 22 PipeLineLems.PDA/pages/checkStock/modules/DetailList.vue | 345 PipeLineLems.PDA/pages/oneTouchUnBind/modules/placeInfo.vue | 132 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/gbk.js | 185 PipeLineLems.PDA/pages/exceptionHandle/modules/exceptionPlace.vue | 99 PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/props.js | 59 PipeLineLems.PDA/uni_modules/uview-ui/libs/css/h5.scss | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/function/throttle.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/modal.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/u-index-list.vue | 440 PipeLineLems.PDA/uni_modules/uview-ui/components/u--image/u--image.vue | 47 PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/u-radio-group.vue | 108 PipeLineLems.PDA/pages/plywoodBind/index.vue | 15 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff2 | 0 PipeLineLems.PDA/pages/endProductInstore/modules/main.vue | 342 PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/u-avatar.vue | 172 PipeLineLems.PDA/pages/plywoodInstore/modules/main.vue | 296 PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/u-picker.vue | 283 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js | 270 PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/props.js | 39 PipeLineLems.PDA/pages/checkStock/index.vue | 125 PipeLineLems.PDA/unpackage/res/icons/120x120.png | 0 PipeLineLems.PDA/service/store/modules/print.js | 26 PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.wxs | 121 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.css | 171 PipeLineLems.PDA/pages/writeRfid/index.vue | 364 PipeLineLems.PDA/unpackage/res/icons/87x87.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/switch.js | 24 PipeLineLems.PDA/components/.hbuilderx/launch.json | 16 PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/u-notify.vue | 211 PipeLineLems.PDA/api/exception.js | 30 PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/props.js | 33 PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/u-picker-column.vue | 27 PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/nvue.js | 28 PipeLineLems.PDA/pages/transport/index.vue | 411 PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/u-grid.vue | 97 PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/props.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/u-text.vue | 223 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappsuccess.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/u-gap.vue | 38 PipeLineLems.PDA/static/fonts/iconfont.woff | 0 PipeLineLems.PDA/unpackage/res/icons/144x144.png | 0 PipeLineLems.PDA/components/HeaderPageLayout.vue | 114 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countTo.js | 25 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js | 14 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.ttf | 0 PipeLineLems.PDA/pages/endProductInstore/modules/edit.vue | 128 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/adapters/index.js | 97 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue | 347 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_radius.scss | 55 PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/props.js | 14 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/wxs.js | 15 PipeLineLems.PDA/uni_modules/uview-ui/components/u-toast/u-toast.vue | 291 PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/u-link.vue | 83 PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/props.js | 49 PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue | 101 PipeLineLems.PDA/api/containerHandle.js | 64 PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/props.js | 84 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadmore.js | 32 PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/parser.js | 1075 PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/u-loading-icon.vue | 343 PipeLineLems.PDA/pages/PointHandling/modules/selectItem.vue | 115 PipeLineLems.PDA/pages/slicingOff/modules/step2.vue | 71 PipeLineLems.PDA/pages/notices/index.vue | 195 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/u-swiper.vue | 255 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js | 260 PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/props.js | 110 PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_color.scss | 66 PipeLineLems.PDA/uni_modules/uview-ui/libs/util/dayjs.js | 308 PipeLineLems.PDA/pages/containerUnBind/modules/placeInfo.vue | 132 PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/u-back-top.vue | 129 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/listItem.js | 15 PipeLineLems.PDA/components/selectItemWithSearchWc2.vue | 210 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/form.js | 22 PipeLineLems.PDA/pages/tasks/module/Detail.vue | 211 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/popup.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/props.js | 84 PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/u-switch.vue | 177 PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/props.js | 28 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/transition.js | 18 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingPage.js | 23 PipeLineLems.PDA/pages.json | 132 PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/icons.js | 214 PipeLineLems.PDA/components/ScanInputFormItem.vue | 206 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappscan.js | 1 PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group.vue | 103 PipeLineLems.PDA/api/emptyIn.js | 46 PipeLineLems.PDA/config/modules/ajax -生产.js | 32 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeAction.js | 15 PipeLineLems.PDA/pages/receiveIn/index.vue | 567 PipeLineLems.PDA/pages/loadingDelivery/modules/materialList.vue | 161 PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/props.js | 69 PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js | 195 PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/props.js | 59 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/printerjobs.js | 587 PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/u-collapse.vue | 90 PipeLineLems.PDA/pages/writeRfid/modules/materialList.vue | 153 PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/u-table.vue | 29 PipeLineLems.PDA/.gitignore | 6 PipeLineLems.PDA/static/js/utils/modules/color.js | 5 PipeLineLems.PDA/pages/temporaryInstore/index.vue | 159 PipeLineLems.PDA/pages/bind/modules/materialList.vue | 161 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/input.js | 48 PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/props.js | 40 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/actionSheet.js | 25 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js | 69 PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/props.js | 79 PipeLineLems.PDA/pages/containerHandle/index.vue | 436 PipeLineLems.PDA/pages/takeInStore/index.vue | 57 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/props.js | 125 PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/props.js | 124 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/zIndex.js | 20 PipeLineLems.PDA/unpackage/res/icons/192x192.png | 0 PipeLineLems.PDA/uni_modules/uni-badge/readme.md | 10 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countDown.js | 18 PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/props.js | 39 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/img/logo.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/u-form.vue | 214 PipeLineLems.PDA/pages/bindInForLocation/index.vue | 629 PipeLineLems.PDA/pages/plywoodInstore/index.vue | 183 PipeLineLems.PDA/index.html | 20 PipeLineLems.PDA/pages/loadingDelivery/index.vue | 320 PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/props.js | 24 PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/settle.js | 16 PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/nvue.scss | 46 PipeLineLems.PDA/uni_modules/uview-ui/libs/util/calendar.js | 546 PipeLineLems.PDA/unpackage/res/icons/72x72.png | 0 PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/value.js | 85 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatarGroup.js | 23 PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/props.js | 59 PipeLineLems.PDA/components/ScanEasyItem.vue | 8 PipeLineLems.PDA/pages/emptyIn/modules/materialInfo.vue | 87 PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/u-tabs-item.vue | 29 PipeLineLems.PDA/pages/containerHandle/modules/containerInfo.vue | 85 PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/u-index-item.vue | 87 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toolbar.js | 21 PipeLineLems.PDA/pages/bind/index.vue | 535 PipeLineLems.PDA/mdImgs/1664330296712.png | 0 PipeLineLems.PDA/pages/innerTailBack/index.vue | 148 PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index.wxs | 225 PipeLineLems.PDA/components/ScanInputFormItemWc2.vue | 210 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radio.js | 27 PipeLineLems.PDA/api/loadingDelivery.js | 38 PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/props.js | 19 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbarItem.js | 20 PipeLineLems.PDA/service/store/modules/system.js | 93 PipeLineLems.PDA/uni_modules/uni-swipe-action/package.json | 84 PipeLineLems.PDA/README.md | 519 PipeLineLems.PDA/pages/plywoodInstore/modules/edit.vue | 167 PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/u-cell.vue | 229 PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/props.js | 70 PipeLineLems.PDA/uni_modules/uview-ui/components/uview-ui/uview-ui.vue | 15 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquillimageresize.js | 1 PipeLineLems.PDA/uni_modules/uni-scss/index.scss | 1 PipeLineLems.PDA/components/PageHeader.vue | 78 PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/u-line-progress.vue | 144 PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff | 0 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/picker.js | 29 PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/props.js | 34 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noNetwork.js | 18 PipeLineLems.PDA/pages/exceptionHandle/modules/materialInfo.vue | 167 PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/u-skeleton.vue | 244 PipeLineLems.PDA/pages/inAndOutBound/index.vue | 34 PipeLineLems.PDA/pages/containerHandle/modules/selectItem.vue | 107 PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/props.js | 72 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/color.js | 17 PipeLineLems.PDA/pages/containerUnBind/index.vue | 316 PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/search.js | 37 630 files changed, 75,655 insertions(+), 0 deletions(-) diff --git a/PipeLineLems.PDA/.gitignore b/PipeLineLems.PDA/.gitignore new file mode 100644 index 0000000..392ba7a --- /dev/null +++ b/PipeLineLems.PDA/.gitignore @@ -0,0 +1,6 @@ +node_modules/ +unpackage/release/apk/ +unpackage/dist/dev/ +unpackage/cache/ +unpackage/dist/build/ +package-lock.json \ No newline at end of file diff --git a/PipeLineLems.PDA/App.vue b/PipeLineLems.PDA/App.vue new file mode 100644 index 0000000..322a8c7 --- /dev/null +++ b/PipeLineLems.PDA/App.vue @@ -0,0 +1,85 @@ +<script> +export default { + onLaunch: function() { + uni.getSystemInfo({ + success:(res=>{ + if (!res.safeAreaInsets) res.safeAreaInsets = {} + if (!res.safeAreaInsets) res.safeArea = {} + let safetySize = { + top:(res.safeAreaInsets.top || 0), + bottom:(res.safeAreaInsets.bottom || 0), + left:(res.safeAreaInsets.left || 0), + right:(res.safeAreaInsets.right || 0) + } + safetySize.height = res.safeArea.height || 0 + this.$store.commit('system/setSafety',safetySize) + }) + }) + /* 鑾峰彇骞惰褰曠増鏈彿 */ + try{ + plus.runtime.getProperty(plus.runtime.appid, (res)=>{ + this.$store.commit('system/setVersion',res.version) + }); + }catch(e){ + //TODO handle the exception + } + }, + onShow: function() { + console.log('App Show') + }, + onHide: function() { + console.log('App Hide') + } +} +</script> + +<style lang="scss"> +@import "@/static/fonts/iconfont.css"; +@import "@/uni_modules/uview-ui/index.scss"; +.app-page { + font-size: 28rpx; + color: $uni-text-color; + background-color: $uni-bg-color; + box-sizing: border-box; + overflow: hidden; +} +.auto-wrap{ + word-break:break-all; + word-wrap:break-word; +} +.no-wrap,.ellipsis{ + white-space:nowrap; +} +.ellipsis{ + overflow:hidden; + text-overflow:ellipsis; +} +.ml{ + margin-left: 12rpx; +} +.mr{ + margin-right: 12rpx; +} +.no-more-text-row{ + text-align: center; + color: $uni-text-color-grey; + padding: 4rpx 0; +} +.page-frame{ + position: relative; + box-sizing: border-box; + &.with-action-user-row{ + padding-top: 54rpx;; + } + .with-action-user-row-page-content{ + height: 100%; + position: relative; + box-sizing: border-box; + overflow: auto; + } +} +.link-text,.enable-input{ + color: $u-primary; + text-decoration: underline; +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/README.md b/PipeLineLems.PDA/README.md new file mode 100644 index 0000000..137b533 --- /dev/null +++ b/PipeLineLems.PDA/README.md @@ -0,0 +1,519 @@ +> ***<span style="color:#00008B;">濡傛灉鏈夋柊澧炰慨鏀圭殑閫氱敤鍐呭锛岃鍦ㄦ湰鏂囦欢涓婃洿鏂颁娇鐢ㄦ柟娉曪紝骞舵敞鏄庢洿鏂颁汉銆佹洿鏂版椂闂�</span>*** +> ***<span style="color:#00008B;">鍒涘缓浜猴細鏁扮�� 楂樼骇鍓嶇 閮佹娆紝鍒涘缓鏃堕棿锛�2022骞�11鏈�11鏃�</span>*** + +> ***<span style="color:#00008B;">鏇存柊1锛�</span>*** +> ***<span style="color:#00008B;">鏇存柊浜猴細鏁扮�� 楂樼骇鍓嶇 閮佹娆�</span>*** +> ***<span style="color:#00008B;">鏇存柊鏃堕棿锛�2022骞�11鏈�25鏃�</span>*** +> ***<span style="color:#00008B;">鏇存柊鍐呭锛歛jax璋冪敤锛岀涓夊弬鏁板鍔爁ullRes璁剧疆</span>*** + +> ***<span style="color:#00008B;">鏇存柊2锛�</span>*** +> ***<span style="color:#00008B;">鏇存柊浜猴細鏁扮�� 楂樼骇鍓嶇 閮佹娆�</span>*** +> ***<span style="color:#00008B;">鏇存柊鏃堕棿锛�2022骞�11鏈�30鏃�</span>*** +> ***<span style="color:#00008B;">鏇存柊鍐呭锛�</span>*** +>> ***<span style="color:#00008B;">config閰嶇疆澧炲姞downUrl</span>*** +>> ***<span style="color:#00008B;">utils澧炲姞parseDic鏂规硶銆乨ownloadApk鏂规硶</span>*** +>> ***<span style="color:#00008B;">澧炲姞 ActionUserRow 缁勪欢</span>*** +>> ***<span style="color:#00008B;">澧炲姞 ScanInputFormItem 缁勪欢</span>*** +>> ***<span style="color:#00008B;">澧炲姞 EasySelectFormItem 缁勪欢</span>*** + +---- + +## 浣跨敤鐏嫄娴忚鍣‵ireFox闃呰鏈枃浠� +> 鐏嫄娴忚鍣ㄥ畨瑁匨arkdown Viewer鎵╁睍缁勪欢锛屽畨瑁呬箣鍚庡湪娴忚鍣ㄧ殑鍦板潃鏍忚緭鍏ユ湰鏂囦欢鐨勫湴鍧�锛堝彲浠ユ槸鏈湴鐨勬枃浠跺湴鍧�锛屽D:\README.md锛夛紝鍥炶溅纭鍗冲彲銆� +---- + +## 浣跨敤鎶�鏈⒊鐞� +### 涓�銆乽ni-app锛岃祫鏂欑綉绔欙細<a href="https://uniapp.dcloud.net.cn/" target="_blank">https://uniapp.dcloud.net.cn/</a> +### 浜屻�乂UE2锛岃祫鏂欑綉绔欙細<a href="https://v2.cn.vuejs.org/" target="_blank">https://v2.cn.vuejs.org/</a> +### 涓夈�乿uex锛宻tore鍏ㄥ眬鏁版嵁锛岃祫鏂欑綉绔欙細<a href="https://v3.vuex.vuejs.org/zh/" target="_blank">https://v3.vuex.vuejs.org/zh/</a> +### 鍥涖�乽view锛寀i搴擄紝璧勬枡缃戠珯锛�<a href="https://www.uviewui.com/components/intro.html" target="_blank">https://www.uviewui.com/components/intro.html</a> +### 浜斻�丏Cloud<a href="https://ext.dcloud.net.cn/" target="_blank">鎻掍欢甯傚満</a>锛屽叾涓殑缁濆ぇ澶氭暟鎻掍欢鍙互浣跨敤HbuilderX鐩存帴瀵煎叆鍒伴」鐩腑 +> HbuilderX浼氬皢鎻掍欢瀵煎叆鍒伴」鐩殑uni_modules鏂囦欢澶逛笅 +> HbuilderX鎻掍欢瀵煎叆渚濊禆uniModules鏍稿績鎻掍欢锛岃鍏堝畨瑁咃紱鑻ュ鍏ュけ璐ワ紝寰堟湁鍙兘鏄痷niModules鐨勭増鏈棶棰橈紝璇峰嵏杞藉悗鍐嶆瀹夎鍚庡啀瀵煎叆銆� +> 浣跨敤HbuilderX瀵煎叆鎻掍欢锛岃娉ㄦ剰鎻掍欢鐨勫钩鍙版敮鎸佷互鍙妚ue璇█鐗堟湰 +---- + +## 寮�鍙戜互鍙婄紪璇戠殑宸ュ叿鍜岀幆澧� +### 涓�銆佸紑鍙戝伐鍏稨builderX锛屽畼缃戯細<a href="https://www.dcloud.io/hbuilderx.html" target="_blank">https://www.dcloud.io/hbuilderx.html</a>锛屽畨瑁呬箣鍚庢敞鎰忔妸涓�浜涘父鐢ㄦ彃浠朵篃瀹夎浜嗐�傚浣曞畨瑁呮彃浠讹紝瀹樼綉鏈変粙缁嶃�� +### 浜屻�乶odejs +#### 1銆佷笅杞藉湴鍧�锛�<a href="https://nodejs.org/zh-cn/" target="_blank">https://nodejs.org/zh-cn/</a> +#### 2銆佸畨瑁呬箣鍚庣殑閰嶇疆 +> 鍦╪odejs鐨勫畨瑁呮牴鐩綍涓嬫柊寤�2涓枃浠跺すnode_global鍜宯ode_cache锛岀劧鍚庝互绠$悊鍛樿韩浠芥墦寮�鍛戒护琛岀獥鍙o紙cmd锛夎緭鍏ュ涓嬩唬鐮�: +~~~ +npm config set prefix "node_global鏂囦欢澶瑰湴鍧�" +npm config set cache "node_cache鏂囦欢澶瑰湴鍧�" +~~~ +> 鐜鍙橀噺璁剧疆锛堝浣曟墦寮�璁$畻鏈虹殑鐜鍙橀噺绐楀彛锛岃繖閲屼笉浣滈槓杩帮紝涓嶇煡閬撶殑鍘婚棶搴﹀锛夛細 +>> NODE_PATH 鐢ㄦ埛鍙橀噺锛屽�间负锛歯odejs鏍圭洰褰昞node_modules +>> Path 绯荤粺鍙橀噺锛屾柊澧�2涓睘鎬э細 +>>> nodejs鏍圭洰褰昞 +>>> nodejs鏍圭洰褰昞node_global + +> cnpm闀滃儚閰嶇疆锛岃緭鍏ュ涓嬪懡浠わ細 +~~~ +npm install -g cnpm --registry=https://registry.npm.taobao.org +~~~ +---- + +## 椤圭洰杩愯鍙婃墦鍖� +### 棣栨瀹夎 +> 鍦ㄩ」鐩殑鏍圭洰褰曪紝杈撳叆鍛戒护 +~~~ +npm install 鎴栬�� cnpm install +~~~ +### 娴忚鍣ㄨ繍琛� +> HbuilderX鎵撳紑椤圭洰锛岃彍鍗曟爮 杩愯 > 杩愯鍒版祻瑙堝櫒 > 閫夋嫨娴忚鍣� +> 娴忚鍣ㄦ墦寮� 寮�鍙戣�呭伐鍏� 锛屽皢鏄剧ず妯″紡鏀逛负 绉诲姩璁惧 妯″紡 +### 鐪熸満锛堟墜鏈烘垨鑰卲da锛夎皟寮� +> 1銆佷娇鐢ㄦ暟鎹嚎杩炴帴 寮�鍙戠數鑴� 鍜� 鐪熸満 +> 2銆佺湡鏈虹殑usb璋冭瘯鏉冮檺璁剧疆鎵撳紑 +> 3銆佺‘淇� 寮�鍙戠數鑴� 鍜� 鐪熸満 澶勪簬鍚屼竴缃戠粶 +> 4銆丠builderX鎵撳紑椤圭洰锛岃彍鍗曟爮 杩愯 > 杩愯鍒版墜鏈烘垨妯℃嫙鍣� > 閫夋嫨璋冭瘯鐪熸満 +>> 娉ㄦ剰锛岄娆¤繍琛岀殑鏃跺�欙紝HbuilderX浼氱粰鐪熸満瀹夎璋冭瘯app锛岄渶瑕佸湪瀹夎瀹屾垚鍚庡啀娆¤繍琛� +### 浜戞墦鍖� +> 1銆丠builderX鍒涘缓璐﹀彿骞剁櫥褰� +> 2銆佸鏋滀綘鐨凥builderX鏄娆″椤圭洰杩涜鎵撳寘锛岄渶瑕佽幏鍙栦笅AppId锛屽湪manifest.json鐨勫熀纭�璁剧疆涓� +<img src="./mdImgs/1664329468868.jpg" style="width:100%" /> +> 3銆佸簲鐢ㄥ浘鏍囷細鍑嗗涓�寮犲浘鐗囷紝鏈�濂芥槸1024*1024鍍忕礌鐨勶紝鍦╩anifest.json鐨凙pp鍥炬爣璁剧疆涓繘琛岄厤缃�� +<img src="./mdImgs/1664329790970.jpg" style="width:100%" /> +> 4銆佽嚜鍔ㄧ敓鎴愬畨瑁卆pk锛氳彍鍗曟爮->鍙戣->鍘熺敓App浜戞墦鍖呫�備簯鎵撳寘闇�瑕佺瓑寰呬竴娈垫椂闂淬�� +<img src="./mdImgs/1664330296712.png" style="width:100%" /> +> 5銆佹墦鍖呭畬鎴愶紝apk鍦� unpackage\release\apk 璺緞涓嬭嚜鍔ㄧ敓鎴� +----- + +## 椤圭洰鐩綍缁撴瀯 +> components 鑷紑鍙戠殑閫氱敤缁勪欢 + +> config 椤圭洰鍙傛暟閰嶇疆 + +> node_modules 瀹夎鐨勭涓夋柟浠g爜鎴栫粍浠� + +> pages 寮�鍙戦〉闈㈢殑浠g爜 + +> service 灏佽鐨勬湇鍔′唬鐮� +>> request 鎺ュ彛璋冪敤灏佽 +>> store vuex鍏ㄥ眬鏁版嵁灏佽 + +> static 闈欐�佽祫婧� +>> fonts 瀛椾綋鏍峰紡搴� +>> img 鏈湴鍥剧墖璧勬簮 +>> js js璧勬簮 +>>> print 钃濈墮鎵撳嵃 +>>> utils 鍏敤js浠g爜 + +> uni_modules HbuilderX瀵煎叆鐨勭涓夋柟浠g爜鎴栫粍浠� + +> unpackage HbuilderX鎵撳寘鑷姩鐢熸垚鐨勬枃浠跺す銆侶builderX鑷姩鐢熸垚鐨勫簲鐢ㄥ浘鐗囦篃鏄淇濆瓨鍦ㄨ繖閲岀殑銆� +---- + +## 鎺ュ彛璋冪敤 +### 1銆佷唬鐮佸皝瑁呭湪 \service\request +### 2銆佷娇鐢� +> 宸茬粡鍦╩ain.js涓叏灞�寮曞叆 +~~~ +this.$api +~~~ +### 3銆佸彲浠ヨ皟鐢ㄧ殑鏂规硶 +#### get銆乨eletet銆乸ost銆乸ut锛岃繑鍥炰竴涓狿romise锛屽弬鏁帮細 +> 绗竴涓弬鏁帮紝string锛屽悗绔殑鏂规硶鍚嶏紝蹇呬紶 + +> 绗簩涓弬鏁帮紝json object锛屾帴鍙d紶鍙傦紝娌℃湁鍚庣画鍙傛暟鐨勬椂鍊欙紝鍙笉浼� + +> 绗笁涓弬鏁帮紝string 鎴栬�� json object锛屾帴鍙h皟鐢ㄩ厤缃缃紝娌℃湁鍚庣画鍙傛暟鐨勬椂鍊欙紝鍙笉浼� +>> string鏃讹紝鍗砵son object缁撴瀯鐨刡lock鍊� +>> json object鏃剁殑缁撴瀯 +>>> warn: boolean锛屽嚭閿欐椂鏄惁鎻愮ず閿欒淇℃伅锛屽彲涓嶈缃紝榛樿true +>>> host锛歴tring锛屾帴鍙e湴鍧�鐨勫煙鍚嶅悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刪ost锛屽彲涓嶈缃紝榛樿default +>>> block锛歴tring锛屾帴鍙e湴鍧�鐨勬ā鍧楀悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刡lock锛屽彲涓嶈缃紝榛樿default +>>> needToken: boolean锛宧eaders鏄惁浼犲叆token锛屽彲涓嶈缃紝榛樿true +>>> loading: boolean锛屾帴鍙h皟鐢ㄨ繃绋嬩腑鏄惁寮�鍚叏灞弆oading锛屽彲涓嶈缃紝榛樿true +>>> fullRes: boolean锛屾帴鍙h繑鍥炴槸鍚﹀皢鍚庣鐨勬暣涓粨鏋勪綋杩斿洖锛屽彲涓嶈缃紝榛樿false锛堝彧杩斿洖缁撴瀯浣撶殑data锛夛紙鏇存柊1锛� +#### post銆乸ut锛屽弬鏁帮細 +> 绗洓涓弬鏁帮紝json object锛宲ost鍜宲ut浠et浼犲弬鏂瑰紡浼犻�掔殑鍙傛暟锛屽彲涓嶄紶 +#### base锛岃繑鍥炰竴涓狿romise锛屽弬鏁帮細 +> 绗竴涓弬鏁帮紝string锛実et銆乨eletet銆乸ost銆乸ut涓殑涓�涓紝蹇呬紶 +> 鍚庣画鍙傛暟锛屾部鐢� get銆乨eletet銆乸ost銆乸ut 鍚勮嚜鐨勬柟娉� +#### getHeaders锛岃幏鍙栭」鐩腑鐨刪eaders閰嶇疆锛屽弬鏁� +> 绗竴涓弬鏁帮紝json object锛屽彲涓嶄紶锛岀粨鏋勫涓� +>> needToken: boolean锛宧eaders鏄惁浼犲叆token锛屽彲涓嶈缃紝榛樿true + +> 绗簩涓弬鏁帮紝json object锛屽師鏈夌殑headers锛屽彲涓嶄紶 + +> 杩斿洖涓�涓猨son object锛岀粨鏋勫涓� +>> flag: boolean锛岃缃甴eaders鏄惁閫氳繃 +>> headers: json object锛岄」鐩厤缃悗鐨刪eaders +#### getUrl锛岃繑鍥瀞tring锛屼竴涓畬鏁寸殑url锛屽弬鏁帮細 +> 绗竴涓弬鏁帮紝string锛屽悗绔殑鏂规硶鍚嶏紝蹇呬紶 + +> 绗簩涓弬鏁帮紝string 鎴栬�� json object锛屾帴鍙h皟鐢ㄩ厤缃缃紝娌℃湁鍚庣画鍙傛暟鐨勬椂鍊欙紝鍙笉浼� +>> string鏃讹紝鍗砵son object缁撴瀯鐨刡lock鍊� +>> json object鏃剁殑缁撴瀯 +>>> host锛歴tring锛屾帴鍙e湴鍧�鐨勫煙鍚嶅悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刪ost锛屽彲涓嶈缃紝榛樿default +>>> block锛歴tring锛屾帴鍙e湴鍧�鐨勬ā鍧楀悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刡lock锛屽彲涓嶈缃紝榛樿default +---- + +## config鐩稿叧 +### 閰嶇疆璇存槑 +> ajax锛屾帴鍙h皟鐢ㄧ浉鍏抽厤缃� + +>> errMsg锛宻tring锛屾帴鍙h皟鐢ㄥ嚭閿欏悗鐨勯粯璁ゆ彁绀轰俊鎭� + +>> host锛宩son object锛屾帴鍙h皟鐢ㄥ煙鍚嶉厤缃� + +>>> default锛宻tring锛岄粯璁ゅ煙鍚� + +>> block锛宩son object锛屾帴鍙h皟鐢ㄦā鍧楅厤缃� + +>>> default锛宻tring锛岄粯璁ゆā鍧� + +> pagination锛宩son object锛屽垎椤电浉鍏� + +> path锛宩son object锛岄〉闈㈣矾寰勶紝鍏宠仈pages.json锛岄〉闈㈣烦杞殑鏃跺�欎娇鐢ㄦ澶勭殑閰嶇疆锛屼究浜庣淮鎶� + +> downUrl锛宻tring锛岀増鏈洿鏂颁笅杞藉湴鍧�閰嶇疆锛堟洿鏂�2锛� + +### 寮�鍙戜娇鐢� +> 宸茬粡鍦╩ain.js涓叏灞�寮曞叆 +~~~ +this.$config +~~~ +----- + +## utils鐩稿叧 +### 浣跨敤鑼冧緥 +~~~ +import { $alert } from '@/static/js/utils' +~~~ + +### utils璇存槑 +> $successInfo锛孎unction绫诲瀷锛屾垚鍔熶俊鎭彁绀猴紝鍙傛暟锛� +>> 绗竴涓弬鏁帮紝 string锛� 鎴愬姛鎻愮ず淇℃伅锛� 蹇呬紶锛屾枃瀛楀敖閲忕簿绠�锛屽洜涓哄彧鏀寔鍗曡鏄剧ず + +> $alert锛孎unction绫诲瀷锛屽脊鍑轰竴涓俊鎭彁绀虹獥鍙o紝鍙傛暟锛� +>> 绗竴涓弬鏁帮紝 string锛� 鎻愮ず淇℃伅锛� 蹇呬紶 +>> 绗簩涓弬鏁帮紝 string锛� 寮圭獥鏍囬锛屽彲涓嶄紶锛岄粯璁も�滅郴缁熸彁绀衡�� +>> 绗笁涓弬鏁帮紝 Function锛� 鐐瑰嚮纭鐨勫洖璋冩柟娉曪紝 鍙笉浼� + +> color锛宩son瀵硅薄绫诲瀷锛岄鑹插鐞嗙浉鍏� + +>> getRandomHexColor锛孎unction绫诲瀷锛岃繑鍥炰竴涓�16杩涘埗鐨勯鑹插�� + +> regexValidate锛宩son瀵硅薄绫诲瀷锛屾鍒欐牎楠� + +> uuid锛孎unction绫诲瀷锛屽垱寤轰竴涓殢鏈虹爜锛屽弬鏁帮細 +>> 绗竴涓弬鏁帮紝 number锛� 闅忔満鐮侀暱搴︼紝 榛樿6 +>> 绗簩涓弬鏁帮紝 number锛� 闅忔満鐮佺粍鍚堟柟寮忥紝榛樿0锛� +>>> 0锛氬ぇ灏忓啓瀛楁瘝+鏁板瓧 +>>> 1锛氬皬鍐欏瓧姣�+鏁板瓧 +>>> 2锛氱函鏁板瓧 +>>> 3锛氬ぇ灏忓啓瀛楁瘝 +>>> 4锛氬皬鍐欏瓧姣� + +> parseDic锛孎unction绫诲瀷锛岃В鏋愭暟鎹瓧鍏革紙鏇存柊2锛夛細 +>> 绗竴涓弬鏁帮紝 Object锛� vuex鐨剆tore瀵硅薄锛� 鍦╲ue鏂囦欢涓负this.$store +>> 绗簩涓弬鏁帮紝 string锛� 瀛楀吀闆嗗悎鐮� +>> 绗笁涓弬鏁帮紝 string/number锛� 瀛楀吀鍊� +>> 杩斿洖锛� string锛� 瀛楀吀鍊煎搴斿悕绉� + +> downloadApk锛孎unction绫诲瀷锛屾柊鐗堟湰涓嬭浇鐨勬柟娉曪紙鏇存柊2锛夛細 +>> 绗竴涓弬鏁帮紝 Object锛� config瀵硅薄锛� 鍦╲ue鏂囦欢涓负this.$config +----- + +## 鎴戜滑鑷繁寮�鍙戠殑缁勪欢璇存槑 +### 涓�銆丳ageHeader缁勪欢锛岃繖涓槸HeaderPageLayout缁勪欢鐨勫唴缃粍浠讹紝涓嶅仛璇︾粏璇存槑 +### 浜屻�丗ullPageLayout缁勪欢锛岄〉闈㈠灞傜粍浠讹紝閫氬父浣跨敤鍦ㄩ〉闈㈢殑鏈�澶栧眰 +#### 缁勪欢灞炴�э細 +> gradient锛宐oolean锛屽簳鑹叉笎鍙橈紝鍗虫槸鍚﹁缃甤ss鐨刡ackground-image灞炴�э紝榛樿false + +> gradient-value锛宻tring锛屽簳鑹叉笎鍙樺�硷紝鍗砪ss鐨刡ackground-image灞炴�х殑鍊硷紝榛樿涓嶈缃紝閲囩敤榛樿娓愬彉鑹� + +> background-color锛宻tring锛屽簳鑹诧紝鍦╣radient涓篺alse鐨勬椂鍊欐墠鐢熸晥锛岄粯璁や笉璁剧疆锛屽嵆閫忔槑 + +> safety锛宐oolean锛屽畨鍏ㄥ尯锛岄〉闈㈠唴瀹规樉绀虹殑鏃跺�欙紝鏄惁灏嗗畨鍏ㄥ尯鎺掗櫎锛岄粯璁rue锛屽嵆鎺掗櫎瀹夊叏鍖� + +> full锛宐oolean锛屾槸鍚︽暣灞忥紝榛樿true锛屽鏋滅粍浠朵笉鏄敤鍦ㄩ〉闈㈢殑鏈�澶栧眰锛屽簲璇ヨ缃负false锛岃繖鏃跺�欑粍浠剁殑瀹介珮涓虹埗瀹瑰櫒鐨�100% + +> base-background-color锛宻tring锛屽熀纭�搴曡壊锛岄〉闈㈠簳鑹插灞傜殑棰滆壊锛屽綋鏈夊畨鍏ㄥ尯鐨勬椂鍊欙紝瀹夊叏鍖虹殑棰滆壊涓烘棰滆壊銆傞粯璁や笉璁剧疆锛屽嵆閫忔槑锛岃繖鏃跺�欐樉绀虹殑棰滆壊浼氭槸uni-app涓缃殑棰滆壊 +#### 缁勪欢鎻掓Ы锛� +> default锛岄粯璁ゆ彃妲斤紝椤甸潰body鍐呭 +### 涓夈�丠eaderPageLayout缁勪欢锛屽甫鏈夊ご閮ㄥ竷灞�鐨勯〉闈㈠灞傜粍浠讹紝閫氬父浣跨敤鍦ㄩ〉闈㈢殑鏈�澶栧眰 +#### 缁勪欢灞炴�э細 +> gradient锛宐oolean锛岄〉闈ody閮ㄥ垎搴曡壊娓愬彉锛屽嵆鏄惁璁剧疆css鐨刡ackground-image灞炴�э紝榛樿false + +> gradient-value锛宻tring锛岄〉闈ody閮ㄥ垎搴曡壊娓愬彉鍊硷紝鍗砪ss鐨刡ackground-image灞炴�х殑鍊硷紝榛樿涓嶈缃紝閲囩敤榛樿娓愬彉鑹� + +> background-color锛宻tring锛岄〉闈ody閮ㄥ垎搴曡壊锛屽湪gradient涓篺alse鐨勬椂鍊欐墠鐢熸晥锛岄粯璁や笉璁剧疆锛屽嵆閫忔槑 + +> base-background-color锛宻tring锛屽熀纭�搴曡壊锛岄〉闈㈠簳鑹插灞傜殑棰滆壊锛屽綋鏈夊畨鍏ㄥ尯鐨勬椂鍊欙紝瀹夊叏鍖虹殑棰滆壊涓烘棰滆壊銆傚綋涓嶈缃ご閮ㄥ簳鑹茬殑鏃跺�欙紝澶撮儴鐨勫簳鑹蹭篃涓烘棰滆壊銆傞粯璁や笉璁剧疆锛屽嵆閫忔槑锛岃繖鏃跺�欐樉绀虹殑棰滆壊浼氭槸uni-app涓缃殑棰滆壊 + +> safety锛宐oolean锛屽畨鍏ㄥ尯锛岄〉闈㈠唴瀹规樉绀虹殑鏃跺�欙紝鏄惁灏嗗畨鍏ㄥ尯鎺掗櫎锛岄粯璁rue锛屽嵆鎺掗櫎瀹夊叏鍖� + +> full锛宐oolean锛屾槸鍚︽暣灞忥紝榛樿true锛屽鏋滅粍浠朵笉鏄敤鍦ㄩ〉闈㈢殑鏈�澶栧眰锛屽簲璇ヨ缃负false锛岃繖鏃跺�欑粍浠剁殑瀹介珮涓虹埗瀹瑰櫒鐨�100% + +> title锛宻tring锛屽ご閮ㄦ爣棰橈紝榛樿鈥淭itle鈥� + +> header-color锛宻tring锛屽ご閮ㄦ枃瀛楅鑹诧紝榛樿鈥�#212121鈥� + +> header-gradient锛宐oolean锛屽ご閮ㄥ簳鑹叉笎鍙橈紝鍗虫槸鍚﹁缃甤ss鐨刡ackground-image灞炴�э紝榛樿false + +> header-gradient-value锛宻tring锛屽ご閮ㄥ簳鑹叉笎鍙樺�硷紝鍗砪ss鐨刡ackground-image灞炴�х殑鍊硷紝榛樿涓嶈缃紝閲囩敤榛樿娓愬彉鑹� + +> header-background-color锛宻tring锛屽簳鑹诧紝鍦╤eader-gradient涓篺alse鐨勬椂鍊欐墠鐢熸晥锛岄粯璁や笉璁剧疆锛屽嵆閫忔槑 +#### 缁勪欢鎻掓Ы锛� +> default锛岄粯璁ゆ彃妲斤紝椤甸潰body鍐呭 + +> footer锛岄〉鑴氭彃妲斤紝椤甸潰搴曢儴鍐呭 + +> headerleft锛岄〉闈㈡爣棰樻爮宸︿晶鍐呭 + +> headerright锛岄〉闈㈡爣棰樻爮鍙充晶鍐呭 +### 缁勪欢浜嬩欢锛� +> headerclick锛屾爣棰樻爮宸﹀彸涓や晶鐨勭偣鍑讳簨浠� +>> 绗竴涓弬鏁帮紝鍊间负鈥渓eft鈥濓紝琛ㄧず宸︿晶鐨勭偣鍑伙紝鍊间负鈥渞ight鈥濓紝琛ㄧず鍙充晶鐨勭偣鍑� +### 缁勪欢鏂规硶锛� +> getBodyHeight锛岃繑鍥炵粍浠禸ody鐨勯珮搴︼紝number绫诲瀷锛屽崟浣峱x銆� +>> 鎻愪緵姝ゆ柟娉曠殑鍘熷洜鍦ㄤ簬uni-app浣跨敤flex甯冨眬鐨勬椂鍊欙紝app搴旂敤鍦╢lex鏍囩瀹瑰櫒鍐呴儴flex-grow锛坒lex锛夌殑鑷�傚簲鏍囩涓殑鏍囩锛屾棤娉曢�氳繃%璁剧疆楂樺害銆� +>> 鑰屾湰缁勪欢浣跨敤浜唂lex甯冨眬锛岀粍浠剁殑body閮ㄥ垎浣跨敤鐨勫氨鏄痜lex-grow鑷�傚簲 +### 鍥涖�丏efaultHeaderPageLayout缁勪欢锛岄粯璁ょ殑甯︽湁鏍囬鏍忕殑椤甸潰澶栧眰缁勪欢锛岄�氬父浣跨敤鍦ㄧ櫥褰曚箣鍚庨〉闈㈢殑鏈�澶栧眰 +#### 缁勪欢灞炴�э細 +> title锛宻tring锛屽ご閮ㄦ爣棰橈紝榛樿鈥淭itle鈥� + +> back-custom锛宐oolean锛屾槸鍚﹀紑鍚繑鍥炰簨浠惰嚜瀹氫箟锛岄粯璁alse涓嶅紑鍚� +#### 缁勪欢浜嬩欢锛� +> back锛岃嚜瀹氫箟杩斿洖浜嬩欢 + +#### 缁勪欢鎻掓Ы锛� +> default锛岄粯璁ゆ彃妲斤紝椤甸潰body鍐呭 + +> footer锛岄〉鑴氭彃妲斤紝椤甸潰搴曢儴鍐呭 +### 缁勪欢鏂规硶锛� +> getBodyHeight锛屽悓HeaderPageLayout缁勪欢 + +### 浜斻�丒asyPicker锛岀畝鏄撶殑鍗曢�夐�夋嫨鍣� +#### 缁勪欢灞炴�э細 +> visible锛宐oolean锛屾槸鍚︽樉绀猴紝榛樿false 鍙敤璇硶绯�.sync + +> list锛孉rray锛岄�夋嫨椤规暟鎹� + +> value-field锛宻tring锛岄�夐」value瀛楁锛岄粯璁も�渧alue鈥� + +> label-field锛宻tring锛岄�夐」鏄剧ずlabel瀛楁锛岄粯璁も�渓abel鈥� +#### 缁勪欢浜嬩欢锛� +> select锛岄�夋嫨浜嬩欢锛岃繑鍥烇細 +>> 绗竴涓弬鏁帮細閫変腑椤圭殑value鍊� +>> 绗簩涓弬鏁帮紝鏁翠釜閫変腑椤� +>> 绗笁涓弬鏁帮紝閫変腑椤瑰湪閫夐」涓殑浣嶇疆 + +### 鍏�丄ctionUserRow缁勪欢锛屾樉绀烘搷浣滃憳锛堟洿鏂�2锛� + +### 涓冦�丼canInputFormItem缁勪欢锛屾壂鐮佽緭鍏ヨ〃鍗曪紙鏇存柊2锛� +#### 缁勪欢灞炴�э細 +> type锛宻tring锛岃緭鍏ユtype锛屽彲閫夊�硷細number銆乮dcard銆乨igit銆乸assword銆乼ext锛岄粯璁も�渢ext鈥� + +> placeholder锛宻tring锛岀┖缃崰浣嶆枃瀛楋紝榛樿鈥滆杈撳叆...鈥� + +> label锛宻tring锛屾爣绛惧悕绉帮紝榛樿绌哄瓧绗︿覆 + +> msg锛宻tring锛屾彁绀轰俊鎭紝榛樿绌哄瓧绗︿覆 + +> msg-type锛宻tring锛屾彁绀轰俊鎭被鍨嬶紝鍙�夊�硷細error锛堥敊璇俊鎭紝绾㈣壊锛夈�乮nfo锛堝父瑙勪俊鎭紝钃濊壊锛夛紝榛樿鈥渆rror鈥� + +> value/v-model锛宻tring/number/null + +> has-search锛宐oolean锛屾槸鍚︽樉绀烘悳绱㈡寜閽紝榛樿false涓嶆樉绀� + +> disabled锛宐oolean锛屾槸鍚︾鐢紝榛樿false涓嶇鐢� +#### 缁勪欢浜嬩欢锛� +> search锛屾悳绱㈡寜閽偣鍑讳簨浠� + +> clear锛屾竻闄con鐐瑰嚮浜嬩欢 + +### 鍏�丒asySelectFormItem缁勪欢锛屽崟閫変笅鎷夎〃鍗曪紙鏇存柊2锛� +#### 缁勪欢灞炴�э細 +> placeholder锛宻tring锛岀┖缃崰浣嶆枃瀛楋紝榛樿鈥滆杈撳叆...鈥� + +> label锛宻tring锛屾爣绛惧悕绉帮紝榛樿绌哄瓧绗︿覆 + +> msg锛宻tring锛屾彁绀轰俊鎭紝榛樿绌哄瓧绗︿覆 + +> msg-type锛宻tring锛屾彁绀轰俊鎭被鍨嬶紝鍙�夊�硷細error锛堥敊璇俊鎭紝绾㈣壊锛夈�乮nfo锛堝父瑙勪俊鎭紝钃濊壊锛夛紝榛樿鈥渆rror鈥� + +> value/v-model锛宻tring/number/boolean/null + +> list锛孉rray锛岄�夋嫨椤规暟鎹� + +> value-field锛宻tring锛岄�夐」value瀛楁锛岄粯璁も�渧alue鈥� + +> label-field锛宻tring锛岄�夐」鏄剧ずlabel瀛楁锛岄粯璁も�渓abel鈥� + +> disabled锛宐oolean锛屾槸鍚︾鐢紝榛樿false涓嶇鐢� +#### 缁勪欢浜嬩欢锛� +> select锛岄�夐」鐐瑰嚮浜嬩欢 + +> clear锛屾竻闄con鐐瑰嚮浜嬩欢 + +----- + +## 钃濈墮鎵撳嵃浣跨敤 +### 鑼冧緥 +~~~ +import BluePrint from '@/pages/print/bluePrint.js' + +const onPrint = function(){ + let ptintContext = [ + {type:'text',x:0,y:0,text:'',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:0,y:0,text:'',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:0,y:0,text:'',size:2,rotate:0,bold:0,underline:false,reverse:false}, + /* 浠ヤ笂绌烘暟鎹紝涓洪槻姝涪鍖呮椂鎵撳嵃涓嶆甯� */ + {type:'text',x:230,y:10,text:'PART:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:300,y:10,text:'HFAHFOAJFOAJFO',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:230,y:95,text:'NAME:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:300,y:95,text:'SAHFAKHFKAHFKANFK',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:230,y:180,text:'LOTS:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:300,y:180,text:'LOTSLOTSLOTSLOTSLOTS',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:13,y:250,text:'SIZE:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:83,y:250,text:'SIZESIZESIZESIZESIZESIZESIZESIZE',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:105,y:315,text:'MAKINO J(CHINA) CO.LTD',size:3,rotate:0,bold:0,underline:false,reverse:false}, + {type:'qr',x:10,y:10,text:'asndkajdkjalda-barcode',width:8,level:1} + ] + BluePrint.print(this.$store,ptintContext).then(()=>{ + console.log('print鎴愬姛璋冪敤') + }).catch(()=>{ + console.log('print璋冪敤鍑洪敊') + }) +} +~~~ +### 鎵撳嵃鏁版嵁瀛楁璇存槑 +> type锛宻tring锛屽彲閫夊�硷細(line)鐩寸嚎銆�(text)鏂囧瓧銆�(qr)浜岀淮鐮併��(bar)鏉″舰鐮� + +> x锛宯umber锛屾墦鍗版枃瀛椼�佷簩缁寸爜銆佹潯褰㈢爜鏃跺�欙紝璧峰鐐规í鍧愭爣 + +> y锛宯umber锛屾墦鍗版枃瀛椼�佷簩缁寸爜銆佹潯褰㈢爜鏃跺�欙紝璧峰鐐圭旱鍧愭爣 + +> x1锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝璧峰鐐规í鍧愭爣 + +> y1锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝璧峰鐐圭旱鍧愭爣 + +> x2锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝缁撴潫鐐规í鍧愭爣 + +> y2锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝缁撴潫鐐圭旱鍧愭爣 + +> text锛宻tring锛屾墦鍗版枃瀛椼�佷簩缁寸爜銆佹潯褰㈢爜鏃跺�欙紝鎵撳嵃鍐呭 + +> size锛宯umber锛屾墦鍗版枃瀛楁椂鐨勫瓧浣撳ぇ灏忥紝鍙�夊�� 20/1/2/3/4/5/6/7 锛屽叾浠栫殑鏃跺�欓粯璁や负2 + +> width锛宯umber +>> 鎵撳嵃鐩寸嚎锛岃〃绀虹嚎瀹� +>> 鎵撳嵃浜岀淮鐮侊紝琛ㄧず浜岀淮鐮佸埢搴﹀�硷紝涓嶆槸鐢熸垚鐨勪簩缁寸爜鐨勫搴︼紝鍙栧�硷紙2鍒�15锛� +>> 鎵撳嵃鏉″舰鐮侊紝琛ㄧず鏉″舰鐮佸埢搴﹀�硷紝涓嶆槸鐢熸垚鐨勬潯褰㈢爜鐨勫搴︼紝鍙栧�硷紙2鍒�6锛� + +> level锛宯umber锛屾墦鍗颁簩缁寸爜鏃跺�欙紝绾犻敊绛夌骇锛屽彇鍊硷紙0鍒�20锛� + +> height锛宯umber锛屾墦鍗版潯褰㈢爜鏃跺�欙紝楂樺害锛屽彇鍊硷紙1鍒�255锛� + +> barType锛宯umber锛屾墦鍗版潯褰㈢爜鏃跺�欙紝鏉″舰鐮佺被鍨嬶紝鍙�夊�硷細 +>> 0锛欳ODE39锛� +>> 1锛欳ODE128锛� +>> 2锛欳ODE93锛� +>> 3锛欳ODEBAR锛� +>> 4锛欵AN8锛� +>> 5锛欵AN13锛� +>> 6锛歎PCA; +>> 7锛歎PC-E; +>> 8锛欼TF + +> rotate锛宯umber锛屾墦鍗版枃瀛楁椂鍊欙紝閫夋嫨瑙掑害 + +> bold锛宯umber锛屾墦鍗版枃瀛楁椂鍊欙紝鏄惁鍔犵矖(0鍚�1鏄�) + +> underline锛宐oolean锛屾墦鍗版枃瀛楁椂鍊欙紝涓嬪垝绾胯缃� + +> reverse锛宐oolean锛屾墦鍗版枃瀛楁椂鍊欙紝鍙嶈浆璁剧疆 + +------- +## 椤甸潰璇存槑 +### /pages/start/index +> 鍚姩椤碉紝鏍规嵁椤圭洰闇�姹傝皟鏁� + +### /pages/login/index +> 鐧诲綍椤碉紝涓�鑸笉浼氬ぇ鏀瑰姩浜嗭紝鏍规嵁椤圭洰闇�姹傚仛寰皟 + +### /pages/home/index +> 鐧诲綍鍚庣殑棣栭〉锛屾牴鎹」鐩渶姹傦紝寰堝彲鑳藉仛灞�閮ㄨ皟鏁� + +### /pages/baseTask/out +> 鍏ュ簱椤甸潰锛屾牴鎹」鐩渶姹傝皟鏁� + +### /pages/baseTask/out +> 鍑哄簱椤甸潰锛屾牴鎹」鐩渶姹傝皟鏁� + +### /pages/print/bluetoothConnection +> 鐗╄殏铓佽摑鐗欐墦鍗版満锛岃摑鐗欒繛鎺ラ〉闈紝鍑犱箮鏃犻渶鏀瑰姩 + +### /pages/setting/host +> 鍚庣鎺ュ彛璋冪敤鍩熷悕璁剧疆椤甸潰锛屽嚑涔庢棤闇�鏀瑰姩 + +----- +## json-server 鍓嶇鏁版嵁moke +### 鍚姩閰嶇疆锛屽鍥惧湪package.json涓紝鐒跺悗鍛戒护琛岃繍琛� +~~~ +npm run api +~~~ +> --port 3012 绔彛鍙疯缃负3012 +> --host 0.0.0.0 寮�鍚痠p鍦板潃璁块棶 +<img src="./mdImgs/1665970038354.jpg" style="width:100%" /> + +### RESET Api +> GET /demo 鑾峰彇鍏ㄩ儴鍒楄〃 +> GET /demo/鏁版嵁id 鑾峰彇璇︽儏 +> POST /demo 澧炲姞 +> PUT /demo/鏁版嵁id 鏁存潯鏁版嵁鏇挎崲 +> PATCH /demo/鏁版嵁id 淇敼鏌愪釜瀛楁 +> DELETE /demo/鏁版嵁id 鍒犻櫎 +### 鏉′欢鏌ヨ鍜屽垎椤垫煡璇� +#### 鏉′欢鏌ヨ锛屽瓧娈靛悕绉板悗澧炲姞 +> _gte 澶т簬绛変簬 +> _lte 灏忎簬绛変簬 +> _ne 涓嶇瓑浜� +> _like 鍖呭惈 + +#### 鍒嗛〉鏌ヨ +> _page 椤电爜锛屼粠1寮�濮� +> _limit 姣忛〉澶氬皯鏉℃暟鎹� +> _start 鏁版嵁绱㈠紩寮�濮嬶紝浠�0寮�濮� +> _end 鏁版嵁绱㈠紩缁撴潫锛屼笉鍖呭惈end绱㈠紩 + +妗堜緥锛欸ET妯$硦鏌ユ壘瀛楁name +~~~ +/demo?name_like=value +~~~ + +------- +## 鏂板缓椤甸潰姝ラ +#### 1銆侀厤缃畃ages.json +#### 2銆侀厤缃甤onfig/index.js涓殑path +#### 3銆侀椤甸厤缃〉闈㈠叆鍙o紙鏍规嵁闇�瑕侊級 + + + +## 寮规涓甫妯$硦鏌ヨ +<selectItem + :selectData="placeList" + :value.sync="form.placeNo" + label="搴撲綅缂栧彿" + labelField="placeNo" + valueField="placeNo" + @getCurrentData="getCurrentData" + :isShowSearch="true" +/> +import selectItem from "@/components/selectItemWithSearch.vue"; +import { palceList } from "@/service/mixins/mixins.js"; +mixins: [palceList], + //搴撲綅妯$硦鏌ヨ +async getCurrentData(PlaceNo) { + await this.getPalceList({ + areaCode: this.form.areaNo, + PlaceNo: PlaceNo, + }); +}, +## 寮规涓甫妯$硦鏌ヨ diff --git a/PipeLineLems.PDA/README_multiple_api.md b/PipeLineLems.PDA/README_multiple_api.md new file mode 100644 index 0000000..72a9db0 --- /dev/null +++ b/PipeLineLems.PDA/README_multiple_api.md @@ -0,0 +1,480 @@ +> ***<span style="color:#00008B;">濡傛灉鏈夋柊澧炰慨鏀圭殑閫氱敤鍐呭锛岃鍦ㄦ湰鏂囦欢涓婃洿鏂颁娇鐢ㄦ柟娉曪紝骞舵敞鏄庢洿鏂颁汉銆佹洿鏂版椂闂�</span>*** +> ***<span style="color:#00008B;">鍒涘缓浜猴細鏁扮�� 楂樼骇鍓嶇 閮佹娆紝鍒涘缓鏃堕棿锛�2022骞�3鏈�16鏃�</span>*** + +---- + +## 浣跨敤鐏嫄娴忚鍣‵ireFox闃呰鏈枃浠� +> 鐏嫄娴忚鍣ㄥ畨瑁匨arkdown Viewer鎵╁睍缁勪欢锛屽畨瑁呬箣鍚庡湪娴忚鍣ㄧ殑鍦板潃鏍忚緭鍏ユ湰鏂囦欢鐨勫湴鍧�锛堝彲浠ユ槸鏈湴鐨勬枃浠跺湴鍧�锛屽D:\README.md锛夛紝鍥炶溅纭鍗冲彲銆� +---- + +## 浣跨敤鎶�鏈⒊鐞� +### 涓�銆乽ni-app锛岃祫鏂欑綉绔欙細<a href="https://uniapp.dcloud.net.cn/" target="_blank">https://uniapp.dcloud.net.cn/</a> +### 浜屻�乂UE2锛岃祫鏂欑綉绔欙細<a href="https://v2.cn.vuejs.org/" target="_blank">https://v2.cn.vuejs.org/</a> +### 涓夈�乿uex锛宻tore鍏ㄥ眬鏁版嵁锛岃祫鏂欑綉绔欙細<a href="https://v3.vuex.vuejs.org/zh/" target="_blank">https://v3.vuex.vuejs.org/zh/</a> +### 鍥涖�乽view锛寀i搴擄紝璧勬枡缃戠珯锛�<a href="https://www.uviewui.com/components/intro.html" target="_blank">https://www.uviewui.com/components/intro.html</a> +### 浜斻�丏Cloud<a href="https://ext.dcloud.net.cn/" target="_blank">鎻掍欢甯傚満</a>锛屽叾涓殑缁濆ぇ澶氭暟鎻掍欢鍙互浣跨敤HbuilderX鐩存帴瀵煎叆鍒伴」鐩腑 +> HbuilderX浼氬皢鎻掍欢瀵煎叆鍒伴」鐩殑uni_modules鏂囦欢澶逛笅 +> HbuilderX鎻掍欢瀵煎叆渚濊禆uniModules鏍稿績鎻掍欢锛岃鍏堝畨瑁咃紱鑻ュ鍏ュけ璐ワ紝寰堟湁鍙兘鏄痷niModules鐨勭増鏈棶棰橈紝璇峰嵏杞藉悗鍐嶆瀹夎鍚庡啀瀵煎叆銆� +> 浣跨敤HbuilderX瀵煎叆鎻掍欢锛岃娉ㄦ剰鎻掍欢鐨勫钩鍙版敮鎸佷互鍙妚ue璇█鐗堟湰 +---- + +## 寮�鍙戜互鍙婄紪璇戠殑宸ュ叿鍜岀幆澧� +### 涓�銆佸紑鍙戝伐鍏稨builderX锛屽畼缃戯細<a href="https://www.dcloud.io/hbuilderx.html" target="_blank">https://www.dcloud.io/hbuilderx.html</a>锛屽畨瑁呬箣鍚庢敞鎰忔妸涓�浜涘父鐢ㄦ彃浠朵篃瀹夎浜嗐�傚浣曞畨瑁呮彃浠讹紝瀹樼綉鏈変粙缁嶃�� +### 浜屻�乶odejs +#### 1銆佷笅杞藉湴鍧�锛�<a href="https://nodejs.org/zh-cn/" target="_blank">https://nodejs.org/zh-cn/</a> +#### 2銆佸畨瑁呬箣鍚庣殑閰嶇疆 +> 鍦╪odejs鐨勫畨瑁呮牴鐩綍涓嬫柊寤�2涓枃浠跺すnode_global鍜宯ode_cache锛岀劧鍚庝互绠$悊鍛樿韩浠芥墦寮�鍛戒护琛岀獥鍙o紙cmd锛夎緭鍏ュ涓嬩唬鐮�: +~~~ +npm config set prefix "node_global鏂囦欢澶瑰湴鍧�" +npm config set cache "node_cache鏂囦欢澶瑰湴鍧�" +~~~ +> 鐜鍙橀噺璁剧疆锛堝浣曟墦寮�璁$畻鏈虹殑鐜鍙橀噺绐楀彛锛岃繖閲屼笉浣滈槓杩帮紝涓嶇煡閬撶殑鍘婚棶搴﹀锛夛細 +>> NODE_PATH 鐢ㄦ埛鍙橀噺锛屽�间负锛歯odejs鏍圭洰褰昞node_modules +>> Path 绯荤粺鍙橀噺锛屾柊澧�2涓睘鎬э細 +>>> nodejs鏍圭洰褰昞 +>>> nodejs鏍圭洰褰昞node_global + +> cnpm闀滃儚閰嶇疆锛岃緭鍏ュ涓嬪懡浠わ細 +~~~ +npm install -g cnpm --registry=https://registry.npm.taobao.org +~~~ +---- + +## 椤圭洰杩愯鍙婃墦鍖� +### 棣栨瀹夎 +> 鍦ㄩ」鐩殑鏍圭洰褰曪紝杈撳叆鍛戒护 +~~~ +npm install 鎴栬�� cnpm install +~~~ +### 娴忚鍣ㄨ繍琛� +> HbuilderX鎵撳紑椤圭洰锛岃彍鍗曟爮 杩愯 > 杩愯鍒版祻瑙堝櫒 > 閫夋嫨娴忚鍣� +> 娴忚鍣ㄦ墦寮� 寮�鍙戣�呭伐鍏� 锛屽皢鏄剧ず妯″紡鏀逛负 绉诲姩璁惧 妯″紡 +### 鐪熸満锛堟墜鏈烘垨鑰卲da锛夎皟寮� +> 1銆佷娇鐢ㄦ暟鎹嚎杩炴帴 寮�鍙戠數鑴� 鍜� 鐪熸満 +> 2銆佺湡鏈虹殑usb璋冭瘯鏉冮檺璁剧疆鎵撳紑 +> 3銆佺‘淇� 寮�鍙戠數鑴� 鍜� 鐪熸満 澶勪簬鍚屼竴缃戠粶 +> 4銆丠builderX鎵撳紑椤圭洰锛岃彍鍗曟爮 杩愯 > 杩愯鍒版墜鏈烘垨妯℃嫙鍣� > 閫夋嫨璋冭瘯鐪熸満 +>> 娉ㄦ剰锛岄娆¤繍琛岀殑鏃跺�欙紝HbuilderX浼氱粰鐪熸満瀹夎璋冭瘯app锛岄渶瑕佸湪瀹夎瀹屾垚鍚庡啀娆¤繍琛� +### 浜戞墦鍖� +> 1銆丠builderX鍒涘缓璐﹀彿骞剁櫥褰� +> 2銆佸鏋滀綘鐨凥builderX鏄娆″椤圭洰杩涜鎵撳寘锛岄渶瑕佽幏鍙栦笅AppId锛屽湪manifest.json鐨勫熀纭�璁剧疆涓� +<img src="./mdImgs/1664329468868.jpg" style="width:100%" /> +> 3銆佸簲鐢ㄥ浘鏍囷細鍑嗗涓�寮犲浘鐗囷紝鏈�濂芥槸1024*1024鍍忕礌鐨勶紝鍦╩anifest.json鐨凙pp鍥炬爣璁剧疆涓繘琛岄厤缃�� +<img src="./mdImgs/1664329790970.jpg" style="width:100%" /> +> 4銆佽嚜鍔ㄧ敓鎴愬畨瑁卆pk锛氳彍鍗曟爮->鍙戣->鍘熺敓App浜戞墦鍖呫�備簯鎵撳寘闇�瑕佺瓑寰呬竴娈垫椂闂淬�� +<img src="./mdImgs/1664330296712.png" style="width:100%" /> +> 5銆佹墦鍖呭畬鎴愶紝apk鍦� unpackage\release\apk 璺緞涓嬭嚜鍔ㄧ敓鎴� +----- + +## 椤圭洰鐩綍缁撴瀯 +> components 鑷紑鍙戠殑閫氱敤缁勪欢 + +> config 椤圭洰鍙傛暟閰嶇疆 + +> node_modules 瀹夎鐨勭涓夋柟浠g爜鎴栫粍浠� + +> pages 寮�鍙戦〉闈㈢殑浠g爜 + +> service 灏佽鐨勬湇鍔′唬鐮� +>> request 鎺ュ彛璋冪敤灏佽 +>> store vuex鍏ㄥ眬鏁版嵁灏佽 + +> static 闈欐�佽祫婧� +>> fonts 瀛椾綋鏍峰紡搴� +>> img 鏈湴鍥剧墖璧勬簮 +>> js js璧勬簮 +>>> print 钃濈墮鎵撳嵃 +>>> utils 鍏敤js浠g爜 + +> uni_modules HbuilderX瀵煎叆鐨勭涓夋柟浠g爜鎴栫粍浠� + +> unpackage HbuilderX鎵撳寘鑷姩鐢熸垚鐨勬枃浠跺す銆侶builderX鑷姩鐢熸垚鐨勫簲鐢ㄥ浘鐗囦篃鏄淇濆瓨鍦ㄨ繖閲岀殑銆� +---- + +## 鎺ュ彛璋冪敤 +### 1銆佷唬鐮佸皝瑁呭湪 \service\request +### 2銆佷娇鐢� +> 宸茬粡鍦╩ain.js涓叏灞�寮曞叆 +~~~ +this.$api +~~~ +### 3銆佸彲浠ヨ皟鐢ㄧ殑鏂规硶 +#### get銆乨eletet銆乸ost銆乸ut锛岃繑鍥炰竴涓狿romise锛屽弬鏁帮細 +> 绗竴涓弬鏁帮紝string锛屽悗绔殑鏂规硶鍚嶏紝蹇呬紶 + +> 绗簩涓弬鏁帮紝json object锛屾帴鍙d紶鍙傦紝娌℃湁鍚庣画鍙傛暟鐨勬椂鍊欙紝鍙笉浼� + +> 绗笁涓弬鏁帮紝string 鎴栬�� json object锛屾帴鍙h皟鐢ㄩ厤缃缃紝娌℃湁鍚庣画鍙傛暟鐨勬椂鍊欙紝鍙笉浼� +>> string鏃讹紝鍗砵son object缁撴瀯鐨刡lock鍊� +>> json object鏃剁殑缁撴瀯 +>>> warn: boolean锛屽嚭閿欐椂鏄惁鎻愮ず閿欒淇℃伅锛屽彲涓嶈缃紝榛樿true +>>> host锛歴tring锛屾帴鍙e湴鍧�鐨勫煙鍚嶅悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刪ost锛屽彲涓嶈缃紝榛樿default +>>> block锛歴tring锛屾帴鍙e湴鍧�鐨勬ā鍧楀悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刡lock锛屽彲涓嶈缃紝榛樿default +>>> needToken: boolean锛宧eaders鏄惁浼犲叆token锛屽彲涓嶈缃紝榛樿true +>>> loading: boolean锛屾帴鍙h皟鐢ㄨ繃绋嬩腑鏄惁寮�鍚叏灞弆oading锛屽彲涓嶈缃紝榛樿true +>>> fullRes: boolean锛屾帴鍙h繑鍥炴槸鍚﹀皢鍚庣鐨勬暣涓粨鏋勪綋杩斿洖锛屽彲涓嶈缃紝榛樿false锛堝彧杩斿洖缁撴瀯浣撶殑data锛夛紙鏇存柊1锛� +#### post銆乸ut锛屽弬鏁帮細 +> 绗洓涓弬鏁帮紝json object锛宲ost鍜宲ut浠et浼犲弬鏂瑰紡浼犻�掔殑鍙傛暟锛屽彲涓嶄紶 +#### base锛岃繑鍥炰竴涓狿romise锛屽弬鏁帮細 +> 绗竴涓弬鏁帮紝string锛実et銆乨eletet銆乸ost銆乸ut涓殑涓�涓紝蹇呬紶 +> 鍚庣画鍙傛暟锛屾部鐢� get銆乨eletet銆乸ost銆乸ut 鍚勮嚜鐨勬柟娉� +#### getHeaders锛岃幏鍙栭」鐩腑鐨刪eaders閰嶇疆锛屽弬鏁� +> 绗竴涓弬鏁帮紝json object锛屽彲涓嶄紶锛岀粨鏋勫涓� +>> needToken: boolean锛宧eaders鏄惁浼犲叆token锛屽彲涓嶈缃紝榛樿true + +> 绗簩涓弬鏁帮紝json object锛屽師鏈夌殑headers锛屽彲涓嶄紶 + +> 杩斿洖涓�涓猨son object锛岀粨鏋勫涓� +>> flag: boolean锛岃缃甴eaders鏄惁閫氳繃 +>> headers: json object锛岄」鐩厤缃悗鐨刪eaders +#### getUrl锛岃繑鍥瀞tring锛屼竴涓畬鏁寸殑url锛屽弬鏁帮細 +> 绗竴涓弬鏁帮紝string锛屽悗绔殑鏂规硶鍚嶏紝蹇呬紶 + +> 绗簩涓弬鏁帮紝string 鎴栬�� json object锛屾帴鍙h皟鐢ㄩ厤缃缃紝娌℃湁鍚庣画鍙傛暟鐨勬椂鍊欙紝鍙笉浼� +>> string鏃讹紝鍗砵son object缁撴瀯鐨刡lock鍊� +>> json object鏃剁殑缁撴瀯 +>>> host锛歴tring锛屾帴鍙e湴鍧�鐨勫煙鍚嶅悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刪ost锛屽彲涓嶈缃紝榛樿default +>>> block锛歴tring锛屾帴鍙e湴鍧�鐨勬ā鍧楀悕绉帮紝瀵瑰簲config閰嶇疆涓璦jax鐨刡lock锛屽彲涓嶈缃紝榛樿default +---- + +## config鐩稿叧 +### 閰嶇疆璇存槑 +> ajax锛屾帴鍙h皟鐢ㄧ浉鍏抽厤缃� + +>> errMsg锛宻tring锛屾帴鍙h皟鐢ㄥ嚭閿欏悗鐨勯粯璁ゆ彁绀轰俊鎭� + +>> host锛宩son object锛屾帴鍙h皟鐢ㄥ煙鍚嶉厤缃� + +>>> default锛宻tring锛岄粯璁ゅ煙鍚� + +>> block锛宩son object锛屾帴鍙h皟鐢ㄦā鍧楅厤缃� + +>>> default锛宻tring锛岄粯璁ゆā鍧� + +> pagination锛宩son object锛屽垎椤电浉鍏� + +> path锛宩son object锛岄〉闈㈣矾寰勶紝鍏宠仈pages.json锛岄〉闈㈣烦杞殑鏃跺�欎娇鐢ㄦ澶勭殑閰嶇疆锛屼究浜庣淮鎶� + +> downUrl锛宻tring锛岀増鏈洿鏂颁笅杞藉湴鍧�閰嶇疆锛堟洿鏂�2锛� + +### 寮�鍙戜娇鐢� +> 宸茬粡鍦╩ain.js涓叏灞�寮曞叆 +~~~ +this.$config +~~~ +----- + +## utils鐩稿叧 +### 浣跨敤鑼冧緥 +~~~ +import { $alert } from '@/static/js/utils' +~~~ + +### utils璇存槑 +> $successInfo锛孎unction绫诲瀷锛屾垚鍔熶俊鎭彁绀猴紝鍙傛暟锛� +>> 绗竴涓弬鏁帮紝 string锛� 鎴愬姛鎻愮ず淇℃伅锛� 蹇呬紶锛屾枃瀛楀敖閲忕簿绠�锛屽洜涓哄彧鏀寔鍗曡鏄剧ず + +> $alert锛孎unction绫诲瀷锛屽脊鍑轰竴涓俊鎭彁绀虹獥鍙o紝鍙傛暟锛� +>> 绗竴涓弬鏁帮紝 string锛� 鎻愮ず淇℃伅锛� 蹇呬紶 +>> 绗簩涓弬鏁帮紝 string锛� 寮圭獥鏍囬锛屽彲涓嶄紶锛岄粯璁も�滅郴缁熸彁绀衡�� +>> 绗笁涓弬鏁帮紝 Function锛� 鐐瑰嚮纭鐨勫洖璋冩柟娉曪紝 鍙笉浼� + +> color锛宩son瀵硅薄绫诲瀷锛岄鑹插鐞嗙浉鍏� + +>> getRandomHexColor锛孎unction绫诲瀷锛岃繑鍥炰竴涓�16杩涘埗鐨勯鑹插�� + +> regexValidate锛宩son瀵硅薄绫诲瀷锛屾鍒欐牎楠� + +> uuid锛孎unction绫诲瀷锛屽垱寤轰竴涓殢鏈虹爜锛屽弬鏁帮細 +>> 绗竴涓弬鏁帮紝 number锛� 闅忔満鐮侀暱搴︼紝 榛樿6 +>> 绗簩涓弬鏁帮紝 number锛� 闅忔満鐮佺粍鍚堟柟寮忥紝榛樿0锛� +>>> 0锛氬ぇ灏忓啓瀛楁瘝+鏁板瓧 +>>> 1锛氬皬鍐欏瓧姣�+鏁板瓧 +>>> 2锛氱函鏁板瓧 +>>> 3锛氬ぇ灏忓啓瀛楁瘝 +>>> 4锛氬皬鍐欏瓧姣� + +> parseDic锛孎unction绫诲瀷锛岃В鏋愭暟鎹瓧鍏革紙鏇存柊2锛夛細 +>> 绗竴涓弬鏁帮紝 Object锛� vuex鐨剆tore瀵硅薄锛� 鍦╲ue鏂囦欢涓负this.$store +>> 绗簩涓弬鏁帮紝 string锛� 瀛楀吀闆嗗悎鐮� +>> 绗笁涓弬鏁帮紝 string/number锛� 瀛楀吀鍊� +>> 杩斿洖锛� string锛� 瀛楀吀鍊煎搴斿悕绉� + +> downloadApk锛孎unction绫诲瀷锛屾柊鐗堟湰涓嬭浇鐨勬柟娉曪紙鏇存柊2锛夛細 +>> 绗竴涓弬鏁帮紝 Object锛� config瀵硅薄锛� 鍦╲ue鏂囦欢涓负this.$config +----- + +## 鎴戜滑鑷繁寮�鍙戠殑缁勪欢璇存槑 +### 涓�銆丳ageHeader缁勪欢锛岃繖涓槸HeaderPageLayout缁勪欢鐨勫唴缃粍浠讹紝涓嶅仛璇︾粏璇存槑 +### 浜屻�丗ullPageLayout缁勪欢锛岄〉闈㈠灞傜粍浠讹紝閫氬父浣跨敤鍦ㄩ〉闈㈢殑鏈�澶栧眰 +#### 缁勪欢灞炴�э細 +> gradient锛宐oolean锛屽簳鑹叉笎鍙橈紝鍗虫槸鍚﹁缃甤ss鐨刡ackground-image灞炴�э紝榛樿false + +> gradient-value锛宻tring锛屽簳鑹叉笎鍙樺�硷紝鍗砪ss鐨刡ackground-image灞炴�х殑鍊硷紝榛樿涓嶈缃紝閲囩敤榛樿娓愬彉鑹� + +> background-color锛宻tring锛屽簳鑹诧紝鍦╣radient涓篺alse鐨勬椂鍊欐墠鐢熸晥锛岄粯璁や笉璁剧疆锛屽嵆閫忔槑 + +> safety锛宐oolean锛屽畨鍏ㄥ尯锛岄〉闈㈠唴瀹规樉绀虹殑鏃跺�欙紝鏄惁灏嗗畨鍏ㄥ尯鎺掗櫎锛岄粯璁rue锛屽嵆鎺掗櫎瀹夊叏鍖� + +> full锛宐oolean锛屾槸鍚︽暣灞忥紝榛樿true锛屽鏋滅粍浠朵笉鏄敤鍦ㄩ〉闈㈢殑鏈�澶栧眰锛屽簲璇ヨ缃负false锛岃繖鏃跺�欑粍浠剁殑瀹介珮涓虹埗瀹瑰櫒鐨�100% + +> base-background-color锛宻tring锛屽熀纭�搴曡壊锛岄〉闈㈠簳鑹插灞傜殑棰滆壊锛屽綋鏈夊畨鍏ㄥ尯鐨勬椂鍊欙紝瀹夊叏鍖虹殑棰滆壊涓烘棰滆壊銆傞粯璁や笉璁剧疆锛屽嵆閫忔槑锛岃繖鏃跺�欐樉绀虹殑棰滆壊浼氭槸uni-app涓缃殑棰滆壊 +#### 缁勪欢鎻掓Ы锛� +> default锛岄粯璁ゆ彃妲斤紝椤甸潰body鍐呭 +### 涓夈�丠eaderPageLayout缁勪欢锛屽甫鏈夊ご閮ㄥ竷灞�鐨勯〉闈㈠灞傜粍浠讹紝閫氬父浣跨敤鍦ㄩ〉闈㈢殑鏈�澶栧眰 +#### 缁勪欢灞炴�э細 +> gradient锛宐oolean锛岄〉闈ody閮ㄥ垎搴曡壊娓愬彉锛屽嵆鏄惁璁剧疆css鐨刡ackground-image灞炴�э紝榛樿false + +> gradient-value锛宻tring锛岄〉闈ody閮ㄥ垎搴曡壊娓愬彉鍊硷紝鍗砪ss鐨刡ackground-image灞炴�х殑鍊硷紝榛樿涓嶈缃紝閲囩敤榛樿娓愬彉鑹� + +> background-color锛宻tring锛岄〉闈ody閮ㄥ垎搴曡壊锛屽湪gradient涓篺alse鐨勬椂鍊欐墠鐢熸晥锛岄粯璁や笉璁剧疆锛屽嵆閫忔槑 + +> base-background-color锛宻tring锛屽熀纭�搴曡壊锛岄〉闈㈠簳鑹插灞傜殑棰滆壊锛屽綋鏈夊畨鍏ㄥ尯鐨勬椂鍊欙紝瀹夊叏鍖虹殑棰滆壊涓烘棰滆壊銆傚綋涓嶈缃ご閮ㄥ簳鑹茬殑鏃跺�欙紝澶撮儴鐨勫簳鑹蹭篃涓烘棰滆壊銆傞粯璁や笉璁剧疆锛屽嵆閫忔槑锛岃繖鏃跺�欐樉绀虹殑棰滆壊浼氭槸uni-app涓缃殑棰滆壊 + +> safety锛宐oolean锛屽畨鍏ㄥ尯锛岄〉闈㈠唴瀹规樉绀虹殑鏃跺�欙紝鏄惁灏嗗畨鍏ㄥ尯鎺掗櫎锛岄粯璁rue锛屽嵆鎺掗櫎瀹夊叏鍖� + +> full锛宐oolean锛屾槸鍚︽暣灞忥紝榛樿true锛屽鏋滅粍浠朵笉鏄敤鍦ㄩ〉闈㈢殑鏈�澶栧眰锛屽簲璇ヨ缃负false锛岃繖鏃跺�欑粍浠剁殑瀹介珮涓虹埗瀹瑰櫒鐨�100% + +> title锛宻tring锛屽ご閮ㄦ爣棰橈紝榛樿鈥淭itle鈥� + +> header-color锛宻tring锛屽ご閮ㄦ枃瀛楅鑹诧紝榛樿鈥�#212121鈥� + +> header-gradient锛宐oolean锛屽ご閮ㄥ簳鑹叉笎鍙橈紝鍗虫槸鍚﹁缃甤ss鐨刡ackground-image灞炴�э紝榛樿false + +> header-gradient-value锛宻tring锛屽ご閮ㄥ簳鑹叉笎鍙樺�硷紝鍗砪ss鐨刡ackground-image灞炴�х殑鍊硷紝榛樿涓嶈缃紝閲囩敤榛樿娓愬彉鑹� + +> header-background-color锛宻tring锛屽簳鑹诧紝鍦╤eader-gradient涓篺alse鐨勬椂鍊欐墠鐢熸晥锛岄粯璁や笉璁剧疆锛屽嵆閫忔槑 +#### 缁勪欢鎻掓Ы锛� +> default锛岄粯璁ゆ彃妲斤紝椤甸潰body鍐呭 + +> footer锛岄〉鑴氭彃妲斤紝椤甸潰搴曢儴鍐呭 + +> headerleft锛岄〉闈㈡爣棰樻爮宸︿晶鍐呭 + +> headerright锛岄〉闈㈡爣棰樻爮鍙充晶鍐呭 +### 缁勪欢浜嬩欢锛� +> headerclick锛屾爣棰樻爮宸﹀彸涓や晶鐨勭偣鍑讳簨浠� +>> 绗竴涓弬鏁帮紝鍊间负鈥渓eft鈥濓紝琛ㄧず宸︿晶鐨勭偣鍑伙紝鍊间负鈥渞ight鈥濓紝琛ㄧず鍙充晶鐨勭偣鍑� +### 缁勪欢鏂规硶锛� +> getBodyHeight锛岃繑鍥炵粍浠禸ody鐨勯珮搴︼紝number绫诲瀷锛屽崟浣峱x銆� +>> 鎻愪緵姝ゆ柟娉曠殑鍘熷洜鍦ㄤ簬uni-app浣跨敤flex甯冨眬鐨勬椂鍊欙紝app搴旂敤鍦╢lex鏍囩瀹瑰櫒鍐呴儴flex-grow锛坒lex锛夌殑鑷�傚簲鏍囩涓殑鏍囩锛屾棤娉曢�氳繃%璁剧疆楂樺害銆� +>> 鑰屾湰缁勪欢浣跨敤浜唂lex甯冨眬锛岀粍浠剁殑body閮ㄥ垎浣跨敤鐨勫氨鏄痜lex-grow鑷�傚簲 +### 鍥涖�丏efaultHeaderPageLayout缁勪欢锛岄粯璁ょ殑甯︽湁鏍囬鏍忕殑椤甸潰澶栧眰缁勪欢锛岄�氬父浣跨敤鍦ㄧ櫥褰曚箣鍚庨〉闈㈢殑鏈�澶栧眰 +#### 缁勪欢灞炴�э細 +> title锛宻tring锛屽ご閮ㄦ爣棰橈紝榛樿鈥淭itle鈥� + +> back-custom锛宐oolean锛屾槸鍚﹀紑鍚繑鍥炰簨浠惰嚜瀹氫箟锛岄粯璁alse涓嶅紑鍚� +#### 缁勪欢浜嬩欢锛� +> back锛岃嚜瀹氫箟杩斿洖浜嬩欢 + +#### 缁勪欢鎻掓Ы锛� +> default锛岄粯璁ゆ彃妲斤紝椤甸潰body鍐呭 + +> footer锛岄〉鑴氭彃妲斤紝椤甸潰搴曢儴鍐呭 +### 缁勪欢鏂规硶锛� +> getBodyHeight锛屽悓HeaderPageLayout缁勪欢 + +### 浜斻�丒asyPicker锛岀畝鏄撶殑鍗曢�夐�夋嫨鍣� +#### 缁勪欢灞炴�э細 +> visible锛宐oolean锛屾槸鍚︽樉绀猴紝榛樿false 鍙敤璇硶绯�.sync + +> list锛孉rray锛岄�夋嫨椤规暟鎹� + +> value-field锛宻tring锛岄�夐」value瀛楁锛岄粯璁も�渧alue鈥� + +> label-field锛宻tring锛岄�夐」鏄剧ずlabel瀛楁锛岄粯璁も�渓abel鈥� +#### 缁勪欢浜嬩欢锛� +> select锛岄�夋嫨浜嬩欢锛岃繑鍥烇細 +>> 绗竴涓弬鏁帮細閫変腑椤圭殑value鍊� +>> 绗簩涓弬鏁帮紝鏁翠釜閫変腑椤� +>> 绗笁涓弬鏁帮紝閫変腑椤瑰湪閫夐」涓殑浣嶇疆 + +### 鍏�丄ctionUserRow缁勪欢锛屾樉绀烘搷浣滃憳锛堟洿鏂�2锛� + +### 涓冦�丼canInputFormItem缁勪欢锛屾壂鐮佽緭鍏ヨ〃鍗曪紙鏇存柊2锛� +#### 缁勪欢灞炴�э細 +> type锛宻tring锛岃緭鍏ユtype锛屽彲閫夊�硷細number銆乮dcard銆乨igit銆乸assword銆乼ext锛岄粯璁も�渢ext鈥� + +> placeholder锛宻tring锛岀┖缃崰浣嶆枃瀛楋紝榛樿鈥滆杈撳叆...鈥� + +> label锛宻tring锛屾爣绛惧悕绉帮紝榛樿绌哄瓧绗︿覆 + +> msg锛宻tring锛屾彁绀轰俊鎭紝榛樿绌哄瓧绗︿覆 + +> msg-type锛宻tring锛屾彁绀轰俊鎭被鍨嬶紝鍙�夊�硷細error锛堥敊璇俊鎭紝绾㈣壊锛夈�乮nfo锛堝父瑙勪俊鎭紝钃濊壊锛夛紝榛樿鈥渆rror鈥� + +> value/v-model锛宻tring/number/null + +> has-search锛宐oolean锛屾槸鍚︽樉绀烘悳绱㈡寜閽紝榛樿false涓嶆樉绀� + +> disabled锛宐oolean锛屾槸鍚︾鐢紝榛樿false涓嶇鐢� +#### 缁勪欢浜嬩欢锛� +> search锛屾悳绱㈡寜閽偣鍑讳簨浠� + +> clear锛屾竻闄con鐐瑰嚮浜嬩欢 + +### 鍏�丒asySelectFormItem缁勪欢锛屽崟閫変笅鎷夎〃鍗曪紙鏇存柊2锛� +#### 缁勪欢灞炴�э細 +> placeholder锛宻tring锛岀┖缃崰浣嶆枃瀛楋紝榛樿鈥滆杈撳叆...鈥� + +> label锛宻tring锛屾爣绛惧悕绉帮紝榛樿绌哄瓧绗︿覆 + +> msg锛宻tring锛屾彁绀轰俊鎭紝榛樿绌哄瓧绗︿覆 + +> msg-type锛宻tring锛屾彁绀轰俊鎭被鍨嬶紝鍙�夊�硷細error锛堥敊璇俊鎭紝绾㈣壊锛夈�乮nfo锛堝父瑙勪俊鎭紝钃濊壊锛夛紝榛樿鈥渆rror鈥� + +> value/v-model锛宻tring/number/boolean/null + +> list锛孉rray锛岄�夋嫨椤规暟鎹� + +> value-field锛宻tring锛岄�夐」value瀛楁锛岄粯璁も�渧alue鈥� + +> label-field锛宻tring锛岄�夐」鏄剧ずlabel瀛楁锛岄粯璁も�渓abel鈥� + +> disabled锛宐oolean锛屾槸鍚︾鐢紝榛樿false涓嶇鐢� +#### 缁勪欢浜嬩欢锛� +> select锛岄�夐」鐐瑰嚮浜嬩欢 + +> clear锛屾竻闄con鐐瑰嚮浜嬩欢 + +----- + +## 钃濈墮鎵撳嵃浣跨敤 +### 鑼冧緥 +~~~ +import BluePrint from '@/pages/print/bluePrint.js' + +const onPrint = function(){ + let ptintContext = [ + {type:'text',x:0,y:0,text:'',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:0,y:0,text:'',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:0,y:0,text:'',size:2,rotate:0,bold:0,underline:false,reverse:false}, + /* 浠ヤ笂绌烘暟鎹紝涓洪槻姝涪鍖呮椂鎵撳嵃涓嶆甯� */ + {type:'text',x:230,y:10,text:'PART:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:300,y:10,text:'HFAHFOAJFOAJFO',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:230,y:95,text:'NAME:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:300,y:95,text:'SAHFAKHFKAHFKANFK',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:230,y:180,text:'LOTS:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:300,y:180,text:'LOTSLOTSLOTSLOTSLOTS',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:13,y:250,text:'SIZE:',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:83,y:250,text:'SIZESIZESIZESIZESIZESIZESIZESIZE',size:2,rotate:0,bold:0,underline:false,reverse:false}, + {type:'text',x:105,y:315,text:'MAKINO J(CHINA) CO.LTD',size:3,rotate:0,bold:0,underline:false,reverse:false}, + {type:'qr',x:10,y:10,text:'asndkajdkjalda-barcode',width:8,level:1} + ] + BluePrint.print(this.$store,ptintContext).then(()=>{ + console.log('print鎴愬姛璋冪敤') + }).catch(()=>{ + console.log('print璋冪敤鍑洪敊') + }) +} +~~~ +### 鎵撳嵃鏁版嵁瀛楁璇存槑 +> type锛宻tring锛屽彲閫夊�硷細(line)鐩寸嚎銆�(text)鏂囧瓧銆�(qr)浜岀淮鐮併��(bar)鏉″舰鐮� + +> x锛宯umber锛屾墦鍗版枃瀛椼�佷簩缁寸爜銆佹潯褰㈢爜鏃跺�欙紝璧峰鐐规í鍧愭爣 + +> y锛宯umber锛屾墦鍗版枃瀛椼�佷簩缁寸爜銆佹潯褰㈢爜鏃跺�欙紝璧峰鐐圭旱鍧愭爣 + +> x1锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝璧峰鐐规í鍧愭爣 + +> y1锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝璧峰鐐圭旱鍧愭爣 + +> x2锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝缁撴潫鐐规í鍧愭爣 + +> y2锛宯umber锛屾墦鍗扮洿绾挎椂鍊欙紝缁撴潫鐐圭旱鍧愭爣 + +> text锛宻tring锛屾墦鍗版枃瀛椼�佷簩缁寸爜銆佹潯褰㈢爜鏃跺�欙紝鎵撳嵃鍐呭 + +> size锛宯umber锛屾墦鍗版枃瀛楁椂鐨勫瓧浣撳ぇ灏忥紝鍙�夊�� 20/1/2/3/4/5/6/7 锛屽叾浠栫殑鏃跺�欓粯璁や负2 + +> width锛宯umber +>> 鎵撳嵃鐩寸嚎锛岃〃绀虹嚎瀹� +>> 鎵撳嵃浜岀淮鐮侊紝琛ㄧず浜岀淮鐮佸埢搴﹀�硷紝涓嶆槸鐢熸垚鐨勪簩缁寸爜鐨勫搴︼紝鍙栧�硷紙2鍒�15锛� +>> 鎵撳嵃鏉″舰鐮侊紝琛ㄧず鏉″舰鐮佸埢搴﹀�硷紝涓嶆槸鐢熸垚鐨勬潯褰㈢爜鐨勫搴︼紝鍙栧�硷紙2鍒�6锛� + +> level锛宯umber锛屾墦鍗颁簩缁寸爜鏃跺�欙紝绾犻敊绛夌骇锛屽彇鍊硷紙0鍒�20锛� + +> height锛宯umber锛屾墦鍗版潯褰㈢爜鏃跺�欙紝楂樺害锛屽彇鍊硷紙1鍒�255锛� + +> barType锛宯umber锛屾墦鍗版潯褰㈢爜鏃跺�欙紝鏉″舰鐮佺被鍨嬶紝鍙�夊�硷細 +>> 0锛欳ODE39锛� +>> 1锛欳ODE128锛� +>> 2锛欳ODE93锛� +>> 3锛欳ODEBAR锛� +>> 4锛欵AN8锛� +>> 5锛欵AN13锛� +>> 6锛歎PCA; +>> 7锛歎PC-E; +>> 8锛欼TF + +> rotate锛宯umber锛屾墦鍗版枃瀛楁椂鍊欙紝閫夋嫨瑙掑害 + +> bold锛宯umber锛屾墦鍗版枃瀛楁椂鍊欙紝鏄惁鍔犵矖(0鍚�1鏄�) + +> underline锛宐oolean锛屾墦鍗版枃瀛楁椂鍊欙紝涓嬪垝绾胯缃� + +> reverse锛宐oolean锛屾墦鍗版枃瀛楁椂鍊欙紝鍙嶈浆璁剧疆 + +------- +## 椤甸潰璇存槑 +### /pages/start/index +> 鍚姩椤碉紝鏍规嵁椤圭洰闇�姹傝皟鏁� + +### /pages/login/index +> 鐧诲綍椤碉紝涓�鑸笉浼氬ぇ鏀瑰姩浜嗭紝鏍规嵁椤圭洰闇�姹傚仛寰皟 + +### /pages/home/index +> 鐧诲綍鍚庣殑棣栭〉锛屾牴鎹」鐩渶姹傦紝寰堝彲鑳藉仛灞�閮ㄨ皟鏁� + +### /pages/baseTask/out +> 鍏ュ簱椤甸潰锛屾牴鎹」鐩渶姹傝皟鏁� + +### /pages/baseTask/out +> 鍑哄簱椤甸潰锛屾牴鎹」鐩渶姹傝皟鏁� + +### /pages/print/bluetoothConnection +> 鐗╄殏铓佽摑鐗欐墦鍗版満锛岃摑鐗欒繛鎺ラ〉闈紝鍑犱箮鏃犻渶鏀瑰姩 + +### /pages/setting/host +> 鍚庣鎺ュ彛璋冪敤鍩熷悕璁剧疆椤甸潰锛屽嚑涔庢棤闇�鏀瑰姩 + +----- +## json-server 鍓嶇鏁版嵁moke +### 鍚姩閰嶇疆锛屽鍥惧湪package.json涓紝鐒跺悗鍛戒护琛岃繍琛� +~~~ +npm run api +~~~ +> --port 3012 绔彛鍙疯缃负3012 +> --host 0.0.0.0 寮�鍚痠p鍦板潃璁块棶 +<img src="./mdImgs/1665970038354.jpg" style="width:100%" /> + +### RESET Api +> GET /demo 鑾峰彇鍏ㄩ儴鍒楄〃 +> GET /demo/鏁版嵁id 鑾峰彇璇︽儏 +> POST /demo 澧炲姞 +> PUT /demo/鏁版嵁id 鏁存潯鏁版嵁鏇挎崲 +> PATCH /demo/鏁版嵁id 淇敼鏌愪釜瀛楁 +> DELETE /demo/鏁版嵁id 鍒犻櫎 +### 鏉′欢鏌ヨ鍜屽垎椤垫煡璇� +#### 鏉′欢鏌ヨ锛屽瓧娈靛悕绉板悗澧炲姞 +> _gte 澶т簬绛変簬 +> _lte 灏忎簬绛変簬 +> _ne 涓嶇瓑浜� +> _like 鍖呭惈 + +#### 鍒嗛〉鏌ヨ +> _page 椤电爜锛屼粠1寮�濮� +> _limit 姣忛〉澶氬皯鏉℃暟鎹� +> _start 鏁版嵁绱㈠紩寮�濮嬶紝浠�0寮�濮� +> _end 鏁版嵁绱㈠紩缁撴潫锛屼笉鍖呭惈end绱㈠紩 + +妗堜緥锛欸ET妯$硦鏌ユ壘瀛楁name +~~~ +/demo?name_like=value +~~~ + +------- +## 鏂板缓椤甸潰姝ラ +#### 1銆侀厤缃畃ages.json +#### 2銆侀厤缃甤onfig/index.js涓殑path +#### 3銆侀椤甸厤缃〉闈㈠叆鍙o紙鏍规嵁闇�瑕侊級 \ No newline at end of file diff --git a/PipeLineLems.PDA/__json_server_mock__/db.json b/PipeLineLems.PDA/__json_server_mock__/db.json new file mode 100644 index 0000000..040c62a --- /dev/null +++ b/PipeLineLems.PDA/__json_server_mock__/db.json @@ -0,0 +1,155 @@ +{ + "users": [ + { + "id": 1, + "name": "灏忕孩" + } + ], + "demo": [ + { + "text1": "鏂囧瓧1", + "number": "58", + "id": 1 + }, + { + "id": 2, + "text1": "鏂囧瓧21", + "text2": "鏂囧瓧22", + "text3": "鏂囧瓧23", + "number": "52" + }, + { + "id": 3, + "text1": "鏂囧瓧31", + "text2": "鏂囧瓧32", + "text3": "鏂囧瓧33", + "number": "1043" + }, + { + "id": 4, + "text1": "鏂囧瓧41", + "text2": "鏂囧瓧42", + "text3": "鏂囧瓧43", + "number": 1004 + }, + { + "id": 5, + "text1": "鏂囧瓧51", + "text2": "鏂囧瓧52", + "text3": "鏂囧瓧53", + "number": 1005 + }, + { + "id": 6, + "text1": "鏂囧瓧61", + "text2": "鏂囧瓧62", + "text3": "鏂囧瓧63", + "number": 1006 + }, + { + "id": 7, + "text1": "鏂囧瓧71", + "text2": "鏂囧瓧72", + "text3": "鏂囧瓧73", + "number": 1007 + }, + { + "id": 8, + "text1": "鏂囧瓧81", + "text2": "鏂囧瓧82", + "text3": "鏂囧瓧83", + "number": 1008 + }, + { + "id": 91, + "text1": "鏂囧瓧91", + "text2": "鏂囧瓧92", + "text3": "鏂囧瓧93", + "number": 1009 + }, + { + "id": 10, + "text1": "鏂囧瓧101", + "text2": "鏂囧瓧102", + "text3": "鏂囧瓧103", + "number": 1010 + }, + { + "id": 11, + "text1": "鏂囧瓧111", + "text2": "鏂囧瓧112", + "text3": "鏂囧瓧113", + "number": 1011 + }, + { + "id": 12, + "text1": "鏂囧瓧121", + "text2": "鏂囧瓧122", + "text3": "鏂囧瓧123", + "number": 1012 + }, + { + "id": 13, + "text1": "鏂囧瓧131", + "text2": "鏂囧瓧132", + "text3": "鏂囧瓧133", + "number": 1013 + }, + { + "id": 14, + "text1": "鏂囧瓧141", + "text2": "鏂囧瓧142", + "text3": "鏂囧瓧143", + "number": 1014 + }, + { + "id": 15, + "text1": "鏂囧瓧151", + "text2": "鏂囧瓧152", + "text3": "鏂囧瓧153", + "number": 1015 + }, + { + "id": 16, + "text1": "鏂囧瓧161", + "text2": "鏂囧瓧162", + "text3": "鏂囧瓧163", + "number": 1016 + }, + { + "id": 17, + "text1": "鏂囧瓧171", + "text2": "鏂囧瓧172", + "text3": "鏂囧瓧173", + "number": 1017 + }, + { + "id": 18, + "text1": "鏂囧瓧181", + "text2": "鏂囧瓧182", + "text3": "鏂囧瓧183", + "number": 1018 + }, + { + "id": 19, + "text1": "鏂囧瓧191", + "text2": "鏂囧瓧192", + "text3": "鏂囧瓧193", + "number": 1019 + }, + { + "id": 20, + "text1": "鏂囧瓧201", + "text2": "鏂囧瓧202", + "text3": "鏂囧瓧203", + "number": 1020 + }, + { + "id": 21, + "text1": "鏂囧瓧211", + "text2": "鏂囧瓧212", + "text3": "鏂囧瓧213", + "number": 1021 + } + ] +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/PointHandling.js b/PipeLineLems.PDA/api/PointHandling.js new file mode 100644 index 0000000..2250478 --- /dev/null +++ b/PipeLineLems.PDA/api/PointHandling.js @@ -0,0 +1,12 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 鐐瑰埌鐐规惉杩� /api/wcsToWms/pointHandlingTask +export function pointHandlingTask (data) { + return request({ + url: `/api/wcsToWms/pointHandlingTask`, + method: 'post', + data + }) +} \ No newline at end of file diff --git "a/PipeLineLems.PDA/api/api - \346\265\213\350\257\225.js" "b/PipeLineLems.PDA/api/api - \346\265\213\350\257\225.js" new file mode 100644 index 0000000..cd86da8 --- /dev/null +++ "b/PipeLineLems.PDA/api/api - \346\265\213\350\257\225.js" @@ -0,0 +1,93 @@ +// 鍚屾椂鍙戦�佸紓姝ヨ姹傜殑娆℃暟锛岄槻姝竴娆$偣鍑绘湁澶氭璇锋眰 +let ajaxTime = 0; +// export const baseUrl = 'http://10.10.40.166:2066' // http://localhost:5005 +export const baseUrl = 'http://192.168.1.100:2001' +// export const baseUrl = 'http://192.168.1.100:2001' + +// 鍏叡鐨剅equest鏂规硶 +function request(option) { + //璇锋眰澶�. + const header = {}; + // 杩斿洖鏂瑰紡 + header['Content-Type'] = option.contentType || 'application/json'; + // 鍒ゆ柇鏄惁鏄櫥褰曡姹傦紝涓嶆槸鍦╤eader涓姞涓妕oken + if (option.url != '/login') { + header['Authorization'] = uni.getStorageSync('user_token') ? 'Bearer ' + uni.getStorageSync('user_token') : ''; + header['x-Authorization'] = uni.getStorageSync('refresh_token') ? 'Bearer ' + uni.getStorageSync('refresh_token') : ''; + header.Authorization = uni.getStorageSync('user_token') ? 'Bearer ' + uni.getStorageSync('user_token') : '' + } + ajaxTime++; + // 鏄剧ず鍔犺浇涓晥鏋� + uni.showLoading({ + title: '鍔犺浇涓�...', + mask: true + }); + + return new Promise((resolve, reject) => { + uni.request({ + url: baseUrl + option.url, + method: option.method || 'POST', + data: option.data || {}, + header, + timeout: 10000, + success: (res) => { + if(res.statusCode == 200) { + console.log(res,'res'); + const result = res.data; + if (result.code === 200||!Boolean(result.code)) { + // 璇锋眰鐘舵�佹甯革紝杩斿洖鏁版嵁 + resolve(result) + } else if (result.code === 401) { + //token澶辨晥锛屾竻闄oken鍏抽棴褰撳墠椤甸潰锛岃烦杞埌鐧诲綍 + uni.showModal({ + title: '鎻愮ず', + content: 'token澶辨晥锛岃閲嶆柊鐧婚檰', + showCancel: false, + success:()=>{ + // 娓呮token + uni.removeStorageSync('token') + // 璺宠浆鍒扮櫥褰� + uni.redirectTo({ + url: '/pages/login/index' + }) + } + }) + + } else { + uni.showModal({ + title: '鎻愮ず', + content: `${result.code}:${JSON.stringify(result.message)}`, + showCancel: false + }) + // 寮傚父锛岃繑鍥炲紓甯竎ode鍜宮essage + reject(result) + } + + }else { + uni.showModal({ + title: '鎻愮ず', + content: `${res.statusCode}:${JSON.stringify(res.errMsg)}`, + showCancel: false + }) + + const {statusCode,errMsg} = res; + reject({statusCode,errMsg}) + } + }, + fail: (err) => { + // 璇锋眰澶辫触 + reject(err); + }, + complete: () => { + // 璇锋眰瀹屾垚鍚庡垽鏂姸鎬� + ajaxTime--; + // 鍙湁鍊肩瓑浜�0锛屾墠娓呴櫎杞湀鏁堟灉 + if (ajaxTime == 0) { + uni.hideLoading() + } + } + }) + }) +} + +export default request diff --git "a/PipeLineLems.PDA/api/api - \347\224\237\344\272\247.js" "b/PipeLineLems.PDA/api/api - \347\224\237\344\272\247.js" new file mode 100644 index 0000000..589255c --- /dev/null +++ "b/PipeLineLems.PDA/api/api - \347\224\237\344\272\247.js" @@ -0,0 +1,92 @@ +// 鍚屾椂鍙戦�佸紓姝ヨ姹傜殑娆℃暟锛岄槻姝竴娆$偣鍑绘湁澶氭璇锋眰 +let ajaxTime = 0; +export const baseUrl = 'http://127.0.0.1:18000' + + +// 鍏叡鐨剅equest鏂规硶 +function request(option) { + //璇锋眰澶�. + const header = {}; + // 杩斿洖鏂瑰紡 + header['Content-Type'] = option.contentType || 'application/json'; + // 鍒ゆ柇鏄惁鏄櫥褰曡姹傦紝涓嶆槸鍦╤eader涓姞涓妕oken + if (option.url != '/login') { + header['Authorization'] = uni.getStorageSync('user_token') ? 'Bearer ' + uni.getStorageSync('user_token') : ''; + header['x-Authorization'] = uni.getStorageSync('refresh_token') ? 'Bearer ' + uni.getStorageSync('refresh_token') : ''; + header.Authorization = uni.getStorageSync('user_token') ? 'Bearer ' + uni.getStorageSync('user_token') : '' + } + ajaxTime++; + // 鏄剧ず鍔犺浇涓晥鏋� + uni.showLoading({ + title: '鍔犺浇涓�...', + mask: true + }); + + return new Promise((resolve, reject) => { + uni.request({ + url: baseUrl + option.url, + method: option.method || 'POST', + data: option.data || {}, + header, + timeout: 10000, + success: (res) => { + if(res.statusCode == 200) { + console.log(res,'res'); + const result = res.data; + if (result.code === 200||!Boolean(result.code)) { + // 璇锋眰鐘舵�佹甯革紝杩斿洖鏁版嵁 + resolve(result) + } else if (result.code === 401) { + //token澶辨晥锛屾竻闄oken鍏抽棴褰撳墠椤甸潰锛岃烦杞埌鐧诲綍 + uni.showModal({ + title: '鎻愮ず', + content: 'token澶辨晥锛岃閲嶆柊鐧婚檰', + showCancel: false, + success:()=>{ + // 娓呮token + uni.removeStorageSync('token') + // 璺宠浆鍒扮櫥褰� + uni.redirectTo({ + url: '/pages/login/index' + }) + } + }) + + } else { + uni.showModal({ + title: '鎻愮ず', + content: `${result.code}:${JSON.stringify(result.message)}`, + showCancel: false + }) + // 寮傚父锛岃繑鍥炲紓甯竎ode鍜宮essage + reject(result) + } + + }else { + uni.showModal({ + title: '鎻愮ず', + content: `${res.statusCode}:${JSON.stringify(res.errMsg)}`, + showCancel: false + }) + + const {statusCode,errMsg} = res; + reject({statusCode,errMsg}) + } + }, + fail: (err) => { + // 璇锋眰澶辫触 + reject(err); + }, + complete: () => { + // 璇锋眰瀹屾垚鍚庡垽鏂姸鎬� + ajaxTime--; + // 鍙湁鍊肩瓑浜�0锛屾墠娓呴櫎杞湀鏁堟灉 + if (ajaxTime == 0) { + uni.hideLoading() + } + } + }) + }) +} + +export default request diff --git a/PipeLineLems.PDA/api/api.js b/PipeLineLems.PDA/api/api.js new file mode 100644 index 0000000..589255c --- /dev/null +++ b/PipeLineLems.PDA/api/api.js @@ -0,0 +1,92 @@ +// 鍚屾椂鍙戦�佸紓姝ヨ姹傜殑娆℃暟锛岄槻姝竴娆$偣鍑绘湁澶氭璇锋眰 +let ajaxTime = 0; +export const baseUrl = 'http://127.0.0.1:18000' + + +// 鍏叡鐨剅equest鏂规硶 +function request(option) { + //璇锋眰澶�. + const header = {}; + // 杩斿洖鏂瑰紡 + header['Content-Type'] = option.contentType || 'application/json'; + // 鍒ゆ柇鏄惁鏄櫥褰曡姹傦紝涓嶆槸鍦╤eader涓姞涓妕oken + if (option.url != '/login') { + header['Authorization'] = uni.getStorageSync('user_token') ? 'Bearer ' + uni.getStorageSync('user_token') : ''; + header['x-Authorization'] = uni.getStorageSync('refresh_token') ? 'Bearer ' + uni.getStorageSync('refresh_token') : ''; + header.Authorization = uni.getStorageSync('user_token') ? 'Bearer ' + uni.getStorageSync('user_token') : '' + } + ajaxTime++; + // 鏄剧ず鍔犺浇涓晥鏋� + uni.showLoading({ + title: '鍔犺浇涓�...', + mask: true + }); + + return new Promise((resolve, reject) => { + uni.request({ + url: baseUrl + option.url, + method: option.method || 'POST', + data: option.data || {}, + header, + timeout: 10000, + success: (res) => { + if(res.statusCode == 200) { + console.log(res,'res'); + const result = res.data; + if (result.code === 200||!Boolean(result.code)) { + // 璇锋眰鐘舵�佹甯革紝杩斿洖鏁版嵁 + resolve(result) + } else if (result.code === 401) { + //token澶辨晥锛屾竻闄oken鍏抽棴褰撳墠椤甸潰锛岃烦杞埌鐧诲綍 + uni.showModal({ + title: '鎻愮ず', + content: 'token澶辨晥锛岃閲嶆柊鐧婚檰', + showCancel: false, + success:()=>{ + // 娓呮token + uni.removeStorageSync('token') + // 璺宠浆鍒扮櫥褰� + uni.redirectTo({ + url: '/pages/login/index' + }) + } + }) + + } else { + uni.showModal({ + title: '鎻愮ず', + content: `${result.code}:${JSON.stringify(result.message)}`, + showCancel: false + }) + // 寮傚父锛岃繑鍥炲紓甯竎ode鍜宮essage + reject(result) + } + + }else { + uni.showModal({ + title: '鎻愮ず', + content: `${res.statusCode}:${JSON.stringify(res.errMsg)}`, + showCancel: false + }) + + const {statusCode,errMsg} = res; + reject({statusCode,errMsg}) + } + }, + fail: (err) => { + // 璇锋眰澶辫触 + reject(err); + }, + complete: () => { + // 璇锋眰瀹屾垚鍚庡垽鏂姸鎬� + ajaxTime--; + // 鍙湁鍊肩瓑浜�0锛屾墠娓呴櫎杞湀鏁堟灉 + if (ajaxTime == 0) { + uni.hideLoading() + } + } + }) + }) +} + +export default request diff --git a/PipeLineLems.PDA/api/bind.js b/PipeLineLems.PDA/api/bind.js new file mode 100644 index 0000000..385a5ff --- /dev/null +++ b/PipeLineLems.PDA/api/bind.js @@ -0,0 +1,105 @@ + +import request from '@/api/api.js' +import qs from 'qs' + + +// 鏍规嵁鎵樼洏缂栧彿鑾峰彇鐗╂枡鎵樼洏缁戝畾淇℃伅 +export function getForContainerCode (data) { + return request({ + url: `/api/materialContainer/getForContainerNo?${qs.stringify(data)}`, + method: 'get' + }) +} +// 鏍规嵁鎵樼洏缂栧彿鑾峰彇鎵樼洏鎵樼洏缁戝畾淇℃伅 +export function getForEmptyContainerNo (data) { + return request({ + url: `/api/materialContainer/getForEmptyContainerNo?${qs.stringify(data)}`, + method: 'get' + }) +} + + +// 鏍规嵁鐗╂枡鐮佽幏鍙栫墿鏂欎俊鎭� +export function getForMaterialNo (data) { + return request({ + url: `/api/material/getForMaterialNo?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 缁勭洏 +export function bindMaterialContainer(data) { + return request({ + url: `/api/materialContainer/add`, + method: 'post', + data + }) +} + +// 鍒嗘嫞 +export function pickPipeSpecCode(data) { + return request({ + url: `/api/v1/pipelinelems/workplanpublic/pick`, + method: 'post', + data + }) +} + +// 鍏ュ簱 1鏄嚜鍒朵欢缁勭洏鍏ュ簱锛� 4鏄鍗忎欢缁勭洏鍏ュ簱锛� +export function addInBound(data) { + return request({ + url: `/api/inAndOutOrder/addInBound`, + method: 'post', + data + }) +} + +//鑷埗浠跺叆搴� +export function addInVirtualPlace(data) { + return request({ + url: `/api/inAndOutOrder/addInVirtualPlace`, + method: 'post', + data + }) +} + + +//澶栧崗浠跺叆搴� +export function addInVirtualWxjPlace(data) { + return request({ + url: `/api/inAndOutOrder/addInBound`, + method: 'post', + data + }) +} + + + +// 娴嬭瘯PLC瑙﹀彂鐢熸垚鍏ュ簱浠诲姟 /api/wcsToWms/addAGVTask +export function addAGVTask(data) { + return request({ + url: `/api/wcsToWms/addAGVTask`, + method: 'post', + data + }) +} + + +// 绌烘墭鍏ュ簱 +export function addEmptyContainerReturn(data) { + return request({ + url: `/api/inAndOutOrder/emptyContainerReturn`, + method: 'post', + data + }) +} + + +// 骞冲簱鍏ュ簱 +export function AddInBoundForFlat(data) { + return request({ + url: `/api/inAndOutOrder/AddInBoundForFlat`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/callEmptyContainer.js b/PipeLineLems.PDA/api/callEmptyContainer.js new file mode 100644 index 0000000..98a6334 --- /dev/null +++ b/PipeLineLems.PDA/api/callEmptyContainer.js @@ -0,0 +1,14 @@ + + +import request from '@/api/api.js' +import qs from 'qs' + + +// 鑾峰彇鏋氫妇淇℃伅 /api/wcsToWms/callEmptyContainer +export function callEmptyContainer (data) { + return request({ + url: `/api/wcsToWms/callEmptyContainer`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/common.js b/PipeLineLems.PDA/api/common.js new file mode 100644 index 0000000..cebe9ef --- /dev/null +++ b/PipeLineLems.PDA/api/common.js @@ -0,0 +1,53 @@ + +import request from '@/api/api.js' +import qs from 'qs' + + +// 鑾峰彇鏋氫妇淇℃伅 /api/sysEnumData/list +export function getSysEnumData (data) { + return request({ + url: `/api/sysDictType/dataList?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鏍规嵁鎵樼洏缂栧彿鑾峰彇鎵樼洏淇℃伅 +export function getContainerInfo (data) { + return request({ + url: `/api/container/detail?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鏍规嵁搴撳尯鍙疯幏鍙栧簱浣嶅垪琛� /api/place/getPlaceListByArea +export function getPalceList (data) { + return request({ + url: `/api/place/getPlaceListByArea?${qs.stringify(data)}`, + method: 'get', + }) +} + + +// 鏍规嵁搴撳尯鍙疯幏鍙栧簱鍖轰俊鎭� /api/area/list +export function getAreaInfo(data) { + return request({ + url: `/api/area/list?${qs.stringify(data)}`, + method: 'get', + }) +} +// 鍦版爣缁戝畾搴撳尯淇℃伅 /api/area/list +export function getAreaListContaninerBind(data) { + return request({ + url: `/api/area/getAreaList?${qs.stringify(data)}`, + method: 'get', + }) +} + + +// 鏍规嵁搴撲綅id鑾峰彇鐗╂枡淇℃伅 /api/place/getMaterialDetail +export function getMaterialDetail(data) { + return request({ + url: `/api/place/getMaterialDetail?${qs.stringify(data)}`, + method: 'get', + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/containerHandle.js b/PipeLineLems.PDA/api/containerHandle.js new file mode 100644 index 0000000..61cfcfa --- /dev/null +++ b/PipeLineLems.PDA/api/containerHandle.js @@ -0,0 +1,64 @@ + +import request from '@/api/api.js' +import qs from 'qs' + + +// 鏍规嵁鎵樼洏缂栧彿鑾峰彇鎵樼洏搴撲綅缁戝畾淇℃伅 api/container/getContainerPlaceInfo +export function getContainerPlaceInfo (data) { + return request({ + url: `/api/container/getContainerPlaceInfo?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鎵樼洏鎿嶄綔 +export function containerHandle (data) { + return request({ + url: `/api/container/containerHandle`, + method: 'post', + data + }) +} + +// 鏍规嵁搴撲綅鍙疯幏鍙栨墭鐩樺簱浣嶄俊鎭� +export function getContainerPlaceByPlace (data) { + return request({ + url: `/api/container/getContainerPlaceByPlace?${qs.stringify(data)}`, + method: 'get', + }) +} + +//涓�閿В缁� +export function oneTouchUnBindHandle (data) { + return request({ + url: `/api/container/oneTouchUnBindHandle`, + method: 'post', + data + }) +} + +//鏌ュ簱瀛樼墿鏂� +export function StockPageHandle(data) { + return request({ + url: `/api/materialStock/StockPage`, + method: 'post', + data + }) +} + +//鏌ュ簱瀛樼墿鏂�+搴撲綅淇℃伅 +export function StockPageForPdaCwgl(data) { + return request({ + url: `/api/materialStock/StockPageForPdaCwgl`, + method: 'post', + data + }) +} +//鏌ュ簱瀛樼墿鏂� +export function placebatchUpdate (data) { + return request({ + url: `/api/place/batchUpdate`, + method: 'post', + data + }) +} diff --git a/PipeLineLems.PDA/api/emptyIn.js b/PipeLineLems.PDA/api/emptyIn.js new file mode 100644 index 0000000..767e357 --- /dev/null +++ b/PipeLineLems.PDA/api/emptyIn.js @@ -0,0 +1,46 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 鑾峰彇鎵樼洏淇℃伅 /api/wmsinwarehouse/GetContainer +export function GetContainer (data) { + return request({ + url: `/api/wmsinwarehouse/GetContainer?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鑾峰彇鍗曟嵁淇℃伅 /api/wmsinwarehouse/PadGetMaterial +export function GetMaterialPad (data) { + return request({ + url: `/api/wmsinwarehouse/PadGetMaterial?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 缁勭洏 /api/wmsinwarehouse/GroupDisk +export function GroupDisk (data) { + return request({ + url: `/api/wmsinwarehouse/GroupDisk`, + method: 'post', + data + }) +} + +// 鍏ュ簱 /api/wmsinwarehouse/PdaInWarehouse +export function PdaInWarehouse (data) { + return request({ + url: `/api/wmsinwarehouse/PdaInWarehouse`, + method: 'post', + data + }) +} + +// 绌烘墭缁戝畾 +export function emptyContainerBindKTHCPlace (data) { + return request({ + url: `/api/container/emptyContainerBindKTHCPlace`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/exception.js b/PipeLineLems.PDA/api/exception.js new file mode 100644 index 0000000..dff9b4c --- /dev/null +++ b/PipeLineLems.PDA/api/exception.js @@ -0,0 +1,30 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 鏌ヨ寮傚父宸ヤ綅搴撲綅 +export function lisNoPage (data) { + return request({ + url: `/api/place/listNoPage`, + method: 'post', + data + }) +} + +// 鑾峰彇寮傚父浠朵俊鎭� +export function exceptionInfo (data) { + return request({ + url: `/api/wmsSortOrder/exceptionInfo?${qs.stringify(data)}`, + method: 'get', + }) +} + +// pda浜哄伐鍑哄簱/鑷姩鍑哄簱 +export function outBound (data) { + return request({ + url: `/api/wmsSortOrder/exceptionHandle`, + method: 'post', + data + }) +} + diff --git a/PipeLineLems.PDA/api/loadingDelivery.js b/PipeLineLems.PDA/api/loadingDelivery.js new file mode 100644 index 0000000..c81243b --- /dev/null +++ b/PipeLineLems.PDA/api/loadingDelivery.js @@ -0,0 +1,38 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 杩斿洖鐩爣宸ヤ綅 +export function getLoadingDeliveryEnd (data) { + return request({ + url: `/api/loadingDelivery/LoadingDeliveryEnd?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鍒涘缓agv浠诲姟 +export function loadingDeliveryCreate (data) { + return request({ + url: `/api/loadingDelivery/LoadingDeliveryCreate`, + method: 'post', + data + }) +} + +// 瑁呮枡瀹屾垚 +export function loadingDeliveryContinueOne (data) { + return request({ + url: `/api/loadingDelivery/LoadingDeliveryContinueOne`, + method: 'post', + data + }) +} + +// 鍙栨枡瀹屾垚 +export function loadingDeliveryContinueTwo (data) { + return request({ + url: `/api/loadingDelivery/LoadingDeliveryContinueTwo`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/receiptExecution.js b/PipeLineLems.PDA/api/receiptExecution.js new file mode 100644 index 0000000..67c03a5 --- /dev/null +++ b/PipeLineLems.PDA/api/receiptExecution.js @@ -0,0 +1,23 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 鏍规嵁鍗曟嵁鍙疯幏鍙栨槑缁� /api/pdareceiptorder/GetOrderDetail +export function GetOrderDetail (data) { + return request({ + url: `/api/pdareceiptorder/GetOrderDetail?${qs.stringify(data)}`, + method: 'get' + }) +} + + +// 鍏ュ簱 /api/pdareceiptorder/ConfirmReceipt +export function confirmReceipt (data) { + return request({ + url: `/api/pdareceiptorder/ConfirmReceipt`, + method: 'post', + data + }) +} + + diff --git a/PipeLineLems.PDA/api/replenishMent.js b/PipeLineLems.PDA/api/replenishMent.js new file mode 100644 index 0000000..852433a --- /dev/null +++ b/PipeLineLems.PDA/api/replenishMent.js @@ -0,0 +1,20 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 鑾峰彇鏋氫妇淇℃伅 /api/sysEnumData/list +export function materialStockListNoPage (data) { + return request({ + url: `/api/inAndOutOrder/getMaterialListNoPage?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 澧炲姞鍑哄簱鍗曟嵁 /api/inAndOutOrder/addRange +export function addRange (data) { + return request({ + url: `/api/inAndOutOrder/addRange`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/slicingOff.js b/PipeLineLems.PDA/api/slicingOff.js new file mode 100644 index 0000000..12b0fc4 --- /dev/null +++ b/PipeLineLems.PDA/api/slicingOff.js @@ -0,0 +1,12 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 绌烘墭鍑哄簱 /api/callempty/PdaContainerOut +export function PdaContainerOut (data) { + return request({ + url: `/api/callempty/PdaContainerOut`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/slicingOn.js b/PipeLineLems.PDA/api/slicingOn.js new file mode 100644 index 0000000..c2e559c --- /dev/null +++ b/PipeLineLems.PDA/api/slicingOn.js @@ -0,0 +1,36 @@ +import request from '@/api/api.js' +import qs from 'qs' + + +// 鑾峰彇鎵樼洏淇℃伅 /api/materialsorting/GetSortInfo +export function GetSortInfo (data) { + return request({ + url: `/api/materialsorting/GetSortInfo?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鍒嗘嫞纭 /api/materialsorting/SortSure +export function SortSure (data) { + return request({ + url: `/api/materialsorting/SortSure`, + method: 'post', + data + }) +} + +// 鍑哄簱鍗曟煡璇� /api/materialsorting/SortPdaPage +export function SortPdaPage (data) { + return request({ + url: `/api/materialsorting/SortPdaPage?${qs.stringify(data)}`, + method: 'get' + }) +} + +// 鏌ヨ鍑哄簱鍗曡幏寰楀垎鎷e崟鏄庣粏 /api/materialsorting/SortPdaDetailPage +export function SortPdaDetailPage(data) { + return request({ + url: `/api/materialsorting/SortPdaDetailPage?${qs.stringify(data)}`, + method: 'get' + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/api/sorting.js b/PipeLineLems.PDA/api/sorting.js new file mode 100644 index 0000000..3667f5a --- /dev/null +++ b/PipeLineLems.PDA/api/sorting.js @@ -0,0 +1,29 @@ +import request from '@/api/api.js' +import qs from 'qs' + +// 鏌ヨ鍒嗘嫞淇℃伅 +export function SortInfo (data) { + return request({ + url: `/api/wmsSortOrder/sortInfo`, + method: 'post', + data + }) +} + +// 鏌ヨ鍗曟嵁璇︽儏淇℃伅 +export function noPage (data) { + return request({ + url: `/api/InAndOutOrder/NoPage`, + method: 'post', + data + }) +} + +// 娣诲姞鍒嗘嫞璇︽儏 +export function addSortDetail (data) { + return request({ + url: `/api/wmsSortOrder/AddSortDetail`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/PipeLineLems.PDA/components/.hbuilderx/launch.json b/PipeLineLems.PDA/components/.hbuilderx/launch.json new file mode 100644 index 0000000..582561b --- /dev/null +++ b/PipeLineLems.PDA/components/.hbuilderx/launch.json @@ -0,0 +1,16 @@ +{ // launch.json 閰嶇疆浜嗗惎鍔ㄨ皟璇曟椂鐩稿叧璁剧疆锛宑onfigurations涓嬭妭鐐瑰悕绉板彲涓� app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype椤瑰彲閰嶇疆鍊间负local鎴杛emote, local浠h〃鍓嶇杩炴湰鍦颁簯鍑芥暟锛宺emote浠h〃鍓嶇杩炰簯绔簯鍑芥暟 + "version": "0.0", + "configurations": [{ + "app-plus" : + { + "launchtype" : "local" + }, + "default" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } + ] +} diff --git a/PipeLineLems.PDA/components/ActionUserRow.vue b/PipeLineLems.PDA/components/ActionUserRow.vue new file mode 100644 index 0000000..027b9b4 --- /dev/null +++ b/PipeLineLems.PDA/components/ActionUserRow.vue @@ -0,0 +1,31 @@ +<template> + <view class="action-user-row-compontent">鎿嶄綔浜猴細{{userName}}</view> +</template> + +<script> +export default { + name:'actionUserRowCompontent', + data(){ + return { + userName:'' + } + }, + created() { + let _user = this.$store.getters['user/getUserInfo']; + this.userName = _user.name || _user.nickName; + } +} +</script> + +<style scoped lang="scss"> +.action-user-row-compontent{ + text-align: right; + padding:8rpx 20rpx; + position: absolute; + box-sizing: border-box; + width: 100%; + top: 0; + left: 0; + z-index: 1; +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/AutoCompleteScanInputFormItem.vue b/PipeLineLems.PDA/components/AutoCompleteScanInputFormItem.vue new file mode 100644 index 0000000..8e4f2a8 --- /dev/null +++ b/PipeLineLems.PDA/components/AutoCompleteScanInputFormItem.vue @@ -0,0 +1,367 @@ +<template> + <view class="auto-complete-scan-input-form-item-compontent"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="input-row" @tap.stop="onOpenPicker"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <text v-if="!innerValue" class="placeholder">{{placeholder}}</text> + <text v-else>{{innerValue}}</text> + </view> + <view class="close-view" @tap.stop="onClear" v-if="innerValue && clearable"> + <view class="close-circle"> + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + </view> + </view> + <view class="msg-row" v-if="msg" :class="[msgType==='info'?'info-type':'']">{{msg}}</view> + + <u-popup mode="center" :show="pickerVisible" :closeOnClickOverlay="false" :safeAreaInsetTop="false" :safeAreaInsetBottom="false"> + <view class="auto-complete-picker-page" :style="{ + paddingTop:safetySize.top+'px', + paddingBottom:safetySize.bottom+'px', + paddingLeft:safetySize.left+'px', + paddingRight:safetySize.right+'px' + }"> + <view class="picker-input-box"> + <view class="input-row"> + <view class="input-view"> + <u--input + :clearable="true" + border="none" + :type="type" + :placeholder="placeholder" + :focus="pickerFocus" + v-model.trim="pickerValue" + @clear="onPickerClear" + @confirm="onPickerInputConfirm" + /> + </view> + <view class="scan-view" v-if="hasScan"> + <view @tap.stop="onPickerScan"><u-icon name="scan" color="#F18201" :size="32"></u-icon></view> + </view> + </view> + </view> + <view class="picker-err-box" v-if="pickerErrMsg">{{pickerErrMsg}}</view> + <view class="picker-list-view"> + <view class="picker-list-group"> + <view class="picker-item auto-wrap" v-for="(item,index) in list" :key="'picker-item-'+index" @tap.stop="onItemClick(item)">{{item}}</view> + </view> + </view> + <view class="picker-bottom-btns"> + <view class="btn-frame"><u-button text="鍙� 娑�" @click="onCancelPicker"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="纭� 璁�" @click="onPickerConfirm"></u-button></view> + </view> + </view> + </u-popup> + </view> +</template> + +<script> +import { getObjectType } from '@/static/js/utils/index.js' +export default { + name:'autoCompleteScanInputFormItemCompontent', + emits:['input','changeOptions','clear','confirm','change'], + props:{ + type:{ + type:String, + default:'text' + }, + label:{ + type:String, + default:'' + }, + placeholder:{ + type:String, + default:'璇疯緭鍏�...' + }, + msg:{ + type:String, + default:'' + }, + pickerErrMsg:{ + type:String, + default:'' + }, + msgType:{ + type:String, + default:'error' + }, + value:{ + type:[String,Number,null], + default:null + }, + hasScan:{ + type:Boolean, + default:true + }, + disabled:{ + type:Boolean, + default:false + }, + clearable:{ + type:Boolean, + default:true + }, + required:{ + type:Boolean, + default:false + }, + initPickerList:{ + type:Boolean, + default:false + } + }, + data(){ + return { + innerValue:'', + pickerValue:'', + pickerVisible:false, + pickerFocus:false, + list:[], + safetySize:{ + top:0, + bottom:0, + left:0, + right:0 + } + } + }, + watch:{ + value(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerValue = newVal; + } + }, + innerValue(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('input',newVal) + this.$emit('change',newVal) + } + } + }, + methods:{ + onOpenPicker(){ + this.pickerValue = this.innerValue + this.pickerVisible = true + this.$nextTick(()=>{ + this.pickerFocus = true + }) + if (this.initPickerList) { + this.getPickerList() + } + }, + onClear(){ + this.innerValue = null; + this.$emit('clear') + }, + onPickerClear(){ + this.pickerValue = null + }, + onPickerInputConfirm(){ + this.getPickerList() + }, + getPickerList(){ + this.$emit('changeOptions',this.pickerValue,(d)=>{ + if (getObjectType(d)==='array') { + this.list = [...d] + } + }) + }, + onItemClick(val){ + this.pickerValue = val; + this.list = [] + }, + onPickerScan(){ + uni.scanCode({ + success:(res)=>{ + this.pickerValue = res.result; + this.getPickerList() + }, + fail:function(){ + console.log('scanCode fail') + } + }) + }, + closePicker(){ + this.pickerVisible = false + this.pickerFocus = false + }, + onCancelPicker(){ + this.closePicker() + }, + onPickerConfirm(){ + this.innerValue = this.pickerValue + this.$emit('confirm',this.innerValue) + this.closePicker() + } + }, + created() { + this.innerValue = this.value + }, + beforeMount(){ + let safety = this.$store.getters['system/getSafety']; + if (safety) { + this.safetySize.top = safety.top + this.safetySize.bottom = safety.bottom + this.safetySize.left = safety.left + this.safetySize.right = safety.right + } else { + uni.getSystemInfo({ + success:(res=>{ + if (!res.safeAreaInsets) res.safeAreaInsets = {} + this.safetySize.top = res.safeAreaInsets.top || 0; + this.safetySize.bottom = res.safeAreaInsets.bottom || 0; + this.safetySize.left = res.safeAreaInsets.left || 0; + this.safetySize.right = res.safeAreaInsets.right || 0; + }) + }) + } + } +} +</script> + +<style scoped lang="scss"> +.auto-complete-scan-input-form-item-compontent{ + width: 100%; + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + } + .msg-row{ + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break:break-all; + word-wrap:break-word; + &.info-type{ + color:$color-blue; + } + } +} +.input-row{ + width: 100%; + height: 90rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .close-view{ + .close-circle{ + width: 20px; + height: 20px; + border-radius: 50%; + background-color: #c6c7cb; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + transform: scale(0.82); + margin-left: 4px; + } + } + .scan-view,.close-view{ + flex-shrink: 0; + } + .scan-view,.close-view{ + display: flex; + align-items: center; + justify-content: center; + } + .scan-view{ + padding-right: 10rpx; + } + .input-view{ + flex-grow: 1; + padding-left: 20rpx; + font-size: 30rpx; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + color: rgb(48, 49, 51); + .placeholder{ + color: rgb(192, 196, 204); + } + } + &>.mask{ + background-color: #000; + opacity: 0.25; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + } +} +.auto-complete-picker-page{ + width: 100vw; + height: 100vh; + box-sizing: border-box; + background-color: #f2f2f2; + display: flex; + flex-direction: column; + .picker-input-box,.picker-bottom-btns,.picker-err-box{ + flex-shrink: 0; + } + .picker-input-box{ + padding: 16rpx; + .input-row{ + border-radius: 6rpx; + } + } + .picker-err-box{ + color: $u-error; + padding: 0 16rpx 16rpx 16rpx; + line-height: 1.3; + font-size: 24rpx; + word-break:break-all; + word-wrap:break-word; + } + .picker-bottom-btns{ + display: flex; + padding: 10rpx 20rpx; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } + } + .picker-list-view{ + flex-grow: 1; + height: 1px; + background-color: $uni-bg-color; + overflow: auto; + .picker-list-group{ + padding: 12rpx 16rpx; + .picker-item{ + text-align: center; + background-image: linear-gradient(to right, $color-paimary-darken, $color-paimary-lighten); + border: 1px solid #e4e4e4; + border-radius: 10rpx; + padding: 20rpx; + margin-bottom: 16rpx; + &:last-child{ + margin-bottom: 0; + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/DefaultHeaderPageLayout.vue b/PipeLineLems.PDA/components/DefaultHeaderPageLayout.vue new file mode 100644 index 0000000..4b31618 --- /dev/null +++ b/PipeLineLems.PDA/components/DefaultHeaderPageLayout.vue @@ -0,0 +1,81 @@ +<template> + <header-page-layout ref="page" :title="title" base-background-color="#f8f8ff" background-color="#f2f2f2" @headerclick="onHeaderClick"> + <template v-slot:headerleft><u-icon name="arrow-left"></u-icon></template> + <template v-slot:headerright><u-icon name="list"></u-icon></template> + <slot></slot> + <template v-slot:footer v-if="$scopedSlots.footer"><slot name="footer"></slot></template> + + <easy-picker :visible.sync="actionVisible" :list="actionList" @select="onActionClick"></easy-picker> + </header-page-layout> +</template> + +<script> +import HeaderPageLayout from './HeaderPageLayout.vue' +import EasyPicker from './EasyPicker.vue' +import { downloadApk } from '@/static/js/utils/index.js' +export default { + name:'defaultHeaderPageCompontent', + emits:['back'], + components:{HeaderPageLayout,EasyPicker}, + props:{ + title:{ + type:String, + default:'Title' + }, + backCustom:{ + type:Boolean, + default:false + } + }, + data(){ + return { + actionVisible:false, + actionList:['鍒锋柊','棣栭〉','閫�鍑�'] + } + }, + methods:{ + onHeaderClick(type){ + if (type==='left'){ + if (this.backCustom===true) { + this.$emit('back') + } else { + uni.navigateBack({ + delta: 1 + }); + } + } else { + this.actionVisible = true + } + }, + onActionClick(val){ + if (val==='鍒锋柊'){ + uni.navigateBack({ + delta: 0 + }); + } else if (val==='棣栭〉') { + uni.redirectTo({url:this.$config.path.home}) + } else if (val==='閫�鍑�') { + uni.redirectTo({url:this.$config.path.login}) + } else if (val==='鏂扮増涓嬭浇') { + downloadApk(this.$config) + } + }, + getBodyHeight(){ + let res = null; + if (this.$refs.page) { + res = this.$refs.page.getBodyHeight() + } + return res; + } + }, + created() { + if (process.env.NODE_ENV!=='development') { + this.actionList.push('鏂扮増涓嬭浇') + } + } +} +</script> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/EasyPicker.vue b/PipeLineLems.PDA/components/EasyPicker.vue new file mode 100644 index 0000000..62a47e7 --- /dev/null +++ b/PipeLineLems.PDA/components/EasyPicker.vue @@ -0,0 +1,109 @@ +<template> + <u-popup mode="center" :show="visible" @close="close" :round="10" :safeAreaInsetTop="true" :safeAreaInsetBottom="true"> + <view class="picker-box" :style="{maxHeight:maxHeight+'px'}"> + <view class="picker-item-group"> + <view class="picker-item auto-wrap" v-for="(item,index) in list" :key="'picker-item-'+index" @tap.stop="onItemClick(index,item)"> + {{(typeof(item)==='string'||typeof(item)==='number'||typeof(item)==='boolean'||item===null)?item:item[labelField]}} + </view> + </view> + </view> + </u-popup> +</template> + +<script> +const MAX_HEIGHT = 500 +export default { + name:'easyPickerCompontent', + emits:['update:visible','select'], + props:{ + visible:{ + type:Boolean, + default:false + }, + list:{ + type:Array, + default:function(){ + return [] + } + }, + valueField:{ + type:String, + default:'value' + }, + labelField:{ + type:String, + default:'label' + } + }, + data(){ + return { + maxHeight:MAX_HEIGHT + } + }, + methods:{ + close(){ + this.$emit('update:visible',false) + }, + onItemClick(index,selection){ + let valObj = selection; + let val; + if (typeof selection === 'string' || typeof selection === 'number'||typeof(selection)==='boolean'||selection===null) { + val = selection; + } else { + try{ + val = selection[this.valueField]; + }catch(e){ + val = selection; + } + } + this.close() + this.$emit('select',val,valObj,index) + }, + setMaxHeight(calHeight) { + const spaceHeight = 10 + if (calHeight>spaceHeight) { + calHeight = calHeight - spaceHeight + this.maxHeight = calHeight + } + } + }, + beforeMount(){ + let safety = this.$store.getters['system/getSafety']; + if (safety) { + this.setMaxHeight(safety.height) + } else { + uni.getSystemInfo({ + success:(res=>{ + if (!res.safeAreaInsets) res.safeArea = {} + this.setMaxHeight(res.safeArea.height || 0) + }) + }) + } + } +} +</script> + +<style scoped lang="scss"> +.picker-box{ + width: 80vw; + background-color:#f0f8ff; + border-radius: 20rpx; + padding-top: 30rpx; + overflow: auto; + display: flex; + justify-content: center; + box-sizing: border-box; + .picker-item-group{ + width: 80%; + } + .picker-item{ + margin: 0 20rpx 30rpx 20rpx; + text-align: center; + background-image: linear-gradient(to right, $color-paimary-darken, $color-paimary-lighten); + border: 1px solid #e4e4e4; + border-radius: 10rpx; + font-size: 1.2rem; + padding: 20rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/EasyPickerWithSearch.vue b/PipeLineLems.PDA/components/EasyPickerWithSearch.vue new file mode 100644 index 0000000..da98b87 --- /dev/null +++ b/PipeLineLems.PDA/components/EasyPickerWithSearch.vue @@ -0,0 +1,163 @@ +<template> + <u-popup mode="center" :show="visible" @close="close" :round="10" :safeAreaInsetTop="true" :safeAreaInsetBottom="true"> + + <view class="picker-boxWrap" :style="{maxHeight:maxHeight+'px'}"> + + <!-- 娣诲姞杈撳叆妗嗭細妯$硦鏌ヨ 璋冪敤鎺ュ彛 --> + <view class="picker-input" v-if="isShowSearch"> + <u-input v-model="searchValue" type="text" placeholder="璇疯緭鍏�..." clearable></u-input> + <u-button type="primary" @click="onSearch" :disabled="!searchValue">鎼滅储</u-button> + </view> + + <view class="picker-box"> + <view class="picker-item-group"> + <view class="picker-item auto-wrap" v-for="(item,index) in list" :key="'picker-item-'+index" @tap.stop="onItemClick(index,item)"> + {{(typeof(item)==='string'||typeof(item)==='number'||typeof(item)==='boolean'||item===null)?item:item[labelField]}} + </view> + + <view v-if="list.length===0" class="text-tip"> + 鏆傛棤鏁版嵁 + </view> + </view> + + + </view> + + + </view> + </u-popup> +</template> + +<script> +const MAX_HEIGHT = 500 +export default { + name:'easyPickerCompontent', + emits:['update:visible','select','getCurrentData'], + props:{ + visible:{ + type:Boolean, + default:false + }, + list:{ + type:Array, + default:function(){ + return [] + } + }, + valueField:{ + type:String, + default:'value' + }, + labelField:{ + type:String, + default:'label' + }, + isShowSearch:{ + type:Boolean, + default:false + }, + }, + data(){ + return { + maxHeight:MAX_HEIGHT, + searchValue:'' + } + }, + methods:{ + close(){ + this.$emit('update:visible',false) + }, + onItemClick(index,selection){ + let valObj = selection; + let val; + if (typeof selection === 'string' || typeof selection === 'number'||typeof(selection)==='boolean'||selection===null) { + val = selection; + } else { + try{ + val = selection[this.valueField]; + }catch(e){ + val = selection; + } + } + this.close() + this.$emit('select',val,valObj,index) + }, + setMaxHeight(calHeight) { + const spaceHeight = 10 + if (calHeight>spaceHeight) { + calHeight = calHeight - spaceHeight + this.maxHeight = calHeight + } + }, + // 妯$硦鏌ヨ + onSearch(){ + let searchValue = this.searchValue.trim() + if (searchValue) { + this.$emit('getCurrentData',searchValue) + } + } + }, + beforeMount(){ + let safety = this.$store.getters['system/getSafety']; + if (safety) { + this.setMaxHeight(safety.height) + } else { + uni.getSystemInfo({ + success:(res=>{ + if (!res.safeAreaInsets) res.safeArea = {} + this.setMaxHeight(res.safeArea.height || 0) + }) + }) + } + } +} +</script> + +<style scoped lang="scss"> +.picker-boxWrap{ + width: 80vw; + background-color:#f0f8ff; + overflow: auto; + box-sizing: border-box; +} +.picker-box{ + width: 80vw; + background-color:#f0f8ff; + border-radius: 20rpx; + padding-top: 30rpx; + overflow: auto; + display: flex; + justify-content: center; + box-sizing: border-box; + .picker-item-group{ + width: 80%; + } + .picker-item{ + margin: 0 20rpx 30rpx 20rpx; + text-align: center; + background-image: linear-gradient(to right, $color-paimary-darken, $color-paimary-lighten); + border: 1px solid #e4e4e4; + border-radius: 10rpx; + font-size: 1.2rem; + padding: 20rpx; + } +} +.picker-input{ + display: flex; + align-items: center; + margin: 20rpx; + .u-input{ + flex: 1; + } + .u-button{ + margin-left: 10rpx; + width: 150rpx; + } +} +.text-tip{ + text-align: center; + font-size: 1.2rem; + color: #999; + padding: 20rpx 0; +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/EasySelectFormItem.vue b/PipeLineLems.PDA/components/EasySelectFormItem.vue new file mode 100644 index 0000000..2e9821e --- /dev/null +++ b/PipeLineLems.PDA/components/EasySelectFormItem.vue @@ -0,0 +1,254 @@ +<template> + <view class="easy-select-form-item-compontent"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="input-row" @tap.stop="onOpenPicker"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <text v-if="!innerLabel" class="placeholder">{{placeholder}}</text> + <text v-else>{{innerLabel}}</text> + </view> + <view class="close-view" @tap.stop="onClear" v-if="innerLabel && clearable"> + <view class="close-circle"> + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + </view> + <view class="right-icon-view"><u-icon name="arrow-right" color="#909193" :size="24"></u-icon></view> + </view> + <view class="msg-row" v-if="msg" :class="[msgType==='info'?'info-type':'']">{{msg}}</view> + + <easy-picker :visible.sync="pickerVisible" :list="list" :value-field="valueField" :label-field="labelField" @select="onPickerSelect" /> + </view> +</template> + +<script> +import EasyPicker from './EasyPicker.vue' +export default { + name:'EasySelectFormItemCompontent', + components:{EasyPicker}, + emits:['input','select','clear'], + props:{ + label:{ + type:String, + default:'' + }, + placeholder:{ + type:String, + default:'璇烽�夋嫨...' + }, + msg:{ + type:String, + default:'' + }, + msgType:{ + type:String, + default:'error' + }, + value:{ + type:[String,Boolean,Number,null], + default:null + }, + list:{ + type:Array, + default:function(){ + return [] + } + }, + valueField:{ + type:String, + default:'value' + }, + labelField:{ + type:String, + default:'label' + }, + disabled:{ + type:Boolean, + default:false + }, + clearable:{ + type:Boolean, + default:true + }, + required:{ + type:Boolean, + default:false + } + }, + data(){ + return { + innerValue:'', + innerLabel:'', + pickerVisible:false, + initFlag:false + } + }, + watch:{ + value(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerValue = newVal; + } + }, + innerValue(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('input',newVal) + } + if (newVal!==oldVal) { + this.setLabelValue() + } + }, + list(){ + this.setInitData() + } + }, + methods:{ + onOpenPicker(){ + if (this.list.length<=0) return false + this.pickerVisible = true + }, + onPickerSelect(value,selection,index){ + if (value===this.innerValue) return false; + this.innerValue = value; + this.$emit('select',value,selection,index) + }, + setLabelValue(){ + let noMatch = true; + for (let i=0;i<this.list.length;i++) { + if (this.isBaseItem(this.list[i])) { + if (this.list[i]===this.innerValue) { + this.innerLabel = this.list[i]; + noMatch = false; + break; + } + } else { + if (this.list[i][this.valueField]===this.innerValue) { + this.innerLabel = this.list[i][this.labelField]; + noMatch = false; + break; + } + } + } + if (noMatch) { + this.innerLabel = this.innerValue + } + }, + isBaseItem(item){ + if (typeof(item)==='string'||typeof(item)==='number'||typeof(item)==='boolean'||item===undefined||item===null){ + return true + } else { + return false + } + }, + setInitData(){ + this.innerValue = this.value; + if (this.list.length===1) { + if (!this.initFlag) { + this.initFlag = true + let _tempVal = null; + if (!this.isBaseItem(this.list[0])) { + _tempVal = this.list[0][this.valueField]; + } else { + _tempVal = this.list[0]; + } + if (!this.innerValue) { + this.innerValue = _tempVal; + } + } + } else { + this.setLabelValue() + } + }, + onClear(){ + this.innerValue = null; + this.$emit('clear') + } + }, + created() { + this.setInitData() + } +} +</script> + +<style scoped lang="scss"> +.easy-select-form-item-compontent{ + width: 100%; + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + } + .input-row{ + width: 100%; + height: 90rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .close-view,.right-icon-view{ + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + } + .right-icon-view{ + padding-right: 10rpx; + } + .close-view{ + .close-circle{ + width: 20px; + height: 20px; + border-radius: 50%; + background-color: #c6c7cb; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + transform: scale(0.82); + margin-left: 4px; + } + } + .input-view{ + flex-grow: 1; + padding-left: 20rpx; + font-size: 30rpx; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + color: rgb(48, 49, 51); + .placeholder{ + color: rgb(192, 196, 204); + } + } + &>.mask{ + background-color: #000; + opacity: 0.25; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + } + } + .msg-row{ + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break:break-all; + word-wrap:break-word; + &.info-type{ + color:$color-blue; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/FullPageLayout.vue b/PipeLineLems.PDA/components/FullPageLayout.vue new file mode 100644 index 0000000..15beb77 --- /dev/null +++ b/PipeLineLems.PDA/components/FullPageLayout.vue @@ -0,0 +1,96 @@ +<template> + <view class="full-page-layout app-page" :style="{ + paddingTop:safetySize.top+'px', + paddingBottom:safetySize.bottom+'px', + paddingLeft:safetySize.left+'px', + paddingRight:safetySize.right+'px', + height:full?'100vh':'100%', + width:full?'100vw':'100%', + backgroundColor:baseBackgroundColor?baseBackgroundColor:'transparent' + }"> + <view class="full-page-layout-containter" :class="[(gradient&&gradientValue==='default')?'gradient-default':'']" :style="{ + backgroundColor:gradient?'transparent':(backgroundColor?backgroundColor:'transparent'), + backgroundImage:gradient?(gradientValue!=='default'?gradientValue:'none'):'none' + }"> + <slot></slot> + </view> + </view> +</template> + +<script> +export default { + name:'fullPageCompontent', + props:{ + /* 鏄惁鍚敤搴曡壊娓愬彉锛坆ackgroundImage锛� */ + gradient:{ + type:Boolean, + default:false + }, + /* 搴曡壊娓愬彉(backgroundImage)鍊硷紝css璇硶锛宒efault鏃朵娇鐢ㄩ粯璁ゆ笎鍙樿壊 */ + gradientValue:{ + type:String, + default:'default' + }, + backgroundColor:{ + type:String, + default:'' + }, + safety:{ + type:Boolean, + default:true + }, + full:{ + type:Boolean, + default:true + }, + baseBackgroundColor:{ + type:String, + default:'' + } + }, + data(){ + return { + safetySize:{ + top:0, + bottom:0, + left:0, + right:0 + } + } + }, + beforeMount(){ + if (this.safety) { + let safety = this.$store.getters['system/getSafety']; + if (safety) { + this.safetySize.top = safety.top + this.safetySize.bottom = safety.bottom + this.safetySize.left = safety.left + this.safetySize.right = safety.right + } else { + uni.getSystemInfo({ + success:(res=>{ + if (!res.safeAreaInsets) res.safeAreaInsets = {} + this.safetySize.top = res.safeAreaInsets.top || 0; + this.safetySize.bottom = res.safeAreaInsets.bottom || 0; + this.safetySize.left = res.safeAreaInsets.left || 0; + this.safetySize.right = res.safeAreaInsets.right || 0; + }) + }) + } + } + } +} +</script> + +<style scoped lang="scss"> +.full-page-layout{ + .full-page-layout-containter{ + height: 100%; + overflow: auto; + position: relative; + &.gradient-default{ + background-image: linear-gradient(to right, $color-paimary-darken, $color-paimary-middle) !important; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/HeaderPageLayout.vue b/PipeLineLems.PDA/components/HeaderPageLayout.vue new file mode 100644 index 0000000..780cc5d --- /dev/null +++ b/PipeLineLems.PDA/components/HeaderPageLayout.vue @@ -0,0 +1,114 @@ +<template> + <full-page-layout :gradient="gradient" :base-background-color="baseBackgroundColor" :gradient-value="gradientValue" :safety="safety" :full="full"> + <view class="header-page-containter"> + <view class="header-page-containter-header"> + <page-header :color="headerColor" :gradient="headerGradient" :gradient-value="headerGradientValue" :background-color="headerBackgroundColor" @click="onHeaderAsideClick"> + <template v-slot:left v-if="$scopedSlots.headerleft"><slot name="headerleft"></slot></template> + {{title}} + <template v-slot:right v-if="$scopedSlots.headerright"><slot name="headerright"></slot></template> + </page-header> + </view> + <view class="header-page-containter-body" :style="{backgroundColor:backgroundColor}"> + <slot></slot> + </view> + <view class="header-page-footer" :style="{backgroundColor:backgroundColor}"> + <slot name="footer"></slot> + </view> + </view> + </full-page-layout> +</template> + +<script> +import FullPageLayout from './FullPageLayout.vue' +import PageHeader from './PageHeader.vue' +export default { + name:'headerPageCompontent', + emits:['headerclick'], + components:{FullPageLayout,PageHeader}, + props:{ + /* 鏄惁鍚敤搴曡壊娓愬彉锛坆ackgroundImage锛� */ + gradient:{ + type:Boolean, + default:false + }, + /* 搴曡壊娓愬彉(backgroundImage)鍊硷紝css璇硶锛宒efault鏃朵娇鐢ㄩ粯璁ゆ笎鍙樿壊 */ + gradientValue:{ + type:String, + default:'default' + }, + backgroundColor:{ + type:String, + default:'' + }, + baseBackgroundColor:{ + type:String, + default:'' + }, + safety:{ + type:Boolean, + default:true + }, + title:{ + type:String, + default:'Title' + }, + headerColor:{ + type:String, + default:'#212121' + }, + /* 澶撮儴鏄惁鍚敤搴曡壊娓愬彉锛坆ackgroundImage锛� */ + headerGradient:{ + type:Boolean, + default:false + }, + /* 澶撮儴搴曡壊娓愬彉(backgroundImage)鍊硷紝css璇硶锛宒efault鏃朵娇鐢ㄩ粯璁ゆ笎鍙樿壊 */ + headerGradientValue:{ + type:String, + default:'default' + }, + headerBackgroundColor:{ + type:String, + default:'' + }, + full:{ + type:Boolean, + default:true + } + }, + data(){ + return { + bodyHeight:0 + } + }, + methods:{ + onHeaderAsideClick(type){ + this.$emit('headerclick',type) + }, + getBodyHeight(){ + return this.bodyHeight + } + }, + mounted() { + const query = uni.createSelectorQuery().in(this); + query.select('.header-page-containter-body').boundingClientRect(data => { + this.bodyHeight = data.height + }).exec(); + } +} +</script> + +<style scoped lang="scss"> +.header-page-containter{ + height: 100%; + display: flex; + flex-direction: column; + overflow: hidden; + .header-page-containter-header,.header-page-footer{ + flex-shrink: 0; + } + .header-page-containter-body{ + flex-grow: 1; + overflow: auto; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/PageHeader.vue b/PipeLineLems.PDA/components/PageHeader.vue new file mode 100644 index 0000000..4411562 --- /dev/null +++ b/PipeLineLems.PDA/components/PageHeader.vue @@ -0,0 +1,78 @@ +<template> + <view class="page-header-compontent" :class="[(gradient&&gradientValue==='default')?'gradient-default':'']" :style="{ + color:color, + backgroundColor:gradient?'transparent':(backgroundColor?backgroundColor:'transparent'), + backgroundImage:gradient?(gradientValue!=='default'?gradientValue:'none'):'none' + }"> + <view class="left-action" v-if="$scopedSlots.left" @tap.stop="onAsideClick('left')"><slot name="left"></slot></view> + <view class="title"><slot></slot></view> + <view class="right-action" v-if="$scopedSlots.right" @tap.stop="onAsideClick('right')"><slot name="right"></slot></view> + </view> +</template> + +<script> +export default { + name:'pageheaderCompontent', + emits:['click'], + props:{ + color:{ + type:String, + default:'#212121' + }, + /* 鏄惁鍚敤搴曡壊娓愬彉锛坆ackgroundImage锛� */ + gradient:{ + type:Boolean, + default:false + }, + /* 搴曡壊娓愬彉(backgroundImage)鍊硷紝css璇硶锛宒efault鏃朵娇鐢ㄩ粯璁ゆ笎鍙樿壊 */ + gradientValue:{ + type:String, + default:'default' + }, + backgroundColor:{ + type:String, + default:'' + } + }, + methods:{ + onAsideClick(type){ + this.$emit('click',type) + } + } +} +</script> + +<style scoped lang="scss"> +.page-header-compontent{ + width: 100%; + height: 90rpx; + position: relative; + font-size: 32rpx; + &.gradient-default{ + background-image: linear-gradient(to right, $color-paimary-darken, $color-paimary-middle) !important; + } + .title{ + height: 100%; + display: flex; + justify-content: center; + align-items: center; + font-size: 1.2em; + } + >.left-action,>.right-action{ + position: absolute; + top:0; + height: 100%; + z-index: 5; + display: flex; + align-items: center; + } + >.left-action{ + left: 0rpx; + padding-left: 8px; + } + >.right-action{ + right: 0rpx; + padding-right: 8px; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/RadioFormItem.vue b/PipeLineLems.PDA/components/RadioFormItem.vue new file mode 100644 index 0000000..f2a6202 --- /dev/null +++ b/PipeLineLems.PDA/components/RadioFormItem.vue @@ -0,0 +1,205 @@ +<template> + <view class="radio-input-form-item-component"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="input-row"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <radio-group @change="change" v-model="innerValue" style="{display: flex;justify-content: space-evenly;}"> + <radio :value="option.value" :shape="shape" :key="option.value" v-for="option in options" + >{{ option.label }}</radio> + </radio-group> + </view> + <!-- <view class="scan-view" v-if="hasScan"> + <view @tap.stop="onScan"><u-icon name="scan" color="#F18201" :size="32"></u-icon></view> + </view> + <view class="btn-view" v-if="hasSearch"> + <view class="search-btn" @tap.stop="onSearch">鎼�</view> + </view> --> + </view> + <!-- <view class="msg-row" v-if="msg" :class="[msgType==='info'?'info-type':'']">{{msg}}</view> --> + </view> +</template> + +<script> + export default { + name: 'RadioInputFormItemComponent', + emits: ['input', 'search', 'clear', 'blur', 'confirm', 'change'], + props: { + label: { + type: String, + default: '' + }, + msg: { + type: String, + default: '' + }, + msgType: { + type: String, + default: 'error' + }, + shape: { + type: String, + denfault: 'square' + }, + options: { + type: Array, + default: () => [] + }, + value: { + type: [String, Number, null], + default: '' + }, + hasScan: { + type: Boolean, + default: true + }, + hasSearch: { + type: Boolean, + default: true + }, + disabled: { + type: Boolean, + default: false + }, + required: { + type: Boolean, + default: false + } + }, + data() { + return { + innerValue: '' + } + }, + watch: { + value(newVal, oldVal) { + if (newVal != this.innerValue) { + this.innerValue = newVal + console.log(this.innerValue); + } + }, + innerValue(newVal, oldVal) { + if (newVal !== this.value) { + this.$emit('input', newVal) + this.$emit('change', newVal) + } + } + }, + methods: { + change(object){ + var {detail}=object + this.$emit('change', detail?.value) + }, + onScan() { + uni.scanCode({ + success: (res) => { + this.innerValue = res.result; + }, + fail: function() { + console.log('scanCode fail') + } + }) + }, + onSearch() { + this.$emit('search', this.innerValue) + }, + onClear() { + this.innerValue = null; + this.$emit('clear') + }, + onBlur() { + this.$emit('blur', this.innerValue) + }, + onConfirm() { + this.$emit('search', this.innerValue) + } + }, + created() { + this.innerValue = this.value + } + } +</script> + +<style scoped lang="scss"> + .radio-input-form-item-component { + width: 100%; + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .input-row { + width: 100%; + height: 90rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + + .scan-view, + .btn-view { + flex-shrink: 0; + } + + .scan-view { + display: flex; + align-items: center; + justify-content: center; + padding-right: 10rpx; + } + + .input-view { + flex-grow: 1; + padding-left: 20rpx; + + .custom-radio-group { + /* 閲嶅啓 uni-radio-group 鐨勬牱寮� */ + display: flex; + /* 鍏朵粬鏍峰紡 */ + } + + .custom-radio-group .uni-radio { + /* 閲嶅啓 uni-radio 鐨勬牱寮� */ + display: flex; + /* 鍏朵粬鏍峰紡 */ + } + } + + &>.mask { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #fff; + opacity: 0.25; + } + } + + .msg-row { + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break: break-all; + word-wrap: break-word; + + &.info-type { + color: $color-blue; + } + } + } + + ::v-deep radio { + margin-right:20rpx + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/ReadRfid.vue b/PipeLineLems.PDA/components/ReadRfid.vue new file mode 100644 index 0000000..8c3d3f6 --- /dev/null +++ b/PipeLineLems.PDA/components/ReadRfid.vue @@ -0,0 +1,170 @@ +<template> + <view> + <view class="uni-padding-wrap"> + NFC + <view class="uni-common-mt" style="background: #fff; padding: 20upx"> + <text>UID: {{ UID }}</text> + <text>鐘舵�侊細{{ tip }}</text> + <text>娑堟伅锛歿{ msg }}</text> + </view> + </view> + <button @click="writeData">writeData</button> + </view> +</template> + +<script> +var NfcAdapter; + +export default { + props: { + // 瀹氫箟涓�涓� UID 灞炴�э紝鍙互鐢ㄦ潵鎺ユ敹鐖剁粍浠朵紶閫掔殑鏁版嵁 + uid: { + type: String, + default: '' + } + }, + data() { + return { + title: 'redNFC', + UID: '', + msg: '', + tip: '', + readyWriteData: false + }; + }, + watch: { + uid(newVal) { + // 褰撶埗缁勪欢鏇存柊 UID 鏃讹紝鍚屾鍒版湰鍦版暟鎹� + this.UID = newVal; + } + }, + onLoad() { + console.log('onLoad'); + }, + onShow() { + console.log('onShow'); + this.NFCInit(); + }, + onHide() { + console.log('onHide'); + this.NFCReadUID(); + }, + methods: { + clearInfo() { + this.UID = ''; + this.tip = ''; + this.msg = ''; + }, + writeData() { + // Your existing writeData logic + }, + NFCReadUID2() { + // Your existing NFCReadUID2 logic + }, + hexStringToBytes(str) { + var bytes = []; + for (var i = 0; i < str.length; i += 2) { + bytes.push(parseInt(str.substring(i, i + 2), 16)); + } + return bytes; + }, + NFCInit() { + try { + var main = plus.android.runtimeMainActivity(); + var Intent = plus.android.importClass('android.content.Intent'); + var Activity = plus.android.importClass('android.app.Activity'); + var PendingIntent = plus.android.importClass('android.app.PendingIntent'); + var IntentFilter = plus.android.importClass('android.content.IntentFilter'); + NfcAdapter = plus.android.importClass('android.nfc.NfcAdapter'); + var _nfcAdapter = NfcAdapter.getDefaultAdapter(main); + + var ndef = new IntentFilter('android.nfc.action.NDEF_DISCOVERED'); //NfcAdapter.ACTION_NDEF_DISCOVERED + var tag = new IntentFilter('android.nfc.action.TAG_DISCOVERED'); //NfcAdapter.ACTION_TECH_DISCOVERED + var tech = new IntentFilter('android.nfc.action.TECH_DISCOVERED'); + var intentFiltersArray = [ndef, tag, tech]; + + var techListsArray = [ + ['android.nfc.tech.Ndef'], + ['android.nfc.tech.IsoDep'], + ['android.nfc.tech.NfcA'], + ['android.nfc.tech.NfcB'], + ['android.nfc.tech.NfcF'], + ['android.nfc.tech.Nfcf'], + ['android.nfc.tech.NfcV'], + ['android.nfc.tech.NdefFormatable'], + ['android.nfc.tech.MifareClassi'], + ['android.nfc.tech.MifareUltralight'] + ]; + + var _intent = new Intent(main, main.getClass()); + _intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); + + var pendingIntent = PendingIntent.getActivity(main, 0, _intent, 0); + + if (_nfcAdapter == null) { + this.tip = '鏈澶囦笉鏀寔NFC!'; + } else if (_nfcAdapter.isEnabled() == false) { + this.tip = 'NFC鍔熻兘鏈墦寮�!'; + } else { + this.tip = 'NFC姝e父'; + _nfcAdapter.enableForegroundDispatch(main, pendingIntent, IntentFilter, techListsArray); + } + } catch (e) { + console.log(e); + } + }, + NFCReadUID() { + console.log(1234567890) + var main = plus.android.runtimeMainActivity(); + var _intent = main.getIntent(); + var _action = _intent.getAction(); + + console.log('NFCReadUID action:', _action); + + if (NfcAdapter.ACTION_NDEF_DISCOVERED == _action || NfcAdapter.ACTION_TAG_DISCOVERED == _action || NfcAdapter.ACTION_TECH_DISCOVERED == _action) { + var Tag = plus.android.importClass('android.nfc.Tag'); + var tagFromIntent = _intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); + var uid = _intent.getByteArrayExtra(NfcAdapter.EXTRA_ID); + var text = _intent.getByteArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); + var rawMsgs = _intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); + + this.UID = this.Bytes2HexString(uid); + this.msg = text; + + // 瑙﹀彂鑷畾涔変簨浠讹紝灏� UID 浼犻�掔粰鐖剁粍浠� + this.$emit('update:uid', this.UID); + + uni.showToast({ + title: text + "~~" + this.UID, + icon: 'none' + }); + } + }, + Bytes2HexString(arrBytes) { + var str = ''; + for (var i = 0; i < arrBytes.length; i++) { + var tmp; + var num = arrBytes[i]; + if (num < 0) { + tmp = (255 + num + 1).toString(16); + } else { + tmp = num.toString(16); + } + if (tmp.length == 1) { + tmp = '0' + tmp; + } + str += tmp; + } + return str; + }, + toast(content) { + uni.showToast({ + title: content, + icon: 'none' + }); + } + } +}; +</script> + +<style></style> diff --git a/PipeLineLems.PDA/components/ScanEasyItem.vue b/PipeLineLems.PDA/components/ScanEasyItem.vue new file mode 100644 index 0000000..02409e3 --- /dev/null +++ b/PipeLineLems.PDA/components/ScanEasyItem.vue @@ -0,0 +1,8 @@ +<template> +</template> + +<script> +</script> + +<style> +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/ScanInputFormItem.vue b/PipeLineLems.PDA/components/ScanInputFormItem.vue new file mode 100644 index 0000000..64c3a83 --- /dev/null +++ b/PipeLineLems.PDA/components/ScanInputFormItem.vue @@ -0,0 +1,206 @@ +<template> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="input-row" v-if="content"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <u--input + :clearable="clearable" + border="none" + :type="type" + :placeholder="placeholder" + v-model.trim="innerValue" + @clear="onClear" + @blur="onBlur" + @confirm="onConfirm" + /> + </view> + <view class="scan-view" v-if="hasScan"> + <view @tap.stop="onScan"><u-icon name="scan" color="#F18201" :size="32"></u-icon></view> + </view> + <view class="btn-view" v-if="hasSearch"> + <view class="search-btn" @tap.stop="onSearch">鎼�</view> + </view> + </view> + <view class="msg-row" v-if="msg" :class="[msgType==='info'?'info-type':'']">{{msg}}</view> + </view> +</template> + +<script> +export default { + name:'ScanInputFormItemCompontent', + emits:['input','search','clear','blur','confirm','change'], + props:{ + type:{ + type:String, + default:'text' + }, + label:{ + type:String, + default:'' + }, + placeholder:{ + type:String, + default:'璇疯緭鍏�...' + }, + msg:{ + type:String, + default:'' + }, + msgType:{ + type:String, + default:'error' + }, + value:{ + type:[String,Number,null], + default:'' + }, + hasScan:{ + type:Boolean, + default:true + }, + hasSearch:{ + type:Boolean, + default:true + }, + disabled:{ + type:Boolean, + default:false + }, + clearable:{ + type:Boolean, + default:true + }, + required:{ + type:Boolean, + default:false + }, + content:{ + type:Boolean, + default:true + } + }, + data(){ + return { + innerValue:this.value||'' + } + }, + watch:{ + value(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerValue = newVal + } + }, + innerValue(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('input',newVal) + this.$emit('change',newVal) + } + } + }, + methods:{ + onScan(){ + uni.scanCode({ + success:(res)=>{ + this.innerValue = res.result; + }, + fail:function(){ + console.log('scanCode fail') + } + }) + }, + onSearch(){ + this.$emit('search',this.innerValue) + }, + onClear(){ + this.innerValue = null; + this.$emit('clear') + }, + onBlur(){ + this.$emit('blur',this.innerValue) + }, + onConfirm(){ + this.$emit('search',this.innerValue) + } + }, + created() { + this.innerValue = this.value + } +} +</script> + +<style scoped lang="scss"> +.scan-input-form-item-compontent{ + width: 100%; + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + } + .input-row{ + width: 100%; + height: 75rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .scan-view,.btn-view{ + flex-shrink: 0; + } + .scan-view{ + display: flex; + align-items: center; + justify-content: center; + padding-right: 10rpx; + } + .input-view{ + flex-grow: 1; + padding-left: 20rpx; + } + .btn-view{ + width:70rpx; + height: 100%; + padding: 20rpx; + padding-left: 0rpx; + box-sizing: border-box; + .search-btn{ + height: 100%; + width: 100%; + border-radius: 8rpx; + background: linear-gradient(157.342820970935deg, rgba(194, 128, 255, 1) -20%, rgba(194, 128, 255, 1) -19%, rgba(132, 0, 255, 1) 119%); + display: flex; + align-items: center; + justify-content: center; + color: $uni-bg-color; + font-size: 26rpx; + } + } + &>.mask{ + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #fff; + opacity: 0.25; + } + } + .msg-row{ + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break:break-all; + word-wrap:break-word; + &.info-type{ + color:$color-blue; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/ScanInputFormItemWc2.vue b/PipeLineLems.PDA/components/ScanInputFormItemWc2.vue new file mode 100644 index 0000000..3c8dabd --- /dev/null +++ b/PipeLineLems.PDA/components/ScanInputFormItemWc2.vue @@ -0,0 +1,210 @@ +<template> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="input-row" v-if="content"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <u--input + :clearable="clearable" + border="none" + :type="type" + :placeholder="placeholder" + v-model.trim="innerValue" + @clear="onClear" + @blur="onBlur" + @focus="innerValue=''" + @confirm="onConfirm" + /> + </view> + <view class="scan-view" v-if="hasScan"> + <view @tap.stop="onScan"><u-icon name="scan" color="#F18201" :size="32"></u-icon></view> + </view> + <view class="btn-view" v-if="hasSearch"> + <view class="search-btn" @tap.stop="searchShowBox">鎼�</view> + </view> + </view> + <view class="msg-row" v-if="msg" :class="[msgType==='info'?'info-type':'']">{{msg}}</view> + </view> +</template> + +<script> +export default { + name:'ScanInputFormItemCompontent', + emits:['input','search','clear','blur','confirm','change','searchShowBox'], + props:{ + type:{ + type:String, + default:'text' + }, + label:{ + type:String, + default:'' + }, + placeholder:{ + type:String, + default:'璇疯緭鍏�...' + }, + msg:{ + type:String, + default:'' + }, + msgType:{ + type:String, + default:'error' + }, + value:{ + type:[String,Number,null], + default:'' + }, + hasScan:{ + type:Boolean, + default:true + }, + hasSearch:{ + type:Boolean, + default:true + }, + disabled:{ + type:Boolean, + default:false + }, + clearable:{ + type:Boolean, + default:true + }, + required:{ + type:Boolean, + default:false + }, + content:{ + type:Boolean, + default:true + } + }, + data(){ + return { + innerValue:this.value||'' + } + }, + watch:{ + value(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerValue = newVal + } + }, + innerValue(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('input',newVal) + this.$emit('change',newVal) + } + } + }, + methods:{ + onScan(){ + uni.scanCode({ + success:(res)=>{ + this.innerValue = res.result; + }, + fail:function(){ + console.log('scanCode fail') + } + }) + }, + onSearch(){ + this.$emit('search',this.innerValue) + }, + searchShowBox(){ + this.$emit('searchShowBox',this.innerValue) + }, + onClear(){ + this.innerValue = null; + this.$emit('clear') + }, + onBlur(){ + this.$emit('blur',this.innerValue) + }, + onConfirm(){ + this.$emit('search',this.innerValue) + } + }, + created() { + this.innerValue = this.value + } +} +</script> + +<style scoped lang="scss"> +.scan-input-form-item-compontent{ + width: 100%; + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + } + .input-row{ + width: 100%; + height: 75rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .scan-view,.btn-view{ + flex-shrink: 0; + } + .scan-view{ + display: flex; + align-items: center; + justify-content: center; + padding-right: 10rpx; + } + .input-view{ + flex-grow: 1; + padding-left: 20rpx; + } + .btn-view{ + width:70rpx; + height: 100%; + padding: 20rpx; + padding-left: 0rpx; + box-sizing: border-box; + .search-btn{ + height: 100%; + width: 100%; + border-radius: 8rpx; + background: linear-gradient(157.342820970935deg, rgba(194, 128, 255, 1) -20%, rgba(194, 128, 255, 1) -19%, rgba(132, 0, 255, 1) 119%); + display: flex; + align-items: center; + justify-content: center; + color: $uni-bg-color; + font-size: 26rpx; + } + } + &>.mask{ + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #fff; + opacity: 0.25; + } + } + .msg-row{ + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break:break-all; + word-wrap:break-word; + &.info-type{ + color:$color-blue; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/UViewFormSelectPicker.vue b/PipeLineLems.PDA/components/UViewFormSelectPicker.vue new file mode 100644 index 0000000..57a6589 --- /dev/null +++ b/PipeLineLems.PDA/components/UViewFormSelectPicker.vue @@ -0,0 +1,213 @@ +<template> + <view class="u-view-form-select-picker-component"> + <view class="input-row" @tap.stop="onOpenPicker" :style="{backgroundColor:disabled?disabledColor:''}"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <text v-if="!innerLabel" class="placeholder">{{placeholder}}</text> + <text v-else>{{innerLabel}}</text> + </view> + <view class="close-view" @tap.stop="onClear" v-if="innerLabel && clearable"> + <view class="close-circle"> + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + </view> + <view class="right-icon-view"><u-icon name="arrow-right"></u-icon></view> + </view> + + <easy-picker :visible.sync="pickerVisible" :list="list" :value-field="valueField" :label-field="labelField" @select="onPickerSelect" /> + </view> +</template> + +<script> +import EasyPicker from './EasyPicker.vue' +export default { + name:'uViewFormSelectPickerComponent', + components:{EasyPicker}, + emits:['input','select','clear'], + props:{ + placeholder:{ + type:String, + default:'璇烽�夋嫨...' + }, + value:{ + type:[String,Boolean,Number,null], + default:null + }, + list:{ + type:Array, + default:function(){ + return [] + } + }, + valueField:{ + type:String, + default:'value' + }, + labelField:{ + type:String, + default:'label' + }, + disabled:{ + type:Boolean, + default:false + }, + clearable:{ + type:Boolean, + default:true + }, + disabledColor:{ + type:String, + default:'#f5f7fa' + } + }, + data(){ + return { + innerValue:'', + innerLabel:'', + pickerVisible:false, + initFlag:false + } + }, + watch:{ + value(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerValue = newVal; + } + }, + innerValue(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('input',newVal) + } + if (newVal!==oldVal) { + this.setLabelValue() + } + }, + list(){ + this.setInitData() + } + }, + methods:{ + onOpenPicker(){ + if (this.list.length<=0) return false + uni.hideKeyboard() + this.pickerVisible = true + }, + onPickerSelect(value,selection,index){ + this.innerValue = value; + this.$emit('select',value,selection,index) + }, + setLabelValue(){ + let noMatch = true; + for (let i=0;i<this.list.length;i++) { + if (this.isBaseItem(this.list[i])) { + if (this.list[i]===this.innerValue) { + this.innerLabel = this.list[i]; + noMatch = false; + break; + } + } else { + if (this.list[i][this.valueField]===this.innerValue) { + this.innerLabel = this.list[i][this.labelField]; + noMatch = false; + break; + } + } + } + if (noMatch) { + this.innerLabel = this.innerValue + } + }, + isBaseItem(item){ + if (typeof(item)==='string'||typeof(item)==='number'||typeof(item)==='boolean'||item===undefined||item===null){ + return true + } else { + return false + } + }, + setInitData(){ + this.innerValue = this.value; + if (this.list.length===1) { + if (!this.initFlag) { + this.initFlag = true + let _tempVal = null; + if (!this.isBaseItem(this.list[0])) { + _tempVal = this.list[0][this.valueField]; + } else { + _tempVal = this.list[0]; + } + if (!this.innerValue) { + this.innerValue = _tempVal; + } + } + } + }, + onClear(){ + this.innerValue = null; + this.$emit('clear') + } + }, + created() { + this.setInitData() + } +} +</script> + +<style scoped lang="scss"> +.u-view-form-select-picker-component{ + width: 100%; + .input-row{ + width: 100%; + min-height: 48rpx; + border-radius: 8rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .close-view,.right-icon-view{ + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + } + .close-view{ + .close-circle{ + width: 20px; + height: 20px; + border-radius: 50%; + background-color: #c6c7cb; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + transform: scale(0.82); + margin-left: 4px; + } + } + .input-view{ + flex-grow: 1; + font-size: 30rpx; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + color: rgb(48, 49, 51); + .placeholder{ + color: rgb(192, 196, 204); + } + } + &>.mask{ + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/selectItem.vue b/PipeLineLems.PDA/components/selectItem.vue new file mode 100644 index 0000000..040a05a --- /dev/null +++ b/PipeLineLems.PDA/components/selectItem.vue @@ -0,0 +1,107 @@ +<template> + <view class="forma-item"> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" :label="label" v-model="value" :disabled="disabled"/> + <EasyPicker :visible.sync="visible" :list="selectData" :labelField="labelField" :valueField="valueField" + @select="getSelectData" /> + </view> +</template> +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + import EasyPicker from '@/components/EasyPicker.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + export default { + props: { + selectData: { + type: Array, + default: () => [] + }, + value:{ + type: String, + default: '' + }, + label:{ + type:String, + default:'' + }, + labelField:{ + type:String, + default:'' + }, + valueField:{ + type:String, + default:'' + }, + disabled:{ + type:Boolean, + default:false + } + + }, + components: { + EasyPicker, + ScanInputFormItem + }, + data() { + return { + radiolist1: [], + radiovalue1: '', + visible:false, + } + }, + + methods: { + getSelectData(val,obj){ + this.$emit('update:value',val,obj) + }, + parseDic + } + } +</script> + +<!-- <style scoped> + .custom-radio { + font-size: 16px; + line-height: 24px; + } + + .material-item-group { + padding-top: 10rpx; + display: flex; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + position: relative; + flex: 1; + + &:last-child { + border-bottom: 0; + } + } + } + + .radio-row { + background-color: rgb(255, 255, 255); + margin-bottom: 10px; + padding-top: 15px; + padding-bottom: 15px; + } + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .radio-group u-radio { + width: 50%; + } +</style> --> \ No newline at end of file diff --git a/PipeLineLems.PDA/components/selectItemWithSearchWc2.vue b/PipeLineLems.PDA/components/selectItemWithSearchWc2.vue new file mode 100644 index 0000000..e91b94f --- /dev/null +++ b/PipeLineLems.PDA/components/selectItemWithSearchWc2.vue @@ -0,0 +1,210 @@ +<template> + <!-- 鐐瑰嚮杈撳叆妗� 鍙緭鍏ワ紱涔熷彲鐐瑰嚮鎼滅储鎸夐挳 寮瑰嚭閫夋嫨妗� --> + <view class="forma-item"> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label" v-if="label"> + <text v-if="required" class="required-tag">*</text>{{ label }}锛� + </view> + <view class="input-row" v-if="content"> + <view class="mask" @tap.stop="" v-if="disabled"></view> + <view class="input-view"> + <input + :clearable="clearable" + border="none" + :type="type" + :placeholder="placeholder" + v-model.trim="innerValue" + @clear="onClear" + @blur="onBlur" + @focus="innerValue = ''" + @confirm="onConfirm(innerValue)" + /> + </view> + <view class="scan-view" v-if="hasScan"> + <view @tap.stop="onScan"> + <u-icon name="scan" color="#F18201" :size="32"></u-icon> + </view> + </view> + <view class="btn-view" v-if="hasSearch"> + <view class="search-btn" @tap.stop="searchShowBox">鎼�</view> + </view> + </view> + <!-- :class="msgType === 'info' ? 'info-type' : ''" --> + <view class="msg-row info-type" v-if="innerValue"> + {{ msg }} + </view> + </view> + <EasyPicker + :visible.sync="visible" + :list="selectData" + :labelField="labelField" + :valueField="valueField" + @select="getSelectData" + :isShowSearch="true" + @getCurrentData="getCurrentData" + /> + </view> +</template> + +<script> +import { parseDic } from "@/static/js/utils/index.js"; +import EasyPicker from "@/components/EasyPickerWithSearch.vue"; + +export default { + emits: ["getPropData", "confirmHc"], + props: { + type: { type: String, default: "text" }, + label: { type: String, default: "" }, + placeholder: { type: String, default: "璇疯緭鍏�..." }, + msg: { type: String, default: "" }, + msgType: { type: String, default: "error" }, + hasScan: { type: Boolean, default: true }, + hasSearch: { type: Boolean, default: true }, + disabled: { type: Boolean, default: false }, + clearable: { type: Boolean, default: true }, + required: { type: Boolean, default: false }, + content: { type: Boolean, default: true }, + selectData: { type: Array, default: () => [] }, + labelField: { type: String, default: "" }, + valueField: { type: String, default: "" }, + value: { + type: String, + default: "", + }, + }, + components: { + EasyPicker, + }, + watch: { + value(newVal) { + this.innerValue = newVal; // 閬垮厤鐖剁粍浠舵洿鏂板悗 localValue 涓嶅悓姝� + } + }, + data() { + return { + visible: false, + innerValue: this.value, + }; + }, + methods: { + // 寮规鏁版嵁 鐐瑰嚮鏌愪竴椤圭‘璁� + getSelectData(val) { + this.$emit("update:value", val); + this.$emit("confirmHc",val); // 鎼滅储鍚庤皟鐢ㄧ殑鎺ュ彛 + }, + //寮规涓殑鏁版嵁 + getCurrentData(val) { + this.$emit("getPropData", val); + }, + onScan() { + uni.scanCode({ + success: (res) => { + this.innerValue = res.result; + }, + fail: () => { + console.log("scanCode fail"); + }, + }); + }, + searchShowBox() { + this.visible = true; // 鏄剧ず寮规 + this.$emit("searchShowBox", this.innerValue); + }, + onClear() { + this.innerValue = null; + this.$emit("clear"); + }, + onBlur() { + this.$emit("blur", this.innerValue); + }, + onConfirm(val) { + if (this.innerValue) { + this.$emit("update:value", val); + this.$emit("confirmHc",val); + } + }, + }, + +}; +</script> +<style scoped lang="scss"> +.scan-input-form-item-compontent { + width: 100%; + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag { + color: $u-error; + } + } + .input-row { + width: 100%; + height: 75rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .scan-view, + .btn-view { + flex-shrink: 0; + } + .scan-view { + display: flex; + align-items: center; + justify-content: center; + padding-right: 10rpx; + } + .input-view { + flex-grow: 1; + padding-left: 20rpx; + } + .btn-view { + width: 70rpx; + height: 100%; + padding: 20rpx; + padding-left: 0rpx; + box-sizing: border-box; + .search-btn { + height: 100%; + width: 100%; + border-radius: 8rpx; + background: linear-gradient( + 157.342820970935deg, + rgba(194, 128, 255, 1) -20%, + rgba(194, 128, 255, 1) -19%, + rgba(132, 0, 255, 1) 119% + ); + display: flex; + align-items: center; + justify-content: center; + color: $uni-bg-color; + font-size: 26rpx; + } + } + & > .mask { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #fff; + opacity: 0.25; + } + } + .msg-row { + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break: break-all; + word-wrap: break-word; + &.info-type { + color: $color-blue; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/config/index.js b/PipeLineLems.PDA/config/index.js new file mode 100644 index 0000000..6765176 --- /dev/null +++ b/PipeLineLems.PDA/config/index.js @@ -0,0 +1,60 @@ +import ajax from './modules/ajax.js' +import pagination from './modules/pagination.js' + +export default { + ajax, + pagination, + downUrl:'http://127.0.0.1:18000/wc2.apk', + path: { + home:'/pages/home/index', + login:'/pages/login/index', + bluetooth:'/pages/print/bluetoothConnection', + host:'/pages/setting/host', + online:'/pages/online/index', + bind:'/pages/bind/index', + bindInForLocation:'/pages/bindInForLocation/index', + bindContaniner:'/pages/bindContaniner/index', + pick:'/pages/pick/index', + receive:'/pages/receiveIn/index', + temporaryIn:'/pages/temporaryInstore/index', + manualOut:'/pages/manual/out', + unbind:'/pages/unbind/index', + tasks:'/pages/tasks/index', + notices:'/pages/notices/index', + fapaoIn:'/pages/fapaoInStore/index', + fapaoOut:'/pages/fapiaoOutStore/index', + slicingOn:'/pages/slicingOn/index', + slicingOff:'/pages/slicingOff/index', + plywoodBind:'/pages/plywoodBind/index', + plywoodInstore:'/pages/plywoodInstore/index', + plywoodOut:'/pages/plywoodOut/index', + emptyOut:'/pages/emptyOut/index', + rsbIn:'/pages/rsbIn/index', + emptyIn:'/pages/emptyIn/index', + rsbOut:'/pages/rsbOut/index', + sandingIn:'/pages/sandingInstore/index', + endProductIn:'/pages/endProductInstore/index', + innerTailBack:'/pages/innerTailBack/index', + unstackingIn:'/pages/unstackingInstore/index', + transport:'/pages/transport/index', + changeStore:'/pages/changeStore/index', + takeInStore:'/pages/takeInStore/index', + checkStock:'/pages/checkStock/index', + receiptExecution:'/pages/receiptExecution/index', + sortingSearch:'/pages/sortingSearch/index', + Outbound:'/pages/inAndOutBound/index', + replenishMent:'/pages/replenishMent/index', + sorting:'/pages/sortingSearch/index', + exception:'/pages/exceptionHandle/index', + containerHandle:'/pages/containerHandle/index', + bindWXJ:'/pages/bindWXJ/index', + containerUnBind:'/pages/containerUnBind/index', + oneTouchUnBind:'/pages/oneTouchUnBind/index', + PointHandling:'/pages/PointHandling/index', + emptyInCopy:'/pages/emptyInCopy/index', + emptyContainerReturn:'/pages/emptyContainerReturn/index', + writeRfid:'/pages/writeRfid/index', + loadingDelivery:'/pages/loadingDelivery/index', + materialStorage:'/pages/materialStorage/index' + } +} diff --git "a/PipeLineLems.PDA/config/modules/ajax -\346\265\213\350\257\225.js" "b/PipeLineLems.PDA/config/modules/ajax -\346\265\213\350\257\225.js" new file mode 100644 index 0000000..990373c --- /dev/null +++ "b/PipeLineLems.PDA/config/modules/ajax -\346\265\213\350\257\225.js" @@ -0,0 +1,34 @@ +export default { + errMsg:'缃戠粶閿欒锛�', + host:{ //鎺ュ彛璋冪敤鐨勫煙鍚嶈缃� + //'default':'http://10.15.250.185:2001' + 'default':'http://localhost:5006', + // 'default':'http://192.168.1.10:2001', + 'auth':'http://10.10.40.166:183', + 'mock':'http://localhost:3012' + }, + block:{ + default:'/api/', + sysDic:'/api/sysDictType/', + online:'/api/FoamBoard/', + offline:'/api/Receipt/', + quickIn:'/api/QuickWoreHouse/', + exware:'/api/ExWarePDA/', + task:'/api/pdatask/', + fapaoIn:'/api/automaticwarehouse/', + fapaoOut:'/api/groupdiskoutwarehouse/', + wentrance:'/api/warewarehouseentrance/', + generic:'/api/BeCurrent/', + plywood:'/api/PlywoodGroupDisk/', + emptyOut:'/api/CallEmpty/', + emptyIn:'/api/InEmpty/', + rsbIn:'/api/RSBGroupDisk/', + sandingIn:'/api/SandingWarehouse/', + endProduct:'/api/FinishProductInWare/', + innerTail:'/api/TailStockReturn/', + unstacking:'/api/UnstackingRuKu/', + transport:'/api/Transport/', + changeStore:'/api/Relocation/', + checkStock:'/api/inventoryplanexce/' + } +} \ No newline at end of file diff --git "a/PipeLineLems.PDA/config/modules/ajax -\347\224\237\344\272\247.js" "b/PipeLineLems.PDA/config/modules/ajax -\347\224\237\344\272\247.js" new file mode 100644 index 0000000..3c0b6e9 --- /dev/null +++ "b/PipeLineLems.PDA/config/modules/ajax -\347\224\237\344\272\247.js" @@ -0,0 +1,32 @@ +export default { + errMsg:'缃戠粶閿欒锛�', + host:{ //鎺ュ彛璋冪敤鐨勫煙鍚嶈缃� + 'default':'http://127.0.0.1:18000', + 'auth':'http://10.10.40.166:183', + 'mock':'http://localhost:3012' + }, + block:{ + default:'/api/', + sysDic:'/api/sysDictType/', + online:'/api/FoamBoard/', + offline:'/api/Receipt/', + quickIn:'/api/QuickWoreHouse/', + exware:'/api/ExWarePDA/', + task:'/api/pdatask/', + fapaoIn:'/api/automaticwarehouse/', + fapaoOut:'/api/groupdiskoutwarehouse/', + wentrance:'/api/warewarehouseentrance/', + generic:'/api/BeCurrent/', + plywood:'/api/PlywoodGroupDisk/', + emptyOut:'/api/CallEmpty/', + emptyIn:'/api/InEmpty/', + rsbIn:'/api/RSBGroupDisk/', + sandingIn:'/api/SandingWarehouse/', + endProduct:'/api/FinishProductInWare/', + innerTail:'/api/TailStockReturn/', + unstacking:'/api/UnstackingRuKu/', + transport:'/api/Transport/', + changeStore:'/api/Relocation/', + checkStock:'/api/inventoryplanexce/' + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/config/modules/ajax.js b/PipeLineLems.PDA/config/modules/ajax.js new file mode 100644 index 0000000..ce400af --- /dev/null +++ b/PipeLineLems.PDA/config/modules/ajax.js @@ -0,0 +1,32 @@ +export default { + errMsg:'缃戠粶閿欒锛�', + host:{ //鎺ュ彛璋冪敤鐨勫煙鍚嶈缃� + 'default':'http:///localhost:8080', + 'auth':'http://10.10.40.166:183', + 'mock':'http://localhost:3012' + }, + block:{ + default:'/api/', + sysDic:'/api/sysDictType/', + online:'/api/FoamBoard/', + offline:'/api/Receipt/', + quickIn:'/api/QuickWoreHouse/', + exware:'/api/ExWarePDA/', + task:'/api/pdatask/', + fapaoIn:'/api/automaticwarehouse/', + fapaoOut:'/api/groupdiskoutwarehouse/', + wentrance:'/api/warewarehouseentrance/', + generic:'/api/BeCurrent/', + plywood:'/api/PlywoodGroupDisk/', + emptyOut:'/api/CallEmpty/', + emptyIn:'/api/InEmpty/', + rsbIn:'/api/RSBGroupDisk/', + sandingIn:'/api/SandingWarehouse/', + endProduct:'/api/FinishProductInWare/', + innerTail:'/api/TailStockReturn/', + unstacking:'/api/UnstackingRuKu/', + transport:'/api/Transport/', + changeStore:'/api/Relocation/', + checkStock:'/api/inventoryplanexce/' + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/config/modules/pagination.js b/PipeLineLems.PDA/config/modules/pagination.js new file mode 100644 index 0000000..0c78b1e --- /dev/null +++ b/PipeLineLems.PDA/config/modules/pagination.js @@ -0,0 +1,4 @@ +export default { + pageNo:1, + pageSize:10 +} \ No newline at end of file diff --git a/PipeLineLems.PDA/index.html b/PipeLineLems.PDA/index.html new file mode 100644 index 0000000..c3ff205 --- /dev/null +++ b/PipeLineLems.PDA/index.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <script> + var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || + CSS.supports('top: constant(a)')) + document.write( + '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + + (coverSupport ? ', viewport-fit=cover' : '') + '" />') + </script> + <title></title> + <!--preload-links--> + <!--app-context--> + </head> + <body> + <div id="app"><!--app-html--></div> + <script type="module" src="/main.js"></script> + </body> +</html> diff --git a/PipeLineLems.PDA/main.js b/PipeLineLems.PDA/main.js new file mode 100644 index 0000000..cedb3d7 --- /dev/null +++ b/PipeLineLems.PDA/main.js @@ -0,0 +1,32 @@ +import App from './App' +import Vue from 'vue' +import uView from '@/uni_modules/uview-ui' +import createStore from './service/store' +import config from './config/index.js' +import defineApi from './service/request' + +const store = createStore(Vue); +const $api = new defineApi(store,config) + +Vue.config.productionTip = false +App.mpType = 'app' +Vue.use(uView) + +Vue.prototype.$modal = function(content,callback=()=>{},type = 0,title="鎻愮ず") { + uni.showModal({ + title, + content, + icon: type = 0 ? 'success' : 'error', + showCancel:false, + success:callback + }) +} + +Vue.prototype.$config = config; +Vue.prototype.$api = $api; + +const app = new Vue({ + ...App, + store: store +}) +app.$mount() diff --git a/PipeLineLems.PDA/manifest.json b/PipeLineLems.PDA/manifest.json new file mode 100644 index 0000000..d74b48a --- /dev/null +++ b/PipeLineLems.PDA/manifest.json @@ -0,0 +1,120 @@ +{ + "name" : "wc2Pad", + "appid" : "__UNI__1A52976", + "description" : "", + "versionName" : "2025-03-01", + "versionCode" : 100, + "transformPx" : false, + /* 5+App鐗规湁鐩稿叧 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 妯″潡閰嶇疆 */ + "modules" : {}, + /* 搴旂敤鍙戝竷淇℃伅 */ + "distribute" : { + /* android鎵撳寘閰嶇疆 */ + "android" : { + "permissions" : [ + "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", + "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", + "<uses-permission android:name=\"android.permission.VIBRATE\"/>", + "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", + "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", + "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", + "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", + "<uses-permission android:name=\"android.permission.CAMERA\"/>", + "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", + "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", + "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", + "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", + "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", + "<uses-feature android:name=\"android.hardware.camera\"/>", + "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" + ] + }, + /* ios鎵撳寘閰嶇疆 */ + "ios" : { + "dSYMs" : false + }, + /* SDK閰嶇疆 */ + "sdkConfigs" : { + "ad" : {} + }, + "icons" : { + "android" : { + "hdpi" : "unpackage/res/icons/72x72.png", + "xhdpi" : "unpackage/res/icons/96x96.png", + "xxhdpi" : "unpackage/res/icons/144x144.png", + "xxxhdpi" : "unpackage/res/icons/192x192.png" + }, + "ios" : { + "appstore" : "unpackage/res/icons/1024x1024.png", + "ipad" : { + "app" : "unpackage/res/icons/76x76.png", + "app@2x" : "unpackage/res/icons/152x152.png", + "notification" : "unpackage/res/icons/20x20.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "proapp@2x" : "unpackage/res/icons/167x167.png", + "settings" : "unpackage/res/icons/29x29.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "spotlight" : "unpackage/res/icons/40x40.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png" + }, + "iphone" : { + "app@2x" : "unpackage/res/icons/120x120.png", + "app@3x" : "unpackage/res/icons/180x180.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "notification@3x" : "unpackage/res/icons/60x60.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "settings@3x" : "unpackage/res/icons/87x87.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png", + "spotlight@3x" : "unpackage/res/icons/120x120.png" + } + } + } + } + }, + /* 蹇簲鐢ㄧ壒鏈夌浉鍏� */ + "quickapp" : {}, + /* 灏忕▼搴忕壒鏈夌浉鍏� */ + "mp-weixin" : { + "appid" : "", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2", + "fallbackLocale" : "en", + "locale" : "en", + "h5" : { + "router" : { + "mode" : "hash", + "base" : "./" + }, + "title" : "wc3_pda", + "devServer" : { + "port" : 2066 + } + } +} diff --git a/PipeLineLems.PDA/mdImgs/1664329468868.jpg b/PipeLineLems.PDA/mdImgs/1664329468868.jpg new file mode 100644 index 0000000..8e5e26e --- /dev/null +++ b/PipeLineLems.PDA/mdImgs/1664329468868.jpg Binary files differ diff --git a/PipeLineLems.PDA/mdImgs/1664329790970.jpg b/PipeLineLems.PDA/mdImgs/1664329790970.jpg new file mode 100644 index 0000000..92e83dd --- /dev/null +++ b/PipeLineLems.PDA/mdImgs/1664329790970.jpg Binary files differ diff --git a/PipeLineLems.PDA/mdImgs/1664330296712.png b/PipeLineLems.PDA/mdImgs/1664330296712.png new file mode 100644 index 0000000..d9a434f --- /dev/null +++ b/PipeLineLems.PDA/mdImgs/1664330296712.png Binary files differ diff --git a/PipeLineLems.PDA/mdImgs/1665970038354.jpg b/PipeLineLems.PDA/mdImgs/1665970038354.jpg new file mode 100644 index 0000000..73b34b4 --- /dev/null +++ b/PipeLineLems.PDA/mdImgs/1665970038354.jpg Binary files differ diff --git a/PipeLineLems.PDA/package.json b/PipeLineLems.PDA/package.json new file mode 100644 index 0000000..13e585d --- /dev/null +++ b/PipeLineLems.PDA/package.json @@ -0,0 +1,19 @@ +{ + "name": "pda_vue2_demo", + "version": "1.0.0", + "description": "", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "api": "json-server __json_server_mock__/db.json --watch --port 3012 --host 0.0.0.0" + }, + "author": "", + "license": "ISC", + "dependencies": { + "dayjs": "^1.11.10", + "vuex": "^3.6.2" + }, + "devDependencies": { + "json-server": "^0.17.1" + } +} diff --git a/PipeLineLems.PDA/pages.json b/PipeLineLems.PDA/pages.json new file mode 100644 index 0000000..119a764 --- /dev/null +++ b/PipeLineLems.PDA/pages.json @@ -0,0 +1,132 @@ +{ + "pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/start/index" + }, + { + "path": "pages/login/index" + }, + { + "path": "pages/home/index" + }, + { + "path": "pages/setting/host" + }, + { + "path": "pages/print/bluetoothConnection" + }, + { + "path": "pages/online/index" + }, + { + "path": "pages/bind/index" + }, + { + "path": "pages/bindInForLocation/index" // 鍏ュ簱 閫夋嫨搴撲綅 + }, + { + "path": "pages/emptyContainerReturn/index" + }, + { + "path": "pages/bindContaniner/index" + }, + { + "path": "pages/pick/index" + }, + { + "path":"pages/sortingSearch/index" + } + ,{ + "path" : "pages/replenishMent/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/inAndOutBound/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/exceptionHandle/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/exceptionHandle/modules/exceptionPlace", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/exceptionHandle/modules/materialInfo", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/emptyOut/index" + }, + { + "path": "pages/emptyIn/index" + }, + { + "path": "pages/containerHandle/index" + }, + { + "path": "pages/bindWXJ/index" + }, + { + "path": "pages/containerUnBind/index" + }, + { + "path": "pages/oneTouchUnBind/index" + }, + { + "path": "pages/PointHandling/index" + }, + { + "path": "pages/emptyInCopy/index" + }, + { + "path" : "pages/writeRfid/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/loadingDelivery/index" + }, + { + "path": "pages/materialStorage/index" + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "绠″瓙绾縇MESDemo", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8", + "navigationStyle": "custom" + }, + "uniIdRouter": {} +} diff --git a/PipeLineLems.PDA/pages/PointHandling/index.vue b/PipeLineLems.PDA/pages/PointHandling/index.vue new file mode 100644 index 0000000..718b7fa --- /dev/null +++ b/PipeLineLems.PDA/pages/PointHandling/index.vue @@ -0,0 +1,421 @@ +<template> + <default-header-page-layout ref="page" title="鐐瑰埌鐐规惉杩�"> + <view + class="page-frame with-action-user-row" + :style="{ height: pageBodyHeight + 'px' }" + v-if="pageBodyHeight" + > + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- 搴撳尯 --> + <selectItem + :selectData="areaData" + :value.sync="form.areaNo" + label="璧峰搴撳尯" + labelField="areaName" + valueField="areaNo" + /> + <!-- 搴撲綅 --> + <selectItemWc2 + :selectData="placeList" + :value.sync="form.placeNo" + label="搴撲綅缂栫爜" + labelField="placeNo" + valueField="placeNo" + @getPropData="getPropData" + @confirmHc="getStockPageHandle" + /> + + <!-- 鎵樼洏缂栫爜 --> + <scan-input-form-item + v-show="Boolean(form.containerNo)" + disabled + :clearable="false" + placeholder="" + :hasScan="false" + :hasSearch="false" + @click.native="ctVisible = true" + class="forma-item" + label="鎵樼洏缂栫爜" + v-model="form.containerNo" + /> + + <!-- 鐩爣搴撳尯 --> + <selectItem + :selectData="areaData" + :value.sync="form.targetAreaNo" + label="鐩爣搴撳尯" + labelField="areaName" + valueField="areaNo" + /> + + <div v-if="false"> + <scan-input-form-item + class="forma-item" + label="搴撲綅宸叉湁鎵樼洏淇℃伅" + :content="false" + /> + <containerInfo :containerInfo="containerPlaceInfo" /> + </div> + + <!-- <placeInfo v-show="selectDisabled" :placeInfo="containerInfo.placeInfo" /> --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"> + <u-button + type="primary" + :disabled="!abled" + text="鎻愪氦" + @click="onSubmit" + ></u-button> + </div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from "@/components/DefaultHeaderPageLayout.vue"; +import ActionUserRow from "@/components/ActionUserRow.vue"; +import ScanInputFormItem from "@/components/ScanInputFormItem.vue"; +import selectItem from "@/components/selectItem.vue"; +import selectItemWc2 from "@/components/selectItemWithSearchWc2.vue"; +import placeInfo from "./modules/placeInfo.vue"; +import containerInfo from "./modules/containerInfo.vue"; +import { + parseDic, + $alert, + $successInfo, + getDicList, +} from "@/static/js/utils/index.js"; +import { palceList } from "@/service/mixins/mixins.js"; +import { + getContainerPlaceInfo, + containerHandle, + getContainerPlaceByPlace, +} from "@/api/containerHandle.js"; +import { getAreaInfo, getAreaListContaninerBind } from "@/api/common.js"; + +import { pointHandlingTask } from "@/api/PointHandling.js"; +let initInterVal = null; +export default { + name: "containerHandle", + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + placeInfo, + selectItem, + containerInfo, + selectItemWc2 + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containerNo: "", + areaNo: "", + placeNo: "", + targetPlaceNo: "", + }, + msg: { + containter: "", + }, + msgType: { + containter: "info", + }, + containerInfo: {}, + areaData: [], + targetPlaceList: [], + containerPlaceInfo: {}, + }; + }, + computed: { + selectDisabled() { + return Boolean(this.containerInfo?.placeInfo?.placeNo); + }, + abled() { + //return Boolean(this.form.containerNo) + return true; + // return Boolean(this.form.containerNo) && Boolean(this.form.targetPlaceNo) + }, + placeInfoShow() { + return ( + Boolean(this.containerInfo.containerNo) && + Boolean(this.form.placeNo) && + Boolean(this.containerPlaceInfo.containerNo) && + !Boolean(this.containerInfo?.placeInfo?.placeNo) + ); + }, + }, + watch: { + "form.areaNo": { + handler(val, oldVal) { + if (val != "") { + this.form.placeNo = ""; + this.form.containerNo = ""; + this.placeList = []; + this.getPalceList({ + areaCode: val, + }); + // if (Boolean(this.containerInfo?.placeInfo?.placeNo)) { + // this.$set(this.form, 'placeNo', this.containerInfo.placeInfo.placeNo) + // } + } + }, + }, + "form.targetAreaNo": { + async handler(val, oldVal) { + if (val != "") { + this.form.targetPlaceNo = ""; + this.targetPlaceList = []; + this.targetPlaceList = await this.getTargetPlaceList({ + areaCode: val, + }); + // if (Boolean(this.containerInfo?.placeInfo?.placeNo)) { + // this.$set(this.form, 'placeNo', this.containerInfo.placeInfo.placeNo) + // } + } + }, + }, + + "form.placeNo": { + async handler(val, oldVal) { + if (val != "" && val!=oldVal) { + this.containerPlaceInfo = {}; + try { + let { result } = await getContainerPlaceByPlace({ + placeNo: this.form.placeNo, + }); + this.containerPlaceInfo = result == null ? {} : result; + this.$set(this.form, "containerNo", result?.containerNo); + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + }, + }, + }, + methods: { + //搴撲綅妯$硦鏌ヨ + async getPropData(PlaceNo) { + await this.getPalceList({ + areaCode: this.form.areaNo, + PlaceNo: PlaceNo, + }); + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + const { containerNo } = this.form; + if (!Boolean(containerNo)) { + this.msgType.containter = "error"; + this.msg.containter = "璇疯緭鍏ユ墭鐩樼紪鍙凤紒"; + return false; + } + // 鑾峰彇浠g爜 + try { + let { result } = await getContainerPlaceInfo({ + containerNo, + }); + this.containerInfo = result; + if (Boolean(this.containerInfo?.placeInfo?.placeNo)) { + this.getAreaList(); + this.$nextTick(() => { + this.$set( + this.form, + "areaNo", + this.containerInfo?.placeInfo?.areaCode + ); + }); + } + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎缂栫爜 */ + onClear() { + this.form = { + containterNo: "", + areaNo: "", + placeNo: "", + targetAreaNo: "", + targetPlaceNo: "", + }; + }, + + // 鑾峰彇搴撳尯鏁版嵁 + async getAreaList() { + try { + let { result } = await getAreaInfo(); + this.areaData = result; + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + // 鎵樼洏澶勭悊 + async onSubmit() { + try { + await pointHandlingTask(this.form); + this.$modal("鐐瑰埌鐐规惉杩愪换鍔$敓鎴愭垚鍔�"); + this.onClear(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval(); + callback && callback(); + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight(); + } + }, 200); + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal); + initInterVal = null; + } catch (e) { + //TODO handle the exception + } + }, + //1鑾峰彇搴撳瓨 + async getStockPageHandle(val) { + console.log(val); + }, + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getAreaList(); + this.ContainerType = getDicList( + this.$store, + "container_type" + ).sysDictDatas; + }); + }, + onUnload() { + this.clearInitInterval(); + }, +}; +</script> + +<style scoped lang="scss"> +.bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } +} + +.forma-item { + margin-bottom: 24rpx; +} + +.material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + & > .label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + & > .content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} + +.label { + margin-left: 25rpx; + font-size: 30rpx; +} +</style> diff --git a/PipeLineLems.PDA/pages/PointHandling/modules/containerInfo.vue b/PipeLineLems.PDA/pages/PointHandling/modules/containerInfo.vue new file mode 100644 index 0000000..9dba433 --- /dev/null +++ b/PipeLineLems.PDA/pages/PointHandling/modules/containerInfo.vue @@ -0,0 +1,85 @@ +<template> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <!-- <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> --> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.containerNo:''}}</view> + </view> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.placeNo:''}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏搴撲綅鐘舵�侊細</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?(parseDic($store,'common_status',containerInfo.containerPlaceStatus)):''}}</view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + containerInfo: { + type: Object, + default: () => {} + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic + } + } +</script> + +<style scoped lang="scss"> + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding: 10rpx 20rpx; + background-color: #fff; + /* margin-bottom: 10rpx; */ + position: relative; + margin:-20rpx auto; + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 200rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/PointHandling/modules/placeInfo.vue b/PipeLineLems.PDA/pages/PointHandling/modules/placeInfo.vue new file mode 100644 index 0000000..a9b9b41 --- /dev/null +++ b/PipeLineLems.PDA/pages/PointHandling/modules/placeInfo.vue @@ -0,0 +1,132 @@ +<template> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label">搴撲綅璇︽儏锛�</view> + <view class="material-item-group" v-if="Boolean(placeInfo)"> + <view class="material-list-item"> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{placeInfo.placeNo}}</view> + </view> + + <view class="item-row"> + <view class="label">鎵�灞炲簱鍖猴細</view> + <view class="content auto-wrap">{{placeInfo.areaCode}}</view> + </view> + </view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + placeInfo: { + type: Object, + default: () => {placeNo:''} + } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + } + } +</script> + +<style scoped lang="scss"> + .scan-input-form-item-compontent{ + width: 100%; + + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + }} + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + background-color: #fff; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* font-weight:5; */ + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/PointHandling/modules/selectItem.vue b/PipeLineLems.PDA/pages/PointHandling/modules/selectItem.vue new file mode 100644 index 0000000..f9616b8 --- /dev/null +++ b/PipeLineLems.PDA/pages/PointHandling/modules/selectItem.vue @@ -0,0 +1,115 @@ +<template> + <view class="forma-item"> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" :label="label" v-model="value" :disabled="disabled"/> + <EasyPicker :visible.sync="visible" :list="selectData" :labelField="labelField" :valueField="valueField" + @select="getSelectData" :isShowSearch="isShowSearch" @getCurrentData="getCurrentData"/> + </view> +</template> +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + import EasyPicker from '@/components/EasyPickerWithSearch.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + export default { + emits:['getCurrentData'], + props: { + selectData: { + type: Array, + default: () => [] + }, + value:{ + type: String, + default: '' + }, + label:{ + type:String, + default:'' + }, + labelField:{ + type:String, + default:'' + }, + valueField:{ + type:String, + default:'' + }, + disabled:{ + type:Boolean, + default:false + }, + isShowSearch:{ + type:Boolean, + default:false + } + }, + components: { + EasyPicker, + ScanInputFormItem + }, + data() { + return { + radiolist1: [], + radiovalue1: '', + visible:false, + } + }, + + methods: { + getSelectData(val){ + this.$emit('update:value',val) + }, + getCurrentData(val){ + //璋冪敤搴撲綅鎺ュ彛锛岃幏鍙栧簱浣嶅垪琛� + this.$emit('getCurrentData',val) + }, + parseDic + } + } +</script> + +<!-- <style scoped> + .custom-radio { + font-size: 16px; + line-height: 24px; + } + + .material-item-group { + padding-top: 10rpx; + display: flex; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + position: relative; + flex: 1; + + &:last-child { + border-bottom: 0; + } + } + } + + .radio-row { + background-color: rgb(255, 255, 255); + margin-bottom: 10px; + padding-top: 15px; + padding-bottom: 15px; + } + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .radio-group u-radio { + width: 50%; + } +</style> --> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/bind/index.vue b/PipeLineLems.PDA/pages/bind/index.vue new file mode 100644 index 0000000..b737d55 --- /dev/null +++ b/PipeLineLems.PDA/pages/bind/index.vue @@ -0,0 +1,535 @@ +<template> + <default-header-page-layout ref="page" title="鑷埗浠剁粍鐩樺叆搴�"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item class="forma-item" label="鎵樼洏缂栫爜" v-model="form.containterCode" + :msg="msg.containter" :msg-type="msgType.containter" @search="onSearchContainter" + @clear="onClearContainter" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" + :disabled = "disabledContainerType" + :clearable="false" + :hasScan="false" :hasSearch="false" @click.native="ctVisible=true" class="forma-item" label="鎵樼洏绫诲瀷" + v-model="form.containerType" /> + <EasyPicker :visible.sync="ctVisible" :list="ContainerType" labelField="value" valueField="code" + @select="getTypeVal" /> + + <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" class="forma-item" label="鐗╂枡浜岀淮鐮�" v-model="form.materialNo" :msg="msg.material" + :msg-type="msgType.material" @search="onSearchMaterial" @clear="onClearMaterial" /> + + <!-- <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" label="閫夋嫨鍏ュ簱鍙�" v-model="form.site" /> + <EasyPicker :visible.sync="visible" :list="placeList.filter(item=>item.columnNo!=3&&item.columnNo!=4)" + labelField="placeNo" valueField="placeNo" @select="getSiteVal" /> --> + <!-- 鑷埗浠跺叆搴撴祴璇� --> + <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" class="forma-item" label="搴撲綅鍙�" v-model="form.placeNo" :hasScan="false" + :hasSearch="false" /> + <materialList :materialData="materialData" @delMaterialData="delMaterialData" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="abled&&materialData.length>0"> + <!-- <div class="btn-frame"><u-button type="primary" text="缁� 鐩�" @click="onSubmit(1)" + :disabled="!abled"></u-button></div> --> + <div class="btn-frame"><u-button type="primary" text="缁勭洏鍦ㄥ簱" @click="onSubmit(2)" + :disabled="!abled"></u-button></div> + <!-- <div class="btn-frame"><u-button type="primary" text="缁勭洏鍏ュ簱" @click="addInBound(1)" + :disabled="!abled"></u-button></div> --> + <!-- <div class="btn-frame" style="margin-left:10rpx"><u-button type="primary" text="鑷埗浠跺叆搴�" + @click="addVirtual(1)" :disabled="!abled"></u-button></div> --> + <!-- <div class="btn-frame" style="margin-left:10rpx"><u-button type="primary" text="鐢熸垚浠诲姟" + @click="addVirtualTask" :disabled="!abled"></u-button></div> --> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import materialList from './modules/materialList.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getForContainerCode, + getForMaterialNo, + bindMaterialContainer, + addInBound, + addInVirtualPlace, + addAGVTask + } from '@/api/bind.js' + let initInterVal = null; + export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containterCode: '', + materialNo: '', + site: '', + containerTypeCode: 0, + containerType: '' + }, + msg: { + containter: '', + material: '', + site: '', + }, + msgType: { + containter: 'info', + material: 'error', + site: 'error' + }, + containerInfo: {}, + materialData: [], + ContainerType: [], + visible: false, + ctVisible: false, + disabledContainerType:false + } + }, + computed: { + + abled() { + let { + containerStatus + } = this.containerInfo + return containerStatus != 0 && containerStatus != 3 && this.materialData.length > 0 + } + }, + watch: { + 'form.containterCode': { + handler(val, oldVal) { + this.resetContainerNo() + } + } + }, + methods: { + // 娴嬭瘯PLC瑙﹀彂鐢熸垚鍏ュ簱浠诲姟 + async addVirtualTask() { + try { + await addAGVTask({ + containerNo: this.form.containterCode + }) + $alert("鐢熸垚浠诲姟鎴愬姛"); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val + }, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.code + this.form.containerType = valObj.value + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + if (!this.form.containterCode) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + // 鑾峰彇浠g爜 + try { + let { + result + } = await getForContainerCode({ + code: this.form.containterCode + }) + this.containerInfo = result + // 鎵樼洏璇︽儏 + let containerStatusName = parseDic(this.$store, 'container_status', result?.containerStatus); + containerStatusName = containerStatusName == '鏃犳瀛楀吀' ? '' : containerStatusName; + this.msg.containter = `鐘舵�侊細${containerStatusName}, 灏哄锛�${result?.specLength}*${result?.specWidth}*${result?.specHeight}`; + + if(result.containerType){ //濡傛灉鎵樼洏瀛樺湪 璧嬪�兼墭鐩樼被鍨� + var arr = this.ContainerType.filter(v=>v.code == result.containerType); + this.form.containerType = arr[0]?.value || ""; + this.form.containerTypeCode = arr[0]?.code || ""; + this.disabledContainerType = true; + }else{ + this.disabledContainerType = false; + this.form.containerType =""; + this.form.containerTypeCode = ""; + } + + result?.materialContainers.forEach(item => { + let isExist = this.materialData.some(item1 => item1.materialId == item.materialId) + if (!isExist) { + this.materialData.push(item) + } + }) + + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: '', + materialNo: '', + site: '', + containerTypeCode: 0, + containerType: '' + } + this.disabledContainerType = false; + this.$set(this.form, 'site', '') + this.resetContainerNo() + }, + resetContainerNo() { + this.msg = { + containter: '', + material: '', + site: '', + } + this.msgType = { + containter: 'info', + material: 'error', + site: 'error' + } + this.containerStatus = null + this.materialData = [] + this.form.materialNo = '' + this.form.site = '' + this.form.containerTypeCode = 0 + this.form.containerType = '' + this.containerInfo = {} + }, + /* 鐗╂枡缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.form.materialNo) { + this.msg.material = '璇疯緭鍏ョ墿鏂欑紪鍙凤紒'; + return false; + } + this.msg.material = '' + try { + let { + result + } = await getForMaterialNo({ + code: this.form.materialNo + }) + const isExist = this.materialData.some(item => item.materialId == result.materialId) + if (!isExist) { + this.materialData.push(result) + }else{ + $alert(`鐗╂枡鍞竴鐮佸凡瀛樺湪,璇峰垹闄ゅ悗鍐嶈緭鍏ワ紒`); + } + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 鐗╂枡缂栫爜娓呴櫎 */ + onClearMaterial() { + this.form.materialNo = '' + }, + //鍒犻櫎鐗╂枡 + delMaterialData(materialId) { + this.materialData = this.materialData.filter(item => item.materialId != materialId) + }, + // 缁勭洏 + async onSubmit(param) { + if (this.containerInfo.isExist == 2 && this.form.containerTypeCode == 0) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�") + } + + if(param){ + this.valateType("缁勭洏"); + return + } + let _isNeedAddContinerPlace=false; + if (param==2 && !this.form.placeNo) { + return $alert("璇疯緭鍏ュ簱浣嶅彿锛�"); + } + if (this.form.placeNo) { + _isNeedAddContinerPlace=true; + } + const data = { + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData, + stationNo:this.form.placeNo, + isNeedAddContinerPlace:_isNeedAddContinerPlace + } + try { + await bindMaterialContainer(data) + this.$modal('缁勭洏鎴愬姛') + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + //鏂规硶 鎻愮ず 鎵樼洏绫诲瀷 鍜� 鐗╂枡绫诲瀷 涓嶄竴鑷� 鏄惁纭缁勭洏 + valateType(name){ + if(this.materialData.length<=0){ + return $alert("璇锋壂鐗╂枡锛�") + } + var flag = false; + //鐗╂枡绫诲瀷锛氭満浣�3 缂哥洊1; 瀹瑰櫒锛氳嚜鍒朵欢鏈轰綋鎵樼洏4 鑷埗浠剁几鐩栨墭鐩�5 + if(this.materialData[0].materialType == 3 && this.form.containerTypeCode!=4){ //鏈轰綋3 + flag = true; + } + + if(this.materialData[0].materialType == 1 && this.form.containerTypeCode!=5){ //缂哥洊1 + flag = true; + } + + if(flag){ + uni.showModal({ + title: '纭' + name, + content: '鎵樼洏绫诲瀷鍜岀墿鏂欑被鍨嬩笉涓�鑷达紝鏄惁纭缁х画锛�', + showCancel: true, + confirmText: '纭', + cancelText: '鍙栨秷', + success: async ({ confirm }) => { + if (confirm) { + if(name=="缁勭洏"){ + this.onSubmit() + } + if(name=="鍏ュ簱"){ + this.addInBound() + } + if(name=="鑷埗浠跺叆搴�"){ + this.addVirtual() + } + } + } + }); + }else{ + if(name=="缁勭洏"){ + this.onSubmit() + } + if(name=="鍏ュ簱"){ + this.addInBound() + } + if(name=="鑷埗浠跺叆搴�"){ + this.addVirtual() + } + } + }, + // 鍏ュ簱 + async addInBound(param) { + if (this.containerInfo.isExist == 2 && this.form.containerTypeCode == 0) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�") + } + // if (!this.form.site) { + // return $alert("璇烽�夋嫨鍏ュ簱鍙o紒"); + // } + if (!this.form.placeNo) { + return $alert("璇疯緭鍏ュ簱浣嶅彿锛�"); + } + if(param){ + this.valateType("鍏ュ簱"); + return + } + const data = { + type: 1, + //stationNo: this.form.site, + stationNo: this.form.placeNo, + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData + } + + try { + await addInBound(data) + this.$modal('鍏ュ簱浠诲姟鐢熸垚鎴愬姛') + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 鑷埗浠跺叆搴� + async addVirtual(param) { + if(param){ + this.valateType("鑷埗浠跺叆搴�"); + return + } + const data = { + containerNo: this.form.containterCode, + placeNo: this.form.placeNo, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData + } + try { + await addInVirtualPlace(data) + this.$modal('鑷埗浠跺叆搴撴垚鍔�') + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getPalceList({ + areaCode: 'LTK-SDCR' + }) + + this.ContainerType = getDicList(this.$store, 'container_type').sysDictDatas + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/bind/modules/materialList.vue b/PipeLineLems.PDA/pages/bind/modules/materialList.vue new file mode 100644 index 0000000..607736d --- /dev/null +++ b/PipeLineLems.PDA/pages/bind/modules/materialList.vue @@ -0,0 +1,161 @@ +<template> + <u-swipe-action v-if="materialData.length>0"> + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.materialId"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮侊細</view> + <view class="content auto-wrap">{{item.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟嗭細</view> + <view class="content auto-wrap">{{item.supplierCode}}</view> + </view> + + <view class="item-row"> + <view class="label">鐗╂枡绫诲瀷锛�</view> +<!-- 鏋氫妇 --> + <view class="content auto-wrap">{{parseDic($store,'material_type',item.materialType)}}</view> + + </view> + + <!-- <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialSpec}}</view> + </view> --> + <view class="item-row"> + <view class="label">鏈哄瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/bindContaniner/index.vue b/PipeLineLems.PDA/pages/bindContaniner/index.vue new file mode 100644 index 0000000..dbf809c --- /dev/null +++ b/PipeLineLems.PDA/pages/bindContaniner/index.vue @@ -0,0 +1,411 @@ +<template> + <default-header-page-layout ref="page" title="澶栧崗浠剁粍鎵�"> + <view class="page-frame with-action-user-row" :style="{ height: pageBodyHeight + 'px' }" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏缂栫爜" + v-model="form.containterCode" + :msg="msg.containter" + :msg-type="msgType.containter" + @search="onSearchContainter" + @clear="onClearContainter" + /> + <scan-input-form-item + class="forma-item" + label="绌烘墭缂栫爜" + v-model="form.materialNo" + :msg="msg.material" + :msg-type="msgType.material" + @search="onSearchMaterial" + @clear="onClearMaterial" + + /> + <scan-input-form-item + placeholder="璇烽�夋嫨" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="visible = true" + class="forma-item" + label="閫夋嫨搴撳彛" + v-model="form.site" + /> + <EasyPicker :visible.sync="visible" :list="placeList.filter(item=>item.placeNo!='ZDCR')" labelField="placeNo" valueField="placeNo" @select="getSiteVal"/> + <!-- <EasyPicker :visible.sync="visible" :list="placeList" labelField="placeNo" valueField="placeNo" @select="getSiteVal" /> --> + <materialList :contaninerData="contaninerData" @delContainer="delContainer" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="缁� 鎵�" @click="onSubmit"></u-button></div> + <div class="btn-frame"><u-button type="primary" text="缁勬墭鍏ュ簱" @click="addInBound"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue'; +import ActionUserRow from '@/components/ActionUserRow.vue'; +import ScanInputFormItem from '@/components/ScanInputFormItem.vue'; +import EasySelectFormItem from '@/components/EasySelectFormItem.vue'; +import EasyPicker from '@/components/EasyPicker.vue'; +import materialList from './modules/materialList.vue'; +import { parseDic, $alert, $successInfo } from '@/static/js/utils/index.js'; +import { palceList } from '@/service/mixins/mixins.js'; +import { getContainerInfo } from '@/api/common.js'; +import { getForEmptyContainerNo, getForMaterialNo, bindMaterialContainer, addInBound } from '@/api/bind.js'; + import {NFCInit,NFCReadUID } from '@/service/util/RfidMethod.js' +let initInterVal = null; +export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + form: { + containterCode: '', + materialNo: '', + site: '' + }, + msg: { + containter: '', + material: '', + site: '' + }, + msgType: { + containter: 'info', + material: 'error', + site: 'error' + }, + containerStatus: null, + contaninerData: [], + visible: false + }; + }, + computed: { + // disabledBind() { + // return !Boolean(this.containerStatus) || this.contaninerData.length < 1; + // }, + // disabledBound() { + // return !Boolean(this.containerStatus); + // } + }, + watch: { + 'form.containterCode': { + handler(val, oldVal) { + this.resetContainerNo(); + } + } + }, + onShow() { + console.log('onShow'); + var nfc = NFCInit(); + console.log(nfc); + }, + onHide() { + console.log('onHide'); + var rfid = NFCReadUID(); + if(rfid!=null){ + if(this.form.containterCode ==''){ + this.form.containterCode = rfid.UID + } else{ + this.form.materialNo = rfid.UID + } + } + console.log(rfid); + }, + methods: { + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val; + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + if (!this.form.containterCode) { + this.msgType.containter = 'error'; + this.msg.containter = '璇疯緭鍏ユ墭鐩樺彿锛�'; + return false; + } + // 鑾峰彇浠g爜 + try { + let { result } = await getForEmptyContainerNo({ code: this.form.containterCode }); + this.containerStatus = result?.containerStatus; + // var notKT=result?.materialContainers.some(item=>item.materialNo!='KONGTUO') + // if(notKT) { + // this.$modal('褰撳墠鎵樼洏瀛樺湪闈炵┖鎵樼墿鏂�') + // this.onClearContainter() + // } + // 鎵樼洏璇︽儏 + let containerStatusName = parseDic(this.$store, 'container_status', result?.containerStatus); + containerStatusName = containerStatusName == '鏃犳瀛楀吀' ? '' : containerStatusName; + this.msg.containter = `鐘舵�侊細${containerStatusName}, 灏哄锛�${result?.specLength}*${result?.specWidth}*${result?.specHeight}`; + + result?.containerList.forEach((item) => { + let isExist = this.contaninerData.some((item1) => item1.containerNo == item.containerNo); + if (!isExist) { + this.contaninerData.push(item); + } + }); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: '', + materialNo: '', + site: '' + }; + this.resetContainerNo(); + }, + // 閲嶅啓鎵樼洏缂栫爜 + resetContainerNo() { + this.msg = { + containter: '', + material: '', + site: '' + }; + this.msgType = { + containter: 'info', + material: 'error', + site: 'error' + }; + this.containerStatus = null; + this.contaninerData = []; + this.form.materialNo = ''; + this.form.site = ''; + }, + /* 绌烘墭缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.form.materialNo) { + this.msg.material = '璇疯緭鍏ョ┖鎵樼紪鍙凤紒'; + return false; + } + this.msg.material = ''; + try { + let { result } = await getContainerInfo({ ContainerNo: this.form.materialNo }); + if (result.containerNo == this.form.containterCode) { + return this.$modal('褰撳墠绌烘墭涓庢墭鐩橀噸澶�'); + } + var isExit = this.contaninerData.some((item) => item.containerNo == result.containerNo); + isExit ? '' : this.contaninerData.push(result); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 鐗╂枡缂栫爜娓呴櫎 */ + onClearMaterial() { + this.form.materialNo = ''; + }, + + //鍒犻櫎绌烘墭 + delContainer(containerNo) { + this.contaninerData = this.contaninerData.filter((item) => item.containerNo != containerNo); + }, + // 缁勬墭 + async onSubmit() { + let { contaninerData, form } = this; + // if(contaninerData.length>3) { + // return $alert("缁勬墭鏁伴噺涓嶈兘瓒呰繃4涓紒") + // } + const data = { + type: 2, + containerNo: form.containterCode, + materialContainerList: [] + }; + + data.materialContainerList = contaninerData.map((item) => { + return { + materialNo: 'KONGTUO', + materialName: '绌烘墭', + materialId: item.containerNo + }; + }); + try { + await bindMaterialContainer(data); + this.$modal('缁勬墭鎴愬姛'); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 鍏ュ簱 + async addInBound() { + // if(this.contaninerData.length>3) { + // return $alert("缁勬墭鏁伴噺涓嶈兘瓒呰繃4涓紒") + // } + const data = { + stationNo: this.form.site, + type: 2, + containerNo: this.form.containterCode, + materialContainerList: this.contaninerData.map((item) => { + return { + materialId: item.containerNo, + materialNo: 'KONGTUO', + materialName: '绌烘墭', + materialType: 4 + }; + }) + }; + + try { + await addInBound(data); + this.$modal('鍏ュ簱鎴愬姛'); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval(); + callback && callback(); + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight(); + } + }, 200); + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal); + initInterVal = null; + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getPalceList({ + areaCode: 'WXJSXL' + }); + }); + }, + onUnload() { + this.clearInitInterval(); + } +}; +</script> + +<style scoped lang="scss"> +.bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } +} + +.forma-item { + margin-bottom: 24rpx; +} + +.material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + & > .label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + & > .content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} +</style> diff --git a/PipeLineLems.PDA/pages/bindContaniner/modules/materialList.vue b/PipeLineLems.PDA/pages/bindContaniner/modules/materialList.vue new file mode 100644 index 0000000..9c80035 --- /dev/null +++ b/PipeLineLems.PDA/pages/bindContaniner/modules/materialList.vue @@ -0,0 +1,136 @@ +<template> + <u-swipe-action v-if="contaninerData.length>0" > + <u-swipe-action-item :options="options" v-for="(item,index) in contaninerData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.containerNo"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{item.containerNo}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏鐘舵�侊細</view> + <view class="content auto-wrap">{{parseDic($store,'container_status',item.containerStatus)}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.specLength}}*{{item.specWidth}}*{{item.specHeight}}</view> + </view> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + contaninerData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delContainer',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* font-weight:5; */ + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/bindInForLocation/index.vue b/PipeLineLems.PDA/pages/bindInForLocation/index.vue new file mode 100644 index 0000000..aecaac6 --- /dev/null +++ b/PipeLineLems.PDA/pages/bindInForLocation/index.vue @@ -0,0 +1,629 @@ +<template> + <default-header-page-layout ref="page" title="骞冲簱缁勭洏鍏ュ簱"> + <view + class="page-frame with-action-user-row" + :style="{ height: pageBodyHeight + 'px' }" + v-if="pageBodyHeight" + > + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item + class="forma-item" + label="鎵樼洏缂栫爜" + v-model="form.containterCode" + :msg="msg.containter" + :msg-type="msgType.containter" + @search="onSearchContainter" + @clear="onClearContainter" + /> + + <scan-input-form-item + placeholder="璇烽�夋嫨" + :disabled="disabledContainerType" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="ctVisible = true" + class="forma-item" + label="鎵樼洏绫诲瀷" + v-model="form.containerType" + /> + <EasyPicker + :visible.sync="ctVisible" + :list="ContainerType" + labelField="value" + valueField="code" + @select="getTypeVal" + /> + + <selectItem + v-show="Boolean(containerInfo.containerNo)" + :selectData="areaData" + :value.sync="form.areaNo" + label="搴撳尯缂栫爜" + labelField="areaName" + valueField="areaNo" + /> + + <!-- <selectItem + :selectData="placeList" + :value.sync="form.placeNo" + label="搴撲綅缂栫爜" + labelField="placeNo" + valueField="placeNo" + @getCurrentData="getCurrentData" + :isShowSearch="true" + /> --> + +<!-- @confirmHc="getStockPageHandle" --> + <selectItemWc2 + v-show="Boolean(containerInfo.containerNo)" + :selectData="placeList" + :value.sync="form.placeNo" + label="搴撲綅缂栫爜" + labelField="placeNo" + valueField="placeNo" + @getPropData="getCurrentData" + /> + + <scan-input-form-item + v-show="Boolean(containerInfo.containerNo)" + class="forma-item" + label="鐗╂枡浜岀淮鐮�" + v-model="form.materialNo" + :msg="msg.material" + :msg-type="msgType.material" + @search="onSearchMaterial" + @clear="onClearMaterial" + /> + <materialList + :materialData="materialData" + @delMaterialData="delMaterialData" + /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="abled && materialData.length > 0"> + <div class="btn-frame"> + <u-button + type="primary" + text="缁� 鐩�" + @click="onSubmit(1)" + :disabled="!abled" + ></u-button> + </div> + <div class="btn-frame"> + <u-button + type="primary" + text="缁勭洏鍏ュ簱" + @click="AddInBoundForFlat(1)" + :disabled="!abled" + ></u-button> + </div> + <!-- <div class="btn-frame" style="margin-left:10rpx"><u-button type="primary" text="鑷埗浠跺叆搴�" + @click="addVirtual(1)" :disabled="!abled"></u-button></div> --> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from "@/components/DefaultHeaderPageLayout.vue"; +import ActionUserRow from "@/components/ActionUserRow.vue"; +import ScanInputFormItem from "@/components/ScanInputFormItem.vue"; +import EasySelectFormItem from "@/components/EasySelectFormItem.vue"; +import EasyPicker from "@/components/EasyPicker.vue"; +import materialList from "./modules/materialList.vue"; +import selectItem from "@/components/selectItem.vue"; +import { getAreaInfo } from "@/api/common.js"; +import selectItemWc2 from "@/components/selectItemWithSearchWc2.vue"; + +import { + parseDic, + $alert, + $successInfo, + getDicList, +} from "@/static/js/utils/index.js"; +import { palceList } from "@/service/mixins/mixins.js"; +import { + getForContainerCode, + getForMaterialNo, + bindMaterialContainer, + AddInBoundForFlat, + addInVirtualPlace, + addAGVTask, +} from "@/api/bind.js"; +let initInterVal = null; +export default { + name: "receiveInPage", + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker, + selectItem, + selectItemWc2 + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containterCode: "", + materialNo: "", + site: "", + containerTypeCode: 0, + containerType: "", + placeNo: "", + }, + msg: { + containter: "", + material: "", + site: "", + }, + msgType: { + containter: "info", + material: "error", + site: "error", + }, + containerInfo: {}, + materialData: [], + ContainerType: [], + visible: false, + ctVisible: false, + disabledContainerType: false, + areaData: [], + placeList: [], + }; + }, + computed: { + abled() { + let { containerStatus } = this.containerInfo; + return ( + containerStatus != 0 && + containerStatus != 3 && + this.materialData.length > 0 + ); + }, + }, + watch: { + //閫夋嫨鍖� 閲嶆柊鑾峰彇搴撲綅 + "form.areaNo": { + handler(val, oldVal) { + if (val != "") { + this.form.placeNo = ""; + this.placeList = []; + // 鑾峰彇搴撳瓨 + this.getPalceList({ + areaCode: val, + }); + } + }, + }, + }, + methods: { + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val; + }, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.code; + this.form.containerType = valObj.value; + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + + if (!this.form.containterCode) { + this.msgType.containter = "error"; + this.msg.containter = "璇疯緭鍏ユ墭鐩樼紪鍙凤紒"; + return false; + } + // 鑾峰彇浠g爜 + try { + this.materialData =[]; + let { result } = await getForContainerCode({ + code: this.form.containterCode, + }); + this.containerInfo = result; + // 鎵樼洏璇︽儏 + let containerStatusName = parseDic( + this.$store, + "container_status", + result?.containerStatus + ); + containerStatusName = + containerStatusName == "鏃犳瀛楀吀" ? "" : containerStatusName; + this.msg.containter = `鐘舵�侊細${containerStatusName}, 灏哄锛�${result?.specLength}*${result?.specWidth}*${result?.specHeight}`; + + if (result.containerType) { + //濡傛灉鎵樼洏瀛樺湪 璧嬪�兼墭鐩樼被鍨� + var arr = this.ContainerType.filter( + (v) => v.code == result.containerType + ); + this.form.containerType = arr[0]?.value || ""; + this.form.containerTypeCode = arr[0]?.code || ""; + this.disabledContainerType = true; + } else { + this.disabledContainerType = false; + this.form.containerType = ""; + this.form.containerTypeCode = ""; + } + + result?.materialContainers.forEach((item) => { + let isExist = this.materialData.some( + (item1) => item1.materialId == item.materialId + ); + if (!isExist) { + this.materialData.push(item); + } + }); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: "", + containerType: "", + areaNo: "", + materialNo: "", + site: "", + containerTypeCode: 0, + placeNo: "", + }; + this.disabledContainerType = false; + this.$set(this.form, "site", ""); + this.resetContainerNo(); + }, + resetContainerNo() { + this.msg = { + containter: "", + material: "", + site: "", + }; + this.msgType = { + containter: "info", + material: "error", + site: "error", + }; + this.containerStatus = null; + this.materialData = []; + this.form.materialNo = ""; + this.form.site = ""; + this.form.containerTypeCode = 0; + this.form.areaNo = ""; + this.form.placeNo = ""; + this.form.containerType = ""; + this.containerInfo = {}; + }, + /* 鐗╂枡缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.form.materialNo) { + this.msg.material = "璇疯緭鍏ョ墿鏂欑紪鍙凤紒"; + return false; + } + this.msg.material = ""; + try { + let { result } = await getForMaterialNo({ + code: this.form.materialNo, + }); + const isExist = this.materialData.some( + (item) => item.materialId == result.materialId + ); + if (!isExist) { + this.materialData.push(result); + } else { + $alert(`鐗╂枡鍞竴鐮佸凡瀛樺湪,璇峰垹闄ゅ悗鍐嶈緭鍏ワ紒`); + } + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 鐗╂枡缂栫爜娓呴櫎 */ + onClearMaterial() { + this.form.materialNo = ""; + }, + //鍒犻櫎鐗╂枡 + delMaterialData(materialId) { + this.materialData = this.materialData.filter( + (item) => item.materialId != materialId + ); + }, + // 缁勭洏 + async onSubmit(param) { + if (this.containerInfo.isExist == 2 && this.form.containerTypeCode == 0) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�"); + } + + if (param) { + this.valateType("缁勭洏"); + return; + } + const data = { + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData, + }; + try { + await bindMaterialContainer(data); + this.$modal("缁勭洏鎴愬姛"); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + //鏂规硶 鎻愮ず 鎵樼洏绫诲瀷 鍜� 鐗╂枡绫诲瀷 涓嶄竴鑷� 鏄惁纭缁勭洏 + valateType(name) { + if (this.materialData.length <= 0) { + return $alert("璇锋壂鐗╂枡锛�"); + } + var flag = false; + //鐗╂枡绫诲瀷锛氭満浣�3 缂哥洊1; 瀹瑰櫒锛氳嚜鍒朵欢鏈轰綋鎵樼洏4 鑷埗浠剁几鐩栨墭鐩�5 + if ( + this.materialData[0].materialType == 3 && + this.form.containerTypeCode != 4 + ) { + //鏈轰綋3 + flag = true; + } + + if ( + this.materialData[0].materialType == 1 && + this.form.containerTypeCode != 5 + ) { + //缂哥洊1 + flag = true; + } + + if (flag) { + uni.showModal({ + title: "纭" + name, + content: "鎵樼洏绫诲瀷鍜岀墿鏂欑被鍨嬩笉涓�鑷达紝鏄惁纭缁х画锛�", + showCancel: true, + confirmText: "纭", + cancelText: "鍙栨秷", + success: async ({ confirm }) => { + if (confirm) { + if (name == "缁勭洏") { + this.onSubmit(); + } + if (name == "鍏ュ簱") { + this.AddInBoundForFlat(); + } + if (name == "鑷埗浠跺叆搴�") { + this.addVirtual(); + } + } + }, + }); + } else { + if (name == "缁勭洏") { + this.onSubmit(); + } + if (name == "鍏ュ簱") { + this.AddInBoundForFlat(); + } + if (name == "鑷埗浠跺叆搴�") { + this.addVirtual(); + } + } + }, + // 鍏ュ簱 + async AddInBoundForFlat(param) { + if (this.containerInfo.isExist == 2 && this.form.containerTypeCode == 0) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�"); + } + if (!this.form.placeNo) { + return $alert("璇烽�夋嫨搴撲綅锛�"); + } + if (param) { + this.valateType("鍏ュ簱"); + return; + } + const data = { + type: 1, + stationNo: this.form.site, + placeNo: this.form.placeNo, + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData, + }; + + try { + await AddInBoundForFlat(data); + this.$modal("鍏ュ簱鎴愬姛"); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 鑷埗浠跺叆搴� + async addVirtual(param) { + if (param) { + this.valateType("鑷埗浠跺叆搴�"); + return; + } + const data = { + containerNo: this.form.containterCode, + placeNo: this.form.placeNo, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData, + }; + try { + await addInVirtualPlace(data); + this.$modal("鑷埗浠跺叆搴撴垚鍔�"); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval(); + callback && callback(); + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight(); + } + }, 200); + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal); + initInterVal = null; + } catch (e) { + //TODO handle the exception + } + }, + // 鑾峰彇搴撳尯鏁版嵁 + async getAreaList() { + try { + let { result } = await getAreaInfo(); + this.areaData = result.filter((item) => item.areaType == 3); + } catch (e) { + console.log(e); + } + }, + //搴撲綅妯$硦鏌ヨ + async getCurrentData(PlaceNo) { + await this.getPalceList({ + areaCode: this.form.areaNo, + PlaceNo: PlaceNo, + }); + }, + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getPalceList({ + // areaCode: 'LTK-SDCR' + // }) + this.getAreaList(); + this.ContainerType = getDicList( + this.$store, + "container_type" + ).sysDictDatas; + }); + }, + onUnload() { + this.clearInitInterval(); + }, +}; +</script> + +<style scoped lang="scss"> +.bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } +} + +.forma-item { + margin-bottom: 24rpx; +} + +.material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + & > .label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + & > .content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} +</style> diff --git a/PipeLineLems.PDA/pages/bindInForLocation/modules/materialList.vue b/PipeLineLems.PDA/pages/bindInForLocation/modules/materialList.vue new file mode 100644 index 0000000..50975c6 --- /dev/null +++ b/PipeLineLems.PDA/pages/bindInForLocation/modules/materialList.vue @@ -0,0 +1,161 @@ +<template> + <u-swipe-action v-if="materialData.length>0" > + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.materialId"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮侊細</view> + <view class="content auto-wrap">{{item.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟嗭細</view> + <view class="content auto-wrap">{{item.supplierCode}}</view> + </view> + + <view class="item-row"> + <view class="label">鐗╂枡绫诲瀷锛�</view> +<!-- 鏋氫妇 --> + <view class="content auto-wrap">{{parseDic($store,'material_type',item.materialType)}}</view> + + </view> + + <!-- <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialSpec}}</view> + </view> --> + <view class="item-row"> + <view class="label">鏈哄瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/bindWXJ/index.vue b/PipeLineLems.PDA/pages/bindWXJ/index.vue new file mode 100644 index 0000000..998b9c0 --- /dev/null +++ b/PipeLineLems.PDA/pages/bindWXJ/index.vue @@ -0,0 +1,475 @@ +<template> + <default-header-page-layout ref="page" title="澶栧崗浠剁粍鐩樺叆搴�"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item class="forma-item" label="鎵樼洏缂栫爜" v-model="form.containterCode" + :msg="msg.containter" :msg-type="msgType.containter" @search="onSearchContainter" + @clear="onClearContainter" /> + + <!-- v-if="containerInfo.isExist==2" --> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" + :hasScan="false" :hasSearch="false" @click.native="ctVisible=true" class="forma-item" label="鎵樼洏绫诲瀷" + v-model="form.containerType" /> + <EasyPicker :visible.sync="ctVisible" :list="ContainerType" labelField="value" valueField="code" + @select="getTypeVal" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visibleSort1=true" class="forma-item" label="鏄惁绌烘墭鐩�" v-model="form.sorting" /> + <EasyPicker :visible.sync="visibleSort1" :list="isSorting" labelField="label" valueField="value" + @select="radioChange1" /> + + <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" class="forma-item" label="鐗╂枡浜岀淮鐮�" v-model="form.materialNo" :msg="msg.material" + :msg-type="msgType.material" @search="onSearchMaterial" @clear="onClearMaterial" /> + + <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" label="閫夋嫨搴撲綅" v-model="form.site" /> + <EasyPicker :visible.sync="visible" :list="placeList" + labelField="placeNo" valueField="placeNo" @select="getSiteVal" /> + <!-- .filter(item=>item.placeNo!='storageTypeNo') --> + <!-- 鑷埗浠跺叆搴撴祴璇� --> + <!-- <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" class="forma-item" label="澶栧崗浠朵笅鏂欑偣(娴嬭瘯)" v-model="form.placeNo" :hasScan="false" + :hasSearch="false" /> --> + <materialList :materialData="materialData" @delMaterialData="delMaterialData" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="abled"> + <div class="btn-frame"><u-button type="primary" text="缁� 鐩�" @click="onSubmit" + :disabled="!abled"></u-button></div> + <div class="btn-frame"><u-button type="primary" text="缁勭洏鍏ュ簱" @click="addInBound" + :disabled="!abled"></u-button></div> + <div class="btn-frame" style="margin-left:10rpx"><u-button type="primary" text="澶栧崗浠跺叆搴�" + @click="addInVirtualWxjPlace" :disabled="!abled"></u-button></div> + <!-- <div class="btn-frame" style="margin-left:10rpx"><u-button type="primary" text="鐢熸垚浠诲姟" + @click="addVirtualTask" :disabled="!abled"></u-button></div> --> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import materialList from './modules/materialList.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getForContainerCode, + getForMaterialNo, + bindMaterialContainer, + addInBound, + addInVirtualWxjPlace, + addAGVTask + } from '@/api/bind.js' + let initInterVal = null; + export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker + }, + data() { + return { + isSorting: [{ + label: '鏄�', + value: '1' + }, + { + label: '鍚�', + value: '0' + } + ], + pageBodyHeight: 0, + containter: null, + form: { + containterCode: '', + materialNo: '', + site: '', + containerTypeCode: 0, + containerType: '' + }, + msg: { + containter: '', + material: '', + site: '', + }, + msgType: { + containter: 'info', + material: 'error', + site: 'error' + }, + containerInfo: {}, + materialData: [], + ContainerType: [], + visible: false, + ctVisible: false, + visibleSort1:false, + } + }, + computed: { + /* && this.materialData.length > 0 */ + abled() { + let { + containerStatus + } = this.containerInfo + return containerStatus != 0 && containerStatus != 3 + } + }, + watch: { + 'form.containterCode': { + handler(val, oldVal) { + this.resetContainerNo() + } + } + }, + methods: { + // 娴嬭瘯PLC瑙﹀彂鐢熸垚鍏ュ簱浠诲姟 + async addVirtualTask() { + try { + await addAGVTask({ + containerNo: this.form.containterCode + }) + $alert("鐢熸垚浠诲姟鎴愬姛"); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val + }, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.code + this.form.containerType = valObj.value + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + if (!this.form.containterCode) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + // 鑾峰彇浠g爜 + try { + let { + result + } = await getForContainerCode({ + code: this.form.containterCode + }) + this.containerInfo = result + // 鎵樼洏璇︽儏 + let containerStatusName = parseDic(this.$store, 'container_status', result?.containerStatus) + containerStatusName = containerStatusName == '鏃犳瀛楀吀' ? '' : containerStatusName + this.msg.containter = + `鐘舵�侊細${containerStatusName}, 灏哄锛�${result?.specLength}*${result?.specWidth}*${result?.specHeight}` + result?.materialContainers.forEach(item => { + + let isExist = this.materialData.some(item1 => item1.materialId == item.materialId) + if (!isExist) { + this.materialData.push(item) + } + }) + + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: '', + materialNo: '', + site: '', + containerTypeCode: 0, + containerType: '' + } + this.$set(this.form, 'site', '') + this.resetContainerNo() + }, + resetContainerNo() { + this.msg = { + containter: '', + material: '', + site: '', + } + this.msgType = { + containter: 'info', + material: 'error', + site: 'error' + } + this.containerStatus = null + this.materialData = [] + this.form.materialNo = '' + this.form.site = '' + this.form.containerTypeCode = 0 + this.form.containerType = '' + this.containerInfo = {} + }, + /* 鐗╂枡缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.form.materialNo) { + this.msg.material = '璇疯緭鍏ョ墿鏂欑紪鍙凤紒'; + return false; + } + this.msg.material = '' + try { + let { + result + } = await getForMaterialNo({ + code: this.form.materialNo + }) + const isExist = this.materialData.some(item => item.materialId == result.materialId) + if (!isExist) { + this.materialData.push(result) + }else{ + $alert(`鐗╂枡鍞竴鐮佸凡瀛樺湪,璇峰垹闄ゅ悗鍐嶈緭鍏ワ紒`); + } + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 鐗╂枡缂栫爜娓呴櫎 */ + onClearMaterial() { + this.form.materialNo = '' + }, + //鍒犻櫎鐗╂枡 + delMaterialData(materialId) { + this.materialData = this.materialData.filter(item => item.materialId != materialId) + }, + // 缁勭洏 + async onSubmit() { + if (this.containerInfo.isExist == 2 && this.form.containerTypeCode == 0) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�") + } + const data = { + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData + } + try { + await bindMaterialContainer(data) + this.$modal('缁勭洏鎴愬姛') + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 鍏ュ簱 + async addInBound() { + if (this.containerInfo.isExist == 2 && this.form.containerTypeCode == 0) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�") + } + if (this.form.orderType != "1" && this.form.orderType != "0") + { + return $alert("閫夋嫨鍒欐槸鍚︾┖鎵樼洏!") + } + if(this.form.orderType == "1" && this.materialData.length > 0) + { + return $alert("褰撳墠閫夋嫨鐨勬槸绌烘墭鐩�,璇峰垹闄ょ墿鏂欎俊鎭�!"); + + } + + + const data = { + type: 4, + stationNo: this.form.site, + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData, + isEmptyContainer: this.form.orderType == "1" ? 1 : 0 + } + + try { + await addInBound(data) + this.$modal('鍏ュ簱浠诲姟鐢熸垚鎴愬姛') + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 澶栧崗浠跺叆搴� + async addInVirtualWxjPlace() { + const data = { + containerNo: this.form.containterCode, + placeNo: this.form.placeNo, + containerType: this.form.containerTypeCode, + materialContainerList: this.materialData, + isEmptyContainer: this.form.orderType + } + try { + await addInVirtualWxjPlace(data) + this.$modal('澶栧崗浠跺叆搴撴垚鍔�') + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + }, + radioChange1(val, b) { + this.form.orderType = val + this.form.sorting=b.label + }, + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getPalceList({ + areaCode: 'LTK-SDCR' + }) + + this.ContainerType = getDicList(this.$store, 'container_type').sysDictDatas + }) + }, + onUnload() { + this.clearInitInterval() + }, + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/bindWXJ/modules/materialList.vue b/PipeLineLems.PDA/pages/bindWXJ/modules/materialList.vue new file mode 100644 index 0000000..5eb7e39 --- /dev/null +++ b/PipeLineLems.PDA/pages/bindWXJ/modules/materialList.vue @@ -0,0 +1,153 @@ +<template> + <u-swipe-action v-if="materialData.length>0" > + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.materialId"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮侊細</view> + <view class="content auto-wrap">{{item.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟嗭細</view> + <view class="content auto-wrap">{{item.supplierCode}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialSpec}}</view> + </view> --> + <view class="item-row"> + <view class="label">鏈哄瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/changeStore/index.vue b/PipeLineLems.PDA/pages/changeStore/index.vue new file mode 100644 index 0000000..5f82afd --- /dev/null +++ b/PipeLineLems.PDA/pages/changeStore/index.vue @@ -0,0 +1,325 @@ +<template> + <default-header-page-layout ref="page" title="绉诲簱浣滀笟" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + + <easy-select-form-item + class="forma-item" + label="鐩爣搴撳尯" + v-model="form.id" + :msg="msg.id" + :list="selectOptions.areas" + value-field="id" + label-field="areaName" + :clearable="false" + /> + + <easy-select-form-item + v-if="form.id" + class="forma-item" + label="鐩爣鎺�" + v-model="form.rowno" + :msg="msg.rowno" + :list="selectOptions.rows" + /> + + <easy-select-form-item + v-if="form.rowno" + label="鐩爣鍒�" + v-model="form.column" + :msg="msg.column" + :list="selectOptions.columns" + /> + </view> + + <easy-picker :visible.sync="modelVisible" :list="selectOptions.models" value-field="code" label-field="name" @select="onChangeModel"></easy-picker> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鎻� 浜�" @click="onConfirm"></u-button></view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import EasyPicker from '@/components/EasyPicker.vue' +import { $successInfo, getDicList } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + id:null, + container:'', + rowno:null, + column:null +} +export default { + name:'changeStorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem,EasyPicker}, + data(){ + return { + pageBodyHeight:0, + form:{...defaultForm}, + msg:{ + id:'', + container:'', + rowno:'', + column:'' + }, + checkContainer:'', + placeCode:'', + selectOptions:{ + areas:[], + rows:[], + columns:[], + models:[] + }, + modelVisible:false + } + }, + watch:{ + 'form.id'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchArea() + } + }, + 'form.rowno'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchRow() + } + }, + 'form.column'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchColumn() + } + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainerInfo() + }, + onClearContainer(){ + this.clearFullContainer() + }, + clearFullContainer(){ + this.clearContainer() + this.clearBackContainer() + }, + clearContainer(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.checkContainer = '' + this.placeCode = '' + }, + clearFullRow(){ + this.selectOptions.rows = [] + this.clearRow() + }, + clearRow(){ + this.form.rowno = '' + this.msg.rowno = '' + }, + clearFullCol(){ + this.selectOptions.columns = [] + this.clearCol() + }, + clearCol(){ + this.form.column = '' + this.msg.column = '' + }, + getContainerInfo(){ + let params = {ContainerCode :this.form.container} + this.$api.get('ContainerInformation',params,{block:'changeStore',warn:false}).then((d)=>{ + this.checkContainer = d.containerCode + this.placeCode = d.placeCode + }).catch(_errmsg=>{ + this.clearBackContainer() + this.msg.container = _errmsg; + }) + }, + getAreaSelectOptions(){ + this.$api.get('GetArea',{},{block:'changeStore'}).then((d)=>{ + this.selectOptions.areas = d || [] + }).catch(_errmsg=>{ + console.log(_errmsg) + }) + }, + getRowsByArea(){ + let params = {Areaid:this.form.id} + this.$api.get('GetPalceRowno',params,{block:'changeStore'}).then((d)=>{ + this.selectOptions.rows = d || [] + this.form.rowno = '' + }).catch(_errmsg=>{ + this.clearFullRow() + console.log(_errmsg) + }) + }, + getColumnsByAreaAndRow(){ + let params = {Areaid:this.form.id,Rowno:this.form.rowno} + this.$api.get('GetPalceColumn',params,{block:'changeStore'}).then((d)=>{ + this.selectOptions.columns = d || [] + this.form.column = '' + }).catch(_errmsg=>{ + this.clearFullCol() + console.log(_errmsg) + }) + }, + watchArea(){ + this.msg.id = '' + this.getRowsByArea() + }, + watchRow(){ + this.msg.rowno = '' + if (this.form.rowno) { + this.getColumnsByAreaAndRow() + } else { + this.clearFullCol() + } + }, + watchColumn(){ + this.msg.column = '' + }, + getSubmitParams(){ + return { + containerCode:this.checkContainer, + placeCode:this.placeCode, + id:this.form.id, + rowno:this.form.rowno, + column:this.form.column + } + }, + checkBeforeSubmit(){ + let res = {flag:true,data:{}} + res.data = this.getSubmitParams() + if (!res.data.containerCode) { + this.msg.container = '璇峰厛褰曞叆鎵樼洏淇℃伅锛�' + res.flag = false + } else { + if (res.data.containerCode.toUpperCase()!==this.form.container.toUpperCase()) { + this.msg.container = '褰曞叆鎵樼洏鐮佷笌楠岃瘉鎵樼洏鐮佷笉鍖归厤锛�' + res.flag = false + } else { + this.msg.container = '' + } + } + if (res.flag && !res.data.id) { + this.msg.id = '璇烽�夋嫨鐩爣搴撳尯锛�' + res.flag = false + } + if (res.flag && !res.data.rowno) { + this.msg.rowno = '璇烽�夋嫨鐩爣鎺掞紒' + res.flag = false + } + if (res.flag && !res.data.column) { + this.msg.column = '璇烽�夋嫨鐩爣鍒楋紒' + res.flag = false + } + return res; + }, + onChangeModel(val){ + this.dealSubmit(val) + }, + onReset(){ + this.reset() + }, + onConfirm(){ + this.modelVisible = true + }, + reset(){ + this.clearFullContainer() + this.msg.id = '' + this.clearFullRow() + }, + dealSubmit(val){ + let check = this.checkBeforeSubmit() + if (!check.flag) return false; + let params = check.data + params.assembleTask = val + this.confirmAjax(params,(f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.reset() + } + }) + }, + confirmAjax(params,callback){ + this.$api.post('SubmitRelocationPda',params,{block:'changeStore'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getAreaSelectOptions() + this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.forma-item{ + margin-bottom: 24rpx; +} +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/checkStock/index.vue b/PipeLineLems.PDA/pages/checkStock/index.vue new file mode 100644 index 0000000..e629b62 --- /dev/null +++ b/PipeLineLems.PDA/pages/checkStock/index.vue @@ -0,0 +1,125 @@ +<template> + <default-header-page-layout ref="page" title="鐩樼偣浣滀笟" :back-custom="true" @back="onPageBack"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <page-main-list v-show="pageType==='mainlist'" :resetflag.sync="resetflag" ref="mainlist" @query="onListQuery" @action="onListAction" /> + <page-main-search v-show="pageType==='mainsearch'" :resetflag="resetflag" @callback="onSearchCallBack" /> + <page-detail-list v-show="pageType==='detaillist'" ref="detaillist" :main-obj="mainActionRow" @action="onDeatilAction" /> + <page-check-action v-show="pageType==='checkaction'" ref="checkaction" :main-obj="mainActionRow" /> + </view> + </view> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import PageMainList from './modules/MainList.vue' +import PageMainSearch from './modules/MainSearch.vue' +import PageDetailList from './modules/DetailList.vue' +import PageCheckAction from './modules/CheckAction.vue' +let initInterVal = null; +export default { + name:'demoPage', + components:{DefaultHeaderPageLayout,ActionUserRow,PageMainList,PageMainSearch,PageDetailList,PageCheckAction}, + data(){ + return { + pageBodyHeight:0, + pageType:'mainlist', + resetflag:0, + query:null, + mainActionRow:{} + } + }, + watch:{ + pageType(newVal, oldVal){ + if (newVal !== oldVal) { + if (newVal) { + this.switchPage(); + } + } + }, + resetflag(newVal, oldVal){ + if (newVal !== oldVal) { + this.query = null + this.$refs.list.newList(this.query) + } + } + }, + methods:{ + onPageBack(){ + if (this.pageType==='mainlist') { + uni.redirectTo({url:this.$config.path.home}); + } else { + if (this.pageType === 'mainsearch' || this.pageType === 'detaillist') { + this.pageType = 'mainlist' + } else { + this.pageType = 'detaillist' + } + } + }, + onListQuery(){ + this.pageType = 'mainsearch' + }, + onListAction(obj){ + this.mainActionRow = obj + this.pageType = 'detaillist' + }, + onDeatilAction(){ + this.pageType = 'checkaction' + }, + onSearchCallBack(params){ + this.query = params; + this.pageType = 'mainlist' + }, + switchPage(){ + this.$nextTick(()=>{ + switch (this.pageType){ + case 'mainlist': + this.$refs.mainlist.newList(this.query) + break; + case 'detaillist': + this.$refs.detaillist.init() + this.$refs.checkaction.clear() + break; + default: + break; + } + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.switchPage() + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/checkStock/modules/CheckAction.vue b/PipeLineLems.PDA/pages/checkStock/modules/CheckAction.vue new file mode 100644 index 0000000..a538296 --- /dev/null +++ b/PipeLineLems.PDA/pages/checkStock/modules/CheckAction.vue @@ -0,0 +1,192 @@ +<template> + <view class="check-stock-check-action-component"> + <view class="form-view"> + <scan-input-form-item + label="搴撲綅鐮�/鎵樼洏鐮�" + v-model="scanCode" + @search="onSearchScanInput" + /> + </view> + <scroll-view class="list-scroll-view" :scroll-y="true"> + <view class="list-items-around"> + <!-- ################# --> + <view class="list-item" v-for="(item,index) in list" :key="'check-item-material-'+index"> + <view class="list-item-show"> + <view class="item-left"> + <uni-badge :text="index+1" type="primary" size="normal" /> + </view> + <view class="item-main"> + <view class="item-row"> + <view class="label">鐗╂枡</view> + <view class="content auto-wrap">{{item.inventoryMateriaUnique}}</view> + </view> + <view class="item-row"> + <view class="label">搴撳瓨</view> + <view class="content">{{item.stockNumber}}</view> + </view> + <view class="item-row"> + <view class="label">瀹炵洏</view> + <view class="content"> + <input class="easy-input" v-model="item.inventoryNumber" /> + </view> + </view> + </view> + </view> + </view> + <!-- ################# --> + </view> + </scroll-view> + <view class="bottom-btns-row"> + <view class="btn-frame"><u-button type="primary" text="鎻� 浜�" @click="onSubmit"></u-button></view> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { $successInfo } from '@/static/js/utils/index.js' +export default { + name:'checkStockCheckActionComponent', + components:{ScanInputFormItem}, + props:{ + mainObj: { + type: Object, + default: function(){ + return {} + } + } + }, + data(){ + return { + scanCode:'', + list:[] + } + }, + methods:{ + clear(){ + this.list = [] + this.scanCode = '' + }, + onSearchScanInput(){ + this.getContainerInfo() + }, + getContainerInfo(callback){ + let params = { + InventoryPlanId:this.mainObj.id, + ContainerVsLocation:this.scanCode + } + this.$api.get('ByContainerCodeGetInfo',params,{block:'checkStock'}).then(d=>{ + this.list = d || [] + callback && callback(true) + }).catch(()=>{ + this.list = [] + callback && callback(false) + }) + }, + onSubmit(){ + this.dealConfirm((f)=>{ + if (f) { + $successInfo('鎿嶄綔鎴愬姛') + this.clear() + } + }) + }, + dealConfirm(callback ){ + let params = {inventoryPlanDetails:this.list} + this.$api.post('InventorySure',params,{block:'checkStock'}).then(d=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + } + } +} +</script> + +<style scoped lang="scss"> +.check-stock-check-action-component{ + height: 100%; + display: flex; + flex-direction: column; + .easy-input{ + font-size: inherit; + color: $uni-color-primary; + text-decoration: underline; + } + .form-view,.bottom-btns-row{ + flex-shrink: 0; + } + .list-scroll-view{ + flex-grow: 1; + height: 1px; + .list-items-around{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + font-size: 1.1em; + display: flex; + &>.item-left{ + flex-shrink: 0; + padding-left: 16rpx; + padding-top: 12rpx; + padding-right: 12rpx; + } + &>.item-main{ + flex-grow: 1; + width: 1px; + padding-right: 16rpx; + } + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 80rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } +} +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/checkStock/modules/DetailList.vue b/PipeLineLems.PDA/pages/checkStock/modules/DetailList.vue new file mode 100644 index 0000000..8cdb1e6 --- /dev/null +++ b/PipeLineLems.PDA/pages/checkStock/modules/DetailList.vue @@ -0,0 +1,345 @@ +<template> + <view class="check-stock-detail-list-component"> + <view class="detail-top-view"> + <view class="top-container block-item"> + <view class="top-container-title block-item-title auto-wrap">{{mainObj.planNo}}</view> + <view class="block-item-container"> + <view class="item-desc"> + <view class="label">鏃堕棿</view> + <view class="content auto-wrap">{{mainObj.startPlanTimeFormat}}~{{mainObj.endPlanTimeFormat}}</view> + </view> + <view class="item-desc"> + <view class="label">浠撳簱</view> + <view class="content auto-wrap">{{mainObj.areaName}}</view> + </view> + </view> + </view> + </view> + <scroll-view class="list-scroll-view" :scroll-y="true"> + <view class="list-items-around"> + <view class="detail-item block-item" v-for="(item,index) in list" :key="'check-item-'+index" @tap.stop="onActiveItem(item,index)"> + <view class="active-view" v-if="item.actived"></view> + <view :class="['block-item-title',(!item.expanded?'not-expanded':'')]"> + <view class="title-content"> + <view class="item-desc no-border"> + <view class="label">搴撲綅</view> + <view class="content auto-wrap">{{item.placeCode}}</view> + </view> + <view class="item-desc no-border"> + <view class="label">鎵樼洏</view> + <view class="content auto-wrap">{{item.containerCode}}</view> + </view> + </view> + <view class="tag-view"> + <u-tag v-if="item.statusDetailEnum===1" :text="item.statusDetailEnumName" size="mini" bg-color="#808080" color="#ffffff" border-color="#808080" /> + <u-tag v-else-if="item.statusDetailEnum===2" :text="item.statusDetailEnumName" size="mini" bg-color="#FEF3E6" color="#F18201" border-color="#F18201" /> + <u-tag v-else-if="item.statusDetailEnum===3" :text="item.statusDetailEnumName" size="mini" bg-color="#EFFCF2" color="#5CDF7D" border-color="#5CDF7D" /> + <u-tag v-else :text="item.statusDetailEnumName" size="mini" bg-color="#ffc0cb" color="#ff0000" border-color="#ff0000" /> + </view> + <view class="arrow-view" @tap.stop="onChangeItemExpanded(item,index)"> + <u-icon v-if="!item.expanded" name="arrow-down" color="#909193" :size="24" /> + <u-icon v-else name="arrow-up" color="#909193" :size="24" /> + </view> + </view> + <view class="block-item-container" v-if="item.expanded"> + <view class="check-table-header table-row"> + <view class="cell1">搴忓彿</view> + <view class="cell2">鐗╂枡</view> + <view class="cell3">搴撳瓨</view> + <view class="cell4">瀹炵洏</view> + </view> + <view class="check-table-body"> + <view class="table-row" v-for="(itemx,indexx) in item.materials" :key="'check-item-material-'+indexx"> + <view class="cell1">{{indexx+1}}</view> + <view class="cell2 auto-wrap">{{itemx.inventoryMateriaUnique}}</view> + <view class="cell3">{{itemx.stockNumber}}</view> + <view class="cell4 large">{{itemx.inventoryNumber}}</view> + </view> + </view> + </view> + </view> + </view> + <view class="no-more-text-row">娌℃湁鏇村浜�</view> + </scroll-view> + <view class="bottom-btns-row"> + <template v-if="checkType===1"> + <view class="btn-frame"><u-button type="primary" text="鍑� 搴�" @click="onOutAction"></u-button></view> + <view class="divider"></view> + </template> + <view class="btn-frame"><u-button type="primary" text="鐩� 鐐�" @click="onGoCheck"></u-button></view> + </view> + </view> +</template> + +<script> +import { parseDic, $alert, $successInfo } from '@/static/js/utils/index.js' +export default { + name:'checkStockDetailListComponent', + emits:['action'], + props:{ + mainObj: { + type: Object, + default: function(){ + return {} + } + } + }, + data(){ + return { + list:[] + } + }, + computed:{ + checkType(){ + let res = 2 + if (this.mainObj.inventoryRuled && this.mainObj.inventoryRuled.ruleType===1) { + res = 1 + } + return res + }, + }, + methods:{ + init(){ + this.getList() + }, + getList(){ + this.$api.get('PageDetail',{id:this.mainObj.id},{block:'checkStock'}).then(d=>{ + this.list = (d || []).map((obj)=>{ + obj.statusDetailEnumName = parseDic(this.$store,'task_status',obj.statusDetailEnum) + return obj + }); + }).catch(err=>{ + console.log(err) + }) + }, + onActiveItem(obj,index) { + if (this.checkType!==1) return false + obj.actived = !obj.actived + this.$set(this.list,index,obj) + }, + onChangeItemExpanded(obj,index){ + if (obj.expanded) { + obj.expanded = false + this.$set(this.list,index,obj) + } else { + if (!obj.materials) { + this.getContainerInfo(obj,index,(f,_arr)=>{ + if (f) { + obj.expanded = true + obj.materials = _arr + this.$set(this.list,index,obj) + } + }) + } else { + obj.expanded = true + this.$set(this.list,index,obj) + } + } + }, + getContainerInfo(obj,index,callback){ + let params = { + InventoryPlanId:this.mainObj.id, + ContainerVsLocation:obj.containerCode + } + this.$api.get('ByContainerCodeGetInfo',params,{block:'checkStock'}).then(d=>{ + let _arr = d || [] + callback && callback(true,_arr) + }).catch(()=>{ + callback && callback(false) + }) + }, + onGoCheck(){ + this.$emit('action') + }, + onOutAction(){ + let params = {containerCodes:[]} + this.list.forEach((eachObj)=>{ + if (eachObj.actived) { + params.containerCodes.push(eachObj.containerCode) + } + }) + if (params.containerCodes.length===0) { + $alert('璇烽�夋嫨鍑哄簱鎵樼洏') + return false + } + this.outAjax(params,(f)=>{ + if (f) { + $successInfo('鍑哄簱鎻愪氦鎴愬姛') + this.getList() + } + }) + }, + outAjax(params,callback){ + this.$api.post('ByContainerCodeOut',params,{block:'checkStock'}).then(d=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + } + } +} +</script> + +<style scoped lang="scss"> +.check-stock-detail-list-component{ + height: 100%; + display: flex; + flex-direction: column; + .detail-top-view,.bottom-btns-row{ + flex-shrink: 0; + } + .detail-top-view{ + .top-container{ + .top-container-title{ + display: flex; + align-items: center; + } + } + } + .block-item { + background-color: $uni-bg-color; + font-size: 38rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + .block-item-title{ + border-bottom:2rpx solid $uni-border-color; + font-size: 1.1em; + padding: 12rpx 16rpx; + } + .block-item-container{ + padding: 0 16rpx; + display: flex; + flex-wrap: wrap; + } + } + .item-desc{ + flex-shrink: 0; + width: 100%; + font-size: .9em; + display: flex; + align-items: flex-start; + padding: 10rpx 0; + border-bottom: 2rpx dashed $uni-border-color; + &.no-border{ + border-bottom: 0; + } + &>.label { + font-size: .9em; + flex-shrink: 0; + color:#989898; + width: 80rpx; + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.2em; + padding: 0 4rpx; + } + &:last-child { + border-bottom:0; + } + } + .bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } + } + .list-scroll-view{ + flex-grow: 1; + height: 1px; + .list-items-around{ + padding-top: 12rpx; + } + .detail-item { + position: relative; + margin-bottom: 12rpx; + &:last-child{ + margin-bottom: 0; + } + .active-view{ + position: absolute; + top:0; + left:0; + width: 100%; + height: 100%; + box-sizing: border-box; + border:6rpx solid $u-primary; + } + .block-item-title{ + font-size: 1em; + display: flex; + &.not-expanded{ + border-bottom: 0; + } + .tag-view,.arrow-view{ + flex-shrink: 0; + } + .title-content{ + width: 1px; + flex-grow: 1; + } + .tag-view,.arrow-view{ + display: flex; + align-items: center; + } + .arrow-view{ + padding-left: 16rpx; + } + } + .block-item-container{ + .check-table-header{ + opacity: .8; + font-size: .9em; + } + .check-table-body{ + width: 100%; + .table-row:last-child{ + border-bottom: 0; + } + } + .table-row { + display: flex; + width: 100%; + border-bottom: 2rpx dashed $uni-border-color; + .cell1,.cell2,.cell3,.cell4{ + text-align: center; + padding: 16rpx 0; + } + .cell1,.cell3,.cell4{ + flex-shrink: 0; + } + .cell1{ + width: 80rpx; + } + .cell3{ + width: 90rpx; + } + .cell4{ + width: 90rpx; + &.large { + color: #0366AA; + } + &.small { + color: #ff0000; + } + } + .cell2{ + width: 1px; + flex-grow: 1; + } + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/checkStock/modules/MainList.vue b/PipeLineLems.PDA/pages/checkStock/modules/MainList.vue new file mode 100644 index 0000000..1d58eae --- /dev/null +++ b/PipeLineLems.PDA/pages/checkStock/modules/MainList.vue @@ -0,0 +1,239 @@ +<template> + <view class="check-stock-main-list-component"> + <view class="top-row"> + <view class="top-btns"> + <view class="search-btn" @tap.stop="onQuery"><u-icon name="search" size="30" /></view> + <view class="reset-btn" @tap.stop="onReset">閲� 缃�</view> + </view> + </view> + <scroll-view class="list-scroll-view" :scroll-y="true" @scrolltolower="onMoreList"> + <view class="list-items-around"> + <!-- ########### --> + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <view class="list-item-show" @tap.stop="onWatchDetail(item)"> + <view class="item-header"> + <view class="item-index"> + <uni-badge :text="index+1" type="primary" size="normal" /> + </view> + <view class="item-title-box"> + <text>{{item.planNo}}</text> + </view> + <view class="item-tag"> + <u-tag v-if="item.statusEnum===1" :text="item.statusEnumName" size="mini" bg-color="#808080" color="#ffffff" border-color="#808080" /> + <u-tag v-else-if="item.statusEnum===2" :text="item.statusEnumName" size="mini" bg-color="#FEF3E6" color="#F18201" border-color="#F18201" /> + <u-tag v-else-if="item.statusEnum===3" :text="item.statusEnumName" size="mini" bg-color="#EFFCF2" color="#5CDF7D" border-color="#5CDF7D" /> + <u-tag v-else :text="item.statusEnumName" size="mini" bg-color="#ffc0cb" color="#ff0000" border-color="#ff0000" /> + </view> + </view> + <view class="item-container"> + <view class="item-desc"> + <view class="label">鏃堕棿</view> + <view class="content auto-wrap">{{item.startPlanTimeFormat}}~{{item.endPlanTimeFormat}}</view> + </view> + <view class="item-desc"> + <view class="label">浠撳簱</view> + <view class="content auto-wrap">{{item.areaName}}</view> + </view> + </view> + </view> + </view> + <!-- ########### --> + </view> + <view class="no-more-text-row" v-if="!hasMore">娌℃湁鏇村浜�</view> + </scroll-view> + </view> +</template> + +<script> +import { parseDic } from '@/static/js/utils/index.js' +// import dayjs from 'dayjs' +const pagination = { + PageNo:1, + PageSize:10 +} +export default { + name:'checkStockMainListComponent', + emits:['query','update:resetflag','action'], + data(){ + return { + hasMore:true, + queried:{}, + list:[] + } + }, + methods:{ + onQuery(){ + this.$emit('query') + }, + onReset(){ + this.resetQuery() + }, + resetQuery(){ + this.$emit('update:resetflag',new Date().getTime()) + }, + newList(params=null,callback){ + this.queried = {...pagination} + if (params) { + this.queried = {...this.queried,...params} + } + this.getList(callback) + }, + onMoreList(){ + if (this.hasMore) { + this.queried.PageNo++; + this.getList(); + } + }, + getList(callback){ + this.$api.get('page',this.queried,{block:'checkStock'}).then((res)=>{ + let arr = (res.rows || []).map((obj)=>{ + obj.statusEnumName = parseDic(this.$store,'task_status',obj.statusEnum) + obj.startPlanTimeFormat = obj.startPlanTime?dayjs(obj.startPlanTime).format('YYYY.MM.DD'):'' + obj.endPlanTimeFormat = obj.endPlanTime?dayjs(obj.endPlanTime).format('YYYY.MM.DD'):'' + return obj + }); + let len = arr.length; + if (this.queried.PageNo>=res.totalPage) { + this.hasMore = false + } else { + this.hasMore = true + } + if (this.queried.PageNo===1) { + this.list = arr; + } else { + this.list = [...this.list,...arr]; + } + callback && callback(true) + }).catch(err=>{ + console.log(err) + callback && callback(false) + }) + }, + onWatchDetail(obj) { + this.$emit('action',obj) + } + } +} +</script> + +<style scoped lang="scss"> +.check-stock-main-list-component{ + $topSize:90rpx; + height: 100%; + position: relative; + box-sizing: border-box; + padding-top: $topSize; + .top-row{ + position: absolute; + z-index: 5; + top: 0; + left: 0; + height: $topSize; + width: 100%; + padding: 10rpx 12rpx; + box-sizing: border-box; + border-bottom:1px solid #F0F8FF; + background-color: $uni-bg-color; + } + .top-btns{ + width: 100%; + height: 100%; + box-sizing: border-box; + border: 1px solid $uni-border-color; + border-radius: 32rpx / 50%; + display: flex; + overflow: hidden; + color: $uni-text-color-grey; + } + .search-btn,.reset-btn{ + display: flex; + align-items: center; + justify-content: center; + height: 100%; + } + .reset-btn{ + flex-shrink: 0; + width: 160rpx; + border-left: 1px solid $uni-border-color; + } + .search-btn{ + flex-grow: 1; + background-color: #DCDCDC; + } + .list-scroll-view{ + height: 100%; + } + .list-items-around{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show { + background-color: $uni-bg-color; + font-size: 40rpx; + .item-header{ + display: flex; + border-bottom:2rpx solid $uni-border-color; + padding: 6rpx 0; + .item-index,.item-tag{ + flex-shrink: 0; + } + .item-index{ + width: 68rpx; + padding-left: 10rpx; + padding-top:11rpx; + box-sizing: border-box; + display: flex; + align-items: flex-start; + } + .item-tag{ + display: flex; + padding:6rpx 16rpx; + } + .item-title-box{ + flex-grow: 1; + width: 1px; + padding-left: 4rpx; + display: flex; + align-items: center; + } + } + .item-container{ + padding: 0 16rpx; + display: flex; + flex-wrap: wrap; + .item-desc{ + flex-shrink: 0; + width: 100%; + font-size: .9em; + display: flex; + align-items: flex-start; + padding: 10rpx 0; + border-bottom: 2rpx dashed $uni-border-color; + &>.label { + font-size: .9em; + flex-shrink: 0; + color:#989898; + width: 100rpx; + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.2em; + padding: 0 4rpx; + } + &:last-child { + border-bottom:0; + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/checkStock/modules/MainSearch.vue b/PipeLineLems.PDA/pages/checkStock/modules/MainSearch.vue new file mode 100644 index 0000000..41dbdee --- /dev/null +++ b/PipeLineLems.PDA/pages/checkStock/modules/MainSearch.vue @@ -0,0 +1,79 @@ +<template> + <view class="check-stock-main-search-component"> + <view class="search-form-box"> + <u-form labelPosition="left" :labelWidth="84" :model="form" ref="form" :labelStyle="{color:'#787878'}"> + <u-form-item label="璁″垝鍗曞彿锛�" borderBottom> + <u-input v-model="form.PlanNo" placeholder="璇疯緭鍏�..." border="none" clearable /> + </u-form-item> + <u-form-item label="璁″垝鐘舵�侊細" borderBottom> + <u-view-form-select-picker v-model="form.InspectionStatus" :list="selectList.checkPlan" value-field="code" label-field="name" /> + </u-form-item> + </u-form> + </view> + <view class="search-bottom"> + <u-button type="primary" text="鏌� 璇�" @click="onSearch" /> + </view> + </view> +</template> + +<script> +import UViewFormSelectPicker from '@/components/UViewFormSelectPicker.vue' +import { getDicList, $alert } from '@/static/js/utils/index.js' +const defaultQueryForm = { + PlanNo:'', + InspectionStatus:'' +} +export default { + name:'checkStockMainSearchComponent', + components:{UViewFormSelectPicker}, + emits:['callback'], + props:{ + resetflag: { + type: Number, + default: 0 + } + }, + data(){ + return { + form:{...defaultQueryForm}, + selectList:{ + checkPlan:[] + } + } + }, + watch:{ + resetflag(newVal, oldVal){ + if (newVal !== oldVal) { + this.form = {...defaultQueryForm} + } + } + }, + methods:{ + onSearch(){ + this.$emit('callback',this.form) + } + }, + mounted() { + this.selectList.checkPlan = getDicList(this.$store,'task_status') + } +} +</script> + +<style lang="scss" scoped> +.check-stock-main-search-component{ + height: 100%; + display: flex; + flex-direction: column; + .search-form-box{ + flex-grow: 1; + background-color: $uni-bg-color; + overflow: auto; + padding: 10rpx 20rpx; + } + .search-bottom{ + flex-shrink: 0; + padding: 10rpx 0; + padding: 20rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/components/LongWidthHeightFormItem.vue b/PipeLineLems.PDA/pages/components/LongWidthHeightFormItem.vue new file mode 100644 index 0000000..ccf24df --- /dev/null +++ b/PipeLineLems.PDA/pages/components/LongWidthHeightFormItem.vue @@ -0,0 +1,154 @@ +<template> + <view class="long-width-height-form-item-compontent"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="input-row"> + <view class="input-view"> + <input v-model="innerLong" class="my-input" type="digit" :placeholder="longPlaceholder" /> + </view> + <view class="divider-text">*</view> + <view class="input-view"> + <input v-model="innerWidth" class="my-input" type="digit" :placeholder="widthPlaceholder" /> + </view> + <view class="divider-text">*</view> + <view class="input-view"> + <input v-model="innerHeight" class="my-input" type="digit" :placeholder="heightPlaceholder" /> + </view> + </view> + <view class="msg-row" v-if="msg">{{msg}}</view> + </view> +</template> + +<script> +export default { + name:'LongWidthHeightFormItemComponent', + emits:['update:long','update:width','update:height'], + props:{ + long:{ + type:[Number,String], + default:0 + }, + width:{ + type:[Number,String], + default:0 + }, + height:{ + type:[Number,String], + default:0 + }, + label:{ + type:String, + default:'闀垮楂�' + }, + longPlaceholder:{ + type:String, + default:'闀�' + }, + widthPlaceholder:{ + type:String, + default:'瀹�' + }, + heightPlaceholder:{ + type:String, + default:'楂�' + }, + msg:{ + type:String, + default:'' + }, + required:{ + type:Boolean, + default:false + } + }, + data(){ + return { + innerLong:0, + innerWidth:0, + innerHeight:0 + } + }, + watch:{ + long(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerLong = newVal + } + }, + innerLong(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('update:long',newVal) + } + }, + width(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerWidth = newVal + } + }, + innerWidth(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('update:width',newVal) + } + }, + height(newVal,oldVal){ + if (newVal!==this.innerValue) { + this.innerHeight = newVal + } + }, + innerHeight(newVal,oldVal){ + if (newVal!==this.value) { + this.$emit('update:height',newVal) + } + } + }, + created() { + this.innerLong = this.long + this.innerWidth = this.width + this.innerHeight = this.height + } +} +</script> + +<style scoped lang="scss"> +.long-width-height-form-item-compontent{ + width: 100%; + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:#ff0000; + } + } + .input-row{ + width: 100%; + height: 90rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + .input-view{ + flex-grow: 1; + width: 1px; + } + .divider-text{ + flex-shrink: 0; + font-size: 1.5em; + height: 100%; + background-color: transparent; + display: flex; + align-items: center; + padding: 0 10rpx; + + } + } + .msg-row{ + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + } + .my-input{ + text-align: center; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/components/StationSelectFormItem.vue b/PipeLineLems.PDA/pages/components/StationSelectFormItem.vue new file mode 100644 index 0000000..4035b11 --- /dev/null +++ b/PipeLineLems.PDA/pages/components/StationSelectFormItem.vue @@ -0,0 +1,377 @@ +<template> + <view class="station-select-form-item-compontent"> + <view class="p-form-label" v-if="label"><text v-if="required" class="required-tag">*</text>{{label}}锛�</view> + <view class="form-row"> + <view class="mask" @tap.stop="" v-if="disabled || loading"> + <template v-if="loading"> + <u-loading-icon color="#f0f8ff" /> + <text style="margin-left:20rpx;color:#f0f8ff;">Loading...</text> + </template> + </view> + <view class="form-items-view"> + <view class="select-block" @tap.stop="onOpenPicker1"> + <view class="input-view"> + <text v-if="!value1" class="placeholder">{{placeholder1}}</text> + <text v-else>{{valueLabel1}}</text> + </view> + <view class="close-view" @tap.stop="onClear1" v-if="value1 && clearable"> + <view class="close-circle"> + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + </view> + <view class="right-icon-view"><u-icon name="arrow-down" color="#909193" :size="24"></u-icon></view> + </view> + <view class="divider"></view> + <view class="select-block" @tap.stop="onOpenPicker2"> + <view class="input-view"> + <text v-if="!value2" class="placeholder">{{placeholder2}}</text> + <text v-else>{{valueLabel2}}</text> + </view> + <view class="close-view" @tap.stop="onClear2" v-if="value2 && clearable"> + <view class="close-circle"> + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + </view> + <view class="right-icon-view"><u-icon name="arrow-down" color="#909193" :size="24"></u-icon></view> + </view> + </view> + </view> + <view class="msg-row" v-if="msg" :class="[msgType==='info'?'info-type':'']">{{msg}}</view> + + <easy-picker :visible.sync="pickerVisible1" :list="list1" :value-field="valueField1" :label-field="labelField1" @select="onPickerSelect1" /> + <easy-picker :visible.sync="pickerVisible2" :list="list2" :value-field="valueField2" :label-field="labelField2" @select="onPickerSelect2" /> + </view> +</template> + +<script> +import EasyPicker from '@/components/EasyPicker.vue' +const LINE_VALUE_FIELD = 'productionlineId' +const LINE_LABEL_FIELD = 'productionlineName' +const STATION_VALUE_FIELD = 'takeMaterialsSiteId' +const STATION_LABEL_FIELD = 'takeMaterialsSite' +export default { + name:'stationSelectFormItemComponent', + components:{EasyPicker}, + emits:['input','select'], + props:{ + value:{ + type:Array, + default:function(){ + return [] + } + }, + label:{ + type:String, + default:'' + }, + placeholder1:{ + type:String, + default:'浜х嚎' + }, + placeholder2:{ + type:String, + default:'宸ヤ綅' + }, + msg:{ + type:String, + default:'' + }, + msgType:{ + type:String, + default:'error' + }, + disabled:{ + type:Boolean, + default:false + }, + clearable:{ + type:Boolean, + default:true + }, + required:{ + type:Boolean, + default:false + } + }, + data(){ + return { + list1:[], + list2:[], + value1:undefined, + value2:undefined, + valueLabel1:undefined, + valueLabel2:undefined, + valueObj1:null, + valueObj2:null, + pickerVisible1:false, + valueField1:LINE_VALUE_FIELD, + labelField1:LINE_LABEL_FIELD, + pickerVisible2:false, + valueField2:STATION_VALUE_FIELD, + labelField2:STATION_LABEL_FIELD, + loading:false + } + }, + mounted(){ + this.init() + }, + methods:{ + init(){ + this.loading = true + this.getLines((f)=>{ + if (f) { + this.setChangeValues(()=>{ + this.loading = false + }) + } else { + this.loading = false + } + }) + }, + setChangeValues(callback){ + if (this.value) { + if (this.value[0]) { + this.value1 = this.value[0] + this.valueLabel1 = this.getLineLabelByValue(this.value1) + this.getStations((f)=>{ + if (f) { + if (this.value[1]) { + this.value2 = this.value[1] + this.valueLabel2 = this.getStationLabelByValue(this.value2) + this.backValue() + } + callback && callback(true) + } else { + callback && callback(false) + } + }) + } else { + callback && callback(true) + } + } else { + callback && callback(true) + } + }, + getLineLabelByValue(val) { + let res = val; + for (let i=0;i<this.list1.length;i++) { + if (this.list1[i][LINE_VALUE_FIELD]===val) { + this.valueObj1 = this.list1[i] + res = this.list1[i][LINE_LABEL_FIELD] + break + } + } + return res + }, + getStationLabelByValue(val) { + let res = val; + for (let i=0;i<this.list2.length;i++) { + if (this.list2[i][STATION_VALUE_FIELD]===val) { + this.valueObj2 = this.list2[i] + res = this.list2[i][STATION_LABEL_FIELD] + break + } + } + return res + }, + getLines(callback){ + this.$api.get('GetProductionlineList',{},{block:'station',loading:false}).then((d)=>{ + this.list1 = d || [] + if (this.list1.length===1) { + this.valueObj1 = this.list1[0] + this.value1 = this.list1[0][LINE_VALUE_FIELD] + this.valueLabel1 = this.list1[0][LINE_LABEL_FIELD] + this.backValue() + } + callback && callback(true) + }).catch((_errmsg)=>{ + this.clearAllValue() + this.backValue() + callback && callback(false) + }) + }, + getStations(callback,isInit=false){ + this.$api.get('GetStationList',{id:this.value1},{block:'station',loading:false}).then((d)=>{ + this.list2 = d || [] + if (this.list2.length===1) { + this.valueObj2 = this.list2[0] + this.value2 = this.list2[0][STATION_VALUE_FIELD] + this.valueLabel2 = this.list2[0][STATION_LABEL_FIELD] + } else { + this.clearValue2() + } + this.backValue() + callback && callback(true) + }).catch((_errmsg)=>{ + this.list2 = [] + this.clearValue2() + this.backValue() + callback && callback(false) + }) + }, + onOpenPicker1(){ + if (this.list1.length<=0) return false + this.pickerVisible1 = true + }, + onOpenPicker2(){ + if (this.list2.length<=0) return false + this.pickerVisible2 = true + }, + onPickerSelect1(value,selection){ + if (value===this.value1) return false + this.value1 = value + this.valueObj1 = selection + this.valueLabel1 = selection[LINE_LABEL_FIELD] + this.loading = true + this.getStations(()=>{ + this.backSelect() + this.loading = false + }) + }, + onPickerSelect2(value,selection){ + if (value===this.value2) return false + this.value2 = value + this.valueObj2 = selection + this.valueLabel2 = selection[STATION_LABEL_FIELD] + this.backValue() + this.backSelect() + }, + onClear1(){ + this.clearAllValue() + this.list2 = [] + this.backValue() + }, + onClear2(){ + this.clearValue2() + this.backValue() + }, + clearAllValue(){ + this.clearValue1() + this.clearValue2() + }, + clearValue1(){ + this.value1 = undefined + this.valueObj1 = null + this.valueLabel1 = undefined + }, + clearValue2(){ + this.value2 = undefined + this.valueObj2 = null + this.valueLabel2 = undefined + }, + backValue(){ + this.$emit('input',[this.value1,this.value2]) + }, + backSelect(){ + this.$emit('select',[this.value1,this.value2],[{...this.valueObj1},{...this.valueObj2}]) + } + } +} +</script> + +<style scoped lang="scss"> +.station-select-form-item-compontent { + width: 100%; + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:#ff0000; + } + } + .form-row{ + width: 100%; + height: 90rpx; + overflow: hidden; + position: relative; + .form-items-view { + height: 100%; + width: 100%; + display: flex; + .divider{ + width: 20rpx; + flex-shrink: 0; + } + .select-block{ + width: 1%; + flex-grow: 1; + background-color: $uni-bg-color; + display: flex; + align-items: center; + .close-view,.right-icon-view{ + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + } + .right-icon-view{ + padding-right: 10rpx; + } + .close-view{ + .close-circle{ + width: 20px; + height: 20px; + border-radius: 50%; + background-color: #c6c7cb; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + transform: scale(0.82); + margin-left: 4px; + } + } + .input-view{ + flex-grow: 1; + padding-left: 20rpx; + font-size: 30rpx; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + color: rgb(48, 49, 51); + .placeholder{ + color: rgb(192, 196, 204); + } + } + } + } + &>.mask{ + background-color: #000; + opacity: 0.25; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + display: flex; + align-items: center; + justify-content: center; + color: #f2f2f2; + } + } + .msg-row{ + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break:break-all; + word-wrap:break-word; + &.info-type{ + color:$color-blue; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerHandle/index.vue b/PipeLineLems.PDA/pages/containerHandle/index.vue new file mode 100644 index 0000000..02a9091 --- /dev/null +++ b/PipeLineLems.PDA/pages/containerHandle/index.vue @@ -0,0 +1,436 @@ +<template> + <default-header-page-layout ref="page" title="鍦版爣缁戝畾"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item class="forma-item" label="鎵樼洏缂栫爜" v-model="form.containerNo" :msg="msg.containter" + :msg-type="msgType.containter" @search="onSearchContainter" @clear="onClearContainter" /> + + <!-- 搴撳尯 --> + <!-- v-show="Boolean(containerInfo.containerNo)" --> + <selectItem :disabled="selectDisabled" + :selectData="areaData" :value.sync="form.areaNo" label="搴撳尯缂栧彿" labelField="areaName" + valueField="areaNo" /> + + <!-- 搴撲綅 --> + <!-- v-show="Boolean(containerInfo.containerNo)&&Boolean(form.areaNo)" --> + <selectItem :disabled="selectDisabled" + :selectData="placeList" :value.sync="form.placeNo" label="搴撲綅缂栧彿" labelField="placeNo" + valueField="placeNo" /> + + <div v-if="false"> + <scan-input-form-item class="forma-item" label="搴撲綅宸叉湁鎵樼洏淇℃伅" :content="false" /> + <containerInfo :containerInfo="containerPlaceInfo"/> + </div> + + <!-- <placeInfo v-show="selectDisabled" :placeInfo="containerInfo.placeInfo" /> --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="缁戝畾" @click="onSubmit" + :disabled="!abled"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import selectItem from './modules/selectItem.vue' + import placeInfo from './modules/placeInfo.vue' + import containerInfo from './modules/containerInfo.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getContainerPlaceInfo, + containerHandle, + getContainerPlaceByPlace + } from '@/api/containerHandle.js' + import { + getAreaInfo, + getAreaListContaninerBind + } from '@/api/common.js' + + let initInterVal = null; + export default { + name: 'containerHandle', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + placeInfo, + selectItem, + containerInfo + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containerNo: '', + areaNo: '', + placeNo: '' + }, + msg: { + containter: '' + }, + msgType: { + containter: 'info' + }, + containerInfo: {}, + areaData: [], + containerPlaceInfo:{} + + } + }, + computed: { + selectDisabled() { + return Boolean(this.containerInfo?.placeInfo?.placeNo) + }, + abled() { + return Boolean(this.containerInfo.containerNo) && !Boolean(this.containerInfo?.placeInfo?.placeNo) + }, + placeInfoShow(){ + return Boolean(this.containerInfo.containerNo) && Boolean(this.form.placeNo)&&Boolean(this.containerPlaceInfo.containerNo)&&!Boolean(this.containerInfo?.placeInfo?.placeNo); + } + }, + watch: { + 'form.containerNo': { + handler(val, oldVal) { + this.containerInfo = {} + this.form.areaNo='' + this.form.placeNo='' + } + }, + 'form.areaNo': { + handler(val, oldVal) { + if(val!='') { + this.form.placeNo = '' + this.placeList = [] + this.getPalceList({ + areaCode: val + }) + if (Boolean(this.containerInfo?.placeInfo?.placeNo)) { + this.$set(this.form, 'placeNo', this.containerInfo.placeInfo.placeNo) + } + } + } + }, + 'form.placeNo':{ + async handler(val, oldVal) { + if(val!='') { + this.containerPlaceInfo={} + try{ + let { + result + } = await getContainerPlaceByPlace({ + placeNo: this.form.placeNo + }) + this.containerPlaceInfo=result==null?{}:result; + }catch(e){ + //TODO handle the exception + console.log(e); + } + } + } + } + }, + methods: { + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + const { + containerNo + } = this.form + if (!Boolean(containerNo)) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + // 鑾峰彇浠g爜 + try { + let { + result + } = await getContainerPlaceInfo({ + containerNo + }) + this.containerInfo = result + if (Boolean(this.containerInfo?.placeInfo?.placeNo)) { + this.getAreaList() + this.$nextTick(() => { + this.$set(this.form, 'areaNo', this.containerInfo?.placeInfo?.areaCode) + }) + + } + + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterNo: '', + areaNo: '', + placeNo: '' + } + }, + + // 鑾峰彇搴撳尯鏁版嵁 + async getAreaList() { + try { + // let { + // result + // } = await getAreaListContaninerBind() + + + let { + result + } = await getAreaInfo() + + + console.log(result,222) + this.areaData = result + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + // 鎵樼洏澶勭悊 + async onSubmit() { + this.form.type = 1 + uni.showModal({ + title: '缁戝畾', + content : '鏄惁纭缁戝畾锛�', + showCancel: true, + confirmText: '纭畾', + cancelText: '鍙栨秷', + success: async ({ + confirm, + cancel + }) => { + if (confirm) { + try { + await containerHandle(this.form) + $alert("鎵樼洏缁戝畾鎴愬姛锛�"); + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + } + }) + return + try { + let { + result + } = await getContainerPlaceByPlace({ + placeNo: this.form.placeNo + }) + if (result!=null||Boolean(this.containerInfo?.placeInfos?.placeNo)) { + var content='' + if(result!=null&&Boolean(this.containerInfo?.placeInfos?.placeNo)) + { + content=`鎵樼洏褰撳墠缁戝畾搴撲綅${this.containerInfo?.placeInfos?.placeNo},閫夊畾搴撲綅宸茬粦瀹氭墭鐩�${this.containerPlaceInfo?.containerNo}锛岀‘璁よ鐩栨鍏崇郴杩涜缁戝畾鍚楋紵` + }else if(result!=null&&!Boolean(this.containerInfo?.placeInfos?.placeNo)) + { + content=`褰撳墠鎵樼洏鏈粦瀹氬簱浣嶏紝浣嗛�夊畾搴撲綅宸茬粦瀹氭墭鐩�${this.containerPlaceInfo?.containerNo}锛岀‘璁よ鐩栨鍏崇郴杩涜缁戝畾鍚楋紵` + } + else if(result==null&&Boolean(this.containerInfo?.placeInfos?.placeNo)) + { + content=`鎵樼洏褰撳墠缁戝畾搴撲綅${this.containerInfo?.placeInfos?.placeNo},锛屼絾閫夊畾搴撲綅鏈粦瀹氭墭鐩橈紝纭瑕嗙洊姝ゅ叧绯昏繘琛岀粦瀹氬悧锛焋 + } + uni.showModal({ + title: '缁戝畾纭', + content , + showCancel: true, + confirmText: '纭畾', + cancelText: '鍙栨秷', + success: async ({ + confirm, + cancel + }) => { + if (confirm) { + try { + await containerHandle(this.form) + $alert("鎵樼洏缁戝畾鎴愬姛锛�"); + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + } + }) + }else { + try { + await containerHandle(this.form) + $alert("鎵樼洏缁戝畾鎴愬姛锛�"); + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + } catch (e) { + //TODO handle the exception + console.log(e); + } + + + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getAreaList() + this.ContainerType = getDicList(this.$store, 'container_type').sysDictDatas + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } + + .label { + margin-left: 25rpx; + font-size: 30rpx; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerHandle/modules/containerInfo.vue b/PipeLineLems.PDA/pages/containerHandle/modules/containerInfo.vue new file mode 100644 index 0000000..9dba433 --- /dev/null +++ b/PipeLineLems.PDA/pages/containerHandle/modules/containerInfo.vue @@ -0,0 +1,85 @@ +<template> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <!-- <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> --> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.containerNo:''}}</view> + </view> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.placeNo:''}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏搴撲綅鐘舵�侊細</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?(parseDic($store,'common_status',containerInfo.containerPlaceStatus)):''}}</view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + containerInfo: { + type: Object, + default: () => {} + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic + } + } +</script> + +<style scoped lang="scss"> + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding: 10rpx 20rpx; + background-color: #fff; + /* margin-bottom: 10rpx; */ + position: relative; + margin:-20rpx auto; + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 200rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerHandle/modules/placeInfo.vue b/PipeLineLems.PDA/pages/containerHandle/modules/placeInfo.vue new file mode 100644 index 0000000..a9b9b41 --- /dev/null +++ b/PipeLineLems.PDA/pages/containerHandle/modules/placeInfo.vue @@ -0,0 +1,132 @@ +<template> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label">搴撲綅璇︽儏锛�</view> + <view class="material-item-group" v-if="Boolean(placeInfo)"> + <view class="material-list-item"> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{placeInfo.placeNo}}</view> + </view> + + <view class="item-row"> + <view class="label">鎵�灞炲簱鍖猴細</view> + <view class="content auto-wrap">{{placeInfo.areaCode}}</view> + </view> + </view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + placeInfo: { + type: Object, + default: () => {placeNo:''} + } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + } + } +</script> + +<style scoped lang="scss"> + .scan-input-form-item-compontent{ + width: 100%; + + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + }} + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + background-color: #fff; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* font-weight:5; */ + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerHandle/modules/selectItem.vue b/PipeLineLems.PDA/pages/containerHandle/modules/selectItem.vue new file mode 100644 index 0000000..8554c3b --- /dev/null +++ b/PipeLineLems.PDA/pages/containerHandle/modules/selectItem.vue @@ -0,0 +1,107 @@ +<template> + <view class="forma-item"> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" :label="label" v-model="value" :disabled="disabled"/> + <EasyPicker :visible.sync="visible" :list="selectData" :labelField="labelField" :valueField="valueField" + @select="getSelectData" /> + </view> +</template> +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + import EasyPicker from '@/components/EasyPicker.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + export default { + props: { + selectData: { + type: Array, + default: () => [] + }, + value:{ + type: String, + default: '' + }, + label:{ + type:String, + default:'' + }, + labelField:{ + type:String, + default:'' + }, + valueField:{ + type:String, + default:'' + }, + disabled:{ + type:Boolean, + default:false + } + + }, + components: { + EasyPicker, + ScanInputFormItem + }, + data() { + return { + radiolist1: [], + radiovalue1: '', + visible:false, + } + }, + + methods: { + getSelectData(val){ + this.$emit('update:value',val) + }, + parseDic + } + } +</script> + +<!-- <style scoped> + .custom-radio { + font-size: 16px; + line-height: 24px; + } + + .material-item-group { + padding-top: 10rpx; + display: flex; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + position: relative; + flex: 1; + + &:last-child { + border-bottom: 0; + } + } + } + + .radio-row { + background-color: rgb(255, 255, 255); + margin-bottom: 10px; + padding-top: 15px; + padding-bottom: 15px; + } + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .radio-group u-radio { + width: 50%; + } +</style> --> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerUnBind/index.vue b/PipeLineLems.PDA/pages/containerUnBind/index.vue new file mode 100644 index 0000000..e666333 --- /dev/null +++ b/PipeLineLems.PDA/pages/containerUnBind/index.vue @@ -0,0 +1,316 @@ +<template> + <default-header-page-layout ref="page" title="鍦版爣瑙g粦"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item class="forma-item" label="鎵樼洏缂栫爜" v-model="form.containerNo" :msg="msg.containter" + :msg-type="msgType.containter" @search="onSearchContainter" @clear="onClearContainter" /> + + <!-- 搴撳尯 --> + <!-- <selectItem :disabled="selectDisabled" v-show="Boolean(containerInfo.containerNo)" + :selectData="areaData" :value.sync="form.areaNo" label="搴撳尯缂栧彿" labelField="areaName" + valueField="areaNo" /> --> + <!-- 搴撲綅 --> + <!-- <selectItem :disabled="selectDisabled" v-show="Boolean(containerInfo.containerNo)&&Boolean(form.areaNo)" + :selectData="placeList" :value.sync="form.placeNo" label="搴撲綅缂栧彿" labelField="placeNo" + valueField="placeNo" /> --> + + + <div v-if="placeInfoShow"> + <scan-input-form-item class="forma-item" label="搴撲綅宸叉湁鎵樼洏淇℃伅" :content="false" /> + <containerInfo :containerInfo="containerInfo" /> + </div> + + <!-- <placeInfo v-show="selectDisabled" :placeInfo="containerInfo.placeInfo" /> --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="瑙g粦" @click="onSubmit" + :disabled="!abled"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import selectItem from './modules/selectItem.vue' + import placeInfo from './modules/placeInfo.vue' + import containerInfo from './modules/containerInfo.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getContainerPlaceInfo, + containerHandle, + getContainerPlaceByPlace + } from '@/api/containerHandle.js' + import { + getAreaInfo + } from '@/api/common.js' + let initInterVal = null; + export default { + name: 'containerUnBind', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + placeInfo, + selectItem, + containerInfo + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containerNo: '', + areaNo: '', + placeNo: '' + }, + msg: { + containter: '' + }, + msgType: { + containter: 'info' + }, + containerInfo: {}, + areaData: [], + containerPlaceInfo: {} + + } + }, + computed: { + selectDisabled() { + return Boolean(this.containerInfo?.placeInfos?.placeNo) + }, + abled() { + return Boolean(this.containerInfo.containerNo) && Boolean(this.containerInfo?.placeInfos?.placeNo); + }, + placeInfoShow() { + return Boolean(this.containerInfo.containerNo) && Boolean(this.containerInfo?.placeInfos?.placeNo); + } + }, + watch: { + 'form.containerNo': { + handler(val, oldVal) { + this.containerInfo = {} + } + } + }, + methods: { + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + const { + containerNo + } = this.form + if (!Boolean(containerNo)) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + // 鑾峰彇浠g爜 + try { + let { + result + } = await getContainerPlaceInfo({ + containerNo + }) + this.containerInfo = result + if (Boolean(this.containerInfo?.placeInfos?.placeNo)) { + this.$nextTick(() => { + this.$set(this.form, 'areaNo', this.containerInfo?.placeInfos?.areaCode) + this.$set(this.form, 'placeNo', this.containerInfo?.placeInfos?.placeNo) + }) + + } + + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterNo: '' + } + }, + + // 鎵樼洏澶勭悊 + async onSubmit() { + this.form.type = 2 + uni.showModal({ + title: '瑙g粦', + content : '鏄惁纭瑙g粦锛�', + showCancel: true, + confirmText: '纭畾', + cancelText: '鍙栨秷', + success: async ({ + confirm, + cancel + }) => { + if (confirm) { + try { + await containerHandle(this.form) + $alert("搴撲綅瑙g粦鎴愬姛锛�"); + this.onClearContainter() + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + } + }) + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.ContainerType = getDicList(this.$store, 'container_type').sysDictDatas + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } + + .label { + margin-left: 25rpx; + font-size: 30rpx; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerUnBind/modules/containerInfo.vue b/PipeLineLems.PDA/pages/containerUnBind/modules/containerInfo.vue new file mode 100644 index 0000000..1aa2fca --- /dev/null +++ b/PipeLineLems.PDA/pages/containerUnBind/modules/containerInfo.vue @@ -0,0 +1,93 @@ +<template> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <!-- <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> --> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.containerNo:''}}</view> + </view> + + <view class="item-row"> + <view class="label">鎵�灞炲簱鍖猴細</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.placeInfos.areaName:''}}</view> + </view> + + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.placeInfos.placeNo:''}}</view> + </view> + + + <!-- <view class="item-row"> + <view class="label">鎵樼洏搴撲綅鐘舵�侊細</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?(parseDic($store,'common_status',containerInfo.placeInfo.containerPlaceStatus)):''}}</view> + </view> --> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + containerInfo: { + type: Object, + default: () => {} + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic + } + } +</script> + +<style scoped lang="scss"> + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding: 10rpx 20rpx; + background-color: #fff; + /* margin-bottom: 10rpx; */ + position: relative; + margin:-20rpx auto; + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 200rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerUnBind/modules/placeInfo.vue b/PipeLineLems.PDA/pages/containerUnBind/modules/placeInfo.vue new file mode 100644 index 0000000..a9b9b41 --- /dev/null +++ b/PipeLineLems.PDA/pages/containerUnBind/modules/placeInfo.vue @@ -0,0 +1,132 @@ +<template> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label">搴撲綅璇︽儏锛�</view> + <view class="material-item-group" v-if="Boolean(placeInfo)"> + <view class="material-list-item"> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{placeInfo.placeNo}}</view> + </view> + + <view class="item-row"> + <view class="label">鎵�灞炲簱鍖猴細</view> + <view class="content auto-wrap">{{placeInfo.areaCode}}</view> + </view> + </view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + placeInfo: { + type: Object, + default: () => {placeNo:''} + } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + } + } +</script> + +<style scoped lang="scss"> + .scan-input-form-item-compontent{ + width: 100%; + + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + }} + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + background-color: #fff; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* font-weight:5; */ + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/containerUnBind/modules/selectItem.vue b/PipeLineLems.PDA/pages/containerUnBind/modules/selectItem.vue new file mode 100644 index 0000000..8554c3b --- /dev/null +++ b/PipeLineLems.PDA/pages/containerUnBind/modules/selectItem.vue @@ -0,0 +1,107 @@ +<template> + <view class="forma-item"> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" :label="label" v-model="value" :disabled="disabled"/> + <EasyPicker :visible.sync="visible" :list="selectData" :labelField="labelField" :valueField="valueField" + @select="getSelectData" /> + </view> +</template> +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + import EasyPicker from '@/components/EasyPicker.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + export default { + props: { + selectData: { + type: Array, + default: () => [] + }, + value:{ + type: String, + default: '' + }, + label:{ + type:String, + default:'' + }, + labelField:{ + type:String, + default:'' + }, + valueField:{ + type:String, + default:'' + }, + disabled:{ + type:Boolean, + default:false + } + + }, + components: { + EasyPicker, + ScanInputFormItem + }, + data() { + return { + radiolist1: [], + radiovalue1: '', + visible:false, + } + }, + + methods: { + getSelectData(val){ + this.$emit('update:value',val) + }, + parseDic + } + } +</script> + +<!-- <style scoped> + .custom-radio { + font-size: 16px; + line-height: 24px; + } + + .material-item-group { + padding-top: 10rpx; + display: flex; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + position: relative; + flex: 1; + + &:last-child { + border-bottom: 0; + } + } + } + + .radio-row { + background-color: rgb(255, 255, 255); + margin-bottom: 10px; + padding-top: 15px; + padding-bottom: 15px; + } + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .radio-group u-radio { + width: 50%; + } +</style> --> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/demo/index.vue b/PipeLineLems.PDA/pages/demo/index.vue new file mode 100644 index 0000000..f78b71b --- /dev/null +++ b/PipeLineLems.PDA/pages/demo/index.vue @@ -0,0 +1,57 @@ +<template> + <default-header-page-layout ref="page" title="鑼冧緥椤甸潰" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + </view> + </view> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +let initInterVal = null; +export default { + name:'demoPage', + components:{DefaultHeaderPageLayout,ActionUserRow}, + data(){ + return { + pageBodyHeight:0 + } + }, + methods:{ + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyContainerReturn/index.vue b/PipeLineLems.PDA/pages/emptyContainerReturn/index.vue new file mode 100644 index 0000000..830fb40 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyContainerReturn/index.vue @@ -0,0 +1,348 @@ +<template> + <default-header-page-layout ref="page" title="绌烘墭鍏ュ簱"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item class="forma-item" label="鎵樼洏缂栫爜" v-model="form.containterCode" + :msg="msg.containter" :msg-type="msgType.containter" @search="onSearchContainter" + @clear="onClearContainter" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" + :hasScan="false" :hasSearch="false" @click.native="ctVisible=true" class="forma-item" label="鎵樼洏绫诲瀷" + v-model="form.containerType" /> + <EasyPicker :visible.sync="ctVisible" :list="ContainerType" labelField="value" valueField="code" + @select="getTypeVal" /> + + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" @click.native="visible=true" class="forma-item" label="閫夋嫨鍏ュ簱鍙�" v-model="form.site" /> + <EasyPicker :visible.sync="visible" :list="placeList" + labelField="placeName" valueField="placeName" @select="getSiteVal" /> + + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="纭" @click="addInBound" :disabled="abled"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getForContainerCode, + addEmptyContainerReturn, + } from '@/api/bind.js' + let initInterVal = null; + export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containterCode: '', + materialNo: '', + site: '', + containerTypeCode: 0, + containerType: '' + }, + msg: { + containter: '', + material: '', + site: '', + }, + msgType: { + containter: 'info', + material: 'error', + site: 'error' + }, + containerInfo: {}, + materialData: [], + ContainerType: [], + visible: false, + ctVisible: false, + placeList: [ + { + placeNo: '1-2-1-1', + placeName: '鍏ュ簱鍙�1' + }, + { + placeNo: '2-1-1-1', + placeName: '鍏ュ簱鍙�2' + }, + ], + abled: false, + } + }, + watch: { + 'form.containterCode': { + handler(val, oldVal) { + this.resetContainerNo() + } + } + }, + methods: { + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val + }, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.code + this.form.containerType = valObj.value + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + if (!this.form.containterCode) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + // 鑾峰彇浠g爜 + try { + let { + result + } = await getForContainerCode({ + code: this.form.containterCode + }) + this.containerInfo = result + // 鎵樼洏璇︽儏 + let containerStatusName = parseDic(this.$store, 'container_status', result?.containerStatus) + containerStatusName = containerStatusName == '鏃犳瀛楀吀' ? '' : containerStatusName + this.msg.containter = + `鐘舵�侊細${containerStatusName}, 灏哄锛�${result?.specLength}*${result?.specWidth}*${result?.specHeight}` + result?.materialContainers.forEach(item => { + + let isExist = this.materialData.some(item1 => item1.materialId == item.materialId) + if (!isExist) { + this.materialData.push(item) + } + }) + + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: '', + site: '', + containerTypeCode: 0, + containerType: '' + } + this.$set(this.form, 'site', '') + this.resetContainerNo() + }, + resetContainerNo() { + this.msg = { + containter: '', + material: '', + site: '', + } + this.msgType = { + containter: 'info', + material: 'error', + site: 'error' + } + this.containerStatus = null + this.materialData = [] + this.form.materialNo = '' + this.form.site = '' + this.form.containerTypeCode = 0 + this.form.containerType = '' + this.containerInfo = {} + }, + + // 鍏ュ簱 + async addInBound() { + if (!this.form.containterCode) { + return $alert("璇锋壂鎵樼洏缂栫爜锛�") + } + if (!this.form.containerType) { + return $alert("璇烽�夋嫨鎵樼洏绫诲瀷锛�") + } + if (!this.form.site) { + return $alert("璇烽�夋嫨鍏ュ簱鍙o紒"); + } + //杩囨护placeList 鏍规嵁form.site 鑾峰彇value + const placeValue = this.placeList.find(item => item.placeName == this.form.site).placeNo; + + const data = { + sourePlace: placeValue, //鍏ュ簱鍙� + containerNo: this.form.containterCode, + containerType: this.form.containerTypeCode + } + try { + this.abled = true //闃叉鎸夐挳澶氭鐐瑰嚮 + await addEmptyContainerReturn(data) + this.$modal('绌烘墭鍏ュ簱鎴愬姛') + this.onClearContainter() + this.abled = false //闃叉鎸夐挳澶氭鐐瑰嚮 + } catch (e) { + console.log(e); + this.abled = false //闃叉鎸夐挳澶氭鐐瑰嚮 + } + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getPalceList({ + // areaCode: 'LTK-SDCR' + // }) + this.ContainerType = getDicList(this.$store, 'container_type').sysDictDatas + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyIn/index.vue b/PipeLineLems.PDA/pages/emptyIn/index.vue new file mode 100644 index 0000000..cce9991 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyIn/index.vue @@ -0,0 +1,237 @@ +<template> + <default-header-page-layout ref="page" title="绌烘墭缁戝畾"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- 鎵樼洏 --> + <scan-input-form-item :clearable="true" :hasScan="false" :hasSearch="false" class="forma-item" label="鎵樼洏缂栧彿" v-model="form.containerNo"/> + <!-- 搴撲綅 --> + <selectItem + :selectData="placeList" :value.sync="form.placeNo" label="搴撲綅缂栧彿" labelField="placeNo" + valueField="placeNo" @update:value="getPlaceNo"/> + +<div v-if="materialInfoShow"> + <scan-input-form-item class="forma-item" label="搴撳瓨淇℃伅" :content="false" /> + <materialInfo :materialData="materialData" /> + + </div> + + </view> + + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"> + <u-button v-if="btnAbled" type="primary" text="缁� 瀹�" @click="onConfirm"> + </u-button> + </view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import selectItem from '@/components/selectItem.vue' + import materialInfo from './modules/materialInfo.vue' + import {emptyContainerBindKTHCPlace} from '@/api/emptyIn.js' + import { + getMaterialDetail + } from '@/api/common.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' +let initInterVal=null; + export default { + name: 'emptyInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + EasyPicker, + selectItem, + materialInfo + }, + data() { + return { + pageBodyHeight: 0, + form: { + containerNo: '', + placeNo: '' + }, + materialData: [] + } + }, + computed: { + btnAbled() { + return Boolean(this.form.placeNo)&&Boolean(this.form.containerNo); + }, + materialInfoShow(){ + return Boolean(this.form.placeNo) ; + } + }, + mixins: [palceList], + methods: { + getPlaceNo(val,obj){ + console.log(val,obj,'111'); + this.getMaterialDetail(obj.id); + }, + //鑾峰彇鐗╂枡淇℃伅 + async getMaterialDetail(id){ + try{ + let {result}=await getMaterialDetail({id}) + this.materialData=result.wmsMaterialStocks; + console.log(result,'data'); + }catch(e){ + //TODO handle the exception + console.log(e); + } + }, + // 娓呴櫎鎵樼洏淇℃伅 + onClearContainter() { + this.form.containerCode = '' + }, + // 娓呴櫎鍗曟嵁鍙� + onClearNO() { + + }, + + // 鍏ュ簱 + async onConfirm() { + uni.showModal({ + title: '鍏ュ簱纭', + content: '纭畾鎵ц鍏ュ簱鎿嶄綔鍚楋紵', + showCancel: true, + cancelText: '鍙栨秷', + confirmText: '纭畾', + success: async (type) => { + let { + confirm, + cancel + } = type + if (confirm) { + console.log(this.form); + try{ + await emptyContainerBindKTHCPlace(this.form) + $alert("绌烘墭缁戝畾鎴愬姛"); + this.form={} + this.materialData=[] + }catch(e){ + //TODO handle the exception + console.log(e); + } + } + } + }) + + // this.onClearContainter() + // this.onClearNO() + }, + // 鑾峰彇鏋氫妇淇℃伅 + async getSysEnumData() { + try { + let { + data + } = await getSysEnumData({ + enumName: 'ContainerStatus' + }) + this.ContainerStatus = data + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + checkChange(item) { + item.checked = !item.checked + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getLinesOptions() + // this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + this.getPalceList({ + areaCode: 'KTHC', + aisle:3 + }) + console.log(this.placeList); + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .forma-item { + margin-bottom: 24rpx; + } + + .only-watch-container { + background-color: #D0DDD8; + min-height: 90rpx; + display: flex; + + &>.label { + color: $u-tips-color; + font-size: 32rpx; + flex-shrink: 0; + padding-left: 20rpx; + padding-top: 22rpx; + } + + &>.content { + width: 1px; + flex-grow: 1; + display: flex; + align-items: center; + font-size: 30rpx; + padding: 8rpx 0; + } + } + + .bottom-btns-row { + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + + .btn-frame { + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyIn/modules/barContent.vue b/PipeLineLems.PDA/pages/emptyIn/modules/barContent.vue new file mode 100644 index 0000000..347e1c7 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyIn/modules/barContent.vue @@ -0,0 +1,152 @@ +<template> + <!-- --> + <view class="content" > + <view class="detail"> + <view class="row1"> + <view style="display: flex;align-items: center"> + <text class="index">{{index+1}}</text> + <!-- materialcode --> + <text class="id-name">{{content.materialcode}}({{content.materialname}})</text> + </view> + <!-- <view class="tag"> + <u-tag plain size="mini" text="鍏嶆" type="success"></u-tag> + </view> --> + </view> + <view class="row2"> + <u-row> + <u-col span="3">鍗曟牴闀垮害:</u-col> + <u-col span="9">{{content.singleLength}}</u-col> + </u-row> + </view> + <view class="row3"> + <view class="row-content"> + <view class="col-content"> + <view> + <view>鍗曚綅</view> + <view>{{content.unit}}</view> + </view> + </view> + <view class="col-content"> + <view> + <view>鍓╀綑鏁伴噺</view> + <view style="text-align: center;color:#F18202">{{content.qtyCount}}</view> + </view> + </view> + <view class="col-content" style="align-items: center;"> + <view> + <view style="text-align: center;">缁勭洏鏁伴噺</view> + <view :style="{ width: inputWid(content.qty) ,textAlign:'center',margin:'0 auto'}"> + <input :maxlength="10" @click.native.stop="stop" type="number" v-model="content.qty" + @blur="inputBlur" style="color:#F18202;border-bottom: 1rpx solid #F18202;" /> + </view> + </view> + </view> + </view> + </view> + <!-- <view v-for="item in propArr" :key="item.code" class="item"> + <view class="item_title">{{item.title}}</view> + <view v-if="item.code=='qty'" class="item_content"> + <view style="width:100rpx"> + <input @click.native.stop="stop" type="number" v-model="content[item.code]" @blur="inputBlur" style="border-bottom: 1rpx solid #ccc;"/> + </view> + </view> + <view v-else class="item_content">{{content[item.code]}}</view> + </view> --> + </view> + <!-- <easy-picker :visible.sync="workingProcedureVisible" :list="workingProcedureList" value-field="value" label-field="label" @select="onChangeInputUser"></easy-picker> --> + </view> +</template> + +<script> + // import EasyPicker from '@/components/EasyPicker.vue' + export default { + // components:{EasyPicker}, + props: { + content: { + type: Array, + default:()=>[] + } + }, + data() { + return { + } + }, + created() { + }, + methods: { + + } + } +</script> + +<style scoped lang="scss"> + .content { + background-color: #fff; + width: 96%; + margin: 18rpx auto; + border: 1rpx solid #fff; + display: flex; + align-items: center; + padding: 5rpx 5rpx 8rpx; + font-size: 30ont30ize-common; + + .detail { + box-sizing: border-box; + flex: 1; + + .row1 { + display: flex; + justify-content: space-between; + margin: 5rpx 0; + + .index { + display: inline-block; + width: 40rpx; + height: 40rpx; + border-radius: 20rpx; + background-color: $color-common; + text-align: center; + color: #fff; + margin-right: 10rpx; + line-height: 40rpx; + } + + .id-name { + font-weight: 700; + font-size: 30rpx; + } + } + + .row2, + .row3 { + color: #bbb; + font-size: 30rpx; + + .row-content { + display: flex; + align-items: flex-start; + + .col-content { + width: 25%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + } + } + } + + .row2{ + margin:8rpx 0; + } + } + } + + .content_active { + border: 1rpx solid #F18202 !important; + } + + ::v-deep uni-input { + font-size: $fontsize-common; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyIn/modules/materialInfo.vue b/PipeLineLems.PDA/pages/emptyIn/modules/materialInfo.vue new file mode 100644 index 0000000..ba62eca --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyIn/modules/materialInfo.vue @@ -0,0 +1,87 @@ +< + +<template> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <!-- <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> --> + <view class="item-row"> + <view class="label">鐗╂枡浠跺彿锛�</view> + <view class="content auto-wrap">KONGTUO</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡绫诲瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_type',2)}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鏁伴噺锛�</view> + <view class="content auto-wrap">{{materialData.length}}</view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic + } + } +</script> + +<style scoped > + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding: 10rpx 20rpx; + background-color: #fff; + /* margin-bottom: 10rpx; */ + position: relative; + margin:-20rpx auto; + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 200rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyInCopy/index.vue b/PipeLineLems.PDA/pages/emptyInCopy/index.vue new file mode 100644 index 0000000..cce9991 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyInCopy/index.vue @@ -0,0 +1,237 @@ +<template> + <default-header-page-layout ref="page" title="绌烘墭缁戝畾"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- 鎵樼洏 --> + <scan-input-form-item :clearable="true" :hasScan="false" :hasSearch="false" class="forma-item" label="鎵樼洏缂栧彿" v-model="form.containerNo"/> + <!-- 搴撲綅 --> + <selectItem + :selectData="placeList" :value.sync="form.placeNo" label="搴撲綅缂栧彿" labelField="placeNo" + valueField="placeNo" @update:value="getPlaceNo"/> + +<div v-if="materialInfoShow"> + <scan-input-form-item class="forma-item" label="搴撳瓨淇℃伅" :content="false" /> + <materialInfo :materialData="materialData" /> + + </div> + + </view> + + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"> + <u-button v-if="btnAbled" type="primary" text="缁� 瀹�" @click="onConfirm"> + </u-button> + </view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import selectItem from '@/components/selectItem.vue' + import materialInfo from './modules/materialInfo.vue' + import {emptyContainerBindKTHCPlace} from '@/api/emptyIn.js' + import { + getMaterialDetail + } from '@/api/common.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' +let initInterVal=null; + export default { + name: 'emptyInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + EasyPicker, + selectItem, + materialInfo + }, + data() { + return { + pageBodyHeight: 0, + form: { + containerNo: '', + placeNo: '' + }, + materialData: [] + } + }, + computed: { + btnAbled() { + return Boolean(this.form.placeNo)&&Boolean(this.form.containerNo); + }, + materialInfoShow(){ + return Boolean(this.form.placeNo) ; + } + }, + mixins: [palceList], + methods: { + getPlaceNo(val,obj){ + console.log(val,obj,'111'); + this.getMaterialDetail(obj.id); + }, + //鑾峰彇鐗╂枡淇℃伅 + async getMaterialDetail(id){ + try{ + let {result}=await getMaterialDetail({id}) + this.materialData=result.wmsMaterialStocks; + console.log(result,'data'); + }catch(e){ + //TODO handle the exception + console.log(e); + } + }, + // 娓呴櫎鎵樼洏淇℃伅 + onClearContainter() { + this.form.containerCode = '' + }, + // 娓呴櫎鍗曟嵁鍙� + onClearNO() { + + }, + + // 鍏ュ簱 + async onConfirm() { + uni.showModal({ + title: '鍏ュ簱纭', + content: '纭畾鎵ц鍏ュ簱鎿嶄綔鍚楋紵', + showCancel: true, + cancelText: '鍙栨秷', + confirmText: '纭畾', + success: async (type) => { + let { + confirm, + cancel + } = type + if (confirm) { + console.log(this.form); + try{ + await emptyContainerBindKTHCPlace(this.form) + $alert("绌烘墭缁戝畾鎴愬姛"); + this.form={} + this.materialData=[] + }catch(e){ + //TODO handle the exception + console.log(e); + } + } + } + }) + + // this.onClearContainter() + // this.onClearNO() + }, + // 鑾峰彇鏋氫妇淇℃伅 + async getSysEnumData() { + try { + let { + data + } = await getSysEnumData({ + enumName: 'ContainerStatus' + }) + this.ContainerStatus = data + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + checkChange(item) { + item.checked = !item.checked + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getLinesOptions() + // this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + this.getPalceList({ + areaCode: 'KTHC', + aisle:3 + }) + console.log(this.placeList); + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .forma-item { + margin-bottom: 24rpx; + } + + .only-watch-container { + background-color: #D0DDD8; + min-height: 90rpx; + display: flex; + + &>.label { + color: $u-tips-color; + font-size: 32rpx; + flex-shrink: 0; + padding-left: 20rpx; + padding-top: 22rpx; + } + + &>.content { + width: 1px; + flex-grow: 1; + display: flex; + align-items: center; + font-size: 30rpx; + padding: 8rpx 0; + } + } + + .bottom-btns-row { + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + + .btn-frame { + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyInCopy/modules/barContent.vue b/PipeLineLems.PDA/pages/emptyInCopy/modules/barContent.vue new file mode 100644 index 0000000..347e1c7 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyInCopy/modules/barContent.vue @@ -0,0 +1,152 @@ +<template> + <!-- --> + <view class="content" > + <view class="detail"> + <view class="row1"> + <view style="display: flex;align-items: center"> + <text class="index">{{index+1}}</text> + <!-- materialcode --> + <text class="id-name">{{content.materialcode}}({{content.materialname}})</text> + </view> + <!-- <view class="tag"> + <u-tag plain size="mini" text="鍏嶆" type="success"></u-tag> + </view> --> + </view> + <view class="row2"> + <u-row> + <u-col span="3">鍗曟牴闀垮害:</u-col> + <u-col span="9">{{content.singleLength}}</u-col> + </u-row> + </view> + <view class="row3"> + <view class="row-content"> + <view class="col-content"> + <view> + <view>鍗曚綅</view> + <view>{{content.unit}}</view> + </view> + </view> + <view class="col-content"> + <view> + <view>鍓╀綑鏁伴噺</view> + <view style="text-align: center;color:#F18202">{{content.qtyCount}}</view> + </view> + </view> + <view class="col-content" style="align-items: center;"> + <view> + <view style="text-align: center;">缁勭洏鏁伴噺</view> + <view :style="{ width: inputWid(content.qty) ,textAlign:'center',margin:'0 auto'}"> + <input :maxlength="10" @click.native.stop="stop" type="number" v-model="content.qty" + @blur="inputBlur" style="color:#F18202;border-bottom: 1rpx solid #F18202;" /> + </view> + </view> + </view> + </view> + </view> + <!-- <view v-for="item in propArr" :key="item.code" class="item"> + <view class="item_title">{{item.title}}</view> + <view v-if="item.code=='qty'" class="item_content"> + <view style="width:100rpx"> + <input @click.native.stop="stop" type="number" v-model="content[item.code]" @blur="inputBlur" style="border-bottom: 1rpx solid #ccc;"/> + </view> + </view> + <view v-else class="item_content">{{content[item.code]}}</view> + </view> --> + </view> + <!-- <easy-picker :visible.sync="workingProcedureVisible" :list="workingProcedureList" value-field="value" label-field="label" @select="onChangeInputUser"></easy-picker> --> + </view> +</template> + +<script> + // import EasyPicker from '@/components/EasyPicker.vue' + export default { + // components:{EasyPicker}, + props: { + content: { + type: Array, + default:()=>[] + } + }, + data() { + return { + } + }, + created() { + }, + methods: { + + } + } +</script> + +<style scoped lang="scss"> + .content { + background-color: #fff; + width: 96%; + margin: 18rpx auto; + border: 1rpx solid #fff; + display: flex; + align-items: center; + padding: 5rpx 5rpx 8rpx; + font-size: 30ont30ize-common; + + .detail { + box-sizing: border-box; + flex: 1; + + .row1 { + display: flex; + justify-content: space-between; + margin: 5rpx 0; + + .index { + display: inline-block; + width: 40rpx; + height: 40rpx; + border-radius: 20rpx; + background-color: $color-common; + text-align: center; + color: #fff; + margin-right: 10rpx; + line-height: 40rpx; + } + + .id-name { + font-weight: 700; + font-size: 30rpx; + } + } + + .row2, + .row3 { + color: #bbb; + font-size: 30rpx; + + .row-content { + display: flex; + align-items: flex-start; + + .col-content { + width: 25%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + } + } + } + + .row2{ + margin:8rpx 0; + } + } + } + + .content_active { + border: 1rpx solid #F18202 !important; + } + + ::v-deep uni-input { + font-size: $fontsize-common; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyInCopy/modules/materialInfo.vue b/PipeLineLems.PDA/pages/emptyInCopy/modules/materialInfo.vue new file mode 100644 index 0000000..ba62eca --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyInCopy/modules/materialInfo.vue @@ -0,0 +1,87 @@ +< + +<template> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <!-- <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> --> + <view class="item-row"> + <view class="label">鐗╂枡浠跺彿锛�</view> + <view class="content auto-wrap">KONGTUO</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡绫诲瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_type',2)}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鏁伴噺锛�</view> + <view class="content auto-wrap">{{materialData.length}}</view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic + } + } +</script> + +<style scoped > + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding: 10rpx 20rpx; + background-color: #fff; + /* margin-bottom: 10rpx; */ + position: relative; + margin:-20rpx auto; + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 200rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/emptyOut/index.vue b/PipeLineLems.PDA/pages/emptyOut/index.vue new file mode 100644 index 0000000..d8ea6b0 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyOut/index.vue @@ -0,0 +1,267 @@ +<template> + <default-header-page-layout ref="page" title="鑷埗浠剁┖鎵樺懠鍙�"> + <view + class="page-frame with-action-user-row" + :style="{ height: pageBodyHeight + 'px' }" + v-if="pageBodyHeight" + > + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- 搴撳尯 --> + <selectItem + :selectData="areaData" + :value.sync="form.areaNo" + label="搴撳尯缂栫爜" + labelField="areaName" + valueField="areaNo" + /> + + <selectItemWc2 + :selectData="placeList" + :value.sync="form.placeNo" + label="搴撲綅缂栫爜" + labelField="placeNo" + valueField="placeNo" + @getPropData="getCurrentData" + /> + + <scan-input-form-item + placeholder="璇烽�夋嫨" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="ctVisible = true" + class="forma-item" + label="鎵樼洏绫诲瀷" + v-model="form.containerTypeCode" + /> + + <EasyPicker + :visible.sync="ctVisible" + :list="ContainerType" + labelField="value" + valueField="code" + @select="getTypeVal" + /> + + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame" + ><u-button + :disabled="!Boolean(form.placeNo)" + type="primary" + text="鍛煎彨鎵樼洏" + @click="onConfirm" + ></u-button + ></view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from "@/components/DefaultHeaderPageLayout.vue"; +import ActionUserRow from "@/components/ActionUserRow.vue"; +import ScanInputFormItem from "@/components/ScanInputFormItem.vue"; +import EasySelectFormItem from "@/components/EasySelectFormItem.vue"; +import EasyPicker from "@/components/EasyPicker.vue"; +import selectItem from "@/components/selectItem.vue"; +import selectItemWc2 from "@/components/selectItemWithSearchWc2.vue"; +import { + $alert, + getDicList, +} from "@/static/js/utils/index.js"; +import { palceList } from "@/service/mixins/mixins.js"; +import { getAreaInfo } from "@/api/common.js"; +import { callEmptyContainer } from "@/api/callEmptyContainer.js"; +let initInterVal = null; +export default { + name: "emptyOutPage", + components: { + DefaultHeaderPageLayout, + ActionUserRow, + EasySelectFormItem, + ScanInputFormItem, + selectItem, + EasyPicker, + selectItemWc2 + }, + data() { + return { + pageBodyHeight: 0, + form: { + placeNo: "", + areaNo: "", + areaName: "", + containerTypeCode:"", + containerType: "" + }, + areaData: [], + ctVisible: false, + ContainerType: [], + }; + }, + watch: { + "form.areaNo": { + handler(val, oldVal) { + if (val != "") { + this.form.placeNo = ""; + this.form.containerNo = ""; + this.placeList = []; + this.getPalceList({ + areaCode: val, + }); + } + }, + }, + }, + methods: { + //搴撲綅妯$硦鏌ヨ + async getCurrentData(PlaceNo) { + await this.getPalceList({ + areaCode: this.form.areaNo, + PlaceNo: PlaceNo + }); + }, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.value; + this.form.containerType = valObj.code; + }, + // 閫夋嫨搴撲綅杩斿洖鍊� + async selectPlace(val, item) { + this.form.areaNo = item.areaCode; + this.form.placeNo = val; + let res = this.areaList.filter((obj) => obj.areaNo == item.areaCode); + this.form.areaName = res.length > 0 ? res[0].areaName : ""; + }, + + // 鑾峰彇搴撳尯鏁版嵁 + async getAreaList() { + try { + let { result } = await getAreaInfo(); + this.areaData = result; + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + async onConfirm() { + //鍒ゆ柇搴撳尯鏄惁涓虹┖ + if(!this.form.areaNo){ + $alert("璇烽�夋嫨搴撳尯"); + return; + } + //鍒ゆ柇搴撲綅鏄惁涓虹┖ + if(!this.form.placeNo){ + $alert("璇烽�夋嫨搴撲綅"); + return; + } + + //鍒ゆ柇鎵樼洏绫诲瀷鏄惁涓虹┖ + if(!this.form.containerType){ + $alert("璇烽�夋嫨鎵樼洏绫诲瀷"); + return; + } + try { + await callEmptyContainer(this.form); + this.$modal('鍛煎彨绌烘墭鎴愬姛') + this.form = { + placeNo: "", + areaNo: "", + areaName: "", + containerTypeCode:"", + containerType: "" + }; + } catch (e) { + console.log(e); + } + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval(); + callback && callback(); + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight(); + } + }, 200); + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal); + initInterVal = null; + } catch (e) { + //TODO handle the exception + } + }, + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getPalceList({ + // areaCode: 'GGXX' + // }) + this.ContainerType = getDicList( + this.$store, + "container_type" + ).sysDictDatas; + this.getAreaList(); + }); + }, + onUnload() { + this.clearInitInterval(); + }, +}; +</script> + +<style scoped lang="scss"> +.bottom-btns-row { + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + + .btn-frame { + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + + .divider { + width: 20rpx; + flex-shrink: 0; + } +} + +.forma-item { + margin-bottom: 24rpx; +} + +.only-watch-container { + background-color: #d0ddd8; + min-height: 90rpx; + display: flex; + + & > .label { + color: $u-tips-color; + font-size: 32rpx; + flex-shrink: 0; + padding-left: 20rpx; + padding-top: 22rpx; + } + + & > .content { + width: 1px; + flex-grow: 1; + display: flex; + align-items: center; + font-size: 30rpx; + padding: 8rpx 0; + } +} +</style> diff --git a/PipeLineLems.PDA/pages/emptyOut/modules/selectItemWithSearch.vue b/PipeLineLems.PDA/pages/emptyOut/modules/selectItemWithSearch.vue new file mode 100644 index 0000000..f9616b8 --- /dev/null +++ b/PipeLineLems.PDA/pages/emptyOut/modules/selectItemWithSearch.vue @@ -0,0 +1,115 @@ +<template> + <view class="forma-item"> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" :label="label" v-model="value" :disabled="disabled"/> + <EasyPicker :visible.sync="visible" :list="selectData" :labelField="labelField" :valueField="valueField" + @select="getSelectData" :isShowSearch="isShowSearch" @getCurrentData="getCurrentData"/> + </view> +</template> +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + import EasyPicker from '@/components/EasyPickerWithSearch.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + export default { + emits:['getCurrentData'], + props: { + selectData: { + type: Array, + default: () => [] + }, + value:{ + type: String, + default: '' + }, + label:{ + type:String, + default:'' + }, + labelField:{ + type:String, + default:'' + }, + valueField:{ + type:String, + default:'' + }, + disabled:{ + type:Boolean, + default:false + }, + isShowSearch:{ + type:Boolean, + default:false + } + }, + components: { + EasyPicker, + ScanInputFormItem + }, + data() { + return { + radiolist1: [], + radiovalue1: '', + visible:false, + } + }, + + methods: { + getSelectData(val){ + this.$emit('update:value',val) + }, + getCurrentData(val){ + //璋冪敤搴撲綅鎺ュ彛锛岃幏鍙栧簱浣嶅垪琛� + this.$emit('getCurrentData',val) + }, + parseDic + } + } +</script> + +<!-- <style scoped> + .custom-radio { + font-size: 16px; + line-height: 24px; + } + + .material-item-group { + padding-top: 10rpx; + display: flex; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + position: relative; + flex: 1; + + &:last-child { + border-bottom: 0; + } + } + } + + .radio-row { + background-color: rgb(255, 255, 255); + margin-bottom: 10px; + padding-top: 15px; + padding-bottom: 15px; + } + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .radio-group u-radio { + width: 50%; + } +</style> --> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/endProductInstore/index.vue b/PipeLineLems.PDA/pages/endProductInstore/index.vue new file mode 100644 index 0000000..b7e8385 --- /dev/null +++ b/PipeLineLems.PDA/pages/endProductInstore/index.vue @@ -0,0 +1,167 @@ +<template> + <default-header-page-layout ref="page" title="鎴愬搧鍏ュ簱" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <page-main v-show="pageStyle==='main'" ref="main" @pageChange="onMainPageChange" /> + <page-edit v-show="pageStyle==='edit'" ref="edit" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="pageStyle==='main'"> + <view class="btn-frame"><u-button text="缁� 鐩�" @click="onBind"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鍏� 搴�" @click="onSubmitConfirm"></u-button></view> + </template> + <template v-if="pageStyle==='edit'"> + <view class="btn-frame"><u-button text="杩� 鍥�" @click="onEditBack"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" :text="editIndex===-1?'娣� 鍔�':'淇� 鏀�'" @click="onEditConfirm"></u-button></view> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import PageMain from './modules/main.vue' +import PageEdit from './modules/edit.vue' +import { $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +export default { + name:'endProductInstorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,PageMain,PageEdit}, + data(){ + return { + pageBodyHeight:0, + pageStyle:'main', + editIndex:-1 + } + }, + methods:{ + onEditBack(){ + this.pageStyle = 'main' + }, + onEditConfirm(){ + let check = this.$refs.edit.checkConfirm() + if (check.flag) { + if (this.editIndex===-1) { + this.$refs.main.add(check.data) + } else { + this.$refs.main.modify(check.data,this.editIndex) + } + } + this.pageStyle = 'main' + }, + onMainPageChange(obj,index){ + if (obj) { + this.editIndex = index + } else { + this.editIndex = -1 + } + this.$refs.edit.init(obj) + this.pageStyle = 'edit' + }, + onMainReset(){ + this.$refs.main.clearMain() + }, + onBind(){ + let check = this.$refs.main.checkConfirm() + if (check.flag) { + this.dealBind(check.data,(f)=>{ + if (f) { + $successInfo('缁勭洏鎴愬姛') + } + }) + } + }, + onSubmitConfirm(){ + let check = this.$refs.main.checkConfirm() + if (check.flag) { + this.dealSubmitConfirm(check.data,(f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.$refs.main.clearMain() + } + }) + } + }, + /* 缁勭洏鎺ュ彛璋冪敤 */ + dealBind(obj,callback){ + let params = this.dealSubmitParams(obj,'bind') + this.$api.post('FinishProductBindEntrance',params,{block:'endProduct'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /*鍏ュ簱鎺ュ彛璋冪敤 */ + dealSubmitConfirm(obj,callback){ + let params = this.dealSubmitParams(obj) + this.$api.post('FinishProductManualWare',params,{block:'endProduct'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + dealSubmitParams(obj,type='confirm'){ + let res = { + containercode:obj.containter.containerCode, + wmsMaterials:obj.list + } + if (type==='confirm') { + res.areaid = obj.areaid + } + return res + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/endProductInstore/modules/edit.vue b/PipeLineLems.PDA/pages/endProductInstore/modules/edit.vue new file mode 100644 index 0000000..28248f5 --- /dev/null +++ b/PipeLineLems.PDA/pages/endProductInstore/modules/edit.vue @@ -0,0 +1,128 @@ +<template> + <view class="plywood-instore-edit-page-content"> + <view class="form-view"> + <!-- ******************** --> + <long-width-height-form-item + class="forma-item" + label="灏哄" + :long.sync="form.materiallength" + :width.sync="form.materialwidth" + :height.sync="form.materialhigh" + :msg="msg.materialspec" + :required="true" + /> + <scan-input-form-item + type="digit" + label="鏁伴噺" + v-model="form.bindquantity" + :msg="msg.bindquantity" + :has-scan="false" + :has-search="false" + :required="true" + /> + <!-- ******************** --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import LongWidthHeightFormItem from '@/pages/components/LongWidthHeightFormItem.vue' +const defaultForm = { + bindquantity:null, + materiallength:null, + materialwidth:null, + materialhigh:null +} +export default { + name:'plywoodInstoreEditPageContent', + components:{ScanInputFormItem,LongWidthHeightFormItem}, + data(){ + return { + form:{...defaultForm}, + msg:{ + materialspec:'', + bindquantity:'' + } + } + }, + watch:{ + 'form.materiallength'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.materialwidth'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.materialhigh'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.bindquantity'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchBindquantity() + } + } + }, + methods:{ + init(obj){ + if (obj) { + this.form = {...obj} + } else { + this.form = {...defaultForm} + } + }, + getFormValues(){ + return {...this.form} + }, + checkConfirm(){ + let res = {flag:true,data:{}} + res.data = this.getFormValues() + if (res.flag && (!res.data.materiallength || !res.data.materialwidth || !res.data.materialhigh)) { + this.msg.materialspec = '璇峰厛褰曞叆灏哄锛�' + res.flag = false + } else { + this.msg.materialspec = '' + } + if (res.flag && !res.data.bindquantity) { + this.msg.bindquantity = '璇峰厛褰曞叆鏁伴噺锛�' + res.flag = false + } else { + this.msg.bindquantity = '' + } + return res; + }, + watchSpec(){ + if (this.form.materiallength && this.form.materialwidth && this.form.materialhigh) { + this.msg.materialspec = '' + } + }, + watchBindquantity(){ + if(this.form.bindquantity) { + this.msg.bindquantity = '' + } else { + this.msg.bindquantity = '璇峰厛褰曞叆鏁伴噺锛�' + } + } + } +} +</script> + +<style scoped lang="scss"> +.plywood-instore-edit-page-content{ + height: 100%; + box-sizing: border-box; + padding-bottom: 12rpx; + .form-view{ + height: 100%; + overflow: auto; + } + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/endProductInstore/modules/main.vue b/PipeLineLems.PDA/pages/endProductInstore/modules/main.vue new file mode 100644 index 0000000..bab0f25 --- /dev/null +++ b/PipeLineLems.PDA/pages/endProductInstore/modules/main.vue @@ -0,0 +1,342 @@ +<template> + <view class="end-product-instore-main-page-content"> + <view class="top-view"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + <view class="btns-row"> + <view class="btn primary-btn" @tap.stop="onAdd">娣诲姞鐗╂枡</view> + <!-- <view class="divider"></view> + <view class="btn default-btn">鏌ョ湅璁板綍</view> --> + </view> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <uni-swipe-action-item :auto-close="false"> + <view class="list-item-show"> + <view class="item-left"> + <uni-badge :text="list.length-index" type="primary" size="normal" /> + </view> + <view class="item-main"> + <view class="item-row"> + <view class="label">灏哄</view> + <view class="content">{{item.materiallength}}*{{item.materialwidth}}*{{item.materialhigh}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺</view> + <view class="content">{{item.bindquantity}}</view> + </view> + </view> + </view> + <template v-slot:right> + <view class="swipe-action-btns"> + <view class="swipe-action-btn" @tap.stop="onEdit(item,index)"><text>缂栬緫</text></view> + <view class="swipe-action-btn danger" @tap.stop="onDel(index)"><text>鍒犻櫎</text></view> + </view> + </template> + </uni-swipe-action-item> + </view> + + </view> + <!-- ########### --> + </view> + <view class="end-view"> + <easy-select-form-item + label="鍏ュ簱搴撳尯" + v-model="form.areaid" + :list="selectOptions.areas" + value-field="areaId" + label-field="areaName" + :clearable="false" + /> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { $alert, parseDic } from '@/static/js/utils/index.js' +const defaultForm = { + container:'', + areaid:'' +} +export default { + name:'endProductInstoreMainPageContent', + emits:['pageChange'], + components:{ScanInputFormItem, EasySelectFormItem}, + data() { + return { + form: {...defaultForm}, + msg:{ + container:'' + }, + msgType:{ + container:'error' + }, + list:[], + containter:null, + selectOptions:{ + areas:[] + } + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainterInfo() + }, + onClearContainer(){ + this.clearFullContainer() + }, + clearMain(){ + this.clearFullContainer() + this.clearArea() + }, + clearFullContainer(){ + this.clearContainter() + this.clearBackContainer() + }, + clearContainter(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.containter = null + this.list = [] + }, + clearArea(){ + if (this.selectOptions.areas.length!==1) { + this.form.areaid = '' + } + }, + getContainterInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('FinishProductGetContainer',params,{block:'endProduct',warn:false,fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.containter = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.containter.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.containter.specLength}*${this.containter.specWidth}锛岀姸鎬侊細${_temp1}` + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage() + callback && callback(false) + }) + }, + onDel(index){ + this.list.splice(index,1) + }, + onAdd(){ + if (!this.form.container) { + $alert('璇峰厛褰曞叆鎵樼洏淇℃伅锛�') + return false; + } + this.$emit('pageChange',null) + }, + onEdit(obj,index){ + this.$emit('pageChange',obj,index) + }, + add(obj){ + this.list.unshift(obj) + }, + modify(obj,index) { + this.$set(this.list,index,obj) + }, + getSubmitParams(){ + return { + list:this.list, + containter:this.containter, + areaid:this.form.areaid + } + }, + checkConfirm(){ + let res = {flag:true,data:{}} + res.data = this.getSubmitParams() + if (!res.data.containter) { + this.msg.container = '璇峰厛褰曞叆鎵樼洏淇℃伅锛�' + this.msgType.container = 'error' + res.flag = false + } else { + this.msg.container = '' + } + if (res.flag && res.data.list.length<=0) { + $alert('璇峰綍鍏ユ垚鍝佹暟鎹紒') + res.flag = false + } + return res; + }, + getAreaOptions(){ + this.$api.get('FinishProductGetAreaList',{},{block:'endProduct'}).then(d=>{ + this.selectOptions.areas = d || [] + if (this.selectOptions.areas.length===1) { + this.form.areaid = this.selectOptions.areas[0].areaId + } + }).catch(ex=>{ + console.log(ex) + }) + } + }, + mounted() { + this.getAreaOptions() + } +} +</script> + +<style scoped lang="scss"> +.end-product-instore-main-page-content{ + height: 100%; + display: flex; + flex-direction: column; + &>.top-view,&>.end-view{ + flex-shrink: 0; + } + &>.end-view{ + padding: 8rpx 0 16rpx 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + //padding: 0 16rpx; + font-size: 1.1em; + display: flex; + &>.item-left{ + flex-shrink: 0; + padding-left: 16rpx; + padding-top: 12rpx; + padding-right: 12rpx; + } + &>.item-main{ + flex-grow: 1; + width: 1px; + padding-right: 16rpx; + } + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } + .forma-item{ + margin-bottom: 24rpx; + } + .btns-row{ + display: flex; + height: 90rpx; + box-sizing: border-box; + border-style: solid; + border-color: $uni-border-1; + border-width: 2rpx 0 2rpx 0; + .divider { + width: 2rpx; + height: 100%; + background-color: $uni-border-1; + } + .btn{ + flex-grow: 1; + width: 1px; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + &.primary-btn{ + background-color: $uni-color-primary; + color: $uni-bg-color; + } + &.default-btn{ + background-color: $uni-bg-color; + color: $uni-color-primary; + } + } + } +} +.swipe-action-btns{ + width: 100rpx; + display: flex; + flex-direction: column; +} +.swipe-action-btn{ + display: flex; + color: $uni-bg-color; + background-color: $u-primary; + justify-content: center; + align-items: center; + height: 50%; + width: 100rpx; + box-sizing: border-box; + &.danger{ + background-color: $u-error; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/exceptionHandle/index.vue b/PipeLineLems.PDA/pages/exceptionHandle/index.vue new file mode 100644 index 0000000..ad37ced --- /dev/null +++ b/PipeLineLems.PDA/pages/exceptionHandle/index.vue @@ -0,0 +1,308 @@ +<template> + <default-header-page-layout ref="page" title="寮傚父鐗╂枡澶勭悊"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item class="forma-item" label="鐗╂枡浜岀淮鐮�" v-model="form.materialId" + :msg="msg.materialId" :msg-type="msgType.materialId" @search="onSearchMaterial(form.materialId)" + @clear="onClearContainter"/> + + + + <!-- <view class="p-form-label"><text class="required-tag"></text>閫夋嫨寮傚父宸ヤ綅浣嶇疆</view> --> + <exceptionPlace v-show="Boolean(materialData.materialType)" :station.sync="form.station" :exceptePlace="exceptePlace"/> + <materialInfo :materialData="this.materialData" /> + </view> + </view> + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button :disabled="disabled" type="primary" text="鑷姩鍑哄簱" @click="submint(1)" + ></u-button></div> + <div class="btn-frame"><u-button :disabled="disabled" type="primary" text="浜哄伐鍑哄簱" @click="submint(2)" + ></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import exceptionPlace from './modules/exceptionPlace.vue' + import materialInfo from './modules/materialInfo.vue' + import { + lisNoPage,exceptionInfo,outBound + } from '@/api/exception.js' + import { $alert, $successInfo, regexValidate } from '@/static/js/utils/index.js' + let initInterVal = null; + + export default { + name: 'emptyInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + EasyPicker, + exceptionPlace, + materialInfo + }, + data() { + return { + pageBodyHeight: 0, + form: { + no: '', + station:'' + }, + exceptePlace: [], + materialData: {}, + msg: { + materialId:'' + }, + msgType: { + materialId:'info' + }, + } + }, + computed: { + disabled() { + return !Boolean(this.materialData.materialId) + } + }, + methods: { + onClearContainter(){ + this.form.station='' + this.materialData={} + }, + // onReady() { + // this.startInitInterval(() => { + + // }) + // }, + // 鑾峰彇寮傚父宸ヤ綅鐐� + getExceptionPlace(materialType){ + var areaCode=materialType==1?'GGYC':'JTYC' + try{ + lisNoPage({areaCode}).then(res=>{ + + if(res.code == 200){ + this.exceptePlace=res?.result + console.log(this.exceptePlace,'11'); + } + }) + + }catch(e){ + //TODO handle the exception + $alert(e); + return; + } + }, + // 鑾峰彇寮傚父浠朵俊鎭俊鎭� + async onSearchMaterial() { + if (!this.form.materialId) { + this.msgType.materialId = 'error' + this.msg.materialId = '璇疯緭鍏ユ壂鐮侊紒'; + return false; + } + const data = { + code: this.form.materialId + } + // 鑾峰彇浠g爜 + try{ + let {result}=await exceptionInfo(data) + this.materialData = result + this.getExceptionPlace(this.materialData.materialType); + }catch(e){ + //TODO handle the exception + $alert(e) + return; + } + }, + + // 娓呴櫎鏁版嵁 + setData(){ + console.log('clear'); + this.form={ + no: '', + station:'' + } + + this.msg={ + materialId:'' + }, + this.msgType={ + materialId:'info' + } + this.exceptePlace= [] + this.materialData= {} + }, + // 鍑哄簱 + async submint(type) { + const data={ + type, + materialId:this.materialData.materialId, + stationNo:this.form.station + } + console.log(data); + try{ + await outBound(data) + this.setData() + $successInfo("鍑哄簱鎴愬姛锛�") + + }catch(e){ + //TODO handle the exception + console.log(e); + } + + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getData() + // this.getLinesOptions() + // this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + } + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex:1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1){ + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/exceptionHandle/modules/exceptionPlace.vue b/PipeLineLems.PDA/pages/exceptionHandle/modules/exceptionPlace.vue new file mode 100644 index 0000000..7ca03e4 --- /dev/null +++ b/PipeLineLems.PDA/pages/exceptionHandle/modules/exceptionPlace.vue @@ -0,0 +1,99 @@ +<template> + <view class="forma-item"> + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" label="閫夋嫨鐐逛綅" v-model="station" /> + <EasyPicker :visible.sync="visible" :list="exceptePlace" labelField="placeNo" valueField="placeNo" + @select="getSiteVal" /> + </view> +</template> +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + import EasyPicker from '@/components/EasyPicker.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + export default { + props: { + exceptePlace: { + type: Array, + default: () => [] + }, + station:{ + type: String, + default: '' + } + }, + components: { + EasyPicker, + ScanInputFormItem + }, + data() { + return { + radiolist1: [], + radiovalue1: '', + visible:false, + options: [{ + text: '鍒犻櫎', + style: { + backgroundColor: '#F18202' + } + }] + } + }, + + methods: { + getSiteVal(val){ + this.$emit('update:station',val) + }, + parseDic, + deleteItem() { + this.$emit('sortInfo', this.sortInfo.materialNo) + } + } + } +</script> + +<!-- <style scoped> + .custom-radio { + font-size: 16px; + line-height: 24px; + } + + .material-item-group { + padding-top: 10rpx; + display: flex; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + position: relative; + flex: 1; + + &:last-child { + border-bottom: 0; + } + } + } + + .radio-row { + background-color: rgb(255, 255, 255); + margin-bottom: 10px; + padding-top: 15px; + padding-bottom: 15px; + } + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + + .required-tag { + color: $u-error; + } + } + + .radio-group u-radio { + width: 50%; + } +</style> --> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/exceptionHandle/modules/materialInfo.vue b/PipeLineLems.PDA/pages/exceptionHandle/modules/materialInfo.vue new file mode 100644 index 0000000..1c8f0d6 --- /dev/null +++ b/PipeLineLems.PDA/pages/exceptionHandle/modules/materialInfo.vue @@ -0,0 +1,167 @@ +<template> + <view class="material-item-group" v-show="Boolean(materialData.materialNo)"> + <view class="material-list-item"> + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <view class="item-row"> + <view class="label">淇℃伅鎻愮ず</view>锛� + <view class="content auto-wrap">{{materialData.alertInfomation}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮�</view>锛� + <view class="content auto-wrap">{{materialData.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡浠跺彿</view>锛� + <view class="content auto-wrap">{{materialData.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О</view>锛� + <view class="content auto-wrap">{{materialData.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟�</view>锛� + <view class="content auto-wrap">{{materialData.supplier}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿</view>锛� + <view class="content auto-wrap">{{materialData.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">瑙勬牸</view>锛� + <view class="content auto-wrap">{{materialData.materialSpec}}</view> + </view> + <view class="item-row"> + <view class="label">鏈哄瀷</view>锛� + <view class="content auto-wrap">{{parseDic($store,'material_modal',materialData.materialModel)}}</view> + </view> + <view class="item-row"> + <view class="label">鎵规</view>锛� + <view class="content auto-wrap">{{materialData.materialBatch}}</view> + </view> + </view> + </view> +</template> + +<script> + import { + parseDic + } from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Object, + default: () => ({}) + } + }, + data() { + return { + } + }, + + methods: { + + parseDic + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 50rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + padding: 10px 0; + border-bottom: 1px solid #ccc; + + .label { + flex-shrink: 0; + color: #000; + width: 150rpx; + text-align-last: justify; + text-align: justify; + } + + .content { + flex-grow: 1; + color: $u-content-color; + } + + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + // .close-btn { + // $closeBtnSize: 70rpx; + // width: $closeBtnSize; + // height: $closeBtnSize; + // z-index: 1; + // position: absolute; + // top: 0rpx; + // right: 8rpx; + // background-color: $u-error; + // opacity: 0.6; + // border-radius: 25rpx; + + // .icon-layer { + // position: absolute; + // width: 100%; + // height: 100%; + // display: flex; + // align-items: center; + // justify-content: center; + // z-index: 2; + // } + // } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/fapaoInStore/index.vue b/PipeLineLems.PDA/pages/fapaoInStore/index.vue new file mode 100644 index 0000000..12a7e33 --- /dev/null +++ b/PipeLineLems.PDA/pages/fapaoInStore/index.vue @@ -0,0 +1,310 @@ +<template> + <default-header-page-layout ref="page" title="鍏ュ簱浣滀笟" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item + class="forma-item" + label="鎵规鍙�" + v-model="form.orderNo" + :msg="msg.orderNo" + :msg-type="msgType.orderNo" + @search="onSearchOrderNo" + @clear="onClearOrderNo" + /> + + <template v-if="materialObj.id"> + <view class="material-block"> + <view class="material-block-item"> + <view class="label">鎵规鍙凤細</view> + <view class="content auto-wrap">{{materialObj.batch}}</view> + </view> + <view class="material-block-item"> + <view class="label auto-wrap">娴佹按鍙凤細</view> + <view class="content"> + <input class="easy-input" v-model="materialObj.serialNo" /> + </view> + </view> + <view class="material-block-item"> + <view class="label">闀匡細</view> + <view class="content auto-wrap">{{materialObj.long}}</view> + </view> + <view class="material-block-item"> + <view class="label">瀹斤細</view> + <view class="content auto-wrap">{{materialObj.wide}}</view> + </view> + <view class="material-block-item"> + <view class="label">楂橈細</view> + <view class="content auto-wrap">{{materialObj.high}}</view> + </view> + </view> + + <easy-select-form-item + label="鍏ュ簱鍙�" + v-model="form.entranceId" + :msg="msg.entranceId" + :msg-type="msgType.entranceId" + :list="selectList.entrances" + value-field="code" + label-field="name" + :clearable="false" + /> + </template> + + </view> + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <u-button type="primary" text="鎻愪氦鍏ュ簱" :disabled="confirmBtnDisabled" @click="onSubmit"></u-button> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { $alert, $successInfo, regexValidate } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + orderNo:'', + entranceId:'' +} +export default { + name:'fapaoInStorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + pageBodyHeight:0, + step:1, + form:{...defaultForm}, + msg:{ + orderNo:'', + entranceId:'' + }, + msgType:{ + orderNo:'error', + entranceId:'error' + }, + materialObj:{}, + selectList:{ + entrances:[] + } + } + }, + computed:{ + confirmBtnDisabled(){ + let res = true; + if (this.materialObj.id && this.form.entranceId) { + res = false + } + return res; + } + }, + methods:{ + /* 鍗曟嵁缂栧彿鎼滅储 */ + onSearchOrderNo(){ + if (!this.form.orderNo) { + this.msg.orderNo = '璇疯緭鍏ユ壒娆″彿锛�'; + return false; + } + this.msg.orderNo = ''; + this.getSearchInfo() + }, + /* 娓呴櫎鍗曟嵁缂栧彿 */ + onClearOrderNo(){ + this.resetOrderNo() + }, + /* 娓呴櫎鍗曟嵁缂栧彿淇℃伅 */ + resetOrderNo(){ + this.msg.orderNo = ''; + this.form.orderNo = '' + this.materialObj = {}; + this.form.entranceId = null + }, + getSelectOptions(callback){ + this.$api.get('PdaGetWarehouseEntrance',{Id:this.materialObj.id},{block:'fapaoIn',loading:false}).then(d=>{ + this.selectList.entrances = d.outEntranceListOutputList || [] + this.form.entranceId = d.defaultCode + callback && callback(true) + }).catch((errmsg)=>{ + callback && callback(false,errmsg) + }) + }, + getSearchInfo(callback,needloding=true){ + if (needloding) { + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + } + this.getInMaterilaInfo((f,msg1)=>{ + if (f){ + this.getSelectOptions((fx,msg2)=>{ + if (needloding) { + uni.hideLoading(); + if (!fx) { + $alert(msg2) + } + } + callback && callback(fx,msg2) + }) + } else { + if (needloding) { + uni.hideLoading(); + $alert(msg1) + } + callback && callback(false,msg1) + } + }) + }, + /* 鑾峰彇鍏ュ簱鐗╂枡淇℃伅 */ + getInMaterilaInfo(callback){ + let params = {Batch:this.form.orderNo} + this.$api.get('GetDetail',params,{block:'fapaoIn',loading:false,warn:false}).then((d)=>{ + this.materialObj = d + callback && callback(true) + }).catch((_errmsg)=>{ + this.resetOrderNo() + callback && callback(false,_errmsg) + }) + }, + inputCheck(){ + let res = true, msg = ''; + if (!this.materialObj.serialNo) { + msg = '璇疯緭鍏ユ祦姘村彿'; + res = false + } + + if (res && !regexValidate.positiveInteger(this.materialObj.serialNo)) { + msg = '璇疯緭鍏ュ彧鑳芥槸姝f暣鏁�'; + res = false + } + + if (res && Number(this.materialObj.serialNo)<=0) { + msg = '璇疯緭鍏ュ彧鑳芥槸姝f暣鏁�'; + res = false + } + + if (!res) { + $alert(msg) + } + + return res; + }, + /* 鍝嶅簲鎻愪氦鎸夐挳 */ + onSubmit(){ + if (!this.inputCheck()) return false; + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + this.dealConfirm((f,_errmsg1)=>{ + if (f) { + setTimeout(()=>{ + this.getSearchInfo((fx,_errmsg2)=>{ + uni.hideLoading(); + if (fx) { + $successInfo('鍏ュ簱鎴愬姛') + } else { + $alert(`鍏ュ簱鎴愬姛锛屼絾锛�${_errmsg2}`) + } + },false) + },5000) + } else { + uni.hideLoading(); + $alert(_errmsg1) + } + }) + }, + /* 鎻愪氦鎺ュ彛璋冪敤 */ + dealConfirm(callback){ + let params = { + batch:this.materialObj.batch, + serialNo:this.materialObj.serialNo, + entranceCode:this.form.entranceId + } + this.$api.post('FoamingPdaAutomaticWarehouse',params,{block:'fapaoIn',loading:false,warn:false}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + padding: 10rpx; + background-color: $uni-bg-color; +} +.forma-item{ + margin-bottom: 24rpx; +} +.material-block{ + background-color: $uni-bg-color; + padding: 8rpx 16rpx; + font-size: 1.1em; + margin-bottom: 24rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + .material-block-item{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + text-align: right; + padding-top: 11rpx; + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + .easy-input{ + font-size: inherit; + color: $uni-color-primary; + text-decoration: underline; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/fapiaoOutStore/index.vue b/PipeLineLems.PDA/pages/fapiaoOutStore/index.vue new file mode 100644 index 0000000..02ce033 --- /dev/null +++ b/PipeLineLems.PDA/pages/fapiaoOutStore/index.vue @@ -0,0 +1,328 @@ +<template> + <default-header-page-layout ref="page" title="鍑哄簱浣滀笟" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <view class="fapao-out-page-content"> + <view class="entrance-row"> + <easy-select-form-item + label="鍑哄簱鍙�" + v-model="form.OutputEntrance" + :msg="msg.OutputEntrance" + :msg-type="msgType.OutputEntrance" + :list="selectList.entrances" + value-field="code" + label-field="name" + :clearable="false" + @select="onEntranceSelect" + /> + </view> + <view class="info-action-box"> + <view v-if="hasInfo"> + <view class="info-block info-block-style1"> + <view class="style1-row"> + <view class="label">鍑哄簱鍗曠被鍒細</view> + <view class="content auto-wrap">{{orderObj.orderNo}}</view> + </view> + <view class="style1-row"> + <view class="label">鍑哄簱鍗曠紪鍙凤細</view> + <view class="content auto-wrap">{{orderObj.orderSubclass}}</view> + </view> + </view> + + <view class="info-block info-block-style2"> + <view class="list-head"> + <view class="list-row"> + <view class="list-cell list-cell1">灞�</view> + <view class="list-cell list-cell2">鐗╂枡缂栧彿</view> + <view class="list-cell list-cell3">灏哄</view> + </view> + </view> + <view class="list-body"> + <view class="list-row" v-for="(item,index) in list" :key="index"> + <view class="list-cell list-cell1">{{list.length-index}}</view> + <view class="list-cell list-cell2">{{item.materialNo}}</view> + <view class="list-cell list-cell3">{{item.long}}*{{item.wide}}*{{item.high}}</view> + </view> + </view> + </view> + + <scan-input-form-item + label="鏍囩鎵弿" + v-model="form.packCode" + :msg="msg.packCode" + :msg-type="msgType.packCode" + :has-search="false" + @clear="onClearPackCode" + /> + </view> + </view> + </view> + </view> + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame left-btn-frame"><u-button text="鍒� 鏂�" :disabled="!form.OutputEntrance" @click="onResetPage"></u-button></view> + <view class="btn-frame right-btn-frame"><u-button type="primary" :disabled="list.length<=0 || !form.packCode" text="鎻� 浜�" @click="onSubmit"></u-button></view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { $alert, $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + packCode:'', + OutputEntrance:'' +} +export default { + name:'fapaoOutStorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + pageBodyHeight:0, + step:1, + form:{...defaultForm}, + msg:{ + packCode:'', + OutputEntrance:'' + }, + msgType:{ + packCode:'error', + OutputEntrance:'error' + }, + orderObj:{}, + list:[], + hasInfo:false, + selectList:{ + entrances:[] + } + } + }, + computed:{ + confirmBtnDisabled(){ + let res = true; + if (this.materialObj.id && this.form.entranceId) { + res = false + } + return res; + } + }, + methods:{ + /* 娓呴櫎鏍囩 */ + onClearPackCode(){ + this.resetPackCode() + }, + resetPackCode(){ + this.form.packCode = '' + }, + /* 閲嶇疆鍑哄簱鏁版嵁 */ + resetOutInfo(){ + this.resetPackCode() + this.orderObj = {}; + this.list = [] + this.hasInfo = false + }, + onEntranceSelect(val){ + this.getOutInfo(val) + }, + onResetPage(){ + this.getOutInfo(null) + }, + getSelectOptions(){ + this.$api.get('listNonPage',{type:2},{block:'wentrance'}).then(d=>{ + this.selectList.entrances = d || [] + }).catch(()=>{}) + }, + /* 鑾峰彇鍑哄簱鏁版嵁 */ + getOutInfo(code,callback,needloding=true){ + let params = {} + if (code) { + params.OutputEntrance = code + } else { + params.OutputEntrance = this.form.OutputEntrance + } + if (needloding) { + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + } + this.$api.get('GetPackInfomation',params,{block:'fapaoOut',loading:false}).then((d)=>{ + this.orderObj = { + orderNo:d.orderNo, + orderSubclass:d.orderSubclass + } + this.list = d.groupDiskOutWarehouseList || [] + this.hasInfo = true + if (needloding) { + uni.hideLoading(); + } + callback && callback(true) + }).catch((_errmsg)=>{ + this.resetOutInfo() + if (needloding) { + uni.hideLoading(); + } + callback && callback(false,_errmsg) + }) + }, + /* 鍝嶅簲鎻愪氦鎸夐挳 */ + onSubmit(){ + this.dealConfirm((f)=>{ + if (f) { + $successInfo('鍑哄簱鎴愬姛') + this.resetOutInfo() + } + }) + }, + /* 鎻愪氦鎺ュ彛璋冪敤 */ + dealConfirm(callback){ + let params = { + materialNoList:this.list, + packCode:this.form.packCode + } + this.$api.post('Pack',params,{block:'fapaoOut'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + this.getSelectOptions() + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 0; + background-color: $uni-bg-color; + .btn-frame{ + width: 50%; + box-sizing: border-box; + } + .left-btn-frame{ + padding-left: 20rpx; + padding-right: 8rpx; + } + .right-btn-frame{ + padding-right: 20rpx; + padding-left: 8rpx; + } +} +.fapao-out-page-content{ + display: flex; + flex-direction: column; + height: 100%; + .entrance-row{ + flex-shrink: 0; + padding-bottom: 24rpx; + } + .info-action-box{ + flex-grow: 1; + height: 1px; + } +} +.info-block{ + background-color: $uni-bg-color; + box-shadow: 0px 2rpx 6rpx rgba(34, 25, 25, 0.2); + font-size: 1.1em; +} +.info-block-style1{ + padding: 8rpx 16rpx; + margin-bottom: 24rpx; + .style1-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 190rpx; + text-align: right; + padding-top: 11rpx; + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } +} +.info-block-style2{ + $border-style:2rpx dashed $uni-border-color; + margin-bottom: 24rpx; + .list-head{ + border-bottom: $border-style; + font-weight: bold; + } + .list-row{ + display: flex; + border-bottom: $border-style; + &:last-child{ + border-bottom: 0; + } + .list-cell{ + word-break:break-all; + word-wrap:break-word; + align-items: center; + justify-content: center; + display: flex; + box-sizing: border-box; + padding: 8rpx 6rpx; + } + .list-cell1{ + flex-shrink: 0; + width: 70rpx; + } + .list-cell2,.list-cell3{ + width: 1px; + border-left: $border-style; + } + .list-cell2{ + flex-grow: 2; + } + .list-cell3{ + flex-grow: 3; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/home/index.vue b/PipeLineLems.PDA/pages/home/index.vue new file mode 100644 index 0000000..f4a6c52 --- /dev/null +++ b/PipeLineLems.PDA/pages/home/index.vue @@ -0,0 +1,283 @@ +<template> + <full-page-layout :safety="false" background-color="#f0f8ff"> + <view class="home-bk-layer"></view> + <view class="home-float-layer"> + <header-page-layout :full="false" ref="page" title="棣栭〉" headerColor="#fff" @headerclick="onHeaderClick"> + <template v-slot:headerright><text class="iconfont icon-out-right"></text></template> + + <view class="home-page-containter" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <view class="user-view-box"> + <view class="user-card home-card"> + <view class="left-view"> + <view class="user-circle"><text class="iconfont icon-worker"></text></view> + </view> + <view class="right-view"> + <view class="text-row1 auto-wrap">{{userName}}</view> + <view class="text-row2 auto-wrap">{{userAcc}}</view> + </view> + </view> + </view> + <view class="blocks-view-box"> + <view class="home-card pic-block" v-if="picList.length>0"> + <u-swiper :list="picList" circular indicator indicatorMode="line" circular></u-swiper> + </view> + <view class="home-card item-block-card" v-for="(itema,indexa) in blocks" + :key="'item-block-card-'+indexa"> + <view class="title" v-if="itema.workShopName">{{itema.workShopName}}</view> + <view class="items-view"> + <view class="block-item" v-for="(itemb,indexb) in (itema.wmsPdaPowerOutput || [])" + :key="'block-item-'+indexa+'-'+indexb" @tap="onClickBlockItem(itemb.code)"> + <view class="block-item-icon" :style="{color:itemb.color}"> + <text class="iconfont" :class="[itemb.icon]"></text> + <view class="opacity-layer"></view> + </view> + <view class="block-item-text no-wrap">{{itemb.name}}</view> + </view> + </view> + </view> + </view> + </view> + + </header-page-layout> + </view> + </full-page-layout> +</template> + +<script> + import FullPageLayout from '@/components/FullPageLayout.vue' + import HeaderPageLayout from '@/components/HeaderPageLayout.vue' + let initInterVal = null; + export default { + name: 'homePage', + components: { + FullPageLayout, + HeaderPageLayout + }, + data() { + return { + pageBodyHeight: 0, + userName: '', + userAcc: '', + picList: [], + blocks: [] + } + }, + methods: { + onHeaderClick(type) { + if (type === 'right') { + uni.redirectTo({ + url: this.$config.path.login + }) + } + }, + onClickBlockItem(path) { + if (path) { + console.log(path) + uni.navigateTo({ + url: this.$config.path[path] + }); + } else { + uni.showToast({ + title: '寮�鍙戜腑...', + icon: 'none' + }) + } + }, + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + callback && callback() + } + }, 200) + }, + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onLoad() { + let _user = this.$store.getters['user/getUserInfo']; + this.userName = _user.nickName; + this.userAcc = _user.account; + //鏆傛椂娉ㄩ噴,涓嶇敤鑿滃崟鏉冮檺 銆怑ditby shaocx,2025-05-14銆� + //this.blocks = _user.wmsPdaPowerOutputs?[..._user.wmsPdaPowerOutputs]:[] + this.blocks = [{ + workShopName: '鍒嗘嫞', + wmsPdaPowerOutput:[ + // {icon:'icon-worker',code:'bind',name:'缁勭洏',color:'#1e90ff'}, + {icon:'icon-worker',code:'pick',name:'鍒嗘嫞',color:'#1e90ff'}, + // {icon:'icon-worker',code:'bindInForLocation',name:'鍒嗘嫞',color:'#1e90ff'}, + // {icon:'icon-worker',code:'bindWXJ',name:'鍒嗘嫞',color:'#1e90ff'}, + ] + }, + { + workShopName: '鍏朵粬鎿嶄綔', + wmsPdaPowerOutput:[{icon:'icon-worker',code:'PointHandling',name:'鐐瑰埌鐐�',color:'#1e90ff'}] + } + ] + }, + onReady() { + this.startInitInterval() + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style lang="scss" scoped> + .home-page { + height: 100%; + background-color: #f0f8ff; + position: relative; + } + + .home-bk-layer, + .home-float-layer { + position: absolute; + top: 0; + left: 0; + width: 100%; + } + + .home-bk-layer { + height: 240rpx; + border-radius: 0 0 80rpx 80rpx; + background-image: linear-gradient(to right, $color-paimary-middle, $color-paimary-darken); + z-index: 1; + } + + .home-float-layer { + height: 100%; + overflow: hidden; + z-index: 2; + } + + .home-page-containter { + display: flex; + flex-direction: column; + overflow: hidden; + + .user-view-box { + flex-shrink: 0; + padding-bottom: 30rpx; + } + + .blocks-view-box { + flex-grow: 1; + overflow: auto; + } + } + + .home-card { + background-color: #fff; + width: 95%; + border-radius: 10rpx; + margin: 0 auto; + box-sizing: border-box; + } + + .pic-block { + margin-bottom: 30rpx; + } + + .user-card { + display: flex; + padding: 30rpx 0; + + .left-view { + width: 180rpx; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + + .user-circle { + width: 120rpx; + height: 120rpx; + border-radius: 50%; + background-image: linear-gradient(to right, $color-paimary-middle, $color-paimary-darken); + display: flex; + align-items: center; + justify-content: center; + font-size: 90rpx; + color: #fff; + } + } + + .right-view { + flex-grow: 1; + padding-right: 10rpx; + display: flex; + justify-content: center; + flex-direction: column; + + .text-row1 { + font-size: 36rpx; + font-weight: bold; + line-height: 1.3; + } + + .text-row2 { + padding-top: 10rpx; + font-size: 28rpx; + line-height: 1.3; + } + } + } + + .item-block-card { + margin-bottom: 30rpx; + + &>.title { + padding: 20rpx 20rpx 0 20rpx; + font-weight: bold; + } + + .items-view { + display: flex; + flex-wrap: wrap; + padding-bottom: 12rpx; + } + + .block-item { + width: 25%; + box-sizing: border-box; + padding-top: 20rpx; + padding-bottom: 10rpx; + display: flex; + flex-direction: column; + align-items: center; + + .block-item-icon { + display: flex; + justify-content: center; + align-items: center; + font-size: 70rpx; + position: relative; + + .opacity-layer { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)); + } + } + + .block-item-text { + padding-top: 4rpx; + font-size: 30rpx; + text-align: center; + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/inAndOutBound/index.vue b/PipeLineLems.PDA/pages/inAndOutBound/index.vue new file mode 100644 index 0000000..3b89dd4 --- /dev/null +++ b/PipeLineLems.PDA/pages/inAndOutBound/index.vue @@ -0,0 +1,34 @@ +<template> + <default-header-page-layout ref="page" title="鍑哄簱"> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="纭� 瀹�" @click="onSubmit"></u-button></div> + </template> + </view> + </template> + + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + export default { + components: { + DefaultHeaderPageLayout + + }, + data() { + return { + + } + }, + methods: { + + } + } +</script> + +<style> + +</style> diff --git a/PipeLineLems.PDA/pages/innerTailBack/index.vue b/PipeLineLems.PDA/pages/innerTailBack/index.vue new file mode 100644 index 0000000..dc3f919 --- /dev/null +++ b/PipeLineLems.PDA/pages/innerTailBack/index.vue @@ -0,0 +1,148 @@ +<template> + <default-header-page-layout ref="page" title="杞﹂棿灏炬枡閫�搴�" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <step1 v-show="step===1" ref="step1" /> + <step2 v-show="step===2" ref="step2" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="step===1"> + <view class="btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="涓嬩竴姝�" @click="onGoNext"></u-button></view> + </template> + <template v-if="step===2"> + <view class="btn-frame"><u-button text="涓婁竴姝�" @click="onGoPrev"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鎻� 浜�" @click="onSubmit"></u-button></view> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import Step1 from './modules/Step1.vue' +import Step2 from './modules/Step2.vue' +let initInterVal = null; +export default { + name:'innerTailBackPage', + components:{DefaultHeaderPageLayout,ActionUserRow,Step1,Step2}, + data(){ + return { + pageBodyHeight:0, + step:1 + } + }, + watch:{ + step(newVal, oldVal){ + if (newVal !== oldVal) { + if (newVal) { + this.switchPage(); + } + } + } + }, + methods:{ + onGoNext(){ + this.step++ + }, + onGoPrev(){ + this.step-- + }, + reset(){ + this.$refs.step1.clearFullContainer() + this.step = 1 + }, + onReset(){ + this.reset() + }, + onSubmit(){ + this.dealConfirm((f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.reset() + } + }) + }, + /* 鎻愪氦鎺ュ彛璋冪敤 */ + dealConfirm(callback){ + let params = this.getSubmitParams() + this.$api.post('TailAutoWare',params,{block:'innerTail'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + getSubmitParams(type='confirm'){ + let res = this.$refs.step1.get() + if (type==='confirm') { + res = {...res,...this.$refs.step2.get()} + } + return res + }, + switchPage(){ + this.$nextTick(()=>{ + switch (this.step){ + case 2: + this.$refs.step2.show() + break; + default: + break; + } + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.switchPage() + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/innerTailBack/modules/Step1.vue b/PipeLineLems.PDA/pages/innerTailBack/modules/Step1.vue new file mode 100644 index 0000000..2cf9e67 --- /dev/null +++ b/PipeLineLems.PDA/pages/innerTailBack/modules/Step1.vue @@ -0,0 +1,204 @@ +<template> + <view class="inner-tail-back-step1-page-content"> + <view class="top-view"> + <scan-input-form-item + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <view class="list-item-show"> + <view class="item-left"> + <uni-badge :text="list.length-index" type="primary" size="normal" /> + </view> + <view class="item-main"> + <view class="item-row"> + <view class="label">鐗╂枡缂栧彿</view> + <view class="content">{{item.materialno}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О</view> + <view class="content">{{item.materialname}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺</text></view> + <view class="content"><input class="enable-input" v-model.number="item.bindquantity" type="number"/></view> + </view> + </view> + </view> + </view> + + </view> + <!-- ########### --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { parseDic } from '@/static/js/utils/index.js' +const defaultForm = { + container:'' +} +export default { + name:'innerTailBackStep1PageContent', + components:{ScanInputFormItem}, + data() { + return { + form: {...defaultForm}, + msg:{ + container:'' + }, + msgType:{ + container:'error' + }, + list:[], + container:null + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainerInfo() + }, + onClearContainer(){ + this.clearFullContainer() + }, + clearFullContainer(){ + this.clearContainer() + this.clearBackContainer() + }, + clearContainer(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + getContainerInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('TailGetContainer',params,{block:'innerTail',warn:false,fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage(_errmsg) + callback && callback(false) + }) + }, + get(){ + return { + containerCode:this.container?this.container.containerCode:null, + wmsMaterials:this.list + } + } + } +} +</script> + +<style scoped lang="scss"> +.inner-tail-back-step1-page-content { + height: 100%; + display: flex; + flex-direction: column; + &>.top-view{ + flex-shrink: 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + font-size: 1.1em; + display: flex; + &>.item-left{ + flex-shrink: 0; + padding-left: 16rpx; + padding-top: 12rpx; + padding-right: 12rpx; + } + &>.item-main{ + flex-grow: 1; + width: 1px; + padding-right: 16rpx; + } + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/innerTailBack/modules/Step2.vue b/PipeLineLems.PDA/pages/innerTailBack/modules/Step2.vue new file mode 100644 index 0000000..1a0f803 --- /dev/null +++ b/PipeLineLems.PDA/pages/innerTailBack/modules/Step2.vue @@ -0,0 +1,102 @@ +<template> + <view class="inner-tail-back-step2-page-content"> + <easy-select-form-item + class="forma-item" + label="璧峰浣嶇疆" + v-model="form.stationCode" + :list="selectOptions.startPlaces" + value-field="stationCode" + label-field="stationName" + /> + + <easy-select-form-item + class="forma-item" + label="鐩爣搴�" + v-model="form.areaId" + :list="selectOptions.endAreas" + value-field="areaId" + label-field="areaName" + /> + </view> +</template> + +<script> +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { $alert } from '@/static/js/utils/index.js' +const defaultForm = { + stationCode:'', + areaId:'' +} +export default { + name:'innerTailBackStep2PageContent', + components:{EasySelectFormItem}, + data(){ + return { + form: {...defaultForm}, + selectOptions:{ + endAreas:[], + startPlaces:[] + }, + loaded:false + } + }, + methods:{ + show(){ + this.getSelectsOptions((f)=>{ + if (f) { + this.resetForm() + } + }) + }, + resetForm(){ + if (this.selectOptions.startPlaces.length===1) { + this.form.stationCode = this.selectOptions.startPlaces[0].stationCode + } else { + this.form.stationCode = '' + } + if (this.selectOptions.endAreas.length===1) { + this.form.areaId = this.selectOptions.endAreas[0].areaId + } else { + this.form.areaId = '' + } + }, + getSelectsOptions(callback){ + if (this.loaded) { + callback && callback(true) + } else { + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + Promise.all([ + this.$api.get('TailGetStarPlaceList',{},{block:'innerTail',warn:false,loading:false}), + this.$api.get('TailGetAreaList',{},{block:'innerTail',warn:false,loading:false}) + ]).then(res=>{ + this.selectOptions.startPlaces = res[0] || [] + this.selectOptions.endAreas = res[1] || [] + this.loaded = true + uni.hideLoading(); + callback && callback(true) + }).catch(ex=>{ + uni.hideLoading(); + $alert(ex) + callback && callback(false) + }) + } + }, + get(){ + return this.form + } + } +} +</script> + +<style scoped lang="scss"> +.inner-tail-back-step2-page-content{ + height: 100%; + overflow: auto; + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/loadingDelivery/index.vue b/PipeLineLems.PDA/pages/loadingDelivery/index.vue new file mode 100644 index 0000000..665f8c3 --- /dev/null +++ b/PipeLineLems.PDA/pages/loadingDelivery/index.vue @@ -0,0 +1,320 @@ +<template> + <default-header-page-layout ref="page" title="涓婃枡閰嶉��"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start @search="onSearchContainter"--> + <scan-input-form-item class="forma-item" label="澶囨枡宸ヤ綅" v-model="form.startPlace" :hasSearch="false" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" + :hasScan="false" :hasSearch="false" @click.native="visible=true" class="forma-item" label="涓婃枡鏈哄伐浣�" + v-model="form.endPlace" /> + <EasyPicker :visible.sync="visible" :list="endPlaceList" labelField="label" valueField="code" + @select="getEndPlaceVal" /> + + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button text="閲嶇疆" @click="reset" ></u-button></div> + <div class="btn-frame"><u-button type="primary" :text="actionText" @click="actionHandle" + :disabled="abled"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import UViewFormSelectPicker from '@/components/UViewFormSelectPicker.vue' + import materialList from './modules/materialList.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getForContainerCode, + getForMaterialNo, + bindMaterialContainer, + addInBound, + addInVirtualPlace, + addAGVTask + } from '@/api/bind.js' + + import { + getLoadingDeliveryEnd, + loadingDeliveryCreate, + loadingDeliveryContinueOne, + loadingDeliveryContinueTWo + } from '@/api/loadingDelivery.js' + let initInterVal = null; + export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + form: { + startPlace: '', + endPlace: '' + }, + paramsOne:{}, + paramsTwo:{}, + endPlaceList: [], + visible: false, + actionType: 1, // 1:鍛煎彨AGV 2锛氳鏂欏畬鎴� 3锛氬彇鏂欏畬鎴� + } + }, + computed: { + actionText() { + switch (this.actionType) { + case 1: + return '鍛煎彨AGV' + case 2: + return '瑁呮枡瀹屾垚' + case 3: + return '鍙栨枡瀹屾垚' + } + }, + abled() { + let { + startPlace, + endPlace + } = this.form + let { + taskNo + } =this.paramsOne + if(this.actionType==1){ + return !Boolean(endPlace)||!Boolean(startPlace); + }else{ + return !Boolean(taskNo); + } + + } + }, + methods: { + + // 鑾峰彇涓婃枡鏈哄伐浣嶅垪琛� + async gerEndPlaceList() { + try { + let { + result + } = await getLoadingDeliveryEnd(); + let endPlaceList = [] + result.forEach(item => { + endPlaceList.push({ + code: item, + label: item + }) + }) + this.endPlaceList = endPlaceList; + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + // 涓婃枡鏈哄伐浣嶉�夋嫨鍣ㄨ繑鍥炲�� + getEndPlaceVal(val, valObj, index) { + this.form.endPlace = valObj.code + }, + + // 閲嶇疆 + reset(){ + this.form={ + startPlace: '', + endPlace: '' + } + + this.actionType=1 + }, + + // 鎿嶄綔鎸夐挳 + async actionHandle(){ + if(this.actionType==1) + { + // 鍒涘缓AGV浠诲姟 + try{ + let {result}=await loadingDeliveryCreate(this.form) + this.paramsOne=result + this.$modal('鍛煎彨AGV鎴愬姛') + this.actionType=2 + }catch(e){ + //TODO handle the exception + console.log(e); + } + }else if(this.actionType==2){ + if(!this.paramsOne.taskNo) this.$modal('浠诲姟鍙蜂笉鑳戒负绌猴紒') + try{ + await loadingDeliveryContinueOne(this.paramsOne) + this.$modal('瑁呮枡瀹屾垚') + this.actionType=3 + }catch(e){ + //TODO handle the exception + console.log(e); + } + }else if(this.actionType==3){ + if(!this.paramsOne.taskNo) this.$modal('浠诲姟鍙蜂笉鑳戒负绌猴紒') + try{ + await loadingDeliveryContinueTwo(this.paramsOne) + this.$modal('鍙栨枡瀹屾垚') + this.reset() + }catch(e){ + //TODO handle the exception + console.log(e); + } + } + }, + + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.gerEndPlaceList() + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/loadingDelivery/modules/materialList.vue b/PipeLineLems.PDA/pages/loadingDelivery/modules/materialList.vue new file mode 100644 index 0000000..607736d --- /dev/null +++ b/PipeLineLems.PDA/pages/loadingDelivery/modules/materialList.vue @@ -0,0 +1,161 @@ +<template> + <u-swipe-action v-if="materialData.length>0"> + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.materialId"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮侊細</view> + <view class="content auto-wrap">{{item.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟嗭細</view> + <view class="content auto-wrap">{{item.supplierCode}}</view> + </view> + + <view class="item-row"> + <view class="label">鐗╂枡绫诲瀷锛�</view> +<!-- 鏋氫妇 --> + <view class="content auto-wrap">{{parseDic($store,'material_type',item.materialType)}}</view> + + </view> + + <!-- <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialSpec}}</view> + </view> --> + <view class="item-row"> + <view class="label">鏈哄瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/login/index.vue b/PipeLineLems.PDA/pages/login/index.vue new file mode 100644 index 0000000..c37cd85 --- /dev/null +++ b/PipeLineLems.PDA/pages/login/index.vue @@ -0,0 +1,263 @@ +<template> + <full-page-layout :safety="false"> + <view class="login-page"> + <view class="login-content"> + <view class="content-row1"> + <image class="logo-img" mode="aspectFit" src="/static/img/logo.png"></image> + </view> + <view class="content-row2">绠″瓙绾�</view> + <view class="content-row3">-LMESDemo-</view> + <view class="form-view"> + <u-form ref="form" :model="form" :rules="rules" :labelWidth="0"> + <u-form-item prop="account"> + <u-input v-model.trim="form.account" prefix-icon="account" clearable> + <template v-slot:suffix v-if="userVisited.length>1"> + <view @tap.stop="onOpenUserPicker"> + <u-icon name="arrow-down"></u-icon> + </view> + </template> + </u-input> + </u-form-item> + <u-form-item prop="password"> + <input type="password" style="display:none;" /> + <u-input v-model.trim="form.password" :password="pwdVisible?false:true" prefix-icon="lock" clearable @confirm="onLogin" :key="pwdKey"> + <template v-slot:suffix> + <view @tap.stop="onChangePwdVisible"> + <u-icon :name="pwdVisible?'eye-fill':'eye-off'"></u-icon> + </view> + </template> + </u-input> + </u-form-item> + </u-form> + <view class="login-btn-view"> + <u-button type="primary" text="鐧� 褰�" @click="onLogin"></u-button> + </view> + <!-- form-view end --> + </view> + </view> + <view class="login-footer" v-if="version">搴旂敤鐗堟湰鍙� {{version}}</view> + </view> + + <view class="setting-target" :style="{top:safetyTop+'px'}" @tap.stop="onOpenSettingPicker"> + <u-icon name="setting-fill"></u-icon> + </view> + + <easy-picker :visible.sync="userPickerVisible" :list="userVisited" value-field="account" label-field="account" @select="onChangeInputUser"></easy-picker> + <easy-picker :visible.sync="settingPickerVisible" :list="settingList" @select="onGoSettingPage"></easy-picker> + </full-page-layout> +</template> + +<script> +import FullPageLayout from '@/components/FullPageLayout.vue' +import EasyPicker from '@/components/EasyPicker.vue' +import { downloadApk } from '@/static/js/utils/index.js' +export default { + name:'loginPage', + components:{FullPageLayout,EasyPicker}, + data(){ + return { + form:{ + account:'', + password:'' + }, + rules:{ + account:{ + trigger:['change'], + required: true, + message:'璇疯緭鍏ヨ处鍙凤紒' + }, + password:{ + trigger:['change'], + required: true, + message:"璇疯緭鍏ュ瘑鐮侊紒" + } + }, + version:'', + userVisited:[], + userPickerVisible:false, + settingList:['钃濈墮杩炴帴','鎺ュ彛鍩熷悕'], + settingPickerVisible:false, + pwdVisible:false, + safetyTop:0, + pwdKey:0 + } + }, + methods:{ + onChangePwdVisible(){ + this.pwdVisible = !this.pwdVisible + this.pwdKey = new Date().getTime() + }, + onLogin(){ + //鏆傛椂璺宠繃楠岃瘉 銆怑ditby shaocx,2025-05-14銆� + uni.navigateTo({url:this.$config.path.home}); + /* + this.$refs.form.validate().then(res => { + uni.showLoading({ title: 'Loading...', mask:true }); + let account = this.$store.getters['user/getAccount']; + if (account && account===this.form.account){ + this.getLoginInfo(f=>{ + if (f) { + uni.navigateTo({url:this.$config.path.home}) + } + }) + } else { + this.doLogin((f1)=>{ + if (f1) { + this.getLoginInfo(f2=>{ + if (f2) { + uni.navigateTo({url:this.$config.path.home}) + } + }) + } + }) + } + }).catch(errors => { + + }) + //*/ + }, + doLogin(callback){ + let _params = {...this.form} + this.$api.post('sysAuth/login',_params,{needToken:false,loading:false}).then((d)=>{ + this.$store.commit('user/setAccount',this.form.account) + //console.log('login sercer token',d) + this.$store.commit('user/setToken',d) + this.$store.commit('user/addVisited',{...this.form}) + callback && callback(true) + }).catch(()=>{ + uni.hideLoading() + callback && callback(false) + }) + }, + getLoginInfo(callback){ + Promise.all([ + this.$api.get('sysMenu/getPdaLoginUser',{},{loading:false}), + this.$api.get('sysDictType/allList',{},{loading:false}), + // this.$api.get('tree',{},{block:'sysDic',loading:false}) + ]).then((response)=>{ + let _user = {...response[0]} + //console.log('_user',_user) + delete _user.loginEmpInfo; + delete _user.apps; + delete _user.menus; + this.$store.commit('user/setUserInfo',_user) + this.$store.commit('system/setEnum',response[1]) + // this.$store.commit('system/setEnum',response[1]) + //console.log(response[1]) + uni.hideLoading() + callback && callback(true) + }).catch(()=>{ + uni.hideLoading() + callback && callback(false) + }) + }, + onOpenUserPicker(){ + this.userPickerVisible = true + }, + onChangeInputUser(val,obj){ + this.form.account = obj.account + this.form.password = obj.password + }, + onOpenSettingPicker(){ + this.settingPickerVisible = true + }, + onGoSettingPage(val){ + if (val==='钃濈墮杩炴帴') { + uni.navigateTo({url:this.$config.path.bluetooth}) + } else if (val==='鎺ュ彛鍩熷悕') { + uni.navigateTo({url:this.$config.path.host}) + } else if (val==='鏂扮増涓嬭浇') { + downloadApk(this.$config) + } + }, + getVersion(){ + this.version = this.$store.getters['system/getVersion'] + } + }, + onLoad(){ + this.getVersion() + this.safetyTop = this.$store.getters['system/getSafety'].top; + if (process.env.NODE_ENV!=='development') { + this.settingList.push('鏂扮増涓嬭浇') + } + }, + onReady() { + //杩涘叆鐧诲綍椤甸潰灏辨竻妤氱櫥褰曚俊鎭� + this.$store.commit('user/clear') + //鑾峰彇涔嬪墠鐨勭敤鎴蜂俊鎭� + this.userVisited = this.$store.getters['user/getVisited']; + if (this.userVisited.length===1) { + this.form.account = this.userVisited[0].account + this.form.password = this.userVisited[0].password + } + } +} +</script> + +<style lang="scss" scoped> +.login-page{ + height: 100%; + display: flex; + flex-direction: column; + .login-content{ + flex-grow: 1; + overflow: auto; + position: relative; + .content-row1{ + height: 400rpx; + display: flex; + justify-content: center; + align-items: flex-end; + .logo-img{ + height: 70%; + width: 50%; + } + } + .content-row2,.content-row3{ + text-align: center; + } + .content-row2{ + font-size: 56rpx; + font-weight: bold; + } + .content-row3{ + font-size: 40rpx; + padding-top: 20rpx; + color: $uni-text-color-grey; + } + .form-view{ + padding: 50rpx 40rpx 0 40rpx; + .login-form-item{ + margin-bottom: 32rpx; + } + .login-btn-view{ + padding-top: 20rpx; + } + } + } + .login-footer{ + flex-shrink: 0; + padding: 10rpx 10rpx 4rpx 10rpx; + font-size: 24rpx; + color: $uni-text-color-grey; + text-align: right; + } + .more-user-icon-btn{ + padding: 0 10rpx; + font-size: 1.2em; + } +} +.setting-target{ + $targetSize:80rpx; + position: absolute; + top: 0; + right: 0; + width: $targetSize; + height: $targetSize; + display: flex; + align-items: center; + justify-content: center; + z-index: 5; + font-size: 40rpx; +} +</style> diff --git a/PipeLineLems.PDA/pages/manual/out.vue b/PipeLineLems.PDA/pages/manual/out.vue new file mode 100644 index 0000000..3e85080 --- /dev/null +++ b/PipeLineLems.PDA/pages/manual/out.vue @@ -0,0 +1,307 @@ +<template> + <default-header-page-layout ref="page" title="浜哄伐鍑哄簱" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content manual-out-page"> + <!-- page start --> + <view class="top-search"> + <scan-input-form-item + label="鎵樼洏缂栫爜" + v-model="form.containter" + :msg="msg.containter" + :msg-type="msgType.containter" + @search="onSearch" + @clear="onClearContainer" + /> + </view> + <template v-if="list.length>0"> + <view class="materials-header"> + <view class="header-row"> + <view class="line"></view> + <view class="title"> + <text class="text">鐗╂枡璇︽儏</text> + </view> + </view> + </view> + <view class="materials-block"> + <view class="materials-block-padding"> + <view class="materials-box"> + <view class="material-item-group"> + <view class="material-list-item" v-for="(item,index) in list" :key="'material-list-item-'+index"> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡缂栧彿锛�</view> + <view class="content auto-wrap">{{item.materialno}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialname}}</view> + </view> + <view class="item-row"> + <view class="label">鎵规鍙凤細</view> + <view class="content auto-wrap">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialspec}}</view> + </view> + <view class="item-row"> + <view class="label">瀵嗗害锛�</view> + <view class="content auto-wrap">{{item.materialDensity}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.bindquantity}}</view> + </view> + </view> + </view> + </view> + </view> + </view> + </template> + <!-- page end --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <div class="btn-frame left-btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></div> + <div class="btn-frame right-btn-frame"><u-button type="primary" text="纭� 瀹�" :disabled="(!containter || containter.containerstatus!==3)" @click="onConfirm"></u-button></div> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { parseDic, $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + containter:'' +} +export default { + name:'manualOutPage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem}, + data(){ + return { + pageBodyHeight:0, + form:{...defaultForm}, + msg:{ + containter:'' + }, + msgType:{ + containter:'error' + }, + containter:null, + list:[] + } + }, + methods:{ + /* 鎵樼洏缂栫爜鎼滅储 */ + onSearch(){ + if (!this.form.containter) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + this.msg.containter = ''; + this.getData() + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainer(){ + this.resetContainer() + }, + /* 閲嶇疆鎵樼洏缂栫爜 */ + resetContainer(){ + this.form.containter = '' + this.msg.containter = '' + this.containter = null + this.list = [] + }, + /* 鑾峰彇鎵樼洏淇℃伅 */ + getData(){ + let params = {Containercode:this.form.containter} + this.$api.get('PDAGetContainer',params,{block:'exware',fullRes:true}).then((d)=>{ + if (d.data) { + let _temp1 = parseDic(this.$store,'container_type',d.data.wmsContainer.containertype) + let _temp2 = parseDic(this.$store,'container_status',d.data.wmsContainer.containerstatus) + this.msgType.containter = 'info' + this.msg.containter = `鏉愯川锛�${_temp1}锛岀姸鎬侊細${_temp2}`; + this.containter = d.data.wmsContainer + if (d.data.wmsMaterials) { + this.list = d.data.wmsMaterials + } else { + this.list = [] + } + } else { + this.msgType.containter = 'error' + this.msg.containter = d.message || '鏌ユ棤淇℃伅锛�'; + this.containter = null; + this.list = [] + } + }).catch(()=>{ + this.containter = null; + }) + }, + /* 鍝嶅簲閲嶇疆鎸夐挳 */ + onReset(){ + this.resetContainer() + }, + /* 鍝嶅簲纭鎸夐挳 */ + onConfirm(){ + this.dealSubmit((f)=>{ + if (f) { + this.resetContainer() + $successInfo('鍑哄簱鎴愬姛锛�'); + } + }) + }, + /* 鍑哄簱鎺ュ彛璋冪敤 */ + dealSubmit(callback){ + let params = { + containercode:this.containter.containercode + } + this.$api.post('PDAManualWare',params,{block:'exware'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.manual-out-page{ + display: flex; + flex-direction: column; + .materials-header,.top-search{ + flex-shrink: 0; + } + .materials-header{ + padding: 12rpx 16rpx 0 16rpx; + .header-row{ + position: relative; + top:0; + left: 0; + width: 100%; + height: 50rpx; + display: flex; + align-items: center; + background-color: $uni-bg-color; + &>.line{ + width: 100%; + height: 2rpx; + background-color: $uni-border-color; + } + &>.title{ + position: absolute; + top:0; + left: 0; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 1; + &>.text{ + font-size: 30rpx; + background-color: $uni-bg-color; + color: $uni-border-color; + padding: 4rpx 12rpx; + } + } + } + } + .materials-block{ + flex-grow: 1; + overflow: auto; + .materials-block-padding{ + padding: 0 16rpx; + .materials-box{ + background-color: $uni-bg-color; + border-radius: 6rpx; + box-sizing: border-box; + position: relative; + } + } + } +} +.bottom-btns-row{ + display: flex; + padding: 10rpx 0; + background-color: #fff; + .btn-frame{ + width: 50%; + box-sizing: border-box; + } + .left-btn-frame{ + padding-left: 20rpx; + padding-right: 8rpx; + } + .right-btn-frame{ + padding-right: 20rpx; + padding-left: 8rpx; + } +} +.material-item-group{ + padding: 0 4rpx; + .material-list-item{ + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + &:last-child{ + border-bottom: 0; + } + .item-row{ + display: flex; + &>.label{ + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + &>.content{ + flex-grow: 1; + color: $u-content-color; + } + } + .badge-box{ + position: absolute; + top:8rpx; + left: 8rpx; + z-index: 1; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/materialStorage/index.vue b/PipeLineLems.PDA/pages/materialStorage/index.vue new file mode 100644 index 0000000..df4c8b1 --- /dev/null +++ b/PipeLineLems.PDA/pages/materialStorage/index.vue @@ -0,0 +1,317 @@ +<template> + <default-header-page-layout ref="page" title="鐗╂枡鍏ュ簱"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start @search="onSearchContainter"--> + <view v-if="!addMaterialVisible"> + <scan-input-form-item class="forma-item" label="鍌ㄤ綅鐮�" v-model="form.startPlace" :hasSearch="false" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" label="浠诲姟绫诲瀷" v-model="form.endPlace" /> + <EasyPicker :visible.sync="visible" :list="taskTypeList" labelField="label" valueField="code" + @select="getEndPlaceVal" /> + </view> + <addMaterial v-if="addMaterialVisible" ref="addMaterial" :materialData="materialData" + @delMaterialData="delMaterialData" /> + </view> + + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame" v-if="!addMaterialVisible"><u-button text="娣诲姞鐗╂枡" + @click="addMaterial"></u-button></div> + <div class="btn-frame" v-if="addMaterialVisible"><u-button text="杩斿洖" @click="back"></u-button></div> + <div class="btn-frame"><u-button :disabled="abled" type="primary" text="鎻愪氦" @click="actionHandle"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import UViewFormSelectPicker from '@/components/UViewFormSelectPicker.vue' + import addMaterial from './modules/addMaterial.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + + import { + getLoadingDeliveryEnd, + loadingDeliveryCreate, + loadingDeliveryContinueOne, + loadingDeliveryContinueTWo + } from '@/api/loadingDelivery.js' + let initInterVal = null; + export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + addMaterial, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + form: { + startPlace: '', + endPlace: '' + }, + paramsOne: {}, + paramsTwo: {}, + taskTypeList: [{ + code: 1, + label: '浜哄伐' + }, + { + code: 2, + label: 'AGV' + }, + + ], + materialData: [{ + materialId: 20241206, + materialName: '鐗╂枡鍚嶇О2', + materialNo: '002', + }], + visible: false, + addMaterialVisible: false + } + }, + computed: { + abled() { + let { + startPlace, + endPlace + } = this.form + return !Boolean(endPlace) || !Boolean(startPlace)||this.materialData.length<=0; + } + }, + methods: { + + // 鑾峰彇涓婃枡鏈哄伐浣嶅垪琛� + async gerEndPlaceList() { + try { + let { + result + } = await getLoadingDeliveryEnd(); + let endPlaceList = [] + result.forEach(item => { + endPlaceList.push({ + code: item, + label: item + }) + }) + // this.taskTypeList = endPlaceList; + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + // 涓婃枡鏈哄伐浣嶉�夋嫨鍣ㄨ繑鍥炲�� + getEndPlaceVal(val, valObj, index) { + this.form.endPlace = valObj.code + }, + + // 娣诲姞鐗╂枡 + addMaterial() { + this.addMaterialVisible = true + }, + + //鍒犻櫎鐗╂枡 + delMaterialData(materialId) { + this.materialData = this.materialData.filter(item => item.materialId != materialId) + }, + + // 杩斿洖鎸夐挳 + back() { + this.addMaterialVisible = false + this.materialData = this.$refs.addMaterial.get() + console.log(this.materialData, 'this.materialData'); + }, + + // 鎿嶄綔鎸夐挳 + async actionHandle() { + if (this.actionType == 1) { + // 鍒涘缓AGV浠诲姟 + try { + let { + result + } = await loadingDeliveryCreate(this.form) + this.paramsOne = result + this.$modal('鍛煎彨AGV鎴愬姛') + this.actionType = 2 + } catch (e) { + //TODO handle the exception + console.log(e); + } + } else if (this.actionType == 2) { + if (!this.paramsOne.taskNo) this.$modal('浠诲姟鍙蜂笉鑳戒负绌猴紒') + try { + await loadingDeliveryContinueOne(this.paramsOne) + this.$modal('瑁呮枡瀹屾垚') + this.actionType = 3 + } catch (e) { + //TODO handle the exception + console.log(e); + } + } else if (this.actionType == 3) { + if (!this.paramsOne.taskNo) this.$modal('浠诲姟鍙蜂笉鑳戒负绌猴紒') + try { + await loadingDeliveryContinueTwo(this.paramsOne) + this.$modal('鍙栨枡瀹屾垚') + this.reset() + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + }, + + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.gerEndPlaceList() + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/materialStorage/modules/addMaterial.vue b/PipeLineLems.PDA/pages/materialStorage/modules/addMaterial.vue new file mode 100644 index 0000000..29cbe26 --- /dev/null +++ b/PipeLineLems.PDA/pages/materialStorage/modules/addMaterial.vue @@ -0,0 +1,80 @@ +<template> + <view> + <!-- @clear="onClearMaterial" --> + <scan-input-form-item class="forma-item" label="鐗╂枡浜岀淮鐮�" v-model="materialNo" @search="onSearchMaterial" /> + <materialList v-on="$listeners" ref="materialList" :materialData="materialData" /> + </view> +</template> + +<script> + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import materialList from './materialList.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + export default { + components: { + ScanInputFormItem, + materialList + }, + props:{ + materialData:{ + type:Array, + default:()=>[] + } + }, + data() { + return { + materialNo: '' + } + }, + methods: { + /* 鐗╂枡缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.materialNo) { + $alert('璇疯緭鍏ョ墿鏂欑紪鍙凤紒'); + return false; + } + try { + // let { + // result + // } = await getForMaterialNo({ + // code: this.materialNo + // }) + let result={ + materialId:20241205, + materialName:'鐗╂枡鍚嶇О1', + materialNo:'001', + + } + const isExist = this.materialData.some(item => item.materialId == result.materialId) + if (!isExist) { + this.materialData.push(result) + } else { + $alert(`鐗╂枡鍞竴鐮佸凡瀛樺湪,璇峰垹闄ゅ悗鍐嶈緭鍏ワ紒`); + } + this.materialNo='' + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + + + // 杩斿洖鏁版嵁 + get(){ + return this.materialData + } + } + } +</script> + +<style lang="scss" scoped> + .forma-item { + margin-bottom: 24rpx; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/materialStorage/modules/materialList.vue b/PipeLineLems.PDA/pages/materialStorage/modules/materialList.vue new file mode 100644 index 0000000..9dad910 --- /dev/null +++ b/PipeLineLems.PDA/pages/materialStorage/modules/materialList.vue @@ -0,0 +1,161 @@ +<template> + <u-swipe-action v-if="materialData.length>0"> + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.materialId"> + <view class="material-item-group"> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮侊細</view> + <view class="content auto-wrap">{{item.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟嗭細</view> + <view class="content auto-wrap">{{item.supplierCode}}</view> + </view> + + <view class="item-row"> + <view class="label">鐗╂枡绫诲瀷锛�</view> +<!-- 鏋氫妇 --> + <view class="content auto-wrap">{{parseDic($store,'material_type',item.materialType)}}</view> + + </view> + + <!-- <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialSpec}}</view> + </view> --> + <view class="item-row"> + <view class="label">鏈哄瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/notices/index.vue b/PipeLineLems.PDA/pages/notices/index.vue new file mode 100644 index 0000000..ed36c5c --- /dev/null +++ b/PipeLineLems.PDA/pages/notices/index.vue @@ -0,0 +1,195 @@ +<template> + <default-header-page-layout ref="page" title="璁惧鎶ヨ" > + <view class="page-frame notices-page-container" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <view class="container-top-tabs"> + <view v-for="(item,index) in tabs" :key="'tab-item-'+index" class="tab-item" :class="[item.value===activeTab?'active':'']" @tap.stop="onChangeActiveTab(item.value)">{{item.label}}</view> + </view> + <scroll-view class="notices-list" :scroll-y="true"> + <view class="notice-list-item"> + <view class="item-left"> + <view class="circle-no">1</view> + <u-tag text="鍏抽棴" plain size="mini" type="info" /> + </view> + <view class="item-context"> + <view class="item-row"> + <view class="label">鎶ヨ璁惧锛�</view> + <view class="content auto-wrap">杩炴潌琛绮炬暣涓撴満</view> + </view> + <view class="item-row"> + <view class="label">鎶ヨ鏃堕棿锛�</view> + <view class="content auto-wrap">2022.3.5 12:00:52</view> + </view> + <view class="item-row"> + <view class="label">閿欒浠g爜锛�</view> + <view class="content auto-wrap">xxx001</view> + </view> + <view class="item-row"> + <view class="label">閿欒淇℃伅锛�</view> + <view class="content auto-wrap">鏄傚ぇ鍝ュぇ浣块鐨勫鍚庤禌路鍝堝搱娌欏棽蹇藉湴鍟婄殗甯濆拰鏂规硶杩斿洖绉戞妧鍟婃槸瑕卽ahfihfaiuh鑲¤偂浠借鍒�</view> + </view> + </view> + </view> + + <view class="notice-list-item"> + <view class="item-left"> + <view class="circle-no">99</view> + <u-tag text="鎸傝捣" plain size="mini" type="error" /> + </view> + <view class="item-context"> + <view class="item-row"> + <view class="label">鎶ヨ璁惧锛�</view> + <view class="content auto-wrap">杩炴潌琛绮炬暣涓撴満</view> + </view> + <view class="item-row"> + <view class="label">鎶ヨ鏃堕棿锛�</view> + <view class="content auto-wrap">2022.3.5 12:00:52</view> + </view> + <view class="item-row"> + <view class="label">閿欒浠g爜锛�</view> + <view class="content auto-wrap">xxx003</view> + </view> + <view class="item-row"> + <view class="label">閿欒淇℃伅锛�</view> + <view class="content auto-wrap">鏄傚ぇ鍝ュぇ浣块鐨勫鍚庤禌路鍝堝搱娌欏棽蹇藉湴鍟婄殗甯濆拰鏂规硶杩斿洖绉戞妧鍟婃槸瑕卽ahfihfaiuh鑲¤偂浠借鍒�</view> + </view> + </view> + </view> + + <view class="no-more-text-row">涓嶈兘鏇村浜�</view> + </scroll-view> + </view> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +let initInterVal = null; +export default { + name:'noticesPage', + components:{DefaultHeaderPageLayout}, + data(){ + return { + pageBodyHeight:0, + tabs:[ + {value:0,label:'鍏ㄩ儴'}, + {value:1,label:'鎸傝捣'}, + {value:2,label:'鍏抽棴'} + ], + activeTab:0, + maxListNumber:99 + } + }, + methods:{ + onChangeActiveTab(val){ + this.activeTab = val + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.notices-page-container{ + $topSize:80rpx; + box-sizing: border-box; + padding-top: $topSize; + .container-top-tabs{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: $topSize; + box-sizing: border-box; + background-color: $uni-bg-color; + border-bottom: 2rpx solid $uni-border-color; + display: flex; + .tab-item{ + width: 33.3333%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + font-weight: bold; + font-size: 36rpx; + &.active{ + color: $u-primary; + } + } + } + .notices-list{ + height: 100%; + .notice-list-item{ + border-bottom: 2rpx solid $uni-border-color; + margin-bottom: 10rpx; + background-color: $uni-bg-color; + box-shadow: 0px 2rpx 6rpx rgba(34, 25, 25, 0.2); + display: flex; + &:last-child{ + border-bottom: 0; + } + } + .item-left{ + width: 100rpx; + flex-shrink: 0; + display: flex; + flex-direction: column; + align-items: center; + padding-top: 10rpx; + .circle-no{ + $circleNoSize:50rpx; + min-width: $circleNoSize; + height: $circleNoSize; + background-color: $u-primary; + color: $uni-bg-color; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 10rpx; + } + } + .item-context{ + flex-grow: 1; + .item-row{ + display: flex; + &>.label{ + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + &>.content{ + flex-grow: 1; + color: $u-content-color; + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/oneTouchUnBind/index.vue b/PipeLineLems.PDA/pages/oneTouchUnBind/index.vue new file mode 100644 index 0000000..d9439f3 --- /dev/null +++ b/PipeLineLems.PDA/pages/oneTouchUnBind/index.vue @@ -0,0 +1,612 @@ +<template> + <default-header-page-layout ref="page" title="鍌ㄤ綅绠$悊"> + <view + class="page-frame with-action-user-row" + :style="{ height: pageBodyHeight + 'px' }" + v-if="pageBodyHeight" + > + <action-user-row /> + <view class="with-action-user-row-page-content"> + <selectItem + :selectData="areaData" + :value.sync="form.areaNo" + label="搴撳尯缂栫爜" + labelField="areaName" + valueField="areaNo" + /> + + <selectItemWc2 + :selectData="placeList" + :value.sync="form.placeNo" + label="搴撲綅缂栫爜" + labelField="placeNo" + valueField="placeNo" + @getPropData="getPropData" + :msg="msg.placeNoInfo" + @confirmHc="getStockPageHandle" + /> + + <!-- 鎵樼洏缂栫爜 --> + <scan-input-form-item + class="forma-item" + label="鎵樼洏缂栫爜" + :disabled="true" + v-model="form.containterCode" + :msg="msg.containter" + :msg-type="msgType.containter" + @search="onSearchContainter" + @clear="onClearContainter" + :hasScan="false" + :hasSearch="false" + /> + <scan-input-form-item + placeholder="璇烽�夋嫨" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="ctVisible = true" + class="forma-item" + label="鎵樼洏绫诲瀷" + v-model="form.containerType" + /> + <EasyPicker + :visible.sync="ctVisible" + :list="ContainerType" + labelField="value" + valueField="code" + @select="getTypeVal" + /> + + <view + class="scan-input-form-item-compontent" + style="background-color: white; display: flex" + > + <view class="p-form-label"> 鏄惁閿佸畾瑙i攣锛�</view> + <u-radio-group v-model="form.islock"> + <u-radio label="鏄�" name="1"></u-radio> + <u-radio style="margin-left: 10px" label="鍚�" name="0"></u-radio> + </u-radio-group> + </view> + <br /> + <!-- 鍐荤粨鍘熷洜 --> + <scan-input-form-item + v-if="form.islock" + class="forma-item" + label="閿佹満鍒跺師鍥�" + v-model="form.lockReason" + :hasScan="false" + :hasSearch="false" + @clear="onClearContainter" + /> + + <view + class="scan-input-form-item-compontent" + style="background-color: white; display: flex" + > + <view class="p-form-label"> 鏄惁绌烘墭锛歿{ titleContainer }}</view> + </view> + <br /> + <materialList + :materialData="materialData" + @delMaterialData="delMaterialData" + /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <!-- <div class="btn-frame"> + <u-button text="閲嶇疆" @click="onClearContainter"></u-button> + </div> --> + <div class="btn-frame"> + <u-button + text="缃负绌烘墭" + @click="oneTouchUnBindHandle(1)" + ></u-button> + </div> + <!-- 搴撲綅瑙i攣 --> + <div class="btn-frame"> + <u-button text="閿佸畾" @click="placebatchUpdate(1)"></u-button> + </div> + <div class="btn-frame" style="margin:0 5px;"> + <u-button text="瑙i攣" @click="placebatchUpdate(2)"></u-button> + </div> + <div class="btn-frame"> + <u-button + type="primary" + text="娓呴櫎搴撳瓨" + @click="oneTouchUnBindHandle(2)" + ></u-button> + </div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from "@/components/DefaultHeaderPageLayout.vue"; +import ActionUserRow from "@/components/ActionUserRow.vue"; +import ScanInputFormItem from "@/components/ScanInputFormItem.vue"; +import selectItem from "@/components/selectItem.vue"; +import selectItemWc2 from "@/components/selectItemWithSearchWc2.vue"; +import placeInfo from "./modules/placeInfo.vue"; +import containerInfo from "./modules/containerInfo.vue"; +import { $alert, getDicList } from "@/static/js/utils/index.js"; +import { palceList } from "@/service/mixins/mixins.js"; +import { getForContainerCode } from "@/api/bind.js"; +import EasyPicker from "@/components/EasyPicker.vue"; +import { + oneTouchUnBindHandle, + StockPageForPdaCwgl, + placebatchUpdate, +} from "@/api/containerHandle.js"; +import { getAreaInfo } from "@/api/common.js"; +import materialList from "./modules/materialList.vue"; +import { parseDic } from "@/static/js/utils/index.js"; +let initInterVal = null; +export default { + name: "containerHandle", + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + placeInfo, + selectItem, + containerInfo, + materialList, + EasyPicker, + selectItemWc2, + }, + data() { + return { + ContainerType: [], + ctVisible: false, + pageBodyHeight: 0, + containter: null, + form: { + containterCode: "", + areaNo: "", + placeNo: "", + sorting: "", + containerTypeCode: 0, + containerType: "", + }, + msg: { + containter: "", + placeNoInfo: "", + }, + msgType: { + containter: "info", + }, + containerInfo: {}, + areaData: [], + containerPlaceInfo: {}, + materialData: [], + visibleSort1: false, + isSorting: [ + { + label: "鏄�", + value: "1", + }, + { + label: "鍚�", + value: "0", + }, + ], + titleContainer: "", + }; + }, + + mixins: [palceList], + watch: { + "form.areaNo": { + handler(val, oldVal) { + if (val != "") { + this.form.placeNo = ""; + this.placeList = []; + // 鑾峰彇搴撳瓨 + this.getPalceList({ + areaCode: val, + }); + } + }, + }, + }, + + methods: { + parseDic, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.code; + this.form.containerType = valObj.value; + }, + radioChange1(val, b) { + this.form.islock = b.label; // 鏇存柊鍐荤粨鐘舵�� + this.visibleSort1 = false; // 鍏抽棴閫夋嫨鍣� + }, + radioChange2(val, b) { + this.form.emptyContainer = b.label; + this.visibleSort1 = false; // 鍏抽棴閫夋嫨鍣� + }, + /* 2鎵樼洏缂栫爜鎼滅储搴撳瓨 */ + async onSearchContainter() { + if (!this.form.containterCode) { + this.msgType.containter = "error"; + this.msg.containter = "璇疯緭鍏ユ墭鐩樼紪鐮侊紒"; + return false; + } + try { + let { result } = await getForContainerCode({ + code: this.form.containterCode, + }); + this.materialData = []; + this.containerInfo = result; + if (result?.materialContainers.length == 0) { + uni.showToast({ + title: "鎵樼洏涓婃病鏈夌墿鏂欐垨鑰呮墭鐩樹笉瀛樺湪锛�", + icon: "none", + }); + return; + } + this.materialData = result?.materialContainers; + } catch (e) { + console.log(e); + } + }, + //1鑾峰彇搴撳瓨 + async getStockPageHandle(val) { + this.form.containterCode = ""; + this.msg.placeNoInfo = ""; + this.materialData = []; + var placeNo = this.form.placeNo || val; + if (!placeNo) { + uni.showToast({ + title: "璇烽�夋嫨鎴栨壂鎻忓簱浣嶏紒", + icon: "none", + }); + return; + } + let { result } = await StockPageForPdaCwgl({ + placeNo: placeNo, + }); + this.$nextTick(() => { + var placeStatus2 = + parseDic( + this.$store, + "place_status", + result?.placeOutput.placeStatus + ) || ""; + this.msg.placeNoInfo = `${ + result?.placeOutput.islock == 1 ? "閿佸畾" : "鏈攣瀹�" + }, 搴撲綅鐘舵�侊細${placeStatus2}`; + this.materialData = result?.materialStockOutput || []; + this.titleContainer = result?.placeOutput.emptyContainer==1?"鏄�": "鍚�"; + }); + }, + + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: "", + areaNo: "", + placeNo: "", + }; + this.materialData = []; + this.msg.placeNoInfo = ""; + this.form.placeNo = ""; + this.titleContainer = ""; + }, + + // 鑾峰彇搴撳尯鏁版嵁 + async getAreaList() { + try { + let { result } = await getAreaInfo(); + this.areaData = result; + } catch (e) { + console.log(e); + } + }, + //搴撲綅妯$硦鏌ヨ + async getPropData(PlaceNo) { + await this.getPalceList({ + areaCode: this.form.areaNo, + PlaceNo: PlaceNo, + }); + }, + + // 鎵樼洏澶勭悊 + async oneTouchUnBindHandle(type) { + var content = `搴撲綅缂栫爜锛�${this.form.placeNo},鏄惁纭涓�閿竻闄わ紵`; + // 缃负绌烘墭 + if (type == 1) { + content = `搴撲綅缂栫爜锛�${this.form.placeNo},鏄惁纭缃负绌烘墭璐т綅锛焋; + } + uni.showModal({ + title: "鎻愮ず", + content: content, + showCancel: true, + confirmText: "纭畾", + cancelText: "鍙栨秷", + success: async ({ confirm, cancel }) => { + if (confirm) { + try { + await oneTouchUnBindHandle({ + type: type, + containerTypeCode: this.form.containerTypeCode, + containerNo: this.form.containterCode, + placeNo: this.form.placeNo, + }); + $alert("鎿嶄綔鎴愬姛锛�"); + this.onClearContainter(); + } catch (e) { + console.log(e); + } + } + }, + }); + }, + + // 閿佸畾瑙i攣 + async placebatchUpdate(islock) { + if (!this.form.lockReason) { + uni.showToast({ + title: "璇疯緭鍏ュ師鍥狅紒", + icon: "none", + }); + return; + } + var titleM = islock == 2 ? "瑙i攣" : "閿佸畾"; + uni.showModal({ + title: titleM, + content: `搴撲綅缂栫爜锛�${this.form.placeNo},鏄惁纭锛焋, + showCancel: true, + confirmText: "纭畾", + cancelText: "鍙栨秷", + success: async ({ confirm, cancel }) => { + if (confirm) { + try { + await placebatchUpdate({ + placeNo: this.form.placeNo, + islock: islock, + LockReason: this.form.lockReason, + }); + $alert(`${titleM}鎴愬姛锛乣); + this.onClearContainter(); + } catch (e) { + console.log(e); + } + } + }, + }); + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval(); + callback && callback(); + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight(); + } + }, 200); + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal); + initInterVal = null; + } catch (e) { + //TODO handle the exception + } + }, + //鍒犻櫎鐗╂枡 + delMaterialData(materialId) { + this.materialData = this.materialData.filter( + (item) => item.materialId != materialId + ); + }, + }, + + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getAreaList(); + this.ContainerType = getDicList( + this.$store, + "container_type" + ).sysDictDatas; + }); + }, + onUnload() { + this.clearInitInterval(); + }, +}; +</script> + +<style scoped lang="scss"> + +.bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } +} + +.forma-item { + margin-bottom: 24rpx; +} + +.material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + & > .label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + & > .content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} + +.label { + margin-left: 25rpx; + font-size: 30rpx; +} + +.scan-input-form-item-compontent { + width: 100%; + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag { + color: $u-error; + } + } + .input-row { + width: 100%; + height: 75rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + .scan-view, + .btn-view { + flex-shrink: 0; + } + .scan-view { + display: flex; + align-items: center; + justify-content: center; + padding-right: 10rpx; + } + .input-view { + flex-grow: 1; + padding-left: 20rpx; + } + .btn-view { + width: 70rpx; + height: 100%; + padding: 20rpx; + padding-left: 0rpx; + box-sizing: border-box; + .search-btn { + height: 100%; + width: 100%; + border-radius: 8rpx; + background: linear-gradient( + 157.342820970935deg, + rgba(194, 128, 255, 1) -20%, + rgba(194, 128, 255, 1) -19%, + rgba(132, 0, 255, 1) 119% + ); + display: flex; + align-items: center; + justify-content: center; + color: $uni-bg-color; + font-size: 26rpx; + } + } + & > .mask { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #fff; + opacity: 0.25; + } + } + .msg-row { + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + word-break: break-all; + word-wrap: break-word; + &.info-type { + color: $color-blue; + } + } +} +</style> diff --git a/PipeLineLems.PDA/pages/oneTouchUnBind/modules/containerInfo.vue b/PipeLineLems.PDA/pages/oneTouchUnBind/modules/containerInfo.vue new file mode 100644 index 0000000..71a4da8 --- /dev/null +++ b/PipeLineLems.PDA/pages/oneTouchUnBind/modules/containerInfo.vue @@ -0,0 +1,93 @@ +<template> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <!-- <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> --> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.containerNo:''}}</view> + </view> + + <view class="item-row"> + <view class="label">鎵�灞炲簱鍖猴細</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.placeInfos.areaName:''}}</view> + </view> + + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?containerInfo.placeInfos.placeNo:''}}</view> + </view> + + + <!-- <view class="item-row"> + <view class="label">鎵樼洏搴撲綅鐘舵�侊細</view> + <view class="content auto-wrap">{{Boolean(containerInfo)?(parseDic($store,'common_status',containerInfo.placeInfo.containerPlaceStatus)):''}}</view> + </view> --> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + containerInfo: { + type: Object, + default: () => {} + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic + } + } +</script> + +<style scoped > + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding: 10rpx 20rpx; + background-color: #fff; + /* margin-bottom: 10rpx; */ + position: relative; + margin:-20rpx auto; + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 200rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/oneTouchUnBind/modules/materialList.vue b/PipeLineLems.PDA/pages/oneTouchUnBind/modules/materialList.vue new file mode 100644 index 0000000..a465281 --- /dev/null +++ b/PipeLineLems.PDA/pages/oneTouchUnBind/modules/materialList.vue @@ -0,0 +1,165 @@ +<template> + <u-swipe-action v-if="materialData.length>0"> + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.materialId"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{item.containerNo}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏绫诲瀷锛�</view> + <view class="content auto-wrap">{{item.containerTypeDesc}}</view> + </view> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{item.placeNo}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍞竴鐮侊細</view> + <view class="content auto-wrap">{{item.materialId}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">鏄惁閿佸畾锛�</view> + <view class="content auto-wrap">{{item.materialIsLock==1? '鏄�' : '鍚�'}}</view> + </view> + <view class="item-row"> + <view class="label">鎿嶄綔浜猴細</view> + <view class="content auto-wrap">{{item.lockUser}}</view> + </view> + <view class="item-row"> + <view class="label">閿佹満鍒跺師鍥狅細</view> + <view class="content auto-wrap">{{item.lockReason}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/oneTouchUnBind/modules/placeInfo.vue b/PipeLineLems.PDA/pages/oneTouchUnBind/modules/placeInfo.vue new file mode 100644 index 0000000..a9b9b41 --- /dev/null +++ b/PipeLineLems.PDA/pages/oneTouchUnBind/modules/placeInfo.vue @@ -0,0 +1,132 @@ +<template> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label">搴撲綅璇︽儏锛�</view> + <view class="material-item-group" v-if="Boolean(placeInfo)"> + <view class="material-list-item"> + <view class="item-row"> + <view class="label">搴撲綅缂栧彿锛�</view> + <view class="content auto-wrap">{{placeInfo.placeNo}}</view> + </view> + + <view class="item-row"> + <view class="label">鎵�灞炲簱鍖猴細</view> + <view class="content auto-wrap">{{placeInfo.areaCode}}</view> + </view> + </view> + </view> + </view> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + placeInfo: { + type: Object, + default: () => {placeNo:''} + } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + } + } +</script> + +<style scoped lang="scss"> + .scan-input-form-item-compontent{ + width: 100%; + + .p-form-label{ + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + .required-tag{ + color:$u-error; + } + }} + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + background-color: #fff; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* font-weight:5; */ + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/online/index.vue b/PipeLineLems.PDA/pages/online/index.vue new file mode 100644 index 0000000..af14ee1 --- /dev/null +++ b/PipeLineLems.PDA/pages/online/index.vue @@ -0,0 +1,354 @@ +<template> + <default-header-page-layout ref="page" title="鍒囧壊涓婄嚎" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <template v-if="step===1"> + <scan-input-form-item + class="forma-item" + label="鐗╂枡缂栫爜" + v-model="forma.material" + :msg="msg.material" + :msg-type="msgType.material" + @search="onSearchMaterial" + @clear="onClearMaterial" + /> + <view class="material-item-group" v-if="list.length>0"> + <view class="material-list-item" v-for="(item,index) in list" :key="'material-list-item-'+index"> + <view class="close-btn" @tap.stop="onDelList(index)"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">瀵嗗害锛�</view> + <view class="content auto-wrap">{{item.density}}</view> + </view> + <view class="item-row"> + <view class="label">鎵规锛�</view> + <view class="content auto-wrap">{{item.batch}}</view> + </view> + <view class="item-row"> + <view class="label">娈垫暟锛�</view> + <view class="content auto-wrap">{{item.quantity}}</view> + </view> + </view> + </view> + </template> + <!-- step 1 end --> + <!-- step 2 start --> + <template v-if="step===2"> + <easy-select-form-item + v-if="stepTwoType==='select'" + class="forma-item" + label="浜х嚎/宸ヤ綅" + :list="selectList.stations" + v-model="formb.stationCode" + :msg="msg.stationCode" + :msg-type="msgType.stationCode" + value-field="stationCode" + label-field="stationName" + @clear="onClearStation" + /> + <scan-input-form-item + v-else + class="forma-item" + label="浜х嚎/宸ヤ綅" + v-model="formb.stationCode" + :msg="msg.stationCode" + :msg-type="msgType.stationCode" + :has-search="false" + @clear="onClearStation" + /> + <view style="padding:0 16rpx;"> + <u-button type="primary" v-if="stepTwoType==='select'" text="鎵爜杈撳叆浜х嚎" @click="onChangeStepTwoType('input')"></u-button> + <u-button type="primary" v-else text="鎵嬪姩閫夋嫨浜х嚎" @click="onChangeStepTwoType('select')"></u-button> + </view> + </template> + <!-- step 2 end --> + </view> + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="step===1"> + <div class="btn-frame left-btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></div> + <div class="btn-frame right-btn-frame"><u-button type="primary" text="涓� 绾�" :disabled="list.length<=0" @click="onNext"></u-button></div> + </template> + <template v-else> + <div class="btn-frame left-btn-frame"><u-button text="涓婁竴姝�" @click="onPrevStep"></u-button></div> + <div class="btn-frame right-btn-frame"><u-button type="primary" text="鎻� 浜�" @click="onSubmit"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { parseDic, $alert, $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultFormA = { + material:'' +} +const defaultFormB = { + stationCode:'' +} +export default { + name:'toBeOnlinePage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + pageBodyHeight:0, + step:1, + containter:null, + forma:{...defaultFormA}, + formb:{...defaultFormB}, + msg:{ + material:'', + stationCode:'' + }, + msgType:{ + material:'error', + stationCode:'error' + }, + list:[], + materialDisabled:false, + stepTwoType:'', + selectList:{ + stations:[] + } + } + }, + watch:{ + stepTwoType(newVal,oldVal){ + this.triggerStepTwoType() + } + }, + methods:{ + /* 鐗╂枡缂栫爜鎼滅储 */ + onSearchMaterial(){ + if (!this.forma.material) { + this.msg.material = '璇疯緭鍏ョ墿鏂欑紪鍙凤紒'; + return false; + } + this.msg.material = '' + this.getMaterialInfo() + }, + /* 娓呴櫎鐗╂枡缂栫爜 */ + onClearMaterial(){ + this.resetMaterial() + }, + /* 娓呴櫎浜х嚎/宸ヤ綅 */ + onClearStation(){ + this.resetStation() + }, + /* 鍒犻櫎鐗╂枡鍒楄〃鏌愭潯鏁版嵁 */ + onDelList(index){ + this.list.splice(index,1) + }, + /* 閲嶇疆鐗╂枡缂栫爜 */ + resetMaterial(){ + this.msg.material = ''; + this.forma.material = '' + }, + /* 閲嶇疆浜х嚎/宸ヤ綅 */ + resetStation(){ + this.msg.stationCode = ''; + this.formb.stationCode = '' + }, + /* 椤甸潰閲嶇疆 */ + reset(){ + this.resetMaterial() + this.resetStation() + this.list = [] + this.stepTwoType='' + this.step = 1 + }, + /* 鑾峰彇鐗╂枡淇℃伅 */ + getMaterialInfo(callback){ + let params = {Code:this.forma.material} + this.$api.get('ParseCode',params,{block:'online',fullRes:true}).then((d)=>{ + if (d.data) { + let obj = {...d.data} + obj.materialBatch = obj.batch + obj.materialCode = this.forma.material + this.list.push(obj) + this.forma.material = '' + callback && callback(true) + } else { + this.msg.material = d.message || '鏌ユ棤淇℃伅锛�'; + callback && callback(false) + } + }).catch((err)=>{ + callback && callback(false) + }) + }, + /* 鍝嶅簲閲嶇疆鎸夐挳 */ + onReset(){ + this.reset() + }, + /* 鍝嶅簲绗竴姝ユ寜閽� */ + onNext(){ + this.stepTwoType='select' + this.step=2 + }, + /* 鍝嶅簲涓婁竴姝ユ寜閽� */ + onPrevStep(){ + this.resetStation() + this.step=1 + }, + /* 鐩戣绗簩姝ユ樉绀烘ā寮� */ + triggerStepTwoType(){ + if (this.stepTwoType==='select' && this.selectList.stations.length===0) { + this.$api.get('GetFoamBoardStation',{},{block:'online'}).then((d)=>{ + this.selectList.stations = d || [] + }).catch((err)=>{}) + } + }, + onChangeStepTwoType(type){ + this.formb.stationCode='' + this.stepTwoType=type + }, + /* 鍝嶅簲鎻愪氦鎸夐挳 */ + onSubmit(){ + if (!this.formb.stationCode) { + this.msg.stationCode = '璇风‘璁や骇绾匡紒'; + return false; + } + this.msg.stationCode = '' + + this.dealConfirm((f)=>{ + if (f) { + this.reset() + $successInfo('鎿嶄綔鎴愬姛锛�'); + } + }) + }, + /* 鎻愪氦鎺ュ彛璋冪敤 */ + dealConfirm(callback){ + let params = { + stationCode:this.formb.stationCode, + foamBoardInformationList:this.list + } + this.$api.post('FoamBoardRecord',params,{block:'online'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 0; + background-color: #fff; + .btn-frame{ + width: 50%; + box-sizing: border-box; + } + .left-btn-frame{ + padding-left: 20rpx; + padding-right: 8rpx; + } + .right-btn-frame{ + padding-right: 20rpx; + padding-left: 8rpx; + } +} +.forma-item{ + margin-bottom: 24rpx; +} +.material-item-group{ + background-color: $uni-bg-color; + padding-top: 10rpx; + .material-list-item{ + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + &:last-child{ + border-bottom: 0; + } + .item-row{ + display: flex; + &>.label{ + flex-shrink: 0; + color: $u-tips-color; + width: 84rpx; + } + &>.content{ + flex-grow: 1; + color: $u-content-color; + uni-input{ + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + .badge-box{ + position: absolute; + top:8rpx; + left: 8rpx; + z-index: 1; + } + .close-btn{ + $closeBtnSize:70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top:0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + .icon-layer{ + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/pick/index.vue b/PipeLineLems.PDA/pages/pick/index.vue new file mode 100644 index 0000000..2b890a1 --- /dev/null +++ b/PipeLineLems.PDA/pages/pick/index.vue @@ -0,0 +1,414 @@ +<template> + <default-header-page-layout ref="page" title="鍒嗘嫞"> + <view class="page-frame with-action-user-row" :style="{ height: pageBodyHeight + 'px' }" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏缂栫爜" + v-model="form.containterCode" + :msg="msg.containter" + :msg-type="msgType.containter" + @search="onSearchContainter" + @clear="onClearContainter" + /> + <scan-input-form-item + class="forma-item" + label="绠℃缂栫爜" + v-model="form.pipeSpecCode" + :msg="msg.material" + :msg-type="msgType.material" + @search="onSearchMaterial" + @clear="onClearMaterial" + + /> + <scan-input-form-item + placeholder="璇烽�夋嫨" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="visible = true" + class="forma-item" + label="閫夋嫨搴撳彛" + v-model="form.site" + /> + <EasyPicker :visible.sync="visible" :list="placeList.filter(item=>item.placeNo!='ZDCR')" labelField="placeNo" valueField="placeNo" @select="getSiteVal"/> + <!-- <EasyPicker :visible.sync="visible" :list="placeList" labelField="placeNo" valueField="placeNo" @select="getSiteVal" /> --> + <materialList :contaninerData="contaninerData" @delContainer="delContainer" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="缁� 鎵�" @click="onSubmit"></u-button></div> + <div class="btn-frame"><u-button type="primary" text="鍒嗘嫞鍏ュ簱" @click="addInBound"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue'; +import ActionUserRow from '@/components/ActionUserRow.vue'; +import ScanInputFormItem from '@/components/ScanInputFormItem.vue'; +import EasySelectFormItem from '@/components/EasySelectFormItem.vue'; +import EasyPicker from '@/components/EasyPicker.vue'; +import materialList from './modules/materialList.vue'; +import { parseDic, $alert, $successInfo } from '@/static/js/utils/index.js'; +import { palceList } from '@/service/mixins/mixins.js'; +import { getContainerInfo } from '@/api/common.js'; +import { getForEmptyContainerNo, getForMaterialNo, bindMaterialContainer, addInBound,pickPipeSpecCode } from '@/api/bind.js'; + import {NFCInit,NFCReadUID } from '@/service/util/RfidMethod.js' +let initInterVal = null; +export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + form: { + containterCode: '', + pipeSpecCode: '', + site: '' + }, + msg: { + containter: '', + material: '', + site: '' + }, + msgType: { + containter: 'info', + material: 'error', + site: 'error' + }, + containerStatus: null, + contaninerData: [], + visible: false + }; + }, + computed: { + // disabledBind() { + // return !Boolean(this.containerStatus) || this.contaninerData.length < 1; + // }, + // disabledBound() { + // return !Boolean(this.containerStatus); + // } + }, + watch: { + 'form.containterCode': { + handler(val, oldVal) { + this.resetContainerNo(); + } + } + }, + onShow() { + console.log('onShow'); + var nfc = NFCInit(); + console.log(nfc); + }, + onHide() { + console.log('onHide'); + var rfid = NFCReadUID(); + if(rfid!=null){ + if(this.form.containterCode ==''){ + this.form.containterCode = rfid.UID + } else{ + this.form.pipeSpecCode = rfid.UID + } + } + console.log(rfid); + }, + methods: { + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val; + }, + /* 鎵樼洏缂栫爜鎼滅储 */ + async onSearchContainter() { + if (!this.form.containterCode) { + this.msgType.containter = 'error'; + this.msg.containter = '璇疯緭鍏ユ墭鐩樺彿锛�'; + return false; + } + return;//鏆備笉鎼滅储 + // 鑾峰彇浠g爜 + try { + let { result } = await getForEmptyContainerNo({ code: this.form.containterCode }); + this.containerStatus = result?.containerStatus; + // var notKT=result?.materialContainers.some(item=>item.pipeSpecCode!='KONGTUO') + // if(notKT) { + // this.$modal('褰撳墠鎵樼洏瀛樺湪闈炵┖鎵樼墿鏂�') + // this.onClearContainter() + // } + // 鎵樼洏璇︽儏 + let containerStatusName = parseDic(this.$store, 'container_status', result?.containerStatus); + containerStatusName = containerStatusName == '鏃犳瀛楀吀' ? '' : containerStatusName; + this.msg.containter = `鐘舵�侊細${containerStatusName}, 灏哄锛�${result?.specLength}*${result?.specWidth}*${result?.specHeight}`; + + result?.containerList.forEach((item) => { + let isExist = this.contaninerData.some((item1) => item1.containerNo == item.containerNo); + if (!isExist) { + this.contaninerData.push(item); + } + }); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter() { + this.form = { + containterCode: '', + pipeSpecCode: '', + site: '' + }; + this.resetContainerNo(); + }, + // 閲嶅啓鎵樼洏缂栫爜 + resetContainerNo() { + this.msg = { + containter: '', + material: '', + site: '' + }; + this.msgType = { + containter: 'info', + material: 'error', + site: 'error' + }; + this.containerStatus = null; + this.contaninerData = []; + this.form.pipeSpecCode = ''; + this.form.site = ''; + }, + /* 绌烘墭缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.form.pipeSpecCode) { + this.msg.material = '璇疯緭鍏ョ┖鎵樼紪鍙凤紒'; + return false; + } + this.msg.material = ''; + try { + let { result } = await getContainerInfo({ ContainerNo: this.form.pipeSpecCode }); + if (result.containerNo == this.form.containterCode) { + return this.$modal('褰撳墠绌烘墭涓庢墭鐩橀噸澶�'); + } + var isExit = this.contaninerData.some((item) => item.containerNo == result.containerNo); + isExit ? '' : this.contaninerData.push(result); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 鐗╂枡缂栫爜娓呴櫎 */ + onClearMaterial() { + this.form.pipeSpecCode = ''; + }, + + //鍒犻櫎绌烘墭 + delContainer(containerNo) { + this.contaninerData = this.contaninerData.filter((item) => item.containerNo != containerNo); + }, + // 鍒嗘嫞 + async onSubmit() { + let { contaninerData, form } = this; + // if(contaninerData.length>3) { + // return $alert("鍒嗘嫞鏁伴噺涓嶈兘瓒呰繃4涓紒") + // } + const data = { + type: 2, + containerNo: form.containterCode, + pipeSpecCode:form.pipeSpecCode, + materialContainerList: [] + }; + + data.materialContainerList = contaninerData.map((item) => { + return { + materialNo: 'KONGTUO', + materialName: '绌烘墭', + materialId: item.containerNo + }; + }); + try { + await pickPipeSpecCode(data); + this.$modal('鍒嗘嫞鎴愬姛'); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 鍏ュ簱 + async addInBound() { + // if(this.contaninerData.length>3) { + // return $alert("鍒嗘嫞鏁伴噺涓嶈兘瓒呰繃4涓紒") + // } + const data = { + stationNo: this.form.site, + type: 2, + containerNo: this.form.containterCode, + materialContainerList: this.contaninerData.map((item) => { + return { + materialId: item.containerNo, + materialNo: 'KONGTUO', + materialName: '绌烘墭', + materialType: 4 + }; + }) + }; + + try { + await addInBound(data); + this.$modal('鍏ュ簱鎴愬姛'); + this.onClearContainter(); + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval(); + callback && callback(); + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight(); + } + }, 200); + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal); + initInterVal = null; + } catch (e) { + //TODO handle the exception + } + } + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // 娉ㄩ噴 + // this.getPalceList({ + // areaCode: 'WXJSXL' + // }); + }); + }, + onUnload() { + this.clearInitInterval(); + } +}; +</script> + +<style scoped lang="scss"> +.bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } +} + +.forma-item { + margin-bottom: 24rpx; +} + +.material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + & > .label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + & > .content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} +</style> diff --git a/PipeLineLems.PDA/pages/pick/modules/materialList.vue b/PipeLineLems.PDA/pages/pick/modules/materialList.vue new file mode 100644 index 0000000..9c80035 --- /dev/null +++ b/PipeLineLems.PDA/pages/pick/modules/materialList.vue @@ -0,0 +1,136 @@ +<template> + <u-swipe-action v-if="contaninerData.length>0" > + <u-swipe-action-item :options="options" v-for="(item,index) in contaninerData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item.containerNo"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{item.containerNo}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏鐘舵�侊細</view> + <view class="content auto-wrap">{{parseDic($store,'container_status',item.containerStatus)}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.specLength}}*{{item.specWidth}}*{{item.specHeight}}</view> + </view> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + contaninerData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delContainer',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* font-weight:5; */ + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/plywoodBind/index.vue b/PipeLineLems.PDA/pages/plywoodBind/index.vue new file mode 100644 index 0000000..0c90916 --- /dev/null +++ b/PipeLineLems.PDA/pages/plywoodBind/index.vue @@ -0,0 +1,15 @@ +<template> +</template> + +<script> +export default { + onLoad(){ + uni.redirectTo({ + url: this.$config.path.plywoodInstore + '?pageType=bind' + }); + } +} +</script> + +<style> +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/plywoodInstore/index.vue b/PipeLineLems.PDA/pages/plywoodInstore/index.vue new file mode 100644 index 0000000..b06ed8d --- /dev/null +++ b/PipeLineLems.PDA/pages/plywoodInstore/index.vue @@ -0,0 +1,183 @@ +<template> + <default-header-page-layout ref="page" :title="pageTitle" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <page-main v-show="pageStyle==='main'" ref="main" @pageChange="onMainPageChange" /> + <page-edit v-show="pageStyle==='edit'" ref="edit" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="pageStyle==='main'"> + <template v-if="pageType==='bind'"> + <view class="btn-frame"><u-button text="閲� 缃�" @click="onMainReset"></u-button></view> + <view class="divider"></view> + </template> + <view class="btn-frame"><u-button :type="pageType==='instore'?'':'primary'" text="缁� 鐩�" @click="onBind"></u-button></view> + <template v-if="pageType==='instore'"> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鍏� 搴�" @click="onManualInstore"></u-button></view> + </template> + </template> + <template v-if="pageStyle==='edit'"> + <view class="btn-frame"><u-button text="杩� 鍥�" @click="onEditBack"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" :text="editIndex===-1?'娣� 鍔�':'淇� 鏀�'" @click="onEditConfirm"></u-button></view> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import PageMain from './modules/main.vue' +import PageEdit from './modules/edit.vue' +import { $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +export default { + name:'plywoodInstorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,PageMain,PageEdit}, + data(){ + return { + pageBodyHeight:0, + pageType:'instore', + pageStyle:'main', + pageTitle:'', + editIndex:-1 + } + }, + methods:{ + onEditBack(){ + this.pageStyle = 'main' + }, + onEditConfirm(){ + let check = this.$refs.edit.checkConfirm() + if (check.flag) { + if (this.editIndex===-1) { + this.$refs.main.add(check.data) + } else { + this.$refs.main.modify(check.data,this.editIndex) + } + } + this.pageStyle = 'main' + }, + onMainPageChange(obj,index){ + if (obj) { + this.editIndex = index + } else { + this.editIndex = -1 + } + this.$refs.edit.init(obj) + this.pageStyle = 'edit' + }, + onMainReset(){ + this.$refs.main.clearMain() + }, + onBind(){ + let check = this.$refs.main.checkConfirm() + if (check.flag) { + this.dealBind(check.data,(f)=>{ + if (f) { + $successInfo('缁勭洏鎴愬姛') + if (this.pageType==='bind'){ + this.$refs.main.clearMain() + } + } + }) + } + }, + onManualInstore(){ + let check = this.$refs.main.checkConfirm() + if (check.flag) { + this.dealManualInstore(check.data,(f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.$refs.main.clearMain() + } + }) + } + }, + /* 缁勭洏鎺ュ彛璋冪敤 */ + dealBind(obj,callback){ + let params = this.dealSubmitParams(obj) + this.$api.post('PlywoodBindEntrance',params,{block:'plywood'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 鎵嬪姩鍏ュ簱鎺ュ彛璋冪敤 */ + dealManualInstore(obj,callback){ + let params = this.dealSubmitParams(obj) + this.$api.post('PlywoodManualWare',params,{block:'plywood'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + dealSubmitParams(obj){ + return { + containercode:obj.containter.containerCode, + wmsMaterials:obj.list + } + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onLoad(option){ + if (option.pageType) { + this.pageType=option.pageType + this.pageTitle='鑳跺悎鏉跨粍鐩�' + } else { + this.pageType='instore' + this.pageTitle='鑳跺悎鏉垮叆搴�' + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/plywoodInstore/modules/edit.vue b/PipeLineLems.PDA/pages/plywoodInstore/modules/edit.vue new file mode 100644 index 0000000..503c427 --- /dev/null +++ b/PipeLineLems.PDA/pages/plywoodInstore/modules/edit.vue @@ -0,0 +1,167 @@ +<template> + <view class="plywood-instore-edit-page-content"> + <view class="form-view"> + <!-- ******************** --> + <scan-input-form-item + class="forma-item" + label="鎵规" + v-model="form.materialbatch" + :msg="msg.materialbatch" + :has-scan="false" + :has-search="false" + :required="true" + /> + <scan-input-form-item + class="forma-item" + label="渚涘簲鍟�" + v-model="form.supplier" + :msg="msg.supplier" + :has-scan="false" + :has-search="false" + /> + <long-width-height-form-item + class="forma-item" + label="灏哄" + :long.sync="form.materiallength" + :width.sync="form.materialwidth" + :height.sync="form.materialhigh" + :msg="msg.materialspec" + :required="true" + /> + <scan-input-form-item + type="digit" + label="鏁伴噺" + v-model="form.bindquantity" + :msg="msg.bindquantity" + :has-scan="false" + :has-search="false" + :required="true" + /> + <!-- ******************** --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import LongWidthHeightFormItem from '@/pages/components/LongWidthHeightFormItem.vue' +const defaultForm = { + materialbatch:'', + supplier:'', + bindquantity:null, + materiallength:null, + materialwidth:null, + materialhigh:null +} +export default { + name:'plywoodInstoreEditPageContent', + components:{ScanInputFormItem,LongWidthHeightFormItem}, + data(){ + return { + form:{...defaultForm}, + msg:{ + materialbatch:'', + supplier:'', + materialspec:'', + bindquantity:'' + } + } + }, + watch:{ + 'form.materiallength'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.materialwidth'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.materialhigh'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.materialbatch'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchMaterialbatch() + } + }, + 'form.bindquantity'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchBindquantity() + } + } + }, + methods:{ + init(obj){ + if (obj) { + this.form = {...obj} + } else { + this.form = {...defaultForm} + } + }, + getFormValues(){ + return {...this.form} + }, + checkConfirm(){ + let res = {flag:true,data:{}} + res.data = this.getFormValues() + if (!res.data.materialbatch) { + this.msg.materialbatch = '璇峰厛褰曞叆鎵规淇℃伅锛�' + res.flag = false + } else { + this.msg.materialbatch = '' + } + if (res.flag && (!res.data.materiallength || !res.data.materialwidth || !res.data.materialhigh)) { + this.msg.materialspec = '璇峰厛褰曞叆灏哄锛�' + res.flag = false + } else { + this.msg.materialspec = '' + } + if (res.flag && !res.data.bindquantity) { + this.msg.bindquantity = '璇峰厛褰曞叆鏁伴噺锛�' + res.flag = false + } else { + this.msg.bindquantity = '' + } + return res; + }, + watchSpec(){ + if (this.form.materiallength && this.form.materialwidth && this.form.materialhigh) { + this.msg.materialspec = '' + } + }, + watchMaterialbatch(){ + if(this.form.materialbatch) { + this.msg.materialbatch = '' + } else { + this.msg.materialbatch = '璇峰厛褰曞叆鎵规锛�' + } + }, + watchBindquantity(){ + if(this.form.bindquantity) { + this.msg.bindquantity = '' + } else { + this.msg.bindquantity = '璇峰厛褰曞叆鏁伴噺锛�' + } + } + } +} +</script> + +<style scoped lang="scss"> +.plywood-instore-edit-page-content{ + height: 100%; + box-sizing: border-box; + padding-bottom: 12rpx; + .form-view{ + height: 100%; + overflow: auto; + } + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/plywoodInstore/modules/main.vue b/PipeLineLems.PDA/pages/plywoodInstore/modules/main.vue new file mode 100644 index 0000000..a1f3e53 --- /dev/null +++ b/PipeLineLems.PDA/pages/plywoodInstore/modules/main.vue @@ -0,0 +1,296 @@ +<template> + <view class="plywood-instore-main-page-content"> + <view class="top-view"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + <view class="btns-row"> + <view class="btn primary-btn" @tap.stop="onAdd">娣诲姞鐗╂枡</view> + <!-- <view class="divider"></view> + <view class="btn default-btn">鏌ョ湅璁板綍</view> --> + </view> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <uni-swipe-action-item :auto-close="false"> + <view class="list-item-show"> + <view class="item-row"> + <view class="label"> + <view class="first-label-inner"> + <uni-badge :text="list.length-index" type="primary" size="normal" /><text class="batch-no">鎵规</text> + </view> + </view> + <view class="content">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟�</view> + <view class="content">{{item.supplier}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄</view> + <view class="content">{{item.materiallength}}*{{item.materialwidth}}*{{item.materialhigh}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺</view> + <view class="content">{{item.bindquantity}}</view> + </view> + </view> + <template v-slot:right> + <view class="swipe-action-btns"> + <view class="swipe-action-btn" @tap.stop="onEdit(item,index)"><text>缂栬緫</text></view> + <view class="swipe-action-btn danger" @tap.stop="onDel(index)"><text>鍒犻櫎</text></view> + </view> + </template> + </uni-swipe-action-item> + </view> + + </view> + <!-- ########### --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { $alert, parseDic } from '@/static/js/utils/index.js' +const defaultForm = { + container:'' +} +export default { + name:'plywoodInstoreMainPageContent', + emits:['pageChange'], + components:{ScanInputFormItem}, + data() { + return { + form: {...defaultForm}, + msg:{ + container:'' + }, + msgType:{ + container:'error' + }, + list:[], + containter:null + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainterInfo() + }, + onClearContainer(){ + this.clearMain() + }, + clearMain(){ + this.clearContainter() + this.clearBackContainer() + }, + clearContainter(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.containter = null + this.list = [] + }, + getContainterInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('PlywoodGetContainer',params,{block:'plywood',fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.containter = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.containter.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.containter.specLength}*${this.containter.specWidth}锛岀姸鎬侊細${_temp1}` + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage() + callback && callback(false) + }) + }, + onDel(index){ + this.list.splice(index,1) + }, + onAdd(){ + if (!this.form.container) { + $alert('璇峰厛褰曞叆鎵樼洏淇℃伅锛�') + return false; + } + this.$emit('pageChange',null) + }, + onEdit(obj,index){ + this.$emit('pageChange',obj,index) + }, + add(obj){ + this.list.unshift(obj) + }, + modify(obj,index) { + this.$set(this.list,index,obj) + }, + getSubmitParams(){ + return { + list:this.list, + containter:this.containter + } + }, + checkConfirm(){ + let res = {flag:true,data:{}} + res.data = this.getSubmitParams() + if (!res.data.containter) { + this.msg.container = '璇峰厛褰曞叆鎵樼洏淇℃伅锛�' + this.msgType.container = 'error' + res.flag = false + } else { + this.msg.container = '' + } + if (res.flag && res.data.list.length<=0) { + $alert('璇峰綍鍏ヨ兌鍚堟澘鏁版嵁锛�') + res.flag = false + } + return res; + }, + } +} +</script> + +<style scoped lang="scss"> +.plywood-instore-main-page-content{ + height: 100%; + display: flex; + flex-direction: column; + &>.top-view{ + flex-shrink: 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + padding: 0 16rpx; + font-size: 1.1em; + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } + .forma-item{ + margin-bottom: 24rpx; + } + .btns-row{ + display: flex; + height: 90rpx; + box-sizing: border-box; + border-style: solid; + border-color: $uni-border-1; + border-width: 2rpx 0 2rpx 0; + .divider { + width: 2rpx; + height: 100%; + background-color: $uni-border-1; + } + .btn{ + flex-grow: 1; + width: 1px; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + &.primary-btn{ + background-color: $uni-color-primary; + color: $uni-bg-color; + } + &.default-btn{ + background-color: $uni-bg-color; + color: $uni-color-primary; + } + } + } +} +.swipe-action-btns{ + width: 100rpx; + display: flex; + flex-direction: column; +} +.swipe-action-btn{ + display: flex; + color: $uni-bg-color; + background-color: $u-primary; + justify-content: center; + align-items: center; + height: 50%; + width: 100rpx; + box-sizing: border-box; + &.danger{ + background-color: $u-error; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/plywoodOut/index.vue b/PipeLineLems.PDA/pages/plywoodOut/index.vue new file mode 100644 index 0000000..8df20e2 --- /dev/null +++ b/PipeLineLems.PDA/pages/plywoodOut/index.vue @@ -0,0 +1,317 @@ +<template> + <default-header-page-layout ref="page" title="鑳跺悎鏉垮嚭搴�" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- page start --> + <view class="plywood-out-page-content"> + <view class="top-view"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + + <auto-complete-scan-input-form-item + label="鍗曟嵁鐮�" + v-model="form.order" + :picker-err-msg="msg.order" + :has-search="false" + :init-picker-list="true" + @changeOptions="onGetOrderList" + /> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <view class="list-item-show"> + <view class="item-row"> + <view class="label"> + <view class="first-label-inner"> + <uni-badge :text="list.length-index" type="primary" size="normal" /><text class="batch-no">鎵规</text> + </view> + </view> + <view class="content">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟�</view> + <view class="content">{{item.supplier}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄</view> + <view class="content">{{item.materiallength}}*{{item.materialwidth}}*{{item.materialhigh}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺</view> + <view class="content">{{item.bindquantity}}</view> + </view> + </view> + </view> + + </view> + <!-- ########### --> + </view> + </view> + <!-- page end --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" :disabled="!container || container.containerStatus!==3" text="鍑� 搴�" @click="onConfirm"></u-button></view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import AutoCompleteScanInputFormItem from '@/components/AutoCompleteScanInputFormItem.vue' +import { $successInfo, parseDic } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + container:'', + order:'' +} +export default { + name:'plywoodOutPage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,AutoCompleteScanInputFormItem}, + data(){ + return { + pageBodyHeight:0, + form: {...defaultForm}, + msg:{ + container:'', + order:'' + }, + msgType:{ + container:'error' + }, + list:[], + container:null + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainterInfo() + }, + onClearContainer(){ + this.clearFullContainer() + }, + clearFullContainer(){ + this.clearContainter() + this.clearBackContainer() + }, + clearContainter(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + clearOrder(){ + this.form.order = '' + this.msg.order = '' + }, + clearPage(){ + this.clearFullContainer() + this.clearOrder() + }, + getContainterInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('PlywoodGetOutContainer',params,{block:'plywood',fullRes:true,warn:false}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage(_errmsg) + callback && callback(false) + }) + }, + onGetOrderList(val,callback){ + this.getOrderList(val,(f,obj)=>{ + if (f) { + this.msg.order = '' + callback(obj) + } else { + this.msg.order = obj + } + }) + }, + getOrderList(val,callback){ + let params = {OrderNo:val} + this.$api.get('PlywoodGetPreparationOrder',params,{block:'plywood',warn:false}).then(d=>{ + callback && callback(true,(d || [])) + }).catch(ex=>{ + callback && callback(false,ex) + }) + }, + onReset(){ + this.clearPage() + }, + onConfirm(){ + this.confirmAjax((f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.clearPage() + } + }) + }, + confirmAjax(callback){ + let params = { + containercode:this.container.containerCode, + orderNo:this.form.order, + wmsMaterials:this.list + } + this.$api.post('PlywoodManualOutWare',params,{block:'plywood'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.plywood-out-page-content{ + height: 100%; + display: flex; + flex-direction: column; + &>.top-view{ + flex-shrink: 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + padding: 0 16rpx; + font-size: 1.1em; + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } +} +.forma-item{ + margin-bottom: 24rpx; +} +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/print/bluePrint.js b/PipeLineLems.PDA/pages/print/bluePrint.js new file mode 100644 index 0000000..45cc9b5 --- /dev/null +++ b/PipeLineLems.PDA/pages/print/bluePrint.js @@ -0,0 +1,358 @@ +import PrinterJobs from '@/static/js/print/printerjobs.js' +import $config from '@/config/index.js' + +export default { + print($store,context,pW,pH){ + const _myBlue = $store.getters['print/getBlueInfo']; + if (_myBlue) { + return this.sendBlueToothData($store,context,_myBlue,pW,pH) + } else { + return new Promise((resolve)=>{ + uni.navigateTo({ + url: $config.path.bluetooth + }); + resolve() + }) + } + }, + sendBlueToothData($store,context,blueInfo,pW=576,pH=400){ + return new Promise((resolve,reject)=>{ + uni.showLoading({ + title: '钃濈墮鏁版嵁浼犺緭涓�', + mask:true + }); + /* + 灏哄鎹㈢畻锛�1mm=8鍗曚綅 + label_set_page 鍙傛暟锛氬锛堟渶澶�576锛夈�侀珮 + drawLine 鍙傛暟锛氱嚎瀹姐�佽捣濮嬬偣x銆佽捣濮嬬偣y銆佺粨鏉熺偣x銆佺粨鏉熺偣y + drawText 鍙傛暟锛氳捣濮嬬偣x銆佽捣濮嬬偣y銆佹枃瀛椼�佸瓧浣撳ぇ灏忋�佹棆杞搴︺�佺矖浣�(0鍚�1鏄�)銆佷笅鍒掔嚎銆佸弽鐧� + 瀛椾綋澶у皬锛氬彲閫夊�� 20/1/2/3/4/5/6/7 锛屽叾浠栫殑鏃跺�欓粯璁や负2 + 鏃嬭浆瑙掑害锛�0-涓嶉�夋嫨/1-90搴�/2-180搴�/3-270搴� + drawQrCode 浜岀淮鐮侊紝鍙傛暟锛氳捣濮嬬偣x銆佽捣濮嬬偣y銆佷簩缁寸爜鍐呭銆佹棆杞弬鏁版亽瀹氫负0銆佷簩缁寸爜瀹藉害(2-15)銆佷簩缁寸爜绾犻敊绛夌骇(0-20) + drawBarCode 鏉″舰鐮侊紝鍙傛暟:璧峰鐐箈銆佽捣濮嬬偣y銆佹潯褰㈢爜鍐呭銆佹潯褰㈢爜绫诲瀷銆佹棆杞弬鏁版亽瀹氫负0銆佹潯鐮佸搴�(2~6)銆佹潯鐮侀珮搴�(1~255) + 鏉″舰鐮佺被鍨嬶細 0锛欳ODE39锛�1锛欳ODE128锛�2锛欳ODE93锛�3锛欳ODEBAR锛�4锛欵AN8锛�5锛欵AN13锛�6锛歎PCA; 7:UPC-E; 8:ITF + */ + let printerJobs = new PrinterJobs(); + printerJobs.label_set_page(pW, pH); + context.forEach((contextItem)=>{ + switch(contextItem.type) { + case 'line': + printerJobs.drawLine(contextItem.width,contextItem.x1,contextItem.y1,contextItem.x2,contextItem.y2); + break; + case 'text': + printerJobs.drawText(contextItem.x,contextItem.y,contextItem.text,contextItem.size,contextItem.rotate,contextItem.bold,contextItem.underline,contextItem.reverse); + break; + case 'qr': + printerJobs.drawQrCode(contextItem.x,contextItem.y,contextItem.text,0,contextItem.width,contextItem.level); + break; + case 'bar': + printerJobs.drawBarCode(contextItem.x,contextItem.y,contextItem.text,contextItem.barType,0,contextItem.width,contextItem.height); + break; + default: + break; + } + }) + printerJobs.label_print(0, 1); + let buffer = printerJobs.buffer(); + this.bufferTransmission(buffer,$store,blueInfo).then((res)=>{ + resolve(res) + }).catch((err)=>{ + reject(err) + }) + }) + }, + bufferTransmission(buffer,$store,blueInfo){ + return new Promise((resolve,reject)=>{ + if (blueInfo===undefined) blueInfo = $store.getters['print/getBlueInfo']; + let deviceId = blueInfo.deviceId + let serviceId = blueInfo.serviceId + let characteristicId = blueInfo.characteristicId + + const maxChunk = 20; + const delay = 15; + let length = buffer.byteLength; + let pakageLen = Math.trunc(length/maxChunk); + if (length%maxChunk!==0) pakageLen=pakageLen+1; + console.log(`鍏�${length}瀛楄妭锛屽垎${pakageLen}鍖卄) + + //瓒呮椂璁剧疆 + const _timeOutNum = 30 * 1000; + const _sendTimeOut = setTimeout(()=>{ + let tMsg = `钃濈墮鏁版嵁浼犺緭瓒呮椂锛�${_sendTimeOut/1000}绉掑唴鏃犲搷搴旓紒` + uni.hideLoading(); + this.researchConfirm(tMsg) + reject(tMsg) + },_timeOutNum) + + //鍒ゆ柇浼犺緭椤哄簭鏄惁姝g‘ + const isRightTransferOrder = function(arr){ + let __res = true; + for (let _i=0;_i<(arr.length-1);_i++) { + if (arr[_i]>=arr[_i+1]) { + __res = false; + break; + } + } + return __res + } + + let successArr = []; + for (let i = 0, j = 0; i < length; i += maxChunk, j++) { + let subPackage = buffer.slice(i, i + maxChunk <= length ? (i + maxChunk) : length); + //_count = j; + setTimeout(() => { + console.log(`绗�${j+1}鍒嗗寘鍙戦�侊紝寮�濮嬪瓧鑺�${i}`) + this._writeBLECharacteristicValue(deviceId, serviceId, characteristicId, subPackage,(f)=>{ + console.log(`绗�${j+1}杩斿洖${f}`) + if (f) { + successArr.push(j+1) + } + // 鏈�鍚�1涓寘杩斿洖锛屽垯锛� + if (j===pakageLen-1) { + uni.hideLoading(); + let successLen = successArr.length; + let modalMsg = `钃濈墮浼犺緭鍒�${pakageLen}鍖咃紝鎴愬姛浼犺緭${successLen}涓寘` + if (successLen) { + modalMsg += `锛屼緷娆′负锛�${successArr.join(",")}銆俙 + } else { + modalMsg += '銆�' + } + + clearTimeout(_sendTimeOut) + //鎴愬姛鍙戦�佺殑鍖呮暟閲忎笌鎷嗗垎鍖呮暟閲忕浉绛夛紝涓旀垚鍔熷彂閫佸寘鐨勯『搴忔纭紝璁や负钃濈墮浼犺緭姝g‘ + if (pakageLen !==0 && successLen===pakageLen && isRightTransferOrder(successArr)) { + uni.hideLoading(); + this.alert(modalMsg) + resolve() + } else { + uni.hideLoading(); + this.researchConfirm(modalMsg) + reject(modalMsg) + } + } + }) + }, j * delay); + } + /* promise end */ + }) + }, + _writeBLECharacteristicValue(deviceId, serviceId, characteristicId, buffer,callback){ + uni.writeBLECharacteristicValue({ + deviceId: deviceId, + serviceId: serviceId, + characteristicId: characteristicId, + value: buffer, + success(res) { + callback && callback(true) + }, + fail(res) { + callback && callback(false) + } + }) + }, + alert(msg){ + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:msg, + showCancel:false, + confirmText:'纭� 瀹�' + }) + }, + researchConfirm(msg){ + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:msg, + cancelText:'鍙� 娑�', + confirmText:'閲嶇疆钃濈墮', + success:(res)=>{ + if (res.confirm) { + uni.navigateTo({ + url: $config.path.bluetooth + '?again=1' + }); + } + } + }) + }, + getBlueToothes(){ + return new Promise((resolve,reject)=>{ + uni.showLoading({ + title: '鍚姩钃濈墮鍔熻兘', + mask:true + }); + uni.getSystemInfo({ + success:function(resfirst){ + if (resfirst.uniPlatform!=='web') { + try{ + uni.openBluetoothAdapter({ + success:function(){ + uni.showLoading({ + title: '寮�濮嬫悳绱㈣摑鐗�', + mask:true + }); + uni.startBluetoothDevicesDiscovery({ + success:function(){ + uni.showLoading({ + title: '鎼滅储涓�...', + mask:true + }); + let result = []; + uni.onBluetoothDeviceFound(function(res){ + if (res && res.devices && res.devices.length>0) { + res.devices.forEach(function(item){ + if (item.name) { + let addFlag = true; + for (let i=0;i<result.length;i++) { + if (item.deviceId===result[i].deviceId) { + addFlag = false; + break; + } + } + if (addFlag) { + result.push(item) + } + } + }) + } + }) + setTimeout(function(){ + uni.stopBluetoothDevicesDiscovery({ + success:function(){ + uni.hideLoading(); + resolve(result) + }, + fail:function(){ + uni.hideLoading(); + reject('鍏抽棴钃濈墮鎼滅储澶辫触') + } + }) + },5*1000) + }, + fail:function(){ + uni.hideLoading(); + reject('寮�鍚摑鐗欐悳绱㈠け璐�') + } + }) + }, + fail:function(){ + uni.hideLoading(); + reject('钃濈墮妯″潡鍚姩澶辫触') + } + }) + }catch(e){ + uni.hideLoading(); + reject(e) + } + } else { + uni.hideLoading(); + reject('Web鏃犳晥锛�') + } + }, + fail:function(errfirst){ + uni.hideLoading(); + reject(errfirst) + } + }) + }) + }, + reGetBlueToothes($store){ + return new Promise((resolve,reject)=>{ + uni.closeBluetoothAdapter({ + complete:()=>{ + this.getBlueToothes().then(res => { + resolve(res) + }).catch(err=>{ + reject(err) + }) + } + }) + }) + }, + connect($store,id){ + return new Promise(function(resolve,reject){ + uni.showLoading({ + title: '杩炴帴涓�...', + mask:true + }); + uni.closeBLEConnection({ + deviceId:id, + complete:()=>{ + uni.createBLEConnection({ + deviceId:id, + success:function(){ + $store.commit('print/setDeviceId',id) + uni.showLoading({ + title: '鑾峰彇钃濈墮鏈嶅姟', + mask:true + }); + setTimeout(function(){ + uni.getBLEDeviceServices({ + deviceId:id, + success:function(res1){ + let serviceId = ''; + for (let i=0;i<res1.services.length;i++){ + if (res1.services[i].uuid.indexOf("FF00") !== -1) { + serviceId = res1.services[i].uuid; + break; + } + } + if (serviceId) { + uni.showLoading({ + title: '鑾峰彇鏈嶅姟鐗瑰緛鍊�', + mask:true + }); + uni.getBLEDeviceCharacteristics({ + deviceId:id, + serviceId:serviceId, + success:function(res2){ + let characteristicId = '' + for (let j=0;j<res2.characteristics.length;j++){ + if (res2.characteristics[j].uuid.indexOf("FF02") !== -1) { + characteristicId = res2.characteristics[j].uuid; + break; + } + } + if (characteristicId) { + let blueInfoObj = { + deviceId:id, + serviceId:serviceId, + characteristicId:characteristicId + } + $store.commit('print/setBlueInfo',blueInfoObj); + uni.showToast({ + title:'钃濈墮杩炴帴鎴愬姛', + icon:'success' + }) + uni.hideLoading(); + resolve() + } else { + uni.hideLoading(); + reject(`鑾峰彇钃濈墮璁惧${id}鐨勬湇鍔$壒寰佸�间笉姝g‘`) + } + }, + fail:function(){ + uni.hideLoading(); + reject(`鑾峰彇钃濈墮璁惧${id}鐨勬湇鍔$壒寰佸�煎け璐) + } + }) + } else { + uni.hideLoading(); + reject(`鑾峰彇钃濈墮璁惧${id}鐨勬湇鍔′笉姝g‘`) + } + }, + fail:function(){ + uni.hideLoading(); + reject(`鑾峰彇钃濈墮璁惧${id}鐨勬湇鍔″け璐) + } + }) + },1200) + }, + fail:function(){ + uni.hideLoading(); + reject(`鍒涘缓涓庤摑鐗欒澶�${id}鐨勮繛鎺ュけ璐) + } + }) + } + }) + }) + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/print/bluetoothConnection.vue b/PipeLineLems.PDA/pages/print/bluetoothConnection.vue new file mode 100644 index 0000000..a6feaec --- /dev/null +++ b/PipeLineLems.PDA/pages/print/bluetoothConnection.vue @@ -0,0 +1,118 @@ +<template> + <header-page-layout ref="header" title="钃濈墮杩炴帴" base-background-color="#f8f8ff" background-color="#ffffff" @headerclick="onHeaderClick"> + <template v-slot:headerleft><u-icon name="arrow-left"></u-icon></template> + <view class="bluetooth-connection-page page-padding"> + <view v-for="(item,index) in myBluetoothes" :key="item.deviceId" class="bluetooth-btn" @tap="onConnect(item.deviceId)"> + <view class="blue-btn-id">{{item.deviceId}}</view> + <view class="blue-btn-name">{{item.name}}</view> + </view> + </view> + <template v-slot:footer> + <view class="page-padding page-footer-padding"> + <u-button type="primary" text="閲嶆柊鎼滅储" @click="research" :disabled="myBluetoothes.length===0"></u-button> + </view> + </template> + </header-page-layout> +</template> + +<script> +import HeaderPageLayout from '@/components/HeaderPageLayout.vue' +import BluePrint from './bluePrint.js' +export default { + name:'bluetoothPrintConnectionPage', + components:{HeaderPageLayout}, + data(){ + return { + initAgain:false, + myBluetoothes:[] + } + }, + methods:{ + onHeaderClick(type){ + if (type==='left') { + uni.redirectTo({url:this.$config.path.login}) + } + }, + search(re=false){ + let methodName = 'getBlueToothes' + if (re) methodName = 'reGetBlueToothes' + BluePrint[methodName](this.$store).then((res)=>{ + this.myBluetoothes = res + }).catch((err)=>{ + if (typeof err !== 'string'){ + err = '鑾峰彇钃濈墮璁惧鍒楄〃澶辫触' + } + BluePrint.alert(err) + }) + }, + research(){ + this.myBluetoothes = []; + this.search(true) + }, + onConnect(id){ + BluePrint.connect(this.$store,id).then(()=>{ + uni.navigateBack() + }).catch((err)=>{ + if (typeof err !== 'string'){ + err = '杩炴帴钃濈墮璁惧澶辫触' + } + BluePrint.alert(err) + }) + } + }, + onLoad(option) { + if (option.again==='1') { + this.initAgain = true + } else { + this.initAgain = false + } + }, + onReady() { + this.search(this.initAgain) + } +} +</script> + +<style lang="scss" scoped> +.header-icon-btn{ + font-size: 1.3rem; +} +.page-padding{ + padding: 0 30rpx; +} +.page-footer-padding{ + padding-top: 20rpx; + padding-bottom: 20rpx; +} +.bluetooth-connection-page{ + padding-top: 30rpx; + .bluetooth-btn{ + box-sizing: border-box; + width: 100%; + margin-bottom: 30rpx; + border: 1px solid #F18201; + background-color: #f8c07f; + color: #fff; + border-radius: 20rpx; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 20rpx; + font-size: 30rpx; + .blue-btn-id,.blue-btn-name{ + word-wrap: break-word; + word-break: break-all; + white-space: pre-wrap; + text-align: center; + } + .blue-btn-name{ + font-size: 1.5em; + font-weight: bold; + } + &:last-child{ + margin-bottom: 0; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/receiptExecution/index.vue b/PipeLineLems.PDA/pages/receiptExecution/index.vue new file mode 100644 index 0000000..49fbe05 --- /dev/null +++ b/PipeLineLems.PDA/pages/receiptExecution/index.vue @@ -0,0 +1,313 @@ +<template> + <default-header-page-layout ref="page" title="鏀惰揣鎵ц"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item :msgType='msgType' class="forma-item" label="鍗曟嵁缂栧彿" v-model="form.no" :msg="msg" + @search="onSearchContainter" @clear="onClearContainter" /> + <view class="scan-input-form-item-compontent" v-show="noAllData.length>0"> + <view class="p-form-label"></text>鐗╂枡鏄庣粏</view> + <view class="input-view"> + <u-search + clearabled + @search="search" + @custom="search" + @clear="clear" + searchIcon="" + :actionStyle="actionStyle" + bgColor="#fff" + shape="square" + placeholder="" + height="58rpx" + v-model="form.materialNo"></u-search> + </view> + </view> + <view v-if="true"> + <view v-for="(item,index) in noData" :key="index"> + <bar-content @checkChange="checkChange" :index="index" :content="item"></bar-content> + </view> + + </view> + </view> + + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view style="margin-right:10rpx" class="btn-frame"> + <u-button :disabled="disabled" type="primary" text="鏀� 璐�" @click="recieve"> + </u-button> + </view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import { + GetOrderDetail, + confirmReceipt + } from '@/api/receiptExecution.js' + let initInterVal = null; + + import barContent from './modules/barContent.vue' + + export default { + name: 'emptyInPage', + components: { + barContent, + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + EasyPicker + }, + data() { + return { + pageBodyHeight: 0, + form: { + no: '', + materialNo: '' + }, + msg: '', + msgType: 'info', + noAllData:[], + noData: [], + actionStyle: { + backgroundColor: '#F18202', + color:'#fff', + width: 120 + 'rpx', + height: 58 + 'rpx', + lineHeight: 58 + 'rpx', + borderRadius: 10 + 'rpx' + } + } + }, + computed: { + disabled() { + return this.noData.filter(item => item.checked).length < 1 + } + }, + watch: { + 'form.no': { + handler(val) { + if (val == '') { + this.onClearContainter() + } + } + }, + 'form.materialNo':{ + handler(val) { + if (val == '') { + this.clear() + } + } + } + }, + methods: { + // 鑾峰彇鍗曟嵁淇℃伅 + async onSearchContainter(no) { + if (no) { + this.form.no = no + } + const param = { + no: this.form.no + } + try { + let data = await GetOrderDetail(param) + if (Object.keys(data).includes('message')) { + this.msg = data.message + this.msgType = 'error' + } else { + console.log(data); + this.noAllData = data + this.noAllData.forEach(item => this.$set(item, 'checked', false)) + this.noData=this.noAllData + } + + } catch (e) { + //TODO handle the exception + console.log(e, 'e'); + } + }, + // 娓呴櫎鍗曟嵁淇℃伅 + onClearContainter() { + this.form={ + no :'', + materialNo:'' + } + this.noData = [] + this.noAllData=[] + this.msg = '' + this.msgType = 'info' + }, + // 鏀惰揣 + async recieve() { + const data = this.noData.filter(item => item.checked) + var content = '' + let result = data.filter(item => item.receivedQty > item.deliveryQty) + if (result.length > 0) { + content = `鐗╂枡${result[0].materialname}鏀惰揣鏁伴噺澶т簬閫佽揣鏁伴噺锛岀‘瀹氭墽琛屾敹璐ф搷浣滃悧锛焋 + } else { + content = '纭畾鎵ц鏀惰揣鎿嶄綔鍚楋紵' + } + uni.showModal({ + title: '鏀惰揣纭', + content, + showCancel: true, + cancelText: '鍙栨秷', + confirmText: '纭畾', + success: async (type) => { + let { + confirm, + cancel + } = type + if (confirm) { + const res = this.noData.filter(item => item.checked) + let data = { + no: this.form.no, + getOrderDetailOutputList: res + } + + try { + await confirmReceipt(data) + uni.showToast({ + title: '鍑鸿揣鎴愬姛', + success: () => { + this.onClearContainter() + this.form={ + no :'', + materialNo:'' + } + } + }) + + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + } + }) + + // this.onClearContainter() + // this.onClearNO() + }, + // 鍒囨崲閫変腑 + checkChange(item) { + item.checked = !item.checked + }, + // 妯$硦鏌ヨ + search(val){ + val=val.trim() + if(val!='') { + const result=this.noAllData.filter(item=>item.materialcode.indexOf(val)!=-1) + this.noData=result.length>0?result:[] + }else { + this.noData=this.noAllData + } + + }, + clear(){ + this.form.materialNo='' + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getLinesOptions() + // this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .forma-item { + margin-bottom: 24rpx; + } + + .only-watch-container { + background-color: #D0DDD8; + min-height: 90rpx; + display: flex; + + &>.label { + color: $u-tips-color; + font-size: 32rpx; + flex-shrink: 0; + padding-left: 20rpx; + padding-top: 22rpx; + } + + &>.content { + width: 1px; + flex-grow: 1; + display: flex; + align-items: center; + font-size: 30rpx; + padding: 8rpx 0; + } + } + + .bottom-btns-row { + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + + .btn-frame { + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + } + + .scan-input-form-item-compontent { + width: 100%; + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + } + + .input-view { + padding-left: 20rpx; + width: 93%; + } + + } + + ::v-deep .u-search__content { + padding: 0 !important; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/receiptExecution/modules/barContent.vue b/PipeLineLems.PDA/pages/receiptExecution/modules/barContent.vue new file mode 100644 index 0000000..0323329 --- /dev/null +++ b/PipeLineLems.PDA/pages/receiptExecution/modules/barContent.vue @@ -0,0 +1,195 @@ +<template> + <!-- --> + <view class="content" :class="content.checked?'content_active':''"> + <view class="detail" @click.stop="$emit('checkChange',content)"> + <view class="row1"> + <view style="display: flex;align-items: center"> + <text class="index">{{index+1}}</text> + <!-- materialcode --> + <text class="id-name">{{content.materialcode}}({{content.materialname}})</text> + </view> + <!-- <view class="tag"> + <u-tag plain size="mini" text="鍏嶆" type="success"></u-tag> + </view> --> + </view> + <view class="row2"> + <u-row> + <u-col span="3">椤圭洰缂栧彿:</u-col> + <u-col span="9">{{content.projectCode}}</u-col> + </u-row> + </view> + <view class="row3"> + <view class="row-content"> + <view class="col-content"> + <view> + <view>閲囪喘鏁伴噺</view> + <view>{{content.qty}}</view> + </view> + </view> + <view class="col-content"> + <view> + <view>閫佽揣鏁伴噺</view> + <view style="text-align: center;color:#F18202">{{content.deliveryQty}}</view> + </view> + </view> + <view class="col-content" style="align-items: center;"> + <view> + <view style="text-align: center;">鏀惰揣鏁伴噺</view> + <view :style="{ width: inputWid(content.receivedQty) ,textAlign:'center',margin:'0 auto'}"> + <input :maxlength="10" @click.native.stop="stop" type="number" v-model="content.receivedQty" + @blur="inputBlur" style="color:#F18202;border-bottom: 1rpx solid #F18202;" /> + </view> + </view> + </view> + </view> + </view> + </view> + <!-- <easy-picker :visible.sync="workingProcedureVisible" :list="workingProcedureList" value-field="value" label-field="label" @select="onChangeInputUser"></easy-picker> --> + </view> +</template> + +<script> + // import EasyPicker from '@/components/EasyPicker.vue' + export default { + // components:{EasyPicker}, + props: { + content: { + type: Object, + required: true + }, + index: { + type: Number, + required: true + } + }, + data() { + return { + workingProcedureVisible: false, + workingProcedureList: [] + } + }, + created() { + // this.getListbycode() + console.log(this.title, 'title') + console.log(this.content, 'content'); + }, + computed: { + inputWid() { + return function(value) { + console.log(String(value).length, 'v'); + if (!value) { + return '30rpx' + } else { + // 鏈夊唴瀹癸紝瀛楃涓查暱搴�*瀛椾綋澶у皬 + return (String(value).length) * 25 + 30 + 'rpx' + } + } + } + }, + methods: { + showWorkingProcedure() { + this.workingProcedureVisible = true + }, + // async getListbycode(){ + // try{ + // let {data}=await listbycode({code:'process_type'}) + // this.workingProcedureList=data + // }catch(e){ + // //TODO handle the exception + // console.log(e); + // } + + // }, + onChangeInputUser(val, valObj, index) { + this.$emit('changeWPCurrent', val) + }, + inputBlur({ + detail + }) { + const { + value + } = detail + if (Math.sign(value)!=1) { + this.content.receivedQty = 1 + } + }, + stop(e) { + if (e) { + e.stopPropagation() + } + } + } + } +</script> + +<style scoped lang="scss"> + .content { + background-color: #fff; + width: 96%; + margin: 18rpx auto; + border: 1rpx solid #fff; + display: flex; + align-items: center; + padding: 5rpx 5rpx 8rpx; + font-size: 30ont30ize-common; + + .detail { + box-sizing: border-box; + flex: 1; + + .row1 { + display: flex; + justify-content: space-between; + margin: 5rpx 0; + + .index { + display: inline-block; + width: 40rpx; + height: 40rpx; + border-radius: 20rpx; + background-color: $color-common; + text-align: center; + color: #fff; + margin-right: 10rpx; + line-height: 40rpx; + } + + .id-name { + font-weight: 700; + font-size: 30rpx; + } + } + + .row2, + .row3 { + color: #bbb; + font-size: 30rpx; + + .row-content { + display: flex; + align-items: flex-start; + + .col-content { + width: 25%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + } + } + } + + .row2{ + margin:8rpx 0; + } + } + } + + .content_active { + border: 1rpx solid #F18202 !important; + } + + ::v-deep uni-input { + font-size: $fontsize-common; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/receiveIn/index.vue b/PipeLineLems.PDA/pages/receiveIn/index.vue new file mode 100644 index 0000000..b538706 --- /dev/null +++ b/PipeLineLems.PDA/pages/receiveIn/index.vue @@ -0,0 +1,567 @@ +<template> + <default-header-page-layout ref="page" title="鏀惰揣鍏ュ簱" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <template v-if="step===1"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏缂栫爜" + v-model="forma.containter" + :msg="msg.containter" + :msg-type="msgType.containter" + @search="onSearchContainter" + @clear="onClearContainter" + /> + <scan-input-form-item + class="forma-item" + label="鐗╂枡缂栫爜" + v-model="forma.material" + :msg="msg.material" + :msg-type="msgType.material" + @search="onSearchMaterial" + @clear="onClearMaterial" + /> + <view class="material-item-group" v-if="list.length>0"> + <view class="material-list-item" v-for="(item,index) in list" :key="'material-list-item-'+index"> + <view class="close-btn" @tap.stop="onDelList(index)"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡缂栧彿锛�</view> + <view class="content auto-wrap">{{item.materialno}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialname}}</view> + </view> + <view class="item-row"> + <view class="label">鎵规鍙凤細</view> + <view class="content auto-wrap">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialspec}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap"> + <input type="number" v-model.trim="item.bindquantity" /> + </view> + </view> + </view> + </view> + </template> + <!-- step 1 end --> + <!-- step 2 start --> + <template v-if="step===2"> + <easy-select-form-item + v-if="stepTwoType==='auto'" + class="forma-item" + label="鍏ュ簱绔欑偣" + :list="selectList.sites" + value-field="siteCode" + label-field="siteName" + v-model="formb.site" + :msg="msg.site" + :msg-type="msgType.site" + @clear="onClearSite" + /> + <scan-input-form-item + v-else + class="forma-item" + label="搴撲綅鍙�" + v-model="formb.placecode" + :msg="msg.placecode" + :msg-type="msgType.placecode" + :has-search="false" + @clear="onCleaPlaceCode" + /> + </template> + <!-- step 2 end --> + </view> + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="step===1"> + <div class="btn-frame left-btn-frame"><u-button text="浠呮敹璐�" :disabled="btnDisabled" @click="onReceive"></u-button></div> + <div class="btn-frame right-btn-frame"><u-button type="primary" text="鍏� 搴�" :disabled="btnDisabled" @click="onNext"></u-button></div> + </template> + <template v-else> + <div class="btn-frame left-btn-frame"><u-button text="涓婁竴姝�" @click="onPrevStep"></u-button></div> + <div class="btn-frame right-btn-frame"><u-button type="primary" text="鎻� 浜�" @click="onSubmit"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { parseDic, $alert, $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultFormA = { + containter:'', + material:'' +} +const defaultFormB = { + site:'', + placecode:'' +} +export default { + name:'receiveInPage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + pageBodyHeight:0, + step:1, + containter:null, + forma:{...defaultFormA}, + formb:{...defaultFormB}, + msg:{ + containter:'', + material:'', + site:'', + placecode:'' + }, + msgType:{ + containter:'info', + material:'error', + site:'error', + placecode:'error' + }, + list:[], + materialDisabled:false, + stepTwoType:'', + selectList:{ + sites:[] + } + } + }, + computed:{ + btnDisabled(){ + let res = true; + if (this.list.length>0) { + res = false; + } + return res; + } + }, + methods:{ + /* 鎵樼洏缂栫爜鎼滅储 */ + onSearchContainter(){ + if (!this.forma.containter) { + this.msgType.containter = 'error' + this.msg.containter = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + this.msg.containter = ''; + this.getContainterInfo() + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainter(){ + this.resetContainter() + }, + /* 鐗╂枡缂栫爜鎼滅储 */ + onSearchMaterial(){ + if (!this.forma.material) { + this.msg.material = '璇疯緭鍏ョ墿鏂欑紪鍙凤紒'; + return false; + } + this.msg.material = '' + this.getMaterialInfo() + }, + /* 娓呴櫎鐗╂枡缂栫爜 */ + onClearMaterial(){ + this.resetMaterial() + }, + /* 娓呴櫎鍏ュ簱绔欑偣 */ + onClearSite(){ + this.resetSite() + }, + /* 娓呴櫎搴撲綅鍙� */ + onCleaPlaceCode(){ + this.resetPlacecode() + }, + /* 鍒犻櫎鐗╂枡鍒楄〃鏌愭潯鏁版嵁 */ + onDelList(index){ + this.list.splice(index,1) + }, + /* 閲嶇疆鎵樼洏缂栫爜 */ + resetContainter(){ + this.msg.containter = ''; + this.forma.containter = '' + this.containter = null; + this.materialDisabled = false; + }, + /* 閲嶇疆鐗╂枡缂栫爜 */ + resetMaterial(){ + this.msg.material = ''; + this.forma.material = '' + }, + /* 閲嶇疆鍏ュ簱绔欑偣 */ + resetSite(){ + this.formb.site = '' + this.msg.site = '' + }, + /* 閲嶇疆搴撲綅鍙� */ + resetPlacecode(){ + this.formb.placecode = '' + this.msg.placecode = '' + }, + /* 閲嶇疆绗簩姝ヨ〃鍗� */ + resetFormB(){ + this.resetSite() + this.resetPlacecode() + }, + /* 椤甸潰閲嶇疆 */ + reset(){ + this.resetContainter() + this.resetMaterial() + this.resetFormB() + this.list = [] + this.stepTwoType = '' + this.step = 1 + }, + /* 鑾峰彇鎵樼洏淇℃伅 */ + getContainterInfo(callback,needloding=true){ + let params = {Containercode:this.forma.containter} + if (needloding) { + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + } + this.$api.get('ContainerInformation',params,{block:'receive',fullRes:true,loading:false}).then((d)=>{ + if (d.data) { + let _temp1 = parseDic(this.$store,'container_type',d.data.wmsContainer.containertype) + let _temp2 = parseDic(this.$store,'container_status',d.data.wmsContainer.containerstatus) + this.msgType.containter = 'info' + this.msg.containter = `鏉愯川锛�${_temp1}锛岀姸鎬侊細${_temp2}`; + this.containter = d.data.wmsContainer + if (d.data.wmsMaterials) { + this.list = d.data.wmsMaterials + } + callback && callback(true) + } else { + this.msgType.containter = 'error' + this.msg.containter = d.message || '鏌ユ棤淇℃伅锛�'; + this.containter = null; + callback && callback(false) + } + if (needloding) { + uni.hideLoading(); + } + }).catch(()=>{ + this.containter = null; + this.list = [] + if (needloding) { + uni.hideLoading(); + } + callback && callback(false) + }) + }, + /* 鑾峰彇鐗╂枡淇℃伅 */ + getMaterialInfo(callback){ + let params = {Materialno:this.forma.material} + this.$api.get('MaterialInformation',params,{block:'receive',fullRes:true}).then((d)=>{ + if (d.data) { + let cf = this.checkMaterialSame(d.data); + if (cf) { + let obj = {...d.data} + obj.bindquantity = 0; + this.list.push(obj) + this.forma.material = '' + callback && callback(true) + } else { + callback && callback(false) + } + } else { + this.msg.material = d.message || '鏌ユ棤淇℃伅锛�'; + callback && callback(false) + } + }).catch((err)=>{ + callback && callback(false) + }) + }, + /* 妫�鏌ユ柊澧炵墿鏂欑殑閲嶅鎬� */ + checkMaterialSame(obj) { + let res = true; + for (let i=0;i<this.list.length;i++) { + if (this.list[i].materialno===obj.materialno && this.list[i].materialbatch===obj.materialbatch && this.list[i].materialspec===obj.materialspec) { + res = false; + break; + } + } + if (!res) { + $alert('宸叉湁鐗╂枡锛屼笉鍙坊鍔狅紒') + } + return res; + }, + /* 楠岃瘉锛氭敹璐с�佺浜屾 */ + checkBeforeNext(){ + let flag=true, msg=""; + + if (this.list.length>0) { + for (let i=0;i<this.list.length;i++) { + if (!this.list[i].bindquantity) { + msg = `璇风‘璁ょ${i+1}绗旂墿鏂欑殑鏁伴噺锛乣 + flag = false; + } + if (flag && Number(this.list[i].bindquantity)!==parseInt(this.list[i].bindquantity)) { + msg = `绗�${i+1}绗旂墿鏂�,鏁伴噺鍙兘鏄鏁存暟锛乣 + flag = false; + } + } + } + + if (!flag && msg) { + $alert(msg) + } + + return flag; + }, + /* 鍝嶅簲鏀惰揣鎸夐挳 */ + onReceive(){ + let cf = this.checkBeforeNext(); + if (!cf) return false; + /* 娉ㄦ剰锛岀敱浜庢敹璐у畬鎴愬悗浼氬啀娆¤皟鐢ㄦ墭鐩樹俊鎭帴鍙f洿鏂版墭鐩樻暟鎹紝鎵�浠ユ澶勬帴鍙h皟鐢ㄥ彇娑堟帴鍙e皝瑁呯殑loading璁剧疆锛屽彲鑷敱鎺у埗鍏ㄥ睆loading */ + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + this.dealReceive((f)=>{ + if (f) { + this.getContainterInfo((f1)=>{ + uni.hideLoading(); + if (f1) { + $successInfo('鏀惰揣鎴愬姛锛�'); + } + },false) + } else { + uni.hideLoading(); + } + }) + }, + /* 鍝嶅簲绗竴姝ユ寜閽� */ + onNext(){ + let cf = this.checkBeforeNext(); + if (!cf) return false; + + uni.showModal({ + content:'璇烽�夋嫨鍏ュ簱鏂瑰紡锛�', + cancelText:'鎵嬪姩鍏ュ簱', + confirmText:'鑷姩鍏ュ簱', + success:(res=>{ + if (res.confirm) { + this.stepTwoType='auto' + this.goStepTwo() + } else if (res.cancel) { + this.stepTwoType='manual' + this.goStepTwo() + } + }) + }) + }, + /* 鍝嶅簲涓婁竴姝ユ寜閽� */ + onPrevStep(){ + this.resetFormB() + this.step=1 + }, + /* 杩涘叆绗簩姝ラ〉闈� */ + goStepTwo(){ + this.step = 2 + if (this.stepTwoType==='auto' && this.selectList.sites.length===0) { + this.$api.get('GetAgvSite',{},{block:'receive'}).then((d)=>{ + this.selectList.sites = d || [] + }).catch((err)=>{}) + } + }, + /* 鍝嶅簲鎻愪氦鎸夐挳 */ + onSubmit(){ + if (this.stepTwoType==='auto') { + if (!this.formb.site) { + this.msg.site = '璇烽�夋嫨鍏ュ簱绔欑偣锛�'; + return false; + } + this.msg.site = '' + } else { + if (!this.formb.placecode) { + this.msg.placecode = '璇疯緭鍏ュ簱浣嶅彿锛�'; + return false; + } + this.msg.placecode = '' + } + + if (this.stepTwoType==='auto') { + this.dealAutoIntrance((f)=>{ + if (f) { + this.reset() + $successInfo('鍏ュ簱鎴愬姛锛�'); + } + }) + } else if (this.stepTwoType==='manual') { + this.dealManualIntrance((f)=>{ + if (f) { + this.reset() + $successInfo('鍏ュ簱鎴愬姛锛�'); + } + }) + } + }, + /* 鏀惰揣鎺ュ彛璋冪敤 */ + dealReceive(callback){ + let params = { + containercode:this.containter.containercode, + wmsMaterials:this.list + } + this.$api.post('AccessoriesReceipt',params,{block:'receive',loading:false}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 鎵嬪姩鍏ュ簱鎺ュ彛璋冪敤 */ + dealManualIntrance(callback){ + let params = { + containercode:this.containter.containercode, + wmsMaterials:this.list, + placecode:this.formb.placecode + } + this.$api.post('AccessoriesManualWare',params,{block:'receive'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 鑷姩鍏ュ簱鎺ュ彛璋冪敤 */ + dealAutoIntrance(callback){ + let params = { + containercode:this.containter.containercode, + wmsMaterials:this.list, + agvSite:this.formb.site + } + this.$api.post('AccessoriesAutoWare',params,{block:'receive'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 0; + background-color: #fff; + .btn-frame{ + width: 50%; + box-sizing: border-box; + } + .left-btn-frame{ + padding-left: 20rpx; + padding-right: 8rpx; + } + .right-btn-frame{ + padding-right: 20rpx; + padding-left: 8rpx; + } +} +.forma-item{ + margin-bottom: 24rpx; +} +.material-item-group{ + background-color: $uni-bg-color; + padding-top: 10rpx; + .material-list-item{ + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + &:last-child{ + border-bottom: 0; + } + .item-row{ + display: flex; + &>.label{ + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + &>.content{ + flex-grow: 1; + color: $u-content-color; + uni-input{ + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + .badge-box{ + position: absolute; + top:8rpx; + left: 8rpx; + z-index: 1; + } + .close-btn{ + $closeBtnSize:70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top:0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + .icon-layer{ + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/replenishMent/index.vue b/PipeLineLems.PDA/pages/replenishMent/index.vue new file mode 100644 index 0000000..56c8a4f --- /dev/null +++ b/PipeLineLems.PDA/pages/replenishMent/index.vue @@ -0,0 +1,392 @@ +<template> + <default-header-page-layout ref="page" title="浜哄伐琛ユ枡"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <!-- <radio-form-item label="鐗╂枡绫诲瀷" :options="MaterialTypeData" v-model="form.materialType" /> --> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" label="浠跺彿" v-model="form.materialNo" /> + <EasyPicker :visible.sync="visible" :list="materialData" labelField="materialNo" valueField="materialNo" + @select="getMaterialNoVal" /> + + <scan-input-form-item disabled placeholder="" :clearable="false" :hasScan="false" :hasSearch="false" + class="forma-item" label="鐗╂枡绫诲瀷" :value="getParseDic('material_type',form.materialType)" /> + + <scan-input-form-item disabled placeholder="" :clearable="false" :hasScan="false" :hasSearch="false" + class="forma-item" label="鐗╂枡鍨嬪彿" :value="getParseDic('material_modal',form.materialModel)" /> + + <scan-input-form-item disabled placeholder="" :clearable="false" :hasScan="false" :hasSearch="false" + class="forma-item" label="鎵�灞炲簱鍖�" :value="getParseDic('material_bigtype',form.areaCodeType)" /> + + <scan-input-form-item class="forma-item" label="鏁伴噺" v-model="form.materialNumber" type="number" + :hasScan="false" :hasSearch='false' @blur="numberBlur" /> + + <!-- <scan-input-form-item class="forma-item" label="浣嶇疆" :hasScan="false" :hasSearch='false' + v-model="form.site" /> --> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visibleSort1=true" class="forma-item" label="鏄惁鑷姩鍑哄簱" v-model="form.sorting" /> + <EasyPicker :visible.sync="visibleSort1" :list="isSorting" labelField="label" valueField="value" + @select="radioChange1" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visibleSort=true" class="forma-item" label="鍑哄簱鐩殑鍦�" v-model="form.toPlace" /> + <EasyPicker :visible.sync="visibleSort" :list="placeList" labelField="code" valueField="code" + @select="radioChange" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="纭� 瀹�" @click="onSubmit" + :disabled="abled"></u-button></div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import RadioFormItem from '@/components/RadioFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import { + getDicList, + parseDic, + $alert, + $successInfo + } from '@/static/js/utils/index.js' + import { + materialStockListNoPage, + addRange + } from '@/api/replenishMent.js' + let initInterVal = null; + export default { + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + RadioFormItem, + EasyPicker + }, + data() { + return { + isSorting: [{ + label: '鏄�', + value: '1' + }, + { + label: '鍚�', + value: '0' + } + ], + pageBodyHeight: 0, + form: { + materialNo: '', + materialModel: '', + materialType: 0, + materialNumber: 0, + areaCodeType: 0, + toPlace:null, + orderType: null, + sorting: null + }, + // msg: { + // material: '', + // }, + // msgType: { + // containter: 'info', + // material: 'error', + // site: 'error' + // }, + materialData: [], + visible: false, + visibleSort: false, + visibleSort1:false, + // materialModalData: [], + // materialType: [], + placeList: [] + } + }, + computed: { + + abled() { + return !Boolean(this.form.materialNo); + }, + + }, + created() { + this.getMaterialNoList() + }, + watch: { + 'form.materialNo': { + handler(val, oldVal) { + if (this.form.areaCodeType == 1 && this.form.materialType == 1) { + this.placeList = [{ + code: '5080UP01' + }, + { + code: '5080UP02' + } + ] + } else if (this.form.areaCodeType == 1 && this.form.materialType == 3) { + this.placeList = [{ + code: '3090UP01' + }, + { + code: '3090UP02' + } + ] + } else { + this.placeList = [{ + code: 'WXJ-KTXLD' + }] + } + + console.log(this.placeList,'placeList'); + + }, + } + }, + methods: { + // 鑾峰彇瀛楀吀鍊� + getParseDic(enumType, val) { + var res = parseDic(this.$store, enumType, val) + return res == '鏃犳瀛楀吀' ? '' : res + }, + // 鑾峰彇浠跺彿鍊� + getMaterialNoVal(val, item) { + this.form.materialNo = val + this.form.materialModel = item.materialModel + this.form.materialType = item.materialType + this.form.stockNumber = item.stockNumber + this.form.containerNo = item.containerNo + this.form.materialName = item.materialName + this.form.areaCodeType = item.areaCodeType + }, + // 鏁伴噺杈撳叆妗嗗け鍘荤劍鐐� + numberBlur(val) { + if (val < 1) { + $alert("鏁伴噺涓嶈兘灏忎簬1") + this.form.materialNumber = 0 + } else if (val > this.form.stockNumber) { + $alert("褰撳墠浠跺彿鍦ㄥ簱瀛橀噺涓�" + this.form.stockNumber) + this.form.materialNumber = 0 + } else { + this.form.materialNumber = val + } + }, + // 鑾峰彇浠跺彿鍒楄〃 + async getMaterialNoList() { + try { + let { + result + } = await materialStockListNoPage() + this.materialData = result + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + // 鏄惁鍒嗘嫞 + radioChange(val, b) { + this.form.toPlace = val + }, + radioChange1(val, b) { + this.form.orderType = val + this.form.sorting=b.label + }, + // 鎻愪氦 + async onSubmit() { + + var { + form + } = this + if (form.materialNumber <= 0) { + return $alert('璇疯緭鍏ョ墿鏂欐暟閲忥紒') + } + if (!Boolean(form.sorting)) { + return $alert('璇烽�夋嫨鏄惁鑷姩鍑哄簱锛�') + } + if (!Boolean(form.toPlace)) { + return $alert('璇烽�夋嫨鍑哄簱鐩殑鍦帮紒') + } + var { + materialNo, + materialModel, + materialNumber, + materialType, + materialName, + orderType, + containerNo, + toPlace + } = form + orderType = orderType == 1 ? orderType : 3; + let data = { + orderType, + orderSource: 2, + addInAndOutOrderMaterials: [{ + materialNo, + materialModel, + materialNumber, + materialType, + materialName, + containerNo, + toPlace + }] + } + try { + await addRange(data) + $alert("鎻愪氦鎴愬姛") + this.form = { + materialNo: '', + materialModel: '', + containerNo: '', + materialType: 0, + materialNumber: 0, + orderType: null, + sorting: null + } + this.getMaterialNoList() + } catch (e) { + //TODO handle the exception + } + // addRange + }, + + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/sandingInstore/index.vue b/PipeLineLems.PDA/pages/sandingInstore/index.vue new file mode 100644 index 0000000..dccccea --- /dev/null +++ b/PipeLineLems.PDA/pages/sandingInstore/index.vue @@ -0,0 +1,417 @@ +<template> + <default-header-page-layout ref="page" title="鐮傚厜鍏ュ簱" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <view class="sanding-in-page-content"> + <view class="top-view"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + + <scan-input-form-item + label="鐗╂枡鐮�" + v-model="form.material" + :msg="msg.material" + @search="onSearchMaterial" + @clear="onClearMaterial" + /> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <uni-swipe-action-item :auto-close="false"> + <view class="list-item-show"> + <view class="first-row"> + <view class="index-view"> + <uni-badge :text="list.length-index" type="primary" size="normal" /> + </view> + <view class="content-view auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄</view> + <view class="content">{{item.long}}*{{item.wide}}*{{item.high}}</view> + </view> + <view class="btns-row"> + <view :class="['check-btn',item.isSending?'active-btn':'']" @tap.stop="onChangeSanding(item,index,1)">宸茬爞鍏�</view> + <view :class="['check-btn',!item.isSending?'active-btn':'']" @tap.stop="onChangeSanding(item,index,0)">鏈爞鍏�</view> + </view> + </view> + <template v-slot:right> + <view class="swipe-action-btn danger" @tap.stop="onDel(index)"><text>鍒犻櫎</text></view> + </template> + </uni-swipe-action-item> + </view> + </view> + <!-- ########### --> + </view> + <view class="end-view"> + <easy-select-form-item + label="璧峰浣嶇疆" + v-model="form.stationCode" + :list="selectOptions.startPlaces" + value-field="stationCode" + label-field="stationName" + :clearable="false" + /> + </view> + </view> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"><u-button text="缁� 鐩�" @click="onBind"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鍏� 搴�" @click="onConfirm"></u-button></view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { $alert, $successInfo, parseDic } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + container:'', + material:'', + stationCode:'' +} +export default { + name:'sandingInstorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + pageBodyHeight:0, + form:{...defaultForm}, + msg:{ + container:'', + material:'' + }, + msgType:{ + container:'error' + }, + container:null, + list:[], + selectOptions:{ + startPlaces:[] + } + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainterInfo() + }, + onClearContainer(){ + this.clearFullContainer() + }, + onSearchMaterial(){ + if (!this.form.material) { + this.msg.material = '璇疯緭鍏ョ墿鏂欑爜锛�'; + return false; + } + if (!this.form.container) { + this.clearMaterial() + $alert('璇峰厛褰曞叆鎵樼洏淇℃伅锛�') + return false; + } + this.msg.material = ''; + this.getMaterialInfo() + }, + onClearMaterial(){ + this.clearMaterial() + }, + clearPage(){ + this.clearFullContainer() + this.clearMaterial() + this.clearStartPlace() + }, + clearFullContainer(){ + this.clearContainter() + this.clearBackContainer() + }, + clearContainter(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + clearMaterial(){ + this.form.material = '' + this.msg.material = '' + }, + clearStartPlace(){ + if (this.selectOptions.startPlaces.length!==1) { + this.form.stationCode = '' + } + }, + getContainterInfo(){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('SandGetContainer',params,{block:'sandingIn',warn:false,fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + } else { + this.clearBackContainer() + __setErrMessage(d.message) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + } + }).catch(_errmsg=>{ + this.clearBackContainer() + __setErrMessage(_errmsg) + }) + }, + getMaterialInfo(){ + let params = {MaterialNo :this.form.material} + this.$api.get('SandGetMaterial',params,{block:'sandingIn',warn:false}).then(d=>{ + if (d) { + d.isSending = 1 + this.list.unshift(d) + } + }).catch(_errmsg=>{ + this.msg.material = _errmsg + }) + }, + onChangeSanding(obj,index,val){ + if (Boolean(obj.isSending)===Boolean(val)) return false + obj.isSending = val + this.$set(this.list,index,obj) + }, + onDel(index){ + this.list.splice(index,1) + }, + onBind(){ + this.dealBind((f)=>{ + if (f) { + $successInfo('缁勭洏鎴愬姛') + } + }) + }, + onConfirm(){ + this.dealConfirm((f)=>{ + if (f) { + $successInfo('鍏ュ簱鎴愬姛') + this.clearPage() + } + }) + }, + /* 缁勭洏鎺ュ彛璋冪敤 */ + dealBind(callback){ + let params = this.getSubmitParams('bind') + this.$api.post('SandBindEntrance',params,{block:'sandingIn'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 鎻愪氦鎺ュ彛璋冪敤 */ + dealConfirm(callback){ + let params = this.getSubmitParams() + this.$api.post('SandAutoWare',params,{block:'sandingIn'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + getSubmitParams(type='confirm'){ + let res = { + containerCode:this.container?this.container.containerCode:null, + wmsMaterials:this.list + } + if (type==='confirm') { + res.stationCode = this.form.stationCode + } + return res + }, + getStartOptions(){ + this.$api.get('StarPlaceList',{},{block:'sandingIn'}).then(d=>{ + this.selectOptions.startPlaces = d || [] + if (this.selectOptions.startPlaces.length===1) { + this.form.stationCode = this.selectOptions.startPlaces[0].stationCode + } + }).catch(ex=>{ + console.log(ex) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getStartOptions() + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.sanding-in-page-content{ + height: 100%; + display: flex; + flex-direction: column; + &>.top-view,&>.end-view{ + flex-shrink: 0; + } + &>.end-view{ + padding: 8rpx 0 16rpx 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group { + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + &:last-child{ + margin-bottom: 0; + } + } + } + } + .forma-item{ + margin-bottom: 24rpx; + } + .list-item-show{ + background-color: $uni-bg-color; + .first-row, .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + } + .first-row { + display: flex; + .index-view{ + flex-shrink: 0; + padding: 16rpx 4rpx 0 16rpx; + } + .content-view{ + flex-grow: 1; + width: 1px; + font-size: 32rpx; + padding: 16rpx 8rpx; + line-height: 1.3em; + } + } + .item-row{ + display: flex; + padding: 0 16rpx; + font-size: 1.1em; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + } + .btns-row{ + display: flex; + align-items: center; + justify-content: space-around; + padding: 16rpx 0; + .check-btn { + background-color: $uni-text-color-grey; + color: $uni-text-color-inverse; + font-size: 1.3em; + padding: 10rpx 40rpx; + border-radius: 8rpx; + cursor: pointer; + &.active-btn { + background-color: $uni-color-primary; + } + } + } + } +} +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +.swipe-action-btn{ + display: flex; + color: $uni-bg-color; + background-color: $u-primary; + justify-content: center; + align-items: center; + height: 100%; + width: 100rpx; + &.danger{ + background-color: $u-error; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/setting/host.vue b/PipeLineLems.PDA/pages/setting/host.vue new file mode 100644 index 0000000..c38c398 --- /dev/null +++ b/PipeLineLems.PDA/pages/setting/host.vue @@ -0,0 +1,90 @@ +<template> + <header-page-layout ref="header" title="鎺ュ彛鍩熷悕璁剧疆" base-background-color="#f8f8ff" background-color="#ffffff" @headerclick="onHeaderClick"> + <template v-slot:headerleft><u-icon name="arrow-left"></u-icon></template> + <view class="setting-host-page page-padding"> + <u--form ref="form" :model="form" :rules="rules" :labelWidth="0"> + <u-form-item prop="host"> + <u--input v-model.trim="form.host" clearable placeholder="璇疯緭鍏ュ煙鍚�"></u--input> + </u-form-item> + </u--form> + </view> + <template v-slot:footer> + <view class="page-padding page-footer-padding"> + <u-button type="primary" text="淇� 瀛�" @click="onSave"></u-button> + </view> + </template> + </header-page-layout> +</template> + +<script> +import HeaderPageLayout from '@/components/HeaderPageLayout.vue' +export default { + name:'hostSettingPage', + components:{HeaderPageLayout}, + data(){ + return { + form:{ + host:'' + }, + rules:{ + host:{ + trigger:['blur'], + required: true, + message:'璇疯緭鍏ュ煙鍚嶏紒' + } + } + } + }, + methods:{ + onHeaderClick(type){ + if (type==='left') { + this.goBack() + } + }, + goBack(){ + uni.redirectTo({url:this.$config.path.login}) + }, + onSave(){ + this.$refs.form.validate().then(res=>{ + let newHost = this.form.host; + if (newHost.substr(newHost.length-1)==='/'){ + newHost = newHost.substr(0,newHost.length-1) + } + this.$store.commit('system/setdefaultHost',newHost) + + uni.showToast({ + icon:'success', + title: '淇濆瓨鎴愬姛' + }); + + this.goBack() + }).catch(errors=>{ + + }) + } + }, + onReady() { + let shost = this.$store.getters['system/getdefaultHost']; + if (!shost) { + shost = this.$config.ajax.host.default; + } + this.form.host = shost + } +} +</script> + +<style lang="scss" scoped> +.header-icon-btn{ + font-size: 1.3rem; +} +.page-padding{ + padding: 0 30rpx; +} +.page-footer-padding{ + padding-top: 20rpx; + padding-bottom: 20rpx; +} +.setting-host-page{ + padding-top: 30rpx; +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/slicingOff/index.vue b/PipeLineLems.PDA/pages/slicingOff/index.vue new file mode 100644 index 0000000..ac4b31f --- /dev/null +++ b/PipeLineLems.PDA/pages/slicingOff/index.vue @@ -0,0 +1,194 @@ +<template> + <default-header-page-layout :full="false" ref="page" title="绌烘墭鍑哄簱" base-background-color="#f0f8ff" + background-color="#fff"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <view class="scan-input-form-item-compontent"> + <view class="p-form-label">绌烘墭鏁伴噺锛�</view> + <view class="input-row"> + <!-- <view class="mask" @tap.stop="" v-if="disabled"></view> --> + <view class="input-view"> + <u-input clearable border="none" type="number" placeholder="璇疯緭鍏ョ┖鎵樻暟閲�" v-model="form.qty" /> + </view> + </view> + </view> + + </view> + + </view> + + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"> + <u-button @click="containerOut" :disabled="!Boolean(form.qty)||form.qty<=0||form.qty%1 != 0" size="large" text="绌烘墭鍑哄簱" type="primary"></u-button> + </div> + + </template> + </view> + </template> + </default-header-page-layout> +</template> +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import {PdaContainerOut} from '@/api/slicingOff.js' + import { + $alert, + $successInfo + } from '@/static/js/utils/index.js' + let initInterVal = null; + export default { + name: 'slicingOffPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow + }, + data() { + return { + pageBodyHeight: 0, + form:{} + } + }, + methods: { + // 绌烘墭鍑哄簱 + async containerOut(){ + try{ + await PdaContainerOut({qty:this.form.qty}) + $successInfo('鍑哄簱鎴愬姛') + this.form={} + }catch(e){ + //TODO handle the exception + console.log(e); + } + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + }, + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> +<style lang="scss" scoped> + .bottom-btns-row { + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + + .btn-frame { + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + + .divider { + width: 20rpx; + flex-shrink: 0; + } + } + + .scan-input-form-item-compontent { + width: 100%; + + .p-form-label { + font-size: 32rpx; + color: $u-tips-color; + padding-bottom: 12rpx; + padding-left: 20rpx; + } + + .input-row { + width: 100%; + height: 90rpx; + overflow: hidden; + background-color: $uni-bg-color; + display: flex; + align-items: center; + position: relative; + + .scan-view, + .btn-view { + flex-shrink: 0; + } + + .scan-view { + display: flex; + align-items: center; + justify-content: center; + padding-right: 10rpx; + } + + .input-view { + flex-grow: 1; + padding-left: 20rpx; + } + + .btn-view { + width: 70rpx; + height: 100%; + padding: 20rpx; + padding-left: 0rpx; + box-sizing: border-box; + + .search-btn { + height: 100%; + width: 100%; + border-radius: 8rpx; + background: linear-gradient(157.342820970935deg, rgba(194, 128, 255, 1) -20%, rgba(194, 128, 255, 1) -19%, rgba(132, 0, 255, 1) 119%); + display: flex; + align-items: center; + justify-content: center; + color: $uni-bg-color; + font-size: 26rpx; + } + } + + &>.mask { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 100; + background-color: #000; + opacity: 0.25; + } + } + + .msg-row { + padding: 6rpx 20rpx 0 20rpx; + line-height: 1.3; + font-size: 24rpx; + color: $u-error; + + &.info-type { + color: $color-blue; + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/slicingOff/modules/detail.vue b/PipeLineLems.PDA/pages/slicingOff/modules/detail.vue new file mode 100644 index 0000000..271c611 --- /dev/null +++ b/PipeLineLems.PDA/pages/slicingOff/modules/detail.vue @@ -0,0 +1,85 @@ +<template> + <view class="slicing-off-detail-page-content"> + <!-- ########### --> + <view class="list-items-group"> + + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <uni-swipe-action-item :auto-close="false"> + <view class="list-item-show"> + <view class="index-view"> + <uni-badge :text="list.length-index" type="primary" size="normal" /> + </view> + <view class="content-view auto-wrap">{{item.materialno}}</view> + </view> + <template v-slot:right> + <view class="swipe-action-btn danger" @tap.stop="onDel(index)"><text>鍒犻櫎</text></view> + </template> + </uni-swipe-action-item> + </view> + + </view> + </view> +</template> + +<script> +export default { + name:'slicingOffDetailPageContent', + emits:['listChange'], + data(){ + return { + list:[] + } + }, + methods:{ + init(arr) { + this.list = arr + }, + onDel(index) { + this.list.splice(index,1) + this.$emit('listChange',this.list) + } + } +} +</script> + +<style lang="scss" scoped> +.slicing-off-detail-page-content { + height: 100%; + overflow: auto; + .list-items-group{ + .list-item { + margin-bottom: 12rpx; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + display: flex; + .index-view{ + flex-shrink: 0; + padding: 16rpx 4rpx 0 16rpx; + } + .content-view{ + flex-grow: 1; + width: 1px; + font-size: 32rpx; + padding: 16rpx 8rpx; + line-height: 1.3em; + } + } + .swipe-action-btn{ + display: flex; + color: $uni-bg-color; + background-color: $u-primary; + justify-content: center; + align-items: center; + height: 100%; + width: 100rpx; + &.danger{ + background-color: $u-error; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/slicingOff/modules/main.vue b/PipeLineLems.PDA/pages/slicingOff/modules/main.vue new file mode 100644 index 0000000..13ac4f3 --- /dev/null +++ b/PipeLineLems.PDA/pages/slicingOff/modules/main.vue @@ -0,0 +1,470 @@ +<template> + <view class="slicing-off-main-page-content"> + <easy-select-form-item + class="forma-item" + label="璧峰绔欑偣" + v-model="form.stationCode" + :msg="msg.stationCode" + :list="startStationList" + :clearable="false" + value-field="stationCode" + label-field="stationName" + @select="onStartSelect" + /> + <view v-if="selectContainer && form.stationCode" class="only-watch-container forma-item"> + <view class="label">鎵樼洏鐮侊細</view> + <view class="content auto-wrap">{{selectContainer}}</view> + </view> + <scan-input-form-item + v-if="!selectContainer && form.stationCode" + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @change="onChangeContainer" + /> + <scan-input-form-item + v-if="form.stationCode" + class="forma-item" + label="娉℃搏鐮�" + v-model="form.material" + :msg="msg.material" + @search="onSearchMaterial" + @change="onChangeMaterial" + /> + <view class="view-materials-btn" v-if="list.length>0" @tap.stop="onViewDetail">鏌ョ湅娉℃搏鏉胯鎯�({{list.length}})</view> + <scan-input-form-item + v-if="list.length>0 && container" + class="forma-item" + label="鑸瑰彿" + v-model="form.shipNo" + :msg="msg.shipNo" + :has-scan="false" + :has-search="false" + /> + <scan-input-form-item + v-if="list.length>0 && container" + class="forma-item" + label="鍥惧彿" + v-model="form.drawingNo" + :msg="msg.drawingNo" + :has-scan="false" + :has-search="false" + /> + <long-width-height-form-item + v-if="list.length>0 && container" + class="forma-item" + label="娉℃搏灏哄" + :long.sync="sizeform.long" + :width.sync="sizeform.width" + :height.sync="sizeform.height" + :msg="msg.spec" + /> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import LongWidthHeightFormItem from '@/pages/components/LongWidthHeightFormItem.vue' +import { $alert, parseDic } from '@/static/js/utils/index.js' +const defaultForm = { + stationCode:'', + container:'', + material:'', + drawingNo:'', + shipNo:'' +} +const defaultSizeForm = { + long:0, + width:0, + height:0 +} +export default { + name:'slicingOffMainPageContent', + emits:['pageChange'], + components:{ScanInputFormItem,LongWidthHeightFormItem,EasySelectFormItem}, + data(){ + return { + form: {...defaultForm}, + msg:{ + stationCode:'', + container:'', + material:'', + drawingNo:'', + spec:'', + shipNo:'' + }, + msgType:{ + container:'error' + }, + list:[], + startStationList:[], + selectContainer:'', + container:null, + sizeform:{...defaultSizeForm} + } + }, + watch:{ + 'sizeform.long'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'sizeform.width'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'sizeform.height'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.shipNo'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchShipNo() + } + }, + 'form.drawingNo'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchDrawingNo() + } + }, + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainerInfo() + }, + onChangeContainer(){ + if (!this.form.container) { + this.clearFullContainer() + } else if (this.form.container.length===8) { + this.msg.container = ''; + this.getContainerInfo() + } + }, + clearStationCode(clearmsg=true){ + this.form.stationCode = '' + this.selectContainer = '' + if (clearmsg) { + this.msg.stationCode = '' + } + }, + clearFullContainer(){ + this.clearContainer() + this.clearBackContainer() + }, + onSearchMaterial(){ + if (!this.form.material) { + this.msgType.material = 'error' + this.msg.material = '璇疯緭鍏ユ场娌爜锛�'; + return false; + } + if (!this.selectContainer && !this.form.container) { + this.clearMaterial() + $alert('璇峰厛褰曞叆鎵樼洏淇℃伅锛�') + return false; + } + this.msg.material = ''; + this.addMaterial() + }, + onChangeMaterial(){ + this.msg.material = ''; + if (this.form.material.length===16) { + if (!this.selectContainer && !this.form.container) { + this.clearMaterial() + $alert('璇峰厛褰曞叆鎵樼洏淇℃伅锛�') + return false; + } + this.addMaterial() + } + }, + onStartSelect(val,obj){ + this.selectContainer = obj.containerCode + this.getContainerInfoBySelectStation() + }, + clearContainer(){ + this.form.container = '' + this.msg.container = '' + }, + clearMaterial(){ + this.form.material = '' + this.msg.material = '' + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + addMaterial(){ + let f = this.checkMaterialIn() + if (f) { + this.msg.material = '閲嶅娣诲姞' + } else { + let obj = {materialno:this.form.material} + this.list.unshift(obj) + this.clearMaterial() + } + }, + checkMaterialIn(){ + let res = false; + for (let i=0;i<this.list.length;i++) { + if (this.form.material===this.list[i].materialno) { + res = true + break; + } + } + return res + }, + getContainerInfoBySelectStation(){ + if (this.selectContainer) { + this.getContainerInfo() + } else { + this.clearFullContainer() + } + }, + getStartStationList(callback){ + this.$api.get('StarPlaceList',{},{block:'offline',loading:false,warn:false}).then((d)=>{ + this.startStationList = d || [] + if (this.startStationList.length===1){ + this.form.stationCode = this.startStationList[0].stationCode + this.msg.stationCode = '' + this.selectContainer = this.startStationList[0].containerCode + } else { + this.clearStationCode(true) + this.clearFullContainer() + } + callback && callback(true) + }).catch(errmsg=>{ + this.msg.stationCode = errmsg + this.startStationList = [] + this.clearStationCode(false) + this.clearFullContainer() + callback && callback(false) + }) + }, + getContainerInfo(callback,needLoding=true) { + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + if (this.selectContainer) { + $alert(__msg) + } else { + this.msgType.container = 'error' + this.msg.container = __msg; + } + }.bind(this) + let params = {} + if (this.selectContainer) { + params.ContainerCode = this.selectContainer + } else { + params.ContainerCode = this.form.container + } + this.$api.get('ContainerInformation',params,{block:'offline',loading:needLoding,warn:false,fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + if (this.list.length>0){ + if (this.list[0].long) { + this.sizeform.long = this.list[0].long + } + if (this.list[0].wide) { + this.sizeform.width = this.list[0].wide + } + if (this.list[0].high) { + this.sizeform.height = this.list[0].high + } + if (this.list[0].drawingNo) { + this.form.drawingNo = this.list[0].drawingNo + } + if (this.list[0].shipNo) { + this.form.shipNo = this.list[0].shipNo + } + } + if (!this.selectContainer) { + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + } + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage(_errmsg) + callback && callback(false) + }) + }, + getSubmitParams(){ + return { + list:this.list, + drawingNo:this.form.drawingNo, + shipNo:this.form.shipNo, + long:this.sizeform.long, + wide:this.sizeform.width, + high:this.sizeform.height, + container:this.container, + stationCode:this.form.stationCode + } + }, + checkSubmit(submitType="confirm") { + let res = {flag:true,data:{}} + res.data = this.getSubmitParams() + if (!res.data.stationCode) { + this.msg.stationCode = '璇烽�夋嫨璧峰绔欑偣锛�' + res.flag = false + } else { + this.msg.stationCode = '' + } + if (res.flag && (!res.data.container)) { + const msgtext = '璇峰厛褰曞叆鎵樼洏淇℃伅锛�' + if (!this.selectContainer) { + this.msg.container = msgtext + this.msgType.container = 'error' + } else { + $alert(msgtext) + } + res.flag = false + } else { + this.msg.container = '' + } + if (res.flag && res.data.list.length<=0) { + $alert('璇峰綍鍏ユ场娌暟鎹紒') + res.flag = false + } + if (res.flag && !res.data.shipNo) { + this.msg.shipNo = '璇峰厛褰曞叆鑸瑰彿锛�' + res.flag = false + } else { + this.msg.shipNo = '' + } + if (res.flag && !res.data.drawingNo) { + this.msg.drawingNo = '璇峰厛褰曞叆鍥惧彿锛�' + res.flag = false + } else { + this.msg.drawingNo = '' + } + if (res.flag && (!res.data.long || !res.data.wide || !res.data.high)) { + this.msg.spec = '璇峰厛褰曞叆娉℃搏灏哄锛�' + res.flag = false + } else { + this.msg.spec = '' + } + return res; + }, + watchSpec(){ + if (this.sizeform.long && this.sizeform.width && this.sizeform.height) { + this.msg.spec = '' + } + }, + watchDrawingNo(){ + if(this.form.drawingNo) { + this.msg.drawingNo = '' + } else { + this.msg.drawingNo = '璇峰厛褰曞叆鍥惧彿锛�' + } + }, + watchShipNo(){ + if(this.form.shipNo) { + this.msg.shipNo = '' + } else { + this.msg.shipNo = '璇峰厛褰曞叆鑸瑰彿锛�' + } + }, + onViewDetail(){ + this.$emit('pageChange',this.list) + }, + clear(){ + this.clearContainer() + this.clearMaterial() + this.clearBackContainer() + }, + init(){ + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + this.getStartStationList((f)=>{ + if (f) { + if (this.selectContainer) { + this.getContainerInfo(()=>{ + uni.hideLoading(); + },false) + } else { + uni.hideLoading(); + } + } else { + uni.hideLoading(); + } + }) + }, + listChange(arr){ + this.list = arr + } + }, + mounted() { + this.init() + } +} +</script> + +<style lang="scss" scoped> +.slicing-off-main-page-content { + height: 100%; + overflow: auto; + .forma-item{ + margin-bottom: 24rpx; + } + .view-materials-btn{ + height: 90rpx; + box-sizing: border-box; + border-style: solid; + border-color: $uni-border-1; + border-width: 2rpx 0 2rpx 0; + display: flex; + align-items: center; + justify-content: center; + background-color: $uni-color-primary; + color: $uni-bg-color; + margin-bottom: 24rpx; + } + .only-watch-container{ + background-color: #D0DDD8; + min-height: 90rpx; + display: flex; + &>.label{ + color: $u-tips-color; + font-size: 32rpx; + flex-shrink: 0; + padding-left: 20rpx; + padding-top: 22rpx; + } + &>.content{ + width: 1px; + flex-grow: 1; + display: flex; + align-items: center; + font-size: 30rpx; + padding: 8rpx 0; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/slicingOff/modules/step2.vue b/PipeLineLems.PDA/pages/slicingOff/modules/step2.vue new file mode 100644 index 0000000..c2405d0 --- /dev/null +++ b/PipeLineLems.PDA/pages/slicingOff/modules/step2.vue @@ -0,0 +1,71 @@ +<template> + <view class="slicing-off-step2-page-content"> + <easy-select-form-item + class="forma-item" + label="鍏ュ簱鏂瑰紡" + v-model="form.taskModel" + :list="selectList.models" + value-field="code" + label-field="name" + :clearable="false" + /> + + <scan-input-form-item + label="鐩爣浣嶇疆" + v-model="form.toPlaceCode" + :has-scan="false" + :has-search="false" + /> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { getDicList } from '@/static/js/utils/index.js' +const defaultForm = { + taskModel:'2', + toPlaceCode:'' +} +export default { + name:'slicingOffStep2PageContent', + components:{ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + form: {...defaultForm}, + selectList:{ + startStations:[], + models:[] + } + } + }, + methods:{ + init(){ + this.getActionTypes() + }, + getActionTypes(){ + if (this.selectList.models.length>0) { + callback && callback(true) + } else { + this.selectList.models = getDicList(this.$store,'assemble_taskmodel') + } + }, + clear(){ + this.form = {...defaultForm} + }, + get(){ + return {...this.form} + } + } +} +</script> + +<style lang="scss" scoped> +.slicing-off-step2-page-content{ + height: 100%; + overflow: auto; + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/slicingOn/index.vue b/PipeLineLems.PDA/pages/slicingOn/index.vue new file mode 100644 index 0000000..26926fd --- /dev/null +++ b/PipeLineLems.PDA/pages/slicingOn/index.vue @@ -0,0 +1,254 @@ +<template> + <default-header-page-layout ref="page" title="鍒嗘嫞"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <scan-input-form-item :msgType='msgType' class="forma-item" label="鎵樼洏缂栧彿" v-model="form.containerCode " + :msg="msg" @search="onSearchContainter" @clear="onClearContainter" /> + <scan-input-form-item v-show="Boolean(form.orderNo)" placeholder="" disabled :hasScan="false" :hasSearch="false" class="forma-item" label="鍗曟嵁鍙�" + :value="form.orderNo" @search="onSearchNO" @clear="onClearNO" /> + + <view v-if="true"> + <view v-for="(item,index) in wmsSortOrderList" :key="index"> + <bar-content :index="index" :content="item"></bar-content> + </view> + + </view> + </view> + + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"> + <!-- --> + <u-button :disabled="!bindIn" @click="onSubmit" type="primary" text="鎻� 浜�"> + </u-button> + </view> + </view> + </template> + </default-header-page-layout> +</template> +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import barContent from './modules/barContent.vue' + import { + $alert, + $successInfo + } from '@/static/js/utils' + import { + SortSure, + GetSortInfo + } from '@/api/slicingOn.js' + import { + getSysEnumData + } from '@/api/common.js' + const defaultForm = { + code: '', + material: '' + } + let initInterVal = null; + + export default { + name: 'slicingOnPage', + components: { + DefaultHeaderPageLayout, + ScanInputFormItem, + ActionUserRow, + barContent + }, + data() { + return { + pageBodyHeight: 0, + form: { + containerCode: '', + orderNo: '' + }, + msg: '', + msgType: 'info', + ContainerStatus: [], + wmsSortOrderList:[], + wmsContainer:{} + } + }, + computed:{ + bindIn(){ + return Boolean(this.wmsContainer.containerCode) + } + }, + methods: { + // 鑾峰彇鎵樼洏淇℃伅 + onSearchContainter(containerCode) { + if (containerCode) { + this.form.containerCode = containerCode + } + const param = { + containerCode: this.form.containerCode + } + GetSortInfo(param).then(res => { + const { + data + } = res + console.log(res, 'res'); + if (Boolean(data) && Boolean(data.wmsContainer) && data.wmsSortOrderList.length > 0) { + const { + wmsSortOrderList, + wmsContainer + } = data + this.wmsSortOrderList=wmsSortOrderList + this.wmsContainer=wmsContainer + this.form.orderNo = wmsSortOrderList[0].orderNo + // this.contaninerData = res.data + // const containterDetail = this.contaninerData.wmsContainer || {} + // this.wmsMaterials=this.contaninerData.wmsMaterials||[] + // this.noData.forEach(item=>{ + // const result=this.wmsMaterials.filter(obj => obj.materialName == item.materialname) + // if(result.length>0) { + // this.$set(item, 'checked', true) + // this.$set(item,'qty',result[0].bindQuantity) + // }else { + // this.$set(item, 'checked', false) + // } + + // }) + const result = this.ContainerStatus.filter(item => item.code == wmsContainer + .containerStatus) + var containerStatusName = '' + if (result.length > 0) { + containerStatusName = result[0].value + } + this.msgType = 'info' + this.msg = + `灏哄锛�${wmsContainer.specLength+'*'+wmsContainer.specWidth+'*'+wmsContainer.specHeight}锛岀姸鎬侊細${containerStatusName}` + } else { + this.msg = res.message + this.msgType = 'error' + } + }) + }, + // 娓呴櫎鎵樼洏淇℃伅 + onClearContainter() { + this.form={ + containerCode: '', + orderNo: '' + } + this.msg = '' + this.msgType = 'info' + this.wmsSortOrderList=[] + this.wmsContainer={} + }, + // 鑾峰彇鏋氫妇淇℃伅 + async getSysEnumData() { + try { + let { + data + } = await getSysEnumData({ + enumName: 'ContainerStatus' + }) + this.ContainerStatus = data + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + + // 纭鎻愪氦 + async onSubmit() { + uni.showModal({ + title: '鍒嗘嫞纭', + content: '纭畾鎵ц鍒嗘嫞鎿嶄綔鍚楋紵', + showCancel: true, + cancelText: '鍙栨秷', + confirmText: '纭畾', + success: async (type) => { + let { + confirm, + cancel + } = type + if (confirm) { + const {wmsContainer,wmsSortOrderList}=this + let data={wmsContainer,wmsSortOrderList} + try{ + await SortSure(data) + uni.showToast({ + title: '鍒嗘嫞鎴愬姛', + success: () => { + this.onClearContainter() + } + }) + }catch(e){ + //TODO handle the exception + } + + } + } + }) + + + }, + + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + }, + + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getSysEnumData() + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> +<style lang="scss" scoped> + .bottom-btns-row { + padding: 10rpx; + background-color: $uni-bg-color; + } + + .forma-item { + margin-bottom: 24rpx; + } + + .slicing-on-page-content { + height: 100%; + display: flex; + flex-direction: column; + + &>.top-view { + flex-shrink: 0; + } + + &>.list-view { + height: 1px; + overflow: auto; + flex-grow: 1; + + .list-items-group { + padding-top: 24rpx; + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/slicingOn/modules/barContent.vue b/PipeLineLems.PDA/pages/slicingOn/modules/barContent.vue new file mode 100644 index 0000000..3a98d19 --- /dev/null +++ b/PipeLineLems.PDA/pages/slicingOn/modules/barContent.vue @@ -0,0 +1,179 @@ +<template> + <!-- --> + <view class="content" > + <view class="detail"> + <view class="row1"> + <view style="display: flex;align-items: center"> + <text class="index">{{index+1}}</text> + <!-- materialcode --> + <text class="id-name">{{content.materialcode}}({{content.materialname}})</text> + </view> + <!-- <view class="tag"> + <u-tag plain size="mini" text="鍏嶆" type="success"></u-tag> + </view> --> + </view> + <view class="row2"> + <u-row> + <u-col span="3">椤圭洰缂栧彿:</u-col> + <u-col span="9">{{content.projectCode}}</u-col> + </u-row> + </view> + <view class="row3"> + <view class="row-content"> + <view class="col-content"> + <view> + <view>ta鍙�</view> + <view>{{content.taCode}}</view> + </view> + </view> + <view class="col-content"> + <view> + <view>鍒嗘嫞鏁伴噺</view> + <view style="text-align: center;color:#F18202">{{content.sortQuantity}}</view> + </view> + </view> + <view class="col-content" style="align-items: center;"> + <view> + <view style="text-align: center;">瀹為檯鏁伴噺</view> + <view :style="{ width: inputWid(content.actualQuantity) ,textAlign:'center',margin:'0 auto'}"> + <input :maxlength="10" type="number" v-model="content.actualQuantity" + @blur="inputBlur" style="color:#F18202;border-bottom: 1rpx solid #F18202;" /> + </view> + </view> + </view> + </view> + </view> + </view> +</view> +</template> + +<script> + // import EasyPicker from '@/components/EasyPicker.vue' + export default { + // components:{EasyPicker}, + props: { + content: { + type: Object, + required: true + }, + index: { + type: Number, + required: true + } + }, + data() { + return { + workingProcedureVisible: false, + workingProcedureList: [] + } + }, + created() { + // this.getListbycode() + console.log(this.title, 'title') + console.log(this.content, 'content'); + }, + computed: { + inputWid() { + return function(value) { + if (!value) { + return '30rpx' + } else { + // 鏈夊唴瀹癸紝瀛楃涓查暱搴�*瀛椾綋澶у皬 + return (String(value).length) * 25 + 30 + 'rpx' + } + } + } + }, + methods: { + showWorkingProcedure() { + this.workingProcedureVisible = true + }, + inputBlur({ + detail + }) { + const { + value + } = detail + if(Math.sign(value)==-1){ + this.content.actualQuantity =0 + }else if (value > this.content.sortQuantity) { + this.content.actualQuantity = this.content.sortQuantity + } else { + this.content.actualQuantity = parseInt(value) + } + } + } + } +</script> + +<style scoped lang="scss"> + .content { + background-color: #fff; + width: 96%; + margin: 18rpx auto; + border: 1rpx solid #fff; + display: flex; + align-items: center; + padding: 5rpx 5rpx 8rpx; + font-size: 30ont30ize-common; + + .detail { + box-sizing: border-box; + flex: 1; + + .row1 { + display: flex; + justify-content: space-between; + margin: 5rpx 0; + + .index { + display: inline-block; + width: 40rpx; + height: 40rpx; + border-radius: 20rpx; + background-color: $color-common; + text-align: center; + color: #fff; + margin-right: 10rpx; + line-height: 40rpx; + } + + .id-name { + font-weight: 700; + font-size: 30rpx; + } + } + + .row2, + .row3 { + color: #bbb; + font-size: 30rpx; + + .row-content { + display: flex; + align-items: flex-start; + + .col-content { + width: 25%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + } + } + } + + .row2{ + margin:8rpx 0; + } + } + } + + .content_active { + border: 1rpx solid #F18202 !important; + } + + ::v-deep uni-input { + font-size: $fontsize-common; + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/sortingSearch/index.vue b/PipeLineLems.PDA/pages/sortingSearch/index.vue new file mode 100644 index 0000000..a6b9665 --- /dev/null +++ b/PipeLineLems.PDA/pages/sortingSearch/index.vue @@ -0,0 +1,386 @@ +<template> + <default-header-page-layout ref="page" title="鎷h揣"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <scan-input-form-item class="forma-item" label="鎵樼洏缂栫爜" v-model="form.containterNo" + :msg="msg.containterNo" :msg-type="msgType.containterNo" @search="onSearchContainter" + @clear="onClearContainter" /> + + <scan-input-form-item class="forma-item" label="鐗╂枡浜岀淮鐮�" v-model="form.materialId" + :msg="msg.materialId" :msg-type="msgType.materialId" @search="selectMaterial(form.materialId)" /> + + <uni-view class="p-form-label">鎷h揣鏄庣粏</uni-view> + <sortInfo :sortInfo="this.sortInfo" /> + <contentCard :materialData="materialData" @handleItemClick="handleItemClick" /> + </view> + </view> + + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template> + <div class="btn-frame"><u-button type="primary" text="纭� 瀹�" @click="submint" + ></u-button></div> + <!-- <div class="btn-frame"><u-button type="primary" text="" + ></u-button></div> --> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import contentCard from './modules/contentCard.vue' + import sortInfo from './modules/sortingInfo.vue' + import { + SortInfo,addSortDetail + } from '@/api/sorting.js' + import { $alert, $successInfo, regexValidate } from '@/static/js/utils/index.js' + let initInterVal = null; + + export default { + name: 'emptyInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + EasyPicker, + contentCard, + sortInfo + }, + data() { + return { + pageBodyHeight: 0, + form: { + no: '', + }, + containterNo: null, + noData:[], + count: 0, + sortInfo: {}, + materialData: [], + actionStyle: { + backgroundColor: '#F18202', + color:'#fff', + width: 120 + 'rpx', + height: 58 + 'rpx', + lineHeight: 58 + 'rpx', + borderRadius: 10 + 'rpx', + }, + msg: { + containterNo: '', + material: '', + site: '', + }, + msgType: { + containterNo: 'info', + material: 'error', + site: 'error' + }, + } + }, + computed: { + disabled() { + return this.noData.filter(item => item.checked).length < 1 + }, + }, + methods: { + onClearContainter(){ + this.sortInfo={} + this.materialData=[] + }, + // 鑾峰彇鍗曟嵁淇℃伅 + async onSearchContainter() { + if (!this.form.containterNo) { + this.msgType.containterNo = 'error' + this.msg.containterNo = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + // 鑾峰彇浠g爜 + try{ + let {result}=await SortInfo({containerNo:this.form.containterNo}) + + this.materialData = result.materialInfos + result.selectQuantity = 0; + + this.sortInfo = result + this.count = 0 + + }catch(e){ + //TODO handle the exception + console.log(e); + } + }, + handleItemClick(materialId) { + console.log(materialId) + this.materialData.forEach((item, i) => { + if (item.materialId === materialId && item.checked) { + item.checked = false; + // this.count =this.count -1 <0 ? 0 : this.count -1; + this.sortInfo.selectQuantity = this.sortInfo.selectQuantity -1 < 0 ? 0 : this.sortInfo.selectQuantity -1; + } + this.materialData = [...this.materialData]; + }); + }, + selectMaterial(data) { + if (Array.isArray(this.materialData)) { + console.log(this.sortInfo.selectQuantity) + if (this.sortInfo.sortQuantity <= this.sortInfo.selectQuantity + this.sortInfo.actualQuantity) { + $alert("宸茶揪鍒板垎鎷e埌鏁伴噺锛屽垎鎷e凡瀹屾垚"); + return; + } + + let materialNo; + if (data.includes("^")) { + materialNo = this.QRCodeAnalysis(data); + } else { + materialNo = data; + } + + var flag=this.materialData.some(item=>item.materialId==materialNo); + if(!flag) { + $alert(`鐗╂枡${materialNo}涓嶅湪褰撳墠鎵樼洏涓�!`); + } + + this.materialData.forEach((item, index) => { + if (item.materialId === materialNo && !item.checked) { + // this.count +=1; + this.sortInfo.selectQuantity += 1; + item.checked = true; + } + }); + + // this.sortInfo.actualQuantity += 1; + + this.$nextTick(() => { + + }) + + this.materialData.sort((a, b) => { + if (a.checked && !b.checked) { + return -1; + } + if (!a.checked && b.checked) { + return 1; + } + return 0; + }); + this.materialData = [...this.materialData]; + // if (count > this.sortInfo.sortQuantity) { + // this.sortInfo.actualQuantity = this.sortInfo.sortQuantity; + // } else { + // this.sortInfo.actualQuantity = count; + // } + } + }, + + + QRCodeAnalysis(code){ + if (!code || code.length < 10 || !code.includes("^")) { + throw new Error(`浼犲叆浜岀淮鐮併��${code || ""}銆戝紓甯革紝璇风‘璁わ紒`); + } + + const entity = {}; + const parts = code.trim().split("^"); + + if (parts.length !== 2 || parts[1].length < 10) { + throw new Error(`浼犲叆浜岀淮鐮併��${code || ""}銆戞牸寮忓紓甯革紝璇风‘璁わ紒`); + } + + entity.MaterialNo = parts[0]; + entity.MaterialId = parts[1].substring(4); + + const reg = /[A-Z]$/; + if (reg.test(parts[1])) { + entity.MaterialBatch = parts[1].substring(4, parts[1].length - 5); + } else { + entity.MaterialBatch = parts[1].substring(4, parts[1].length - 4); + } + + entity.Line = parts[1].substring(0, 4); + + return entity.MaterialId; + }, + + submint() { + const checkMaterials = this.materialData.filter(obj => obj.checked === true); + if(checkMaterials==undefined || checkMaterials.length ==0){ + $alert("璇锋壂鎻忕墿鏂欑爜") + return; + } + + const data = { + orderNo: this.sortInfo.orderNo, + taskNo: "111", + orderDetailId: this.sortInfo.orderDetailId, + containerNo: this.sortInfo.containerNo, + sourceContainerNo: this.sortInfo.containerNo, + sortOrderNo: this.sortInfo.sortOrderNo, + addSortDetails: checkMaterials + } + addSortDetail(data).then(res=>{ + if(res.code == 200){ + $successInfo("鍒嗘嫞瀹屾垚") + this.materialData = [] + this.sortInfo = {}, + this.form.containterNo = '' + this.form.materialId = '' + return; + } else { + $alert("res.message") + return; + } + }) + }, + + clear(){ + this.form.materialNo='' + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + } + }, + onReady() { + this.startInitInterval(() => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + // this.getData() + // this.getLinesOptions() + // this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + }) + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .p-form-label{ + font-size: 32px; + color: #909193; + padding-bottom: 12px; + padding-left: 20px; + } + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex:1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1){ + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/sortingSearch/modules/contentCard.vue b/PipeLineLems.PDA/pages/sortingSearch/modules/contentCard.vue new file mode 100644 index 0000000..a2e70b4 --- /dev/null +++ b/PipeLineLems.PDA/pages/sortingSearch/modules/contentCard.vue @@ -0,0 +1,215 @@ +<template> + <u-swipe-action v-if="materialData.length>0" > + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click.native="handleItemClick(item.materialId)" :disabled="true" :index="index" :name="item.materialId"> + <view class="material-item-group" :class="{ 'content_active': item.checked }"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row underline"> + <view class="label-content"> + <view class="label">鐗╂枡浠跺彿</view>锛� + <view class="content auto-wrap shadow">{{item.materialNo}}</view> + </view> + <view class="label-content"> + <view class="label">鐗╂枡鍚嶇О</view>锛� + <view class="content auto-wrap shadow">{{item.materialName}}</view> + </view> + </view> + <view class="item-row underline"> + <view class="label-content"> + <view class="label">鏈哄瀷</view>锛� + <view class="content auto-wrap shadow">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> + <view class="label-content"> + <view class="label">鏁伴噺</view>锛� + <view class="content auto-wrap shadow">{{item.materialNumber}}</view> + </view> + </view> + <view class="item-row-sign"> + <view class="label-content"> + <view class="label">鐗╂枡鍞竴鐮�</view>锛� + <view class="content">{{ item.materialId }}</view> + </view> + </view> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + handleItemClick(name){ + console.log(111+'******'+name); + this.$emit('handleItemClick',name) + }, + } + } +</script> + +<style scoped lang="scss"> + .content_active { + border: 3rpx solid #F18202 !important; + } + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + /* 涓�琛屽睍绀轰竴鏉℃暟鎹� */ + /* .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + width: 144rpx; + text-align-last: justify; + text-align: justify; + } + + &.underline { + border-bottom: 1px solid #ccc; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + padding: 5px; + border-radius: 4px; + line-height: 1.5; + display: inline; + + .uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } */ + + .item-row { + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-column-gap: 10px; + border-bottom: 1px solid #ccc; /* 娣诲姞涓嬪垝绾挎牱寮� */ + padding: 5px 0; + + .label-content { + display: flex; + align-items: center; + + .label { + flex-shrink: 0; + color: #000; + /* width: 144px; */ + text-align-last: justify; + text-align: justify; + } + + .content { + flex-grow: 1; + color: $u-content-color; + } + } + } + .item-row-sign { + display: grid; + grid-template-columns: repeat(1, 1fr); + grid-column-gap: 10px; + border-bottom: 1px solid #ccc; /* 娣诲姞涓嬪垝绾挎牱寮� */ + padding: 5px 0; + + .label-content { + display: flex; + align-items: center; + + .label { + flex-shrink: 0; + color: #000; + /* width: 144px; */ + text-align-last: justify; + text-align: justify; + } + + .content { + flex-grow: 1; + color: $u-content-color; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/sortingSearch/modules/sortingInfo.vue b/PipeLineLems.PDA/pages/sortingSearch/modules/sortingInfo.vue new file mode 100644 index 0000000..57af8cd --- /dev/null +++ b/PipeLineLems.PDA/pages/sortingSearch/modules/sortingInfo.vue @@ -0,0 +1,165 @@ +<template> + <u-swipe-action > + <u-swipe-action-item :options="options" :disabled="true" style="margin-bottom: 20rpx;" + @click="deleteItem" :name="sortInfo.materialNo"> + <view class="material-item-group"> + <view class="material-list-item" > + <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> + <view class="item-row"> + <view class="label-content"> + <view class="label">鐗╂枡浠跺彿锛�</view> + <view class="content">{{ sortInfo.materialNo }}</view> + </view> + <view class="label-content"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content">{{ sortInfo.materialName }}</view> + </view> + </view> + <view class="item-row"> + <view class="label-content"> + <view class="label">鍒嗘嫞鏁伴噺锛�</view> + <view class="content">{{ sortInfo.sortQuantity }}</view> + </view> + <view class="label-content"> + <view class="label">宸叉嫞鏁伴噺锛�</view> + <view class="content">{{ sortInfo.actualQuantity }}</view> + </view> + </view> + + <view class="item-row"> + <view class="label-content"> + <view class="label">閫変腑鏁伴噺锛�</view> + <view class="content">{{ sortInfo.selectQuantity }}</view> + </view> + </view> + <view class="item-row-sign"> + <view class="label-content"> + <view class="label">鍗曟嵁缂栧彿锛�</view> + <view class="content">{{ sortInfo.orderNo }}</view> + </view> + </view> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import { parseDic } from '@/static/js/utils/index.js' + export default { + props: { + sortInfo: { + type: Object, + default: () => ({}) + } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }] + } + }, + + methods: { + + parseDic, + deleteItem() { + this.$emit('sortInfo', this.sortInfo.materialNo) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 20rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-column-gap: 10px; + + .label-content { + display: flex; + align-items: center; + + .label { + flex-shrink: 0; + color: #000; + } + + .content { + flex-grow: 1; + color: $u-content-color; + } + } + } + .item-row-sign { + display: grid; + grid-template-columns: repeat(1, 1fr); + grid-column-gap: 10px; + + .label-content { + display: flex; + align-items: center; + + .label { + flex-shrink: 0; + color: #000; + } + + .content { + flex-grow: 1; + color: $u-content-color; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/pages/start/index.vue b/PipeLineLems.PDA/pages/start/index.vue new file mode 100644 index 0000000..3e07af0 --- /dev/null +++ b/PipeLineLems.PDA/pages/start/index.vue @@ -0,0 +1,45 @@ +<template> + <full-page-layout :safety="false"> + <view class="start-page"> + <u-loading-icon size="80" color="#333"></u-loading-icon> + </view> + </full-page-layout> +</template> + +<script> +import FullPageLayout from '@/components/FullPageLayout.vue' + +let timeOutTask = null; + +export default { + name:'startPage', + components:{FullPageLayout}, + onReady(){ + let token = this.$store.getters['user/getToken']; + let gopage = this.$config.path.login + if (token) { + gopage = this.$config.path.home + } + timeOutTask = setTimeout(()=>{ + uni.navigateTo({url:gopage}) + },5*1000) + }, + onUnload(){ + try{ + clearTimeout(timeOutTask) + }catch(e){ + //TODO handle the exception + } + } +} +</script> + +<style scoped lang="scss"> +.start-page{ + height: 100%; + display: flex; + align-items: center; + justify-content: center; + background-color: $uni-bg-color-mask; +} +</style> diff --git a/PipeLineLems.PDA/pages/takeInStore/index.vue b/PipeLineLems.PDA/pages/takeInStore/index.vue new file mode 100644 index 0000000..73c422e --- /dev/null +++ b/PipeLineLems.PDA/pages/takeInStore/index.vue @@ -0,0 +1,57 @@ +<template> + <default-header-page-layout ref="page" title="鏀惰揣浣滀笟" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + </view> + </view> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +let initInterVal = null; +export default { + name:'takeInStorePage', + components:{DefaultHeaderPageLayout,ActionUserRow}, + data(){ + return { + pageBodyHeight:0 + } + }, + methods:{ + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/tasks/index.vue b/PipeLineLems.PDA/pages/tasks/index.vue new file mode 100644 index 0000000..6844888 --- /dev/null +++ b/PipeLineLems.PDA/pages/tasks/index.vue @@ -0,0 +1,120 @@ +<template> + <default-header-page-layout ref="page" title="浠诲姟鏌ヨ" :back-custom="true" @back="onPageBack"> + <view class="my-page-body" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <list-view v-show="pageType==='list'" :resetflag.sync="resetflag" ref="list" @query="onListQuery" @action="onListAction" /> + <list-search v-show="pageType==='search'" :resetflag="resetflag" @callback="onSearchCallBack" /> + <task-detail v-show="pageType==='detail'" ref="detail" :item="actionRow" /> + </view> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ListView from './module/List.vue' +import ListSearch from './module/Search.vue' +import TaskDetail from './module/Detail.vue' +let initInterVal = null; +export default { + name:'tasksPage', + components:{DefaultHeaderPageLayout,ListView,ListSearch,TaskDetail}, + data(){ + return { + pageBodyHeight:0, + pageType:'list', + resetflag:0, + query:null, + actionRow:{}, + listReturn:false + } + }, + watch:{ + pageType(newVal, oldVal){ + if (newVal !== oldVal) { + if (newVal) { + this.switchPage(); + } + } + }, + resetflag(newVal, oldVal){ + if (newVal !== oldVal) { + this.query = null + this.$refs.list.newList(this.query) + } + } + }, + methods:{ + onPageBack(){ + if (this.pageType === 'search' || this.pageType === 'detail') { + if (this.pageType === 'detail') { + this.$refs.detail.reset() + } + this.listReturn = true; + this.pageType = 'list' + } else { + uni.redirectTo({url:this.$config.path.home}); + } + }, + onListQuery(){ + this.pageType = 'search' + }, + onListAction(obj){ + this.actionRow = obj + this.pageType = 'detail' + }, + onSearchCallBack(params){ + this.query = params; + this.pageType = 'list' + }, + switchPage(){ + this.$nextTick(()=>{ + switch (this.pageType){ + case 'list': + if (!this.listReturn) { + this.$refs.list.newList(this.query) + } else { + this.listReturn = false; + } + break; + case 'detail': + this.$refs.detail.init() + break; + default: + break; + } + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.switchPage() + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/tasks/module/Detail.vue b/PipeLineLems.PDA/pages/tasks/module/Detail.vue new file mode 100644 index 0000000..d2b6896 --- /dev/null +++ b/PipeLineLems.PDA/pages/tasks/module/Detail.vue @@ -0,0 +1,211 @@ +<template> + <view class="tasks-page-detail-component"> + <view class="task-info"> + <view class="item-row"> + <view class="label">浠诲姟缂栧彿锛�</view> + <view class="content auto-wrap">{{resObj.taskno}}</view> + </view> + <view class="item-row"> + <view class="label">浠诲姟绫诲瀷锛�</view> + <view class="content auto-wrap">{{resObj.tasktypename}}</view> + </view> + <view class="item-row"> + <view class="label">鐩爣浣嶇疆锛�</view> + <view class="content auto-wrap">{{resObj.toplace}}</view> + </view> + <view class="item-row"> + <view class="label">璧峰浣嶇疆锛�</view> + <view class="content auto-wrap">{{resObj.sourceplace}}</view> + </view> + <view class="item-row"> + <view class="label">鎵樼洏缂栧彿锛�</view> + <view class="content auto-wrap">{{resObj.containerCode}}</view> + </view> + <view class="item-row"> + <view class="label">鍒涘缓浜猴細</view> + <view class="content auto-wrap">{{resObj.createdUserName}}</view> + </view> + <view class="item-row"> + <view class="label">鍒涘缓鏃堕棿锛�</view> + <view class="content auto-wrap">{{resObj.createdTime}}</view> + </view> + <view class="item-row"> + <view class="label">鏇存柊浜猴細</view> + <view class="content auto-wrap">{{resObj.updatedUserName}}</view> + </view> + <view class="item-row"> + <view class="label">鏇存柊鏃堕棿锛�</view> + <view class="content auto-wrap">{{resObj.updatedTime}}</view> + </view> + </view> + <view class="materials-head"> + <view class="materials-head-inner"> + <view class="line"></view> + <view class="title"> + <text class="text">鐗╂枡璇︽儏</text> + </view> + </view> + </view> + <view class="materials-containter"> + <view class="material-item-group"> + <!-- item start --> + <view class="material-list-item" v-for="(item,index) in resList" :key="index"> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡缂栧彿锛�</view> + <view class="content auto-wrap">{{item.materialno}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialname}}</view> + </view> + <view class="item-row"> + <view class="label">鎵规鍙凤細</view> + <view class="content auto-wrap">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄锛�</view> + <view class="content auto-wrap">{{item.materialspec}}</view> + </view> + <view class="item-row"> + <view class="label">瀵嗗害锛�</view> + <view class="content auto-wrap">{{item.materialDensity}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.bindquantity}}</view> + </view> + </view> + <!-- item end --> + </view> + </view> + </view> +</template> + +<script> +import { parseDic } from '@/static/js/utils/index.js' +export default { + name:'tasksPageDetailComponent', + props:{ + item: { + type: Object, + default: function(){ + return {} + } + } + }, + data(){ + return { + resObj:{}, + resList:[] + } + }, + methods:{ + init(){ + this.$api.get('GetPDATaskDetail',{id:this.item.id},{block:'task'}).then((res)=>{ + this.resObj.taskno = res.taskno + this.resObj.tasktypename = parseDic(this.$store,'task_type',res.tasktype) + this.resObj.toplace = res.toplace + this.resObj.sourceplace = res.sourceplace + this.resObj.containerCode = res.containerCode + this.resObj.createdUserName = res.createdUserName + this.resObj.createdTime = res.createdTime + this.resObj.updatedUserName = res.updatedUserName + this.resObj.updatedTime = res.updatedTime + this.resList = res.wmsMaterials || [] + }).catch(err=>{ + console.log(err) + }) + }, + reset(){ + this.resObj = {} + this.resList = [] + } + } +} +</script> + +<style scoped lang="scss"> +.tasks-page-detail-component{ + height: 100%; + display: flex; + flex-direction: column; + .task-info,.materials-head{ + flex-shrink: 0; + } + .task-info{ + background-color: $uni-bg-color; + padding: 12rpx 16rpx; + } + .materials-head{ + padding: 12rpx 16rpx 0 16rpx; + .materials-head-inner{ + background-color: $uni-bg-color; + border-radius: 6rpx 6rpx 0 0; + position: relative; + height: 50rpx; + display: flex; + align-items: center; + &>.line{ + width: 100%; + height: 2rpx; + background-color: $uni-border-color; + } + &>.title{ + position: absolute; + top:0; + left: 0; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 1; + &>.text{ + font-size: 30rpx; + background-color: $uni-bg-color; + color: $uni-border-color; + padding: 4rpx 12rpx; + } + } + } + } + .materials-containter{ + flex-grow: 1; + overflow: auto; + padding:0 16rpx; + .material-item-group{ + padding: 0 4rpx; + background-color: $uni-bg-color; + .material-list-item{ + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + &:last-child{ + border-bottom: 0; + } + .badge-box{ + position: absolute; + top:8rpx; + left: 8rpx; + z-index: 1; + } + } + } + } + .item-row{ + display: flex; + &>.label{ + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + &>.content{ + flex-grow: 1; + color: $u-content-color; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/tasks/module/List.vue b/PipeLineLems.PDA/pages/tasks/module/List.vue new file mode 100644 index 0000000..d3d65fc --- /dev/null +++ b/PipeLineLems.PDA/pages/tasks/module/List.vue @@ -0,0 +1,192 @@ +<template> + <view class="tasks-list-component"> + <view class="top-row"> + <view class="top-btns"> + <view class="search-btn" @tap.stop="onQuery"><u-icon name="search" /></view> + <view class="reset-btn" @tap.stop="onReset">閲� 缃�</view> + </view> + </view> + <scroll-view class="list-scroll-view" :scroll-y="true" @scrolltolower="onMoreList"> + <view class="list-group-box"> + <!-- @@@@@@@@@@@ --> + <view class="list-item" v-for="(item,index) in list" :key="index"> + <view class="item-context"> + <view class="item-no-row auto-wrap">浠诲姟缂栧彿锛歿{item.taskno}}</view> + <view class="item-typs-row auto-wrap">{{item.tasktypename}}</view> + <view class="item-postions-row"> + <view class="item-position auto-wrap">鐩爣浣嶇疆:{{item.sourceplace}}</view> + <view class="item-position auto-wrap">璧峰浣嶇疆:{{item.toplace}}</view> + </view> + </view> + <view class="item-right"> + <u-button type="primary" text="璇︽儏" size="mini" @click="onAction(item)" /> + </view> + </view> + <!-- @@@@@@@@@@@ --> + </view> + <view class="no-more-text-row" v-if="!hasMore">娌℃湁鏇村浜�</view> + </scroll-view> + </view> +</template> + +<script> +import { parseDic } from '@/static/js/utils/index.js' +const pagination = { + PageNo:1, + PageSize:10 +} +export default { + name:'tasksListComponent', + emits:['query','update:resetflag','action'], + data(){ + return { + hasMore:true, + queried:{}, + list:[] + } + }, + methods:{ + onQuery(){ + this.$emit('query') + }, + onReset(){ + this.resetQuery() + }, + resetQuery(){ + this.$emit('update:resetflag',new Date().getTime()) + }, + newList(params=null,callback){ + this.queried = {...pagination} + if (params) { + this.queried = {...this.queried,...params} + } + this.getList(callback) + }, + onMoreList(){ + if (this.hasMore) { + this.queried.PageNo++; + this.getList(); + } + }, + getList(callback){ + this.$api.get('GetPDATask',this.queried,{block:'task'}).then((res)=>{ + let arr = (res.rows || []).map((obj)=>{ + obj.tasktypename = parseDic(this.$store,'task_type',obj.tasktype) + return obj + }); + let len = arr.length; + if (this.queried.PageNo>=res.totalPage) { + this.hasMore = false + } else { + this.hasMore = true + } + if (this.queried.PageNo===1) { + this.list = arr; + } else { + this.list = [...this.list,...arr]; + } + callback && callback(true) + }).catch(err=>{ + console.log(err) + callback && callback(false) + }) + }, + onAction(obj) { + this.$emit('action',obj) + } + } +} +</script> + +<style scoped lang="scss"> +.tasks-list-component{ + $topSize:100rpx; + height: 100%; + position: relative; + box-sizing: border-box; + padding-top: $topSize; + .top-row{ + position: absolute; + z-index: 5; + top: 0; + left: 0; + height: $topSize; + width: 100%; + padding: 10rpx 16rpx; + box-sizing: border-box; + border-bottom:1px solid #F0F8FF; + background-color: $uni-bg-color; + } + .top-btns{ + width: 100%; + height: 100%; + box-sizing: border-box; + border: 1px solid $uni-border-color; + border-radius: 40rpx / 50%; + display: flex; + overflow: hidden; + color: $uni-text-color-grey; + } + .search-btn,.reset-btn{ + display: flex; + align-items: center; + justify-content: center; + height: 100%; + } + .reset-btn{ + flex-shrink: 0; + width: 160rpx; + border-left: 1px solid $uni-border-color; + } + .search-btn{ + flex-grow: 1; + background-color: #DCDCDC; + } + .list-scroll-view{ + height: 100%; + } + .list-group-box{ + padding-top: 12rpx; + .list-item{ + background-color: $uni-bg-color; + box-shadow: 0px 2rpx 6rpx rgba(34, 25, 25, 0.2); + display: flex; + margin-bottom: 12rpx; + &:last-child{ + border-bottom: 0; + } + .item-right{ + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + width: 120rpx; + box-sizing: border-box; + padding: 0 12rpx; + } + .item-context{ + flex-grow: 1; + padding: 8rpx 16rpx; + .item-no-row{ + font-size: 24rpx; + color: #999999; + margin-bottom: 10rpx; + } + .item-typs-row{ + font-size: 28rpx; + color: #333333; + margin-bottom: 10rpx; + } + .item-postions-row{ + display: flex; + font-size: 24rpx; + color: #999999; + .item-position{ + width: 50%; + } + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/tasks/module/Search.vue b/PipeLineLems.PDA/pages/tasks/module/Search.vue new file mode 100644 index 0000000..9976335 --- /dev/null +++ b/PipeLineLems.PDA/pages/tasks/module/Search.vue @@ -0,0 +1,91 @@ +<template> + <view class="tasks-search-component"> + <view class="search-form-box"> + <u-form labelPosition="left" :labelWidth="80" :model="form" ref="form" :labelStyle="{color:'#787878'}"> + <u-form-item label="浠诲姟缂栧彿锛�" borderBottom> + <u-input v-model="form.Taskno" placeholder="璇疯緭鍏�..." border="none" clearable /> + </u-form-item> + <u-form-item label="浠诲姟绫诲瀷锛�" borderBottom> + <u-view-form-select-picker v-model="form.Tasktype" :list="selectList.tasksType" value-field="code" label-field="name" /> + </u-form-item> + <u-form-item label="鎵樼洏缂栫爜锛�" borderBottom> + <u--input v-model="form.ContainerCode" placeholder="璇疯緭鍏�..." border="none" clearable /> + </u-form-item> + <u-form-item label="鐩爣浣嶇疆锛�" borderBottom> + <u-input v-model="form.Toplace" placeholder="璇疯緭鍏�..." border="none" clearable /> + </u-form-item> + <u-form-item label="璧峰浣嶇疆锛�" borderBottom> + <u-input v-model="form.Sourceplace" placeholder="璇疯緭鍏�..." border="none" clearable /> + </u-form-item> + </u-form> + </view> + <view class="search-bottom"> + <u-button type="primary" text="鏌� 璇�" @click="onSearch" /> + </view> + </view> +</template> + +<script> +import UViewFormSelectPicker from '@/components/UViewFormSelectPicker.vue' +import { getDicList } from '@/static/js/utils/index.js' +const defaultQueryForm = { + Taskno:'', + Tasktype:'', + ContainerCode:'', + Toplace:'', + Sourceplace:'' +} +export default { + name:'tasksSearchComponent', + components:{UViewFormSelectPicker}, + emits:['callback'], + props:{ + resetflag: { + type: Number, + default: 0 + } + }, + data(){ + return { + form:{...defaultQueryForm}, + selectList:{ + tasksType:[] + } + } + }, + watch:{ + resetflag(newVal, oldVal){ + if (newVal !== oldVal) { + this.form = {...defaultQueryForm} + } + } + }, + methods:{ + onSearch(){ + this.$emit('callback',this.form) + } + }, + mounted() { + this.selectList.tasksType = getDicList(this.$store,'task_type') + } +} +</script> + +<style lang="scss" scoped> +.tasks-search-component{ + height: 100%; + display: flex; + flex-direction: column; + .search-form-box{ + flex-grow: 1; + background-color: $uni-bg-color; + overflow: auto; + padding: 0 16rpx; + } + .search-bottom{ + flex-shrink: 0; + padding: 10rpx 0; + padding: 20rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/temporaryInstore/index.vue b/PipeLineLems.PDA/pages/temporaryInstore/index.vue new file mode 100644 index 0000000..56be7f7 --- /dev/null +++ b/PipeLineLems.PDA/pages/temporaryInstore/index.vue @@ -0,0 +1,159 @@ +<template> + <default-header-page-layout ref="page" title="涓存椂鍏ュ簱" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <step1 v-show="step===1" ref="step1" /> + <step2 v-show="step===2" ref="step2" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="step===1"> + <view class="btn-frame"><u-button text="缁� 鐩�" @click="onBind"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="涓嬩竴姝�" @click="onGoNext"></u-button></view> + </template> + <template v-if="step===2"> + <view class="btn-frame"><u-button text="涓婁竴姝�" @click="onGoPrev"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鍏� 搴�" @click="onSubmit"></u-button></view> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import Step1 from './modules/Step1.vue' +import Step2 from './modules/Step2.vue' +import { $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +export default { + name:'temporaryInstorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,Step1,Step2}, + data(){ + return { + pageBodyHeight:0, + step:1 + } + }, + watch:{ + step(newVal, oldVal){ + if (newVal !== oldVal) { + if (newVal) { + this.switchPage(); + } + } + } + }, + methods:{ + onGoNext(){ + this.step++ + }, + onGoPrev(){ + this.step-- + }, + onBind(){ + this.dealBind((f)=>{ + if (f) { + $successInfo('缁勭洏鎴愬姛') + } + }) + }, + onSubmit(){ + this.dealConfirm((f)=>{ + if (f) { + $successInfo('鍏ュ簱鎴愬姛') + this.$refs.step1.clearFullContainer() + this.step = 1 + } + }) + }, + /* 缁勭洏鎺ュ彛璋冪敤 */ + dealBind(callback){ + let params = this.getSubmitParams('bind') + this.$api.post('QuickBindEntrance',params,{block:'quickIn'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 鎻愪氦鎺ュ彛璋冪敤 */ + dealConfirm(callback){ + let params = this.getSubmitParams() + this.$api.post('QuickAutoWare',params,{block:'quickIn'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + getSubmitParams(type='confirm'){ + let res = this.$refs.step1.get() + if (type==='confirm') { + res = {...res,...this.$refs.step2.get()} + } + return res + }, + switchPage(){ + this.$nextTick(()=>{ + switch (this.step){ + case 2: + this.$refs.step2.show() + break; + default: + break; + } + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.switchPage() + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/temporaryInstore/modules/Step1.vue b/PipeLineLems.PDA/pages/temporaryInstore/modules/Step1.vue new file mode 100644 index 0000000..f63ec63 --- /dev/null +++ b/PipeLineLems.PDA/pages/temporaryInstore/modules/Step1.vue @@ -0,0 +1,198 @@ +<template> + <view class="temporary-instore-step1-page-content"> + <view class="top-view"> + <scan-input-form-item + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <view class="list-item-show"> + <view class="item-row"> + <view class="label"> + <view class="first-label-inner"> + <uni-badge :text="list.length-index" type="primary" size="normal" /><text class="batch-no">鎵规</text> + </view> + </view> + <view class="content">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О</view> + <view class="content">{{item.materialname}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟�</view> + <view class="content">{{item.supplier}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄</view> + <view class="content">{{item.long}}*{{item.wide}}*{{item.high}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺</view> + <view class="content"><input class="enable-input" v-model.number="item.bindquantity" type="number"/></view> + </view> + </view> + </view> + </view> + <!-- ########### --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { parseDic } from '@/static/js/utils/index.js' +const defaultForm = { + container:'' +} +export default { + name:'temporaryInstoreStep1PageContent', + components:{ScanInputFormItem}, + data() { + return { + form: {...defaultForm}, + msg:{ + container:'' + }, + msgType:{ + container:'error' + }, + list:[], + container:null + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainerInfo() + }, + onClearContainer(){ + this.clearFullContainer() + }, + clearFullContainer(){ + this.clearContainer() + this.clearBackContainer() + }, + clearContainer(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + getContainerInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('QuickGetContainer',params,{block:'quickIn',warn:false,fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage(_errmsg) + callback && callback(false) + }) + }, + get(){ + return { + containerCode:this.container?this.container.containerCode:null, + wmsMaterials:this.list + } + } + } +} +</script> + +<style scoped lang="scss"> +.temporary-instore-step1-page-content{ + height: 100%; + display: flex; + flex-direction: column; + &>.top-view{ + flex-shrink: 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + padding: 0 16rpx; + font-size: 1.1em; + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/temporaryInstore/modules/Step2.vue b/PipeLineLems.PDA/pages/temporaryInstore/modules/Step2.vue new file mode 100644 index 0000000..8ad994e --- /dev/null +++ b/PipeLineLems.PDA/pages/temporaryInstore/modules/Step2.vue @@ -0,0 +1,102 @@ +<template> + <view class="temporary-instore-step2-page-content"> + <easy-select-form-item + class="forma-item" + label="璧峰浣嶇疆" + v-model="form.stationCode" + :list="selectOptions.startPlaces" + value-field="stationCode" + label-field="stationName" + /> + + <easy-select-form-item + class="forma-item" + label="鐩爣搴�" + v-model="form.areaId" + :list="selectOptions.endAreas" + value-field="areaId" + label-field="areaName" + /> + </view> +</template> + +<script> +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { $alert } from '@/static/js/utils/index.js' +const defaultForm = { + stationCode:'', + areaId:'' +} +export default { + name:'temporaryInstoreStep2PageContent', + components:{EasySelectFormItem}, + data(){ + return { + form: {...defaultForm}, + selectOptions:{ + endAreas:[], + startPlaces:[] + }, + loaded:false + } + }, + methods:{ + show(){ + this.getSelectsOptions((f)=>{ + if (f) { + this.resetForm() + } + }) + }, + resetForm(){ + if (this.selectOptions.startPlaces.length===1) { + this.form.stationCode = this.selectOptions.startPlaces[0].stationCode + } else { + this.form.stationCode = '' + } + if (this.selectOptions.endAreas.length===1) { + this.form.areaId = this.selectOptions.endAreas[0].areaId + } else { + this.form.areaId = '' + } + }, + getSelectsOptions(callback){ + if (this.loaded) { + callback && callback(true) + } else { + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + Promise.all([ + this.$api.get('StarPlaceList',{},{block:'quickIn',warn:false,loading:false}), + this.$api.get('PdaGetAreaList',{},{block:'quickIn',warn:false,loading:false}) + ]).then(res=>{ + this.selectOptions.startPlaces = res[0] || [] + this.selectOptions.endAreas = res[1] || [] + this.loaded = true + uni.hideLoading(); + callback && callback(true) + }).catch(ex=>{ + uni.hideLoading(); + $alert(ex) + callback && callback(false) + }) + } + }, + get(){ + return this.form + } + } +} +</script> + +<style scoped lang="scss"> +.temporary-instore-step2-page-content{ + height: 100%; + overflow: auto; + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/transport/index.vue b/PipeLineLems.PDA/pages/transport/index.vue new file mode 100644 index 0000000..c0a47b7 --- /dev/null +++ b/PipeLineLems.PDA/pages/transport/index.vue @@ -0,0 +1,411 @@ +<template> + <default-header-page-layout ref="page" title="鎼繍浣滀笟" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <easy-select-form-item + :class="[form.line?'forma-item':'']" + label="浜х嚎" + v-model="form.line" + :msg="msg.line" + :list="selectOptions.lines" + value-field="id" + label-field="name" + :clearable="false" + /> + + <template v-if="form.line"> + <easy-select-form-item + class="forma-item" + label="璧峰浣�" + v-model="form.startCode" + :msg="msg.startCode" + :list="selectOptions.starts" + value-field="code" + label-field="name" + :clearable="false" + @select="onSelectStart" + /> + + <view v-if="selectContainer && form.startCode" class="only-watch-container forma-item"> + <view class="label">鎵樼洏鐮侊細</view> + <view class="content auto-wrap">{{selectContainer}}</view> + </view> + + <scan-input-form-item + v-if="!selectContainer && form.startCode" + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + + <easy-select-form-item + label="鐩爣浣�" + v-model="form.endCode" + :msg="msg.endCode" + :list="selectOptions.ends" + value-field="code" + label-field="name" + :clearable="false" + @select="onSelectEnd" + /> + </template> + </view> + + <easy-picker :visible.sync="modelVisible" :list="selectOptions.models" value-field="code" label-field="name" @select="onChangeModel"></easy-picker> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <view class="btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="鎻� 浜�" @click="onSubmit"></u-button></view> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import EasyPicker from '@/components/EasyPicker.vue' +import { $alert, $successInfo, parseDic, getDicList, getUserDefaultLine } from '@/static/js/utils/index.js' +const defaultForm = { + container:'', + startCode:'', + endCode:'', + line:null +} +let initInterVal = null; +export default { + name:'transportPage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem,EasySelectFormItem,EasyPicker}, + data(){ + return { + pageBodyHeight:0, + form: {...defaultForm}, + msg:{ + container:'', + startCode:'', + endCode:'', + line:'' + }, + selectOptions:{ + lines:[], + starts:[], + ends:[], + models:[] + }, + msgType:{ + container:'error' + }, + container:null, + selectContainer:'', + modelVisible:false + } + }, + watch:{ + 'form.line'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchLine() + } + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainerInfo() + }, + onClearContainer(){ + this.clearContainer() + }, + clearContainer(){ + this.form.container = '' + this.msg.container = '' + this.container = null + }, + clearStations(){ + this.selectOptions.starts = [] + this.selectOptions.ends = [] + this.form.startCode = '' + this.selectContainer = '' + this.form.endCode = '' + this.msg.startCode = '' + this.msg.endCode = '' + }, + reset(){ + this.clearContainer() + this.form.line = null + this.msg.line = '' + }, + watchLine(){ + if (this.form.line) { + this.changeFillLine() + } else { + this.clearStations() + } + this.msg.line = '' + }, + onSelectStart(val,obj){ + this.msg.startCode = '' + this.selectContainer = obj.containerCode + this.getContainerInfoBySelectStation() + }, + onSelectEnd(){ + this.msg.endCode = '' + }, + getContainerInfoBySelectStation(){ + if (this.selectContainer) { + this.getContainerInfo() + } else { + this.clearContainer() + } + }, + getContainerInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + if (this.selectContainer) { + $alert(__msg) + } else { + this.msgType.container = 'error' + this.msg.container = __msg; + } + }.bind(this) + let params = {} + if (this.selectContainer) { + params.ContainerCode = this.selectContainer + } else { + params.ContainerCode = this.form.container + } + this.$api.get('ContainerInformation',params,{block:'transport',fullRes:true,warn:false}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + if (!this.selectContainer) { + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + } + callback && callback(true) + } else { + this.clearContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearContainer() + __setErrMessage() + callback && callback(false) + }) + }, + changeFillLine(){ + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + this.getStationsOptions((f)=>{ + if (f) { + if (this.selectContainer) { + this.getContainerInfo(()=>{ + uni.hideLoading(); + },false) + } else { + uni.hideLoading(); + } + } else { + uni.hideLoading(); + } + }) + }, + getLinesOptions(){ + this.$api.get('SelectProductionline',{},{block:'transport'}).then(d=>{ + this.selectOptions.lines = d || [] + let val = getUserDefaultLine(this.$store,this.selectOptions.lines,'id') + if (!val && this.selectOptions.lines.length===1) { + val = this.selectOptions.lines[0].id + } + if (val) { + this.form.line = val + } + }).catch(err=>{ + console.log(err) + }) + }, + getStationsOptions(callback){ + this.$api.get('GetStartEndStation',{id:this.form.line},{block:'transport',loading:false}).then(d=>{ + this.selectOptions.starts = d.startList || [] + this.selectOptions.ends = d.endList || [] + if (this.selectOptions.starts.length===1) { + this.form.startCode = this.selectOptions.starts[0].code + this.selectContainer = this.selectOptions.starts[0].containerCode + } else { + this.form.startCode = '' + this.selectContainer = '' + } + if (this.selectOptions.ends.length===1) { + this.form.endCode = this.selectOptions.ends[0].code + } else { + this.form.endCode = '' + } + this.msg.startCode = '' + this.msg.endCode = '' + callback && callback(true) + }).catch(err=>{ + this.clearStations() + console.log(err) + callback && callback(false) + }) + }, + onReset(){ + this.reset() + }, + onSubmit(){ + let check = this.checkBeforeSubmit() + if (!check.flag) return false; + this.modelVisible = true + }, + onChangeModel(val){ + this.dealSubmit(val) + }, + checkBeforeSubmit(){ + let res = {flag:true,data:this.form} + if (!res.data.line) { + this.msg.line = '璇烽�夋嫨浜х嚎锛�' + res.flag = false + } else { + this.msg.line = '' + } + if (res.flag && !res.data.startCode) { + this.msg.startCode = '璇烽�夋嫨璧峰浣嶏紒' + res.flag = false + } else { + this.msg.startCode = '' + } + if (res.flag && !this.container) { + const msgtext = '璇峰厛褰曞叆鎵樼洏淇℃伅锛�' + if (!this.selectContainer) { + this.msg.container = msgtext + this.msgType.container = 'error' + } else { + $alert(msgtext) + } + res.flag = false + } else { + this.msg.startCode = '' + } + if (res.flag && !res.data.endCode) { + this.msg.endCode = '璇烽�夋嫨鐩爣浣嶏紒' + res.flag = false + } else { + this.msg.endCode = '' + } + return res; + }, + dealSubmit(val){ + let params = {...this.form} + params.container = this.container.containerCode + params.assembleTask = val + this.submiAjax(params,(f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.reset() + } + }) + }, + submiAjax(params,callback){ + this.$api.post('SubmitTransport',params,{block:'transport'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getLinesOptions() + this.selectOptions.models = getDicList(this.$store,'assemble_taskmodel') + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.forma-item{ + margin-bottom: 24rpx; +} +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +.only-watch-container{ + background-color: #D0DDD8; + min-height: 90rpx; + display: flex; + &>.label{ + color: $u-tips-color; + font-size: 32rpx; + flex-shrink: 0; + padding-left: 20rpx; + padding-top: 22rpx; + } + &>.content{ + width: 1px; + flex-grow: 1; + display: flex; + align-items: center; + font-size: 30rpx; + padding: 8rpx 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/unbind/index.vue b/PipeLineLems.PDA/pages/unbind/index.vue new file mode 100644 index 0000000..4828fee --- /dev/null +++ b/PipeLineLems.PDA/pages/unbind/index.vue @@ -0,0 +1,311 @@ +<template> + <default-header-page-layout ref="page" title="鎵樼洏瑙g粦" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- page start --> + <view class="generic-unbind-page-content"> + <view class="top-view"> + <scan-input-form-item + label="鎵樼洏缂栫爜" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearch" + @clear="onClearContainer" + /> + <view class="materials-box"> + <view class="materials-box-top" v-if="list.length>0"> + <view class="box-top"> + <view class="line"></view> + <view class="title"> + <text class="text">鐗╂枡璇︽儏</text> + </view> + </view> + </view> + </view> + </view> + <view class="list-view"> + <view class="materials-box" v-if="list.length>0"> + <view class="material-item-group"> + <view class="material-list-item" v-for="(item,index) in list" :key="'material-list-item-'+index"> + <view class="badge-box"><u-badge :value="list.length-index" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡缂栧彿锛�</view> + <view class="content auto-wrap">{{item.materialno}}</view> + </view> + <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialname}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄锛�</view> + <view class="content auto-wrap">{{item.materialspec}}</view> + </view> + <view class="item-row"> + <view class="label">瀵嗗害锛�</view> + <view class="content auto-wrap">{{item.materialDensity}}</view> + </view> + <view class="item-row"> + <view class="label">鎵规鍙凤細</view> + <view class="content auto-wrap">{{item.materialbatch}}</view> + </view> + <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.bindquantity}}</view> + </view> + </view> + </view> + </view> + </view> + </view> + <!-- page end --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <div class="btn-frame left-btn-frame"><u-button text="閲� 缃�" @click="onReset"></u-button></div> + <div class="btn-frame right-btn-frame"><u-button type="primary" text="纭� 瀹�" :disabled="(!container || container.containerStatus!==2)" @click="onConfirm"></u-button></div> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { $successInfo, parseDic } from '@/static/js/utils/index.js' +let initInterVal = null; +const defaultForm = { + container:'' +} +export default { + name:'genericUnbindPage', + components:{DefaultHeaderPageLayout,ActionUserRow,ScanInputFormItem}, + data(){ + return { + pageBodyHeight:0, + form:{...defaultForm}, + msg:{ + container:'' + }, + msgType:{ + container:'error' + }, + container:null, + list:[] + } + }, + methods:{ + /* 鎵樼洏缂栫爜鎼滅储 */ + onSearch(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼紪鍙凤紒'; + return false; + } + this.msg.container = ''; + this.getData() + }, + /* 娓呴櫎鎵樼洏缂栫爜 */ + onClearContainer(){ + this.resetContainer() + }, + /* 閲嶇疆鎵樼洏缂栫爜 */ + resetContainer(){ + this.form.container = '' + this.msg.container = '' + this.clearBackContainer() + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + /* 鑾峰彇鎵樼洏淇℃伅 */ + getData(){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('ContainerInformation',params,{block:'generic',fullRes:true,warn:false}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + } else { + this.clearBackContainer() + __setErrMessage(d.message) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage(_errmsg) + this.container = null; + }) + }, + /* 鍝嶅簲閲嶇疆鎸夐挳 */ + onReset(){ + this.resetContainer() + }, + /* 鍝嶅簲纭鎸夐挳 */ + onConfirm(){ + this.dealSubmit((f)=>{ + if (f) { + this.resetContainer() + $successInfo('瑙g粦鎴愬姛锛�'); + } + }) + }, + /* 瑙g粦鎺ュ彛璋冪敤 */ + dealSubmit(callback){ + let params = { + ContainerCode:this.container.containerCode + } + this.$api.post('UnbindContainer',params,{block:'generic'}).then(()=>{ + callback && callback(true) + }).catch(()=>{ + callback && callback(false) + }) + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 0; + background-color: #fff; + .btn-frame{ + width: 50%; + box-sizing: border-box; + } + .left-btn-frame{ + padding-left: 20rpx; + padding-right: 8rpx; + } + .right-btn-frame{ + padding-right: 20rpx; + padding-left: 8rpx; + } +} +.generic-unbind-page-content{ + height: 100%; + display: flex; + flex-direction: column; + .top-view{ + flex-shrink: 0; + } + .list-view { + height: 1px; + flex-grow: 1; + overflow: auto; + } + .materials-box{ + padding: 0 16rpx; + } + .materials-box-top{ + padding-top: 12rpx; + .box-top { + position: relative; + height: 50rpx; + display: flex; + align-items: center; + background-color: $uni-bg-color; + &>.line{ + width: 100%; + height: 2rpx; + background-color: $uni-border-color; + } + &>.title{ + position: absolute; + top:0; + left: 0; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 1; + &>.text{ + font-size: 30rpx; + background-color: $uni-bg-color; + color: $uni-border-color; + padding: 4rpx 12rpx; + } + } + } + } +} +.material-item-group{ + padding: 0 4rpx; + background-color: $uni-bg-color; + .material-list-item{ + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + &:last-child{ + border-bottom: 0; + } + .item-row{ + display: flex; + &>.label{ + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + &>.content{ + flex-grow: 1; + color: $u-content-color; + } + } + .badge-box{ + position: absolute; + top:8rpx; + left: 8rpx; + z-index: 1; + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/unstackingInstore/index.vue b/PipeLineLems.PDA/pages/unstackingInstore/index.vue new file mode 100644 index 0000000..9904a13 --- /dev/null +++ b/PipeLineLems.PDA/pages/unstackingInstore/index.vue @@ -0,0 +1,180 @@ +<template> + <default-header-page-layout ref="page" title="鎷嗗灈鍏ュ簱" > + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <page-main v-show="pageStyle==='main'" ref="main" @pageChange="onMainPageChange" /> + <page-edit v-show="pageStyle==='edit'" ref="edit" /> + <page-step2 v-show="pageStyle==='step2'" ref="step2" /> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <template v-if="pageStyle==='main'"> + <view class="btn-frame"><u-button text="缁� 鐩�" @click="onBind"></u-button></view> + <view class="divider"></view> + <view class="btn-frame"><u-button type="primary" text="涓嬩竴姝�" @click="onGoStep2"></u-button></view> + </template> + <template v-else> + <view class="btn-frame"><u-button text="杩� 鍥�" @click="onBackMain"></u-button></view> + <view class="divider"></view> + <view class="btn-frame" v-if="pageStyle==='step2'"><u-button type="primary" text="鍏� 搴�" @click="onConfirm"></u-button></view> + <view class="btn-frame" v-else><u-button type="primary" :text="editIndex===-1?'娣� 鍔�':'淇� 鏀�'" @click="onEditConfirm"></u-button></view> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> +import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' +import ActionUserRow from '@/components/ActionUserRow.vue' +import PageMain from './modules/main.vue' +import PageEdit from './modules/edit.vue' +import PageStep2 from './modules/step2.vue' +import { $successInfo } from '@/static/js/utils/index.js' +let initInterVal = null; +export default { + name:'unstackingInstorePage', + components:{DefaultHeaderPageLayout,ActionUserRow,PageMain,PageEdit,PageStep2}, + data(){ + return { + pageBodyHeight:0, + pageStyle:'main', + editIndex:-1, + mainData:{} + } + }, + methods:{ + onBackMain(){ + this.pageStyle = 'main' + }, + onGoStep2(){ + let check = this.$refs.main.checkConfirm() + if (check.flag) { + this.mainData = check.data + this.pageStyle = 'step2' + this.$refs.step2.init() + } + }, + onEditConfirm(){ + let check = this.$refs.edit.checkConfirm() + if (check.flag) { + if (this.editIndex===-1) { + this.$refs.main.add(check.data) + } else { + this.$refs.main.modify(check.data,this.editIndex) + } + } + this.pageStyle = 'main' + }, + onMainPageChange(obj,index){ + if (obj) { + this.editIndex = index + } else { + this.editIndex = -1 + } + this.$refs.edit.init(obj) + this.pageStyle = 'edit' + }, + onMainReset(){ + this.$refs.main.clearMain() + }, + onBind(){ + let check = this.$refs.main.checkConfirm('bind') + if (check.flag) { + this.dealBind(check.data,(f)=>{ + if (f) { + $successInfo('缁勭洏鎴愬姛') + } + }) + } + }, + onConfirm(){ + this.dealConfirm(this.mainData,(f)=>{ + if (f) { + $successInfo('鎻愪氦鎴愬姛') + this.mainData = {} + this.$refs.main.clearMain() + this.$refs.step2.clear() + } + }) + }, + /* 缁勭洏鎺ュ彛璋冪敤 */ + dealBind(obj,callback){ + let params = this.dealSubmitParams(obj,'bind') + this.$api.post('UnstackingBindEntrance',params,{block:'unstacking'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 鍏ュ簱鎺ュ彛璋冪敤 */ + dealConfirm(obj,callback){ + let params = this.dealSubmitParams(obj) + this.$api.post('AccessoriesAutoWare',params,{block:'unstacking'}).then(()=>{ + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + }, + /* 缁勭洏銆佸叆搴撴彁浜ゅ弬鏁� */ + dealSubmitParams(obj,actionType='confirm'){ + let res = { + containerCode:obj.container.containerCode, + wmsMaterials:obj.list + } + if (actionType==='confirm') { + let params2 = this.$refs.step2.get() + res = {...res,...params2} + } + return res + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback){ + initInterVal = setInterval(()=>{ + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + },200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval(){ + try{ + clearInterval(initInterVal) + initInterVal = null + }catch(e){ + //TODO handle the exception + } + } + }, + onReady(){ + this.startInitInterval(()=>{ + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + }) + }, + onUnload(){ + this.clearInitInterval() + } +} +</script> + +<style scoped lang="scss"> +.bottom-btns-row{ + display: flex; + padding: 10rpx 20rpx; + background-color: #fff; + .btn-frame{ + width: 1%; + box-sizing: border-box; + flex-grow: 1; + } + .divider{ + width: 20rpx; + flex-shrink: 0; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/unstackingInstore/modules/edit.vue b/PipeLineLems.PDA/pages/unstackingInstore/modules/edit.vue new file mode 100644 index 0000000..38b1659 --- /dev/null +++ b/PipeLineLems.PDA/pages/unstackingInstore/modules/edit.vue @@ -0,0 +1,190 @@ +<template> + <view class="unstacking-instore-edit-page-content"> + <view class="form-view"> + <!-- ******************** --> + <scan-input-form-item + class="forma-item" + label="鐗╂枡缂栫爜" + v-model="form.materialNo" + :msg="msg.materialNo" + :has-search="false" + :required="true" + /> + <scan-input-form-item + class="forma-item" + label="鍥惧彿" + v-model="form.drawingNo" + :msg="msg.drawingNo" + :has-scan="false" + :has-search="false" + :required="true" + /> + <scan-input-form-item + class="forma-item" + label="鑸瑰彿" + v-model="form.shipNo" + :msg="msg.shipNo" + :has-scan="false" + :has-search="false" + :required="true" + /> + <long-width-height-form-item + class="forma-item" + label="灏哄" + :long.sync="form.long" + :width.sync="form.wide" + :height.sync="form.high" + :msg="msg.materialspec" + :required="true" + /> + <!-- ******************** --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import LongWidthHeightFormItem from '@/pages/components/LongWidthHeightFormItem.vue' +const defaultForm = { + materialNo:'', + shipNo:'', + drawingNo:'', + long:null, + wide:null, + high:null +} +export default { + name:'unstackingInstoreEditPageContent', + components:{ScanInputFormItem,LongWidthHeightFormItem}, + data(){ + return { + form:{...defaultForm}, + msg:{ + materialNo:'', + shipNo:'', + drawingNo:'', + materialspec:'', + noWarn:false + } + } + }, + watch:{ + 'form.long'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.wide'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.high'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchSpec() + } + }, + 'form.materialNo'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchMaterialNo() + } + }, + 'form.shipNo'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchShipNo() + } + }, + 'form.drawingNo'(newVal,oldVal) { + if (newVal!==oldVal) { + this.watchDrawingNo() + } + } + }, + methods:{ + init(obj){ + this.noWarn = true + if (obj) { + this.form = {...obj} + } else { + this.form.materialNo = '' + } + this.$nextTick(()=>{ + this.noWarn = false + }) + }, + getFormValues(){ + return {...this.form} + }, + checkConfirm(){ + let res = {flag:true,data:{}} + res.data = this.getFormValues() + if (!res.data.materialNo) { + this.msg.materialNo = '璇峰綍鍏ョ墿鏂欑紪鐮侊紒' + res.flag = false + } else { + this.msg.materialNo = '' + } + if (res.flag && (!res.data.long || !res.data.wide || !res.data.high)) { + this.msg.materialspec = '璇峰綍鍏ュ昂瀵革紒' + res.flag = false + } else { + this.msg.materialspec = '' + } + if (res.flag && !res.data.drawingNo) { + this.msg.drawingNo = '璇峰綍鍏ュ浘鍙凤紒' + res.flag = false + } else { + this.msg.drawingNo = '' + } + if (res.flag && !res.data.shipNo) { + this.msg.shipNo = '璇峰綍鍏ヨ埞鍙凤紒' + res.flag = false + } else { + this.msg.shipNo = '' + } + return res; + }, + watchSpec(){ + if (this.form.long && this.form.wide && this.form.high) { + this.msg.materialspec = '' + } + }, + watchMaterialNo(){ + if(!this.form.materialNo && !this.noWarn) { + this.msg.materialNo = '璇峰綍鍏ョ墿鏂欑紪鐮侊紒' + } else { + this.msg.materialNo = '' + } + }, + watchDrawingNo(){ + if(!this.form.drawingNo && !this.noWarn) { + this.msg.drawingNo = '璇峰綍鍏ュ浘鍙凤紒' + } else { + this.msg.drawingNo = '' + } + }, + watchShipNo(){ + if(!this.form.shipNo && !this.noWarn) { + this.msg.shipNo = '璇峰綍鍏ヨ埞鍙凤紒' + } else { + this.msg.shipNo = '' + } + } + } +} +</script> + +<style scoped lang="scss"> +.unstacking-instore-edit-page-content{ + height: 100%; + box-sizing: border-box; + padding-bottom: 12rpx; + .form-view{ + height: 100%; + overflow: auto; + } + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/unstackingInstore/modules/main.vue b/PipeLineLems.PDA/pages/unstackingInstore/modules/main.vue new file mode 100644 index 0000000..a102aa1 --- /dev/null +++ b/PipeLineLems.PDA/pages/unstackingInstore/modules/main.vue @@ -0,0 +1,295 @@ +<template> + <view class="unstacking-instore-main-page-content"> + <view class="top-view"> + <scan-input-form-item + class="forma-item" + label="鎵樼洏鐮�" + v-model="form.container" + :msg="msg.container" + :msg-type="msgType.container" + @search="onSearchContainer" + @clear="onClearContainer" + /> + <view class="btns-row"> + <view class="btn primary-btn" @tap.stop="onAdd">娣诲姞鐗╂枡</view> + </view> + </view> + <view class="list-view"> + <!-- ########### --> + <view class="list-items-group"> + + <view class="list-item" v-for="(item,index) in list" :key="'list-item-'+index"> + <uni-swipe-action-item :auto-close="false"> + <view class="list-item-show"> + <view class="item-left"> + <uni-badge :text="list.length-index" type="primary" size="normal" /> + </view> + <view class="item-main"> + <view class="item-row"> + <view class="label">鐗╂枡缂栧彿</view> + <view class="content">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">鍥惧彿</view> + <view class="content">{{item.drawingNo}}</view> + </view> + <view class="item-row"> + <view class="label">鑸瑰彿</view> + <view class="content">{{item.shipNo}}</view> + </view> + <view class="item-row"> + <view class="label">灏哄</text></view> + <view class="content">{{item.long}}*{{item.wide}}*{{item.high}}</view> + </view> + </view> + </view> + <template v-slot:right> + <view class="swipe-action-btns"> + <view class="swipe-action-btn" @tap.stop="onEdit(item,index)"><text>缂栬緫</text></view> + <view class="swipe-action-btn danger" @tap.stop="onDel(index)"><text>鍒犻櫎</text></view> + </view> + </template> + </uni-swipe-action-item> + </view> + + </view> + <!-- ########### --> + </view> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import { $alert, parseDic } from '@/static/js/utils/index.js' +const defaultForm = { + container:'' +} +export default { + name:'unstackingInstoreMainPageContent', + emits:['pageChange'], + components:{ScanInputFormItem}, + data() { + return { + form: {...defaultForm}, + msg:{ + container:'' + }, + msgType:{ + container:'error' + }, + list:[], + container:null + } + }, + methods:{ + onSearchContainer(){ + if (!this.form.container) { + this.msgType.container = 'error' + this.msg.container = '璇疯緭鍏ユ墭鐩樼爜锛�'; + return false; + } + this.msg.container = ''; + this.getContainerInfo() + }, + onClearContainer(){ + this.clearMain() + }, + clearMain(){ + this.clearContainer() + this.clearBackContainer() + }, + clearContainer(){ + this.form.container = '' + this.msg.container = '' + }, + clearBackContainer(){ + this.container = null + this.list = [] + }, + getContainerInfo(callback){ + const __setErrMessage = function(__msg) { + if (!__msg) { + __msg = '缃戠粶閿欒锛岃绋嶅悗鍐嶅皾璇曪紒' + } + this.msgType.container = 'error' + this.msg.container = __msg; + }.bind(this) + let params = {ContainerCode:this.form.container} + this.$api.get('UnstackingGetContainer',params,{block:'unstacking',fullRes:true}).then((d)=>{ + if (d.data) { + if (d.data.wmsContainer) { + this.container = d.data.wmsContainer + this.list = d.data.wmsMaterials || [] + let _temp1 = parseDic(this.$store,'container_status',this.container.containerStatus) + this.msgType.container = 'info' + this.msg.container = `灏哄锛�${this.container.specLength}*${this.container.specWidth}锛岀姸鎬侊細${_temp1}` + callback && callback(true) + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + } else { + this.clearBackContainer() + __setErrMessage(d.message) + callback && callback(false) + } + }).catch((_errmsg)=>{ + this.clearBackContainer() + __setErrMessage() + callback && callback(false) + }) + }, + onDel(index){ + this.list.splice(index,1) + }, + onAdd(){ + this.$emit('pageChange',null) + }, + onEdit(obj,index){ + this.$emit('pageChange',obj,index) + }, + add(obj){ + this.list.unshift(obj) + }, + modify(obj,index) { + this.$set(this.list,index,obj) + }, + getSubmitParams(){ + return { + list:this.list, + container:this.container + } + }, + checkConfirm(confirmType='confirm'){ + let res = {flag:true,data:{}} + res.data = this.getSubmitParams() + if (res.flag && res.data.list.length<=0) { + $alert('璇峰綍鍏ョ墿鏂欐暟鎹紒') + res.flag = false + } + return res; + }, + } +} +</script> + +<style scoped lang="scss"> +.unstacking-instore-main-page-content{ + height: 100%; + display: flex; + flex-direction: column; + &>.top-view{ + flex-shrink: 0; + } + &>.list-view{ + height: 1px; + overflow: auto; + flex-grow: 1; + .list-items-group{ + padding-top:12rpx; + .list-item { + margin-bottom: 12rpx; + border-width: 2rpx 0; + border-style: solid; + border-color: $uni-border-color; + &:last-child{ + margin-bottom: 0; + } + } + } + .list-item-show{ + background-color: $uni-bg-color; + font-size: 1.1em; + display: flex; + &>.item-left{ + flex-shrink: 0; + padding-left: 16rpx; + padding-top: 12rpx; + padding-right: 12rpx; + } + &>.item-main{ + flex-grow: 1; + width: 1px; + padding-right: 16rpx; + } + .item-row{ + border-bottom: 2rpx dashed $uni-text-color-grey; + display: flex; + &>.label{ + opacity: .7; + flex-shrink: 0; + width: 130rpx; + padding-top: 11rpx; + .first-label-inner{ + display: flex; + align-items: center; + .batch-no{ + margin-left: 8rpx; + } + } + } + &>.content{ + width: 1px; + flex-grow: 1; + line-height: 1.5em; + padding: 8rpx 0; + } + &:last-child{ + border-bottom: 0; + } + } + } + } + .forma-item{ + margin-bottom: 24rpx; + } + .btns-row{ + display: flex; + height: 90rpx; + box-sizing: border-box; + border-style: solid; + border-color: $uni-border-1; + border-width: 2rpx 0 2rpx 0; + .divider { + width: 2rpx; + height: 100%; + background-color: $uni-border-1; + } + .btn{ + flex-grow: 1; + width: 1px; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + &.primary-btn{ + background-color: $uni-color-primary; + color: $uni-bg-color; + } + &.default-btn{ + background-color: $uni-bg-color; + color: $uni-color-primary; + } + } + } +} +.swipe-action-btns{ + width: 100rpx; + display: flex; + flex-direction: column; +} +.swipe-action-btn{ + display: flex; + color: $uni-bg-color; + background-color: $u-primary; + justify-content: center; + align-items: center; + height: 50%; + width: 100rpx; + box-sizing: border-box; + &.danger{ + background-color: $u-error; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/unstackingInstore/modules/step2.vue b/PipeLineLems.PDA/pages/unstackingInstore/modules/step2.vue new file mode 100644 index 0000000..8624929 --- /dev/null +++ b/PipeLineLems.PDA/pages/unstackingInstore/modules/step2.vue @@ -0,0 +1,107 @@ +<template> + <view class="unstacking-instore-step2-page-content"> + <easy-select-form-item + class="forma-item" + label="鍏ュ簱鏂瑰紡" + v-model="form.taskModel" + :list="selectList.models" + value-field="code" + label-field="name" + :clearable="false" + /> + + <easy-select-form-item + class="forma-item" + label="鍏ュ簱鍖哄煙" + v-model="form.taskArea" + :list="selectList.areas" + :clearable="false" + /> + + <easy-select-form-item + class="forma-item" + label="璧峰绔欑偣" + v-model="form.stationCode" + :list="selectList.startStations" + value-field="stationCode" + label-field="stationName" + /> + + <scan-input-form-item + label="鐩爣浣嶇疆" + v-model="form.toPlaceCode" + :has-scan="false" + :has-search="false" + /> + </view> +</template> + +<script> +import ScanInputFormItem from '@/components/ScanInputFormItem.vue' +import EasySelectFormItem from '@/components/EasySelectFormItem.vue' +import { getDicList } from '@/static/js/utils/index.js' +const defaultForm = { + stationCode:'', + taskModel:'2', + taskArea:2, + toPlaceCode:'' +} +export default { + name:'unstackingInstoreStep2PageContent', + components:{ScanInputFormItem,EasySelectFormItem}, + data(){ + return { + form: {...defaultForm}, + selectList:{ + startStations:[], + models:[], + areas:[ + {value:1,label:'涓�妤兼楠岀偣'}, + {value:2,label:'浜屾ゼ閽㈠钩鍙�'} + ] + } + } + }, + methods:{ + init(){ + this.getStartStations() + this.getActionTypes() + }, + getStartStations(callback){ + if (this.selectList.startStations.length>0) { + callback && callback(true) + } else { + this.$api.get('StarPlaceList',{},{block:'unstacking'}).then((d)=>{ + this.selectList.startStations = d || [] + callback && callback(true) + }).catch((e)=>{ + callback && callback(false,e) + }) + } + }, + getActionTypes(){ + if (this.selectList.models.length>0) { + callback && callback(true) + } else { + this.selectList.models = getDicList(this.$store,'assemble_taskmodel') + } + }, + clear(){ + this.form = {...defaultForm} + }, + get(){ + return {...this.form} + } + } +} +</script> + +<style lang="scss" scoped> +.unstacking-instore-step2-page-content{ + height: 100%; + overflow: auto; + .forma-item{ + margin-bottom: 24rpx; + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/writeRfid/index.vue b/PipeLineLems.PDA/pages/writeRfid/index.vue new file mode 100644 index 0000000..bb2e66f --- /dev/null +++ b/PipeLineLems.PDA/pages/writeRfid/index.vue @@ -0,0 +1,364 @@ +<template> + <default-header-page-layout ref="page" title="璇诲啓RFID"> + <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> + <action-user-row /> + <view class="with-action-user-row-page-content"> + <!-- step 1 start --> + <view> + rfid 璇诲彇鍐呭涓猴細{{form.containterCode}} + </view> + + <scan-input-form-item class="forma-item" label="鐗╂枡浜岀淮鐮�" v-model="form.materialNo" :msg="msg.material" + :msg-type="msgType.material" @search="onSearchMaterial" @clear="onClearMaterial" /> + + <scan-input-form-item placeholder="璇烽�夋嫨" :clearable="false" :hasScan="false" :hasSearch="false" + @click.native="visible=true" class="forma-item" label="閫夋嫨搴撲綅" v-model="form.site" /> + <EasyPicker :visible.sync="visible" :list="placeNoList" + labelField="placeNo" valueField="placeNo" @select="getSiteVal" /> + + <scan-input-form-item + placeholder="璇烽�夋嫨" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="ctVisible = true" + class="forma-item" + label="鎵樼洏绫诲瀷" + v-model="form.containerType" + /> + <EasyPicker :visible.sync="ctVisible" :list="ContainerType" labelField="value" valueField="code" @select="getTypeVal" /> + + <scan-input-form-item + placeholder="璇烽�夋嫨" + :clearable="false" + :hasScan="false" + :hasSearch="false" + @click.native="jxVisible = true" + class="forma-item" + label="鏈哄瀷" + v-model="form.materialModelDesc" + /> + <EasyPicker :visible.sync="jxVisible" :list="materialModelList" labelField="value" valueField="code" @select="getModelVal" /> + + <materialList :materialData="materialData" @delMaterialData="delMaterialData" /> + + <!-- <NFCReader @update:uid="handleUIDUpdate"></NFCReader> --> + </view> + </view> + <template v-slot:footer> + <view class="bottom-btns-row"> + <!-- v-if="materialData.length>0" --> + <template > + <div class="btn-frame"> + <u-button type="primary" text="鑷姩鍙e啓鍏FID" @click="onSubmit(1)":disabled="!abled"></u-button> + </div> + <div class="btn-frame"> + <u-button type="primary" text="澶栧崗鍙e啓鍏FID" @click="onSubmit(2)":disabled="!abled"></u-button> + </div> + </template> + </view> + </template> + </default-header-page-layout> +</template> + +<script> + import DefaultHeaderPageLayout from '@/components/DefaultHeaderPageLayout.vue' + import ActionUserRow from '@/components/ActionUserRow.vue' + import ScanInputFormItem from '@/components/ScanInputFormItem.vue' + import EasySelectFormItem from '@/components/EasySelectFormItem.vue' + import EasyPicker from '@/components/EasyPicker.vue' + import materialList from './modules/materialList.vue' +import { NFCReader } from '@/components/ReadRfid.vue' + import { + parseDic, + $alert, + $successInfo, + getDicList + } from '@/static/js/utils/index.js' + import { + palceList + } from '@/service/mixins/mixins.js' + import { + getForContainerCode, + getForMaterialNo, + bindMaterialContainer, + addInBound, + addInVirtualPlace, + addAGVTask, + writeRfid + } from '@/api/bind.js' + import {NFCInit,NFCReadUID } from '@/service/util/RfidMethod.js' + let initInterVal = null; + + export default { + name: 'receiveInPage', + components: { + DefaultHeaderPageLayout, + ActionUserRow, + ScanInputFormItem, + EasySelectFormItem, + materialList, + EasyPicker, + NFCReader + }, + data() { + return { + pageBodyHeight: 0, + containter: null, + form: { + containterCode: '', + materialNo: '', + site: '108', + containerTypeCode: 0, + containerType: '' + }, + msg: { + containter: '', + material: '', + site: '', + }, + msgType: { + containter: 'info', + material: 'error', + site: 'error' + }, + containerInfo: {}, + materialData: [], + ContainerType: [], + materialModelList: [], + visible: false, + ctVisible: false, + jxVisible: false, + placeNoList:['101','108','109','110','111','113','114','115'], // 姝ゅ鍥哄畾鍙湁RFID璇荤爜鍣ㄥ簱浣� + title: 'redNFC', + UID: '', + msg: '', + tip: '', + readyWriteData: false + } + }, + computed: { + abled() { + let { + containerStatus + } = this.containerInfo + return containerStatus != 0 && containerStatus != 3 && this.materialData.length > 0 + } + }, + onLoad() { + console.log('onLoad'); + }, + onShow() { + console.log('onShow'); + var nfc = NFCInit(); + console.log(8888888888888888); + console.log(nfc); + }, + onHide() { + console.log('onHide'); + var rfid = NFCReadUID(); + if(rfid!=null){ + this.form.containterCode = rfid.UID + } + console.log(rfid); + }, + methods: { // 娴嬭瘯PLC瑙﹀彂鐢熸垚鍏ュ簱浠诲姟 + + // 閫夋嫨绔欑偣杩斿洖鍊� + getSiteVal(val, valObj, index) { + this.form.site = val + }, + // 閫夋嫨鎵樼洏绫诲瀷杩斿洖鍊� + getTypeVal(val, valObj, index) { + this.form.containerTypeCode = valObj.code + this.form.containerType = valObj.value + }, + getModelVal(val, valObj, index){ + this.form.materialModelDesc = valObj.value + this.form.materialModel = valObj.code + }, + /* 鐗╂枡缂栫爜鎼滅储 */ + async onSearchMaterial() { + if (!this.form.materialNo) { + this.msg.material = '璇疯緭鍏ョ墿鏂欑紪鍙凤紒'; + return false; + } + try { + const isExist = this.materialData.some(item => item == this.form.materialNo) + if (!isExist) { + // this.materialData.push(result) + this.materialData.push(this.form.materialNo) + }else{ + $alert(`鐗╂枡鍞竴鐮佸凡瀛樺湪,璇峰垹闄ゅ悗鍐嶈緭鍏ワ紒`); + } + console.log(this.materialData) + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 鐗╂枡缂栫爜娓呴櫎 */ + onClearMaterial() { + this.form.materialNo = '' + this.materialData = [] + }, + //鍒犻櫎鐗╂枡 + delMaterialData(materialNo) { + this.materialData = this.materialData.filter(item => item != materialNo) + }, + // 鍐欏叆RFID + async onSubmit(type) { + const data = { + stationCode: this.form.site, + rfids: this.materialData, + containerType: this.form.containerTypeCode, + materialModel: this.form.materialModel, + type: type + } + try { + await writeRfid(data) + this.$modal('鍐欏叆鎴愬姛') + this.onClearMaterial() + } catch (e) { + //TODO handle the exception + console.log(e); + } + }, + /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ + startInitInterval(callback) { + initInterVal = setInterval(() => { + if (this.pageBodyHeight) { + this.clearInitInterval() + callback && callback() + } else { + this.pageBodyHeight = this.$refs.page.getBodyHeight() + } + }, 200) + }, + /* 娓呴櫎瀹氭椂鍣� */ + clearInitInterval() { + try { + clearInterval(initInterVal) + initInterVal = null + } catch (e) { + //TODO handle the exception + } + }, + }, + mixins: [palceList], + onReady() { + this.startInitInterval(async () => { + /* 椤甸潰鍒濆鍖栧悗闇�瑕佹墽琛岀殑浠g爜鍦ㄨ繖杈硅皟鐢� */ + this.getPalceList({ + areaCode: 'SDCR' + }); + + this.ContainerType = getDicList(this.$store, 'container_type').sysDictDatas; + this.materialModelList = getDicList(this.$store, 'material_modal').sysDictDatas; + }); + }, + onUnload() { + this.clearInitInterval() + } + } +</script> + +<style scoped lang="scss"> + .bottom-btns-row { + display: flex; + justify-content: center; + padding: 10rpx 10rpx; + background-color: #fff; + + .btn-frame { + flex: 1; + box-sizing: border-box; + } + + .btn-frame:nth-child(1) { + margin-right: 10rpx; + } + + .left-btn-frame { + padding-left: 20rpx; + padding-right: 8rpx; + } + + .right-btn-frame { + padding-right: 20rpx; + padding-left: 8rpx; + } + } + + .forma-item { + margin-bottom: 24rpx; + } + + .material-item-group { + background-color: $uni-bg-color; + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + margin-bottom: 10rpx; + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + &>.label { + flex-shrink: 0; + color: $u-tips-color; + width: 144rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/pages/writeRfid/modules/materialList.vue b/PipeLineLems.PDA/pages/writeRfid/modules/materialList.vue new file mode 100644 index 0000000..e556c1a --- /dev/null +++ b/PipeLineLems.PDA/pages/writeRfid/modules/materialList.vue @@ -0,0 +1,153 @@ +<template> + <u-swipe-action v-if="materialData.length>0" > + <u-swipe-action-item :options="options" v-for="(item,index) in materialData" + :key="'material-list-item-'+index" style="margin-bottom: 20rpx;" + @click="deleteItem" :index="index" :name="item"> + <view class="material-item-group"> + <view class="material-list-item" > + <!-- <view class="close-btn"> + <view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view> + </view> --> + <view class="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> + <view class="item-row"> + <view class="label">鐗╂枡浜岀淮鐮侊細</view> + <view class="content auto-wrap">{{item}}</view> + </view> + <!-- <view class="item-row"> + <view class="label">鐗╂枡鍚嶇О锛�</view> + <view class="content auto-wrap">{{item.materialName}}</view> + </view> + <view class="item-row"> + <view class="label">浠跺彿锛�</view> + <view class="content auto-wrap">{{item.materialNo}}</view> + </view> + <view class="item-row"> + <view class="label">渚涘簲鍟嗭細</view> + <view class="content auto-wrap">{{item.supplierCode}}</view> + </view> --> + <!-- <view class="item-row"> + <view class="label">瑙勬牸锛�</view> + <view class="content auto-wrap">{{item.materialSpec}}</view> + </view> --> + <!-- <view class="item-row"> + <view class="label">鏈哄瀷锛�</view> + <view class="content auto-wrap">{{parseDic($store,'material_modal',item.materialModel)}}</view> + </view> --> + <!-- <view class="item-row"> + <view class="label">鏁伴噺锛�</view> + <view class="content auto-wrap">{{item.stockNumber}}</view> + </view> --> + </view> + </view> + </u-swipe-action-item> + </u-swipe-action> +</template> + +<script> + import {parseDic} from '@/static/js/utils/index.js' + export default { + props: { + materialData: { + type: Array, + default: () => [] + }, + // materialModalData:{ + // type: Array, + // default: () => [] + // } + }, + data() { + return { + options: [{ + text: '鍒犻櫎', + style:{ + backgroundColor: '#F18202' + } + }], + materialModalData:[] + } + }, + // created(){ + // this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas + // console.log(this.materialModalData); + // }, + methods:{ + parseDic, + deleteItem({name}){ + this.$emit('delMaterialData',name) + } + } + } +</script> + +<style scoped lang="scss"> + .material-item-group { + /* background-color: transparent!impor; */ + padding-top: 10rpx; + + .material-list-item { + border-bottom: 2rpx solid $uni-border-color; + padding-bottom: 10rpx; + padding-left: 60rpx; + /* margin-bottom: 10rpx; */ + position: relative; + + &:last-child { + border-bottom: 0; + } + + .item-row { + display: flex; + + .label { + flex-shrink: 0; + color: #000; + /* text-align: right; */ + /* font-weight:5; */ + width: 180rpx; + } + + &>.content { + flex-grow: 1; + color: $u-content-color; + + uni-input { + font: inherit; + color: $u-primary; + text-decoration: underline; + } + } + } + + .badge-box { + position: absolute; + top: 8rpx; + left: 8rpx; + z-index: 1; + } + + .close-btn { + $closeBtnSize: 70rpx; + width: $closeBtnSize; + height: $closeBtnSize; + z-index: 1; + position: absolute; + top: 0rpx; + right: 8rpx; + background-color: $u-error; + opacity: 0.6; + border-radius: 25rpx; + + .icon-layer { + position: absolute; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + } + } + } + } +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/service/mixins/mixins.js b/PipeLineLems.PDA/service/mixins/mixins.js new file mode 100644 index 0000000..e11f328 --- /dev/null +++ b/PipeLineLems.PDA/service/mixins/mixins.js @@ -0,0 +1,67 @@ +import {getSysEnumData,getPalceList} from '@/api/common.js' +const orderStatus = { + data() { + return { + OrderStatus: [] + } + }, + created() { + this.getSysEnumData('OrderStatusEnum') + }, + filters: { + getStatus(orderStatus, OrderStatus) { + const result = OrderStatus.filter(obj => obj.code == orderStatus) + return result.length > 0 ? result[0].value : '' + } + }, + methods: { + //鑾峰彇鍗曟嵁鐘舵�佹灇涓� + async getSysEnumData(enumName) { + try { + let { + data + } = await getSysEnumData({ + enumName + }) + this.OrderStatus = data + console.log(data); + } catch (e) { + //TODO handle the exception + console.log(e); + } + } + } +} + + +const palceList={ + data() { + return { + placeList: [] + } + }, + methods:{ + // 鑾峰彇搴撲綅鍒楄〃 + async getPalceList(data){ + try{ + let {result}=await getPalceList(data); + // this.placeList=[...result,...this.placeList] + //妯$硦鎼滅储 瓒婃悳绱㈣秺灏� + this.placeList = result; + console.log(this.placeList,'result'); + }catch(e){ + console.log(e); + } + }, + async getTargetPlaceList(data){ + try{ + let {result}=await getPalceList(data); + return result; + }catch(e){ + //TODO handle the exception + console.log(e); + } + }, + } +} +export {orderStatus,palceList} \ No newline at end of file diff --git a/PipeLineLems.PDA/service/request/index.js b/PipeLineLems.PDA/service/request/index.js new file mode 100644 index 0000000..5e80b60 --- /dev/null +++ b/PipeLineLems.PDA/service/request/index.js @@ -0,0 +1,245 @@ +import beforeSend from './modules/beforeSend.js' +import { getObjectType } from '@/static/js/utils/index.js' + +const parseThirdOptions = Symbol('parseThirdOptions'); +const goLogin = Symbol('goLogin'); +const api = Symbol('api'); + +class CreateApi { + constructor(store,config){ + this.$store = store; + this.$config = config; + this.$noTokenMsg = 'Token涓㈠け锛�'; + this.$invalidTokenMsg = '鐧诲綍宸茶秴鏃讹紝璇烽噸鏂扮櫥褰曪紒'; + } + + /* + 鍐呴儴鏂规硶锛岃В鏋愰澶栬缃� + */ + [parseThirdOptions](opts){ + const defaultOpts = { + warn:true, + host:'default', + block:'default', + needToken:true, + fullRes:false, + loading:true + } + let result = {...defaultOpts} + if (opts) { + if (typeof opts === 'string') { + result.block = opts + } else if (getObjectType(opts)==='object') { + result = {...result,...opts} + } + } + return result; + } + + /* + 璺宠浆鍒扮櫥褰曢〉闈� + */ + [goLogin](){ + let pages = getCurrentPages(); + if (('/'+pages[0].route)!==this.$config.path.login){ + uni.redirectTo({url:this.$config.path.login}) + } + } + + /* + api璋冪敤 + */ + [api](httpMethod,method,params={},opts,paramsX){ + return new Promise((resolve, reject)=>{ + httpMethod = httpMethod.toUpperCase() + let beforeRes = this.getHeaders(opts) //鑾峰彇璇锋眰澶� + let headerOption = {}; + if (!beforeRes.flag) { + //token涓㈠け閿欒 + this[goLogin]() + reject(this.$noTokenMsg); + } else { + headerOption = beforeRes.headers; //璇锋眰澶磋祴鍊� + let url = this.getUrl(method,opts,true); //缁勬垚璇锋眰鍦板潃 + if (httpMethod==='POST'||httpMethod==='PUT'||httpMethod==='PATCH') { + //POST鍜孭UT鏂规硶锛屽嵈浣跨敤GET鏂瑰紡浼犲弬锛岄渶瑕佸仛鍙傛暟澶勭悊 + let tempStr = ''; + if (getObjectType(paramsX)==='object') { + let tempArr = []; + for (let fieldName in paramsX) { + tempArr.push(fieldName+'='+paramsX[fieldName]) + } + tempStr = tempArr.join('&'); + } + if (tempStr) { + if (url.indexOf('?')<0) { + url += '?' + tempStr; + } else { + url += '&' + tempStr; + } + } + } else { + //GET鍜孌ELETE鏂规硶锛屽姞鏃堕棿鎴� + params = {...params,...{timekey:new Date().getTime()}}; + } + + let ajaxOptions = { + url:url, + data:params, + method:httpMethod, + header:headerOption, + success:(response)=>{ + if (response.header['access-token'] && response.header['access-token'] !== 'invalid_token') { + this.$store.commit('user/setToken',response.header['access-token']) + //console.log(url) + //console.log('sercer token',response.header['access-token']) + } + if (response.header['x-access-token']) { + this.$store.commit('user/setRefreshToken',response.header['x-access-token']) + } + if (response.statusCode===200) { //璇锋眰鐘舵�佷负200锛屾垚鍔� + if (!this.$config.ajax.host[opts.host] || opts.host==='mock') { + resolve(response.data); + } else { + + if (response.data.code===401) { + this[goLogin]() + let eMsgA = response.data.message; + if (!eMsgA) eMsgA = this.$invalidTokenMsg; + reject(eMsgA); + } else if (response.data.code===200) { + if (!opts.fullRes) { + resolve(response.data.data||response.data.result); + } else { + console.log(response.data,'1'); + resolve(response.data); + } + } else { //鍚庣杩斿洖鍏跺畠code锛屽嚭閿� + console.log('Ajax backstage Error, return: ',response.data) + let eMsg = response.data.message; + if (!eMsg) eMsg = this.$config.ajax.errMsg; + reject(eMsg); + } + } + } else { //璇锋眰鐘舵�佷负闈�200锛屽嚭閿� + console.log('Ajax Error Code: '+response.statusCode) + reject(this.$config.ajax.errMsg); + } + }, + fail:(err1)=>{ //api璋冪敤澶辫触锛屽嚭閿� + reject(this.$config.ajax.errMsg); + } + } + uni.request(ajaxOptions) + } + }) + } + + /* + 鑾峰彇璇锋眰澶� + opts 璇锋眰鍙傛暟锛孞SON瀵硅薄锛屽叾涓� needToken: boolean 鏄惁闇�瑕佷紶閫抰oken + headers 鍘熸湁鐨刪eaders锛孞SON瀵硅薄 + self 鏄惁鏄唴閮ㄨ皟鐢紝澶栭儴璋冪敤涓嶄紶 + */ + getHeaders(opts,headers,self=false){ + let res = {flag:true,headers:{}}; + if (!self) { + opts = this[parseThirdOptions](opts) + } + if (headers && getObjectType(headers)==='object') { + res.headers=headers; + } + let temp = beforeSend(opts,this.$store,res.headers) + if (temp.flag) { + res.headers = temp.headers; + } else { + res.flag = false; + } + return res; + } + + /* + 鑾峰彇璇锋眰鍦板潃 + method 璇锋眰鐨勫悗绔柟娉曞悕绉� + opts 姹傚弬鏁帮紝JSON瀵硅薄锛屽叾涓� host 涓篶onfig涓厤缃殑鍩熷悕鍚嶇О锛� block 涓� config 涓厤缃殑鎺ュ彛妯″潡鍚嶇О锛� + self 鏄惁鏄唴閮ㄨ皟鐢紝澶栭儴璋冪敤涓嶄紶 + */ + getUrl(method,opts,self=false){ + let res = method; + if (!self) { + opts = this[parseThirdOptions](opts) + } + let host = this.$config.ajax.host[opts.host]; + let saveHost; + try{ + saveHost = this.$store.getters['system/get'+opts.host+'Host']; + }catch(hoste){ + //TODO handle the exception + } + if (saveHost) { + host = saveHost; + } + res = host + this.$config.ajax.block[opts.block] + res; + return res; + } + + /* + httpMethod: get post put dellete patch + method:鎺ュ彛鏂规硶鍚� + params:浼犻�掔粰鍚庣鐨勬暟鎹紙JSON锛� + opts:鎺ュ彛璋冪敤鏂规硶棰濆璁剧疆 + paramsX锛歱ost put鏃讹紝濡傛灉闇�瑕乽rl鍚庨潰甯︾殑鍏朵粬鍙傛暟锛孞SON鏍煎紡 + */ + base(httpMethod,method,params={},opts,paramsX){ + opts = this[parseThirdOptions](opts) + if (opts.loading) { + uni.showLoading({ + title: '鍔犺浇涓�...', + mask:true + }); + } + return new Promise((resolve, reject)=>{ + this[api](httpMethod,method,params,opts,paramsX).then((d)=>{ + if (opts.loading) { + uni.hideLoading(); + } + resolve(d) + }).catch(err=>{ + if (opts.loading) { + uni.hideLoading(); + } + if (typeof err !== 'string') { + err = this.$config.ajax.errMsg; + } + if (opts.warn) { + setTimeout(()=>{ + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:err, + showCancel:false + }) + },100) + } + reject(err) + }) + }) + } +} + +CreateApi.prototype.get = function(method,params,opts){ + return this.base('GET',method,params,opts,{}) +} +CreateApi.prototype.post = function(method,params,opts,paramsX){ + return this.base('POST',method,params,opts,paramsX) +} +CreateApi.prototype.put = function(method,params,opts,paramsX){ + return this.base('PUT',method,params,opts,paramsX) +} +CreateApi.prototype.delete = function(method,params,opts){ + return this.base('DELETE',method,params,opts,{}) +} +CreateApi.prototype.patch = function(method,params,opts,paramsX){ + return this.base('PATCH',method,params,opts,paramsX) +} + +export default CreateApi \ No newline at end of file diff --git a/PipeLineLems.PDA/service/request/modules/beforeSend.js b/PipeLineLems.PDA/service/request/modules/beforeSend.js new file mode 100644 index 0000000..78bcc2f --- /dev/null +++ b/PipeLineLems.PDA/service/request/modules/beforeSend.js @@ -0,0 +1,22 @@ +export default function(options,$store,$headers={}) { + let res = {flag:true,headers:$headers}; + if (process.env.NODE_ENV==='development') { + res.headers.IsDevelopment = 'true' + } else { + res.headers.IsDevelopment = 'false' + res.headers.AppVersion = $store.getters['system/getVersion'] + } + if (options.needToken) { + let token = $store.getters['user/getToken']; + if (token) { + res.headers.Authorization = 'Bearer ' + token; + let rToken = $store.getters['user/getRefreshToken']; + if (rToken) { + res.headers['X-Authorization'] = 'Bearer ' + rToken; + } + } else { + res.flag = false; + } + } + return res +} \ No newline at end of file diff --git a/PipeLineLems.PDA/service/store/index.js b/PipeLineLems.PDA/service/store/index.js new file mode 100644 index 0000000..4d97c68 --- /dev/null +++ b/PipeLineLems.PDA/service/store/index.js @@ -0,0 +1,16 @@ +import Vuex from 'vuex' +import user from './modules/user.js' +import system from './modules/system.js' +import print from './modules/print.js' + +export default function(Vue){ + Vue.use(Vuex); + + const store = new Vuex.Store({ + modules:{ + user,system,print + } + }) + + return store +} \ No newline at end of file diff --git a/PipeLineLems.PDA/service/store/modules/print.js b/PipeLineLems.PDA/service/store/modules/print.js new file mode 100644 index 0000000..f514289 --- /dev/null +++ b/PipeLineLems.PDA/service/store/modules/print.js @@ -0,0 +1,26 @@ +export default { + namespaced: true, + state: () => ({ + deviceId:'', + blueInfo:null + }), + mutations: { + setDeviceId(state,val){ + state.deviceId = val; + }, + setBlueInfo(state,obj){ + state.blueInfo = obj; + } + }, + actions: { + + }, + getters: { + getDeviceId(state){ + return state.deviceId; + }, + getBlueInfo(state){ + return state.blueInfo; + } + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/service/store/modules/system.js b/PipeLineLems.PDA/service/store/modules/system.js new file mode 100644 index 0000000..7909739 --- /dev/null +++ b/PipeLineLems.PDA/service/store/modules/system.js @@ -0,0 +1,93 @@ +export default { + namespaced: true, + state: () => ({ + defaulthost:'', + authhost:'', + version:'', + safety:{ + top:0, + bottom:0, + left:0, + right:0 + }, + enum:null + }), + mutations: { + setdefaultHost(state,val){ + uni.setStorageSync('system_host',val); + state.defaulthost = val; + }, + setauthHost(state,val){ + uni.setStorageSync('system_login_host',val); + state.authhost = val; + }, + setVersion(state,val){ + uni.setStorageSync('system_app_version',val); + state.version = val; + }, + setSafety(state,obj){ + state.safety = obj; + }, + setEnum(state,obj){ + uni.setStorageSync('system_enum',JSON.stringify(obj)); + state.enum = obj; + } + }, + actions: { + + }, + getters: { + getdefaultHost(state){ + let res = state.defaulthost; + if (!res) { + let temp = uni.getStorageSync('system_host'); + if (temp) { + res = temp; + state.defaulthost = res; + } + } + return res; + }, + getauthHost(state){ + let res = state.authhost; + if (!res) { + let temp = uni.getStorageSync('system_login_host'); + if (temp) { + res = temp; + state.authhost = res; + } + } + return res; + }, + getVersion(state){ + let res = state.version; + if (!res) { + let temp = uni.getStorageSync('system_app_version'); + if (temp) { + res = temp; + state.version = res; + } + } + return res; + }, + getSafety(state){ + return state.safety + }, + getEnum(state){ + let res = state.enum; + if (!res) { + let temp = uni.getStorageSync('system_enum'); + if (temp) { + try{ + res = JSON.parse(temp) + state.enum = res; + }catch(e){ + //TODO handle the exception + } + } + } + if (!res) res = {} + return res; + } + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/service/store/modules/user.js b/PipeLineLems.PDA/service/store/modules/user.js new file mode 100644 index 0000000..3bd2968 --- /dev/null +++ b/PipeLineLems.PDA/service/store/modules/user.js @@ -0,0 +1,147 @@ +import { getObjectType } from '@/static/js/utils/index.js' +export default { + namespaced: true, + state: () => ({ + token:'', + account:'', + visited:[], + userInfo:{}, + refreshToken:'' + }), + mutations: { + setToken(state,val){ + uni.setStorageSync('user_token',val.accessToken); + uni.setStorageSync('refresh_token',val.refreshToken); + state.token = val.accessToken; + state.refreshToken=val.refreshToken; + }, + setRefreshToken(state,val){ + uni.setStorageSync('user_refresh_token',val); + state.refreshToken = val; + }, + setAccount(state,val){ + uni.setStorageSync('user_account',val); + state.account = val; + }, + setUserInfo(state,obj){ + uni.setStorageSync('user_info',JSON.stringify(obj)); + state.userInfo = obj; + }, + addVisited(state,obj){ + if (obj.account){ + let oldArr = state.visited; + if (oldArr.length===0) { + let _local = uni.getStorageSync('user_visited'); + if (_local) { + try{ + oldArr=JSON.parse(_local) + }catch(e){ + console.log(e) + } + } + } + let errFlag = false; + if (getObjectType(oldArr)!=='array') { + oldArr = [] + errFlag = true; + } + let inFlag = false; + for (let i=0;i<oldArr.length;i++) { + if (oldArr[i].account===obj.account) { + inFlag = true; + break; + } + } + if (!inFlag) { + oldArr.push(obj) + state.visited = oldArr; + uni.setStorageSync('user_visited',JSON.stringify(oldArr)); + } else if (errFlag) { + state.visited = oldArr; + uni.setStorageSync('user_visited',JSON.stringify(oldArr)); + } + } + }, + clear(state){ + state.token = ''; + state.refreshToken = ''; + state.userInfo = {}; + state.account = ''; + uni.removeStorageSync('user_token'); + uni.removeStorageSync('user_info'); + uni.removeStorageSync('user_account'); + uni.removeStorageSync('user_refresh_token'); + } + }, + actions: { + + }, + getters: { + getToken(state){ + let res = state.token; + if (!res) { + let temp = uni.getStorageSync('user_token'); + if (temp) { + res = temp; + state.token = res; + } + } + return res; + }, + getRefreshToken(state){ + let res = state.refreshToken; + if (!res) { + let temp = uni.getStorageSync('user_refresh_token'); + if (temp) { + res = temp; + state.refreshToken = res; + } + } + return res; + }, + getUserInfo(state){ + let res = state.userInfo; + if (!res || !res.id) { + let _str = uni.getStorageSync('user_info'); + if (_str) { + try{ + res = JSON.parse(_str) + state.userInfo = res + }catch(e){ + console.log('storage user_info err parse to json') + } + } + } + return res + }, + getAccount(state){ + let res = state.account; + if (!res) { + let temp = uni.getStorageSync('user_account'); + if (temp) { + res = temp; + state.account = res; + } + } + return res; + }, + getVisited(state){ + let res = state.visited; + if (!res.length) { + let _local = uni.getStorageSync('user_visited'); + if (_local) { + try{ + let temp = JSON.parse(_local) + if (getObjectType(temp)==='array') { + res = temp; + state.visited = res; + } + }catch(e){ + console.log(e) + } + } + } + return res; + } + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/service/util/RfidMethod.js b/PipeLineLems.PDA/service/util/RfidMethod.js new file mode 100644 index 0000000..363f13c --- /dev/null +++ b/PipeLineLems.PDA/service/util/RfidMethod.js @@ -0,0 +1,315 @@ +// src/utils/rfidUtils.js + +let NfcAdapter; +let NfcV; + +export function NFCInit() { + try { + var main = plus.android.runtimeMainActivity(); + var Intent = plus.android.importClass('android.content.Intent'); + var Activity = plus.android.importClass('android.app.Activity'); + var PendingIntent = plus.android.importClass('android.app.PendingIntent'); + var IntentFilter = plus.android.importClass('android.content.IntentFilter'); + NfcAdapter = plus.android.importClass('android.nfc.NfcAdapter'); + NfcV = plus.android.importClass('android.nfc.tech.NfcV') + var _nfcAdapter = NfcAdapter.getDefaultAdapter(main); + + var ndef = new IntentFilter('android.nfc.action.NDEF_DISCOVERED'); + var tag = new IntentFilter('android.nfc.action.TAG_DISCOVERED'); + var tech = new IntentFilter('android.nfc.action.TECH_DISCOVERED'); + var intentFiltersArray = [ndef, tag, tech]; + + var techListsArray = [ + ['android.nfc.tech.Ndef'], + ['android.nfc.tech.IsoDep'], + ['android.nfc.tech.NfcA'], + ['android.nfc.tech.NfcB'], + ['android.nfc.tech.NfcF'], + ['android.nfc.tech.Nfcf'], + ['android.nfc.tech.NfcV'], + ['android.nfc.tech.NdefFormatable'], + ['android.nfc.tech.MifareClassi'], + ['android.nfc.tech.MifareUltralight'] + ]; + + var _intent = new Intent(main, main.getClass()); + _intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); + + var pendingIntent = PendingIntent.getActivity(main, 0, _intent, 0); + + if (_nfcAdapter == null) { + return '鏈澶囦笉鏀寔NFC!'; + } else if (_nfcAdapter.isEnabled() == false) { + return 'NFC鍔熻兘鏈墦寮�!'; + } else { + _nfcAdapter.enableForegroundDispatch(main, pendingIntent, IntentFilter, techListsArray); + return 'NFC姝e父'; + } + } catch (e) { + console.log(e); + } +} + +export function NFCReadUID() { + var main = plus.android.runtimeMainActivity(); + var _intent = main.getIntent(); + var _action = _intent.getAction(); + + var tagFromIntent = _intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); + var uid = _intent.getByteArrayExtra(NfcAdapter.EXTRA_ID); + var text = _intent.getByteArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); + var rawMsgs = _intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); + + var UID = Bytes2HexString(uid); + return { + UID, + text + }; +} + +export function Bytes2HexString(arrBytes) { + var str = ''; + var reversedArrBytes = arrBytes?.slice().reverse(); + for (var i = 0; i < reversedArrBytes.length; i++) { + var tmp; + var num = reversedArrBytes[i]; + if (num < 0) { + tmp = (255 + num + 1).toString(16).toUpperCase(); + } else { + tmp = num.toString(16).toUpperCase(); + } + if (tmp.length == 1) { + tmp = '0' + tmp; + } + str += tmp; + } + return str; +} + +// export function read() { // 璇讳唬鐮� +// var main = plus.android.runtimeMainActivity(); +// var intent = main.getIntent(); +// // this.callBack(NFCServices.READING, '璇峰嬁绉诲紑鏍囩姝e湪璇诲彇鏁版嵁锛�') +// // NFC id +// let bytesId = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID); +// let nfc_id = byteArrayToHexString(bytesId); +// let extractedValues = {} +// let tag = plus.android.importClass('android.nfc.Tag'); +// tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); +// // 寮�濮嬭鍙栨墖鍖� +// // let NfcV = NfcV +// // 姝ゅ鍦板潃鏈夐暱搴﹀垽鏂� +// if (nfc_id.length === 16) { +// let tech = NfcV.get(tag); +// if (tech != null) { +// try { +// tech.connect(); +// let isConnected = tech.isConnected() +// if (isConnected) { +// // 鎰熻杩欎釜tagUid灏辨槸涓婇潰鐨刵fc_id (mac鍦板潃) +// var tagUid = tag.getId(); + +// // //璇诲彇鍧椾俊鎭� +// // let buffer1 = [0x22, 0x20, ...tagUid]; +// // var aa= nfcV.transceive(buffer1); +// let str1; +// let bytelist=""; +// for(let i = 0; i銆�< 50; i++) { +// let line=readBlockConcat(tech, tagUid, i); +// let str = String(byteArrayToHexString(line))?.slice(2); +// // 杞崲涓� ASCII 鏁扮粍锛岀劧鍚庤繛鎺ユ垚瀛楃涓� +// let statusArr = decimalArrayToAscii(hexStringToArrayAndConvert(str)); +// let openStatus = statusArr.length ? statusArr.join('') : ''; +// bytelist=bytelist+openStatus; +// } + +// extractedValues = { +// read_raw: nfc_id, +// mac_raw: reverseString(nfc_id), +// mac: stringToMacAddress(nfc_id), +// openStatus: bytelist.trim() +// } +// return extractedValues.openStatus +// // console.log(extractedValues); +// // this.callBack(NFCServices.READ_SUCCESS, '璇诲彇鏁版嵁鎴愬姛锛�', extractedValues) +// } +// } catch (e) { +// console.log('nfc catch', e.stack); +// return '娌℃湁璇诲彇鍒版暟鎹紒' +// } +// } +// } else { +// //mac鍦板潃闀垮害涓嶇鍚堟湰娆¢渶姹�,杩斿洖mac鍦板潃鍜屼竴涓敊璇殑openStatus,openStatus鐪嬭嚜宸变笟鍔℃儏鍐�,鍙互鍘绘帀 +// extractedValues = { +// read_raw: nfc_id, +// mac_raw: reverseString(nfc_id), +// mac: stringToMacAddress(nfc_id), +// openStatus: '' +// } +// return extractedValues.openStatus +// // this.callBack(NFCServices.READ_SUCCESS, '璇诲彇鏁版嵁鎴愬姛锛�', extractedValues) +// // console.log(extractedValues); +// } +// return nfc_id +// } + +export function read() { + var main = plus.android.runtimeMainActivity(); + var intent = main.getIntent(); + + let nfc_id = byteArrayToHexString(intent.getByteArrayExtra(NfcAdapter.EXTRA_ID)); + let extractedValues = {}; + + if (nfc_id&&nfc_id.length === 16) { + let tag = plus.android.importClass('android.nfc.Tag'); + tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); + + let tech = NfcV.get(tag); + if (tech != null) { + try { + tech.connect(); + if (tech.isConnected()) { + var tagUid = tag.getId(); + let bytelist = []; + + let count = 0 + for (let i = 0; i < 55; i++) { + let line = readBlockConcat(tech, tagUid, i); + // console.log(`Read block ${i}:`, line); + if(line==null) { + if(count>=100){ + return '' + } + i--; + count++ + } + let str = String(byteArrayToHexString(line))?.slice(2); + let statusArr = decimalArrayToAscii(hexStringToArrayAndConvert(str)); + let openStatus = statusArr?.length ? statusArr.join('') : ''; + bytelist.push(openStatus); + } + + extractedValues = { + read_raw: nfc_id, + mac_raw: reverseString(nfc_id), + mac: stringToMacAddress(nfc_id), + openStatus: bytelist.join('').trim() + }; + + return extractedValues.openStatus; + } + } catch (e) { + console.log('Error while reading NFC:', e.stack || e.message); + return '娌℃湁璇诲彇鍒版暟鎹紒'; + } + } + } else { + extractedValues = { + read_raw: nfc_id, + mac_raw: reverseString(nfc_id), + mac: stringToMacAddress(nfc_id), + openStatus: '' + }; + + return extractedValues.openStatus; + } + + return nfc_id; +} + + + export function reverseString (inputString) { + return inputString.match(/.{1,2}/g).reverse().join(''); + } + + export function stringToMacAddress(inputString) { + // 濡傛灉鏄湡璐ч暱搴︽槸16浣�,mac鍙栧弽 + if (inputString.length === 16) { + inputString = reverseString(inputString) } + // 鍒犻櫎瀛楃涓蹭腑鐨勯潪鍗佸叚杩涘埗瀛楃 + var cleanedString = inputString.replace(/[^0-9A-Fa-f]/g, ''); + // 灏嗗瓧绗︿覆鍒囧壊鎴愭瘡涓や釜瀛楃涓�缁� + var pairs = cleanedString.match(/.{1,2}/g); + // 浣跨敤鍐掑彿杩炴帴鏁扮粍涓殑姣忎竴缁勫瓧绗� + var macAddress = pairs.join(':').toUpperCase(); + return macAddress; + } + + // 鎷兼帴涓や釜鍧楃殑鏁版嵁,杩斿洖缁撴灉鏄疊yte鏁扮粍鎴栬�卬ull + export function readBlockConcat(nfcV, tagUid, index = 0x24) { + // 0x20: Read Single Block + let buffer = [0x22, 0x20, ...tagUid, index]; + return nfcV.transceive(buffer); + } + // 灏嗗崄鍏繘鍒跺瓧绗︿覆姣忎袱浣嶅垎鍓叉垚涓�涓暟缁� + export function hexStringToArrayAndConvert(hexString) { + let hexArray = hexString.match(/.{1,2}/g) || []; + // 灏嗘瘡涓厓绱犺浆鎹负鍗佽繘鍒舵暟 + let decimalArray = hexArray.map(hex => parseInt(hex, 16)); + return decimalArray; + } + // 灏嗘瘡涓崄杩涘埗鏁板�艰浆鎹负瀵瑰簲鐨� ASCII 鏁板�� + export function decimalArrayToAscii(decimalArray) { + let asciiArray = decimalArray.map(decimal => String.fromCharCode(decimal)); + return asciiArray; + } + + // 灏嗗瓧鑺傛暟缁勮浆鎹负瀛楃涓� + export function byteArrayToHexString(inarray) { + let i, j, inn; + let hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; + let out = ""; + + if(inarray) + { + for (j = 0; j < inarray.length; ++j) { + inn = inarray[j] & 0xff; + i = (inn >>> 4) & 0x0f; + out += hex[i]; + i = inn & 0x0f; + out += hex[i]; + } + } + return out; + } + +// 浜岀淮鐮佽В鏋� +export function QRCodeAnalysis(code) { + if (!code || code.length < 10 || !code.includes("^")) { + throw new Error(`浼犲叆浜岀淮鐮併��${code ?? ""}銆戝紓甯革紝璇风‘璁わ紒`); + } + + let entity = {}; + let list = code.trim().split("^"); + + if (list.length !== 2 || list[1].length < 10) { + throw new Error(`浼犲叆浜岀淮鐮併��${code ?? ""}銆戞牸寮忓紓甯革紝璇风‘璁わ紒`); + } + + entity.materialNo = list[0]; + entity.materialId = list[1].substring(4); + + // 鍒ゆ柇鏄惁浠ュ瓧姣嶇粨灏剧殑姝e垯琛ㄨ揪寮� + let reg = /[A-Z]$/; + if (reg.test(list[1])) { + entity.materialBatch = list[1].substring(4, list[1].length - 1 - 4); + } else { + entity.materialBatch = list[1].substring(4, list[1].length - 4); + } + + entity.line = list[1].substring(0, 4); + + return entity; +} + +export function splitAndFilter(codeStr) { + // 浣跨敤 '/' 鍒嗗壊瀛楃涓� + var qrCodes = codeStr.split('/'); + + // 杩囨护绌虹櫧鎴栨棤鏁堥」 + var qrCodeList = qrCodes.filter(function(item) { + return item.trim() !== ''; + }); + + return qrCodeList; +} \ No newline at end of file diff --git a/PipeLineLems.PDA/static/fonts/iconfont.css b/PipeLineLems.PDA/static/fonts/iconfont.css new file mode 100644 index 0000000..ad88fd2 --- /dev/null +++ b/PipeLineLems.PDA/static/fonts/iconfont.css @@ -0,0 +1,171 @@ +@font-face { + font-family: "iconfont"; /* Project id 2741087 */ + src: url('@/static/fonts/iconfont.woff2?t=1695278830229') format('woff2'), + url('@/static/fonts/iconfont.woff?t=1695278830229') format('woff'), + url('@/static/fonts/iconfont.ttf?t=1695278830229') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: inherit; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-check-stock:before { + content: "\e646"; +} + +.icon-take_out_store:before { + content: "\e602"; +} + +.icon-take_in_store:before { + content: "\e65e"; +} + +.icon-change-store:before { + content: "\e609"; +} + +.icon-complete-list:before { + content: "\e612"; +} + +.icon-page-list:before { + content: "\e622"; +} + +.icon-check-list:before { + content: "\e601"; +} + +.icon-van:before { + content: "\e65b"; +} + +.icon-plan-list:before { + content: "\e611"; +} + +.icon-safe-check:before { + content: "\e6a2"; +} + +.icon-order:before { + content: "\e618"; +} + +.icon-unqualified:before { + content: "\e600"; +} + +.icon-transport:before { + content: "\e615"; +} + +.icon-pull-off:before { + content: "\e613"; +} + +.icon-bind:before { + content: "\e628"; +} + +.icon-user-set:before { + content: "\e621"; +} + +.icon-house-out:before { + content: "\e614"; +} + +.icon-house-in:before { + content: "\e616"; +} + +.icon-notice:before { + content: "\e64a"; +} + +.icon-user-out:before { + content: "\e80f"; +} + +.icon-unbind:before { + content: "\e702"; +} + +.icon-door:before { + content: "\e8bf"; +} + +.icon-user-in:before { + content: "\e624"; +} + +.icon-house-check:before { + content: "\e67f"; +} + +.icon-list:before { + content: "\e6e8"; +} + +.icon-bill_out:before { + content: "\e675"; +} + +.icon-bill_in:before { + content: "\e676"; +} + +.icon-empty_in:before { + content: "\e631"; +} + +.icon-empty_out:before { + content: "\e632"; +} + +.icon-worker:before { + content: "\e93f"; +} + +.icon-bell:before { + content: "\e64e"; +} + +.icon-out-left:before { + content: "\e620"; +} + +.icon-out-right:before { + content: "\e60d"; +} + +.icon-machine:before { + content: "\e64b"; +} + +.icon-agv:before { + content: "\e649"; +} + +.icon-equipment:before { + content: "\e64d"; +} + +.icon-task:before { + content: "\e63f"; +} + +.icon-chart:before { + content: "\e846"; +} + +.icon-archives:before { + content: "\e890"; +} + diff --git a/PipeLineLems.PDA/static/fonts/iconfont.ttf b/PipeLineLems.PDA/static/fonts/iconfont.ttf new file mode 100644 index 0000000..cbdba1a --- /dev/null +++ b/PipeLineLems.PDA/static/fonts/iconfont.ttf Binary files differ diff --git a/PipeLineLems.PDA/static/fonts/iconfont.woff b/PipeLineLems.PDA/static/fonts/iconfont.woff new file mode 100644 index 0000000..8b8e82f --- /dev/null +++ b/PipeLineLems.PDA/static/fonts/iconfont.woff Binary files differ diff --git a/PipeLineLems.PDA/static/fonts/iconfont.woff2 b/PipeLineLems.PDA/static/fonts/iconfont.woff2 new file mode 100644 index 0000000..e41a0fe --- /dev/null +++ b/PipeLineLems.PDA/static/fonts/iconfont.woff2 Binary files differ diff --git "a/PipeLineLems.PDA/static/img/logo - \345\211\257\346\234\254.png" "b/PipeLineLems.PDA/static/img/logo - \345\211\257\346\234\254.png" new file mode 100644 index 0000000..b0ace63 --- /dev/null +++ "b/PipeLineLems.PDA/static/img/logo - \345\211\257\346\234\254.png" Binary files differ diff --git a/PipeLineLems.PDA/static/img/logo.png b/PipeLineLems.PDA/static/img/logo.png new file mode 100644 index 0000000..da49afa --- /dev/null +++ b/PipeLineLems.PDA/static/img/logo.png Binary files differ diff --git a/PipeLineLems.PDA/static/js/print/gbk.js b/PipeLineLems.PDA/static/js/print/gbk.js new file mode 100644 index 0000000..6d76312 --- /dev/null +++ b/PipeLineLems.PDA/static/js/print/gbk.js @@ -0,0 +1,185 @@ +const GBK$1 = function(){ + const GBK = function(){ + let arr_index = 0x8140; + const gbk = { + decode:function(arr){ + let str = ""; + for (let n = 0, max = arr.length; n < max; n++) { + let code = arr[n] & 0xff; + if (code > 0x80 && n + 1 < max) { + let code1 = arr[n + 1] & 0xff; + if(code1 >= 0x40){ + code = gbk_us[(code << 8 | code1) - arr_index]; + n++; + } + } + str += String.fromCharCode(code); + } + return str; + }, + encode:function(str){ + str += ''; + let gbk = []; + let wh = '?'.charCodeAt(0); //gbk涓病鏈夌殑瀛楃鐨勬浛鎹㈢ + for (let i = 0; i < str.length; i++) { + let charcode = str.charCodeAt(i); + if (charcode < 0x80) gbk.push(charcode); + else { + let gcode = gbk_us.indexOf(charcode); + if (~gcode) { + gcode += arr_index; + gbk.push(0xFF & (gcode >> 8), 0xFF & gcode); + } else { + gbk.push(wh); + } + } + } + return gbk; + } + } + return gbk; + } + + let gbk = GBK; + + const URI = function(GBK){ + let passChars = '!\'()*-._~'; + let otherPassChars = '#$&+,/:;=?@'; + + function getModue(_passChars){ + let passBits = passChars.split('').sort(); + const isPass = function (s){ + return _passChars.indexOf(s) || /[0-9a-zA-Z]/.test(s) + }; + return { + encode:function(str){ + return (str+'').replace(/./g,function(v){ + if(isPass(v)) return v; + let bitArr = GBK.encode(v); + for(let i=0; i<bitArr.length; i++){ + bitArr[i] = '%' + ('0'+bitArr[i].toString(16)).substr(-2).toUpperCase(); + } + return bitArr.join(''); + }) + }, + decode:function(enstr){ + enstr = String(enstr); + let outStr = ''; + for(let i=0; i<enstr.length; i++) { + let char = enstr.charAt(i); + if(char === '%' && i + 2 < enstr.length){ + let code1 = parseInt(enstr.substr(i+1,2),16); + if(!isNaN(code1)){ + let _i = i + 2; + if(code1 > 0x80){ + let code2; + if(enstr.charAt(_i+1) === '%'){ + code2 = parseInt(enstr.substr(_i+2,2),16); + _i += 3; + }else{ + code2 = enstr.charCodeAt(_i+1); + _i += 1; + } + if(code2 >= 0x40){ + i = _i; + outStr += GBK.decode([code1,code2]); + continue; + } + }else{ + i += 2; + outStr += String.fromCharCode(code1); + continue; + } + } + } + outStr += char; + } + return outStr; + } + } + } + + let URIComponent = getModue(passChars); + let URI = getModue(passChars + otherPassChars); + + return { + encodeURI:URI.encode, + decodeURI:URI.decode, + encodeURIComponent:URIComponent.encode, + decodeURIComponent:URIComponent.decode + } + } + + const src = function (gbk_us){ + let gbk$$1 = gbk(gbk_us); + gbk$$1.URI = URI(gbk$$1); + return gbk$$1; + }; + + const Fn_Hex_decode = function decode(){ + let n = 0, str = arguments[0]; + for (let i = 0,w = str.length; i < w; i++) { + let code = str.charCodeAt(i); + if(code < 38 || code > 126) return NaN; + n += (code - 38) * Math.pow(89, w - i - 1); + } + return n; + } + + const Fn_unzip = function unZip() { + return arguments[0].replace(/\x23(\d+)\x24/g, function (a, b) { + return Array(+b + 4).join("#"); + }) + .replace(/[\x26-\x7e]\x25[\x26-\x7e]/g,function(a){ + let b = a.substr(0,1).charCodeAt(0) + ,e = a.substr(2).charCodeAt(0) + ,str = String.fromCharCode(b); + while(b++<e){ + str += String.fromCharCode(b); + } + return str; + }) + .replace(/\x23/g, "###") + .replace(/([\x26-\x7e]{2})\x21([\x26-\x7e\x23]+)(?:\x20|$)/g, function (all, hd, dt) { + return dt.replace(/./g, function (a) { + if (a != "#") { + return hd + a; + } else { + return a; + } + }); + }) + .match(/.../g); + } + + function gbkArray(gbkArr){ + let data = []; + for (let i = 0x81, k = 0; i <= 0xfe; i++) { + if (data.length > 0) { + data.length += 0x40 + 1; + } + for (let j = 0x40; j <= 0xfe; j++) { + if ( + (j == 0x7f) || + ((0xa1 <= i && i <= 0xa7) && j <= 0xa0) || + ((0xaa <= i && i <= 0xaf) && j >= 0xa1) || + (0xf8 <= i && j >= 0xa1) + ) { + data.push(undefined); + continue; + } + let hex = gbkArr[k++]; + let key = Fn_Hex_decode(hex); + data.push(key ? key : undefined); + } + } + return data; + } + + let gbk_us = gbkArray(Fn_unzip("(T!HJ%LUX]e%gilotuwy{} (U!)-%/137>BDGHO%RTUW%\\_a%jl%rtw} (V!*+-0%27>C%EHJ%MP%R\\`cdfn%ptvz{} (W!()*,/3%579;=%CFGM%QWX\\^cdg%ilnprtvy%} (X!&')%.468CDHJLMOPSTWY%\\_b%dg%ilnprtuwxz%|~ (Y!'(*+-469%=?%GI%KO%RT%V[%_bdikmnptuy{}~ (Z!&')+%-/%;>@ACE%GKMNPR%TW[_%ikmo%rt%vy%{} ([!'(%+-%024%;=%BD%LO%QSTX%[]^`%ce%y{} (\\!()+%/1%7:%LN%SU%WY%cf%im%prt%xz%~ (]!&'%*-%/1%68%EG%cgloqs%uwx|%~ (^!')%-/02356;>FJKOPRSVWZ%]_`dfi%kmor%vyz (_!'+%-124%68;=@ACE%MOQRUVX%]_adegjqwx|~ (`!&)*-%/689;%=?%ADFIKLNOVX^%cehilmoq%uwyz|%~ (a!'),%/124%=?AD%HJ%PRSU%[]e%ho%qu%~ (b!()*,%.024%79;%=?A%FH%KM%WY%`c%ei%loq%tvy%| (c!'*+-.1346%8:%<>%GKLOQSUZ%\\_cghjltwy{| (d!(,/1%4679=>@D%JLMOQRTVWZ]`%ce%km%pr%tvy%} (e!+,-/0279%;>?DQW[%]_bdhqu%wy (f!&().47:;>ACEFHIKMP%SU^a%egikm%tx}~ (g!)*,.02%58<>BCGI%MPY[]`%bdeginpuv (h!(*-2%6=>A%CF%KMPRT%WZ\\%`deg%ln%qswxz{} (i!&+-%/1%469;>@AD%HJ%MP%TV%Y[\\abdh%mrsvx~ (j!&,%.0235%7:;>@%FH%PRTVXZ\\_%cf%hjkn%puw%{~ (k!').04578;=?%CFI%NQRTW%^`acdg%ilmo%ru%wz|~ (l!&(*%,.%9=%ACDHIK%OQS%U[%^`%ce%hk%ru%{~ (m!&')%79%CE%KM%PR%^`%hjkmnqxz%~ (n!&(*+./2%478<%>ACG%WYZ\\%^`%cgmnp%txy{} (o!&'%)+,.5%9;<EFHJOQS%UWX[%]`%dj%mp%tw%} (p!&'%)/2469%;=?%AC%KN%TVWZ[]`aefhk%mo%vxz%} (q!&'(,-/024%69%;=?%AC%EG%IK%NPSTV%Z\\%`b%eg%tv%| (r!&'(*+-%/1%57%<>%BE%UWZ\\^%`b%il%ps%ux%~ (s!&)%:<%?A%CE%OQ%SU%bd%ilnpqstvwy%~ (t!&')+,.%246%9=>ACDF%ILNRVXY[\\ac%fiklprsvxy (u!&(%,.013%?BDG%IK%MRVXY[%^abeg%jl%ostyz}~ (v!'(%,.013%9;%=@%CIJMOR%VXZ[]%_a%lnp%rtv~ (w!&(%+-/%24%689<=?A%CE%KNPR%VX%Z\\%`bcf%oq%tv%|~ (x!&'(*+-%5:;=%@B%SU%[^%km%svxy{%~ (y!&(),%1346%:<>@B%DF%HKMNPQSU%Y[%qs%~ (z!()%ACEFH%OQ%_bfnpqwx{}~ ({!&)+-%023569=ADEG%IKMV^%`c%fhinq%swxz (|!&'%)+%-/2%:>@ADEG%KMO%U[\\^`acefi%lnpquwy|%~ (}!&(+-%02%578:%<HIKLQRW%Y[%]_%bdgil%ruw%} (~!'(%*,/%35%7:;>?AI%MP%TVZ%\\^`be%hjlnoq%vx%} )&!&'%+-%356:<>?ABD%MO%TWX[%`b%fhj%mopr%vx{}~ )'!&)%-/%69%@BCG%QSTVX%bdghj%mo%{}~ )(!&'%9;%=?%WY%eg%mo%{} ))!'(+,2458=>@%DGHLOQ%SUVZ[_f%mp%twxz%~ )*!()-%025%:<%BE%IKLNOR%`dfhmp%rtwx{%} )+!(.137%:>%BD%HJP%SU%^a%fjkm%pr%} ),!&(%02568%:B%DFI%KMOQSVWY%[^%aehikmo%uxz%|~ )-!&'%358=%@B%DGIKLORSVX%Z\\^a%cgjq%suwxz~ ).!&(%+-%2467:%?AC%FI%MRSUVY^%`e%gijmnpqstwz{}~ )/!&()+,.9%;=>BCEIJLPQT%V^%`b%fh%loprv%|~ )0!'(*,-/%1457%:>?GJKMNPWY%[^%acdg%jlnp%ruwz{}~ )1!')*.035%79:=%DG%IL%PR%TVWY[^a%ejqruwx{%~ )2!&)%,.1%37%;=%@B%EHILO%QS%eg%nprtvwy%{}~ )3!&'%*,%/1%47%=?%BDF%XZ[]%ac%jl%txy{%~ )4!&'%+-%24%68%<>A%EHJ%Z\\%ik%su%z|~ )5!/058%:<?B%EGIK%NQRT%X^`%bfklq%suvx%~ )6!'(+4578:;=>@D%FH%KN%SW\\_%afijlmp%su%wy%{} )7!(*+-59;?GHJKNTUZ\\_b%ejm%pt%wyz|%~ )8!&(%*-78:=%?ABD%ILMO%RUXY[b%eg%nqu%wy{%} )9!'(*%-014%79;%>CEIK%MOQ%WY\\^cgijmnqsuw%{} ):!&')%+02%46%<>AC%GJKM%PRTVX%[]bce%ilmpqt%y|~ );!()%+-%/14%9;%?ABDFHIOQ%WY[%]_%ce%lnp%rt%} )<!()%.035%=@ADEG%JL%PR%UWX\\^%acfhj%lnpqs%y|~ )=!'(%*-%13%579;%SU%\\^%eg%km%xz%~ )>!'(+%.2578;%?ABEFHIKM%ORSUWZ%\\_`b%eh%jlnpqs%~ )?!&'(*%,/%146%8:<?@BDEHJLNPS%Z\\]`%bdi%lorsu%wz%~ )@!&'(*,-34;%>ABD%HJMNP%RTVY%[_%ac%egj%mor%uwy{| )A!'(%+-/024%:=>@AHIK%NPRSUWY%]a%cehik%mo%qsuvx%{}~ )B!&')%,/%35%=@%DF%JL%OQ%TV%oqu%|~ )C!&(%-/34689;?%EJLMO%QTV%XZ\\^%ceglnpqt%wyz|} )D!&)*,/0279:<%@BG%IKLPQSVY[]%`beghjkmoq%tv%y{~ )E!'+%-0258:=>@E%LNQ%Za%cgkmopr%tvwyz~ )F!()%/14%79@CEGHK%OQ%SU%[^%dg%imnrz~ )G!'),0%9DF%MOR%Z\\^a%hj%ln%pr%{}~ )H!&*%-/2357%@BD%IKMO%RTUWXZ\\%`bce%nps%uw%y|~ )I!&'(*%,.%2479;%FI%KM%TVWY%[]%`b%dfhik%{}~ )J!'(*+.01346%9;<>?A%EIJL%NPRTY%[]%befhil%uxy{}~ )K!&()+,.%02%68%?ACEG%IK%PR%TW%bd%gi%rtv%~ )L!&(%36%;=?%DFH%KMO%QS%Y\\%`bce%ln%twy%} )M!&'(*%46%<>?A%CE%GI%QSV%Z\\%ce%lnq%~ )N!&'%~ )O!&'%178:%CE%HJM%OQ%TVWZ\\]_%jl%sz{}~ )P!&'%136%9>AEG%JMNP%RU%Y[%bd%koq%wy|} )Q!&'%*,.018:<%@B%IL%NP%RTV%XZ%\\^%dh%lnrw|%~ )R!'*,2%48:=>@%CEFJ%LOR%VX%Z]_%aijl%nr%vxz|~ )S!&(%*-.2589;<?@C%FHJ%LNPVZ]^b%ehn%qt%vy{%} )T!&'-%/1249;<>ABGINTUWXZ[]%_bd%fh%kmqrt%y{}~ )U!()+,02%46;<>@EHLQ%TWY[]^`acdg%il%oqru%wy%} )V!&')*-.02359%=?EHOPSTVWYZ\\%ad%fk%mp%su%xz}~ )W!&),-/1%479:<>%@BDG%NP%SUY\\]_bcefhilp%rtvxz{} )X!&'(*,%36%=@%CFHJKM%OQ%[]^`%nq%suxy{%~ )Y!&)%/1%35689;<>@AC%FHKMPQTV%X[%^`%bd%fhjnpqs%u{ )Z!&)%24%79%@B%DFGI%MO%QU%^`%bd%gkmoqstv%|~ )[!&'%+.%024%=?%ACE%GI%KM%RU%WY[%]_ac%ik%mpqu%~ )\\!&'(*%-/%35%?ABDEG%LNP%UW%]`%jlo%z}~ )]!&'%DF%MP%VX%hj%ln%~ )^!&()+%8:%EIL%ORT%VX\\%_a%cf%hj%lnrsuvy%~ )_!&'%,246%8<@AF%IKM%Y\\^%`b%eglpr%xz|%~ )`!'(%14%8:;=@D%NP%W[%^`%mo%rtvx%~ )a!&'%+-/%359%=?%AD%GIKLN%SU%Y[%^`%ce%gj%nq%wy%{}~ )b!&'%)+-%/1%9;%DF%JM%VX%[]_%df%oq%|~ )c!&'%:<%EGIK%MP%RXZ\\^%dg%il%oq%suvxz|~ )d!()*-/%25689;%=@%BGHJ%NQSUVX%ce%psv%xz )e!&'%,1%35%8;=?%BDFG 'W!,-. &(+&.'&-~&'u'W!/1 ')>.<V')!@PBCFG 'W!@A4%;BC<= &'~&(!Kk '/!J;< '.!~| '/!>= '.u'/!K. '0`'/!94 '1t'0T'/!?Bu`\\Q1t '0!)* '/!xy2IH ';!*( &'}')!\\] '+{.;U&'q.>!&' ')Z&'t',5':!GF '9!eiha`;:ML ')e'-!XVWY 'W?'-!67%?#3$ '6!-.%@ '5!rs%~ '6!&'%, '5!^_%g## ']!67%?## '-!&'%1## .;!RST .>+.;!VW%~ .<!&'%U .>)'W!mn%~ 'X!&'%f#8$t%~ 'Y!&'%p#5$ &0!=>%MO%U#5$]%mo%u#4$ .9!89<=BC@AD%G##>?:;4#67#6$ &1!cd%hTi%~ &2!&'%)#12$*%/K0%I#10$ &.!()7 ')!=?O_ '+}',('-!\\]%_ '/!)37fz{ '0z'8!CD%ft%~ '9!&'%)-%/VW|%~ ':!&J '0P'W!>IJ#8$ &(!uU &+7&(T&).&(]&)6&(\\&)F&(a&+9&(`&)h&(g&+;&(f&*-&(n&+=&(m&+!?ACE &(!p^ &,a-Qc&)!_c -Qd&,q#1$'Z!&'%J#18$ 'W!MN%U '^`'a!@AN%PSv 'b!'*+. .93.>!(*# ',@']G#'):#0$'Yv'X!no 'Y!wx 'W2'X!pq .9!LM%UW%Z\\%ik%n -R!*+%6 'W3#10$'7!LM%~ '8!&'%>#12$ )e!HIKN%SVWabei%lnp%uw%y{%~ )f!'+%-23679%;@BCEFHIM%PS%_abdf%ik%rt%~ )g!(*%79%=?@BDFGIJL%OQ%TV%XZ[]%bdfgkn%prsv%y{}~ )h!&'(,-/3%9;%>@B%EGIK%MO%RT%cehil%or%z}~ )i!&'%)+,/13579:?%CE%HJ%\\^`eh%tvwy%} )j!'(%,.13%57%9;<>@%JLN%UY%hj%~ )k!&')%1357;=%CF%IKN%TV%Y[%bdfhj%mqstv%z|} )l!'+1369:<>%ACDFGJM%PR%UZ%ad%fh%npr%tw%{}~ )m!&()+%.0%2479<?@BFJ%NQZ[^_c%ejopr%uw{}~ )n!'(*%,047%:=>@%CEFHIMOQ%TVX%Z\\%_aeg%ilnrswyz|} )o!()+%-/346%=@%EGI%MOQ%TV%\\^%`b%iklnq%suw{|~ )p!&()+-.013%<>%FHILN%WYZ\\ (iC*r5(pM)89(gy(h[(gk)p*)o>*A;)s|*9E)ui)cO*s5*ux)R/({@(Z*)7s)B.(~d*4~)F{*42)@K)pg(_l)>Q)a|*2'*Jb(\\0(u2)4?)\\@*9t)8])5n(eJ(f+)|s(^7)mH))<)7>*Yr*ua)6M*2O(o@*t|*0J)cV)oo)E[)op);L(XR*W~)7F)z6)?3)hN);2)66*8L*xa)Dd)cf)61)76(Wo)k9(cY(a_*.d*b,))v)G`)Jk*6R*.k)HS)vH*E'*oR([d*U/*:L*4b(bm*L>(a&)p!]`bdelnrsu%wy%} )q!&'%-035%7:;=?@BCEFJLN%X[%^ac%egj%lnp%ty{}~ )r!&)+%-/%69%@C *B**t=(Yf(qR*{F({T)6!th )BK*V+++A)b})DT)um)12(c!`& *^r*4P*Wv*mT(Z=)e4(t-)1k)`B*K0(tz*:])Cj)}<)&|*/8)l*)TJ*[[*`!0t +3')Q4*cF)}()-`)v**@.*A<)Q!596 ))I)*v)nD*q<)>X),G).P*_0(s@*7;*a^*rQ*v?*_J*/W*X,)5](YH(e5(cm*_!9:< *a,)F:)-N*6j*JF+,1)3Y(`E)nu)-P)?.)\\_)Z'({u);N(^!A| )EP(T_)yA*{Q)_5)r!DE%GKNPQT%_a%ch%jm%rvwz%~ )s!&'%,/12469;%=?@BD%HJLN%Z\\%df%hk%or )mi)*e)gu*=C)<Z)7R*mh)T7(ci(b+):n*mu)~O(Wj))c*8V*5A*6\\)Wn)Sx*~=)8f(ck(hL*JC(pj(TS))K)Ow*'H*bn)/H)=:)f/*KF)D5)5i*W{)rS*Zw*eB)-M*=?*@y*z>(dx*E0)PD)1!mh )^Z*:;*8Q(Vg)SU*Bu)<z*)0)Ks)C7*;^(dK)}j(Y0(^X)UG(}G*[b):1(e&*;!AK )Eq)v7);C(|=(~@))6*TK)70)F'*V,):_)9r*G2*{`*T{*/a*nL(V;*q_*y+)@U)f))s!tvx}~ )t!&')*,.%18%=?@C%EHJNPSU%WY]_`cdf%hjkrtv%y{}~ )u!&')+-/04%8:%EK%RT%WY%_ (nv(|{)*'*p'([V*3}(d8)>Y)lB(i*(ZQ*Y,)6G*mQ)C[(ky)[T))*(f9)^m*^P)62)<Q)9[)-_)[n*bz*7\\*_A(|v)AX).|)S7*r>*Y(*JJ)<>)yh(pX)Lv)5,(fL(UE)z*)1i)[j*T>)6B*`V*~U)y\\(e`)n?)7k(c()Rg*_p),X*~:*2q+3k(Xj(}?*Xd*1T)?G)_?(]j(^~*D_)&Z({W)7'*d@)lq*ZZ)z?)2()~4(V[*/9)rl(TW*7f(`7(_m)M5(d^*[|*n^*sl)YY*rZ)J))u!`abdfgklnp%ruyz|~ )v!')+%28%;=%@BCE%GI%KO%RT%VY%[]%jl%np%tvxy{|~ )w!&'%*,%.0%6 )tu(\\&)se):o*N`(t*):B)(~){E)Ie(W[*8Y(j8(Tx)mR){])*!Qy *q>(`5(f=)^e)9.*n~(oe)@n)Ig*d[(hY)W=*.I*IY)5O*/1)mY*;=)vD*si*_/)2o)kM*T1)Ov(`T*XP)O3*3G*>{(n-(bn(Vb(Ta(_D*(G*d_*&i(YL*[t*&C){b);m)&g(\\**51)nL*(i)W6*1o)D6(zh(|V)vN)<[):r)9b)8<*ns);3*_O)}h)nt)5o(tM(fJ)P2([z)5P))n)P?(Vw*X7*Ji)-i*`f)w!78%<>%GI%MO%]_%cgil%oqt%|~ )x!&)*2457:%=?A%GJL%PSTW%Z\\%_a%c )/R*2s)7/(U&(cd*b~)9p*4J)@/)R5(X()1n)W+*TB),v*Ef)-7)82(^&*;v)G=(_s)8t*[=(ZB(~G)xH(|Z(`J)zZ)1<*a2)pp).B)-{)ov*[a)^J)om)}])s8(_f*ar(qU(X0)Z3*_{)>G)}/)e0)VG*1n(yJ)6x)++(nl*?3)}@))e),\\*`J*/U*y')9:)Y_)ut)_;(^D*uF(p5)l2(W~)l5)+-)1f(u-)Vc)Px)ue(eY*sr(_!>t )9A(eg*mF*Tg*Ys)cW)u{*G_*_~*Tq(e=)x!de%jl%wy%~ )y!&'%*,%047:<=?@BDF%HKLNOQ%VX%Z]`bdfi%oqrtvwy|} )z!&'%)+.%24578:; (TG)q/(eK*m<*xV+2S*o.({Q*S_(T!hb (^x*>m)47(ai)F>(Xy)0D(_.)Ts(^()6Y)?9*rW*UQ*`O)m|*c*)rJ)Q2)dO)eX*T_(qf)r`*XL)DA*oA*3w)+<)Wk(u_)|\\)s{*o<)Pn)?O*/O(q7(]v*qn(|W(s((f,*[g)>a*x_(my*mP)q>*`y)9?(gq(t!@` (o~*\\N)Cs*ZH*8U(`[)1p(qF*F@)&;+0<(YM*x}*Sv(w@)0O(d:)6?*a.*c/*{T)0B*2B(]d*2i(|r*{J)U-(Uy)z!<>@AC%QS%UWY]_%df%oq%uw%~ ){!&'%57%9;A%DHKMO%RT%VYZ_%adgh *X0(e.*0B)}c(WK(U<*qO)T*)h1*C6))N)lg*21)L')t3*mE*-4(_T)_h(e**_e*:q*X))dt*{B)T0(o-*9z)?[*4.)5[*r((uu(W:*S|*.T)>9*=U*uI(iZ*ye*4)(c9*Ta(e}*4>)+5)Sf*X9*9s*d.(f-)Q{(_y*.Q(oB)`C)S,*(9(tq(W8)/1)2K*(Z(Tv(|_)E7*FD)&C*ne*yU)mS)`&*`Z(^{*/^*Sz(to(_W(X=(f*(tQ)>r*4(({,)69)7,*^z)*4)R&)}:(WJ(Ya)CK){!ijmo%qt%xz%~ )|!&'%+-%79%BDEG%JNOQT%Y[]%ehikm%ortvy%{} )}!&'*%,.0135%7;=A )Uj)VM)x`*K6),T)l()6]*^o(Yx*eW)?I*5!Z| )+2*5{*Xt(a0*MY*XK(t3([\\(Vl*qk)cT*6K*Wx(|**S`*r:(uT*/[(g;(ld(kU*TI)>4)JQ*mL)po)Xz)*a)kn)D+)E])|l*3z*Xv)2F)y>)>]*Xc(^T(`4*mU*/y*3x*.L(~C)Wy)DE*&;)o}+&I*6a*0|*),):}*oQ)z^(fN(h7)O^):`)4}+04*4w)m=(a3*uT*>e)Fo*F&*qP*s1*nF(Tp(ea*.s)Fl*Z-*2K)C2)+0*1H)}!CDFH%KMOQS%XZ\\^abgikmprsuw%~ )~!&'(*+./13578:<%?A%GIJL%NQS%VY%[^%`i%kmnp%rt%{}~ *&&(pL*2u)Gq))-)>6(a`)0F+4-(X}*\\H(^8({b),P))1)Re)7[*Wz(^=*m\\(bf)SM*:M)eC(p,)Di*X-(tE*_-*=*(g@)~H(Wk)Sk(zt(vE+2X(eA*Ee*~r*UB*3~)>@*x^(n6*sd(`H)k2(`j(|?)7l*L.(UC)7:)/\\)H{(^?({O(^l*N<)~\\*{[*08)1o)^'*X/(]n)*n*`S)ix*N>(ni)tz)-6+42*qI*^R+'T*TE)oj)Fu)Eh*Z8*X5(`W*^t)Yr)HN*n_*bs(n9)E(*K~*_X(gs*&!'*%-/%246%:=>@%BD%FI%KM%OQRT%XZ%]_a%hj%lopr%wy%~ *'!&')%.124%@B%GK +&)(zy)Us)R-(V9({j*~Q*d7)3v*b5*v{(f/)VX(|0(_p(j**0=*2&)<i)8^)@:)43)0f)`3)R!^P (tU)DR*8J(sT(l|*Uu)QK*bc(uJ*2M(eT)Ue(fy(j=*<3*=2)Fk)y6(g7(X7(ee)pk*V;*qQ)Sa)V[*Xk*L<+0[*X:(l-+1o)my)-l)eL)0A(hN(V<)LG*J?)0+*^Z(go)_Z*Dm+06)U&({F),U*.<(j)(Y8)fG(f@(dP(ZI(ek(g'(U;)//)ib(su*>u*4e*G])e<*(z)XG*'!LM%UW%{~ *(!&'%*.%8:%@CDFI%KPQSV%Y[%]_`d%hjk ),d*DB(h~)6g(V&)SX)5S*9x(h)(c])fQ)Yi)l8(`,(b~*TA)KF)-n)/2)W8(o2)O4)gi)G-*_i*/T)8s)0|(hv)n5*Um)`>)VF({])*j*;g)2s+1b)v}*G@*'0)oy(_c)1v)`u)A3)*;)0&*Tr)^K)86*^s).H)0;*Eo(ms)Pz)0m)35(cX)1`)AV*X?)yu(WU)_k)RN*Sp*TV*.r*;y)@X(wu+'Z)UM)WA*UL)U7(WT)^F*<s)52)1Q*tQ*X')xI(_n(nz(q+)Cx)lu)z\\)yg)~P*(!opr%tvy{~ *)!&'%+/12458%>@%EG%NPQS%`b%vxz%} **!&'(*%,.%4 *3i*{:*`1)\\M*Sb+/q(v`*/!*J (ef)Df)HY*^{*'V*sc(e')/W)mb)Ry(d)(y2*.A)85(_S*55))9*@7)6C(^L(zs(WI)x>(`\\)18)UJ({!{y *S!^m )@+).W*r;(u`*/(*.D(kP)EC(t_(XU({m(aa*;o*xj*X>)l/*mq(Zw)z[(W2)EB*~H(y*)P5)pj(o=(|t)}N*qC)`w(^H*4-*97(uE*/E*;<)HA)Ex)v4)uS)7M)8r)~;(Yv(a+(_B*;e)KQ*g=*ZC*X1*N;*o/)~h(W1**!56%km%tv%~ *+!&'%= ([<*8P(`k*{D)WZ)Xv)VJ),7(\\s(vP(|d)UB)Rf)m**?<)GB(t|*So(c/*dE*rC*AH)I:)w+)`O*4z(V8*bP)UC*~N(v{(mQ):d*nJ)sy(Y.*5E)eM*NL*{O*/u*.x(a@)>T*dI*^!im (eH){\\):L)9])ox)yp*J5*r,)5F(al*9I)G.)DU)9/)rR)|Z)TV*.m*N](vD)5.*Bo*9l)lI(ZO(V_)mI*TO(}O))F)}_)?F*eL(V^)Tz*M2*)~*o'(VY*U3*_l*u^)A;)xR*_b)_n)Ut*+!>?%JL%RT%~ *,!&'%F (}B(as*;[(^.*:|)rB)Af++l(V@)1J*(!nc *.i(V)*R|)A_*xh*uD(r[)>g*o])-h)mm*uA)|!LK (_3)_1){^):I){<*.:)gP*w&(U2)^S(UJ*d&(d_)>L)@0*7!u~ (g9(}6)m>*v2)7B)eE)ma(}J*~C*=-(}E(g+)sw(U+)S\\*37)7<)9&))0(^C*Z!+l *o0(Yz(eB)1g)_.(a()8a+0:(w:(ZV)qw(d-*.|)<2)>&)6L)9P(ZD)cS*NC(_&*S}*.w(o**=/*mZ(^g(ex)&N*,!GH%~ *-!&'%-/%35%9;%P (YS)|P)UV*bg*~Y(iy(gA(cp(gZ),=):H)JF(_b)36(_}(q[(b@(o1)tB)qK)+M)3E*)7)5w)6Z(V6)^p*29)7a)_f*uK(oZ*:I)E{)Hv)vX*xw)yI(sr(g^(eL)W~(]p(`U({Y*Tb*43(i<(p0)0L(o4(f1){@)0)(zd)9_)6c(e@)6&({~)E;(h?){e*:T*dK)+)*Ki(t^(p8)7x*Z6*4s(o:)~2(Y2).v({t)OP(c0)}d)e.)Fy)t4)qv)@@(_((U|)pm(~k){k*?&(tt+'Y([W*-!QR%tv%~ *.!&'%46%8HNUVp~ */!-:KQ_xz|%~ *0!&'%)+.%7:; *{])2N)Xt(oG)@O)8W(n,)7V)6,)+i*qc(of)73(j'*Fc*5u*_4(i_*<m)DJ*XV*@5(x,)FB)7P*&P*q`(^<)\\)*U;):\\*NB)4G*/G)_D)Y})hf)Jc)eh)+`*bT)CU)Uf)8o(at)d'*27(XN(vY*d>)_[)V@(b:(U=*t;*on*A})vM**-(]F(ou)<o*3h*(+)T?)Hr)J-(_*(dN)H))dF+1l*&S)ed)y3)ZR)hg)D3*eG++X)wf*<E*;i(el)FJ(U*(d?(ar)ts(d<(`C([_(Xm(YY*0!>AC%FHK%OS%UWX[]%`b%eghj%qsuw%{}~ *1!&'(*+/12457%=@B%FIJMOQ%SU%XZ\\^%befh%mqr )n-)|8*(B)SS*sS(a\\)j2(h;(Yr*31*<n*_o*oq)+_)/N)VB))`)>V*5c*nX)/})_>*.]*(^(_<)G[*(a*96(Tj*^p*eJ)An(VB*Ti)<V*3'(\\X)m;)bE(|C*_N)[L(Us)</*od)+l)?;(`1*KG)_J(ad)ez)i;)D|)vz*tZ(Tz*bA+,9)Vn(_N*XA(ez)78)gl*=T*t:+3p*mv(Wq*1)(_?)^P*rk(~Y*xf(eC(Vx)Y4)hj)K*)uG*{d)lV(`2)no)U=)F&(^9+4,*3((gD)}P)|,*1!svwy%|~ *2!(*%03%58=%@DEGIPQS%UWYZa%fhjoprtvwz{}~ *3!&+%.02%468%EH%MO%Z *r|(og)7L*r=)JK(vx):a*&5)ZN*rA*9m(cq*xe)+&)^d)9k(cs*DC++5+11)uh*tv*Z=*XB+0v)[D)xU)-9*r<)5J*~>(er*n7(Y,)?g(}!jf */V*DE)R6)-o)gA)Y|*/@)&9)8,(zz)Y~(d+(U^)9X)lb)6d*^X(Wa(Ve)ST*.P*Sw*>'*HJ*0?*`s*n})~d*~k*K}*>G)Tp*~P*.v(uU+1Y)gU)t6*Dv*~!6L (kb(et(pU(U]+1D(ce*_Y*54)ry*{g*F0)Yy*@k)C:)30)Zj*3![^_begj%oqrtv{ *4!'*%,0479:<=?IK%OS%Y\\cdfgjry{} *5!&)%,.%02367@BDF%HJ%VXY[^%`bd%hj *U4*9Y*;@)q2)Qs).d*<y)f>*:s*nt)Q;)si*my(c~*:p(^^)*,*V>*X8(U5)ge)E&)G_*dJ*tM)a4)SO)qI(xT*oB)Q/*0v)@p(|.(v-(x\\*q!7F (W'*=o*?J)Mp)px*o1)f.)H'(zo)qo*dn*uL*)3*`/*U'),b*'|)yP*N?)Sz*F^({})*1)HJ)q`*/6(^a(]r(b1(wD*/F*uM*:E):.)rk*Bv)yJ)X+)+/(uf*@i)^H)Qq)7))pX)>J)1/*qL)@W*H/+/s*nG(ej(g(*U7);~*5!kl%prtx%z} *6!()*-%13%68:<%>ADEG%JSU%Y[]%`bd%iklp%tvwy{}~ *7!&'%+-%25%8=>@%BDF%L )<&*C^)L>*6n)vk);o+'l)6|)Ci*<g(s'+1v)SY)Z_(|<*rB*To)c})E\\)71)d&(V=(v:)Q-(rk)BE)*D(bG)2|)Cf)q.)rM)d,)ze)7i(h<(fT*mS*b)(w7*.M)Qv(U0(uC*2F(tn(cf)l4*s[(m_)81*5<)0U*qH)Vy(ff*{V(^Q(yR*5((u{*tW(ZZ)T:(}A)7I(XB(cN*6M*`>)YR*A*)72)*c)vA)<b)93)/'(w3*dS+/o(}D)8`*2x({4(ig*o!KN )V()1()El)eJ(_P({8*7!MN%[]%_abdg%kn%svx| *8!'(%+./135%:=@D%GINRZ\\]_%cefhjl%np%wy{%~ *9!'(%.0 )7Q)T3)cy)60*ma*.W*5>)UO(^h),A(uA(ak)/D(u@)B-*DD)mC)8;)4[*)F*T^(h8)O9+/u)Pm*B{(fY([M)SR(ic*Y[)cJ))])/G)i>)77)9J)cj)-|)X4)U:)=T)[>)pq)vS)q<)lQ(`>(e8(U@)+4)?c*2`*4Z)6^(g1(`B)_0*Jk*Yx)T6(f|*4^(q**Ky*XT*r`*cz(XK)SI(jW)p_)te)6k)_{)[t)-Q*@D)H[)uX*&Y*6z)CI+0F)8x)v3(oR)tG*t})6!<n (aI)i=)Q7*9!12%48<%?BCGHJL%NPSWZ%]abegijny|} *:!()*-.01347>DGHKPU%XZ%\\^`acdfhj%nxy{~ *;!'(+-.2%;>?CEGLPR (i]*5i)mV)pG(cH)n)(\\y(}F*S)*&)([&)ce*~a*y_)ZA)k8)x9)<4)s3)7f*xq*X+(gl*35(U?(oM*:g*=p)*b(_`)kL*T((}T(oD)TQ*xg(wa)ti+'\\*_|*(E(`p)5m*nT(VZ*<B*>k*=L*?c(p^)Cr(n?)A^)Ub*U<)Bt)]E)C])OL)FI)56(v/(TI(_7)ZE)E^)S=(^B)HL(tm)Oy)lc)&a*5;+3<)?y)w!rk *~[*Xw(~.(UK(W<(f3(tw)tA(lV)Qt*_U),@)S+)T8*Sh)9H*;!STVWYZ]_%chj%nrw *<!,-%256:%@CDF%IK%MP%SUVY[]%ch%kqwz{~ *=!&')+,.013%68:<%>AE%GI%KN%P )0I)U9)d:)6)*m!Ax (cR*_R)~9(Vs*U1(Uk+1r*m!df (`g)[B*aB)UA*U?(qB)'F)O!2[ )E6(f_*6&*0t(rq*A6),w)6e)Ld*o:)>m)0])G?)s5(UA(Y1))/*v*)<Y*1g)&@(YX){S(_z*:r(TZ)/a){I*mY(Y>(VF)y^)i<(bL*:')=&)y5(|;)S/*u=*^e)R)(Zn(d5)WO)<{)Ad)R7)1E*xW*T[)*u)iD){=)yC(T^*b7)hd)RI(mo*cx)Ss*Y2(cI*Ea)C0*\\K(}M*~;)Wj*=!QRV%Z]%_a%cehj%msu%z|%~ *>!()%-3%:<%AC%EH%OQ%Z\\%`bg%jln%rtx%z|~ *?!(*,- (e3(wQ+3w*YJ(dq(nD*y.)D(*do)Sw(^4)mn)7])dq(`R(a^*/{)^o)o*(d*+0A)K-)uJ*s]*K^*13)`_)b:(^U)E_)k:(sc)=l(mL*Sf*{K)63*.o)1y)_o(sk(V!UN ).X*vy(W6*Sa(_v(uW*.E)5p(Va)@.)5**;M*?z*;x*Gv)ad)YN({p*.l(^c):()E`*3f*;N*IL(]7({1(uO*_B(U`)Rd(^1*LQ*^Y*q}*AI)if*nj*q?)VI*:S),n)<?)Tg*>2*6@++w(r6*X[(TO(dw*?!./%24%7;>@%GIKLN%QS%_abdf%hlmoqstv%y|} *@!&'*,-/%469:<?%CE%GI%SUVX%Z (WY)>^)G+(js(Tm):s*~d)6.(y+)ig*99)VL)Ho(\\e*<J)t7)C~(`S)SG*.K(\\9(i^)a.)}o)AB)h+*:Y)D.(}v(`:)aM*JI*q9*rK)<r*Xa*7,(i})R\\)5c*/o(rj(W_(i?*XO)A<(TP(|x*Kx)G|)8_)z,)_i*9T(bb*w/(|o(h:*b;*.g(u/*XJ*Eb*8!,- *Xf);J(|b)2x)V,)wh*S{)tl)l0(g&(Ws*\\G)W;(w;*._)x/)S6({X(x8)kp*4B)2u)Wa(so)k!u{ )d7(cV*/4*@![\\%ce%hjl%npqs%vxz%~ *A!&'%),%5=%AC%FJ%TVWY%\\^%bd%fh%prt%w{|~ *B!&' )qA)pt(a**4`(n_))P(tW)eZ)?_)Xp*T;(}=*De(cP)t()7h)@?(VT*yf*Dt({U*T*(eO)sp(Xa(}S*~@(v?),L)wd(sj(T\\)F2(Ux)7W*P[*`U(b')@x(j|(lZ*`:(Vi(Xo*eE*{E)Qo))J)/u({[*N@*T9)>1)5g*{k({?(|])9@(i'(e4)nq(^I*A+)E.)H4)PC)6U*^}(e1*82)Vt)m3(US*XN({')ao*BU)B!(p *0Z*FB+1k+2e(}c)Cm*`()FD)DD)5))|C(r])+L)>k)Zp*B!(),.%46%@C%IK%MOQ%SW%\\^`%fh%np%twxz|%~ *C!&'(*%02%57%E )0.(`Q*2C);Z*JN)l&))M)FF)7^*t`(e))c[*Te)R;)rH)z-(f2)s:*xZ*8<*TX)u1)CR)_C)?Q)<B(k})/O)y9(eU(Tc)P4*3c(|X(k*(mp(W!uw *{G));)Dc*2n)/4*xb*`9({B*Sy*TY):{*8x)=2(kD*:=*d9(Y`*)w*`W*(O(\\q(r))YG({v*T-*3`*dL*?M)~R*Dq*s!(, */&+&D)uj(~-)zv*`z*sD)x0(zi)8p)|x*@))H.(hX*/j)hq*)y*n[)5\\(q}(Vj({:(uF(r,*C!FGI%KM%QS%]_%bd%suw%~ *D!&'%+-%/1%@FGI%MO%QS%UW%^ )g')8/*[@*Z]*4R*:B)6o(eM)TE*d2(tP)/3)Rw(o0);P*X*)nv)Z((o>)MD)n;)[S*U8*Tl(oI)QO*Jp)v6)9Z(eV)_/)Rk(r0);0(q3)Ha*6m(hb*)-(ZH*\\V)Vo*YF)_m)9G)V>)Yl*/'*=g)Fv*`;)V{*rl*Se(t})d>*C1*6P)m`*PR)H0(`n*Zp*nk):/*xx*[9(iu(X5)C=(l})1U)V8(`](}N(tO)WE(rC)l-)kr)0E*84*5q)7{)DF*_s)qz*ZA*X4*mt))^(d;(f0)_E*D!acdf%lw%} *E!)*%-/1%69%=@AFHIMNR%TV%Z\\%^`cghmnp%ruwx{%~ *F!'(%*,%.17%9<%?ACF%HMNP%SVX )RG),4([3(VA)+C)8K*8g*`R)G**dB)sA(ei*n6)-H)|R)GP)8V)}f*.y)n&([N)6X(tZ*`G(_k)y;){G(n:)-v*`L)U~(}e(n[(em(]y)X>(mw)9`*xs*6Q*FW*LV*`8(e{(}t*79)7@)5t*5\\+0,*r6*~!8F )IU(ur)7=(i7)8'(gr*Et)U8(vw)k<*Jz)O|(t<*UW),l)Xo)gc*x](T~)_y({C)us)8N)AJ)p/)1K({R(wd(TM*6')Rq)gE(V5)Dn*09)-d)@C)CY).c(uQ(vu*F![]_abfh%jl%oqrtuwxz%|~ *G!&)%/3468%;=%?AC%HJKO%VXZ%\\^`%ch%jmoprsuw%{}~ *H!&(%.0%4 )(n).9(d'*vx*_n)Fx(n0(i()1_(U')[3*/5*:5*=q(vH(W!Ze (}C*.F)Ch*@r(fw)lL*4G(i{+'g(X/)Ww*Tw(|g)3>(cz)nj)Ws*D~)?)*qJ*.S(f?)zR*)a*q=(k(*1P)kD)8.*FY)VD){c)5-)?C(cv):@)S1))3(f`*m[(U9)Rh*TP(}P)@)*9c)H((f!B8 )Q+)Ox(V()8S(cW*8>(WH(Y7(oA)5&*tB)AT)d.(bg(ab)0x*TS)@])ai)Du*MR)u.)t2)A`(l)(f<*n{)d?*H!5679:>@%BDF%IKLNOQ%UW%Y\\%`d%jl%oq%tv%y{%} *I!&'%/1%46%9;%@B%IKN%QS%WZ )yx)0H))T)0b*6o(t;)1\\)aT)_q)YB)RW)dE)MH*K2))u(UM(xu(j<*n=)Tl*)R*s6)5+*.`)ru*Dr(c2*tb*_')Aw)&4(Y))eY(TQ(d\\(t5(ep)98*o)(]m(Vm++P*.>(gc*W}*J2*8W*qA)V1),c(y5)A.*r_)gj)fA(du*6L*{Z*10({a*r!mF *.Y)q8(dX*ow*{n)~l*Lp)XI(UN*1c)x6*TJ)1s(gx(V?*xY))?)L~(\\M(en*Ul*>1)u9*tH(`d(h@(m8*nZ)V+({l)Vi)AC*I![\\%hj%oqrt%vx%z}~ *J!&'%),%13468%>DEHKMOQ%TV%Z^adeghjl%oq%su%y{%~ *K!&(*%/ (|m(zm)FT*3s(iq)|~)>C)I|(V/)OY*G7*uv(c^)80);@*b0)?>*4E*Tt(^e)H1(d.*I0)4=)Sr)TP*U-(}V*BP*9v*nf)O5*_,)?R)/-).N(Yj*I|)@h*67)f<)1z(^@(`+(on)-F*b(*J**df)*g)D4)/Y(vG(]i(_i*4|(bp)S'*sa)aZ(WL(Yw*1-)C{(je*nb)y8*Jt*.}(rw)5(*tD*DN(k_*x[)-t*Su*?u*d+(e6)@6)*~)lY)0=**l(xA*/!+. *^S(jG({Z)1,)?m)g>*K!13%57%;=%@B%EHILMO%RT%VX[\\_%cefkln%twz%| *L!&')+%-/%57%;=@%DH%LN%PR%UX%[]%_ac *`A)oU)qi*.t*u_*BA(zv){:*t.*Iw(b3)a_).5)@5*TF(|Y*~9))))PB)Rb*S!jl *`B*_V(dA)7&+/!v} (fD(Tq*:+)cw*E7)&i*J7)VR*sb(g|(V.*Ss)`2(gh*qX)_a)WC)pi(Tk)tI*FT(~U),3*Nz*x|*q])^i)Sm(tj)9a)q|*J+)ZS*9:(qa)bL(dB)tO*s^(hS)-J)`Y({k*T~*~V)P<(tT+0&)y_)DM)6/(XQ)mE*0r)T`*r))R.(W+)mv(^G)Fj)Z}*a_*6B(uc)i~*L!de%lnoq%~ *M!&'%03%8:%MO%QSUWXZ%t );M(},*aD){W*U.(vN(gW*7y*<+*MT*26)IX(l<*2l)cU*eI(_)(UL*xU)9N(T`(eS)C1*5v(tB)VU(TF(sx(cJ):5*nK(Y&(WE*JA*xp(t]*a6)ys(V~*4t)m5)S0({S(v\\)-A)I-*Du(ZJ)):(UF)sq(Vy*9A)6T)@\\*ap(}~(VS)-]*7?*`p*3a)mO(V:*KY)26)P~).Q(U6)pc)Y:*TG*Sk*T!n5 ),?*22*1[*.h*;J*<'(mu)Pp*w,*r*(vo(e|*nP)W5({|*{C(}>),R*s-*M!uv%~ *N!&'%:=GM%OQ%SUWY%\\^a%df%hj%ln%y{%~ *O!&')%> (d&*:_)LN(x6+0g)+**/i*<u*>!./ *;|*G0*__*Xb)pa)-U*xv)uH)@i(h1)7O(XE*7<)ml)+N*sj*ZX*F;(g:)TH)V/)R?)0X(b/)k~)*l(WS)0y).r(}))l.*b4*ms)d~)Sg)X)*cv)CG(e!(P (X3*eD*TU(d~)*k*_S)W.(U{)p[)JU*DR)2A*8&(X;(Yg*`v++0)20)W!g^ *r{(Uu(wL*t,(TT(~+)y1({>*TQ*1L)gC(pi*9R*bG(e^*a&(j[)&=).,)2/)OD)e]*46*PQ*O!?@%^`%hj%~ *P!&'%@B%H )Up(|1*KZ*xd*Uv*~7+0*)WT(^p(]h(p-*J_(dU):S*_&(n)(f\\(nB)fR)Y(*/Y*_m*:?)2f)/Z*rX)C.*.@*Y!1j *mX(~_*(T)CF)1&*qT*2N(U~*bm(bh*r^(]f*_a*As*d1)AE*w.(ze(c,)tm)D')Fp(gt)^Y({g*^g(^Y(nd(g\\)=f)Ar*X!^C *5:*>v*aL*)6(_r*CH)E/)@2)\\.*E?*[v(lX*`X)ot)^Q)b\\*W|)7S(`3)TR*X<)/@(rv)3\\)C<*X`)5j(jS)Wm)Ck*^Q*P!IJ%PS%Z\\%~ *Q!&'%R *n;*qG)qh)F8)Jw(g6(U:)_:*T,);^)?-({<){J(Zj(|F)sI)QA*PA*(H)Sl)ph)?K*_()''(}Z*D,)F;(co)54)|F)XL*/>)L<)|M)-T)Zr),])9D)VK)D;(TN))X*X&(Vk*4D)o&*s9)7E)@v)6A)Sj*Xu)a7*0Q(]k*3d(eI*aM)6[(hD*F2*_**2;*nq*@o*_j)UU)h.)?A)q_)kZ)t\\*7t*Ww*m;(Y/)Dz)m]*T.*tK)8@*oH*r+*?i)84)r()-e)e\\(Uv)/F)>o)7Y)Ou)>:*Q!ST%uw%~ *R!&'%;=%[ ))o)mk*bW*S~*9d)E))>*(f5*FZ)ss*4&*5-)RH(U8*.a*3))q4)I5)PO)6*(Zl(Xf(n|)7q)Ot*Ye(eG)@1*.R).b)8+)9o*7!lm *0V))d)&,(`P)Aj)ya)z9*X()^t)mx)Yv)Si){X(Ts)p^).k*mR*JU*.b)yE*4C*eH(W!-R *8?(fl))&)U.*T0*(U*^^*3u))b(g=)pJ({P)A,*~n)hA)F]*Ev)Co)f=*T!\\? *`H)|f)_])a>)7.)s7(kx(U(*>a)E}(aj*E[*X.*nR)}e*R!\\]%{}~ *S!&'(*%\\inx *T!+4Nm *U)(X1)T=)x.*~E)6V)cH)7g(TY)tK*^V)<]*XZ*&()GC)*s*KJ(uS)<K(sm)d{)I6*o&*`5*XX(oC*/A*Tj(_9)8Z)7C(cb)G&)i**:o*cy(i=)r')^W)UF(^E(gS*XD(vs)Yc)Vg(zl**)(Vh*(-)Yk(z`*7c)WW(zg+&t)HV*Zx({N*/=)/m*.O*b?*Xp(tu):,)yW*YZ(ca)?q)x'*T)*r1*.^*mn*-u(k{*d])C>*0R(|h*aT)@q)).(X2)Ej([1(X>(o3)+=#2$*U!CD%KM%PSUVX%_a%df%kn%tw%} *V!&'%)-%3568%:=?%EG%IK%_ (Uz(TR(]e(TV),<(cT(T[(V,(Td+'J(z|(lW(Tn)y2(U,(b}(U4(tS)cY(c})Qp(mt*4h*{l)Q3)re+2\\(T|(V3+2U(U!IV (V'*9O(zk(ie(kV(VX(d!CSY[d *uP*X](c)(eR(c!5=M *X\\(c!ur (_!u{ (`!(GMYZfx{v *?`(a!>CBQT (^N*0<(V!OW]V|u (W&(Vr(W!V.] (XF(W!0`bDf (X!@I )>3(X!<? *V!`a%~ *W!&'%f (X!A9 (W!mx (X!XVskeq`] (Y3(X^(Y5(Xv(Y!oqsNcleZh (Z!(Y| (Y|(Z!\\?^].L<UX ([U(Zs([,(Z!x~ ([!CR|~ (\\!'8T (]+(\\!kjdl (]!,0 (Vq)RD(X!:G (YW+43)RM*'}(^:))E+1g*{m(^M(t:(b!au *O((bx(_^(t?(]z(V4(]{(VG*JL*K)(VI*5?*KW)xQ(zD*I:*1G(^!w} (_!0/ *W!gh%uy *X!QRW_eh%jlnoqrx%~ *Y!&')*-%03%79:<%EG%IK%WY]^`bdg%iln%qtwy%{ (_:(^!bnq *S!]cdgqrt *T!&'/326%8:<=@CDHLMRTWZ]`cdfhkpsuvx%z} *U&*T|*U!(*%,02569:=>@A (cx(d0*q!lqp *r'*qy*r!328?JU]bhj~ *s!*4M *a!vz|x *b!2':9<@ *Y|*Z!&'*.%03%57;<>%@BDJL%RT%VY[\\^%ac%jnor%vy{~ *[!'()+%-01348:;A%EH%MO%Z\\]_`cf *b!>6UKDVJMYlhb]aqu *c!+1OKP^\\fps (`'(th(a!cmn (b&(hQ(b!8>X (e<)be)s[),1(_!ho +'G(dl),>)lW))7(o/(p!3+ (rV(s!;DP (n!ehfoujk (o?(n!w~ (o!LhNi_^KPYV (p!7. (oo(p!<Y1> (ov(p!*_bdc\\B~y (q)(p!ng *[!hjl%prsuw%y{}~ *\\!&'%*-%/1%79;%FIJLMO%UW%ik%~ *]!&' (q!<>. (pw(q!1OJuQ (r!=DYarX *{}+2^)4t*9!@DFVQoKUX^`r *:!&, *9w*:!68Q *9!_~u *:!9:/ *9!p{hqf *:!2< *9k*:!OweR}uJb@FziA *;!&/ *:t*;!)* *:!NC *;!1fpq *:v*<N*;!QIF *<W*;!sDd\\XtU,uBOH{z *]!()%~ *^!&'%. *;!}0~ *<!(&)*l4op\\fOXA8re9t7TZdvx} *=!dH; (q8*=!{n@`9 *>!&B *=!ti7Brf[\\M( *<|*>0*=!SD *>!f[dc} *?!89+:) *>!FPs *?!'=? *>!;w *?!r~ *@!(> *?n*@+*?!{pk *@8*?!RjeH *@!=;d )kc*A7*@H*A8*@w*A9*^!/0%OTjv| *_!.1%35%8;=%@C%FHIK%MPQTWZ%^`cghkqrtx} *`!')*,%.2%467?@DFKMP *A!U: *@!WT *A!XGgc]y )s0*A!Bqz *B!JN-5 *Ax*B!TB+_]Vyg *C!)LtRvc *D0),!;E (t!bg *2m(t{(u'(t~(bw(}!'*19 )5h)6!-b~ )7!4DAX )83)7`)8!J\\T )9e):U)9!)2Fl )8~)9!dB )8z)9!ft ):!QW?^ )9|):!=- );X)9!~v );!KG ):!jz );&):k);!,'d )<1);s)<C*`!QT[%]_%dh%loqruwx{}~ *a!'(%+-3%589;%@CEFH%KN%RU%[]`c%fhik%oqsuwy{}~ *b!&*+-%/138=BCEF )<!'deFgm} )=!+86]y )>)),H).])ko),N(cn(e!NZFEXosc (f!OV%XZG (e~(f![]'6 (g!-? (f!{uh (g!EF/ (f!zj (g!H{Xm_}RQ~ (h&(fv(gN(h'(g!fjw (h!+,. (g!TUO (h/(gz(h!0m9rOfEtuacy| (i`(j!/U (i!Bf:N8I5 *b!HILNOQ%SXZ%\\^%`d%fi%koprtv%y{%} *c!&'%),%.02%EG%JL%NQ%[]_%eg%oq (i!0On%p,)U (j!+r (i|(j!QY( (iz(j?(iw(j!v1 (it(k&(j!]^49 (k!1> (ji(kf(jq(k!23 (jt(k-(j!}d (k!6,9: (j!lm (k!/<+ *^~(k!eOSHkjEGnt (l!F'E (ks(l!;PGJ:BtR_Yijs (m!(Dilrv (n!1'5;@FEX ))!Wa\\Yy )*!*+ *c!rtu~ *d!'(%*,-/034:%<?AGN%PT%XZ\\^bcg%mp%ux%} *e!&'+%.1%46%ACFKM%VX%` )*!&3CJMP (~!8&9<B4DE=FHaNiXW]Omcp~ )&7(~w)&!8UVzy )'()&!wqYn )'!R8.7fUiWeEDcn| )(!:> *U~)(!Xf )-!W[fkmpy} ).!'38@G *J@)-E)d!ruy|} )e!/-:9>T[U^`cm_of *e!ab%~ *f!&'%g )eg)f!*&4 )ev)f!10(5L8?KDc`js )g!&)8 *8;(tK*yn(t!J( *{!8<%AILRUY\\_befh%j )*o)+')*z)+!,;6OKTI *XS)+!hgq~ ),'*73).!OTaZ )/5).y)/6).!lo )/!078 ).!ux )/!*KgXMA?[]<qS )0!QRTS )/t*f!hi%~ *g!&'%<>%VX%p )0!CVos )1-)0!v\\ket )1!l;1]XFZ4 )2!GM<J )1t)2!'5Rq )3!Czbu )4!,Ij ).h*sP*q!8:@BDEKMRSUWY%\\^ad%fhi (Tr)c])51)R!<[cQ )S!Q3>B: )R!op{} )S!4W~ )T))S[)T!LMF, )S`)T!5+O@C )S_)T!(DS *g!qr%vx%~ *h!&'%79%y )U5)T!|a )U!?D )T!\\Ync )U!'I*1 )To)U!KNP/ )V4)Uk)V!AC )UZ)V!67 )U!X\\x_ )Wd)V!jh )W!(X )Vb)W!*[0' )V|)W`)VN)WV)VQ)Wu)X!_?\\ )YJ)X!PwDE )W!|o )X5)Y!wI0x )Zl)Y!z=?USOoLg'Z7 )[!H,- )Z!cT8nu )[!1Z )Z!iHh )[!osr^Xb` )\\^*h!z{%~ *i!&'%TV%~ *j!&') )\\!V4FCOn{km| )]!NWOmi )^!*9 ({!7;LJ\\o )l,*~h);:(|!BL *L\\(|N*[<*Qv*_!Gdfv *`&*_!uzw *`+*_y*`!=<C^IENYmneg| *a!01/G7A: )BP*a!S\\agbj )-!4;:< (}@(gV(}!U^ ({((}!hk *1K),!gfj *9;),y+'S(}s(u!NPZvwp *j!*+%LN%~ *k!&'%.0%2 (ud(v>(u!xkq (v!F& (u|(v!K2yzQ|WLm (w'(v}(w!MO,>.[ (x)(w!epW} (x7*4p(x!l]9< (y!'T (xt(y!;= (xz(y!ILZ?OAEr (z!'&BGP (|!sz (z!ju ({*(z!acr *~!?ABDIGJKORTZ\\]`be%gijlmoq *.!9;=?BC *k!34%:<%~ *l!&'%: *.!GJXZ%\\cefjnquz{ */!),/023N7;<?B%DHILMPRSXZ]\\`b%hk%np%tv )*i)l|)(|)l;*at)g!HKh\\Y )h0)g|)h2)g!qmz )h!*)F: *x\\)h!kJH? )gt)h!Sp )i!2c.-0864 *l!;<%IK%vx%~ *m!&'%7DIKz *n!)-.4@Uvz )h!|{ )i!Id_]a )j&)iu)j!-K=/06:MWX?V )k()ji*v!|}~ )D!18C-N )E1)D!lOX} )E3)DZ)E!4*9 )D!p\\a )E|)F<)Ed)F=)E!u< )F?)E!eAf?i )F3)E!ODn )FA)EM)F!0ef )G!:;(< )Fw)G!>] )FP)G!/@ )Ft)GA)F!sq}|\\ )H6)G!iNQmE )HC)J=)H})I!GH )Hz*o!(4>DILV[aouvx%~ *p!&(%s )IL)Hq)I!3) )J&)Hd)I8)J@)Ia)J/)Ij)J!,S:OgG )I\\)KB)J!VW )KD)J!X52Hjv )K1)J!z| )K!J'7@U )Jd)KV)J\\)Ku)LL)Kc)L!45 )M))Kh)L!a[ )Md)L!mxR )M!R= )L!ZEu )M!@UTm[o )f!Je )P!:;@=KLFSTZc *^!UW[%]_`bacdfhklnqu *p!tu%~ *q!&'%6;NVbgjmor%xz%|~ *r!&-%0479@DEG%IL%PR%TVY[\\ac%gin%z} *s!&' *^!wxy *_!)+ *\\j)5!'37;>=A@H *7`)k!EJUegi )>/)@!789Sb )DW)@!L^I )^`)C5)@!f}z )A&)@~*2<)A!OD1?FQGgt| )B!>4Urs} )C'*X!236;=@EFHIGMUY *N!AD%FH%K )d!3d )c{)d!+4CDIPRTW )7r)8C)9h*s!)+.%02378:%CE%LNOQRTUWX\\_`eghmnpqs%|~ *t!&'%+/%24%689<>%ACFGIN%PT%VXY[%_acd );E)=,*2:)Q!JS]UYegfmux%z )R!(0+19 )>!0Pf )c!kptN *DV(`0*3!|yp *4@)CH*4!A5/18;k%n_FH]Q[ )CN*4!aouxq *5!89 *4v*5')CS*5=*Ue*5!aIWC]sw~ *6!F+,C2;NO?9 (q~(xw*6!ZTc )Ym*6!u| *7E)Cd*7!C4 *t!ef%moprsuw%{~ *u!&'(*%<?@BCEGHJNOQ%SU%]`b%fh%oq%uwy%{~ *v!'()+%/ *7:*6x)O!6IKUXk *y!XYZ\\`a )Pl),})P{*Nm)?2+3=)?!5^hfenptx )^![wqx )_!=B9-3jL )`!9<?XZ )a!C,8 )`n)aB)`s)a!HJh )b!*, )a!xp )b!WK^p )c!;F )^G)`A)a6)b0)5!ZY_de )w!ejps )x!,- )w})x!+3(1@8KV[kx )y+).!\\[ *v!01346%<>@BCEG%wz *w!'(%+-0%G )/n)0!63@ )/s)0!2< )1+)2!-4 )3!+wk )4!@F{ *3!]\\ )SA)TK)WF)t!+-5>LMF )?M)t!bQRn%pTqZaX^ )u!*I23 )t[)u,)t|)u!(Fwovcx} )v!&5<(W\\Lou )w/)vw)w!=NH^ +4.+2!>@A )q!1DM9GHZbYmfux )r!78.*AO *w!HI%~ *x!&'%N )r!ILftdgsx )s!-.>CK )l!7=KHEXov )m'*0!@IG *Oi*0!P\\Yaif )p!f~ *Ii*m!89:>=?@BCGJHM%OVW^]`_bcegi%moprw{%~ *n!&'(*%,/%13258%:<>?ABD *x!OP%Tknruy *y!*/%TVW[]^b%dg%mp%~ *z!&'%5 *n!CEHIM%OQSVWY]\\`acdg%il%pruw%y| *o!+,*-2357%9=?@C6E%GJMOPS%UW%Z\\_`^bce%mpr%t; )s!uz *sf)y!Me[c~ )'A)y!{z )z!=3 *z!67%:<=?%[]%~ *{!&'(+%79;HMNPSWX^ )z!XVp +1m*{z){6)oz)p!',2= )k!46 )l)+/!prx%| +0!)(-/.01589;=%@BCEHLNQ%SUZ]%chdj )m!68:DAPGWX\\hUTgfzq )n!.31/62N<GJ[KPWbUpc`d *{!aco%y{|~ *|!&'%u )nf)o.)n!mk )o2)n!x{ )o!1'50 )n~)o!?PFNH]a *1Y)|S){!>?FLN[lfrnsy *J!BGP[]` *K!'K<ANgShjv *L!F( *Km*L**Ku*L!ME?G6`Wbm *M!9N )m/*4i)p!KM )sj*2!HJLRVX[%]_^gAky| *3!*/FN *MV*x!X`c *|!vw%~ *}!&'%| *x!ilmotz{~ *y!&(),- *D!AH`bsnpo *E!C(&G8B>E.DQ_PiKULJdjO *F!+34/5 *Ek*FU*Ey*F6*E!zsl *F!EI:JLOKe}`gp\\ *G!'1 *F!vsky *G!(k *Fd*G!fgdIY5Wt<LeMBN| *H!?8b *}!}~ *~!&'%5<MSWX^_cps%y|%~ +&!&*,.%0457%;>%ACE%HJ%OQS%VX%[]_a%ikm%su%w *HV*G!qn *H!=' *Gl*H!;u<EC[cMaPZkzp~ *I!MJ5ARXps */w*0!*,- *80)|!gjupq )}))|w)}?)||)}![L>-BE498GR2lnY )~0)}!`qt )~!)6 )}v)~!-,KabsgXc@eW]fo *&3)~|*&!.?<GHLn`^qxm +&!xz%~ +'!&(%*,%68%:<%FHIK%RU%X^b%dfhjkm%~ +(!&'%: *'!(3/AJI *7!wz{}e *I{*8!ABCMOHKX[ST^dikoz *9!&/ *J!\\cf *K!]d *M1*1!,.6>?A *(,)>D*(!AMLNRblmqw|}xu *)!.? *95)B?*1!N]dtpux} *2)*)O**u*+!KS *-:*.5+1!VR *Xs*Y!+;8X *X!gm *U!RT *c!w}{| *d8+(!;<%~ +)!&'%A *d!65D=CQRFHM`Ydaevw~ *e!()*0/5 *U`+0u*Y_*Z!9S *[!N^ *Y!\\fcak}~ *Z!(, *Y!uv *Z)*Ym*Z!:EF1GI2WKbkmz|q} *[!/5.*2&>67FG?ekqdiz *\\!+0,8: *V!*4<7JF )?=*N!PXTV +)!BC%~ +*!&'%H *N!_ei *O_*R<*u>*t!-73JELSRnqt *u)+3!loq%vx +2!CPR *s!VYZko )sM*s}*g!Ww *h8*iU*j(*k/*jM*l!Jw ++!369%< )zB++!?BD%FHINOR%WY%]_abd%kn%qx%{~ +,&+*!IJ%~ ++!&'%/12478=>@CGJ%MQ^`cmr%v|} +,!,-56;<'%+.%02%478:= *u!gp|} *v!&A=5DF *~!{z +&(+0O+&!'+-2163<=B +'!][_a`ei *yo*z!;\\ *{!*) +&!PRW`\\l^jy +'!'+7; +1![\\ *-.+0!y~ +1!&)0 *k;+1!;=y%{~} +2!'.,*/4gqt~| +3!)*0 +,!>?%~ +-!&'%~ +.!&'%~ +/!&'%ntw~ +0!'+237DGI%KMPTV%Y\\efik%twxz%} +1!'(*%/2%:<>%CE%QS%UWXZ]%ac%fh%jnpqs%uwx| +2!&()+-0%35%=?BD%OQTVWY%[]_%dfh%prsu%{} +3!&(+%/1%;>%jmny%~ +4!&'%+/%14%8 .*f.+!Zv .,!oy .-!;<%>@BCGN%PRSV%X -R!XY%~ -S!&'%N")); + return src(gbk_us); +}; + +let gbk_build = GBK$1(); + +export default gbk_build \ No newline at end of file diff --git a/PipeLineLems.PDA/static/js/print/printerjobs.js b/PipeLineLems.PDA/static/js/print/printerjobs.js new file mode 100644 index 0000000..09eaba5 --- /dev/null +++ b/PipeLineLems.PDA/static/js/print/printerjobs.js @@ -0,0 +1,587 @@ +import gbk from './gbk.js'; + +const commands = { + LF: [0x0a], + FS: [0x1c], + FF: [0x0c], + GS: [0x1d], + DLE: [0x10], + EOT: [0x04], + NUL: [0x00], + ESC: [0x1b], + EOL: '\n', + FEED_CONTROL_SEQUENCES:{ + CTL_LF: [0x0a], // Print and line feed + CTL_GLF: [0x4a, 0x00], // Print and feed paper (without spaces between lines) + CTL_FF: [0x0c], // Form feed + CTL_CR: [0x0d], // Carriage return + CTL_HT: [0x09], // Horizontal tab + CTL_VT: [0x0b] // Vertical tab + }, + CHARACTER_SPACING:{ + CS_DEFAULT: [0x1b, 0x20, 0x00], + CS_SET: [0x1b, 0x20] + }, + LINE_SPACING:{ + LS_DEFAULT: [0x1b, 0x32], + LS_SET: [0x1b, 0x33] + }, + HARDWARE:{ + HW_INIT: [0x1b, 0x40], // Clear data in buffer and reset modes + HW_SELECT: [0x1b, 0x3d, 0x01], // Printer select + HW_RESET: [0x1b, 0x3f, 0x0a, 0x00] // Reset printer hardware + }, + CASH_DRAWER:{ + CD_KICK_2: [0x1b, 0x70, 0x00], // Sends a pulse to pin 2 [] + CD_KICK_5: [0x1b, 0x70, 0x01] // Sends a pulse to pin 5 [] + }, + MARGINS:{ + BOTTOM: [0x1b, 0x4f], // Fix bottom size + LEFT: [0x1b, 0x6c], // Fix left size + RIGHT: [0x1b, 0x51] // Fix right size + }, + PAPER:{ + PAPER_FULL_CUT: [0x1d, 0x56, 0x00], // Full cut paper + PAPER_PART_CUT: [0x1d, 0x56, 0x01], // Partial cut paper + PAPER_CUT_A: [0x1d, 0x56, 0x41], // Partial cut paper + PAPER_CUT_B: [0x1d, 0x56, 0x42] // Partial cut paper + }, + TEXT_FORMAT:{ + TXT_NORMAL: [0x1b, 0x21, 0x00], // Normal text + TXT_2HEIGHT: [0x1b, 0x21, 0x10], // Double height text + TXT_2WIDTH: [0x1b, 0x21, 0x20], // Double width text + TXT_4SQUARE: [0x1b, 0x21, 0x30], // Double width & height text + + TXT_UNDERL_OFF: [0x1b, 0x2d, 0x00], // Underline font OFF + TXT_UNDERL_ON: [0x1b, 0x2d, 0x01], // Underline font 1-dot ON + TXT_UNDERL2_ON: [0x1b, 0x2d, 0x02], // Underline font 2-dot ON + TXT_BOLD_OFF: [0x1b, 0x45, 0x00], // Bold font OFF + TXT_BOLD_ON: [0x1b, 0x45, 0x01], // Bold font ON + TXT_ITALIC_OFF: [0x1b, 0x35], // Italic font ON + TXT_ITALIC_ON: [0x1b, 0x34], // Italic font ON + + TXT_FONT_A: [0x1b, 0x4d, 0x00], // Font type A + TXT_FONT_B: [0x1b, 0x4d, 0x01], // Font type B + TXT_FONT_C: [0x1b, 0x4d, 0x02], // Font type C + + TXT_ALIGN_LT: [0x1b, 0x61, 0x00], // Left justification + TXT_ALIGN_CT: [0x1b, 0x61, 0x01], // Centering + TXT_ALIGN_RT: [0x1b, 0x61, 0x02] // Right justification + }, + BARCODE_FORMAT:{ + BARCODE_TXT_OFF: [0x1d, 0x48, 0x00], // HRI barcode chars OFF + BARCODE_TXT_ABV: [0x1d, 0x48, 0x01], // HRI barcode chars above + BARCODE_TXT_BLW: [0x1d, 0x48, 0x02], // HRI barcode chars below + BARCODE_TXT_BTH: [0x1d, 0x48, 0x03], // HRI barcode chars both above and below + + BARCODE_FONT_A: [0x1d, 0x66, 0x00], // Font type A for HRI barcode chars + BARCODE_FONT_B: [0x1d, 0x66, 0x01], // Font type B for HRI barcode chars + + BARCODE_HEIGHT: function (height) { // Barcode Height [1-255] + return [0x1d, 0x68, height]; + }, + BARCODE_WIDTH: function (width) { // Barcode Width [2-6] + return [0x1d, 0x77, width]; + }, + BARCODE_HEIGHT_DEFAULT: [0x1d, 0x68, 0x64], // Barcode height default:100 + BARCODE_WIDTH_DEFAULT: [0x1d, 0x77, 0x01], // Barcode width default:1 + + BARCODE_UPC_A: [0x1d, 0x6b, 0x00], // Barcode type UPC-A + BARCODE_UPC_E: [0x1d, 0x6b, 0x01], // Barcode type UPC-E + BARCODE_EAN13: [0x1d, 0x6b, 0x02], // Barcode type EAN13 + BARCODE_EAN8: [0x1d, 0x6b, 0x03], // Barcode type EAN8 + BARCODE_CODE39: [0x1d, 0x6b, 0x04], // Barcode type CODE39 + BARCODE_ITF: [0x1d, 0x6b, 0x05], // Barcode type ITF + BARCODE_NW7: [0x1d, 0x6b, 0x06], // Barcode type NW7 + BARCODE_CODE93: [0x1d, 0x6b, 0x48], // Barcode type CODE93 + BARCODE_CODE128: [0x1d, 0x6b, 0x49] // Barcode type CODE128 + }, + IMAGE_FORMAT:{ + S_RASTER_N: [0x1d, 0x76, 0x30, 0x00], // Set raster image normal size + S_RASTER_2W: [0x1d, 0x76, 0x30, 0x01], // Set raster image double width + S_RASTER_2H: [0x1d, 0x76, 0x30, 0x02], // Set raster image double height + S_RASTER_Q: [0x1d, 0x76, 0x30, 0x03] // Set raster image quadruple + }, + BITMAP_FORMAT:{ + BITMAP_S8: [0x1b, 0x2a, 0x00], + BITMAP_D8: [0x1b, 0x2a, 0x01], + BITMAP_S24: [0x1b, 0x2a, 0x20], + BITMAP_D24: [0x1b, 0x2a, 0x21] + }, + GSV0_FORMAT:{ + GSV0_NORMAL: [0x1d, 0x76, 0x30, 0x00], + GSV0_DW: [0x1d, 0x76, 0x30, 0x01], + GSV0_DH: [0x1d, 0x76, 0x30, 0x02], + GSV0_DWDH: [0x1d, 0x76, 0x30, 0x03] + }, + BEEP:[0x1b, 0x42], + COLOR:{ + 0: [0x1b, 0x72, 0x00], // black + 1: [0x1b, 0x72, 0x01] // red + } +} + +const printerJobs = function() { + this._queue = Array.from(commands.HARDWARE.HW_INIT); + this._enqueue = function(cmd) { + this._queue.push.apply(this._queue, cmd); + } +}; + +/** + * 澧炲姞鎵撳嵃鍐呭 + * @param {string} content 鏂囧瓧鍐呭 + */ +printerJobs.prototype.text = function(content) { + if (content) { + let uint8Array = gbk.encode(content); + let encoded = Array.from(uint8Array); + this._enqueue(encoded); + } + return this; +}; + +/** + * 鎵撳嵃鏂囧瓧 + * @param {string} content 鏂囧瓧鍐呭 + */ +printerJobs.prototype.print = function(content) { + this.text(content); + this._enqueue(commands.LF); + return this; +}; + + +printerJobs.prototype.printQrcode = function(content) { + + if (content) { + const cmds = [].concat([27, 97, 1], [29, 118, 48, 0, 30, 0, 240, 0], content, [27, 74, 3], [27, 64]); + this._enqueue(cmds); + this._enqueue(commands.LF); + } + + return this; +}; + + + +/** + * 鎵撳嵃鏂囧瓧骞舵崲琛� + * @param {string} content 鏂囧瓧鍐呭 + */ +printerJobs.prototype.println = function(content = '') { + return this.print(content + commands.EOL); +}; + +/** + * 璁剧疆瀵归綈鏂瑰紡 + * @param {string} align 瀵归綈鏂瑰紡 LT/CT/RT + */ +printerJobs.prototype.setAlign = function(align) { + this._enqueue(commands.TEXT_FORMAT['TXT_ALIGN_' + align.toUpperCase()]); + return this; +}; + +/** + * 璁剧疆瀛椾綋 + * @param {string} family A/B/C + */ +printerJobs.prototype.setFont = function(family) { + this._enqueue(commands.TEXT_FORMAT['TXT_FONT_' + family.toUpperCase()]); + return this; +}; + +/** + * 璁惧畾瀛椾綋灏哄 + * @param {number} width 瀛椾綋瀹藉害 1~2 + * @param {number} height 瀛椾綋楂樺害 1~2 + */ +printerJobs.prototype.setSize = function(width, height) { + if (2 >= width && 2 >= height) { + this._enqueue(commands.TEXT_FORMAT.TXT_NORMAL); + if (2 === width && 2 === height) { + this._enqueue(commands.TEXT_FORMAT.TXT_4SQUARE); + } else if (1 === width && 2 === height) { + this._enqueue(commands.TEXT_FORMAT.TXT_2HEIGHT); + } else if (2 === width && 1 === height) { + this._enqueue(commands.TEXT_FORMAT.TXT_2WIDTH); + } + } + return this; +}; + +/** + * 璁惧畾瀛椾綋鏄惁鍔犵矖 + * @param {boolean} bold + */ +printerJobs.prototype.setBold = function(bold) { + if (typeof bold !== 'boolean') { + bold = true; + } + this._enqueue(bold ? commands.TEXT_FORMAT.TXT_BOLD_ON : commands.TEXT_FORMAT.TXT_BOLD_OFF); + return this; +}; + +/** + * 璁惧畾鏄惁寮�鍚笅鍒掔嚎 + * @param {boolean} underline + */ +printerJobs.prototype.setUnderline = function(underline) { + if (typeof underline !== 'boolean') { + underline = true; + } + this._enqueue(underline ? commands.TEXT_FORMAT.TXT_UNDERL_ON : commands.TEXT_FORMAT.TXT_UNDERL_OFF); + return this; +}; + +/** + * 璁剧疆琛岄棿璺濅负 n 鐐硅,榛樿鍊艰闂磋窛鏄� 30 鐐� + * @param {number} n 0鈮鈮�255 + */ +printerJobs.prototype.setLineSpacing = function(n) { + if (n === undefined || n === null) { + this._enqueue(commands.LINE_SPACING.LS_DEFAULT); + } else { + this._enqueue(commands.LINE_SPACING.LS_SET); + this._enqueue([n]); + } + return this; +}; + +/** + * 鎵撳嵃绌鸿 + * @param {number} n + */ +printerJobs.prototype.lineFeed = function(n = 1) { + return this.print(new Array(n).fill(commands.EOL).join('')); +}; + + +/** + * 璁剧疆鏀惧ぇ鍊嶆暟 + * @param x 0-7 瀛楃瀹芥斁澶у�嶆暟 + * @param y 0-7 瀛楃楂樻斁澶у�嶆暟 + */ +printerJobs.prototype.setCharacterMultiple = function ( x, y) { + this._enqueue([0x1d, 0x21]); + if (0 <= x && x <= 7 && 0 <= y && y <= 7) { + var cmd = x * 16 + y; + this._enqueue([cmd]); + } + return this; +}; + + /** + * * 鎵撳嵃浜岀淮鐮� + * @param content 鏉$爜鏁版嵁 + * @param barcodeType 鏉$爜绫诲瀷锛� + * 0锛歅DF417锛� 1锛欴ATAMATRIX 锛� 2锛歈RCODE銆� + * @param param1锛宲aram2锛宲aram3 鏉$爜鍙傛暟锛� + * 涓変釜鍙傛暟琛ㄧず涓嶅悓鐨勬剰鎬濓細 + * 1. PDF417 + * param1锛氳〃绀烘瘡琛屽瓧绗︽暟锛�1<=n<=30銆� + * param2锛氳〃绀虹籂閿欑瓑绾э紝0<=n<=8銆� + * param3锛氳〃绀虹旱鍚戞斁澶у�嶆暟銆� + * 2. DATAMATRIX + * param1锛氳〃绀哄浘褰㈤珮锛�0<=n<=144(0:鑷姩閫夋嫨)銆� + * param2锛氳〃绀哄浘褰㈠锛�8<=n<=144(param1 涓� 0鏃�,鏃犳晥)銆� + * param3锛氳〃绀虹旱鍚戞斁澶у�嶆暟銆� + * 3. QRCODE + * param1锛氳〃绀哄浘褰㈢増鏈彿锛�1<=n<=30(0:鑷姩閫夋嫨)銆� + * param2锛氳〃绀虹籂閿欑瓑绾э紝n = 76,77,81,72(L:7%,M:15%,Q:25%,H:30%)銆� + * param3锛氳〃绀虹旱鍚戞斁澶у�嶆暟銆� + * + */ +printerJobs.prototype.printQrcode = function (content, barcodeType, param1, param2, param3) { + var str = content; + var length = str.replace(/[^\u0000-\u00ff]/g, "aa").length; + this._enqueue([0x1d,0x5a]); + this._enqueue([barcodeType]); + this._enqueue([0x1b, 0x5a]); + this._enqueue([param1]); + this._enqueue([param2]); + this._enqueue([param3]); + this._enqueue([length%256]); + this._enqueue([length/256]); + this.print(content); + return this; +}; + +printerJobs.prototype.queryStatus = function () { + this._enqueue([0x10, 0x04,0x02]); + return this; +}; + +/** + * 娓呯┖浠诲姟 + */ +printerJobs.prototype.clear = function () { + this._queue = Array.from(commands.HARDWARE.HW_INIT); + return this; +}; + +/** + * 杩斿洖ArrayBuffer + */ +printerJobs.prototype.buffer = function () { + return new Uint8Array(this._queue).buffer; +}; + + +/** + * CPCL鎵撳嵃 + */ + +/** + * 璁剧疆鏍囩瀹介珮 蹇呴』鍦ㄥ紑澶磋缃� + * width:80mm 涓�576锛�58mm涓�384 + */ +printerJobs.prototype.label_set_page = function (width,height) { + var content= "! 0 200 200 " + height + " 1\r\nPAGE-WIDTH " + width + "\r\n"; + this.text(content); + return this; +}; + +/** + * 鎵撳嵃琛ㄦ牸 + * lineWidth:杈规绾挎潯瀹藉害0-1 + * top_left_x:宸︿笂瑙扻鍧愭爣 + * top_left_y:宸︿笂瑙扽鍧愭爣 + * bottom_right_x:鍙充笅瑙扻鍧愭爣 + * bottom_right_y:鍙充笅瑙扻鍧愭爣 + */ +printerJobs.prototype.drawbox = function (lineWidth, top_left_x, top_left_y, bottom_right_x, bottom_right_y) { + var content = "BOX " + top_left_x + " " + top_left_y + " " + bottom_right_x + " " + bottom_right_y + " " + lineWidth + "\r\n"; + this.text(content); + return this; +}; + +/** + * 鏍囩鎵撳嵃 蹇呴』鍦ㄧ粨灏捐皟鐢� + * @param horizontal 0:姝e父鎵撳嵃锛屼笉鏃嬭浆锛�1锛氭暣涓〉闈㈤『鏃堕拡鏃嬭浆180掳鍚庯紝鎵撳嵃 + * @param skip 0锛氭墦鍗扮粨鏉熷悗涓嶅畾浣嶏紝鐩存帴鍋滄锛�1锛氭墦鍗扮粨鏉熷悗瀹氫綅鍒版爣绛惧垎鍓茬嚎锛屽鏋滄棤缂濋殭锛屾渶澶ц繘绾�260mm鍚庡仠姝� + */ +printerJobs.prototype.label_print = function (horizontal, skip) { + var horizontal1; + var str; + switch (horizontal) { + case 0: + horizontal1 = 0; + break; + case 1: + horizontal1 = 1; + break; + case 2: + horizontal1 = 2; + break; + default: + horizontal1 = 0; + } + + if (skip == 1) { + str = "PR " + horizontal1 + "\r\nFORM\r\nPRINT\r\n"; + } else { + str = "PR " + horizontal1 + "\r\nPRINT\r\n"; + } + this.text(str); + return this; +}; + +/** + * 鎵撳嵃涓�缁寸爜 + * @param start_x 鎵撳嵃鐨勮捣濮嬫í鍧愭爣 + * @param start_y 鎵撳嵃鐨勮捣濮嬬旱鍧愭爣 + * @param text 瀛楃涓� + * @param type 鏉$爜绫诲瀷 + * 0锛欳ODE39锛�1锛欳ODE128锛�2锛欳ODE93锛�3锛欳ODEBAR锛�4锛欵AN8锛�5锛欵AN13锛�6锛歎PCA + * ;7:UPC-E;8:ITF + * @param rotate 鏃嬭浆瑙掑害 0锛氫笉鏃嬭浆锛�1 鏃嬭浆 + * @param linewidth 鏉$爜瀹藉害 + * @param height 鏉$爜楂樺害 + */ +printerJobs.prototype.drawBarCode = function (start_x, start_y, text, barcodeType, rotate, linewidth, height) { + console.log('start_x',start_x) + console.log('start_y',start_y) + console.log('text',text) + console.log('barcodeType',barcodeType) + console.log('rotate',rotate) + console.log('linewidth',linewidth) + console.log('height',height) + var str1 = "B"; + if (rotate) { + str1 = "VB"; + } + + var st1 = "128"; + if (barcodeType == 0) { + st1 = "39"; + } else if (barcodeType == 1) { + st1 = "128"; + } else if (barcodeType == 2) { + st1 = "93"; + } else if (barcodeType == 3) { + st1 = "CODABAR"; + } else if (barcodeType == 4) { + st1 = "EAN8"; + } else if (barcodeType == 5) { + st1 = "EAN13"; + } else if (barcodeType == 6) { + st1 = "UPCA"; + } else if (barcodeType == 7) { + st1 = "UPCE"; + } + + var content = str1 + " " + st1 + " " + linewidth + " 0 " + height + " " + start_x + " " + start_y + " " + text + "\r\n"; + console.log('content') + console.log(content) + this.text(content); + return this; +}; + +/** + * 鎵撳嵃浜岀淮鐮� + * @param start_x 浜岀淮鐮佽捣濮嬩綅缃� + * @param start_y 浜岀淮鐮佺粨鏉熶綅缃� + * @param text 浜岀淮鐮佸唴瀹� + * @param rotate 鏃嬭浆瑙掑害 + * @param ver : QrCode瀹藉害(2-15) + * @param lel : QrCode绾犻敊绛夌骇(0-20) + */ +printerJobs.prototype.drawQrCode = function ( start_x, start_y, text, rotate, ver, lel) { + var str1 = "B"; + if (rotate != 0) { + str1 = "VB"; + } + var content = str1 + " QR " + start_x + " " + start_y + " " + " M " + " " + 2 + " " + "U" + " " + ver + " " + "\r\n" + "MA," + text + "\r\n" + "ENDQR" + "\r\n"; + + this.text(content); + return this; +}; + +/** + * 鎵撳嵃鏂囧瓧 + * + * @param text_x 璧峰妯潗鏍� + * @param text_y 璧峰绾靛潗鏍� + * @param text 瀛楃涓� + * @param fontSize 瀛椾綋澶у皬 20:20鐐归樀 1锛�16鐐归樀锛�2锛�24鐐归樀锛�3锛�32鐐归樀锛�4锛�24鐐归樀鏀惧ぇ涓�鍊嶏紱5锛�32鐐归樀鏀惧ぇ涓�鍊� + * 6锛�24鐐归樀鏀惧ぇ涓ゅ�嶏紱7锛�32鐐归樀鏀惧ぇ涓ゅ�嶏紱鍏朵粬锛�24鐐归樀 + * @param rotate 鏃嬭浆瑙掑害 0锛氫笉鏃嬭浆锛�1锛�90搴︼紱2锛�180掳锛�3:270掳 + * @param bold 鏄惁绮椾綋 0锛氬彇娑堬紱1锛氳缃� + * @param underline 鏄湁鏈変笅鍒掔嚎 false:娌℃湁锛泃rue锛氭湁 + * @param reverse 鏄惁鍙嶇櫧 false锛氫笉鍙嶇櫧锛泃rue锛氬弽鐧� + */ +printerJobs.prototype.drawText = function ( text_x, text_y, text, fontSize, rotate, bold, reverse, underline) { + var st1 = ""; + if (rotate == 0) { + st1 = "T"; + } else if (rotate == 1) { + st1 = "T90"; + } else if (rotate == 2) { + st1 = "T180"; + } else if (rotate == 3) { + st1 = "T270"; + } + var rev = 0; + var und = 0; + if (reverse) { + rev = 1; + } + if (underline) { + und = 1; + } + var st2 = 24; + var st3 = 0; + if (fontSize == 20) { + st2 = 20; + st3 = 0; + } else if (fontSize == 1) { + st2 = 55; + st3 = 0; + } else if (fontSize == 2) { + st2 = 24; + st3 = 0; + } else if (fontSize == 3) { + st2 = 55; + st3 = 11; + } else if (fontSize == 4) { + st2 = 24; + st3 = 11; + } else if (fontSize == 5) { + st2 = 55; + st3 = 33; + } else if (fontSize == 6) { + st2 = 24; + st3 = 22; + } else if (fontSize == 7) { + st2 = 55; + st3 = 77; + } + var content = "SETBOLD " + bold + "\r\n" + "IT " + rev + "\r\n" + "UT " + und + "\r\n" + st1 + " " + st2 + " " + st3 + " " + text_x + " " + text_y + " " + text + "\r\n"; + + this.text(content); + return this; +}; + +/** + * 鎵撳嵃鍙嶆樉 + */ +printerJobs.prototype.inverse = function ( var1, var2, var3, var4, width) { + var str1 = "IL"; + var x0 = var1; + var y0 = var2; + var x1 = var3; + var y1 = var4; + var w = width; + if (var1 == var3) { + x0 = var1; y0 = var2; + x1 = var1 + width; + y1 = var2; + w = var4 - var2; + } + var content = str1 + " " + x0 + " " + y0 + " " + x1 + " " + y1 + " " + w + "\r\n"; + + this.text(content); + return this; +}; + +/** + * 绾挎潯 + * + * @param lineWidth 绾挎潯瀹藉害 + * @param start_x 绾挎潯璧峰鐐箈鍧愭爣 + * @param start_y 绾挎潯璧峰鐐箉鍧愭爣 + * @param end_x 绾挎潯缁撴潫鐐箈鍧愭爣 + * @param end_y 绾挎潯缁撴潫鐐箉鍧愭爣 + * @param fullline true:瀹炵嚎 false:?铏氱嚎 + */ +printerJobs.prototype.drawLine = function ( width, x0, y0, x1, y1) { + var content = "LINE " + x0 + " " + y0 + " " + x1 + " " + y1 + " " + width + "\r\n"; + + + this.text(content); + return this; +}; + + + + + +/** + * 娓呯┖浠诲姟 + */ +printerJobs.prototype.clear = function() { + this._queue = Array.from(commands.HARDWARE.HW_INIT); + return this; +}; + +/** + * 杩斿洖ArrayBuffer + */ +printerJobs.prototype.buffer = function() { + return new Uint8Array(this._queue).buffer; +}; + +export default printerJobs + +//module.exports = printerJobs; diff --git a/PipeLineLems.PDA/static/js/utils/index.js b/PipeLineLems.PDA/static/js/utils/index.js new file mode 100644 index 0000000..96eebdd --- /dev/null +++ b/PipeLineLems.PDA/static/js/utils/index.js @@ -0,0 +1,197 @@ +import colorModule from './modules/color.js' +import regModule from './modules/regexValidate.js' + +export let color = colorModule; +export let regexValidate = regModule; +/* 鐢熸垚闅忔満uuid +* n锛歶uid鐨勯暱搴� +* type锛氱被鍨嬶紙0-澶у皬鍐欏瓧姣�+鏁板瓧锛�1-灏忓啓瀛楁瘝+鏁板瓧锛�2-绾暟瀛楋紝3-澶у皬鍐欏瓧姣嶏紝4-灏忓啓瀛楁瘝锛� +*/ +export function uuid(n=6,type=0){ + let res='', uType=0; + const __uuidLetter = function(){ + const __tempArr = ['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'] + return __tempArr[Math.floor(Math.random()*26)]; + } + for (let i=0;i<n;i++) { + switch(type) { + case 1: + uType = Math.floor(Math.random()*2); + if (uType===0) { + res += Math.floor(Math.random()*10).toString() + } else { + res += __uuidLetter() + } + break; + case 2: + res += Math.floor(Math.random()*10).toString() + break; + case 3: + uType = Math.floor(Math.random()*2); + if (uType===0) { + res += __uuidLetter() + } else { + res += __uuidLetter().toUpperCase() + } + break; + case 4: + res += __uuidLetter() + break; + default: + uType = Math.floor(Math.random()*3); + if (uType===0) { + res += Math.floor(Math.random()*10).toString() + } else if (uType===1) { + res += __uuidLetter() + } else { + res += __uuidLetter().toUpperCase() + } + break; + } + } + return res; +} +export function $alert(msg,title="绯荤粺鎻愮ず",callback){ + uni.showModal({ + title:title, + content:msg, + showCancel:false, + confirmText:'纭畾', + success:function(res){ + if (res.confirm) { + callback && callback() + } + } + }) +} +export function $successInfo(info){ + uni.showToast({ + title:info, + mask:true, + icon:'success' + }) +}; + +/* + 鑾峰彇瀛楀吀鍒楄〃 + code:瀛楀吀闆嗗悎鐮� + 杩斿洖:瀛楀吀鍒楄〃 + */ +export function getDicList(store,code) { + let res = []; + let dicDataSource = store.getters['system/getEnum']; + if (dicDataSource) { + res=dicDataSource.filter(item=>item.code==code) + } + return res.length>0?res[0]:[]; +} + +/* + 瑙f瀽瀛楀吀鍊� + code:瀛楀吀闆嗗悎鐮� + value:瀛楀吀鍊� + 杩斿洖:瀛楀吀鍊煎搴斿悕绉� + */ +export function parseDic(store,code,value){ + let res = ''; + let dicDataSource = store.getters['system/getEnum']; + if (dicDataSource) { + let _arr = dicDataSource.filter(item=>item.code==code) + if (_arr.length>0) { + res=_arr[0]?.sysDictDatas.filter(item=>item.code==value) + res=res.length>0?res[0].value:'' + if (!res) res = '' + } else { + res = '' + } + } else { + res = 'Failed' + } + return res; +}; + +/* + 涓嬭浇鏇存柊 + */ +export function downloadApk($config){ + try{ + const _downFun = function(){ + try{ + plus.runtime.openURL($config.downUrl, function(res) {console.log(res);}); + }catch(ex){ + console.log('_downFun Error!') + console.log(ex) + } + setTimeout(()=>{ + uni.hideLoading(); + },10000) + } + + uni.showLoading({ + title: '寮�鍚笅杞�...', + mask:true + }); + if (plus.networkinfo.getCurrentType() != 3){ + uni.hideLoading(); + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:'褰撳墠闈濿IFI鐜锛岀‘璁ょ户缁笅杞藉悧锛�', + success:(res)=>{ + if (res.confirm) { + uni.showLoading({ + title: '寮�鍚笅杞�...', + mask:true + }); + _downFun() + } + } + }) + } else { + _downFun() + } + } catch(e){ + uni.hideLoading(); + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:'涓嬭浇澶辫触', + showCancel:false + }) + console.log('DownloadApk Error!') + console.log(e) + } +}; + +export function getObjectType(obj){ + if (typeof obj !== 'object') { + return null; + } else { + let objTypeStr = Object.prototype.toString.call(obj).toLowerCase().trim(); + objTypeStr = objTypeStr.substr(1,objTypeStr.length-2) + let tempA = objTypeStr.split(" "); + return tempA[1]; + } +} + +export function getUserDefaultArea($store,arr,valueField='code'){ + let res = '' + const _default = $store.getters['user/getUserInfo']['workShopType'] + for (let i=0;i<arr.length;i++){ + if (String(arr[i][valueField])===Sring(_default)) { + res = _default + break; + } + } + return res +} + +export function getUserDefaultLine($store,arr,valueField='productionlineId'){ + let res = '' + const _default = $store.getters['user/getUserInfo']['productionlineId'] + for (let i=0;i<arr.length;i++){ + if (arr[i][valueField]===_default) { + res = _default + break; + } + } + return res +} \ No newline at end of file diff --git a/PipeLineLems.PDA/static/js/utils/modules/color.js b/PipeLineLems.PDA/static/js/utils/modules/color.js new file mode 100644 index 0000000..0fd4484 --- /dev/null +++ b/PipeLineLems.PDA/static/js/utils/modules/color.js @@ -0,0 +1,5 @@ +export default { + getRandomHexColor(){ + return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).substr(-6); + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/static/js/utils/modules/regexValidate.js b/PipeLineLems.PDA/static/js/utils/modules/regexValidate.js new file mode 100644 index 0000000..437f754 --- /dev/null +++ b/PipeLineLems.PDA/static/js/utils/modules/regexValidate.js @@ -0,0 +1,64 @@ +export default { + /* 澶ч檰鎵嬫満鍙风爜 */ + mobile(val){ + return /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(val) + }, + /* 澶ч檰鍥哄畾鐢佃瘽 */ + telephone(val){ + return /^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(val) + }, + /* 鐢靛瓙閭 */ + email(val){ + return /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(val) + }, + /* 姝f暣鏁� */ + positiveInteger(val){ + let tp = typeof val; + if (tp==='number') { + if (parseInt(val)!==val) { + return false + } else if (val<=0) { + return false + } else { + return true + } + } else if (tp==='string') { + if (!val) { + return false; + } else { + return /^0*[1-9]\d*$/.test(val) + } + } else { + return false; + } + }, + /* 鑷劧鏁�,鍖呮嫭0鍜屾鏁存暟 */ + naturlNumber(val){ + let tp = typeof val; + if (tp==='number') { + if (parseInt(val)!==val) { + return false + } else if (val<0) { + return false + } else { + return true + } + } else if (tp==='string') { + if (!val) { + return false; + } else { + return /^([1-9]\d*|[0]{1,1})$/.test(val) + } + } else { + return false; + } + }, + /* 鍖归厤杈撳叆锛屼互瀛楁瘝寮�澶达紝鍙兘鏍戝瓧姣嶅拰鏁板瓧 */ + inputA(val){ + return /^[a-zA-Z]{1}[a-zA-Z0-9]*$/.test(val) + }, + /* 鍖归厤杈撳叆锛屼互瀛楁瘝寮�澶达紝鍙兘鏍戝瓧姣嶃�佹暟瀛椼�佽繛瀛楃銆佷笅鍒掔嚎*/ + inputB(val){ + return /^[a-zA-Z]{1}[a-zA-Z0-9\-_]*$/.test(val) + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni.scss b/PipeLineLems.PDA/uni.scss new file mode 100644 index 0000000..790e5d3 --- /dev/null +++ b/PipeLineLems.PDA/uni.scss @@ -0,0 +1,102 @@ +/** + * 杩欓噷鏄痷ni-app鍐呯疆鐨勫父鐢ㄦ牱寮忓彉閲� + * + * uni-app 瀹樻柟鎵╁睍鎻掍欢鍙婃彃浠跺競鍦猴紙https://ext.dcloud.net.cn锛変笂寰堝涓夋柟鎻掍欢鍧囦娇鐢ㄤ簡杩欎簺鏍峰紡鍙橀噺 + * 濡傛灉浣犳槸鎻掍欢寮�鍙戣�咃紝寤鸿浣犱娇鐢╯css棰勫鐞嗭紝骞跺湪鎻掍欢浠g爜涓洿鎺ヤ娇鐢ㄨ繖浜涘彉閲忥紙鏃犻渶 import 杩欎釜鏂囦欢锛夛紝鏂逛究鐢ㄦ埛閫氳繃鎼Н鏈ㄧ殑鏂瑰紡寮�鍙戞暣浣撻鏍间竴鑷寸殑App + * + */ + +/** + * 濡傛灉浣犳槸App寮�鍙戣�咃紙鎻掍欢浣跨敤鑰咃級锛屼綘鍙互閫氳繃淇敼杩欎簺鍙橀噺鏉ュ畾鍒惰嚜宸辩殑鎻掍欢涓婚锛屽疄鐜拌嚜瀹氫箟涓婚鍔熻兘 + * + * 濡傛灉浣犵殑椤圭洰鍚屾牱浣跨敤浜唖css棰勫鐞嗭紝浣犱篃鍙互鐩存帴鍦ㄤ綘鐨� scss 浠g爜涓娇鐢ㄥ涓嬪彉閲忥紝鍚屾椂鏃犻渶 import 杩欎釜鏂囦欢 + */ +@import '@/uni_modules/uview-ui/theme.scss'; +@import '@/uni_modules/uni-scss/variables.scss'; + +/* 棰滆壊鍙橀噺 */ + +/* 琛屼负鐩稿叧棰滆壊 */ +$uni-color-primary: #F18201; //涓婚鑹诧紝宸蹭慨鏀� +$uni-color-success: #4cd964; +$uni-color-warning: #f0ad4e; +$uni-color-error: #dd524d; + +/* 鏂囧瓧鍩烘湰棰滆壊 */ +$uni-text-color:#333;//鍩烘湰鑹� +$uni-text-color-inverse:#fff;//鍙嶈壊 +$uni-text-color-grey:#999;//杈呭姪鐏拌壊锛屽鍔犺浇鏇村鐨勬彁绀轰俊鎭� +$uni-text-color-placeholder: #808080; +$uni-text-color-disable:#c0c0c0; + +/* 鑳屾櫙棰滆壊 */ +$uni-bg-color:#ffffff; +$uni-bg-color-grey:#f8f8f8; +$uni-bg-color-hover:#f1f1f1;//鐐瑰嚮鐘舵�侀鑹� +$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//閬僵棰滆壊 + +/* 杈规棰滆壊 */ +$uni-border-color:#c8c7cc; + +/* 灏哄鍙橀噺 */ + +/* 鏂囧瓧灏哄 */ +$uni-font-size-sm:12px; +$uni-font-size-base:14px; +$uni-font-size-lg:16; + +/* 鍥剧墖灏哄 */ +$uni-img-size-sm:20px; +$uni-img-size-base:26px; +$uni-img-size-lg:40px; + +/* Border Radius */ +$uni-border-radius-sm: 2px; +$uni-border-radius-base: 3px; +$uni-border-radius-lg: 6px; +$uni-border-radius-circle: 50%; + +/* 姘村钩闂磋窛 */ +$uni-spacing-row-sm: 5px; +$uni-spacing-row-base: 10px; +$uni-spacing-row-lg: 15px; + +/* 鍨傜洿闂磋窛 */ +$uni-spacing-col-sm: 4px; +$uni-spacing-col-base: 8px; +$uni-spacing-col-lg: 12px; + +/* 閫忔槑搴� */ +$uni-opacity-disabled: 0.3; // 缁勪欢绂佺敤鎬佺殑閫忔槑搴� + +/* 鏂囩珷鍦烘櫙鐩稿叧 */ +$uni-color-title: #2C405A; // 鏂囩珷鏍囬棰滆壊 +$uni-font-size-title:20px; +$uni-color-subtitle: #555555; // 浜岀骇鏍囬棰滆壊 +$uni-font-size-subtitle:26px; +$uni-color-paragraph: #3F536E; // 鏂囩珷娈佃惤棰滆壊 +$uni-font-size-paragraph:15px; + +/* uni-ui 鏍峰紡鍙橀噺瑕嗙洊 */ +$uni-primary: #F18201; +$uni-primary-disable:mix(#fff,$uni-primary,50%); +$uni-primary-light: mix(#fff,$uni-primary,80%); + +/* uview 鏍峰紡鍙橀噺瑕嗙洊 */ +$u-primary: #F18201; +$u-primary-dark: #D07204; +$u-primary-disabled: #f8c07f; +$u-primary-light: #fce6cc; + +$u-warning: #ff00ff; +$u-warning-dark: #D303D3; +$u-warning-disabled: #F55EF5; +$u-warning-light: #F7ACF7; + +/* 鑷畾涔夊彉閲� */ +$color-paimary-darken:#F18201; +$color-paimary-lighten: #fce6cc; +$color-paimary-middle: #FFD700; +$color-blue: #007aff; +$color-common: #F18202; +$fontsize-common:30rpx; diff --git a/PipeLineLems.PDA/uni_modules/uni-badge/changelog.md b/PipeLineLems.PDA/uni_modules/uni-badge/changelog.md new file mode 100644 index 0000000..e352c60 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-badge/changelog.md @@ -0,0 +1,33 @@ +## 1.2.2锛�2023-01-28锛� +- 淇 杩愯/鎵撳寘 鎺у埗鍙拌鍛婇棶棰� +## 1.2.1锛�2022-09-05锛� +- 淇 褰� text 瓒呰繃 max-num 鏃讹紝badge 鐨勫搴﹁绠楁槸鏍规嵁 text 鐨勯暱搴﹁绠楋紝鏇存敼涓� css 璁$畻瀹為檯灞曠ず瀹藉害锛岃瑙�:[https://ask.dcloud.net.cn/question/150473](https://ask.dcloud.net.cn/question/150473) +## 1.2.0锛�2021-11-19锛� +- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-badge](https://uniapp.dcloud.io/component/uniui/uni-badge) +## 1.1.7锛�2021-11-08锛� +- 浼樺寲 鍗囩骇ui +- 淇敼 size 灞炴�ч粯璁ゅ�艰皟鏁翠负 small +- 淇敼 type 灞炴�э紝榛樿鍊艰皟鏁翠负 error锛宨nfo 鏇挎崲 default +## 1.1.6锛�2021-09-22锛� +- 淇 鍦ㄥ瓧鑺傚皬绋嬪簭涓婃牱寮忎笉鐢熸晥鐨� bug +## 1.1.5锛�2021-07-30锛� +- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834) +## 1.1.4锛�2021-07-29锛� +- 淇 鍘绘帀 nvue 涓嶆敮鎸乧ss 鐨� align-self 灞炴�э紝nvue 涓嬩笉鏆傛敮鎸� absolute 灞炴�� +## 1.1.3锛�2021-06-24锛� +- 浼樺寲 绀轰緥椤圭洰 +## 1.1.1锛�2021-05-12锛� +- 鏂板 缁勪欢绀轰緥鍦板潃 +## 1.1.0锛�2021-05-12锛� +- 鏂板 uni-badge 鐨� absolute 灞炴�э紝鏀寔瀹氫綅 +- 鏂板 uni-badge 鐨� offset 灞炴�э紝鏀寔瀹氫綅鍋忕Щ +- 鏂板 uni-badge 鐨� is-dot 灞炴�э紝鏀寔浠呮樉绀烘湁涓�涓皬鐐� +- 鏂板 uni-badge 鐨� max-num 灞炴�э紝鏀寔鑷畾涔夊皝椤剁殑鏁板瓧鍊硷紝瓒呰繃 99 鏄剧ず99+ +- 浼樺寲 uni-badge 灞炴�� custom-style锛� 鏀寔浠ュ璞″舰寮忚嚜瀹氫箟鏍峰紡 +## 1.0.7锛�2021-05-07锛� +- 淇 uni-badge 鍦� App 绔紝鏁板瓧灏忎簬10鏃朵笉鏄渾褰㈢殑bug +- 淇 uni-badge 鍦ㄧ埗鍏冪礌涓嶆槸 flex 甯冨眬鏃讹紝瀹藉害缂╁皬鐨刡ug +- 鏂板 uni-badge 灞炴�� custom-style锛� 鏀寔鑷畾涔夋牱寮� +## 1.0.6锛�2021-02-04锛� +- 璋冩暣涓簎ni_modules鐩綍瑙勮寖 diff --git a/PipeLineLems.PDA/uni_modules/uni-badge/components/uni-badge/uni-badge.vue b/PipeLineLems.PDA/uni_modules/uni-badge/components/uni-badge/uni-badge.vue new file mode 100644 index 0000000..956354b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-badge/components/uni-badge/uni-badge.vue @@ -0,0 +1,268 @@ +<template> + <view class="uni-badge--x"> + <slot /> + <text v-if="text" :class="classNames" :style="[positionStyle, customStyle, dotStyle]" + class="uni-badge" @click="onClick()">{{displayValue}}</text> + </view> +</template> + +<script> + /** + * Badge 鏁板瓧瑙掓爣 + * @description 鏁板瓧瑙掓爣涓�鑸拰鍏跺畠鎺т欢锛堝垪琛ㄣ��9瀹牸绛夛級閰嶅悎浣跨敤锛岀敤浜庤繘琛屾暟閲忔彁绀猴紝榛樿涓哄疄蹇冪伆鑹茶儗鏅� + * @tutorial https://ext.dcloud.net.cn/plugin?id=21 + * @property {String} text 瑙掓爣鍐呭 + * @property {String} size = [normal|small] 瑙掓爣鍐呭 + * @property {String} type = [info|primary|success|warning|error] 棰滆壊绫诲瀷 + * @value info 鐏拌壊 + * @value primary 钃濊壊 + * @value success 缁胯壊 + * @value warning 榛勮壊 + * @value error 绾㈣壊 + * @property {String} inverted = [true|false] 鏄惁鏃犻渶鑳屾櫙棰滆壊 + * @property {Number} maxNum 灞曠ず灏侀《鐨勬暟瀛楀�硷紝瓒呰繃 99 鏄剧ず 99+ + * @property {String} absolute = [rightTop|rightBottom|leftBottom|leftTop] 寮�鍚粷瀵瑰畾浣�, 瑙掓爣灏嗗畾浣嶅埌鍏跺寘瑁圭殑鏍囩鐨勫洓瑙掍笂 + * @value rightTop 鍙充笂 + * @value rightBottom 鍙充笅 + * @value leftTop 宸︿笂 + * @value leftBottom 宸︿笅 + * @property {Array[number]} offset 璺濆畾浣嶈涓績鐐圭殑鍋忕Щ閲忥紝鍙湁瀛樺湪 absolute 灞炴�ф椂鏈夋晥锛屼緥濡傦細[-10, -10] 琛ㄧず鍚戝鍋忕Щ 10px锛孾10, 10] 琛ㄧず鍚� absolute 鎸囧畾鐨勫唴鍋忕Щ 10px + * @property {String} isDot = [true|false] 鏄惁鏄剧ず涓轰竴涓皬鐐� + * @event {Function} click 鐐瑰嚮 Badge 瑙﹀彂浜嬩欢 + * @example <uni-badge text="1"></uni-badge> + */ + + export default { + name: 'UniBadge', + emits: ['click'], + props: { + type: { + type: String, + default: 'error' + }, + inverted: { + type: Boolean, + default: false + }, + isDot: { + type: Boolean, + default: false + }, + maxNum: { + type: Number, + default: 99 + }, + absolute: { + type: String, + default: '' + }, + offset: { + type: Array, + default () { + return [0, 0] + } + }, + text: { + type: [String, Number], + default: '' + }, + size: { + type: String, + default: 'small' + }, + customStyle: { + type: Object, + default () { + return {} + } + } + }, + data() { + return {}; + }, + computed: { + width() { + return String(this.text).length * 8 + 12 + }, + classNames() { + const { + inverted, + type, + size, + absolute + } = this + return [ + inverted ? 'uni-badge--' + type + '-inverted' : '', + 'uni-badge--' + type, + 'uni-badge--' + size, + absolute ? 'uni-badge--absolute' : '' + ].join(' ') + }, + positionStyle() { + if (!this.absolute) return {} + let w = this.width / 2, + h = 10 + if (this.isDot) { + w = 5 + h = 5 + } + const x = `${- w + this.offset[0]}px` + const y = `${- h + this.offset[1]}px` + + const whiteList = { + rightTop: { + right: x, + top: y + }, + rightBottom: { + right: x, + bottom: y + }, + leftBottom: { + left: x, + bottom: y + }, + leftTop: { + left: x, + top: y + } + } + const match = whiteList[this.absolute] + return match ? match : whiteList['rightTop'] + }, + dotStyle() { + if (!this.isDot) return {} + return { + width: '10px', + minWidth: '0', + height: '10px', + padding: '0', + borderRadius: '10px' + } + }, + displayValue() { + const { + isDot, + text, + maxNum + } = this + return isDot ? '' : (Number(text) > maxNum ? `${maxNum}+` : text) + } + }, + methods: { + onClick() { + this.$emit('click'); + } + } + }; +</script> + +<style lang="scss" > + $uni-primary: #2979ff !default; + $uni-success: #4cd964 !default; + $uni-warning: #f0ad4e !default; + $uni-error: #dd524d !default; + $uni-info: #909399 !default; + + + $bage-size: 12px; + $bage-small: scale(0.8); + + .uni-badge--x { + /* #ifdef APP-NVUE */ + // align-self: flex-start; + /* #endif */ + /* #ifndef APP-NVUE */ + display: inline-block; + /* #endif */ + position: relative; + } + + .uni-badge--absolute { + position: absolute; + } + + .uni-badge--small { + transform: $bage-small; + transform-origin: center center; + } + + .uni-badge { + /* #ifndef APP-NVUE */ + display: flex; + overflow: hidden; + box-sizing: border-box; + font-feature-settings: "tnum"; + min-width: 20px; + /* #endif */ + justify-content: center; + flex-direction: row; + height: 20px; + padding: 0 4px; + line-height: 18px; + color: #fff; + border-radius: 100px; + background-color: $uni-info; + background-color: transparent; + border: 1px solid #fff; + text-align: center; + font-family: 'Helvetica Neue', Helvetica, sans-serif; + font-size: $bage-size; + /* #ifdef H5 */ + z-index: 999; + cursor: pointer; + /* #endif */ + + &--info { + color: #fff; + background-color: $uni-info; + } + + &--primary { + background-color: $uni-primary; + } + + &--success { + background-color: $uni-success; + } + + &--warning { + background-color: $uni-warning; + } + + &--error { + background-color: $uni-error; + } + + &--inverted { + padding: 0 5px 0 0; + color: $uni-info; + } + + &--info-inverted { + color: $uni-info; + background-color: transparent; + } + + &--primary-inverted { + color: $uni-primary; + background-color: transparent; + } + + &--success-inverted { + color: $uni-success; + background-color: transparent; + } + + &--warning-inverted { + color: $uni-warning; + background-color: transparent; + } + + &--error-inverted { + color: $uni-error; + background-color: transparent; + } + + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uni-badge/package.json b/PipeLineLems.PDA/uni_modules/uni-badge/package.json new file mode 100644 index 0000000..b0bac93 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-badge/package.json @@ -0,0 +1,85 @@ +{ + "id": "uni-badge", + "displayName": "uni-badge 鏁板瓧瑙掓爣", + "version": "1.2.2", + "description": "鏁板瓧瑙掓爣锛堝窘绔狅級缁勪欢锛屽湪鍏冪礌鍛ㄥ洿灞曠ず娑堟伅鎻愰啋锛屼竴鑸敤浜庡垪琛ㄣ�佷節瀹牸銆佹寜閽瓑鍦版柟銆�", + "keywords": [ + "", + "badge", + "uni-ui", + "uniui", + "鏁板瓧瑙掓爣", + "寰界珷" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "鏃�", + "data": "鏃�", + "permissions": "鏃�" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "寰俊娴忚鍣�(Android)": "y", + "QQ娴忚鍣�(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "灏忕▼搴�": { + "寰俊": "y", + "闃块噷": "y", + "鐧惧害": "y", + "瀛楄妭璺冲姩": "y", + "QQ": "y" + }, + "蹇簲鐢�": { + "鍗庝负": "y", + "鑱旂洘": "y" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uni-badge/readme.md b/PipeLineLems.PDA/uni_modules/uni-badge/readme.md new file mode 100644 index 0000000..bdf175d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-badge/readme.md @@ -0,0 +1,10 @@ +## Badge 鏁板瓧瑙掓爣 +> **缁勪欢鍚嶏細uni-badge** +> 浠g爜鍧楋細 `uBadge` + +鏁板瓧瑙掓爣涓�鑸拰鍏跺畠鎺т欢锛堝垪琛ㄣ��9瀹牸绛夛級閰嶅悎浣跨敤锛岀敤浜庤繘琛屾暟閲忔彁绀猴紝榛樿涓哄疄蹇冪伆鑹茶儗鏅紝 + +### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-badge) +#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839 + + diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/changelog.md b/PipeLineLems.PDA/uni_modules/uni-icons/changelog.md new file mode 100644 index 0000000..6449885 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/changelog.md @@ -0,0 +1,22 @@ +## 1.3.5锛�2022-01-24锛� +- 浼樺寲 size 灞炴�у彲浠ヤ紶鍏ヤ笉甯﹀崟浣嶇殑瀛楃涓叉暟鍊� +## 1.3.4锛�2022-01-24锛� +- 浼樺寲 size 鏀寔鍏朵粬鍗曚綅 +## 1.3.3锛�2022-01-17锛� +- 淇 nvue 鏈変簺鍥炬爣涓嶆樉绀虹殑bug锛屽吋瀹硅�佺増鏈浘鏍� +## 1.3.2锛�2021-12-01锛� +- 浼樺寲 绀轰緥鍙鍒跺浘鏍囧悕绉� +## 1.3.1锛�2021-11-23锛� +- 浼樺寲 鍏煎鏃х粍浠� type 鍊� +## 1.3.0锛�2021-11-19锛� +- 鏂板 鏇村鍥炬爣 +- 浼樺寲 鑷畾涔夊浘鏍囦娇鐢ㄦ柟寮� +- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons) +## 1.1.7锛�2021-11-08锛� +## 1.2.0锛�2021-07-30锛� +- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834) +## 1.1.5锛�2021-05-12锛� +- 鏂板 缁勪欢绀轰緥鍦板潃 +## 1.1.4锛�2021-02-05锛� +- 璋冩暣涓簎ni_modules鐩綍瑙勮寖 diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/icons.js b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/icons.js new file mode 100644 index 0000000..7889936 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/icons.js @@ -0,0 +1,1169 @@ +export default { + "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": 59000 + }, + { + "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 + } + ] +} diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uni-icons.vue new file mode 100644 index 0000000..86e7444 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uni-icons.vue @@ -0,0 +1,96 @@ +<template> + <!-- #ifdef APP-NVUE --> + <text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" @click="_onClick">{{unicode}}</text> + <!-- #endif --> + <!-- #ifndef APP-NVUE --> + <text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick"></text> + <!-- #endif --> +</template> + +<script> + import icons from './icons.js'; + const getVal = (val) => { + const reg = /^[0-9]*$/g + return (typeof val === 'number' ||銆�reg.test(val) )? val + 'px' : val; + } + // #ifdef APP-NVUE + var domModule = weex.requireModule('dom'); + import iconUrl from './uniicons.ttf' + domModule.addRule('fontFace', { + 'fontFamily': "uniicons", + 'src': "url('"+iconUrl+"')" + }); + // #endif + + /** + * Icons 鍥炬爣 + * @description 鐢ㄤ簬灞曠ず icons 鍥炬爣 + * @tutorial https://ext.dcloud.net.cn/plugin?id=28 + * @property {Number} size 鍥炬爣澶у皬 + * @property {String} type 鍥炬爣鍥炬锛屽弬鑰冪ず渚� + * @property {String} color 鍥炬爣棰滆壊 + * @property {String} customPrefix 鑷畾涔夊浘鏍� + * @event {Function} click 鐐瑰嚮 Icon 瑙﹀彂浜嬩欢 + */ + export default { + 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() { + return { + icons: icons.glyphs + } + }, + computed:{ + unicode(){ + let code = this.icons.find(v=>v.font_class === this.type) + if(code){ + return unescape(`%u${code.unicode}`) + } + return '' + }, + iconSize(){ + return getVal(this.size) + } + }, + methods: { + _onClick() { + this.$emit('click') + } + } + } +</script> + +<style lang="scss"> + /* #ifndef APP-NVUE */ + @import './uniicons.css'; + @font-face { + font-family: uniicons; + src: url('./uniicons.ttf') format('truetype'); + } + + /* #endif */ + .uni-icons { + font-family: uniicons; + text-decoration: none; + text-align: center; + } + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.css b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.css new file mode 100644 index 0000000..2f56eab --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.css @@ -0,0 +1,663 @@ +.uniui-color:before { + content: "\e6cf"; +} + +.uniui-wallet:before { + content: "\e6b1"; +} + +.uniui-settings-filled:before { + content: "\e6ce"; +} + +.uniui-auth-filled:before { + content: "\e6cc"; +} + +.uniui-shop-filled:before { + content: "\e6cd"; +} + +.uniui-staff-filled:before { + content: "\e6cb"; +} + +.uniui-vip-filled:before { + content: "\e6c6"; +} + +.uniui-plus-filled:before { + content: "\e6c7"; +} + +.uniui-folder-add-filled:before { + content: "\e6c8"; +} + +.uniui-color-filled:before { + content: "\e6c9"; +} + +.uniui-tune-filled:before { + content: "\e6ca"; +} + +.uniui-calendar-filled:before { + content: "\e6c0"; +} + +.uniui-notification-filled:before { + content: "\e6c1"; +} + +.uniui-wallet-filled:before { + content: "\e6c2"; +} + +.uniui-medal-filled:before { + content: "\e6c3"; +} + +.uniui-gift-filled:before { + content: "\e6c4"; +} + +.uniui-fire-filled:before { + content: "\e6c5"; +} + +.uniui-refreshempty:before { + content: "\e6bf"; +} + +.uniui-location-filled:before { + content: "\e6af"; +} + +.uniui-person-filled:before { + content: "\e69d"; +} + +.uniui-personadd-filled:before { + content: "\e698"; +} + +.uniui-back:before { + content: "\e6b9"; +} + +.uniui-forward:before { + content: "\e6ba"; +} + +.uniui-arrow-right:before { + content: "\e6bb"; +} + +.uniui-arrowthinright:before { + content: "\e6bb"; +} + +.uniui-arrow-left:before { + content: "\e6bc"; +} + +.uniui-arrowthinleft:before { + content: "\e6bc"; +} + +.uniui-arrow-up:before { + content: "\e6bd"; +} + +.uniui-arrowthinup:before { + content: "\e6bd"; +} + +.uniui-arrow-down:before { + content: "\e6be"; +} + +.uniui-arrowthindown:before { + content: "\e6be"; +} + +.uniui-bottom:before { + content: "\e6b8"; +} + +.uniui-arrowdown:before { + content: "\e6b8"; +} + +.uniui-right:before { + content: "\e6b5"; +} + +.uniui-arrowright:before { + content: "\e6b5"; +} + +.uniui-top:before { + content: "\e6b6"; +} + +.uniui-arrowup:before { + content: "\e6b6"; +} + +.uniui-left:before { + content: "\e6b7"; +} + +.uniui-arrowleft:before { + content: "\e6b7"; +} + +.uniui-eye:before { + content: "\e651"; +} + +.uniui-eye-filled:before { + content: "\e66a"; +} + +.uniui-eye-slash:before { + content: "\e6b3"; +} + +.uniui-eye-slash-filled:before { + content: "\e6b4"; +} + +.uniui-info-filled:before { + content: "\e649"; +} + +.uniui-reload:before { + content: "\e6b2"; +} + +.uniui-micoff-filled:before { + content: "\e6b0"; +} + +.uniui-map-pin-ellipse:before { + content: "\e6ac"; +} + +.uniui-map-pin:before { + content: "\e6ad"; +} + +.uniui-location:before { + content: "\e6ae"; +} + +.uniui-starhalf:before { + content: "\e683"; +} + +.uniui-star:before { + content: "\e688"; +} + +.uniui-star-filled:before { + content: "\e68f"; +} + +.uniui-calendar:before { + content: "\e6a0"; +} + +.uniui-fire:before { + content: "\e6a1"; +} + +.uniui-medal:before { + content: "\e6a2"; +} + +.uniui-font:before { + content: "\e6a3"; +} + +.uniui-gift:before { + content: "\e6a4"; +} + +.uniui-link:before { + content: "\e6a5"; +} + +.uniui-notification:before { + content: "\e6a6"; +} + +.uniui-staff:before { + content: "\e6a7"; +} + +.uniui-vip:before { + content: "\e6a8"; +} + +.uniui-folder-add:before { + content: "\e6a9"; +} + +.uniui-tune:before { + content: "\e6aa"; +} + +.uniui-auth:before { + content: "\e6ab"; +} + +.uniui-person:before { + content: "\e699"; +} + +.uniui-email-filled:before { + content: "\e69a"; +} + +.uniui-phone-filled:before { + content: "\e69b"; +} + +.uniui-phone:before { + content: "\e69c"; +} + +.uniui-email:before { + content: "\e69e"; +} + +.uniui-personadd:before { + content: "\e69f"; +} + +.uniui-chatboxes-filled:before { + content: "\e692"; +} + +.uniui-contact:before { + content: "\e693"; +} + +.uniui-chatbubble-filled:before { + content: "\e694"; +} + +.uniui-contact-filled:before { + content: "\e695"; +} + +.uniui-chatboxes:before { + content: "\e696"; +} + +.uniui-chatbubble:before { + content: "\e697"; +} + +.uniui-upload-filled:before { + content: "\e68e"; +} + +.uniui-upload:before { + content: "\e690"; +} + +.uniui-weixin:before { + content: "\e691"; +} + +.uniui-compose:before { + content: "\e67f"; +} + +.uniui-qq:before { + content: "\e680"; +} + +.uniui-download-filled:before { + content: "\e681"; +} + +.uniui-pyq:before { + content: "\e682"; +} + +.uniui-sound:before { + content: "\e684"; +} + +.uniui-trash-filled:before { + content: "\e685"; +} + +.uniui-sound-filled:before { + content: "\e686"; +} + +.uniui-trash:before { + content: "\e687"; +} + +.uniui-videocam-filled:before { + content: "\e689"; +} + +.uniui-spinner-cycle:before { + content: "\e68a"; +} + +.uniui-weibo:before { + content: "\e68b"; +} + +.uniui-videocam:before { + content: "\e68c"; +} + +.uniui-download:before { + content: "\e68d"; +} + +.uniui-help:before { + content: "\e679"; +} + +.uniui-navigate-filled:before { + content: "\e67a"; +} + +.uniui-plusempty:before { + content: "\e67b"; +} + +.uniui-smallcircle:before { + content: "\e67c"; +} + +.uniui-minus-filled:before { + content: "\e67d"; +} + +.uniui-micoff:before { + content: "\e67e"; +} + +.uniui-closeempty:before { + content: "\e66c"; +} + +.uniui-clear:before { + content: "\e66d"; +} + +.uniui-navigate:before { + content: "\e66e"; +} + +.uniui-minus:before { + content: "\e66f"; +} + +.uniui-image:before { + content: "\e670"; +} + +.uniui-mic:before { + content: "\e671"; +} + +.uniui-paperplane:before { + content: "\e672"; +} + +.uniui-close:before { + content: "\e673"; +} + +.uniui-help-filled:before { + content: "\e674"; +} + +.uniui-paperplane-filled:before { + content: "\e675"; +} + +.uniui-plus:before { + content: "\e676"; +} + +.uniui-mic-filled:before { + content: "\e677"; +} + +.uniui-image-filled:before { + content: "\e678"; +} + +.uniui-locked-filled:before { + content: "\e668"; +} + +.uniui-info:before { + content: "\e669"; +} + +.uniui-locked:before { + content: "\e66b"; +} + +.uniui-camera-filled:before { + content: "\e658"; +} + +.uniui-chat-filled:before { + content: "\e659"; +} + +.uniui-camera:before { + content: "\e65a"; +} + +.uniui-circle:before { + content: "\e65b"; +} + +.uniui-checkmarkempty:before { + content: "\e65c"; +} + +.uniui-chat:before { + content: "\e65d"; +} + +.uniui-circle-filled:before { + content: "\e65e"; +} + +.uniui-flag:before { + content: "\e65f"; +} + +.uniui-flag-filled:before { + content: "\e660"; +} + +.uniui-gear-filled:before { + content: "\e661"; +} + +.uniui-home:before { + content: "\e662"; +} + +.uniui-home-filled:before { + content: "\e663"; +} + +.uniui-gear:before { + content: "\e664"; +} + +.uniui-smallcircle-filled:before { + content: "\e665"; +} + +.uniui-map-filled:before { + content: "\e666"; +} + +.uniui-map:before { + content: "\e667"; +} + +.uniui-refresh-filled:before { + content: "\e656"; +} + +.uniui-refresh:before { + content: "\e657"; +} + +.uniui-cloud-upload:before { + content: "\e645"; +} + +.uniui-cloud-download-filled:before { + content: "\e646"; +} + +.uniui-cloud-download:before { + content: "\e647"; +} + +.uniui-cloud-upload-filled:before { + content: "\e648"; +} + +.uniui-redo:before { + content: "\e64a"; +} + +.uniui-images-filled:before { + content: "\e64b"; +} + +.uniui-undo-filled:before { + content: "\e64c"; +} + +.uniui-more:before { + content: "\e64d"; +} + +.uniui-more-filled:before { + content: "\e64e"; +} + +.uniui-undo:before { + content: "\e64f"; +} + +.uniui-images:before { + content: "\e650"; +} + +.uniui-paperclip:before { + content: "\e652"; +} + +.uniui-settings:before { + content: "\e653"; +} + +.uniui-search:before { + content: "\e654"; +} + +.uniui-redo-filled:before { + content: "\e655"; +} + +.uniui-list:before { + content: "\e644"; +} + +.uniui-mail-open-filled:before { + content: "\e63a"; +} + +.uniui-hand-down-filled:before { + content: "\e63c"; +} + +.uniui-hand-down:before { + content: "\e63d"; +} + +.uniui-hand-up-filled:before { + content: "\e63e"; +} + +.uniui-hand-up:before { + content: "\e63f"; +} + +.uniui-heart-filled:before { + content: "\e641"; +} + +.uniui-mail-open:before { + content: "\e643"; +} + +.uniui-heart:before { + content: "\e639"; +} + +.uniui-loop:before { + content: "\e633"; +} + +.uniui-pulldown:before { + content: "\e632"; +} + +.uniui-scan:before { + content: "\e62a"; +} + +.uniui-bars:before { + content: "\e627"; +} + +.uniui-cart-filled:before { + content: "\e629"; +} + +.uniui-checkbox:before { + content: "\e62b"; +} + +.uniui-checkbox-filled:before { + content: "\e62c"; +} + +.uniui-shop:before { + content: "\e62f"; +} + +.uniui-headphones:before { + content: "\e630"; +} + +.uniui-cart:before { + content: "\e631"; +} diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.ttf b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.ttf new file mode 100644 index 0000000..835f33b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/components/uni-icons/uniicons.ttf Binary files differ diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/package.json b/PipeLineLems.PDA/uni_modules/uni-icons/package.json new file mode 100644 index 0000000..d1c4e77 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/package.json @@ -0,0 +1,86 @@ +{ + "id": "uni-icons", + "displayName": "uni-icons 鍥炬爣", + "version": "1.3.5", + "description": "鍥炬爣缁勪欢锛岀敤浜庡睍绀虹Щ鍔ㄧ甯歌鐨勫浘鏍囷紝鍙嚜瀹氫箟棰滆壊銆佸ぇ灏忋��", + "keywords": [ + "uni-ui", + "uniui", + "icon", + "鍥炬爣" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "^3.2.14" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "category": [ + "鍓嶇缁勪欢", + "閫氱敤缁勪欢" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "鏃�", + "data": "鏃�", + "permissions": "鏃�" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "寰俊娴忚鍣�(Android)": "y", + "QQ娴忚鍣�(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "灏忕▼搴�": { + "寰俊": "y", + "闃块噷": "y", + "鐧惧害": "y", + "瀛楄妭璺冲姩": "y", + "QQ": "y" + }, + "蹇簲鐢�": { + "鍗庝负": "u", + "鑱旂洘": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uni-icons/readme.md b/PipeLineLems.PDA/uni_modules/uni-icons/readme.md new file mode 100644 index 0000000..86234ba --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-icons/readme.md @@ -0,0 +1,8 @@ +## Icons 鍥炬爣 +> **缁勪欢鍚嶏細uni-icons** +> 浠g爜鍧楋細 `uIcons` + +鐢ㄤ簬灞曠ず icons 鍥炬爣 銆� + +### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-icons) +#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839 diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/changelog.md b/PipeLineLems.PDA/uni_modules/uni-scss/changelog.md new file mode 100644 index 0000000..b863bb0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/changelog.md @@ -0,0 +1,8 @@ +## 1.0.3锛�2022-01-21锛� +- 浼樺寲 缁勪欢绀轰緥 +## 1.0.2锛�2021-11-22锛� +- 淇 / 绗﹀彿鍦� vue 涓嶅悓鐗堟湰鍏煎闂寮曡捣鐨勬姤閿欓棶棰� +## 1.0.1锛�2021-11-22锛� +- 淇 vue3涓璼css璇硶鍏煎闂 +## 1.0.0锛�2021-11-18锛� +- init diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/index.scss b/PipeLineLems.PDA/uni_modules/uni-scss/index.scss new file mode 100644 index 0000000..1744a5f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/index.scss @@ -0,0 +1 @@ +@import './styles/index.scss'; diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/package.json b/PipeLineLems.PDA/uni_modules/uni-scss/package.json new file mode 100644 index 0000000..7cc0ccb --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/package.json @@ -0,0 +1,82 @@ +{ + "id": "uni-scss", + "displayName": "uni-scss 杈呭姪鏍峰紡", + "version": "1.0.3", + "description": "uni-sass鏄痷ni-ui鎻愪緵鐨勪竴濂楀叏灞�鏍峰紡 锛岄�氳繃涓�浜涚畝鍗曠殑绫诲悕鍜宻ass鍙橀噺锛屽疄鐜扮畝鍗曠殑椤甸潰甯冨眬鎿嶄綔锛屾瘮濡傞鑹层�佽竟璺濄�佸渾瑙掔瓑銆�", + "keywords": [ + "uni-scss", + "uni-ui", + "杈呭姪鏍峰紡" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "category": [ + "JS SDK", + "閫氱敤 SDK" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "鏃�", + "data": "鏃�", + "permissions": "鏃�" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "寰俊娴忚鍣�(Android)": "y", + "QQ娴忚鍣�(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "灏忕▼搴�": { + "寰俊": "y", + "闃块噷": "y", + "鐧惧害": "y", + "瀛楄妭璺冲姩": "y", + "QQ": "y" + }, + "蹇簲鐢�": { + "鍗庝负": "n", + "鑱旂洘": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/readme.md b/PipeLineLems.PDA/uni_modules/uni-scss/readme.md new file mode 100644 index 0000000..b7d1c25 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/readme.md @@ -0,0 +1,4 @@ +`uni-sass` 鏄� `uni-ui`鎻愪緵鐨勪竴濂楀叏灞�鏍峰紡 锛岄�氳繃涓�浜涚畝鍗曠殑绫诲悕鍜宍sass`鍙橀噺锛屽疄鐜扮畝鍗曠殑椤甸潰甯冨眬鎿嶄綔锛屾瘮濡傞鑹层�佽竟璺濄�佸渾瑙掔瓑銆� + +### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-sass) +#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839 \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/index.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/index.scss new file mode 100644 index 0000000..ffac4fe --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/index.scss @@ -0,0 +1,7 @@ +@import './setting/_variables.scss'; +@import './setting/_border.scss'; +@import './setting/_color.scss'; +@import './setting/_space.scss'; +@import './setting/_radius.scss'; +@import './setting/_text.scss'; +@import './setting/_styles.scss'; diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_border.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_border.scss new file mode 100644 index 0000000..12a11c3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_border.scss @@ -0,0 +1,3 @@ +.uni-border { + border: 1px $uni-border-1 solid; +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_color.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_color.scss new file mode 100644 index 0000000..1ededd9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_color.scss @@ -0,0 +1,66 @@ + +// TODO 鏆傛椂涓嶉渶瑕� class 锛岄渶瑕佺敤鎴蜂娇鐢ㄥ彉閲忓疄鐜� 锛屽鏋滀娇鐢ㄧ被鍚嶅叾瀹炲苟涓嶆帹鑽� +// @mixin get-styles($k,$c) { +// @if $k == size or $k == weight{ +// font-#{$k}:#{$c} +// }@else{ +// #{$k}:#{$c} +// } +// } +$uni-ui-color:( + // 涓昏壊 + primary: $uni-primary, + primary-disable: $uni-primary-disable, + primary-light: $uni-primary-light, + // 杈呭姪鑹� + success: $uni-success, + success-disable: $uni-success-disable, + success-light: $uni-success-light, + warning: $uni-warning, + warning-disable: $uni-warning-disable, + warning-light: $uni-warning-light, + error: $uni-error, + error-disable: $uni-error-disable, + error-light: $uni-error-light, + info: $uni-info, + info-disable: $uni-info-disable, + info-light: $uni-info-light, + // 涓�ц壊 + main-color: $uni-main-color, + base-color: $uni-base-color, + secondary-color: $uni-secondary-color, + extra-color: $uni-extra-color, + // 鑳屾櫙鑹� + bg-color: $uni-bg-color, + // 杈规棰滆壊 + border-1: $uni-border-1, + border-2: $uni-border-2, + border-3: $uni-border-3, + border-4: $uni-border-4, + // 榛戣壊 + black:$uni-black, + // 鐧借壊 + white:$uni-white, + // 閫忔槑 + transparent:$uni-transparent +) !default; +@each $key, $child in $uni-ui-color { + .uni-#{"" + $key} { + color: $child; + } + .uni-#{"" + $key}-bg { + background-color: $child; + } +} +.uni-shadow-sm { + box-shadow: $uni-shadow-sm; +} +.uni-shadow-base { + box-shadow: $uni-shadow-base; +} +.uni-shadow-lg { + box-shadow: $uni-shadow-lg; +} +.uni-mask { + background-color:$uni-mask; +} diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_radius.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_radius.scss new file mode 100644 index 0000000..9a0428b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_radius.scss @@ -0,0 +1,55 @@ +@mixin radius($r,$d:null ,$important: false){ + $radius-value:map-get($uni-radius, $r) if($important, !important, null); + // Key exists within the $uni-radius variable + @if (map-has-key($uni-radius, $r) and $d){ + @if $d == t { + border-top-left-radius:$radius-value; + border-top-right-radius:$radius-value; + }@else if $d == r { + border-top-right-radius:$radius-value; + border-bottom-right-radius:$radius-value; + }@else if $d == b { + border-bottom-left-radius:$radius-value; + border-bottom-right-radius:$radius-value; + }@else if $d == l { + border-top-left-radius:$radius-value; + border-bottom-left-radius:$radius-value; + }@else if $d == tl { + border-top-left-radius:$radius-value; + }@else if $d == tr { + border-top-right-radius:$radius-value; + }@else if $d == br { + border-bottom-right-radius:$radius-value; + }@else if $d == bl { + border-bottom-left-radius:$radius-value; + } + }@else{ + border-radius:$radius-value; + } +} + +@each $key, $child in $uni-radius { + @if($key){ + .uni-radius-#{"" + $key} { + @include radius($key) + } + }@else{ + .uni-radius { + @include radius($key) + } + } +} + +@each $direction in t, r, b, l,tl, tr, br, bl { + @each $key, $child in $uni-radius { + @if($key){ + .uni-radius-#{"" + $direction}-#{"" + $key} { + @include radius($key,$direction,false) + } + }@else{ + .uni-radius-#{$direction} { + @include radius($key,$direction,false) + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_space.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_space.scss new file mode 100644 index 0000000..3c89528 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_space.scss @@ -0,0 +1,56 @@ + +@mixin fn($space,$direction,$size,$n) { + @if $n { + #{$space}-#{$direction}: #{$size*$uni-space-root}px + } @else { + #{$space}-#{$direction}: #{-$size*$uni-space-root}px + } +} +@mixin get-styles($direction,$i,$space,$n){ + @if $direction == t { + @include fn($space, top,$i,$n); + } + @if $direction == r { + @include fn($space, right,$i,$n); + } + @if $direction == b { + @include fn($space, bottom,$i,$n); + } + @if $direction == l { + @include fn($space, left,$i,$n); + } + @if $direction == x { + @include fn($space, left,$i,$n); + @include fn($space, right,$i,$n); + } + @if $direction == y { + @include fn($space, top,$i,$n); + @include fn($space, bottom,$i,$n); + } + @if $direction == a { + @if $n { + #{$space}:#{$i*$uni-space-root}px; + } @else { + #{$space}:#{-$i*$uni-space-root}px; + } + } +} + +@each $orientation in m,p { + $space: margin; + @if $orientation == m { + $space: margin; + } @else { + $space: padding; + } + @for $i from 0 through 16 { + @each $direction in t, r, b, l, x, y, a { + .uni-#{$orientation}#{$direction}-#{$i} { + @include get-styles($direction,$i,$space,true); + } + .uni-#{$orientation}#{$direction}-n#{$i} { + @include get-styles($direction,$i,$space,false); + } + } + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_styles.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_styles.scss new file mode 100644 index 0000000..689afec --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_styles.scss @@ -0,0 +1,167 @@ +/* #ifndef APP-NVUE */ + +$-color-white:#fff; +$-color-black:#000; +@mixin base-style($color) { + color: #fff; + background-color: $color; + border-color: mix($-color-black, $color, 8%); + &:not([hover-class]):active { + background: mix($-color-black, $color, 10%); + border-color: mix($-color-black, $color, 20%); + color: $-color-white; + outline: none; + } +} +@mixin is-color($color) { + @include base-style($color); + &[loading] { + @include base-style($color); + &::before { + margin-right:5px; + } + } + &[disabled] { + &, + &[loading], + &:not([hover-class]):active { + color: $-color-white; + border-color: mix(darken($color,10%), $-color-white); + background-color: mix($color, $-color-white); + } + } + +} +@mixin base-plain-style($color) { + color:$color; + background-color: mix($-color-white, $color, 90%); + border-color: mix($-color-white, $color, 70%); + &:not([hover-class]):active { + background: mix($-color-white, $color, 80%); + color: $color; + outline: none; + border-color: mix($-color-white, $color, 50%); + } +} +@mixin is-plain($color){ + &[plain] { + @include base-plain-style($color); + &[loading] { + @include base-plain-style($color); + &::before { + margin-right:5px; + } + } + &[disabled] { + &, + &:active { + color: mix($-color-white, $color, 40%); + background-color: mix($-color-white, $color, 90%); + border-color: mix($-color-white, $color, 80%); + } + } + } +} + + +.uni-btn { + margin: 5px; + color: #393939; + border:1px solid #ccc; + font-size: 16px; + font-weight: 200; + background-color: #F9F9F9; + // TODO 鏆傛椂澶勭悊杈规闅愯棌涓�杈圭殑闂 + overflow: visible; + &::after{ + border: none; + } + + &:not([type]),&[type=default] { + color: #999; + &[loading] { + background: none; + &::before { + margin-right:5px; + } + } + + + + &[disabled]{ + color: mix($-color-white, #999, 60%); + &, + &[loading], + &:active { + color: mix($-color-white, #999, 60%); + background-color: mix($-color-white,$-color-black , 98%); + border-color: mix($-color-white, #999, 85%); + } + } + + &[plain] { + color: #999; + background: none; + border-color: $uni-border-1; + &:not([hover-class]):active { + background: none; + color: mix($-color-white, $-color-black, 80%); + border-color: mix($-color-white, $-color-black, 90%); + outline: none; + } + &[disabled]{ + &, + &[loading], + &:active { + background: none; + color: mix($-color-white, #999, 60%); + border-color: mix($-color-white, #999, 85%); + } + } + } + } + + &:not([hover-class]):active { + color: mix($-color-white, $-color-black, 50%); + } + + &[size=mini] { + font-size: 16px; + font-weight: 200; + border-radius: 8px; + } + + + + &.uni-btn-small { + font-size: 14px; + } + &.uni-btn-mini { + font-size: 12px; + } + + &.uni-btn-radius { + border-radius: 999px; + } + &[type=primary] { + @include is-color($uni-primary); + @include is-plain($uni-primary) + } + &[type=success] { + @include is-color($uni-success); + @include is-plain($uni-success) + } + &[type=error] { + @include is-color($uni-error); + @include is-plain($uni-error) + } + &[type=warning] { + @include is-color($uni-warning); + @include is-plain($uni-warning) + } + &[type=info] { + @include is-color($uni-info); + @include is-plain($uni-info) + } +} +/* #endif */ diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_text.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_text.scss new file mode 100644 index 0000000..a34d08f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_text.scss @@ -0,0 +1,24 @@ +@mixin get-styles($k,$c) { + @if $k == size or $k == weight{ + font-#{$k}:#{$c} + }@else{ + #{$k}:#{$c} + } +} + +@each $key, $child in $uni-headings { + /* #ifndef APP-NVUE */ + .uni-#{$key} { + @each $k, $c in $child { + @include get-styles($k,$c) + } + } + /* #endif */ + /* #ifdef APP-NVUE */ + .container .uni-#{$key} { + @each $k, $c in $child { + @include get-styles($k,$c) + } + } + /* #endif */ +} diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_variables.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_variables.scss new file mode 100644 index 0000000..557d3d7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/setting/_variables.scss @@ -0,0 +1,146 @@ +// @use "sass:math"; +@import '../tools/functions.scss'; +// 闂磋窛鍩虹鍊嶆暟 +$uni-space-root: 2 !default; +// 杈规鍗婂緞榛樿鍊� +$uni-radius-root:5px !default; +$uni-radius: () !default; +// 杈规鍗婂緞鏂偣 +$uni-radius: map-deep-merge( + ( + 0: 0, + // TODO 褰撳墠鐗堟湰鏆傛椂涓嶆敮鎸� sm 灞炴�� + // 'sm': math.div($uni-radius-root, 2), + null: $uni-radius-root, + 'lg': $uni-radius-root * 2, + 'xl': $uni-radius-root * 6, + 'pill': 9999px, + 'circle': 50% + ), + $uni-radius +); +// 瀛椾綋瀹舵棌 +$body-font-family: 'Roboto', sans-serif !default; +// 鏂囨湰 +$heading-font-family: $body-font-family !default; +$uni-headings: () !default; +$letterSpacing: -0.01562em; +$uni-headings: map-deep-merge( + ( + 'h1': ( + size: 32px, + weight: 300, + line-height: 50px, + // letter-spacing:-0.01562em + ), + 'h2': ( + size: 28px, + weight: 300, + line-height: 40px, + // letter-spacing: -0.00833em + ), + 'h3': ( + size: 24px, + weight: 400, + line-height: 32px, + // letter-spacing: normal + ), + 'h4': ( + size: 20px, + weight: 400, + line-height: 30px, + // letter-spacing: 0.00735em + ), + 'h5': ( + size: 16px, + weight: 400, + line-height: 24px, + // letter-spacing: normal + ), + 'h6': ( + size: 14px, + weight: 500, + line-height: 18px, + // letter-spacing: 0.0125em + ), + 'subtitle': ( + size: 12px, + weight: 400, + line-height: 20px, + // letter-spacing: 0.00937em + ), + 'body': ( + font-size: 14px, + font-weight: 400, + line-height: 22px, + // letter-spacing: 0.03125em + ), + 'caption': ( + 'size': 12px, + 'weight': 400, + 'line-height': 20px, + // 'letter-spacing': 0.03333em, + // 'text-transform': false + ) + ), + $uni-headings +); + + + +// 涓昏壊 +$uni-primary: #2979ff !default; +$uni-primary-disable:lighten($uni-primary,20%) !default; +$uni-primary-light: lighten($uni-primary,25%) !default; + +// 杈呭姪鑹� +// 闄や簡涓昏壊澶栫殑鍦烘櫙鑹诧紝闇�瑕佸湪涓嶅悓鐨勫満鏅腑浣跨敤锛堜緥濡傚嵄闄╄壊琛ㄧず鍗遍櫓鐨勬搷浣滐級銆� +$uni-success: #18bc37 !default; +$uni-success-disable:lighten($uni-success,20%) !default; +$uni-success-light: lighten($uni-success,25%) !default; + +$uni-warning: #f3a73f !default; +$uni-warning-disable:lighten($uni-warning,20%) !default; +$uni-warning-light: lighten($uni-warning,25%) !default; + +$uni-error: #e43d33 !default; +$uni-error-disable:lighten($uni-error,20%) !default; +$uni-error-light: lighten($uni-error,25%) !default; + +$uni-info: #8f939c !default; +$uni-info-disable:lighten($uni-info,20%) !default; +$uni-info-light: lighten($uni-info,25%) !default; + +// 涓�ц壊 +// 涓�ц壊鐢ㄤ簬鏂囨湰銆佽儗鏅拰杈规棰滆壊銆傞�氳繃杩愮敤涓嶅悓鐨勪腑鎬ц壊锛屾潵琛ㄧ幇灞傛缁撴瀯銆� +$uni-main-color: #3a3a3a !default; // 涓昏鏂囧瓧 +$uni-base-color: #6a6a6a !default; // 甯歌鏂囧瓧 +$uni-secondary-color: #909399 !default; // 娆¤鏂囧瓧 +$uni-extra-color: #c7c7c7 !default; // 杈呭姪璇存槑 + +// 杈规棰滆壊 +$uni-border-1: #F0F0F0 !default; +$uni-border-2: #EDEDED !default; +$uni-border-3: #DCDCDC !default; +$uni-border-4: #B9B9B9 !default; + +// 甯歌鑹� +$uni-black: #000000 !default; +$uni-white: #ffffff !default; +$uni-transparent: rgba($color: #000000, $alpha: 0) !default; + +// 鑳屾櫙鑹� +$uni-bg-color: #f7f7f7 !default; + +/* 姘村钩闂磋窛 */ +$uni-spacing-sm: 8px !default; +$uni-spacing-base: 15px !default; +$uni-spacing-lg: 30px !default; + +// 闃村奖 +$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5) !default; +$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default; +$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5) !default; + +// 钂欑増 +$uni-mask: rgba($color: #000000, $alpha: 0.4) !default; diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/styles/tools/functions.scss b/PipeLineLems.PDA/uni_modules/uni-scss/styles/tools/functions.scss new file mode 100644 index 0000000..ac6f63e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/styles/tools/functions.scss @@ -0,0 +1,19 @@ +// 鍚堝苟 map +@function map-deep-merge($parent-map, $child-map){ + $result: $parent-map; + @each $key, $child in $child-map { + $parent-has-key: map-has-key($result, $key); + $parent-value: map-get($result, $key); + $parent-type: type-of($parent-value); + $child-type: type-of($child); + $parent-is-map: $parent-type == map; + $child-is-map: $child-type == map; + + @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ + $result: map-merge($result, ( $key: $child )); + }@else { + $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); + } + } + @return $result; +}; diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/theme.scss b/PipeLineLems.PDA/uni_modules/uni-scss/theme.scss new file mode 100644 index 0000000..80ee62f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/theme.scss @@ -0,0 +1,31 @@ +// 闂磋窛鍩虹鍊嶆暟 +$uni-space-root: 2; +// 杈规鍗婂緞榛樿鍊� +$uni-radius-root:5px; +// 涓昏壊 +$uni-primary: #2979ff; +// 杈呭姪鑹� +$uni-success: #4cd964; +// 璀﹀憡鑹� +$uni-warning: #f0ad4e; +// 閿欒鑹� +$uni-error: #dd524d; +// 鎻忚堪鑹� +$uni-info: #909399; +// 涓�ц壊 +$uni-main-color: #303133; +$uni-base-color: #606266; +$uni-secondary-color: #909399; +$uni-extra-color: #C0C4CC; +// 鑳屾櫙鑹� +$uni-bg-color: #f5f5f5; +// 杈规棰滆壊 +$uni-border-1: #DCDFE6; +$uni-border-2: #E4E7ED; +$uni-border-3: #EBEEF5; +$uni-border-4: #F2F6FC; + +// 甯歌鑹� +$uni-black: #000000; +$uni-white: #ffffff; +$uni-transparent: rgba($color: #000000, $alpha: 0); diff --git a/PipeLineLems.PDA/uni_modules/uni-scss/variables.scss b/PipeLineLems.PDA/uni_modules/uni-scss/variables.scss new file mode 100644 index 0000000..1c062d4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-scss/variables.scss @@ -0,0 +1,62 @@ +@import './styles/setting/_variables.scss'; +// 闂磋窛鍩虹鍊嶆暟 +$uni-space-root: 2; +// 杈规鍗婂緞榛樿鍊� +$uni-radius-root:5px; + +// 涓昏壊 +$uni-primary: #2979ff; +$uni-primary-disable:mix(#fff,$uni-primary,50%); +$uni-primary-light: mix(#fff,$uni-primary,80%); + +// 杈呭姪鑹� +// 闄や簡涓昏壊澶栫殑鍦烘櫙鑹诧紝闇�瑕佸湪涓嶅悓鐨勫満鏅腑浣跨敤锛堜緥濡傚嵄闄╄壊琛ㄧず鍗遍櫓鐨勬搷浣滐級銆� +$uni-success: #18bc37; +$uni-success-disable:mix(#fff,$uni-success,50%); +$uni-success-light: mix(#fff,$uni-success,80%); + +$uni-warning: #f3a73f; +$uni-warning-disable:mix(#fff,$uni-warning,50%); +$uni-warning-light: mix(#fff,$uni-warning,80%); + +$uni-error: #e43d33; +$uni-error-disable:mix(#fff,$uni-error,50%); +$uni-error-light: mix(#fff,$uni-error,80%); + +$uni-info: #8f939c; +$uni-info-disable:mix(#fff,$uni-info,50%); +$uni-info-light: mix(#fff,$uni-info,80%); + +// 涓�ц壊 +// 涓�ц壊鐢ㄤ簬鏂囨湰銆佽儗鏅拰杈规棰滆壊銆傞�氳繃杩愮敤涓嶅悓鐨勪腑鎬ц壊锛屾潵琛ㄧ幇灞傛缁撴瀯銆� +$uni-main-color: #3a3a3a; // 涓昏鏂囧瓧 +$uni-base-color: #6a6a6a; // 甯歌鏂囧瓧 +$uni-secondary-color: #909399; // 娆¤鏂囧瓧 +$uni-extra-color: #c7c7c7; // 杈呭姪璇存槑 + +// 杈规棰滆壊 +$uni-border-1: #F0F0F0; +$uni-border-2: #EDEDED; +$uni-border-3: #DCDCDC; +$uni-border-4: #B9B9B9; + +// 甯歌鑹� +$uni-black: #000000; +$uni-white: #ffffff; +$uni-transparent: rgba($color: #000000, $alpha: 0); + +// 鑳屾櫙鑹� +$uni-bg-color: #f7f7f7; + +/* 姘村钩闂磋窛 */ +$uni-spacing-sm: 8px; +$uni-spacing-base: 15px; +$uni-spacing-lg: 30px; + +// 闃村奖 +$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); +$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); +$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); + +// 钂欑増 +$uni-mask: rgba($color: #000000, $alpha: 0.4); diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/changelog.md b/PipeLineLems.PDA/uni_modules/uni-swipe-action/changelog.md new file mode 100644 index 0000000..c916427 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/changelog.md @@ -0,0 +1,43 @@ +## 1.3.8锛�2023-04-13锛� +- 淇`uni-swipe-action`鍜宍uni-swipe-action-item`涓嶅悓鏃朵娇鐢ㄥ鑷� closeOther 鏂规硶鎶ラ敊鐨� bug +## 1.3.7锛�2022-06-06锛� +- 淇 vue3 涓嬩娇鐢ㄧ粍浠朵笉鑳芥甯歌繍琛岀殑Bug +## 1.3.6锛�2022-05-31锛� +- 淇 h5绔偣鍑籧lick瑙﹀彂涓ゆ鐨凚ug +## 1.3.5锛�2022-05-23锛� +- 淇 isPC 鎵句笉鍒扮殑Bug +## 1.3.4锛�2022-05-19锛� +- 淇 鍦� nvue 涓� disabled 澶辨晥鐨刡ug +## 1.3.3锛�2022-03-31锛� +- 淇 鎸夐挳瀛椾綋澶у皬涓嶈兘璁剧疆鐨刡ug +## 1.3.2锛�2022-03-16锛� +- 淇 h5鍜宎pp绔笅鎶l閿欒鐨刡ug +## 1.3.1锛�2022-03-07锛� +- 淇 HBuilderX 1.4.X 鐗堟湰涓紝h5鍜宎pp绔笅鎶ラ敊鐨刡ug +## 1.3.0锛�2021-11-19锛� +- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-swipe-action](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) +## 1.2.4锛�2021-08-20锛� +- 浼樺寲 close-all 鏂规硶 +## 1.2.3锛�2021-08-20锛� +- 鏂板 close-all 鏂规硶锛屽叧闂墍鏈夊凡鎵撳紑鐨勭粍浠� +## 1.2.2锛�2021-08-17锛� +- 鏂板 resize() 鏂规硶锛屽湪闈炲井淇″皬绋嬪簭銆乭5銆乤pp-vue绔嚭鐜颁笉鑳芥粦鍔ㄧ殑闂鐨勬椂鍊欙紝閲嶇疆缁勪欢 +- 淇 app 绔伓灏斿嚭鐜扮被浼� Page[x][-x,xx;-x,xx,x,x-x] 鐨勯棶棰� +- 浼樺寲 寰俊灏忕▼搴忋�乭5銆乤pp-vue 婊戝姩閫昏緫锛岄伩鍏嶅嚭鐜板姩鎬佹柊澧炵粍浠跺悗涓嶈兘婊戝姩鐨勯棶棰� +## 1.2.1锛�2021-07-30锛� +- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834) +- 淇 璺ㄩ〉闈慨鏀圭粍浠舵暟鎹� 锛屽鑷翠笉鑳芥粦鍔ㄧ殑闂 +## 1.1.10锛�2021-06-17锛� +- 淇 鎸夐挳鐐瑰嚮鎵ц涓ゆ鐨刡ug +## 1.1.9锛�2021-05-12锛� +- 鏂板 椤圭洰绀轰緥鍦板潃 +## 1.1.8锛�2021-03-26锛� +- 淇 寰俊灏忕▼搴� nv_navigator is not defined 鎶ラ敊鐨刡ug +## 1.1.7锛�2021-02-05锛� +- 璋冩暣涓簎ni_modules鐩綍瑙勮寖 +- 鏂板 宸︿晶婊戝姩 +- 鏂板 鎻掓Ы浣跨敤鏂瑰紡 +- 鏂板 threshold 灞炴�э紝鍙互鎺у埗婊戝姩缂虹渷鍊� +- 浼樺寲 闀垮垪琛ㄦ粴鍔ㄦ�ц兘 +- 淇 婊氬姩椤甸潰鏃惰Е鍙戠粍浠舵粦鍔ㄧ殑Bug diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js new file mode 100644 index 0000000..707e432 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js @@ -0,0 +1,302 @@ +let bindIngXMixins = {} + +// #ifdef APP-NVUE +const BindingX = uni.requireNativePlugin('bindingx'); +const dom = uni.requireNativePlugin('dom'); +const animation = uni.requireNativePlugin('animation'); + +bindIngXMixins = { + data() { + return {} + }, + + watch: { + show(newVal) { + if (this.autoClose) return + if (this.stop) return + this.stop = true + if (newVal) { + this.open(newVal) + } else { + this.close() + } + }, + leftOptions() { + this.getSelectorQuery() + this.init() + }, + rightOptions(newVal) { + this.init() + } + }, + created() { + this.swipeaction = this.getSwipeAction() + if (this.swipeaction && Array.isArray(this.swipeaction.children)) { + this.swipeaction.children.push(this) + } + }, + mounted() { + this.box = this.getEl(this.$refs['selector-box--hock']) + this.selector = this.getEl(this.$refs['selector-content--hock']); + this.leftButton = this.getEl(this.$refs['selector-left-button--hock']); + this.rightButton = this.getEl(this.$refs['selector-right-button--hock']); + this.init() + }, + // beforeDestroy() { + // this.swipeaction.children.forEach((item, index) => { + // if (item === this) { + // this.swipeaction.children.splice(index, 1) + // } + // }) + // }, + methods: { + init() { + this.$nextTick(() => { + this.x = 0 + this.button = { + show: false + } + setTimeout(() => { + this.getSelectorQuery() + }, 200) + }) + }, + onClick(index, item, position) { + this.$emit('click', { + content: item, + index, + position + }) + }, + touchstart(e) { + // fix by mehaotian 绂佹婊戝姩 + if (this.disabled) return + // 姣忔鍙Е鍙戜竴娆★紝閬垮厤澶氭鐩戝惉閫犳垚闂儊 + if (this.stop) return + this.stop = true + if (this.autoClose && this.swipeaction) { + this.swipeaction.closeOther(this) + } + + const leftWidth = this.button.left.width + const rightWidth = this.button.right.width + let expression = this.range(this.x, -rightWidth, leftWidth) + let leftExpression = this.range(this.x - leftWidth, -leftWidth, 0) + let rightExpression = this.range(this.x + rightWidth, 0, rightWidth) + + this.eventpan = BindingX.bind({ + anchor: this.box, + eventType: 'pan', + props: [{ + element: this.selector, + property: 'transform.translateX', + expression + }, { + element: this.leftButton, + property: 'transform.translateX', + expression: leftExpression + }, { + element: this.rightButton, + property: 'transform.translateX', + expression: rightExpression + }, ] + }, (e) => { + // nope + if (e.state === 'end') { + this.x = e.deltaX + this.x; + this.isclick = true + this.bindTiming(e.deltaX) + } + }); + }, + touchend(e) { + if (this.isopen !== 'none' && !this.isclick) { + this.open('none') + } + }, + bindTiming(x) { + const left = this.x + const leftWidth = this.button.left.width + const rightWidth = this.button.right.width + const threshold = this.threshold + if (!this.isopen || this.isopen === 'none') { + if (left > threshold) { + this.open('left') + } else if (left < -threshold) { + this.open('right') + } else { + this.open('none') + } + } else { + if ((x > -leftWidth && x < 0) || x > rightWidth) { + if ((x > -threshold && x < 0) || (x - rightWidth > threshold)) { + this.open('left') + } else { + this.open('none') + } + } else { + if ((x < threshold && x > 0) || (x + leftWidth < -threshold)) { + this.open('right') + } else { + this.open('none') + } + } + } + }, + + /** + * 绉诲姩鑼冨洿 + * @param {Object} num + * @param {Object} mix + * @param {Object} max + */ + range(num, mix, max) { + return `min(max(x+${num}, ${mix}), ${max})` + }, + + /** + * 寮�鍚痵wipe + */ + open(type) { + this.animation(type) + }, + + /** + * 鍏抽棴swipe + */ + close() { + this.animation('none') + }, + + /** + * 寮�鍚叧闂姩鐢� + * @param {Object} type + */ + animation(type) { + const time = 300 + const leftWidth = this.button.left.width + const rightWidth = this.button.right.width + if (this.eventpan && this.eventpan.token) { + BindingX.unbind({ + token: this.eventpan.token, + eventType: 'pan' + }) + } + + switch (type) { + case 'left': + Promise.all([ + this.move(this.selector, leftWidth), + this.move(this.leftButton, 0), + this.move(this.rightButton, rightWidth * 2) + ]).then(() => { + this.setEmit(leftWidth, type) + }) + break + case 'right': + Promise.all([ + this.move(this.selector, -rightWidth), + this.move(this.leftButton, -leftWidth * 2), + this.move(this.rightButton, 0) + ]).then(() => { + this.setEmit(-rightWidth, type) + }) + break + default: + Promise.all([ + this.move(this.selector, 0), + this.move(this.leftButton, -leftWidth), + this.move(this.rightButton, rightWidth) + ]).then(() => { + this.setEmit(0, type) + }) + + } + }, + setEmit(x, type) { + const leftWidth = this.button.left.width + const rightWidth = this.button.right.width + this.isopen = this.isopen || 'none' + this.stop = false + this.isclick = false + // 鍙湁鐘舵�佷笉涓�鑷存墠浼氳繑鍥炵粨鏋� + if (this.isopen !== type && this.x !== x) { + if (type === 'left' && leftWidth > 0) { + this.$emit('change', 'left') + } + if (type === 'right' && rightWidth > 0) { + this.$emit('change', 'right') + } + if (type === 'none') { + this.$emit('change', 'none') + } + } + this.x = x + this.isopen = type + }, + move(ref, value) { + return new Promise((resolve, reject) => { + animation.transition(ref, { + styles: { + transform: `translateX(${value})`, + }, + duration: 150, //ms + timingFunction: 'linear', + needLayout: false, + delay: 0 //ms + }, function(res) { + resolve(res) + }) + }) + + }, + + /** + * 鑾峰彇ref + * @param {Object} el + */ + getEl(el) { + return el.ref + }, + /** + * 鑾峰彇鑺傜偣淇℃伅 + */ + getSelectorQuery() { + Promise.all([ + this.getDom('left'), + this.getDom('right'), + ]).then((data) => { + let show = 'none' + if (this.autoClose) { + show = 'none' + } else { + show = this.show + } + + if (show === 'none') { + // this.close() + } else { + this.open(show) + } + + }) + + }, + getDom(str) { + return new Promise((resolve, reject) => { + dom.getComponentRect(this.$refs[`selector-${str}-button--hock`], (data) => { + if (data) { + this.button[str] = data.size + resolve(data) + } else { + reject() + } + }) + }) + } + } +} + +// #endif + +export default bindIngXMixins diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js new file mode 100644 index 0000000..917cb48 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js @@ -0,0 +1,12 @@ +export function isPC() { + var userAgentInfo = navigator.userAgent; + var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; + var flag = true; + for (let v = 0; v < Agents.length - 1; v++) { + if (userAgentInfo.indexOf(Agents[v]) > 0) { + flag = false; + break; + } + } + return flag; +} diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js new file mode 100644 index 0000000..35c796b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js @@ -0,0 +1,195 @@ +export default { + data() { + return { + x: 0, + transition: false, + width: 0, + viewWidth: 0, + swipeShow: 0 + } + }, + watch: { + show(newVal) { + if (this.autoClose) return + if (newVal && newVal !== 'none') { + this.transition = true + this.open(newVal) + } else { + this.close() + } + } + }, + created() { + this.swipeaction = this.getSwipeAction() + if (this.swipeaction && Array.isArray(this.swipeaction.children)) { + this.swipeaction.children.push(this) + } + }, + mounted() { + this.isopen = false + setTimeout(() => { + this.getQuerySelect() + }, 50) + }, + methods: { + appTouchStart(e) { + const { + clientX + } = e.changedTouches[0] + this.clientX = clientX + this.timestamp = new Date().getTime() + }, + appTouchEnd(e, index, item, position) { + const { + clientX + } = e.changedTouches[0] + // fixed by xxxx 妯℃嫙鐐瑰嚮浜嬩欢锛岃В鍐� ios 13 鐐瑰嚮鍖哄煙閿欎綅鐨勯棶棰� + let diff = Math.abs(this.clientX - clientX) + let time = (new Date().getTime()) - this.timestamp + if (diff < 40 && time < 300) { + this.$emit('click', { + content: item, + index, + position + }) + } + }, + /** + * 绉诲姩瑙﹀彂 + * @param {Object} e + */ + onChange(e) { + this.moveX = e.detail.x + this.isclose = false + }, + touchstart(e) { + this.transition = false + this.isclose = true + if (this.autoClose && this.swipeaction) { + this.swipeaction.closeOther(this) + } + }, + touchmove(e) {}, + touchend(e) { + // 0鐨勪綅缃粈涔堥兘涓嶆墽琛� + if (this.isclose && this.isopen === 'none') return + if (this.isclose && this.isopen !== 'none') { + this.transition = true + this.close() + } else { + this.move(this.moveX + this.leftWidth) + } + }, + + /** + * 绉诲姩 + * @param {Object} moveX + */ + move(moveX) { + // 鎵撳紑鍏抽棴鐨勫鐞嗛�昏緫涓嶅お涓�鏍� + this.transition = true + // 鏈墦寮�鐘舵�� + if (!this.isopen || this.isopen === 'none') { + if (moveX > this.threshold) { + this.open('left') + } else if (moveX < -this.threshold) { + this.open('right') + } else { + this.close() + } + } else { + if (moveX < 0 && moveX < this.rightWidth) { + const rightX = this.rightWidth + moveX + if (rightX < this.threshold) { + this.open('right') + } else { + this.close() + } + } else if (moveX > 0 && moveX < this.leftWidth) { + const leftX = this.leftWidth - moveX + if (leftX < this.threshold) { + this.open('left') + } else { + this.close() + } + } + + } + + }, + + /** + * 鎵撳紑 + */ + open(type) { + this.x = this.moveX + this.animation(type) + }, + + /** + * 鍏抽棴 + */ + close() { + this.x = this.moveX + // TODO 瑙e喅 x 鍊间笉鏇存柊鐨勯棶棰橈紝鎵�浠ヤ細澶氳Е鍙戜竴娆� nextTick 锛屽緟浼樺寲 + this.$nextTick(() => { + this.x = -this.leftWidth + if (this.isopen !== 'none') { + this.$emit('change', 'none') + } + this.isopen = 'none' + }) + }, + + /** + * 鎵ц缁撴潫鍔ㄧ敾 + * @param {Object} type + */ + animation(type) { + this.$nextTick(() => { + if (type === 'left') { + this.x = 0 + } else { + this.x = -this.rightWidth - this.leftWidth + } + + if (this.isopen !== type) { + this.$emit('change', type) + } + this.isopen = type + }) + + }, + getSlide(x) {}, + getQuerySelect() { + const query = uni.createSelectorQuery().in(this); + query.selectAll('.movable-view--hock').boundingClientRect(data => { + this.leftWidth = data[1].width + this.rightWidth = data[2].width + this.width = data[0].width + this.viewWidth = this.width + this.rightWidth + this.leftWidth + if (this.leftWidth === 0) { + // TODO 鐤戜技bug ,鍒濆鍖栫殑鏃跺�欏鏋渪 鏄�0锛屼細瀵艰嚧绉诲姩浣嶇疆閿欒锛屾墍浠ヨ鍏冪礌瓒呭嚭涓�鐐� + this.x = -0.1 + } else { + this.x = -this.leftWidth + } + this.moveX = this.x + this.$nextTick(() => { + this.swipeShow = 1 + }) + + if (!this.buttonWidth) { + this.disabledView = true + } + + if (this.autoClose) return + if (this.show !== 'none') { + this.transition = true + this.open(this.shows) + } + }).exec(); + + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js new file mode 100644 index 0000000..d389bce --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js @@ -0,0 +1,260 @@ +let otherMixins = {} + +// #ifndef APP-PLUS|| MP-WEIXIN || H5 +const MIN_DISTANCE = 10; +otherMixins = { + data() { + // TODO 闅忔満鐢熺敓鍏冪礌ID锛岃В鍐崇櫨搴﹀皬绋嬪簭鑾峰彇鍚屼竴涓厓绱犱綅缃俊鎭殑bug + const elClass = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}` + return { + uniShow: false, + left: 0, + buttonShow: 'none', + ani: false, + moveLeft: '', + elClass + } + }, + watch: { + show(newVal) { + if (this.autoClose) return + this.openState(newVal) + }, + left() { + this.moveLeft = `translateX(${this.left}px)` + }, + buttonShow(newVal) { + if (this.autoClose) return + this.openState(newVal) + }, + leftOptions() { + this.init() + }, + rightOptions() { + this.init() + } + }, + mounted() { + this.swipeaction = this.getSwipeAction() + if (this.swipeaction && Array.isArray(this.swipeaction.children)) { + this.swipeaction.children.push(this) + } + this.init() + }, + methods: { + init() { + clearTimeout(this.timer) + this.timer = setTimeout(() => { + this.getSelectorQuery() + }, 100) + // 绉诲姩璺濈 + this.left = 0 + this.x = 0 + }, + + closeSwipe(e) { + if (this.autoClose && this.swipeaction) { + this.swipeaction.closeOther(this) + } + }, + appTouchStart(e) { + const { + clientX + } = e.changedTouches[0] + this.clientX = clientX + this.timestamp = new Date().getTime() + }, + appTouchEnd(e, index, item, position) { + const { + clientX + } = e.changedTouches[0] + // fixed by xxxx 妯℃嫙鐐瑰嚮浜嬩欢锛岃В鍐� ios 13 鐐瑰嚮鍖哄煙閿欎綅鐨勯棶棰� + let diff = Math.abs(this.clientX - clientX) + let time = (new Date().getTime()) - this.timestamp + if (diff < 40 && time < 300) { + this.$emit('click', { + content: item, + index, + position + }) + } + }, + touchstart(e) { + if (this.disabled) return + this.ani = false + this.x = this.left || 0 + this.stopTouchStart(e) + this.autoClose && this.closeSwipe() + }, + touchmove(e) { + if (this.disabled) return + // 鏄惁鍙互婊戝姩椤甸潰 + this.stopTouchMove(e); + if (this.direction !== 'horizontal') { + return; + } + this.move(this.x + this.deltaX) + return false + }, + touchend() { + if (this.disabled) return + this.moveDirection(this.left) + }, + /** + * 璁剧疆绉诲姩璺濈 + * @param {Object} value + */ + move(value) { + value = value || 0 + const leftWidth = this.leftWidth + const rightWidth = this.rightWidth + // 鑾峰彇鍙粦鍔ㄨ寖鍥� + this.left = this.range(value, -rightWidth, leftWidth); + }, + + /** + * 鑾峰彇鑼冨洿 + * @param {Object} num + * @param {Object} min + * @param {Object} max + */ + range(num, min, max) { + return Math.min(Math.max(num, min), max); + }, + /** + * 绉诲姩鏂瑰悜鍒ゆ柇 + * @param {Object} left + * @param {Object} value + */ + moveDirection(left) { + const threshold = this.threshold + const isopen = this.isopen || 'none' + const leftWidth = this.leftWidth + const rightWidth = this.rightWidth + if (this.deltaX === 0) { + this.openState('none') + return + } + if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > + 0 && rightWidth + + left < threshold)) { + // right + this.openState('right') + } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > + 0 && + leftWidth - left < threshold)) { + // left + this.openState('left') + } else { + // default + this.openState('none') + } + }, + + /** + * 寮�鍚姸鎬� + * @param {Boolean} type + */ + openState(type) { + const leftWidth = this.leftWidth + const rightWidth = this.rightWidth + let left = '' + this.isopen = this.isopen ? this.isopen : 'none' + switch (type) { + case "left": + left = leftWidth + break + case "right": + left = -rightWidth + break + default: + left = 0 + } + + + if (this.isopen !== type) { + this.throttle = true + this.$emit('change', type) + } + + this.isopen = type + // 娣诲姞鍔ㄧ敾绫� + this.ani = true + this.$nextTick(() => { + this.move(left) + }) + // 璁剧疆鏈�缁堢Щ鍔ㄤ綅缃�,鐞嗚涓婂彧瑕佽繘鍏ュ埌杩欎釜鍑芥暟锛岃偗瀹氭槸瑕佹墦寮�鐨� + }, + close() { + this.openState('none') + }, + getDirection(x, y) { + if (x > y && x > MIN_DISTANCE) { + return 'horizontal'; + } + if (y > x && y > MIN_DISTANCE) { + return 'vertical'; + } + return ''; + }, + + /** + * 閲嶇疆婊戝姩鐘舵�� + * @param {Object} event + */ + resetTouchStatus() { + this.direction = ''; + this.deltaX = 0; + this.deltaY = 0; + this.offsetX = 0; + this.offsetY = 0; + }, + + /** + * 璁剧疆婊戝姩寮�濮嬩綅缃� + * @param {Object} event + */ + stopTouchStart(event) { + this.resetTouchStatus(); + const touch = event.touches[0]; + this.startX = touch.clientX; + this.startY = touch.clientY; + }, + + /** + * 婊戝姩涓紝鏄惁绂佹鎵撳紑 + * @param {Object} event + */ + stopTouchMove(event) { + const touch = event.touches[0]; + this.deltaX = touch.clientX - this.startX; + this.deltaY = touch.clientY - this.startY; + this.offsetX = Math.abs(this.deltaX); + this.offsetY = Math.abs(this.deltaY); + this.direction = this.direction || this.getDirection(this.offsetX, this.offsetY); + }, + + getSelectorQuery() { + const views = uni.createSelectorQuery().in(this) + views + .selectAll('.' + this.elClass) + .boundingClientRect(data => { + if (data.length === 0) return + let show = 'none' + if (this.autoClose) { + show = 'none' + } else { + show = this.show + } + this.leftWidth = data[0].width || 0 + this.rightWidth = data[1].width || 0 + this.buttonShow = show + }) + .exec() + } + } +} + +// #endif + +export default otherMixins diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js new file mode 100644 index 0000000..08de1c9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js @@ -0,0 +1,84 @@ +let mpMixins = {} +let is_pc = null +// #ifdef H5 +import { + isPC +} from "./isPC" +is_pc = isPC() +// #endif +// #ifdef APP-VUE|| MP-WEIXIN || H5 + +mpMixins = { + data() { + return { + is_show: 'none' + } + }, + watch: { + show(newVal) { + this.is_show = this.show + } + }, + created() { + this.swipeaction = this.getSwipeAction() + if (this.swipeaction && Array.isArray(this.swipeaction.children)) { + this.swipeaction.children.push(this) + } + }, + mounted() { + this.is_show = this.show + }, + methods: { + // wxs 涓皟鐢� + closeSwipe(e) { + if (this.autoClose && this.swipeaction) { + this.swipeaction.closeOther(this) + } + }, + + change(e) { + this.$emit('change', e.open) + if (this.is_show !== e.open) { + this.is_show = e.open + } + }, + + appTouchStart(e) { + if (is_pc) return + const { + clientX + } = e.changedTouches[0] + this.clientX = clientX + this.timestamp = new Date().getTime() + }, + appTouchEnd(e, index, item, position) { + if (is_pc) return + const { + clientX + } = e.changedTouches[0] + // fixed by xxxx 妯℃嫙鐐瑰嚮浜嬩欢锛岃В鍐� ios 13 鐐瑰嚮鍖哄煙閿欎綅鐨勯棶棰� + let diff = Math.abs(this.clientX - clientX) + let time = (new Date().getTime()) - this.timestamp + if (diff < 40 && time < 300) { + this.$emit('click', { + content: item, + index, + position + }) + } + }, + onClickForPC(index, item, position) { + if (!is_pc) return + // #ifdef H5 + this.$emit('click', { + content: item, + index, + position + }) + // #endif + } + } +} + +// #endif +export default mpMixins diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js new file mode 100644 index 0000000..78f0ec6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js @@ -0,0 +1,270 @@ +const MIN_DISTANCE = 10; +export default { + showWatch(newVal, oldVal, ownerInstance, instance, self) { + var state = self.state + var $el = ownerInstance.$el || ownerInstance.$vm && ownerInstance.$vm.$el + if (!$el) return + this.getDom(instance, ownerInstance, self) + if (newVal && newVal !== 'none') { + this.openState(newVal, instance, ownerInstance, self) + return + } + + if (state.left) { + this.openState('none', instance, ownerInstance, self) + } + this.resetTouchStatus(instance, self) + }, + + /** + * 寮�濮嬭Е鎽告搷浣� + * @param {Object} e + * @param {Object} ins + */ + touchstart(e, ownerInstance, self) { + let instance = e.instance; + let disabled = instance.getDataset().disabled + let state = self.state; + this.getDom(instance, ownerInstance, self) + // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶� + disabled = this.getDisabledType(disabled) + if (disabled) return + // 寮�濮嬭Е鎽告椂绉婚櫎鍔ㄧ敾绫� + instance.requestAnimationFrame(function() { + instance.removeClass('ani'); + ownerInstance.callMethod('closeSwipe'); + }) + + // 璁板綍涓婃鐨勪綅缃� + state.x = state.left || 0 + // 璁$畻婊戝姩寮�濮嬩綅缃� + this.stopTouchStart(e, ownerInstance, self) + }, + + /** + * 寮�濮嬫粦鍔ㄦ搷浣� + * @param {Object} e + * @param {Object} ownerInstance + */ + touchmove(e, ownerInstance, self) { + let instance = e.instance; + // 鍒犻櫎涔嬪悗宸茬粡閭d笉鍒板疄渚嬩簡 + if (!instance) return; + let disabled = instance.getDataset().disabled + let state = self.state + // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶� + disabled = this.getDisabledType(disabled) + if (disabled) return + // 鏄惁鍙互婊戝姩椤甸潰 + this.stopTouchMove(e, self); + if (state.direction !== 'horizontal') { + return; + } + if (e.preventDefault) { + // 闃绘椤甸潰婊氬姩 + e.preventDefault() + } + let x = state.x + state.deltaX + this.move(x, instance, ownerInstance, self) + }, + + /** + * 缁撴潫瑙︽懜鎿嶄綔 + * @param {Object} e + * @param {Object} ownerInstance + */ + touchend(e, ownerInstance, self) { + let instance = e.instance; + let disabled = instance.getDataset().disabled + let state = self.state + // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶� + disabled = this.getDisabledType(disabled) + + if (disabled) return + // 婊戝姩杩囩▼涓Е鎽哥粨鏉�,閫氳繃闃欏�煎垽鏂槸寮�鍚繕鏄叧闂� + // fixed by mehaotian 瀹氭椂鍣ㄨВ鍐崇偣鍑绘寜閽紝touchend 瑙﹀彂姣� click 浜嬩欢鏃舵満鏃╃殑闂 锛屼富瑕佹槸 ios13 + this.moveDirection(state.left, instance, ownerInstance, self) + + }, + + /** + * 璁剧疆绉诲姩璺濈 + * @param {Object} value + * @param {Object} instance + * @param {Object} ownerInstance + */ + move(value, instance, ownerInstance, self) { + value = value || 0 + let state = self.state + let leftWidth = state.leftWidth + let rightWidth = state.rightWidth + // 鑾峰彇鍙粦鍔ㄨ寖鍥� + state.left = this.range(value, -rightWidth, leftWidth); + instance.requestAnimationFrame(function() { + instance.setStyle({ + transform: 'translateX(' + state.left + 'px)', + '-webkit-transform': 'translateX(' + state.left + 'px)' + }) + }) + + }, + + /** + * 鑾峰彇鍏冪礌淇℃伅 + * @param {Object} instance + * @param {Object} ownerInstance + */ + getDom(instance, ownerInstance, self) { + var state = self.state + var $el = ownerInstance.$el || ownerInstance.$vm && ownerInstance.$vm.$el + var leftDom = $el.querySelector('.button-group--left') + var rightDom = $el.querySelector('.button-group--right') + + state.leftWidth = leftDom.offsetWidth || 0 + state.rightWidth = rightDom.offsetWidth || 0 + state.threshold = instance.getDataset().threshold + }, + + getDisabledType(value) { + return (typeof(value) === 'string' ? JSON.parse(value) : value) || false; + }, + + /** + * 鑾峰彇鑼冨洿 + * @param {Object} num + * @param {Object} min + * @param {Object} max + */ + range(num, min, max) { + return Math.min(Math.max(num, min), max); + }, + + + /** + * 绉诲姩鏂瑰悜鍒ゆ柇 + * @param {Object} left + * @param {Object} value + * @param {Object} ownerInstance + * @param {Object} ins + */ + moveDirection(left, ins, ownerInstance, self) { + var state = self.state + var threshold = state.threshold + var position = state.position + var isopen = state.isopen || 'none' + var leftWidth = state.leftWidth + var rightWidth = state.rightWidth + if (state.deltaX === 0) { + this.openState('none', ins, ownerInstance, self) + return + } + if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && + rightWidth + + left < threshold)) { + // right + this.openState('right', ins, ownerInstance, self) + } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && + leftWidth - left < threshold)) { + // left + this.openState('left', ins, ownerInstance, self) + } else { + // default + this.openState('none', ins, ownerInstance, self) + } + }, + + + /** + * 寮�鍚姸鎬� + * @param {Boolean} type + * @param {Object} ins + * @param {Object} ownerInstance + */ + openState(type, ins, ownerInstance, self) { + let state = self.state + let leftWidth = state.leftWidth + let rightWidth = state.rightWidth + let left = '' + state.isopen = state.isopen ? state.isopen : 'none' + switch (type) { + case "left": + left = leftWidth + break + case "right": + left = -rightWidth + break + default: + left = 0 + } + + // && !state.throttle + + if (state.isopen !== type) { + state.throttle = true + ownerInstance.callMethod('change', { + open: type + }) + + } + + state.isopen = type + // 娣诲姞鍔ㄧ敾绫� + ins.requestAnimationFrame(() => { + ins.addClass('ani'); + this.move(left, ins, ownerInstance, self) + }) + }, + + + getDirection(x, y) { + if (x > y && x > MIN_DISTANCE) { + return 'horizontal'; + } + if (y > x && y > MIN_DISTANCE) { + return 'vertical'; + } + return ''; + }, + + /** + * 閲嶇疆婊戝姩鐘舵�� + * @param {Object} event + */ + resetTouchStatus(instance, self) { + let state = self.state; + state.direction = ''; + state.deltaX = 0; + state.deltaY = 0; + state.offsetX = 0; + state.offsetY = 0; + }, + + /** + * 璁剧疆婊戝姩寮�濮嬩綅缃� + * @param {Object} event + */ + stopTouchStart(event, ownerInstance, self) { + let instance = event.instance; + let state = self.state + this.resetTouchStatus(instance, self); + var touch = event.touches[0]; + state.startX = touch.clientX; + state.startY = touch.clientY; + }, + + /** + * 婊戝姩涓紝鏄惁绂佹鎵撳紑 + * @param {Object} event + */ + stopTouchMove(event, self) { + let instance = event.instance; + let state = self.state; + let touch = event.touches[0]; + + state.deltaX = touch.clientX - state.startX; + state.deltaY = touch.clientY - state.startY; + state.offsetY = Math.abs(state.deltaY); + state.offsetX = Math.abs(state.deltaX); + state.direction = state.direction || this.getDirection(state.offsetX, state.offsetY); + } +} diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue new file mode 100644 index 0000000..d79c297 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue @@ -0,0 +1,347 @@ +<template> + <!-- 鍦ㄥ井淇″皬绋嬪簭 app vue绔� h5 浣跨敤wxs 瀹炵幇--> + <!-- #ifdef APP-VUE || MP-WEIXIN || H5 --> + <view class="uni-swipe"> + <!-- #ifdef MP-WEIXIN || VUE3 --> + <view class="uni-swipe_box" :change:prop="wxsswipe.showWatch" :prop="is_show" :data-threshold="threshold" + :data-disabled="disabled" @touchstart="wxsswipe.touchstart" @touchmove="wxsswipe.touchmove" + @touchend="wxsswipe.touchend"> + <!-- #endif --> + <!-- #ifndef MP-WEIXIN || VUE3 --> + <view class="uni-swipe_box" :change:prop="renderswipe.showWatch" :prop="is_show" :data-threshold="threshold" + :data-disabled="disabled+''" @touchstart="renderswipe.touchstart" @touchmove="renderswipe.touchmove" + @touchend="renderswipe.touchend"> + <!-- #endif --> + <!-- 鍦ㄥ井淇″皬绋嬪簭 app vue绔� h5 浣跨敤wxs 瀹炵幇--> + <view class="uni-swipe_button-group button-group--left"> + <slot name="left"> + <view v-for="(item,index) in leftOptions" :key="index" :style="{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' + }" class="uni-swipe_button button-hock" @touchstart="appTouchStart" + @touchend="appTouchEnd($event,index,item,'left')" + @click.stop="onClickForPC(index,item,'left')"> + <text class="uni-swipe_button-text" + :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> + </view> + </slot> + </view> + <view class="uni-swipe_text--center"> + <slot></slot> + </view> + <view class="uni-swipe_button-group button-group--right"> + <slot name="right"> + <view v-for="(item,index) in rightOptions" :key="index" :style="{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' + }" class="uni-swipe_button button-hock" @touchstart="appTouchStart" + @touchend="appTouchEnd($event,index,item,'right')" + @click.stop="onClickForPC(index,item,'right')"><text class="uni-swipe_button-text" + :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> + </view> + </slot> + </view> + </view> + </view> + <!-- #endif --> + <!-- app nvue绔� 浣跨敤 bindingx --> + <!-- #ifdef APP-NVUE --> + <view ref="selector-box--hock" class="uni-swipe" @horizontalpan="touchstart" @touchend="touchend"> + <view ref='selector-left-button--hock' class="uni-swipe_button-group button-group--left"> + <slot name="left"> + <view v-for="(item,index) in leftOptions" :key="index" :style="{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' + }" class="uni-swipe_button button-hock" @click.stop="onClick(index,item,'left')"><text + class="uni-swipe_button-text" + :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF', fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> + </view> + </slot> + </view> + <view ref='selector-right-button--hock' class="uni-swipe_button-group button-group--right"> + <slot name="right"> + <view v-for="(item,index) in rightOptions" :key="index" :style="{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD' + }" class="uni-swipe_button button-hock" @click.stop="onClick(index,item,'right')"><text + class="uni-swipe_button-text" + :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'}">{{ item.text }}</text> + </view> + </slot> + </view> + <view ref='selector-content--hock' class="uni-swipe_box"> + <slot></slot> + </view> + </view> + <!-- #endif --> + <!-- 鍏朵粬骞冲彴浣跨敤 js 锛岄暱鍒楄〃鎬ц兘鍙兘浼氭湁褰卞搷--> + <!-- #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || MP-QQ --> + <view class="uni-swipe"> + <view class="uni-swipe_box" @touchstart="touchstart" @touchmove="touchmove" @touchend="touchend" + :style="{transform:moveLeft}" :class="{ani:ani}"> + <view class="uni-swipe_button-group button-group--left" :class="[elClass]"> + <slot name="left"> + <view v-for="(item,index) in leftOptions" :key="index" :style="{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD', + fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px' + }" class="uni-swipe_button button-hock" @touchstart="appTouchStart" + @touchend="appTouchEnd($event,index,item,'left')"><text class="uni-swipe_button-text" + :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text> + </view> + </slot> + </view> + <slot></slot> + <view class="uni-swipe_button-group button-group--right" :class="[elClass]"> + <slot name="right"> + <view v-for="(item,index) in rightOptions" :key="index" :style="{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD', + fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px' + }" @touchstart="appTouchStart" @touchend="appTouchEnd($event,index,item,'right')" + class="uni-swipe_button button-hock"><text class="uni-swipe_button-text" + :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text> + </view> + </slot> + </view> + </view> + </view> + <!-- #endif --> + +</template> +<script src="./wx.wxs" module="wxsswipe" lang="wxs"></script> + +<script module="renderswipe" lang="renderjs"> + import render from './render.js' + export default { + mounted(e, ins, owner) { + this.state = {} + }, + methods: { + showWatch(newVal, oldVal, ownerInstance, instance) { + render.showWatch(newVal, oldVal, ownerInstance, instance, this) + }, + touchstart(e, ownerInstance) { + render.touchstart(e, ownerInstance, this) + }, + touchmove(e, ownerInstance) { + render.touchmove(e, ownerInstance, this) + }, + touchend(e, ownerInstance) { + render.touchend(e, ownerInstance, this) + } + } + } +</script> +<script> + import mpwxs from './mpwxs' + import bindingx from './bindingx.js' + import mpother from './mpother' + + /** + * SwipeActionItem 婊戝姩鎿嶄綔瀛愮粍浠� + * @description 閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣� + * @tutorial https://ext.dcloud.net.cn/plugin?id=181 + * @property {Boolean} show = [left|right锝渘one] 寮�鍚叧闂粍浠讹紝auto-close = false 鏃剁敓鏁� + * @property {Boolean} disabled = [true|false] 鏄惁绂佹婊戝姩 + * @property {Boolean} autoClose = [true|false] 婊戝姩鎵撳紑褰撳墠缁勪欢锛屾槸鍚﹀叧闂叾浠栫粍浠� + * @property {Number} threshold 婊戝姩缂虹渷鍊� + * @property {Array} leftOptions 宸︿晶閫夐」鍐呭鍙婃牱寮� + * @property {Array} rgihtOptions 鍙充晶閫夐」鍐呭鍙婃牱寮� + * @event {Function} click 鐐瑰嚮閫夐」鎸夐挳鏃惰Е鍙戜簨浠讹紝e = {content,index} 锛宑ontent锛堢偣鍑诲唴瀹癸級銆乮ndex锛堜笅鏍�) + * @event {Function} change 缁勪欢鎵撳紑鎴栧叧闂椂瑙﹀彂锛宭eft\right\none + */ + + export default { + mixins: [mpwxs, bindingx, mpother], + emits: ['click', 'change'], + props: { + // 鎺у埗寮�鍏� + show: { + type: String, + default: 'none' + }, + + // 绂佺敤 + disabled: { + type: Boolean, + default: false + }, + + // 鏄惁鑷姩鍏抽棴 + autoClose: { + type: Boolean, + default: true + }, + + // 婊戝姩缂虹渷璺濈 + threshold: { + type: Number, + default: 20 + }, + + // 宸︿晶鎸夐挳鍐呭 + leftOptions: { + type: Array, + default () { + return [] + } + }, + + // 鍙充晶鎸夐挳鍐呭 + rightOptions: { + type: Array, + default () { + return [] + } + } + + }, + // #ifndef VUE3 + // TODO vue2 + destroyed() { + if (this.__isUnmounted) return + this.uninstall() + }, + // #endif + // #ifdef VUE3 + // TODO vue3 + unmounted() { + this.__isUnmounted = true + this.uninstall() + }, + // #endif + + methods: { + uninstall() { + if (this.swipeaction) { + this.swipeaction.children.forEach((item, index) => { + if (item === this) { + this.swipeaction.children.splice(index, 1) + } + }) + } + }, + /** + * 鑾峰彇鐖跺厓绱犲疄渚� + */ + getSwipeAction(name = 'uniSwipeAction') { + let parent = this.$parent; + let parentName = parent.$options.name; + while (parentName !== name) { + parent = parent.$parent; + if (!parent) return false; + parentName = parent.$options.name; + } + return parent; + } + } + } +</script> +<style lang="scss"> + .uni-swipe { + position: relative; + /* #ifndef APP-NVUE */ + overflow: hidden; + /* #endif */ + } + + .uni-swipe_box { + /* #ifndef APP-NVUE */ + display: flex; + flex-shrink: 0; + // touch-action: none; + /* #endif */ + position: relative; + } + + .uni-swipe_content { + // border: 1px red solid; + } + + .uni-swipe_text--center { + width: 100%; + /* #ifndef APP-NVUE */ + cursor: grab; + /* #endif */ + } + + .uni-swipe_button-group { + /* #ifndef APP-NVUE */ + box-sizing: border-box; + display: flex; + /* #endif */ + flex-direction: row; + position: absolute; + top: 0; + bottom: 0; + /* #ifdef H5 */ + cursor: pointer; + /* #endif */ + } + + .button-group--left { + left: 0; + transform: translateX(-100%) + } + + .button-group--right { + right: 0; + transform: translateX(100%) + } + + .uni-swipe_button { + /* #ifdef APP-NVUE */ + flex: 1; + /* #endif */ + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + flex-direction: row; + justify-content: center; + align-items: center; + padding: 0 20px; + } + + .uni-swipe_button-text { + /* #ifndef APP-NVUE */ + flex-shrink: 0; + /* #endif */ + font-size: 14px; + } + + .ani { + transition-property: transform; + transition-duration: 0.3s; + transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1); + } + + /* #ifdef MP-ALIPAY */ + .movable-area { + /* width: 100%; */ + height: 45px; + } + + .movable-view { + display: flex; + /* justify-content: center; */ + position: relative; + flex: 1; + height: 45px; + z-index: 2; + } + + .movable-view-button { + display: flex; + flex-shrink: 0; + flex-direction: row; + height: 100%; + background: #C0C0C0; + } + + /* .transition { + transition: all 0.3s; + } */ + + .movable-view-box { + flex-shrink: 0; + height: 100%; + background-color: #fff; + } + + /* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs new file mode 100644 index 0000000..b394244 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs @@ -0,0 +1,341 @@ +var MIN_DISTANCE = 10; + +/** + * 鍒ゆ柇褰撳墠鏄惁涓篐5銆乤pp-vue + */ +var IS_HTML5 = false +if (typeof window === 'object') IS_HTML5 = true + +/** + * 鐩戝惉椤甸潰鍐呭�肩殑鍙樺寲,涓昏鐢ㄤ簬鍔ㄦ�佸紑鍏硈wipe-action + * @param {Object} newValue + * @param {Object} oldValue + * @param {Object} ownerInstance + * @param {Object} instance + */ +function showWatch(newVal, oldVal, ownerInstance, instance) { + var state = instance.getState() + getDom(instance, ownerInstance) + if (newVal && newVal !== 'none') { + openState(newVal, instance, ownerInstance) + return + } + + if (state.left) { + openState('none', instance, ownerInstance) + } + resetTouchStatus(instance) +} + +/** + * 寮�濮嬭Е鎽告搷浣� + * @param {Object} e + * @param {Object} ins + */ +function touchstart(e, ownerInstance) { + var instance = e.instance; + var disabled = instance.getDataset().disabled + var state = instance.getState(); + getDom(instance, ownerInstance) + // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶� + disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; + if (disabled) return + // 寮�濮嬭Е鎽告椂绉婚櫎鍔ㄧ敾绫� + instance.requestAnimationFrame(function() { + instance.removeClass('ani'); + ownerInstance.callMethod('closeSwipe'); + }) + + // 璁板綍涓婃鐨勪綅缃� + state.x = state.left || 0 + // 璁$畻婊戝姩寮�濮嬩綅缃� + stopTouchStart(e, ownerInstance) +} + +/** + * 寮�濮嬫粦鍔ㄦ搷浣� + * @param {Object} e + * @param {Object} ownerInstance + */ +function touchmove(e, ownerInstance) { + var instance = e.instance; + var disabled = instance.getDataset().disabled + var state = instance.getState() + // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶� + disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; + if (disabled) return + // 鏄惁鍙互婊戝姩椤甸潰 + stopTouchMove(e); + if (state.direction !== 'horizontal') { + return; + } + + if (e.preventDefault) { + // 闃绘椤甸潰婊氬姩 + e.preventDefault() + } + + move(state.x + state.deltaX, instance, ownerInstance) +} + +/** + * 缁撴潫瑙︽懜鎿嶄綔 + * @param {Object} e + * @param {Object} ownerInstance + */ +function touchend(e, ownerInstance) { + var instance = e.instance; + var disabled = instance.getDataset().disabled + var state = instance.getState() + // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶� + disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; + + if (disabled) return + // 婊戝姩杩囩▼涓Е鎽哥粨鏉�,閫氳繃闃欏�煎垽鏂槸寮�鍚繕鏄叧闂� + // fixed by mehaotian 瀹氭椂鍣ㄨВ鍐崇偣鍑绘寜閽紝touchend 瑙﹀彂姣� click 浜嬩欢鏃舵満鏃╃殑闂 锛屼富瑕佹槸 ios13 + moveDirection(state.left, instance, ownerInstance) + +} + +/** + * 璁剧疆绉诲姩璺濈 + * @param {Object} value + * @param {Object} instance + * @param {Object} ownerInstance + */ +function move(value, instance, ownerInstance) { + value = value || 0 + var state = instance.getState() + var leftWidth = state.leftWidth + var rightWidth = state.rightWidth + // 鑾峰彇鍙粦鍔ㄨ寖鍥� + state.left = range(value, -rightWidth, leftWidth); + instance.requestAnimationFrame(function() { + instance.setStyle({ + transform: 'translateX(' + state.left + 'px)', + '-webkit-transform': 'translateX(' + state.left + 'px)' + }) + }) + +} + +/** + * 鑾峰彇鍏冪礌淇℃伅 + * @param {Object} instance + * @param {Object} ownerInstance + */ +function getDom(instance, ownerInstance) { + var state = instance.getState() + var leftDom = ownerInstance.selectComponent('.button-group--left') + var rightDom = ownerInstance.selectComponent('.button-group--right') + var leftStyles = { + width: 0 + } + var rightStyles = { + width: 0 + } + leftStyles = leftDom.getBoundingClientRect() + rightStyles = rightDom.getBoundingClientRect() + + state.leftWidth = leftStyles.width || 0 + state.rightWidth = rightStyles.width || 0 + state.threshold = instance.getDataset().threshold +} + +/** + * 鑾峰彇鑼冨洿 + * @param {Object} num + * @param {Object} min + * @param {Object} max + */ +function range(num, min, max) { + return Math.min(Math.max(num, min), max); +} + + +/** + * 绉诲姩鏂瑰悜鍒ゆ柇 + * @param {Object} left + * @param {Object} value + * @param {Object} ownerInstance + * @param {Object} ins + */ +function moveDirection(left, ins, ownerInstance) { + var state = ins.getState() + var threshold = state.threshold + var position = state.position + var isopen = state.isopen || 'none' + var leftWidth = state.leftWidth + var rightWidth = state.rightWidth + if (state.deltaX === 0) { + openState('none', ins, ownerInstance) + return + } + if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && + rightWidth + + left < threshold)) { + // right + openState('right', ins, ownerInstance) + } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 && + leftWidth - left < threshold)) { + // left + openState('left', ins, ownerInstance) + } else { + // default + openState('none', ins, ownerInstance) + } +} + + +/** + * 寮�鍚姸鎬� + * @param {Boolean} type + * @param {Object} ins + * @param {Object} ownerInstance + */ +function openState(type, ins, ownerInstance) { + var state = ins.getState() + var leftWidth = state.leftWidth + var rightWidth = state.rightWidth + var left = '' + state.isopen = state.isopen ? state.isopen : 'none' + switch (type) { + case "left": + left = leftWidth + break + case "right": + left = -rightWidth + break + default: + left = 0 + } + + // && !state.throttle + + if (state.isopen !== type) { + state.throttle = true + ownerInstance.callMethod('change', { + open: type + }) + + } + + state.isopen = type + // 娣诲姞鍔ㄧ敾绫� + ins.requestAnimationFrame(function() { + ins.addClass('ani'); + move(left, ins, ownerInstance) + }) + // 璁剧疆鏈�缁堢Щ鍔ㄤ綅缃�,鐞嗚涓婂彧瑕佽繘鍏ュ埌杩欎釜鍑芥暟锛岃偗瀹氭槸瑕佹墦寮�鐨� +} + + +function getDirection(x, y) { + if (x > y && x > MIN_DISTANCE) { + return 'horizontal'; + } + if (y > x && y > MIN_DISTANCE) { + return 'vertical'; + } + return ''; +} + +/** + * 閲嶇疆婊戝姩鐘舵�� + * @param {Object} event + */ +function resetTouchStatus(instance) { + var state = instance.getState(); + state.direction = ''; + state.deltaX = 0; + state.deltaY = 0; + state.offsetX = 0; + state.offsetY = 0; +} + +/** + * 璁剧疆婊戝姩寮�濮嬩綅缃� + * @param {Object} event + */ +function stopTouchStart(event) { + var instance = event.instance; + var state = instance.getState(); + resetTouchStatus(instance); + var touch = event.touches[0]; + if (IS_HTML5 && isPC()) { + touch = event; + } + state.startX = touch.clientX; + state.startY = touch.clientY; +} + +/** + * 婊戝姩涓紝鏄惁绂佹鎵撳紑 + * @param {Object} event + */ +function stopTouchMove(event) { + var instance = event.instance; + var state = instance.getState(); + var touch = event.touches[0]; + if (IS_HTML5 && isPC()) { + touch = event; + } + state.deltaX = touch.clientX - state.startX; + state.deltaY = touch.clientY - state.startY; + state.offsetY = Math.abs(state.deltaY); + state.offsetX = Math.abs(state.deltaX); + state.direction = state.direction || getDirection(state.offsetX, state.offsetY); +} + +function isPC() { + var userAgentInfo = navigator.userAgent; + var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; + var flag = true; + for (var v = 0; v < Agents.length - 1; v++) { + if (userAgentInfo.indexOf(Agents[v]) > 0) { + flag = false; + break; + } + } + return flag; +} + +var movable = false + +function mousedown(e, ins) { + if (!IS_HTML5) return + if (!isPC()) return + touchstart(e, ins) + movable = true +} + +function mousemove(e, ins) { + if (!IS_HTML5) return + if (!isPC()) return + if (!movable) return + touchmove(e, ins) +} + +function mouseup(e, ins) { + if (!IS_HTML5) return + if (!isPC()) return + touchend(e, ins) + movable = false +} + +function mouseleave(e, ins) { + if (!IS_HTML5) return + if (!isPC()) return + movable = false +} + +module.exports = { + showWatch: showWatch, + touchstart: touchstart, + touchmove: touchmove, + touchend: touchend, + mousedown: mousedown, + mousemove: mousemove, + mouseup: mouseup, + mouseleave: mouseleave +} diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue new file mode 100644 index 0000000..4971782 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue @@ -0,0 +1,60 @@ +<template> + <view> + <slot></slot> + </view> +</template> + +<script> + /** + * SwipeAction 婊戝姩鎿嶄綔 + * @description 閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣� + * @tutorial https://ext.dcloud.net.cn/plugin?id=181 + */ + export default { + name:"uniSwipeAction", + data() { + return {}; + }, + created() { + this.children = []; + }, + methods: { + // 鍏紑缁欑敤鎴蜂娇鐢紝閲嶅埗缁勪欢鏍峰紡 + resize(){ + // wxs 浼氳嚜宸辫绠楃粍浠跺ぇ灏忥紝鎵�浠ユ棤闇�鎵ц涓嬮潰浠g爜 + // #ifndef APP-VUE || H5 || MP-WEIXIN + this.children.forEach(vm=>{ + vm.init() + }) + // #endif + }, + // 鍏紑缁欑敤鎴蜂娇鐢紝鍏抽棴鍏ㄩ儴 宸茬粡鎵撳紑鐨勭粍浠� + closeAll(){ + this.children.forEach(vm=>{ + // #ifdef APP-VUE || H5 || MP-WEIXIN + vm.is_show = 'none' + // #endif + + // #ifndef APP-VUE || H5 || MP-WEIXIN + vm.close() + // #endif + }) + }, + closeOther(vm) { + if (this.openItem && this.openItem !== vm) { + // #ifdef APP-VUE || H5 || MP-WEIXIN + this.openItem.is_show = 'none' + // #endif + + // #ifndef APP-VUE || H5 || MP-WEIXIN + this.openItem.close() + // #endif + } + // 璁板綍涓婁竴涓墦寮�鐨� swipe-action-item ,鐢ㄤ簬 auto-close + this.openItem = vm + } + } + }; +</script> + +<style></style> diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/package.json b/PipeLineLems.PDA/uni_modules/uni-swipe-action/package.json new file mode 100644 index 0000000..69135de --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/package.json @@ -0,0 +1,84 @@ +{ + "id": "uni-swipe-action", + "displayName": "uni-swipe-action 婊戝姩鎿嶄綔", + "version": "1.3.8", + "description": "SwipeAction 婊戝姩鎿嶄綔鎿嶄綔缁勪欢", + "keywords": [ + "", + "uni-ui", + "uniui", + "婊戝姩鍒犻櫎", + "渚ф粦鍒犻櫎" + ], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "鏃�", + "data": "鏃�", + "permissions": "鏃�" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "寰俊娴忚鍣�(Android)": "y", + "QQ娴忚鍣�(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "灏忕▼搴�": { + "寰俊": "y", + "闃块噷": "y", + "鐧惧害": "y", + "瀛楄妭璺冲姩": "y", + "QQ": "y" + }, + "蹇簲鐢�": { + "鍗庝负": "y", + "鑱旂洘": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uni-swipe-action/readme.md b/PipeLineLems.PDA/uni_modules/uni-swipe-action/readme.md new file mode 100644 index 0000000..93a5cac --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uni-swipe-action/readme.md @@ -0,0 +1,11 @@ + + +## SwipeAction 婊戝姩鎿嶄綔 +> **缁勪欢鍚嶏細uni-swipe-action** +> 浠g爜鍧楋細 `uSwipeAction`銆乣uSwipeActionItem` + + +閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣� + +### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) +#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839 \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/LICENSE b/PipeLineLems.PDA/uni_modules/uview-ui/LICENSE new file mode 100644 index 0000000..8e39ead --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 www.uviewui.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/README.md b/PipeLineLems.PDA/uni_modules/uview-ui/README.md new file mode 100644 index 0000000..c78ff47 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/README.md @@ -0,0 +1,66 @@ +<p align="center"> + <img alt="logo" src="https://uviewui.com/common/logo.png" width="120" height="120" style="margin-bottom: 10px;"> +</p> +<h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uView 2.0</h3> +<h3 align="center">澶氬钩鍙板揩閫熷紑鍙戠殑UI妗嗘灦</h3> + +[](https://github.com/umicro/uView2.0) +[](https://github.com/umicro/uView2.0) +[](https://github.com/umicro/uView2.0/issues) +[](https://uviewui.com) +[](https://gitee.com/umicro/uView2.0/releases) +[](https://en.wikipedia.org/wiki/MIT_License) + +## 璇存槑 + +uView UI锛屾槸[uni-app](https://uniapp.dcloud.io/)鍏ㄩ潰鍏煎nvue鐨剈ni-app鐢熸�佹鏋讹紝鍏ㄩ潰鐨勭粍浠跺拰渚挎嵎鐨勫伐鍏蜂細璁╂偍淇℃墜鎷堟潵锛屽楸煎緱姘� + +## [瀹樻柟鏂囨。锛歨ttps://uviewui.com](https://uviewui.com) + + +## 棰勮 + +鎮ㄥ彲浠ラ�氳繃**寰俊**鎵爜锛屾煡鐪嬫渶浣崇殑婕旂ず鏁堟灉銆� +<br> +<br> +<img src="https://uviewui.com/common/weixin_mini_qrcode.png" width="220" height="220" > + + +## 閾炬帴 + +- [瀹樻柟鏂囨。](https://www.uviewui.com/) +- [鏇存柊鏃ュ織](https://www.uviewui.com/components/changelog.html) +- [鍗囩骇鎸囧崡](https://www.uviewui.com/components/changeGuide.html) +- [鍏充簬鎴戜滑](https://www.uviewui.com/cooperation/about.html) + +## 浜ゆ祦鍙嶉 + +娆㈣繋鍔犲叆鎴戜滑鐨凲Q缇や氦娴佸弽棣堬細[鐐规璺宠浆](https://www.uviewui.com/components/addQQGroup.html) + +## 鍏充簬PR + +> 鎴戜滑闈炲父涔愭剰鎺ュ彈鍚勪綅鐨勪紭璐≒R锛屼絾鍦ㄦ涔嬪墠鎴戝笇鏈涙偍浜嗚ВuView2.0鏄竴涓渶瑕佸吋瀹瑰涓钩鍙扮殑锛堝皬绋嬪簭銆乭5銆乮os app銆乤ndroid app锛夊寘鎷琻vue椤甸潰銆乿ue椤甸潰銆� +> 鎵�浠ュ笇鏈涘湪鎮ㄤ慨澶峛ug骞舵彁浜や箣鍓嶅敖鍙兘鐨勫幓杩欎簺骞冲彴娴嬭瘯涓�涓嬪吋瀹规�с�傛渶濂借兘鎼哄甫娴嬭瘯鎴浘浠ユ柟渚垮鏍搞�傞潪甯告劅璋紒 + +## 瀹夎 + +#### **uni-app鎻掍欢甯傚満閾炬帴** 鈥斺�� [https://ext.dcloud.net.cn/plugin?id=1593](https://ext.dcloud.net.cn/plugin?id=1593) + +璇烽�氳繃[瀹樼綉瀹夎鏂囨。](https://www.uviewui.com/components/install.html)浜嗚В鏇磋缁嗙殑鍐呭 + +## 蹇�熶笂鎵� + +璇烽�氳繃[蹇�熶笂鎵媇(https://uviewui.com/components/quickstart.html)浜嗚В鏇磋缁嗙殑鍐呭 + +## 浣跨敤鏂规硶 +閰嶇疆easycom瑙勫垯鍚庯紝鑷姩鎸夐渶寮曞叆锛屾棤闇�`import`缁勪欢锛岀洿鎺ュ紩鐢ㄥ嵆鍙�� + +```html +<template> + <u-button text="鎸夐挳"></u-button> +</template> +``` + +## 鐗堟潈淇℃伅 +uView閬靛惊[MIT](https://en.wikipedia.org/wiki/MIT_License)寮�婧愬崗璁紝鎰忓懗鐫�鎮ㄦ棤闇�鏀粯浠讳綍璐圭敤锛屼篃鏃犻渶鎺堟潈锛屽嵆鍙皢uView搴旂敤鍒版偍鐨勪骇鍝佷腑銆� + diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/changelog.md b/PipeLineLems.PDA/uni_modules/uview-ui/changelog.md new file mode 100644 index 0000000..ca50251 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/changelog.md @@ -0,0 +1,357 @@ +## 2.0.34锛�2022-09-25锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. `u-input`銆乣u-textarea`澧炲姞`ignoreCompositionEvent`灞炴�� +2. 淇`route`鏂规硶璋冪敤鍙兘鎶ラ敊鐨勯棶棰� +3. 淇`u-no-network`缁勪欢`z-index`鏃犳晥鐨勯棶棰� +4. 淇`textarea`缁勪欢鍦╤5涓奵onfirmType=""鎶ラ敊鐨勯棶棰� +5. `u-rate`閫傞厤`nvue` +6. 浼樺寲楠岃瘉鎵嬫満鍙风爜鐨勬鍒欒〃杈惧紡(鏍规嵁宸ヤ俊閮ㄥ彂甯冪殑銆婄數淇$綉缂栧彿璁″垝锛�2017骞寸増锛夈�嬭繘琛屼慨鏀广��) +7. `form-item`娣诲姞`labelPosition`灞炴�� +8. `u-calendar`淇`maxDate`璁剧疆涓哄綋鍓嶆棩鏈燂紝骞朵笖褰撳墠鏃堕棿澶т簬08锛�00鏃舵棤娉曟樉绀烘棩鏈熷垪琛ㄧ殑闂 (#724) +9. `u-radio`澧炲姞涓�涓粯璁ゆ彃妲界敤浜庤嚜瀹氫箟淇敼label鍐呭 (#680) +10. 淇`timeFormat`鍑芥暟鍦╯afari閲嶇殑鍏煎鎬ч棶棰� (#664) +## 2.0.33锛�2022-06-17锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇`loadmore`缁勪欢`lineColor`绫诲瀷閿欒闂 +2. 淇`u-parse`缁勪欢`imgtap`銆乣linktap`涓嶇敓鏁堥棶棰� +## 2.0.32锛�2022-06-16锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� +1. `u-loadmore`鏂板鑷畾涔夐鑹层�佽櫄/瀹炵嚎 +2. 淇`u-swiper-action`缁勪欢閮ㄥ垎骞冲彴涓嶈兘涓婁笅婊戝姩鐨勯棶棰� +3. 淇`u-list`鍥炲脊闂 +4. 淇`notice-bar`缁勪欢鍔ㄧ敾鍦ㄤ綆绔畨鍗撴満鍙兘浼氭姈鍔ㄧ殑闂 +5. `u-loading-page`娣诲姞鎺у埗鍥炬爣澶у皬鐨勫睘鎬iconSize` +6. 淇`u-tooltip`缁勪欢`color`鍙傛暟涓嶇敓鏁堢殑闂 +7. 淇`u--input`缁勪欢浣跨敤`blur`浜嬩欢杈撳嚭涓篳undefined`鐨刡ug +8. `u-code-input`缁勪欢鏂板閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰鍙傛暟`adjustPosition` +9. 淇`image`缁勪欢`load`浜嬩欢鏃犲洖璋冨璞¢棶棰� +10. 淇`button`缁勪欢`loadingSize`璁剧疆鏃犳晥闂 +10. 鍏朵粬淇 +## 2.0.31锛�2022-04-19锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇`upload`鍦╜vue`椤甸潰涓婁紶鎴愬姛鍚庢病鏈夋垚鍔熸爣蹇楃殑闂 +2. 瑙e喅婕旂ず椤圭洰涓井淇″皬绋嬪簭妯℃嫙涓婁紶鍥剧墖涓�鐩村嚭浜庝笂浼犱腑闂 +3. 淇`u-code-input`缁勪欢鍦╜nvue`椤甸潰缂栬瘧鍒癭app`骞冲彴涓婂厜鏍囧紓甯搁棶棰橈紙`app`鍘婚櫎姝ゅ姛鑳斤級 +4. 淇`actionSheet`缁勪欢鏍囬鍏抽棴鎸夐挳鐐瑰嚮浜嬩欢鍚嶇О閿欒鐨勯棶棰� +5. 鍏朵粬淇 +## 2.0.30锛�2022-04-04锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. `u-rate`澧炲姞`readonly`灞炴�� +2. `tabs`婊戝潡鏀寔璁剧疆鑳屾櫙鍥剧墖 +3. 淇`u-subsection` `mode`涓篳subsection`鏃讹紝婊戝潡鏍峰紡涓嶆纭殑闂 +4. `u-code-input`娣诲姞鍏夋爣鏁堟灉鍔ㄧ敾 +5. 淇`popup`鐨刞open`浜嬩欢涓嶈Е鍙� +6. 淇`u-flex-column`鏃犳晥鐨勯棶棰� +7. 淇`u-datetime-picker`绱㈠紩鍦ㄧ壒瀹氬満鍚堝紓甯搁棶棰� +8. 淇`u-datetime-picker`鏈�灏忔椂闂村瓧绗︿覆妯℃澘閿欒闂 +9. `u-swiper`娣诲姞`m3u8`楠岃瘉 +10. `u-swiper`淇敼鍒ゆ柇image鍜寁ideo閫昏緫 +11. 淇`swiper`鏃犳硶浣跨敤鏈湴鍥剧墖闂锛屽鍔燻type`鍙傛暟 +12. 淇`u-row-notice`鏍煎紡閿欒闂 +13. 淇`u-switch`缁勪欢褰揱unit`涓篳rpx`鏃�,`nodeStyle`娑堝け鐨勯棶棰� +14. 淇`datetime-picker`缁勪欢`showToolbar`涓巂visibleItemCount`灞炴�ф棤鏁堢殑闂 +15. 淇`upload`缁勪欢鏉′欢缂栬瘧浣嶇疆鍒ゆ柇閿欒锛屽鑷碻previewImage`灞炴�ц缃负`false`鏃讹紝鏁翠釜缁勪欢閮戒細琚殣钘忕殑闂 +16. 淇`u-checkbox-group`璁剧疆`shape`灞炴�ф棤鏁堢殑闂 +17. 淇`u-upload`鐨刞capture`浼犲叆瀛楃涓茬殑鏃跺�欎笉鐢熸晥鐨勯棶棰� +18. 淇`u-action-sheet`缁勪欢锛屽叧闂簨浠堕�昏緫閿欒鐨勯棶棰� +19. 淇`u-list`瑙﹂《浜嬩欢鐨勮Е鍙戦敊璇殑闂 +20. 淇`u-text`鍙湁鎵嬫満鍙峰彲鎷ㄦ墦鐨勯棶棰� +21. 淇`u-textarea`涓嶈兘鎹㈣鐨勯棶棰� +22. 鍏朵粬淇 +## 2.0.29锛�2022-03-13锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇`u--text`缁勪欢璁剧疆`decoration`灞炴�ф湭鐢熸晥鐨勯棶棰� +2. 淇`u-datetime-picker`浣跨敤`formatter`鍚庤繑鍥炲�间笉姝g‘ +3. 淇`u-datetime-picker` `intercept` 鍙兘涓簎ndefined +4. 淇宸茶缃崟浣� uni..config.unit = 'rpx'鏃讹紝绾垮瀷鎸囩ず鍣� `transform` 鐨勪綅缃炕鍊嶏紝瀵艰嚧鎸囩ず鍣ㄨ秴鍑哄搴� +5. 淇mixin涓璪em鏂规硶鐢熸垚鐨勭被鍚嶅湪鏀粯瀹濆拰瀛楄妭灏忕▼搴忎腑澶辨晥 +6. 淇榛樿鍊间紶鍊间负绌虹殑鏃跺�欙紝鎵撳紑`u-datetime-picker`鎶ラ敊锛屼笉鑳介�変腑绗竴鍒楁椂闂寸殑bug +7. 淇`u-datetime-picker`浣跨敤`formatter`鍚庤繑鍥炲�间笉姝g‘ +8. 淇`u-image`缁勪欢`loading`鏃犳晥鏋滅殑闂 +9. 淇`config.unit`灞炴�ц涓篳rpx`鏃讹紝瀵艰埅鏍忓崰鐢ㄩ珮搴︿笉瓒冲鑷村闄风殑闂 +10. 淇`u-datetime-picker`缁勪欢`itemHeight`鏃犳晥闂 +11. 鍏朵粬淇 +## 2.0.28锛�2022-02-22锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. search缁勪欢鏂板searchIconSize灞炴�� +2. 鍏煎Safari/Webkit涓紶鍏ユ椂闂存牸寮忓2022-02-17 12:00:56 +3. 淇text value.js 鍒ゆ柇鏃ユ湡鍑篺ormat閿欒闂 +4. priceFormat鏍煎紡鍖栭噾棰濆嚭鐜扮簿搴﹂敊璇� +5. priceFormat鍦ㄩ儴鍒嗘儏鍐典笅鍑虹幇绮惧害鎹熷け闂 +6. 浼樺寲琛ㄥ崟rules鎻愮ず +7. 淇avatar缁勪欢src涓虹┖鏃讹紝灞曠ず鐘舵�佷笉瀵� +8. 鍏朵粬淇 +## 2.0.27锛�2022-01-28锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1.鏍峰紡淇 +## 2.0.26锛�2022-01-28锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1.鏍峰紡淇 +## 2.0.25锛�2022-01-27锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇text缁勪欢mode=price鏃讹紝鍙兘浼氬鑷寸簿搴﹂敊璇殑闂 +2. 娣诲姞$u.setConfig()鏂规硶锛屽彲璁剧疆uView鍐呯疆鐨刢onfig, props, zIndex, color灞炴�э紝璇﹁锛歔淇敼uView鍐呯疆閰嶇疆鏂规](https://uviewui.com/components/setting.html#%E9%BB%98%E8%AE%A4%E5%8D%95%E4%BD%8D%E9%85%8D%E7%BD%AE) +3. 浼樺寲form缁勪欢鍦╡rrorType=toast鏃讹紝濡傛灉杈撳叆閿欒椤甸潰浼氭湁鎶栧姩鐨勯棶棰� +4. 淇$u.addUnit()瀵归厤缃粯璁ゅ崟浣嶅彲鑳芥棤鏁堢殑闂 +## 2.0.24锛�2022-01-25锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇swiper鍦╟urrent鎸囧畾闈�0鏃剁缉鏀炬湁璇� +2. 淇u-icon娣诲姞stop灞炴�х殑鏃跺�欐姤閿� +3. 浼樺寲閬楃暀鐨勯�氳繃姝e垯鍒ゆ柇rpx鍗曚綅鐨勯棶棰� +4. 浼樺寲Layout甯冨眬 vue浣跨敤gutter鏃讹紝浼氳秴鍑哄浐瀹氬尯鍩� +5. 浼樺寲search缁勪欢楂樺害鍗曚綅闂锛坮px -> px锛� +6. 淇u-image slot 鍔犺浇鍜岄敊璇殑鍥剧墖澶卞幓浜嗛珮搴� +7. 淇u-index-list涓璮ooter鎻掓Ы涓巋eader鎻掓Ы瀛樺湪鎬у垽鏂敊璇� +8. 淇閮ㄥ垎鏈哄瀷涓媢-popup鍏抽棴鏃朵細闂儊 +9. 淇u-image鍦╪vue-app涓嬪け鍘诲楂� +10. 淇u-popup杩愯鎶ラ敊 +11. 淇u-tooltip鎶ラ敊 +12. 淇box-sizing鍦╝pp涓嬬殑璀﹀憡 +13. 淇u-navbar鍦ㄥ皬绋嬪簭涓姤杩愯鏃堕敊璇� +14. 鍏朵粬淇 +## 2.0.23锛�2022-01-24锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇image缁勪欢鍦╤x3.3.9鐨刵vue涓嬪彲鑳戒細鏄剧ず寮傚父鐨勯棶棰� +2. 淇col缁勪欢gutter鍙傛暟甯px鍗曚綅澶勭悊涓嶆纭殑闂 +3. 淇text缁勪欢鍗曡鏃舵棤娉曟樉绀虹渷鐣ュ彿鐨勯棶棰� +4. navbar娣诲姞titleStyle鍙傛暟 +5. 鍗囩骇鍒癶x3.3.9鍙秷闄vue涓嬫帶鍒跺彴鏍峰紡璀﹀憡鐨勯棶棰� +## 2.0.22锛�2022-01-19锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. $u.page()鏂规硶浼樺寲锛岄伩鍏嶅湪鐗规畩鍦烘櫙鍙兘鎶ラ敊鐨勯棶棰� +2. picker缁勪欢娣诲姞immediateChange鍙傛暟 +3. 鏂板$u.pages()鏂规硶 +## 2.0.21锛�2022-01-19锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 浼樺寲锛歠orm缁勪欢鍦ㄧ敤鎴疯缃畆ules鐨勬椂鍊欐彁绀虹敤鎴穖odel蹇呬紶 +2. 浼樺寲閬楃暀鐨勯�氳繃姝e垯鍒ゆ柇rpx鍗曚綅鐨勯棶棰� +3. 淇寰俊灏忕▼搴忕幆澧冧腑tabbar缁勪欢寮�鍚痵afeAreaInsetBottom灞炴�у悗锛宲laceholder楂樺害濉厖涓嶆纭� +4. 淇swiper鍦╟urrent鎸囧畾闈�0鏃剁缉鏀炬湁璇� +5. 淇u-icon娣诲姞stop灞炴�х殑鏃跺�欐姤閿� +6. 淇upload缁勪欢鍦╝ccept=all鐨勬椂鍊欐病鏈変綔鐢� +7. 淇鍦╰ext缁勪欢mode涓簆hone鏃禼all灞炴�ф棤鏁堢殑闂 +8. 澶勭悊u-form clearValidate鏂规硶 +9. 鍏朵粬淇 +## 2.0.20锛�2022-01-14锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇calendar榛樿浼氶�夋嫨涓�涓棩鏈燂紝濡傛灉鐩存帴鐐圭‘瀹氱殑璇濓紝鏃犳硶鍙栧埌鍊肩殑闂 +2. 淇Slider缂哄皯disabled props 杩樻湁娉ㄩ噴 +3. 淇u-notice-bar鐐瑰嚮浜嬩欢鏃犳硶鎷垮埌index绱㈠紩鍊肩殑闂 +4. 淇u-collapse-item鍦╲ue鏂囦欢涓嬶紝app绔嚜瀹氫箟鎻掓Ы涓嶇敓鏁堢殑闂 +5. 浼樺寲澶村儚涓虹┖鏃舵樉绀洪粯璁ゅご鍍� +6. 淇鍥剧墖鍦板潃璧嬪�煎悗鍒ゆ柇鍔犺浇鐘舵�佷负瀹屾垚闂 +7. 淇鏃ュ巻婊氬姩鍒伴粯璁ゆ棩鏈熸湀浠藉尯鍩� +8. search缁勪欢鏆撮湶鐐瑰嚮宸﹁竟icon浜嬩欢 +9. 淇u-form clearValidate鏂规硶涓嶇敓鏁� +10. upload h5绔鍔犺繑鍥炴枃浠跺弬鏁帮紙鏂囦欢鐨刵ame鍙傛暟锛� +11. 澶勭悊upload閫夋嫨鏂囦欢鍚巙rl涓篵lob绫诲瀷鏃犳硶棰勮鐨勯棶棰� +12. u-code-input 淇杈撳叆妗嗘病鏈夊線宸︾Щ鍑轰竴鍗婂睆骞� +13. 淇Upload涓婁紶 disabled涓簍rue鏃讹紝鎺у埗鍙版姤hoverClass绫诲瀷閿欒 +14. 涓存椂澶勭悊ios app涓媑rid鐐瑰嚮鍧嶅闂 +15. 鍏朵粬淇 +## 2.0.19锛�2021-12-29锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 浼樺寲寰俊灏忕▼搴忓寘浣撶Н鍙湪寰俊涓瑙堬紝璇峰崌绾builderX3.3.4锛屽悓鏃跺湪鈥滆繍琛�->杩愯鍒板皬绋嬪簭妯℃嫙鍣ㄢ�濅腑鍕鹃�夆�滆繍琛屾椂鏄惁鍘嬬缉浠g爜鈥� +2. 浼樺寲寰俊灏忕▼搴弒etData鎬ц兘锛屽鐞嗘煇浜涙柟娉曞$u.route()鏃犳硶鍦ㄦā鏉夸腑浣跨敤鐨勯棶棰� +3. navbar娣诲姞autoBack鍙傛暟 +4. 鍏佽avatar缁勪欢鐨勪簨浠跺啋娉� +5. 淇cell缁勪欢鎶ラ敊闂 +6. 鍏朵粬淇 +## 2.0.18锛�2021-12-28锛� +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇app绔紪璇戞姤閿欓棶棰� +2. 閲嶆柊澶勭悊寰俊灏忕▼搴忕setData杩囧ぇ鐨勬�ц兘闂 +3. 淇杈规闂 +4. 淇鏈�澶ф渶灏忔湀浠戒笉澶т簬0鍒欐病鏈夋暟鎹嚭鐜扮殑闂 +5. 淇SwipeAction寰俊灏忕▼搴忕鏃犳硶涓婁笅婊戝姩闂 +6. 淇input鐨刾laceholder鍦ㄥ皬绋嬪簭绔粯璁ゆ樉绀轰负true闂 +7. 淇divider缁勪欢click浜嬩欢鏃犳晥闂 +8. 淇u-code-input maxlength 灞炴�у�间负 String 绫诲瀷鏃舵樉绀哄紓甯� +9. 淇褰� grid鍙湁 1鍒�2鏃� 鍦ㄥ皬绋嬪簭绔痑lgin璁剧疆鏃犳晥鐨勯棶棰� +10. 澶勭悊form-item鐨刲abel涓簍op鏃讹紝鍙栨秷閿欒鎻愮ず鐨勫乏杈硅窛 +11. 鍏朵粬淇 +## 2.0.17锛�2021-12-26锛� +## uView姝e湪鍙備笌寮�婧愪腑鍥界殑鈥滃勾搴︽渶浣抽」鐩�濊瘎閫夛紝涔嬪墠鎶曡繃绁ㄧ殑鐜板湪涔熷彲浠ユ姇绁紝鎭宠鍚屽浠姇涓�绁紝[鐐规甯姪uView](https://www.oschina.net/project/top_cn_2021/?id=583) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 瑙e喅HBuilderX3.3.3.20211225鐗堟湰瀵艰嚧鐨勬牱寮忛棶棰� +2. calendar鏃ュ巻娣诲姞monthNum鍙傛暟 +3. navbar娣诲姞center slot +## 2.0.16锛�2021-12-25锛� +## uView姝e湪鍙備笌寮�婧愪腑鍥界殑鈥滃勾搴︽渶浣抽」鐩�濊瘎閫夛紝涔嬪墠鎶曡繃绁ㄧ殑鐜板湪涔熷彲浠ユ姇绁紝鎭宠鍚屽浠姇涓�绁紝[鐐规甯姪uView](https://www.oschina.net/project/top_cn_2021/?id=583) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 瑙e喅寰俊灏忕▼搴弒etData鎬ц兘闂 +2. 淇count-down缁勪欢change浜嬩欢涓嶈Е鍙戦棶棰� +## 2.0.15锛�2021-12-21锛� +## uView姝e湪鍙備笌寮�婧愪腑鍥界殑鈥滃勾搴︽渶浣抽」鐩�濊瘎閫夛紝涔嬪墠鎶曡繃绁ㄧ殑鐜板湪涔熷彲浠ユ姇绁紝鎭宠鍚屽浠姇涓�绁紝[鐐规甯姪uView](https://www.oschina.net/project/top_cn_2021/?id=583) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇Cell鍗曞厓鏍紅itleWidth鏃犳晥 +2. 淇cheakbox缁勪欢ischecked涓嶆洿鏂� +3. 淇keyboard鏄惁鏄剧ず"."鎸夐敭榛樿鍊奸棶棰� +4. 淇number-keyboard鏄惁鏄剧ず閿洏鐨�"."绗﹀彿闂 +5. 淇Input杈撳叆妗� readonly鏃犳晥 +6. 淇u-avatar 瀵艰嚧鎵撳寘app銆丠5鏃跺�欐姤閿欓棶棰� +7. 淇Upload涓婁紶deletable鏃犳晥 +8. 淇upload褰撹缃甿axSize鏃舵棤鏁堢殑闂 +9. 淇tabs lineWidth浼犲叆甯﹀崟浣嶇殑瀛楃涓茬殑鏃跺�欏亸绉婚噺璁$畻閿欒闂 +10. 淇rate缁勪欢鍦ㄦ湁padding鐨剉iew鍐咃紝鏄剧ず鐨勬槦鏄熶綅缃拰鍙Е鎽稿尯鍩熶笉鍖归厤锛屾棤娉曟甯搁�変腑鏄熸槦 +## 2.0.13锛�2021-12-14锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�364463526](https://jq.qq.com/?_chanwv=1027&k=mCxS3TGY) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇閰嶇疆榛樿鍗曚綅涓簉px鍙兘浼氬鑷磋嚜瀹氫箟瀵艰埅鏍忛珮搴﹀紓甯哥殑闂 +## 2.0.12锛�2021-12-14锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�364463526](https://jq.qq.com/?_chanwv=1027&k=mCxS3TGY) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇tabs缁勪欢鍦╲ue鐜涓嬪垝绾挎秷澶辩殑闂 +2. 淇upload缁勪欢鍦ㄥ畨鍗撳皬绋嬪簭鏃犳硶閫夋嫨瑙嗛鐨勯棶棰� +3. 娣诲姞uni.$u.config.unit閰嶇疆锛岀敤浜庨厤缃弬鏁伴粯璁ゅ崟浣嶏紝璇﹁锛歔榛樿鍗曚綅閰嶇疆](https://www.uviewui.com/components/setting.html#%E9%BB%98%E8%AE%A4%E5%8D%95%E4%BD%8D%E9%85%8D%E7%BD%AE) +4. 淇textarea缁勪欢鍦ㄦ病缁戝畾v-model鏃讹紝瀛楃缁熻涓嶇敓鏁堥棶棰� +5. 淇nvue涓嬫帶鍒舵槸鍚﹀嚭鐜版粴鍔ㄦ潯澶辨晥闂 +## 2.0.11锛�2021-12-13锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�364463526](https://jq.qq.com/?_chanwv=1027&k=mCxS3TGY) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. text缁勪欢align鍙傛暟鏃犳晥鐨勯棶棰� +2. subsection缁勪欢娣诲姞keyName鍙傛暟 +3. upload缁勪欢鏃犳硶鍒ゆ柇[Object file]绫诲瀷鐨勯棶棰� +4. 澶勭悊notify灞傜骇杩囦綆闂 +5. codeInput缁勪欢娣诲姞disabledDot鍙傛暟 +6. 澶勭悊actionSheet缁勪欢round鍙傛暟鏃犳晥鐨勯棶棰� +7. calendar缁勪欢娣诲姞round鍙傛暟鐢ㄤ簬鎺у埗鍦嗚鍊� +8. 澶勭悊swipeAction缁勪欢鍦╲ue鐜涓嬮粯璁よ鎵撳紑鐨勯棶棰� +9. button缁勪欢鐨則hrottleTime鑺傛祦鍙傛暟鏃犳晥鐨勯棶棰� +10. 瑙e喅u-notify鎵嬪姩鍏抽棴鏂规硶close()鏃犳晥鐨勯棶棰� +11. input缁勪欢readonly涓嶇敓鏁堥棶棰� +12. tag缁勪欢type鍙傛暟涓篿nfo涓嶇敓鏁堥棶棰� +## 2.0.10锛�2021-12-08锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�364463526](https://jq.qq.com/?_chanwv=1027&k=mCxS3TGY) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇button sendMessagePath灞炴�т笉鐢熸晥 +2. 淇DatetimePicker閫夋嫨鍣╰itle鏃犳晥 +3. 淇u-toast璁剧疆loading=true涓嶇敓鏁� +4. 淇u-text閲戦妯″紡浼�0鎶ラ敊 +5. 淇u-toast缁勪欢鐨刬con灞炴�ч厤缃笉鐢熸晥 +6. button鐨刬con鍦ㄧ壒娈婂満鏅笅鐨勯鑹蹭紭鍖� +7. IndexList浼樺寲锛屽鍔�# +## 2.0.9锛�2021-12-01锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�232041042](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 浼樺寲swiper鐨刪eight鏀寔100%鍊�(浠卾ue鏈夋晥)锛屼慨澶嶅祵鍏ヨ棰戞椂click浜嬩欢鏃犳硶瑙﹀彂鐨勯棶棰� +2. 浼樺寲tabs缁勪欢瀵筶ist鍊间负绌虹殑鍒ゆ柇锛屾垨鑰呭姩鎬佸彉鍖杔ist鏃堕噸鏂拌绠楃浉鍏冲昂瀵哥殑闂 +3. 浼樺寲datetime-picker缁勪欢閫昏緫锛岃鍏跺悗缁墦寮�鐨勯粯璁ゅ�间负涓婁竴娆$殑閫変腑鍊硷紝闇�瑕侀�氳繃v-model缁戝畾鍊兼墠鏈夋晥 +4. 淇upload鍐呭祵鍦ㄥ叾浠栫粍浠朵腑锛岄�夋嫨鍥剧墖鍙兘涓嶄細鎹㈣鐨勯棶棰� +## 2.0.8锛�2021-12-01锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�232041042](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇toast鐨刾osition鍙傛暟鏃犳晥闂 +2. 澶勭悊input鍦╥os nvue涓婃棤娉曡幏寰楃劍鐐圭殑闂 +3. avatar-group缁勪欢娣诲姞extraValue鍙傛暟锛岃鍓╀綑灞曠ず鏁伴噺鍙墜鍔ㄦ帶鍒� +4. tabs缁勪欢娣诲姞keyName鍙傛暟鐢ㄤ簬閰嶇疆浠庡璞′腑璇诲彇鐨勯敭鍚� +5. 澶勭悊text缁勪欢鍚嶅瓧鑴辨晱榛樿閰嶇疆鏃犳晥鐨勯棶棰� +6. 澶勭悊picker缁勪欢item鏂囨湰澶暱鎹㈣闂 +## 2.0.7锛�2021-11-30锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�232041042](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 淇radio鍜宑heckbox鍔ㄦ�佹敼鍙榲-model鏃犳晥鐨勯棶棰樸�� +2. 浼樺寲form瑙勫垯validator鍦ㄥ井淇″皬绋嬪簭鐢ㄦ硶 +3. 淇backtop缁勪欢mode鍙傛暟鍦ㄥ井淇″皬绋嬪簭鏃犳晥鐨勯棶棰� +4. 澶勭悊Album鐨刾reviewFullImage灞炴�ф棤鏁堢殑闂 +5. 澶勭悊u-datetime-picker缁勪欢mode='time'鍦ㄩ�夋嫨鏀瑰彉鏃堕棿鏃讹紝鎺у埗鍙版姤閿欑殑闂 +## 2.0.6锛�2021-11-27锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�232041042](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. 澶勭悊tag缁勪欢鍦╲ue涓嬭竟妗嗘棤鏁堢殑闂銆� +2. 澶勭悊popup缁勪欢鍦嗚鍙傛暟鍙兘鏃犳晥鐨勯棶棰樸�� +3. 澶勭悊tabs缁勪欢lineColor鍙傛暟鍙兘鏃犳晥鐨勯棶棰樸�� +4. propgress缁勪欢鍦ㄥ�煎緢灏忔椂锛屾樉绀哄紓甯哥殑闂銆� +## 2.0.5锛�2021-11-25锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�232041042](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. calendar鍦╲ue涓嬫樉绀哄紓甯搁棶棰樸�� +2. form缁勪欢labelPosition鍜宔rrorType鍙傛暟鏃犳晥鐨勯棶棰� +3. input缁勪欢inputAlign鏃犳晥鐨勯棶棰� +4. 鍏朵粬涓�浜涗慨澶� +## 2.0.4锛�2021-11-23锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�232041042](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +0. input缁勪欢缂哄け@confirm浜嬩欢锛屼互鍙妔ubfix鍜宲refix鏃犳晥闂 +1. component.scss鏂囦欢鏍峰紡鍦╲ue涓嬪共鎵板叏灞�甯冨眬闂 +2. 淇subsection鍦╲ue鐜涓嬭〃鐜板紓甯哥殑闂 +3. tag缁勪欢鐨刡gColor绛夊弬鏁版棤鏁堢殑闂 +4. upload缁勪欢涓嶆崲琛岀殑闂 +5. 鍏朵粬鐨勪竴浜涗慨澶嶅鐞� +## 2.0.3锛�2021-11-16锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. uView2.0宸插疄鐜板叏闈㈠吋瀹筺vue +2. uView2.0瀵�1.x杩涜浜嗘灦鏋勯噸鏋勶紝缁嗚妭鍜屾�ц兘閮芥湁鏋佸ぇ鎻愬崌 +3. 鐩墠uView2.0涓哄叕娴嬮樁娈碉紝鐩稿叧缁嗚妭鍙兘浼氭湁鍙樺姩 +4. 鎴戜滑鍐欎簡涓�浠戒笌1.x鐨勫姣旀寚鍗楋紝璇﹁[瀵规瘮1.x](https://www.uviewui.com/components/diff1.x.html) +5. 澶勭悊modal鐨刢onfirm鍥炶皟浜嬩欢鎷煎啓閿欒闂 +6. 澶勭悊input缁勪欢@input浜嬩欢鍙傛暟閿欒闂 +7. 鍏朵粬涓�浜涗慨澶� +## 2.0.2锛�2021-11-16锛� +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. uView2.0宸插疄鐜板叏闈㈠吋瀹筺vue +2. uView2.0瀵�1.x杩涜浜嗘灦鏋勯噸鏋勶紝缁嗚妭鍜屾�ц兘閮芥湁鏋佸ぇ鎻愬崌 +3. 鐩墠uView2.0涓哄叕娴嬮樁娈碉紝鐩稿叧缁嗚妭鍙兘浼氭湁鍙樺姩 +4. 鎴戜滑鍐欎簡涓�浠戒笌1.x鐨勫姣旀寚鍗楋紝璇﹁[瀵规瘮1.x](https://www.uviewui.com/components/diff1.x.html) +5. 淇input缁勪欢formatter鍙傛暟缂哄け闂 +6. 浼樺寲loading-icon缁勪欢鐨剆css鍐欐硶闂锛岄槻姝笉鍏煎鏂扮増鏈瑂css +## 2.0.0(2020-11-15) +## [鐐瑰嚮鍔犵兢浜ゆ祦鍙嶉锛�1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU) + +# uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀� + +1. uView2.0宸插疄鐜板叏闈㈠吋瀹筺vue +2. uView2.0瀵�1.x杩涜浜嗘灦鏋勯噸鏋勶紝缁嗚妭鍜屾�ц兘閮芥湁鏋佸ぇ鎻愬崌 +3. 鐩墠uView2.0涓哄叕娴嬮樁娈碉紝鐩稿叧缁嗚妭鍙兘浼氭湁鍙樺姩 +4. 鎴戜滑鍐欎簡涓�浠戒笌1.x鐨勫姣旀寚鍗楋紝璇﹁[瀵规瘮1.x](https://www.uviewui.com/components/diff1.x.html) +5. 淇input缁勪欢formatter鍙傛暟缂哄け闂 + + diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u--form/u--form.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--form/u--form.vue new file mode 100644 index 0000000..fdfc212 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--form/u--form.vue @@ -0,0 +1,78 @@ +<template> + <uvForm + ref="uForm" + :model="model" + :rules="rules" + :errorType="errorType" + :borderBottom="borderBottom" + :labelPosition="labelPosition" + :labelWidth="labelWidth" + :labelAlign="labelAlign" + :labelStyle="labelStyle" + :customStyle="customStyle" + > + <slot /> + </uvForm> +</template> + +<script> + /** + * 姝ょ粍浠跺瓨鍦ㄧ殑鐞嗙敱鏄紝鍦╪vue涓嬶紝u-form琚玼ni-app瀹樻柟鍗犵敤浜嗭紝u-form鍦╪vue涓浉褰撲簬form缁勪欢 + * 鎵�浠ュ湪nvue涓嬶紝鍙栧悕涓簎--form锛屽唴閮ㄥ叾瀹炶繕鏄痷-form.vue锛屽彧涓嶈繃鍋氫竴灞備腑杞� + */ + import uvForm from '../u-form/u-form.vue'; + import props from '../u-form/props.js' + export default { + // #ifdef MP-WEIXIN + name: 'u-form', + // #endif + // #ifndef MP-WEIXIN + name: 'u--form', + // #endif + mixins: [uni.$u.mpMixin, props, uni.$u.mixin], + components: { + uvForm + }, + created() { + this.children = [] + }, + methods: { + // 鎵嬪姩璁剧疆鏍¢獙鐨勮鍒欙紝濡傛灉瑙勫垯涓湁鍑芥暟鐨勮瘽锛屽井淇″皬绋嬪簭涓細杩囨护鎺夛紝鎵�浠ュ彧鑳芥墜鍔ㄨ皟鐢ㄨ缃鍒� + setRules(rules) { + this.$refs.uForm.setRules(rules) + }, + validate() { + /** + * 鍦ㄥ井淇″皬绋嬪簭涓紝閫氳繃this.$parent鎷垮埌鐨勭埗缁勪欢鏄痷--form锛岃�屼笉鏄叾鍐呭祵鐨剈-form + * 瀵艰嚧鍦╱-form缁勪欢涓紝鎷夸笉鍒板搴旂殑children鏁扮粍锛屼粠鑰屾牎楠屾棤鏁堬紝鎵�浠ヨ繖閲屾瘡娆¤皟鐢╱-form缁勪欢涓殑 + * 瀵瑰簲鏂规硶鐨勬椂鍊欙紝鍦ㄥ皬绋嬪簭涓兘鍏堝皢u--form鐨刢hildren璧嬪�肩粰u-form涓殑children + */ + // #ifdef MP-WEIXIN + this.setMpData() + // #endif + return this.$refs.uForm.validate() + }, + validateField(value, callback) { + // #ifdef MP-WEIXIN + this.setMpData() + // #endif + return this.$refs.uForm.validateField(value, callback) + }, + resetFields() { + // #ifdef MP-WEIXIN + this.setMpData() + // #endif + return this.$refs.uForm.resetFields() + }, + clearValidate(props) { + // #ifdef MP-WEIXIN + this.setMpData() + // #endif + return this.$refs.uForm.clearValidate(props) + }, + setMpData() { + this.$refs.uForm.children = this.children + } + }, + } +</script> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u--image/u--image.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--image/u--image.vue new file mode 100644 index 0000000..21b7ab1 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--image/u--image.vue @@ -0,0 +1,47 @@ +<template> + <uvImage + :src="src" + :mode="mode" + :width="width" + :height="height" + :shape="shape" + :radius="radius" + :lazyLoad="lazyLoad" + :showMenuByLongpress="showMenuByLongpress" + :loadingIcon="loadingIcon" + :errorIcon="errorIcon" + :showLoading="showLoading" + :showError="showError" + :fade="fade" + :webp="webp" + :duration="duration" + :bgColor="bgColor" + :customStyle="customStyle" + @click="$emit('click')" + @error="$emit('error')" + @load="$emit('load')" + > + <template v-slot:loading> + <slot name="loading"></slot> + </template> + <template v-slot:error> + <slot name="error"></slot> + </template> + </uvImage> +</template> + +<script> + /** + * 姝ょ粍浠跺瓨鍦ㄧ殑鐞嗙敱鏄紝鍦╪vue涓嬶紝u-image琚玼ni-app瀹樻柟鍗犵敤浜嗭紝u-image鍦╪vue涓浉褰撲簬image缁勪欢 + * 鎵�浠ュ湪nvue涓嬶紝鍙栧悕涓簎--image锛屽唴閮ㄥ叾瀹炶繕鏄痷-iamge.vue锛屽彧涓嶈繃鍋氫竴灞備腑杞� + */ + import uvImage from '../u-image/u-image.vue'; + import props from '../u-image/props.js'; + export default { + name: 'u--image', + mixins: [uni.$u.mpMixin, props, uni.$u.mixin], + components: { + uvImage + }, + } +</script> \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u--input/u--input.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--input/u--input.vue new file mode 100644 index 0000000..1e58b01 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--input/u--input.vue @@ -0,0 +1,73 @@ +<template> + <uvInput + :value="value" + :type="type" + :fixed="fixed" + :disabled="disabled" + :disabledColor="disabledColor" + :clearable="clearable" + :password="password" + :maxlength="maxlength" + :placeholder="placeholder" + :placeholderClass="placeholderClass" + :placeholderStyle="placeholderStyle" + :showWordLimit="showWordLimit" + :confirmType="confirmType" + :confirmHold="confirmHold" + :holdKeyboard="holdKeyboard" + :focus="focus" + :autoBlur="autoBlur" + :disableDefaultPadding="disableDefaultPadding" + :cursor="cursor" + :cursorSpacing="cursorSpacing" + :selectionStart="selectionStart" + :selectionEnd="selectionEnd" + :adjustPosition="adjustPosition" + :inputAlign="inputAlign" + :fontSize="fontSize" + :color="color" + :prefixIcon="prefixIcon" + :suffixIcon="suffixIcon" + :suffixIconStyle="suffixIconStyle" + :prefixIconStyle="prefixIconStyle" + :border="border" + :readonly="readonly" + :shape="shape" + :customStyle="customStyle" + :formatter="formatter" + :ignoreCompositionEvent="ignoreCompositionEvent" + @focus="$emit('focus')" + @blur="e => $emit('blur', e)" + @keyboardheightchange="$emit('keyboardheightchange')" + @change="e => $emit('change', e)" + @input="e => $emit('input', e)" + @confirm="e => $emit('confirm', e)" + @clear="$emit('clear')" + @click="$emit('click')" + > + <!-- #ifdef MP --> + <slot name="prefix"></slot> + <slot name="suffix"></slot> + <!-- #endif --> + <!-- #ifndef MP --> + <slot name="prefix" slot="prefix"></slot> + <slot name="suffix" slot="suffix"></slot> + <!-- #endif --> + </uvInput> +</template> + +<script> + /** + * 姝ょ粍浠跺瓨鍦ㄧ殑鐞嗙敱鏄紝鍦╪vue涓嬶紝u-input琚玼ni-app瀹樻柟鍗犵敤浜嗭紝u-input鍦╪vue涓浉褰撲簬input缁勪欢 + * 鎵�浠ュ湪nvue涓嬶紝鍙栧悕涓簎--input锛屽唴閮ㄥ叾瀹炶繕鏄痷-input.vue锛屽彧涓嶈繃鍋氫竴灞備腑杞� + */ + import uvInput from '../u-input/u-input.vue'; + import props from '../u-input/props.js' + export default { + name: 'u--input', + mixins: [uni.$u.mpMixin, props, uni.$u.mixin], + components: { + uvInput + }, + } +</script> \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u--text/u--text.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--text/u--text.vue new file mode 100644 index 0000000..44ee52a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--text/u--text.vue @@ -0,0 +1,44 @@ +<template> + <uvText + :type="type" + :show="show" + :text="text" + :prefixIcon="prefixIcon" + :suffixIcon="suffixIcon" + :mode="mode" + :href="href" + :format="format" + :call="call" + :openType="openType" + :bold="bold" + :block="block" + :lines="lines" + :color="color" + :decoration="decoration" + :size="size" + :iconStyle="iconStyle" + :margin="margin" + :lineHeight="lineHeight" + :align="align" + :wordWrap="wordWrap" + :customStyle="customStyle" + @click="$emit('click')" + ></uvText> +</template> + +<script> +/** + * 姝ょ粍浠跺瓨鍦ㄧ殑鐞嗙敱鏄紝鍦╪vue涓嬶紝u-text琚玼ni-app瀹樻柟鍗犵敤浜嗭紝u-text鍦╪vue涓浉褰撲簬input缁勪欢 + * 鎵�浠ュ湪nvue涓嬶紝鍙栧悕涓簎--input锛屽唴閮ㄥ叾瀹炶繕鏄痷-text.vue锛屽彧涓嶈繃鍋氫竴灞備腑杞� + * 涓嶄娇鐢╲-bind="$attrs"锛岃�屾槸鍒嗗紑鐙珛鍐欎紶鍙傦紝鏄洜涓哄井淇″皬绋嬪簭涓嶆敮鎸佹鍐欐硶 + */ +import uvText from "../u-text/u-text.vue"; +import props from "../u-text/props.js"; +export default { + name: "u--text", + mixins: [uni.$u.mpMixin, props, uni.$u.mixin], + components: { + uvText, + }, +}; +</script> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u--textarea/u--textarea.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--textarea/u--textarea.vue new file mode 100644 index 0000000..f4df0b9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u--textarea/u--textarea.vue @@ -0,0 +1,48 @@ +<template> + <uvTextarea + :value="value" + :placeholder="placeholder" + :height="height" + :confirmType="confirmType" + :disabled="disabled" + :count="count" + :focus="focus" + :autoHeight="autoHeight" + :fixed="fixed" + :cursorSpacing="cursorSpacing" + :cursor="cursor" + :showConfirmBar="showConfirmBar" + :selectionStart="selectionStart" + :selectionEnd="selectionEnd" + :adjustPosition="adjustPosition" + :disableDefaultPadding="disableDefaultPadding" + :holdKeyboard="holdKeyboard" + :maxlength="maxlength" + :border="border" + :customStyle="customStyle" + :formatter="formatter" + :ignoreCompositionEvent="ignoreCompositionEvent" + @focus="e => $emit('focus')" + @blur="e => $emit('blur')" + @linechange="e => $emit('linechange', e)" + @confirm="e => $emit('confirm')" + @input="e => $emit('input', e)" + @keyboardheightchange="e => $emit('keyboardheightchange')" + ></uvTextarea> +</template> + +<script> + /** + * 姝ょ粍浠跺瓨鍦ㄧ殑鐞嗙敱鏄紝鍦╪vue涓嬶紝u--textarea琚玼ni-app瀹樻柟鍗犵敤浜嗭紝u-textarea鍦╪vue涓浉褰撲簬textarea缁勪欢 + * 鎵�浠ュ湪nvue涓嬶紝鍙栧悕涓簎--textarea锛屽唴閮ㄥ叾瀹炶繕鏄痷-textarea.vue锛屽彧涓嶈繃鍋氫竴灞備腑杞� + */ + import uvTextarea from '../u-textarea/u-textarea.vue'; + import props from '../u-textarea/props.js' + export default { + name: 'u--textarea', + mixins: [uni.$u.mpMixin, props, uni.$u.mixin], + components: { + uvTextarea + }, + } +</script> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/props.js new file mode 100644 index 0000000..e96e04f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/props.js @@ -0,0 +1,54 @@ +export default { + props: { + // 鎿嶄綔鑿滃崟鏄惁灞曠ず 锛堥粯璁alse锛� + show: { + type: Boolean, + default: uni.$u.props.actionSheet.show + }, + // 鏍囬 + title: { + type: String, + default: uni.$u.props.actionSheet.title + }, + // 閫夐」涓婃柟鐨勬弿杩颁俊鎭� + description: { + type: String, + default: uni.$u.props.actionSheet.description + }, + // 鏁版嵁 + actions: { + type: Array, + default: uni.$u.props.actionSheet.actions + }, + // 鍙栨秷鎸夐挳鐨勬枃瀛楋紝涓嶄负绌烘椂鏄剧ず鎸夐挳 + cancelText: { + type: String, + default: uni.$u.props.actionSheet.cancelText + }, + // 鐐瑰嚮鏌愪釜鑿滃崟椤规椂鏄惁鍏抽棴寮圭獥 + closeOnClickAction: { + type: Boolean, + default: uni.$u.props.actionSheet.closeOnClickAction + }, + // 澶勭悊搴曢儴瀹夊叏鍖猴紙榛樿true锛� + safeAreaInsetBottom: { + type: Boolean, + default: uni.$u.props.actionSheet.safeAreaInsetBottom + }, + // 灏忕▼搴忕殑鎵撳紑鏂瑰紡 + openType: { + type: String, + default: uni.$u.props.actionSheet.openType + }, + // 鐐瑰嚮閬僵鏄惁鍏佽鍏抽棴 (榛樿true) + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.actionSheet.closeOnClickOverlay + }, + // 鍦嗚鍊� + round: { + type: [Boolean, String, Number], + default: uni.$u.props.actionSheet.round + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue new file mode 100644 index 0000000..26d5d8d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue @@ -0,0 +1,278 @@ + +<template> + <u-popup + :show="show" + mode="bottom" + @close="closeHandler" + :safeAreaInsetBottom="safeAreaInsetBottom" + :round="round" + > + <view class="u-action-sheet"> + <view + class="u-action-sheet__header" + v-if="title" + > + <text class="u-action-sheet__header__title u-line-1">{{title}}</text> + <view + class="u-action-sheet__header__icon-wrap" + @tap.stop="cancel" + > + <u-icon + name="close" + size="17" + color="#c8c9cc" + bold + ></u-icon> + </view> + </view> + <text + class="u-action-sheet__description" + :style="[{ + marginTop: `${title && description ? 0 : '18px'}` + }]" + v-if="description" + >{{description}}</text> + <slot> + <u-line v-if="description"></u-line> + <view class="u-action-sheet__item-wrap"> + <template v-for="(item, index) in actions"> + <!-- #ifdef MP --> + <button + :key="index" + class="u-reset-button" + :openType="item.openType" + @getuserinfo="onGetUserInfo" + @contact="onContact" + @getphonenumber="onGetPhoneNumber" + @error="onError" + @launchapp="onLaunchApp" + @opensetting="onOpenSetting" + :lang="lang" + :session-from="sessionFrom" + :send-message-title="sendMessageTitle" + :send-message-path="sendMessagePath" + :send-message-img="sendMessageImg" + :show-message-card="showMessageCard" + :app-parameter="appParameter" + @tap="selectHandler(index)" + :hover-class="!item.disabled && !item.loading ? 'u-action-sheet--hover' : ''" + > + <!-- #endif --> + <view + class="u-action-sheet__item-wrap__item" + @tap.stop="selectHandler(index)" + :hover-class="!item.disabled && !item.loading ? 'u-action-sheet--hover' : ''" + :hover-stay-time="150" + > + <template v-if="!item.loading"> + <text + class="u-action-sheet__item-wrap__item__name" + :style="[itemStyle(index)]" + >{{ item.name }}</text> + <text + v-if="item.subname" + class="u-action-sheet__item-wrap__item__subname" + >{{ item.subname }}</text> + </template> + <u-loading-icon + v-else + custom-class="van-action-sheet__loading" + size="18" + mode="circle" + /> + </view> + <!-- #ifdef MP --> + </button> + <!-- #endif --> + <u-line v-if="index !== actions.length - 1"></u-line> + </template> + </view> + </slot> + <u-gap + bgColor="#eaeaec" + height="6" + v-if="cancelText" + ></u-gap> + <view hover-class="u-action-sheet--hover"> + <text + @touchmove.stop.prevent + :hover-stay-time="150" + v-if="cancelText" + class="u-action-sheet__cancel-text" + @tap="cancel" + >{{cancelText}}</text> + </view> + </view> + </u-popup> +</template> + +<script> + import openType from '../../libs/mixin/openType' + import button from '../../libs/mixin/button' + import props from './props.js'; + /** + * ActionSheet 鎿嶄綔鑿滃崟 + * @description 鏈粍浠剁敤浜庝粠搴曢儴寮瑰嚭涓�涓搷浣滆彍鍗曪紝渚涚敤鎴烽�夋嫨骞惰繑鍥炵粨鏋溿�傛湰缁勪欢鍔熻兘绫讳技浜巙ni鐨剈ni.showActionSheetAPI锛岄厤缃洿鍔犵伒娲伙紝鎵�鏈夊钩鍙伴兘琛ㄧ幇涓�鑷淬�� + * @tutorial https://www.uviewui.com/components/actionSheet.html + * + * @property {Boolean} show 鎿嶄綔鑿滃崟鏄惁灞曠ず 锛堥粯璁� false 锛� + * @property {String} title 鎿嶄綔鑿滃崟鏍囬 + * @property {String} description 閫夐」涓婃柟鐨勬弿杩颁俊鎭� + * @property {Array<Object>} actions 鎸夐挳鐨勬枃瀛楁暟缁勶紝瑙佸畼鏂规枃妗gず渚� + * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬彁绀烘枃瀛�,涓嶄负绌烘椂鏄剧ず鎸夐挳 + * @property {Boolean} closeOnClickAction 鐐瑰嚮鏌愪釜鑿滃崟椤规椂鏄惁鍏抽棴寮圭獥 锛堥粯璁� true 锛� + * @property {Boolean} safeAreaInsetBottom 澶勭悊搴曢儴瀹夊叏鍖� 锛堥粯璁� true 锛� + * @property {String} openType 灏忕▼搴忕殑鎵撳紑鏂瑰紡 (contact | launchApp | getUserInfo | openSetting 锝済etPhoneNumber 锝渆rror ) + * @property {Boolean} closeOnClickOverlay 鐐瑰嚮閬僵鏄惁鍏佽鍏抽棴 (榛樿 true ) + * @property {Number|String} round 鍦嗚鍊硷紝榛樿鏃犲渾瑙� (榛樿 0 ) + * @property {String} lang 鎸囧畾杩斿洖鐢ㄦ埛淇℃伅鐨勮瑷�锛寊h_CN 绠�浣撲腑鏂囷紝zh_TW 绻佷綋涓枃锛宔n 鑻辨枃 + * @property {String} sessionFrom 浼氳瘽鏉ユ簮锛宱penType="contact"鏃舵湁鏁� + * @property {String} sendMessageTitle 浼氳瘽鍐呮秷鎭崱鐗囨爣棰橈紝openType="contact"鏃舵湁鏁� + * @property {String} sendMessagePath 浼氳瘽鍐呮秷鎭崱鐗囩偣鍑昏烦杞皬绋嬪簭璺緞锛宱penType="contact"鏃舵湁鏁� + * @property {String} sendMessageImg 浼氳瘽鍐呮秷鎭崱鐗囧浘鐗囷紝openType="contact"鏃舵湁鏁� + * @property {Boolean} showMessageCard 鏄惁鏄剧ず浼氳瘽鍐呮秷鎭崱鐗囷紝璁剧疆姝ゅ弬鏁颁负 true锛岀敤鎴疯繘鍏ュ鏈嶄細璇濅細鍦ㄥ彸涓嬭鏄剧ず"鍙兘瑕佸彂閫佺殑灏忕▼搴�"鎻愮ず锛岀敤鎴风偣鍑诲悗鍙互蹇�熷彂閫佸皬绋嬪簭娑堟伅锛宱penType="contact"鏃舵湁鏁� 锛堥粯璁� false 锛� + * @property {String} appParameter 鎵撳紑 APP 鏃讹紝鍚� APP 浼犻�掔殑鍙傛暟锛宱penType=launchApp 鏃舵湁鏁� + * + * @event {Function} select 鐐瑰嚮ActionSheet鍒楄〃椤规椂瑙﹀彂 + * @event {Function} close 鐐瑰嚮鍙栨秷鎸夐挳鏃惰Е鍙� + * @event {Function} getuserinfo 鐢ㄦ埛鐐瑰嚮璇ユ寜閽椂锛屼細杩斿洖鑾峰彇鍒扮殑鐢ㄦ埛淇℃伅锛屽洖璋冪殑 detail 鏁版嵁涓� wx.getUserInfo 杩斿洖鐨勪竴鑷达紝openType="getUserInfo"鏃舵湁鏁� + * @event {Function} contact 瀹㈡湇娑堟伅鍥炶皟锛宱penType="contact"鏃舵湁鏁� + * @event {Function} getphonenumber 鑾峰彇鐢ㄦ埛鎵嬫満鍙峰洖璋冿紝openType="getPhoneNumber"鏃舵湁鏁� + * @event {Function} error 褰撲娇鐢ㄥ紑鏀捐兘鍔涙椂锛屽彂鐢熼敊璇殑鍥炶皟锛宱penType="error"鏃舵湁鏁� + * @event {Function} launchapp 鎵撳紑 APP 鎴愬姛鐨勫洖璋冿紝openType="launchApp"鏃舵湁鏁� + * @event {Function} opensetting 鍦ㄦ墦寮�鎺堟潈璁剧疆椤靛悗鍥炶皟锛宱penType="openSetting"鏃舵湁鏁� + * @example <u-action-sheet :actions="list" :title="title" :show="show"></u-action-sheet> + */ + export default { + name: "u-action-sheet", + // 涓�浜沺rops鍙傛暟鍜宮ethods鏂规硶锛岄�氳繃mixin娣峰叆锛屽洜涓哄叾浠栨枃浠朵篃浼氱敤鍒� + mixins: [openType, button, uni.$u.mixin, props], + data() { + return { + + } + }, + computed: { + // 鎿嶄綔椤圭洰鐨勬牱寮� + itemStyle() { + return (index) => { + let style = {}; + if (this.actions[index].color) style.color = this.actions[index].color + if (this.actions[index].fontSize) style.fontSize = uni.$u.addUnit(this.actions[index].fontSize) + // 閫夐」琚鐢ㄧ殑鏍峰紡 + if (this.actions[index].disabled) style.color = '#c0c4cc' + return style; + } + }, + }, + methods: { + closeHandler() { + // 鍏佽鐐瑰嚮閬僵鍏抽棴鏃讹紝鎵嶅彂鍑篶lose浜嬩欢 + if(this.closeOnClickOverlay) { + this.$emit('close') + } + }, + // 鐐瑰嚮鍙栨秷鎸夐挳 + cancel() { + this.$emit('close') + }, + selectHandler(index) { + const item = this.actions[index] + if (item && !item.disabled && !item.loading) { + this.$emit('select', item) + if (this.closeOnClickAction) { + this.$emit('close') + } + } + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-action-sheet-reset-button-width:100% !default; + $u-action-sheet-title-font-size: 16px !default; + $u-action-sheet-title-padding: 12px 30px !default; + $u-action-sheet-title-color: $u-main-color !default; + $u-action-sheet-header-icon-wrap-right:15px !default; + $u-action-sheet-header-icon-wrap-top:15px !default; + $u-action-sheet-description-font-size:13px !default; + $u-action-sheet-description-color:14px !default; + $u-action-sheet-description-margin: 18px 15px !default; + $u-action-sheet-item-wrap-item-padding:15px !default; + $u-action-sheet-item-wrap-name-font-size:16px !default; + $u-action-sheet-item-wrap-subname-font-size:13px !default; + $u-action-sheet-item-wrap-subname-color: #c0c4cc !default; + $u-action-sheet-item-wrap-subname-margin-top:10px !default; + $u-action-sheet-cancel-text-font-size:16px !default; + $u-action-sheet-cancel-text-color:$u-content-color !default; + $u-action-sheet-cancel-text-font-size:15px !default; + $u-action-sheet-cancel-text-hover-background-color:rgb(242, 243, 245) !default; + + .u-reset-button { + width: $u-action-sheet-reset-button-width; + } + + .u-action-sheet { + text-align: center; + &__header { + position: relative; + padding: $u-action-sheet-title-padding; + &__title { + font-size: $u-action-sheet-title-font-size; + color: $u-action-sheet-title-color; + font-weight: bold; + text-align: center; + } + + &__icon-wrap { + position: absolute; + right: $u-action-sheet-header-icon-wrap-right; + top: $u-action-sheet-header-icon-wrap-top; + } + } + + &__description { + font-size: $u-action-sheet-description-font-size; + color: $u-tips-color; + margin: $u-action-sheet-description-margin; + text-align: center; + } + + &__item-wrap { + + &__item { + padding: $u-action-sheet-item-wrap-item-padding; + @include flex; + align-items: center; + justify-content: center; + flex-direction: column; + + &__name { + font-size: $u-action-sheet-item-wrap-name-font-size; + color: $u-main-color; + text-align: center; + } + + &__subname { + font-size: $u-action-sheet-item-wrap-subname-font-size; + color: $u-action-sheet-item-wrap-subname-color; + margin-top: $u-action-sheet-item-wrap-subname-margin-top; + text-align: center; + } + } + } + + &__cancel-text { + font-size: $u-action-sheet-cancel-text-font-size; + color: $u-action-sheet-cancel-text-color; + text-align: center; + padding: $u-action-sheet-cancel-text-font-size; + } + + &--hover { + background-color: $u-action-sheet-cancel-text-hover-background-color; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/props.js new file mode 100644 index 0000000..75cdb37 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 鍥剧墖鍦板潃锛孉rray<String>|Array<Object>褰㈠紡 + urls: { + type: Array, + default: uni.$u.props.album.urls + }, + // 鎸囧畾浠庢暟缁勭殑瀵硅薄鍏冪礌涓鍙栧摢涓睘鎬т綔涓哄浘鐗囧湴鍧� + keyName: { + type: String, + default: uni.$u.props.album.keyName + }, + // 鍗曞浘鏃讹紝鍥剧墖闀胯竟鐨勯暱搴� + singleSize: { + type: [String, Number], + default: uni.$u.props.album.singleSize + }, + // 澶氬浘鏃讹紝鍥剧墖杈归暱 + multipleSize: { + type: [String, Number], + default: uni.$u.props.album.multipleSize + }, + // 澶氬浘鏃讹紝鍥剧墖姘村钩鍜屽瀭鐩翠箣闂寸殑闂撮殧 + space: { + type: [String, Number], + default: uni.$u.props.album.space + }, + // 鍗曞浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� + singleMode: { + type: String, + default: uni.$u.props.album.singleMode + }, + // 澶氬浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� + multipleMode: { + type: String, + default: uni.$u.props.album.multipleMode + }, + // 鏈�澶氬睍绀虹殑鍥剧墖鏁伴噺锛岃秴鍑烘椂鏈�鍚庝竴涓綅缃皢浼氭樉绀哄墿浣欏浘鐗囨暟閲� + maxCount: { + type: [String, Number], + default: uni.$u.props.album.maxCount + }, + // 鏄惁鍙互棰勮鍥剧墖 + previewFullImage: { + type: Boolean, + default: uni.$u.props.album.previewFullImage + }, + // 姣忚灞曠ず鍥剧墖鏁伴噺锛屽璁剧疆锛宻ingleSize鍜宮ultipleSize灏嗕細鏃犳晥 + rowCount: { + type: [String, Number], + default: uni.$u.props.album.rowCount + }, + // 瓒呭嚭maxCount鏃舵槸鍚︽樉绀烘煡鐪嬫洿澶氱殑鎻愮ず + showMore: { + type: Boolean, + default: uni.$u.props.album.showMore + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/u-album.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/u-album.vue new file mode 100644 index 0000000..687e2d5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-album/u-album.vue @@ -0,0 +1,259 @@ +<template> + <view class="u-album"> + <view + class="u-album__row" + ref="u-album__row" + v-for="(arr, index) in showUrls" + :forComputedUse="albumWidth" + :key="index" + > + <view + class="u-album__row__wrapper" + v-for="(item, index1) in arr" + :key="index1" + :style="[imageStyle(index + 1, index1 + 1)]" + @tap="previewFullImage ? onPreviewTap(getSrc(item)) : ''" + > + <image + :src="getSrc(item)" + :mode=" + urls.length === 1 + ? imageHeight > 0 + ? singleMode + : 'widthFix' + : multipleMode + " + :style="[ + { + width: imageWidth, + height: imageHeight + } + ]" + ></image> + <view + v-if=" + showMore && + urls.length > rowCount * showUrls.length && + index === showUrls.length - 1 && + index1 === showUrls[showUrls.length - 1].length - 1 + " + class="u-album__row__wrapper__text" + > + <u--text + :text="`+${urls.length - maxCount}`" + color="#fff" + :size="multipleSize * 0.3" + align="center" + customStyle="justify-content: center" + ></u--text> + </view> + </view> + </view> + </view> +</template> + +<script> +import props from './props.js' +// #ifdef APP-NVUE +// 鐢变簬weex涓洪樋閲岀殑KPI涓氱哗鑰冩牳鐨勪骇鐗╋紝鎵�浠ヤ笉鏀寔鐧惧垎姣斿崟浣嶏紝杩欓噷闇�瑕侀�氳繃dom鏌ヨ缁勪欢鐨勫搴� +const dom = uni.requireNativePlugin('dom') +// #endif + +/** + * Album 鐩稿唽 + * @description 鏈粍浠舵彁渚涗竴涓被浼肩浉鍐岀殑鍔熻兘锛岃寮�鍙戣�呭紑鍙戣捣鏉ユ洿鍔犲緱蹇冨簲鎵嬨�傚噺灏戦噸澶嶇殑妯℃澘浠g爜 + * @tutorial https://www.uviewui.com/components/album.html + * + * @property {Array} urls 鍥剧墖鍦板潃鍒楄〃 Array<String>|Array<Object>褰㈠紡 + * @property {String} keyName 鎸囧畾浠庢暟缁勭殑瀵硅薄鍏冪礌涓鍙栧摢涓睘鎬т綔涓哄浘鐗囧湴鍧� + * @property {String | Number} singleSize 鍗曞浘鏃讹紝鍥剧墖闀胯竟鐨勯暱搴� 锛堥粯璁� 180 锛� + * @property {String | Number} multipleSize 澶氬浘鏃讹紝鍥剧墖杈归暱 锛堥粯璁� 70 锛� + * @property {String | Number} space 澶氬浘鏃讹紝鍥剧墖姘村钩鍜屽瀭鐩翠箣闂寸殑闂撮殧 锛堥粯璁� 6 锛� + * @property {String} singleMode 鍗曞浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� 锛堥粯璁� 'scaleToFill' 锛� + * @property {String} multipleMode 澶氬浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� 锛堥粯璁� 'aspectFill' 锛� + * @property {String | Number} maxCount 鍙栨秷鎸夐挳鐨勬彁绀烘枃瀛� 锛堥粯璁� 9 锛� + * @property {Boolean} previewFullImage 鏄惁鍙互棰勮鍥剧墖 锛堥粯璁� true 锛� + * @property {String | Number} rowCount 姣忚灞曠ず鍥剧墖鏁伴噺锛屽璁剧疆锛宻ingleSize鍜宮ultipleSize灏嗕細鏃犳晥 锛堥粯璁� 3 锛� + * @property {Boolean} showMore 瓒呭嚭maxCount鏃舵槸鍚︽樉绀烘煡鐪嬫洿澶氱殑鎻愮ず 锛堥粯璁� true 锛� + * + * @event {Function} albumWidth 鏌愪簺鐗规畩鐨勬儏鍐典笅锛岄渶瑕佽鏂囧瓧涓庣浉鍐岀殑瀹藉害鐩哥瓑锛岃繖閲屼簨浠剁殑褰㈠紡瀵瑰鍙戦�� 锛堝洖璋冨弬鏁� width 锛� + * @example <u-album :urls="urls2" @albumWidth="width => albumWidth = width" multipleSize="68" ></u-album> + */ +export default { + name: 'u-album', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 鍗曞浘鐨勫搴� + singleWidth: 0, + // 鍗曞浘鐨勯珮搴� + singleHeight: 0, + // 鍗曞浘鏃讹紝濡傛灉鏃犳硶鑾峰彇鍥剧墖鐨勫昂瀵镐俊鎭紝璁╁浘鐗囧搴﹂粯璁や负瀹瑰櫒鐨勪竴瀹氱櫨鍒嗘瘮 + singlePercent: 0.6 + } + }, + watch: { + urls: { + immediate: true, + handler(newVal) { + if (newVal.length === 1) { + this.getImageRect() + } + } + } + }, + computed: { + imageStyle() { + return (index1, index2) => { + const { space, rowCount, multipleSize, urls } = this, + { addUnit, addStyle } = uni.$u, + rowLen = this.showUrls.length, + allLen = this.urls.length + const style = { + marginRight: addUnit(space), + marginBottom: addUnit(space) + } + // 濡傛灉涓烘渶鍚庝竴琛岋紝鍒欐瘡涓浘鐗囬兘鏃犻渶涓嬭竟妗� + if (index1 === rowLen) style.marginBottom = 0 + // 姣忚鐨勬渶鍙宠竟涓�寮犲拰鎬婚暱搴︾殑鏈�鍚庝竴寮犳棤闇�鍙宠竟妗� + if ( + index2 === rowCount || + (index1 === rowLen && + index2 === this.showUrls[index1 - 1].length) + ) + style.marginRight = 0 + return style + } + }, + // 灏嗘暟缁勫垝鍒嗕负浜岀淮鏁扮粍 + showUrls() { + const arr = [] + this.urls.map((item, index) => { + // 闄愬埗鏈�澶у睍绀烘暟閲� + if (index + 1 <= this.maxCount) { + // 璁$畻璇ュ厓绱犱负绗嚑涓礌缁勫唴 + const itemIndex = Math.floor(index / this.rowCount) + // 鍒ゆ柇瀵瑰簲鐨勭储寮曟槸鍚﹀瓨鍦� + if (!arr[itemIndex]) { + arr[itemIndex] = [] + } + arr[itemIndex].push(item) + } + }) + return arr + }, + imageWidth() { + return uni.$u.addUnit( + this.urls.length === 1 ? this.singleWidth : this.multipleSize + ) + }, + imageHeight() { + return uni.$u.addUnit( + this.urls.length === 1 ? this.singleHeight : this.multipleSize + ) + }, + // 姝ゅ彉閲忔棤瀹為檯鐢ㄩ�旓紝浠呬粎鏄负浜嗗埄鐢╟omputed鐗规�э紝璁╁叾鍦╱rls闀垮害绛夊彉鍖栨椂锛岄噸鏂拌绠楀浘鐗囩殑瀹藉害 + // 鍥犱负鐢ㄦ埛鍦ㄦ煇浜涚壒娈婄殑鎯呭喌涓嬶紝闇�瑕佽鏂囧瓧涓庣浉鍐岀殑瀹藉害鐩哥瓑锛屾墍浠ヨ繖閲屼簨浠剁殑褰㈠紡瀵瑰鍙戦�� + albumWidth() { + let width = 0 + if (this.urls.length === 1) { + width = this.singleWidth + } else { + width = + this.showUrls[0].length * this.multipleSize + + this.space * (this.showUrls[0].length - 1) + } + this.$emit('albumWidth', width) + return width + } + }, + methods: { + // 棰勮鍥剧墖 + onPreviewTap(url) { + const urls = this.urls.map((item) => { + return this.getSrc(item) + }) + uni.previewImage({ + current: url, + urls + }) + }, + // 鑾峰彇鍥剧墖鐨勮矾寰� + getSrc(item) { + return uni.$u.test.object(item) + ? (this.keyName && item[this.keyName]) || item.src + : item + }, + // 鍗曞浘鏃讹紝鑾峰彇鍥剧墖鐨勫昂瀵� + // 鍦ㄥ皬绋嬪簭涓紝闇�瑕佸皢缃戠粶鍥剧墖鐨勭殑鍩熷悕娣诲姞鍒板皬绋嬪簭鐨刣ownload鍩熷悕鎵嶅彲鑳借幏鍙栧昂瀵� + // 鍦ㄦ病鏈夋坊鍔犵殑鎯呭喌涓嬶紝璁╁崟鍥惧搴﹂粯璁や负鐩掑瓙鐨勪竴瀹氬搴�(singlePercent) + getImageRect() { + const src = this.getSrc(this.urls[0]) + uni.getImageInfo({ + src, + success: (res) => { + // 鍒ゆ柇鍥剧墖妯悜杩樻槸绔栧悜灞曠ず鏂瑰紡 + const isHorizotal = res.width >= res.height + this.singleWidth = isHorizotal + ? this.singleSize + : (res.width / res.height) * this.singleSize + this.singleHeight = !isHorizotal + ? this.singleSize + : (res.height / res.width) * this.singleWidth + }, + fail: () => { + this.getComponentWidth() + } + }) + }, + // 鑾峰彇缁勪欢鐨勫搴� + async getComponentWidth() { + // 寤舵椂涓�瀹氭椂闂达紝浠ヨ幏鍙杁om灏哄 + await uni.$u.sleep(30) + // #ifndef APP-NVUE + this.$uGetRect('.u-album__row').then((size) => { + this.singleWidth = size.width * this.singlePercent + }) + // #endif + + // #ifdef APP-NVUE + // 杩欓噷ref="u-album__row"鎵�鍦ㄧ殑鏍囩涓洪�氳繃for寰幆鍑烘潵锛屽鑷磘his.$refs['u-album__row']鏄竴涓暟缁� + const ref = this.$refs['u-album__row'][0] + ref && + dom.getComponentRect(ref, (res) => { + this.singleWidth = res.size.width * this.singlePercent + }) + // #endif + } + } +} +</script> + +<style lang="scss" scoped> +@import '../../libs/css/components.scss'; + +.u-album { + @include flex(column); + + &__row { + @include flex(row); + flex-wrap: wrap; + + &__wrapper { + position: relative; + + &__text { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.3); + @include flex(row); + justify-content: center; + align-items: center; + } + } + } +} +</style> \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/props.js new file mode 100644 index 0000000..4297e2c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/props.js @@ -0,0 +1,44 @@ +export default { + props: { + // 鏄剧ず鏂囧瓧 + title: { + type: String, + default: uni.$u.props.alert.title + }, + // 涓婚锛宻uccess/warning/info/error + type: { + type: String, + default: uni.$u.props.alert.type + }, + // 杈呭姪鎬ф枃瀛� + description: { + type: String, + default: uni.$u.props.alert.description + }, + // 鏄惁鍙叧闂� + closable: { + type: Boolean, + default: uni.$u.props.alert.closable + }, + // 鏄惁鏄剧ず鍥炬爣 + showIcon: { + type: Boolean, + default: uni.$u.props.alert.showIcon + }, + // 娴呮垨娣辫壊璋冿紝light-娴呰壊锛宒ark-娣辫壊 + effect: { + type: String, + default: uni.$u.props.alert.effect + }, + // 鏂囧瓧鏄惁灞呬腑 + center: { + type: Boolean, + default: uni.$u.props.alert.center + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.alert.fontSize + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/u-alert.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/u-alert.vue new file mode 100644 index 0000000..81f7d43 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-alert/u-alert.vue @@ -0,0 +1,243 @@ +<template> + <u-transition + mode="fade" + :show="show" + > + <view + class="u-alert" + :class="[`u-alert--${type}--${effect}`]" + @tap.stop="clickHandler" + :style="[$u.addStyle(customStyle)]" + > + <view + class="u-alert__icon" + v-if="showIcon" + > + <u-icon + :name="iconName" + size="18" + :color="iconColor" + ></u-icon> + </view> + <view + class="u-alert__content" + :style="[{ + paddingRight: closable ? '20px' : 0 + }]" + > + <text + class="u-alert__content__title" + v-if="title" + :style="[{ + fontSize: $u.addUnit(fontSize), + textAlign: center ? 'center' : 'left' + }]" + :class="[effect === 'dark' ? 'u-alert__text--dark' : `u-alert__text--${type}--light`]" + >{{ title }}</text> + <text + class="u-alert__content__desc" + v-if="description" + :style="[{ + fontSize: $u.addUnit(fontSize), + textAlign: center ? 'center' : 'left' + }]" + :class="[effect === 'dark' ? 'u-alert__text--dark' : `u-alert__text--${type}--light`]" + >{{ description }}</text> + </view> + <view + class="u-alert__close" + v-if="closable" + @tap.stop="closeHandler" + > + <u-icon + name="close" + :color="iconColor" + size="15" + ></u-icon> + </view> + </view> + </u-transition> +</template> + +<script> + import props from './props.js'; + /** + * Alert 璀﹀憡鎻愮ず + * @description 璀﹀憡鎻愮ず锛屽睍鐜伴渶瑕佸叧娉ㄧ殑淇℃伅銆� + * @tutorial https://www.uviewui.com/components/alertTips.html + * + * @property {String} title 鏄剧ず鐨勬枃瀛� + * @property {String} type 浣跨敤棰勮鐨勯鑹� 锛堥粯璁� 'warning' 锛� + * @property {String} description 杈呭姪鎬ф枃瀛楋紝棰滆壊姣攖itle娴呬竴鐐癸紝瀛楀彿涔熷皬涓�鐐癸紝鍙�� + * @property {Boolean} closable 鍏抽棴鎸夐挳(榛樿涓哄弶鍙穒con鍥炬爣) 锛堥粯璁� false 锛� + * @property {Boolean} showIcon 鏄惁鏄剧ず宸﹁竟鐨勮緟鍔╁浘鏍� 锛� 榛樿 false 锛� + * @property {String} effect 澶氬浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� 锛堥粯璁� 'light' 锛� + * @property {Boolean} center 鏂囧瓧鏄惁灞呬腑 锛堥粯璁� false 锛� + * @property {String | Number} fontSize 瀛椾綋澶у皬 锛堥粯璁� 14 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @event {Function} click 鐐瑰嚮缁勪欢鏃惰Е鍙� + * @example <u-alert :title="title" type = "warning" :closable="closable" :description = "description"></u-alert> + */ + export default { + name: 'u-alert', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + show: true + } + }, + computed: { + iconColor() { + return this.effect === 'light' ? this.type : '#fff' + }, + // 涓嶅悓涓婚瀵瑰簲涓嶅悓鐨勫浘鏍� + iconName() { + switch (this.type) { + case 'success': + return 'checkmark-circle-fill'; + break; + case 'error': + return 'close-circle-fill'; + break; + case 'warning': + return 'error-circle-fill'; + break; + case 'info': + return 'info-circle-fill'; + break; + case 'primary': + return 'more-circle-fill'; + break; + default: + return 'error-circle-fill'; + } + } + }, + methods: { + // 鐐瑰嚮鍐呭 + clickHandler() { + this.$emit('click') + }, + // 鐐瑰嚮鍏抽棴鎸夐挳 + closeHandler() { + this.show = false + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-alert { + position: relative; + background-color: $u-primary; + padding: 8px 10px; + @include flex(row); + align-items: center; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + + &--primary--dark { + background-color: $u-primary; + } + + &--primary--light { + background-color: #ecf5ff; + } + + &--error--dark { + background-color: $u-error; + } + + &--error--light { + background-color: #FEF0F0; + } + + &--success--dark { + background-color: $u-success; + } + + &--success--light { + background-color: #f5fff0; + } + + &--warning--dark { + background-color: $u-warning; + } + + &--warning--light { + background-color: #FDF6EC; + } + + &--info--dark { + background-color: $u-info; + } + + &--info--light { + background-color: #f4f4f5; + } + + &__icon { + margin-right: 5px; + } + + &__content { + @include flex(column); + flex: 1; + + &__title { + color: $u-main-color; + font-size: 14px; + font-weight: bold; + color: #fff; + margin-bottom: 2px; + } + + &__desc { + color: $u-main-color; + font-size: 14px; + flex-wrap: wrap; + color: #fff; + } + } + + &__title--dark, + &__desc--dark { + color: #FFFFFF; + } + + &__text--primary--light, + &__text--primary--light { + color: $u-primary; + } + + &__text--success--light, + &__text--success--light { + color: $u-success; + } + + &__text--warning--light, + &__text--warning--light { + color: $u-warning; + } + + &__text--error--light, + &__text--error--light { + color: $u-error; + } + + &__text--info--light, + &__text--info--light { + color: $u-info; + } + + &__close { + position: absolute; + top: 11px; + right: 10px; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/props.js new file mode 100644 index 0000000..58b42ac --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/props.js @@ -0,0 +1,52 @@ +export default { + props: { + // 澶村儚鍥剧墖缁� + urls: { + type: Array, + default: uni.$u.props.avatarGroup.urls + }, + // 鏈�澶氬睍绀虹殑澶村儚鏁伴噺 + maxCount: { + type: [String, Number], + default: uni.$u.props.avatarGroup.maxCount + }, + // 澶村儚褰㈢姸 + shape: { + type: String, + default: uni.$u.props.avatarGroup.shape + }, + // 鍥剧墖瑁佸壀妯″紡 + mode: { + type: String, + default: uni.$u.props.avatarGroup.mode + }, + // 瓒呭嚭maxCount鏃舵槸鍚︽樉绀烘煡鐪嬫洿澶氱殑鎻愮ず + showMore: { + type: Boolean, + default: uni.$u.props.avatarGroup.showMore + }, + // 澶村儚澶у皬 + size: { + type: [String, Number], + default: uni.$u.props.avatarGroup.size + }, + // 鎸囧畾浠庢暟缁勭殑瀵硅薄鍏冪礌涓鍙栧摢涓睘鎬т綔涓哄浘鐗囧湴鍧� + keyName: { + type: String, + default: uni.$u.props.avatarGroup.keyName + }, + // 澶村儚涔嬮棿鐨勯伄鎸℃瘮渚� + gap: { + type: [String, Number], + validator(value) { + return value >= 0 && value <= 1 + }, + default: uni.$u.props.avatarGroup.gap + }, + // 闇�棰濆鏄剧ず鐨勫�� + extraValue: { + type: [Number, String], + default: uni.$u.props.avatarGroup.extraValue + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/u-avatar-group.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/u-avatar-group.vue new file mode 100644 index 0000000..7e996d7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar-group/u-avatar-group.vue @@ -0,0 +1,103 @@ +<template> + <view class="u-avatar-group"> + <view + class="u-avatar-group__item" + v-for="(item, index) in showUrl" + :key="index" + :style="{ + marginLeft: index === 0 ? 0 : $u.addUnit(-size * gap) + }" + > + <u-avatar + :size="size" + :shape="shape" + :mode="mode" + :src="$u.test.object(item) ? keyName && item[keyName] || item.url : item" + ></u-avatar> + <view + class="u-avatar-group__item__show-more" + v-if="showMore && index === showUrl.length - 1 && (urls.length > maxCount || extraValue > 0)" + @tap="clickHandler" + > + <u--text + color="#ffffff" + :size="size * 0.4" + :text="`+${extraValue || urls.length - showUrl.length}`" + align="center" + customStyle="justify-content: center" + ></u--text> + </view> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * AvatarGroup 澶村儚缁� + * @description 鏈粍浠朵竴鑸敤浜庡睍绀哄ご鍍忕殑鍦版柟锛屽涓汉涓績锛屾垨鑰呰瘎璁哄垪琛ㄩ〉鐨勭敤鎴峰ご鍍忓睍绀虹瓑鍦烘墍銆� + * @tutorial https://www.uviewui.com/components/avatar.html + * + * @property {Array} urls 澶村儚鍥剧墖缁� 锛堥粯璁� [] 锛� + * @property {String | Number} maxCount 鏈�澶氬睍绀虹殑澶村儚鏁伴噺 锛� 榛樿 5 锛� + * @property {String} shape 澶村儚褰㈢姸锛� 'circle' (榛樿) | 'square' 锛� + * @property {String} mode 鍥剧墖瑁佸壀妯″紡锛堥粯璁� 'scaleToFill' 锛� + * @property {Boolean} showMore 瓒呭嚭maxCount鏃舵槸鍚︽樉绀烘煡鐪嬫洿澶氱殑鎻愮ず 锛堥粯璁� true 锛� + * @property {String | Number} size 澶村儚澶у皬 锛堥粯璁� 40 锛� + * @property {String} keyName 鎸囧畾浠庢暟缁勭殑瀵硅薄鍏冪礌涓鍙栧摢涓睘鎬т綔涓哄浘鐗囧湴鍧� + * @property {String | Number} gap 澶村儚涔嬮棿鐨勯伄鎸℃瘮渚嬶紙0.4浠h〃閬尅40%锛� 锛堥粯璁� 0.5 锛� + * @property {String | Number} extraValue 闇�棰濆鏄剧ず鐨勫�� + * @event {Function} showMore 澶村儚缁勬洿澶氱偣鍑� + * @example <u-avatar-group:urls="urls" size="35" gap="0.4" ></u-avatar-group:urls=> + */ + export default { + name: 'u-avatar-group', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + + } + }, + computed: { + showUrl() { + return this.urls.slice(0, this.maxCount) + } + }, + methods: { + clickHandler() { + this.$emit('showMore') + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-avatar-group { + @include flex; + + &__item { + margin-left: -10px; + position: relative; + + &--no-indent { + // 濡傛灉浣犳兂璐ㄧ枒浣滆�呬笉浼氫娇鐢�:first-child锛岃鏄庝綘澶勾杞伙紝鍥犱负nvue涓嶆敮鎸� + margin-left: 0; + } + + &__show-more { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + background-color: rgba(0, 0, 0, 0.3); + @include flex; + align-items: center; + justify-content: center; + border-radius: 100px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/props.js new file mode 100644 index 0000000..34ca0f2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/props.js @@ -0,0 +1,78 @@ +export default { + props: { + // 澶村儚鍥剧墖璺緞(涓嶈兘涓虹浉瀵硅矾寰�) + src: { + type: String, + default: uni.$u.props.avatar.src + }, + // 澶村儚褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.avatar.shape + }, + // 澶村儚灏哄 + size: { + type: [String, Number], + default: uni.$u.props.avatar.size + }, + // 瑁佸壀妯″紡 + mode: { + type: String, + default: uni.$u.props.avatar.mode + }, + // 鏄剧ず鐨勬枃瀛� + text: { + type: String, + default: uni.$u.props.avatar.text + }, + // 鑳屾櫙鑹� + bgColor: { + type: String, + default: uni.$u.props.avatar.bgColor + }, + // 鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.avatar.color + }, + // 鏂囧瓧澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.avatar.fontSize + }, + // 鏄剧ず鐨勫浘鏍� + icon: { + type: String, + default: uni.$u.props.avatar.icon + }, + // 鏄剧ず灏忕▼搴忓ご鍍忥紝鍙鐧惧害锛屽井淇★紝QQ灏忕▼搴忔湁鏁� + mpAvatar: { + type: Boolean, + default: uni.$u.props.avatar.mpAvatar + }, + // 鏄惁浣跨敤闅忔満鑳屾櫙鑹� + randomBgColor: { + type: Boolean, + default: uni.$u.props.avatar.randomBgColor + }, + // 鍔犺浇澶辫触鐨勯粯璁ゅご鍍�(缁勪欢鏈夊唴缃粯璁ゅ浘鐗�) + defaultUrl: { + type: String, + default: uni.$u.props.avatar.defaultUrl + }, + // 濡傛灉閰嶇疆浜唕andomBgColor涓簍rue锛屼笖閰嶇疆浜嗘鍊硷紝鍒欎粠榛樿鐨勮儗鏅壊鏁扮粍涓彇鍑哄搴旂储寮曠殑棰滆壊鍊硷紝鍙栧��0-19涔嬮棿 + colorIndex: { + type: [String, Number], + // 鏍¢獙鍙傛暟瑙勫垯锛岀储寮曞湪0-19涔嬮棿 + validator(n) { + return uni.$u.test.range(n, [0, 19]) || n === '' + }, + default: uni.$u.props.avatar.colorIndex + }, + // 缁勪欢鏍囪瘑绗� + name: { + type: String, + default: uni.$u.props.avatar.name + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/u-avatar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/u-avatar.vue new file mode 100644 index 0000000..3319be5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-avatar/u-avatar.vue @@ -0,0 +1,172 @@ +<template> + <view + class="u-avatar" + :class="[`u-avatar--${shape}`]" + :style="[{ + backgroundColor: (text || icon) ? (randomBgColor ? colors[colorIndex !== '' ? colorIndex : $u.random(0, 19)] : bgColor) : 'transparent', + width: $u.addUnit(size), + height: $u.addUnit(size), + }, $u.addStyle(customStyle)]" + @tap="clickHandler" + > + <slot> + <!-- #ifdef MP-WEIXIN || MP-QQ || MP-BAIDU --> + <open-data + v-if="mpAvatar && allowMp" + type="userAvatarUrl" + :style="[{ + width: $u.addUnit(size), + height: $u.addUnit(size) + }]" + /> + <!-- #endif --> + <!-- #ifndef MP-WEIXIN && MP-QQ && MP-BAIDU --> + <template v-if="mpAvatar && allowMp"></template> + <!-- #endif --> + <u-icon + v-else-if="icon" + :name="icon" + :size="fontSize" + :color="color" + ></u-icon> + <u--text + v-else-if="text" + :text="text" + :size="fontSize" + :color="color" + align="center" + customStyle="justify-content: center" + ></u--text> + <image + class="u-avatar__image" + v-else + :class="[`u-avatar__image--${shape}`]" + :src="avatarUrl || defaultUrl" + :mode="mode" + @error="errorHandler" + :style="[{ + width: $u.addUnit(size), + height: $u.addUnit(size) + }]" + ></image> + </slot> + </view> +</template> + +<script> + import props from './props.js'; + const base64Avatar = + "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCADIAMgDAREAAhEBAxEB/8QAcQABAQEAAwEBAAAAAAAAAAAAAAUEAQMGAgcBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwICBgkDBQAAAAAAAAABAhEDBCEFMVFBYXGREiKBscHRMkJSEyOh4XLxYjNDFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHbHFyZ/Dam+yLA+Z2L0Pjtyj2poD4AAAAAAAAAAAAAAAAAAAAAAAAKWFs9y6lcvvwQeqj8z9wFaziY1n/HbUX9XF97A7QAGXI23EvJ1goyfzR0YEfN269jeZ+a03pNe0DIAAAAAAAAAAAAAAAAAAAACvtO3RcVkXlWutuL9YFYAAAAAOJRjKLjJVi9GmB5/csH/mu1h/in8PU+QGMAAAAAAAAAAAAAAAAAAaMDG/6MmMH8C80+xAelSSVFolwQAAAAAAAHVlWI37ErUulaPk+hgeYnCUJuElSUXRrrQHAAAAAAAAAAAAAAAAABa2Oz4bM7r4zdF2ICmAAAAAAAAAg7zZ8GX41wuJP0rRgYAAAAAAAAAAAAAAAAAD0m2R8ODaXU33tsDSAAAAAAAAAlb9HyWZcnJd9PcBHAAAAAAAAAAAAAAAAAPS7e64Vn+KA0AAAAAAAAAJm+v8Ftf3ewCKAAAAAAAAAAAAAAAAAX9muqeGo9NttP06+0DcAAAAAAAAAjb7dTu2ra+VOT9P8AQCWAAAAAAAAAAAAAAAAAUNmyPt5Ltv4bui/kuAF0AAAAAAADiUlGLlJ0SVW+oDzOXfd/Ind6JPRdS0QHSAAAAAAAAAAAAAAAAAE2nVaNcGB6Lbs6OTao9LsF51z60BrAAAAAABJ3jOVHjW3r/sa9QEgAAAAAAAAAAAAAAAAAAAPu1duWriuW34ZR4MC9hbnZyEoy8l36XwfYBsAAADaSq9EuLAlZ+7xSdrGdW9Hc5dgEdtt1erfFgAAAAAAAAAAAAAAAAADVjbblX6NR8MH80tEBRs7HYivyzlN8lovaBPzduvY0m6eK10TXtAyAarO55lpJK54orolr+4GqO/Xaea1FvqbXvA+Z77kNeW3GPbV+4DJfzcm/pcm3H6Vou5AdAFLC2ed2Pjv1txa8sV8T6wOL+yZEKu1JXFy4MDBOE4ScZxcZLinoB8gAAAAAAAAAAAB242LeyJ+C3GvN9C7QLmJtePYpKS+5c+p8F2IDYAANJqj1T4oCfk7Nj3G5Wn9qXJax7gJ93Z82D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"; + /** + * Avatar 澶村儚 + * @description 鏈粍浠朵竴鑸敤浜庡睍绀哄ご鍍忕殑鍦版柟锛屽涓汉涓績锛屾垨鑰呰瘎璁哄垪琛ㄩ〉鐨勭敤鎴峰ご鍍忓睍绀虹瓑鍦烘墍銆� + * @tutorial https://www.uviewui.com/components/avatar.html + * + * @property {String} src 澶村儚璺緞锛屽鍔犺浇澶辫触锛屽皢浼氭樉绀洪粯璁ゅご鍍�(涓嶈兘涓虹浉瀵硅矾寰�) + * @property {String} shape 澶村儚褰㈢姸 锛� circle (榛樿) | square锛� + * @property {String | Number} size 澶村儚灏哄锛屽彲浠ヤ负鎸囧畾瀛楃涓�(large, default, mini)锛屾垨鑰呮暟鍊� 锛堥粯璁� 40 锛� + * @property {String} mode 澶村儚鍥剧墖鐨勮鍓被鍨嬶紝涓巙ni鐨刬mage缁勪欢鐨刴ode鍙傛暟涓�鑷达紝濡傛晥鏋滆揪涓嶅埌闇�姹傦紝鍙皾璇曚紶widthFix鍊� 锛堥粯璁� 'scaleToFill' 锛� + * @property {String} text 鐢ㄦ枃瀛楁浛浠e浘鐗囷紝绾у埆浼樺厛浜巗rc + * @property {String} bgColor 鑳屾櫙棰滆壊锛屼竴鑸樉绀烘枃瀛楁椂鐢� 锛堥粯璁� '#c0c4cc' 锛� + * @property {String} color 鏂囧瓧棰滆壊 锛堥粯璁� '#ffffff' 锛� + * @property {String | Number} fontSize 鏂囧瓧澶у皬 锛堥粯璁� 18 锛� + * @property {String} icon 鏄剧ず鐨勫浘鏍� + * @property {Boolean} mpAvatar 鏄剧ず灏忕▼搴忓ご鍍忥紝鍙鐧惧害锛屽井淇★紝QQ灏忕▼搴忔湁鏁� 锛堥粯璁� false 锛� + * @property {Boolean} randomBgColor 鏄惁浣跨敤闅忔満鑳屾櫙鑹� 锛堥粯璁� false 锛� + * @property {String} defaultUrl 鍔犺浇澶辫触鐨勯粯璁ゅご鍍�(缁勪欢鏈夊唴缃粯璁ゅ浘鐗�) + * @property {String | Number} colorIndex 濡傛灉閰嶇疆浜唕andomBgColor涓簍rue锛屼笖閰嶇疆浜嗘鍊硷紝鍒欎粠榛樿鐨勮儗鏅壊鏁扮粍涓彇鍑哄搴旂储寮曠殑棰滆壊鍊硷紝鍙栧��0-19涔嬮棿 + * @property {String} name 缁勪欢鏍囪瘑绗� 锛堥粯璁� 'level' 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click 鐐瑰嚮缁勪欢鏃惰Е鍙� index: 鐢ㄦ埛浼犻�掔殑鏍囪瘑绗� + * @example <u-avatar :src="src" mode="square"></u-avatar> + */ + export default { + name: 'u-avatar', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 濡傛灉閰嶇疆randomBgColor鍙傛暟涓簍rue锛屽湪鍥炬爣鎴栬�呮枃瀛楃殑妯″紡涓嬶紝浼氶殢鏈轰粠涓彇鍑轰竴涓鑹插�煎綋鍋氳儗鏅壊 + colors: ['#ffb34b', '#f2bba9', '#f7a196', '#f18080', '#88a867', '#bfbf39', '#89c152', '#94d554', '#f19ec2', + '#afaae4', '#e1b0df', '#c38cc1', '#72dcdc', '#9acdcb', '#77b1cc', '#448aca', '#86cefa', '#98d1ee', + '#73d1f1', + '#80a7dc' + ], + avatarUrl: this.src, + allowMp: false + } + }, + watch: { + // 鐩戝惉澶村儚src鐨勫彉鍖栵紝璧嬪�肩粰鍐呴儴鐨刟vatarUrl鍙橀噺锛屽洜涓哄浘鐗囧姞杞藉け璐ユ椂锛岄渶瑕佷慨鏀瑰浘鐗囩殑src涓洪粯璁ゅ�� + // 鑰岀粍浠跺唴閮ㄤ笉鑳界洿鎺ヤ慨鏀筽rops鐨勫�硷紝鎵�浠ラ渶瑕佷竴涓腑闂村彉閲� + src: { + immediate: true, + handler(newVal) { + this.avatarUrl = newVal + // 濡傛灉娌℃湁浼爏rc锛屽垯涓诲姩瑙﹀彂error浜嬩欢锛岀敤浜庢樉绀洪粯璁ょ殑澶村儚锛屽惁鍒檚rc涓�''绌哄瓧绗︾瓑鐨勬椂鍊欙紝浼氭棤鍐呭灞曠ず + if(!newVal) { + this.errorHandler() + } + } + } + }, + computed: { + imageStyle() { + const style = {} + return style + } + }, + created() { + this.init() + }, + methods: { + init() { + // 鐩墠鍙湁杩欏嚑涓皬绋嬪簭骞冲彴鍏锋湁open-data鏍囩 + // 鍏朵粬骞冲彴鍙互閫氳繃uni.getUserInfo绫讳技鎺ュ彛鑾峰彇淇℃伅锛屼絾鏄渶瑕佸脊绐楁巿鏉�(棣栨)锛屼笉鍚堢缁勪欢閫昏緫 + // 鏁呯洰鍓嶈嚜鍔ㄨ幏鍙栧皬绋嬪簭澶村儚鍙敮鎸佽繖鍑犱釜骞冲彴 + // #ifdef MP-WEIXIN || MP-QQ || MP-BAIDU + this.allowMp = true + // #endif + }, + // 鍒ゆ柇浼犲叆鐨刵ame灞炴�э紝鏄惁鍥剧墖璺緞锛屽彧瑕佸甫鏈�"/"鍧囪涓烘槸鍥剧墖褰㈠紡 + isImg() { + return this.src.indexOf('/') !== -1 + }, + // 鍥剧墖鍔犺浇鏃跺け璐ユ椂瑙﹀彂 + errorHandler() { + this.avatarUrl = this.defaultUrl || base64Avatar + }, + clickHandler() { + this.$emit('click', this.name) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-avatar { + @include flex; + align-items: center; + justify-content: center; + + &--circle { + border-radius: 100px; + } + + &--square { + border-radius: 4px; + } + + &__image { + &--circle { + border-radius: 100px; + } + + &--square { + border-radius: 4px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/props.js new file mode 100644 index 0000000..6c702c2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/props.js @@ -0,0 +1,54 @@ +export default { + props: { + // 杩斿洖椤堕儴鐨勫舰鐘讹紝circle-鍦嗗舰锛宻quare-鏂瑰舰 + mode: { + type: String, + default: uni.$u.props.backtop.mode + }, + // 鑷畾涔夊浘鏍� + icon: { + type: String, + default: uni.$u.props.backtop.icon + }, + // 鎻愮ず鏂囧瓧 + text: { + type: String, + default: uni.$u.props.backtop.text + }, + // 杩斿洖椤堕儴婊氬姩鏃堕棿 + duration: { + type: [String, Number], + default: uni.$u.props.backtop.duration + }, + // 婊氬姩璺濈 + scrollTop: { + type: [String, Number], + default: uni.$u.props.backtop.scrollTop + }, + // 璺濈椤堕儴澶氬皯璺濈鏄剧ず锛屽崟浣峱x + top: { + type: [String, Number], + default: uni.$u.props.backtop.top + }, + // 杩斿洖椤堕儴鎸夐挳鍒板簳閮ㄧ殑璺濈锛屽崟浣峱x + bottom: { + type: [String, Number], + default: uni.$u.props.backtop.bottom + }, + // 杩斿洖椤堕儴鎸夐挳鍒板彸杈圭殑璺濈锛屽崟浣峱x + right: { + type: [String, Number], + default: uni.$u.props.backtop.right + }, + // 灞傜骇 + zIndex: { + type: [String, Number], + default: uni.$u.props.backtop.zIndex + }, + // 鍥炬爣鐨勬牱寮忥紝瀵硅薄褰㈠紡 + iconStyle: { + type: Object, + default: uni.$u.props.backtop.iconStyle + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/u-back-top.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/u-back-top.vue new file mode 100644 index 0000000..2d07566 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-back-top/u-back-top.vue @@ -0,0 +1,129 @@ +<template> + <u-transition + mode="fade" + :customStyle="backTopStyle" + :show="show" + > + <view + class="u-back-top" + :style="[contentStyle]" + v-if="!$slots.default && !$slots.$default" + @click="backToTop" + > + <u-icon + :name="icon" + :custom-style="iconStyle" + ></u-icon> + <text + v-if="text" + class="u-back-top__text" + >{{text}}</text> + </view> + <slot v-else /> + </u-transition> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = weex.requireModule('dom') + // #endif + /** + * backTop 杩斿洖椤堕儴 + * @description 鏈粍浠朵竴涓敤浜庨暱椤甸潰锛屾粦鍔ㄤ竴瀹氳窛绂诲悗锛屽嚭鐜拌繑鍥為《閮ㄦ寜閽紝鏂逛究蹇�熻繑鍥為《閮ㄧ殑鍦烘櫙銆� + * @tutorial https://uviewui.com/components/backTop.html + * + * @property {String} mode 杩斿洖椤堕儴鐨勫舰鐘讹紝circle-鍦嗗舰锛宻quare-鏂瑰舰 锛堥粯璁� 'circle' 锛� + * @property {String} icon 鑷畾涔夊浘鏍� 锛堥粯璁� 'arrow-upward' 锛� 瑙佸畼鏂规枃妗gず渚� + * @property {String} text 鎻愮ず鏂囧瓧 + * @property {String | Number} duration 杩斿洖椤堕儴婊氬姩鏃堕棿 锛堥粯璁� 100锛� + * @property {String | Number} scrollTop 婊氬姩璺濈 锛堥粯璁� 0 锛� + * @property {String | Number} top 璺濈椤堕儴澶氬皯璺濈鏄剧ず锛屽崟浣峱x 锛堥粯璁� 400 锛� + * @property {String | Number} bottom 杩斿洖椤堕儴鎸夐挳鍒板簳閮ㄧ殑璺濈锛屽崟浣峱x 锛堥粯璁� 100 锛� + * @property {String | Number} right 杩斿洖椤堕儴鎸夐挳鍒板彸杈圭殑璺濈锛屽崟浣峱x 锛堥粯璁� 20 锛� + * @property {String | Number} zIndex 灞傜骇 锛堥粯璁� 9 锛� + * @property {Object<Object>} iconStyle 鍥炬爣鐨勬牱寮忥紝瀵硅薄褰㈠紡 锛堥粯璁� {color: '#909399',fontSize: '19px'}锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @example <u-back-top :scrollTop="scrollTop"></u-back-top> + */ + export default { + name: 'u-back-top', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + backTopStyle() { + // 鍔ㄧ敾缁勪欢鏍峰紡 + const style = { + bottom: uni.$u.addUnit(this.bottom), + right: uni.$u.addUnit(this.right), + width: '40px', + height: '40px', + position: 'fixed', + zIndex: 10, + } + return style + }, + show() { + return uni.$u.getPx(this.scrollTop) > uni.$u.getPx(this.top) + }, + contentStyle() { + const style = {} + let radius = 0 + // 鏄惁鍦嗗舰 + if(this.mode === 'circle') { + radius = '100px' + } else { + radius = '4px' + } + // 涓轰簡鍏煎瀹夊崜nvue锛屽彧鑳借繖涔堝垎寮�鍐� + style.borderTopLeftRadius = radius + style.borderTopRightRadius = radius + style.borderBottomLeftRadius = radius + style.borderBottomRightRadius = radius + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + methods: { + backToTop() { + // #ifdef APP-NVUE + if (!this.$parent.$refs['u-back-top']) { + uni.$u.error(`nvue椤甸潰闇�瑕佺粰椤甸潰鏈�澶栧眰鍏冪礌璁剧疆"ref='u-back-top'`) + } + dom.scrollToElement(this.$parent.$refs['u-back-top'], { + offset: 0 + }) + // #endif + + // #ifndef APP-NVUE + uni.pageScrollTo({ + scrollTop: 0, + duration: this.duration + }); + // #endif + this.$emit('click') + } + } + } +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; + $u-back-top-flex:1 !default; + $u-back-top-height:100% !default; + $u-back-top-background-color:#E1E1E1 !default; + $u-back-top-tips-font-size:12px !default; + .u-back-top { + @include flex; + flex-direction: column; + align-items: center; + flex:$u-back-top-flex; + height: $u-back-top-height; + justify-content: center; + background-color: $u-back-top-background-color; + + &__tips { + font-size:$u-back-top-tips-font-size; + transform: scale(0.8); + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/props.js new file mode 100644 index 0000000..74c032c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/props.js @@ -0,0 +1,72 @@ +export default { + props: { + // 鏄惁鏄剧ず鍦嗙偣 + isDot: { + type: Boolean, + default: uni.$u.props.badge.isDot + }, + // 鏄剧ず鐨勫唴瀹� + value: { + type: [Number, String], + default: uni.$u.props.badge.value + }, + // 鏄惁鏄剧ず + show: { + type: Boolean, + default: uni.$u.props.badge.show + }, + // 鏈�澶у�硷紝瓒呰繃鏈�澶у�间細鏄剧ず '{max}+' + max: { + type: [Number, String], + default: uni.$u.props.badge.max + }, + // 涓婚绫诲瀷锛宔rror|warning|success|primary + type: { + type: String, + default: uni.$u.props.badge.type + }, + // 褰撴暟鍊间负 0 鏃讹紝鏄惁灞曠ず Badge + showZero: { + type: Boolean, + default: uni.$u.props.badge.showZero + }, + // 鑳屾櫙棰滆壊锛屼紭鍏堢骇姣攖ype楂橈紝濡傝缃紝type鍙傛暟浼氬け鏁� + bgColor: { + type: [String, null], + default: uni.$u.props.badge.bgColor + }, + // 瀛椾綋棰滆壊 + color: { + type: [String, null], + default: uni.$u.props.badge.color + }, + // 寰芥爣褰㈢姸锛宑ircle-鍥涜鍧囦负鍦嗚锛宧orn-宸︿笅瑙掍负鐩磋 + shape: { + type: String, + default: uni.$u.props.badge.shape + }, + // 璁剧疆鏁板瓧鐨勬樉绀烘柟寮忥紝overflow|ellipsis|limit + // overflow浼氭牴鎹甿ax瀛楁鍒ゆ柇锛岃秴鍑烘樉绀篳${max}+` + // ellipsis浼氭牴鎹甿ax鍒ゆ柇锛岃秴鍑烘樉绀篳${max}...` + // limit浼氫緷鎹�1000浣滀负鍒ゆ柇鏉′欢锛岃秴鍑�1000锛屾樉绀篳${value/1000}K`锛屾瘮濡�2.2k銆�3.34w锛屾渶澶氫繚鐣�2浣嶅皬鏁� + numberType: { + type: String, + default: uni.$u.props.badge.numberType + }, + // 璁剧疆badge鐨勪綅缃亸绉伙紝鏍煎紡涓� [x, y]锛屼篃鍗宠缃殑涓簍op鍜宺ight鐨勫�硷紝absolute涓簍rue鏃舵湁鏁� + offset: { + type: Array, + default: uni.$u.props.badge.offset + }, + // 鏄惁鍙嶈浆鑳屾櫙鍜屽瓧浣撻鑹� + inverted: { + type: Boolean, + default: uni.$u.props.badge.inverted + }, + // 鏄惁缁濆瀹氫綅 + absolute: { + type: Boolean, + default: uni.$u.props.badge.absolute + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/u-badge.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/u-badge.vue new file mode 100644 index 0000000..53cfc81 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-badge/u-badge.vue @@ -0,0 +1,171 @@ +<template> + <text + v-if="show && ((Number(value) === 0 ? showZero : true) || isDot)" + :class="[isDot ? 'u-badge--dot' : 'u-badge--not-dot', inverted && 'u-badge--inverted', shape === 'horn' && 'u-badge--horn', `u-badge--${type}${inverted ? '--inverted' : ''}`]" + :style="[$u.addStyle(customStyle), badgeStyle]" + class="u-badge" + >{{ isDot ? '' :showValue }}</text> +</template> + +<script> + import props from './props.js'; + /** + * badge 寰芥爣鏁� + * @description 璇ョ粍浠朵竴鑸敤浜庡浘鏍囧彸涓婅鏄剧ず鏈鐨勬秷鎭暟閲忥紝鎻愮ず鐢ㄦ埛鐐瑰嚮锛屾湁鍦嗙偣鍜屽渾鍖呭惈鏂囧瓧涓ょ褰㈠紡銆� + * @tutorial https://uviewui.com/components/badge.html + * + * @property {Boolean} isDot 鏄惁鏄剧ず鍦嗙偣 锛堥粯璁� false 锛� + * @property {String | Number} value 鏄剧ず鐨勫唴瀹� + * @property {Boolean} show 鏄惁鏄剧ず 锛堥粯璁� true 锛� + * @property {String | Number} max 鏈�澶у�硷紝瓒呰繃鏈�澶у�间細鏄剧ず '{max}+' 锛堥粯璁�999锛� + * @property {String} type 涓婚绫诲瀷锛宔rror|warning|success|primary 锛堥粯璁� 'error' 锛� + * @property {Boolean} showZero 褰撴暟鍊间负 0 鏃讹紝鏄惁灞曠ず Badge 锛堥粯璁� false 锛� + * @property {String} bgColor 鑳屾櫙棰滆壊锛屼紭鍏堢骇姣攖ype楂橈紝濡傝缃紝type鍙傛暟浼氬け鏁� + * @property {String} color 瀛椾綋棰滆壊 锛堥粯璁� '#ffffff' 锛� + * @property {String} shape 寰芥爣褰㈢姸锛宑ircle-鍥涜鍧囦负鍦嗚锛宧orn-宸︿笅瑙掍负鐩磋 锛堥粯璁� 'circle' 锛� + * @property {String} numberType 璁剧疆鏁板瓧鐨勬樉绀烘柟寮忥紝overflow|ellipsis|limit 锛堥粯璁� 'overflow' 锛� + * @property {Array}} offset 璁剧疆badge鐨勪綅缃亸绉伙紝鏍煎紡涓� [x, y]锛屼篃鍗宠缃殑涓簍op鍜宺ight鐨勫�硷紝absolute涓簍rue鏃舵湁鏁� + * @property {Boolean} inverted 鏄惁鍙嶈浆鑳屾櫙鍜屽瓧浣撻鑹诧紙榛樿 false 锛� + * @property {Boolean} absolute 鏄惁缁濆瀹氫綅锛堥粯璁� false 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @example <u-badge :type="type" :count="count"></u-badge> + */ + export default { + name: 'u-badge', + mixins: [uni.$u.mpMixin, props, uni.$u.mixin], + computed: { + // 鏄惁灏哹adge涓績涓庣埗缁勪欢鍙充笂瑙掗噸鍚� + boxStyle() { + let style = {}; + return style; + }, + // 鏁翠釜缁勪欢鐨勬牱寮� + badgeStyle() { + const style = {} + if(this.color) { + style.color = this.color + } + if (this.bgColor && !this.inverted) { + style.backgroundColor = this.bgColor + } + if (this.absolute) { + style.position = 'absolute' + // 濡傛灉鏈夎缃畂ffset鍙傛暟 + if(this.offset.length) { + // top鍜宺ight鍒嗕负涓簅ffset鐨勭涓�涓拰绗簩涓�硷紝濡傛灉娌℃湁绗簩涓�硷紝鍒檙ight绛変簬top + const top = this.offset[0] + const right = this.offset[1] || top + style.top = uni.$u.addUnit(top) + style.right = uni.$u.addUnit(right) + } + } + return style + }, + showValue() { + switch (this.numberType) { + case "overflow": + return Number(this.value) > Number(this.max) ? this.max + "+" : this.value + break; + case "ellipsis": + return Number(this.value) > Number(this.max) ? "..." : this.value + break; + case "limit": + return Number(this.value) > 999 ? Number(this.value) >= 9999 ? + Math.floor(this.value / 1e4 * 100) / 100 + "w" : Math.floor(this.value / + 1e3 * 100) / 100 + "k" : this.value + break; + default: + return Number(this.value) + } + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + $u-badge-primary: $u-primary !default; + $u-badge-error: $u-error !default; + $u-badge-success: $u-success !default; + $u-badge-info: $u-info !default; + $u-badge-warning: $u-warning !default; + $u-badge-dot-radius: 100px !default; + $u-badge-dot-size: 8px !default; + $u-badge-dot-right: 4px !default; + $u-badge-dot-top: 0 !default; + $u-badge-text-font-size: 11px !default; + $u-badge-text-right: 10px !default; + $u-badge-text-padding: 2px 5px !default; + $u-badge-text-align: center !default; + $u-badge-text-color: #FFFFFF !default; + + .u-badge { + border-top-right-radius: $u-badge-dot-radius; + border-top-left-radius: $u-badge-dot-radius; + border-bottom-left-radius: $u-badge-dot-radius; + border-bottom-right-radius: $u-badge-dot-radius; + @include flex; + line-height: $u-badge-text-font-size; + text-align: $u-badge-text-align; + font-size: $u-badge-text-font-size; + color: $u-badge-text-color; + + &--dot { + height: $u-badge-dot-size; + width: $u-badge-dot-size; + } + + &--inverted { + font-size: 13px; + } + + &--not-dot { + padding: $u-badge-text-padding; + } + + &--horn { + border-bottom-left-radius: 0; + } + + &--primary { + background-color: $u-badge-primary; + } + + &--primary--inverted { + color: $u-badge-primary; + } + + &--error { + background-color: $u-badge-error; + } + + &--error--inverted { + color: $u-badge-error; + } + + &--success { + background-color: $u-badge-success; + } + + &--success--inverted { + color: $u-badge-success; + } + + &--info { + background-color: $u-badge-info; + } + + &--info--inverted { + color: $u-badge-info; + } + + &--warning { + background-color: $u-badge-warning; + } + + &--warning--inverted { + color: $u-badge-warning; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/nvue.scss b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/nvue.scss new file mode 100644 index 0000000..490db7d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/nvue.scss @@ -0,0 +1,46 @@ +$u-button-active-opacity:0.75 !default; +$u-button-loading-text-margin-left:4px !default; +$u-button-text-color: #FFFFFF !default; +$u-button-text-plain-error-color:$u-error !default; +$u-button-text-plain-warning-color:$u-warning !default; +$u-button-text-plain-success-color:$u-success !default; +$u-button-text-plain-info-color:$u-info !default; +$u-button-text-plain-primary-color:$u-primary !default; +.u-button { + &--active { + opacity: $u-button-active-opacity; + } + + &--active--plain { + background-color: rgb(217, 217, 217); + } + + &__loading-text { + margin-left:$u-button-loading-text-margin-left; + } + + &__text, + &__loading-text { + color:$u-button-text-color; + } + + &__text--plain--error { + color:$u-button-text-plain-error-color; + } + + &__text--plain--warning { + color:$u-button-text-plain-warning-color; + } + + &__text--plain--success{ + color:$u-button-text-plain-success-color; + } + + &__text--plain--info { + color:$u-button-text-plain-info-color; + } + + &__text--plain--primary { + color:$u-button-text-plain-primary-color; + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/props.js new file mode 100644 index 0000000..07fd844 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/props.js @@ -0,0 +1,161 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-16 10:04:04 + * @LastAuthor : LQ + * @lastTime : 2021-08-16 10:04:24 + * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js + */ +export default { + props: { + // 鏄惁缁嗚竟妗� + hairline: { + type: Boolean, + default: uni.$u.props.button.hairline + }, + // 鎸夐挳鐨勯缃牱寮忥紝info锛宲rimary锛宔rror锛寃arning锛宻uccess + type: { + type: String, + default: uni.$u.props.button.type + }, + // 鎸夐挳灏哄锛宭arge锛宯ormal锛宻mall锛宮ini + size: { + type: String, + default: uni.$u.props.button.size + }, + // 鎸夐挳褰㈢姸锛宑ircle锛堜袱杈逛负鍗婂渾锛夛紝square锛堝甫鍦嗚锛� + shape: { + type: String, + default: uni.$u.props.button.shape + }, + // 鎸夐挳鏄惁闀傜┖ + plain: { + type: Boolean, + default: uni.$u.props.button.plain + }, + // 鏄惁绂佹鐘舵�� + disabled: { + type: Boolean, + default: uni.$u.props.button.disabled + }, + // 鏄惁鍔犺浇涓� + loading: { + type: Boolean, + default: uni.$u.props.button.loading + }, + // 鍔犺浇涓彁绀烘枃瀛� + loadingText: { + type: [String, Number], + default: uni.$u.props.button.loadingText + }, + // 鍔犺浇鐘舵�佸浘鏍囩被鍨� + loadingMode: { + type: String, + default: uni.$u.props.button.loadingMode + }, + // 鍔犺浇鍥炬爣澶у皬 + loadingSize: { + type: [String, Number], + default: uni.$u.props.button.loadingSize + }, + // 寮�鏀捐兘鍔涳紝鍏蜂綋璇风湅uniapp绋冲畾鍏充簬button缁勪欢閮ㄥ垎璇存槑 + // https://uniapp.dcloud.io/component/button + openType: { + type: String, + default: uni.$u.props.button.openType + }, + // 鐢ㄤ簬 <form> 缁勪欢锛岀偣鍑诲垎鍒細瑙﹀彂 <form> 缁勪欢鐨� submit/reset 浜嬩欢 + // 鍙栧�间负submit锛堟彁浜よ〃鍗曪級锛宺eset锛堥噸缃〃鍗曪級 + formType: { + type: String, + default: uni.$u.props.button.formType + }, + // 鎵撳紑 APP 鏃讹紝鍚� APP 浼犻�掔殑鍙傛暟锛宱pen-type=launchApp鏃舵湁鏁� + // 鍙井淇″皬绋嬪簭銆丵Q灏忕▼搴忔湁鏁� + appParameter: { + type: String, + default: uni.$u.props.button.appParameter + }, + // 鎸囧畾鏄惁闃绘鏈妭鐐圭殑绁栧厛鑺傜偣鍑虹幇鐐瑰嚮鎬侊紝寰俊灏忕▼搴忔湁鏁� + hoverStopPropagation: { + type: Boolean, + default: uni.$u.props.button.hoverStopPropagation + }, + // 鎸囧畾杩斿洖鐢ㄦ埛淇℃伅鐨勮瑷�锛寊h_CN 绠�浣撲腑鏂囷紝zh_TW 绻佷綋涓枃锛宔n 鑻辨枃銆傚彧寰俊灏忕▼搴忔湁鏁� + lang: { + type: String, + default: uni.$u.props.button.lang + }, + // 浼氳瘽鏉ユ簮锛宱pen-type="contact"鏃舵湁鏁堛�傚彧寰俊灏忕▼搴忔湁鏁� + sessionFrom: { + type: String, + default: uni.$u.props.button.sessionFrom + }, + // 浼氳瘽鍐呮秷鎭崱鐗囨爣棰橈紝open-type="contact"鏃舵湁鏁� + // 榛樿褰撳墠鏍囬锛屽彧寰俊灏忕▼搴忔湁鏁� + sendMessageTitle: { + type: String, + default: uni.$u.props.button.sendMessageTitle + }, + // 浼氳瘽鍐呮秷鎭崱鐗囩偣鍑昏烦杞皬绋嬪簭璺緞锛宱pen-type="contact"鏃舵湁鏁� + // 榛樿褰撳墠鍒嗕韩璺緞锛屽彧寰俊灏忕▼搴忔湁鏁� + sendMessagePath: { + type: String, + default: uni.$u.props.button.sendMessagePath + }, + // 浼氳瘽鍐呮秷鎭崱鐗囧浘鐗囷紝open-type="contact"鏃舵湁鏁� + // 榛樿褰撳墠椤甸潰鎴浘锛屽彧寰俊灏忕▼搴忔湁鏁� + sendMessageImg: { + type: String, + default: uni.$u.props.button.sendMessageImg + }, + // 鏄惁鏄剧ず浼氳瘽鍐呮秷鎭崱鐗囷紝璁剧疆姝ゅ弬鏁颁负 true锛岀敤鎴疯繘鍏ュ鏈嶄細璇濅細鍦ㄥ彸涓嬭鏄剧ず"鍙兘瑕佸彂閫佺殑灏忕▼搴�"鎻愮ず锛� + // 鐢ㄦ埛鐐瑰嚮鍚庡彲浠ュ揩閫熷彂閫佸皬绋嬪簭娑堟伅锛宱pen-type="contact"鏃舵湁鏁� + showMessageCard: { + type: Boolean, + default: uni.$u.props.button.showMessageCard + }, + // 棰濆浼犲弬鍙傛暟锛岀敤浜庡皬绋嬪簭鐨刣ata-xxx灞炴�э紝閫氳繃target.dataset.name鑾峰彇 + dataName: { + type: String, + default: uni.$u.props.button.dataName + }, + // 鑺傛祦锛屼竴瀹氭椂闂村唴鍙兘瑙﹀彂涓�娆� + throttleTime: { + type: [String, Number], + default: uni.$u.props.button.throttleTime + }, + // 鎸変綇鍚庡涔呭嚭鐜扮偣鍑绘�侊紝鍗曚綅姣 + hoverStartTime: { + type: [String, Number], + default: uni.$u.props.button.hoverStartTime + }, + // 鎵嬫寚鏉惧紑鍚庣偣鍑绘�佷繚鐣欐椂闂达紝鍗曚綅姣 + hoverStayTime: { + type: [String, Number], + default: uni.$u.props.button.hoverStayTime + }, + // 鎸夐挳鏂囧瓧锛屼箣鎵�浠ラ�氳繃props浼犲叆锛屾槸鍥犱负slot浼犲叆鐨勮瘽 + // nvue涓棤娉曟帶鍒舵枃瀛楃殑鏍峰紡 + text: { + type: [String, Number], + default: uni.$u.props.button.text + }, + // 鎸夐挳鍥炬爣 + icon: { + type: String, + default: uni.$u.props.button.icon + }, + // 鎸夐挳鍥炬爣 + iconColor: { + type: String, + default: uni.$u.props.button.icon + }, + // 鎸夐挳棰滆壊锛屾敮鎸佷紶鍏inear-gradient娓愬彉鑹� + color: { + type: String, + default: uni.$u.props.button.color + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/u-button.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/u-button.vue new file mode 100644 index 0000000..5494351 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/u-button.vue @@ -0,0 +1,490 @@ +<template> + <!-- #ifndef APP-NVUE --> + <button + :hover-start-time="Number(hoverStartTime)" + :hover-stay-time="Number(hoverStayTime)" + :form-type="formType" + :open-type="openType" + :app-parameter="appParameter" + :hover-stop-propagation="hoverStopPropagation" + :send-message-title="sendMessageTitle" + :send-message-path="sendMessagePath" + :lang="lang" + :data-name="dataName" + :session-from="sessionFrom" + :send-message-img="sendMessageImg" + :show-message-card="showMessageCard" + @getphonenumber="getphonenumber" + @getuserinfo="getuserinfo" + @error="error" + @opensetting="opensetting" + @launchapp="launchapp" + :hover-class="!disabled && !loading ? 'u-button--active' : ''" + class="u-button u-reset-button" + :style="[baseColor, $u.addStyle(customStyle)]" + @tap="clickHandler" + :class="bemClass" + > + <template v-if="loading"> + <u-loading-icon + :mode="loadingMode" + :size="loadingSize * 1.15" + :color="loadingColor" + ></u-loading-icon> + <text + class="u-button__loading-text" + :style="[{ fontSize: textSize + 'px' }]" + >{{ loadingText || text }}</text + > + </template> + <template v-else> + <u-icon + v-if="icon" + :name="icon" + :color="iconColorCom" + :size="textSize * 1.35" + :customStyle="{ marginRight: '2px' }" + ></u-icon> + <slot> + <text + class="u-button__text" + :style="[{ fontSize: textSize + 'px' }]" + >{{ text }}</text + > + </slot> + </template> + </button> + <!-- #endif --> + + <!-- #ifdef APP-NVUE --> + <view + :hover-start-time="Number(hoverStartTime)" + :hover-stay-time="Number(hoverStayTime)" + class="u-button" + :hover-class=" + !disabled && !loading && !color && (plain || type === 'info') + ? 'u-button--active--plain' + : !disabled && !loading && !plain + ? 'u-button--active' + : '' + " + @tap="clickHandler" + :class="bemClass" + :style="[baseColor, $u.addStyle(customStyle)]" + > + <template v-if="loading"> + <u-loading-icon + :mode="loadingMode" + :size="loadingSize * 1.15" + :color="loadingColor" + ></u-loading-icon> + <text + class="u-button__loading-text" + :style="[nvueTextStyle]" + :class="[plain && `u-button__text--plain--${type}`]" + >{{ loadingText || text }}</text + > + </template> + <template v-else> + <u-icon + v-if="icon" + :name="icon" + :color="iconColorCom" + :size="textSize * 1.35" + ></u-icon> + <text + class="u-button__text" + :style="[ + { + marginLeft: icon ? '2px' : 0, + }, + nvueTextStyle, + ]" + :class="[plain && `u-button__text--plain--${type}`]" + >{{ text }}</text + > + </template> + </view> + <!-- #endif --> +</template> + +<script> +import button from "../../libs/mixin/button.js"; +import openType from "../../libs/mixin/openType.js"; +import props from "./props.js"; +/** + * button 鎸夐挳 + * @description Button 鎸夐挳 + * @tutorial https://www.uviewui.com/components/button.html + * + * @property {Boolean} hairline 鏄惁鏄剧ず鎸夐挳鐨勭粏杈规 (榛樿 true ) + * @property {String} type 鎸夐挳鐨勯缃牱寮忥紝info锛宲rimary锛宔rror锛寃arning锛宻uccess (榛樿 'info' ) + * @property {String} size 鎸夐挳灏哄锛宭arge锛宯ormal锛宮ini 锛堥粯璁� normal锛� + * @property {String} shape 鎸夐挳褰㈢姸锛宑ircle锛堜袱杈逛负鍗婂渾锛夛紝square锛堝甫鍦嗚锛� 锛堥粯璁� 'square' 锛� + * @property {Boolean} plain 鎸夐挳鏄惁闀傜┖锛岃儗鏅壊閫忔槑 锛堥粯璁� false锛� + * @property {Boolean} disabled 鏄惁绂佺敤 锛堥粯璁� false锛� + * @property {Boolean} loading 鎸夐挳鍚嶇О鍓嶆槸鍚﹀甫 loading 鍥炬爣(App-nvue 骞冲彴锛屽湪 ios 涓婁负闆姳锛孉ndroid涓婁负鍦嗗湀) 锛堥粯璁� false锛� + * @property {String | Number} loadingText 鍔犺浇涓彁绀烘枃瀛� + * @property {String} loadingMode 鍔犺浇鐘舵�佸浘鏍囩被鍨� 锛堥粯璁� 'spinner' 锛� + * @property {String | Number} loadingSize 鍔犺浇鍥炬爣澶у皬 锛堥粯璁� 15 锛� + * @property {String} openType 寮�鏀捐兘鍔涳紝鍏蜂綋璇风湅uniapp绋冲畾鍏充簬button缁勪欢閮ㄥ垎璇存槑 + * @property {String} formType 鐢ㄤ簬 <form> 缁勪欢锛岀偣鍑诲垎鍒細瑙﹀彂 <form> 缁勪欢鐨� submit/reset 浜嬩欢 + * @property {String} appParameter 鎵撳紑 APP 鏃讹紝鍚� APP 浼犻�掔殑鍙傛暟锛宱pen-type=launchApp鏃舵湁鏁� 锛堟敞锛氬彧寰俊灏忕▼搴忋�丵Q灏忕▼搴忔湁鏁堬級 + * @property {Boolean} hoverStopPropagation 鎸囧畾鏄惁闃绘鏈妭鐐圭殑绁栧厛鑺傜偣鍑虹幇鐐瑰嚮鎬侊紝寰俊灏忕▼搴忔湁鏁堬紙榛樿 true 锛� + * @property {String} lang 鎸囧畾杩斿洖鐢ㄦ埛淇℃伅鐨勮瑷�锛寊h_CN 绠�浣撲腑鏂囷紝zh_TW 绻佷綋涓枃锛宔n 鑻辨枃锛堥粯璁� en 锛� + * @property {String} sessionFrom 浼氳瘽鏉ユ簮锛宱penType="contact"鏃舵湁鏁� + * @property {String} sendMessageTitle 浼氳瘽鍐呮秷鎭崱鐗囨爣棰橈紝openType="contact"鏃舵湁鏁� + * @property {String} sendMessagePath 浼氳瘽鍐呮秷鎭崱鐗囩偣鍑昏烦杞皬绋嬪簭璺緞锛宱penType="contact"鏃舵湁鏁� + * @property {String} sendMessageImg 浼氳瘽鍐呮秷鎭崱鐗囧浘鐗囷紝openType="contact"鏃舵湁鏁� + * @property {Boolean} showMessageCard 鏄惁鏄剧ず浼氳瘽鍐呮秷鎭崱鐗囷紝璁剧疆姝ゅ弬鏁颁负 true锛岀敤鎴疯繘鍏ュ鏈嶄細璇濅細鍦ㄥ彸涓嬭鏄剧ず"鍙兘瑕佸彂閫佺殑灏忕▼搴�"鎻愮ず锛岀敤鎴风偣鍑诲悗鍙互蹇�熷彂閫佸皬绋嬪簭娑堟伅锛宱penType="contact"鏃舵湁鏁堬紙榛樿false锛� + * @property {String} dataName 棰濆浼犲弬鍙傛暟锛岀敤浜庡皬绋嬪簭鐨刣ata-xxx灞炴�э紝閫氳繃target.dataset.name鑾峰彇 + * @property {String | Number} throttleTime 鑺傛祦锛屼竴瀹氭椂闂村唴鍙兘瑙﹀彂涓�娆� 锛堥粯璁� 0 ) + * @property {String | Number} hoverStartTime 鎸変綇鍚庡涔呭嚭鐜扮偣鍑绘�侊紝鍗曚綅姣 锛堥粯璁� 0 ) + * @property {String | Number} hoverStayTime 鎵嬫寚鏉惧紑鍚庣偣鍑绘�佷繚鐣欐椂闂达紝鍗曚綅姣 锛堥粯璁� 200 ) + * @property {String | Number} text 鎸夐挳鏂囧瓧锛屼箣鎵�浠ラ�氳繃props浼犲叆锛屾槸鍥犱负slot浼犲叆鐨勮瘽锛堟敞锛歯vue涓棤娉曟帶鍒舵枃瀛楃殑鏍峰紡锛� + * @property {String} icon 鎸夐挳鍥炬爣 + * @property {String} iconColor 鎸夐挳鍥炬爣棰滆壊 + * @property {String} color 鎸夐挳棰滆壊锛屾敮鎸佷紶鍏inear-gradient娓愬彉鑹� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click 闈炵姝㈠苟涓旈潪鍔犺浇涓紝鎵嶈兘鐐瑰嚮 + * @event {Function} getphonenumber open-type="getPhoneNumber"鏃舵湁鏁� + * @event {Function} getuserinfo 鐢ㄦ埛鐐瑰嚮璇ユ寜閽椂锛屼細杩斿洖鑾峰彇鍒扮殑鐢ㄦ埛淇℃伅锛屼粠杩斿洖鍙傛暟鐨刣etail涓幏鍙栧埌鐨勫�煎悓uni.getUserInfo + * @event {Function} error 褰撲娇鐢ㄥ紑鏀捐兘鍔涙椂锛屽彂鐢熼敊璇殑鍥炶皟 + * @event {Function} opensetting 鍦ㄦ墦寮�鎺堟潈璁剧疆椤靛苟鍏抽棴鍚庡洖璋� + * @event {Function} launchapp 鎵撳紑 APP 鎴愬姛鐨勫洖璋� + * @example <u-button>鏈堣惤</u-button> + */ +export default { + name: "u-button", + // #ifdef MP + mixins: [uni.$u.mpMixin, uni.$u.mixin, button, openType, props], + // #endif + // #ifndef MP + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + // #endif + data() { + return {}; + }, + computed: { + // 鐢熸垚bem椋庢牸鐨勭被鍚� + bemClass() { + // this.bem涓轰竴涓猚omputed鍙橀噺锛屽湪mixin涓� + if (!this.color) { + return this.bem( + "button", + ["type", "shape", "size"], + ["disabled", "plain", "hairline"] + ); + } else { + // 鐢变簬nvue鐨勫師鍥狅紝鍦ㄦ湁color鍙傛暟鏃讹紝涓嶉渶瑕佷紶鍏ype锛屽惁鍒欎細鐢熸垚type鐩稿叧鐨勭被鍨嬶紝褰卞搷鏈�缁堢殑鏍峰紡 + return this.bem( + "button", + ["shape", "size"], + ["disabled", "plain", "hairline"] + ); + } + }, + loadingColor() { + if (this.plain) { + // 濡傛灉鏈夎缃甤olor鍊硷紝鍒欑敤color鍊硷紝鍚﹀垯浣跨敤type涓婚棰滆壊 + return this.color + ? this.color + : uni.$u.config.color[`u-${this.type}`]; + } + if (this.type === "info") { + return "#c9c9c9"; + } + return "rgb(200, 200, 200)"; + }, + iconColorCom() { + // 濡傛灉鏄晜绌虹姸鎬侊紝璁剧疆浜哻olor灏辩敤color鍊硷紝鍚﹀垯浣跨敤涓婚棰滆壊锛� + // u-icon鐨刢olor鑳芥帴鍙椾竴涓富棰橀鑹茬殑鍊� + if (this.iconColor) return this.iconColor; + if (this.plain) { + return this.color ? this.color : this.type; + } else { + return this.type === "info" ? "#000000" : "#ffffff"; + } + }, + baseColor() { + let style = {}; + if (this.color) { + // 閽堝鑷畾涔変簡color棰滆壊鐨勬儏鍐碉紝闀傜┖鐘舵�佷笅锛屽氨鏄敤鑷畾涔夌殑棰滆壊 + style.color = this.plain ? this.color : "white"; + if (!this.plain) { + // 闈為晜绌猴紝鑳屾櫙鑹蹭娇鐢ㄨ嚜瀹氫箟鐨勯鑹� + style["background-color"] = this.color; + } + if (this.color.indexOf("gradient") !== -1) { + // 濡傛灉鑷畾涔夌殑棰滆壊涓烘笎鍙樿壊锛屼笉鏄剧ず杈规锛屼互鍙婇�氳繃backgroundImage璁剧疆娓愬彉鑹� + // weex鏂囨。璇存槑鍙互鍐檅orderWidth鐨勫舰寮忥紝涓轰粈涔堣繖閲岄渶瑕佸垎寮�鍐欙紵 + // 鍥犱负weex鏄樋閲屽反宸翠负浜嗛儴闂ㄤ笟缁╄�冩牳鑰屽仛鐨勪綘鎳傜殑涓滆タ锛屾墍浠ラ渶瑕佽繖涔堝啓鎵嶆湁鏁� + style.borderTopWidth = 0; + style.borderRightWidth = 0; + style.borderBottomWidth = 0; + style.borderLeftWidth = 0; + if (!this.plain) { + style.backgroundImage = this.color; + } + } else { + // 闈炴笎鍙樿壊锛屽垯璁剧疆杈规鐩稿叧鐨勫睘鎬� + style.borderColor = this.color; + style.borderWidth = "1px"; + style.borderStyle = "solid"; + } + } + return style; + }, + // nvue鐗堟湰鎸夐挳鐨勫瓧浣撲笉浼氱户鎵跨埗缁勪欢鐨勯鑹诧紝闇�瑕佸姣忎竴涓猼ext缁勪欢杩涜鍗曠嫭鐨勮缃� + nvueTextStyle() { + let style = {}; + // 閽堝鑷畾涔変簡color棰滆壊鐨勬儏鍐碉紝闀傜┖鐘舵�佷笅锛屽氨鏄敤鑷畾涔夌殑棰滆壊 + if (this.type === "info") { + style.color = "#323233"; + } + if (this.color) { + style.color = this.plain ? this.color : "white"; + } + style.fontSize = this.textSize + "px"; + return style; + }, + // 瀛椾綋澶у皬 + textSize() { + let fontSize = 14, + { size } = this; + if (size === "large") fontSize = 16; + if (size === "normal") fontSize = 14; + if (size === "small") fontSize = 12; + if (size === "mini") fontSize = 10; + return fontSize; + }, + }, + methods: { + clickHandler() { + // 闈炵姝㈠苟涓旈潪鍔犺浇涓紝鎵嶈兘鐐瑰嚮 + if (!this.disabled && !this.loading) { + // 杩涜鑺傛祦鎺у埗锛屾瘡this.throttle姣鍐咃紝鍙湪寮�濮嬪鎵ц + uni.$u.throttle(() => { + this.$emit("click"); + }, this.throttleTime); + } + }, + // 涓嬮潰涓哄鎺niapp瀹樻柟鎸夐挳寮�鏀捐兘鍔涗簨浠跺洖璋冪殑瀵规帴 + getphonenumber(res) { + this.$emit("getphonenumber", res); + }, + getuserinfo(res) { + this.$emit("getuserinfo", res); + }, + error(res) { + this.$emit("error", res); + }, + opensetting(res) { + this.$emit("opensetting", res); + }, + launchapp(res) { + this.$emit("launchapp", res); + }, + }, +}; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +/* #ifndef APP-NVUE */ +@import "./vue.scss"; +/* #endif */ + +/* #ifdef APP-NVUE */ +@import "./nvue.scss"; +/* #endif */ + +$u-button-u-button-height: 40px !default; +$u-button-text-font-size: 15px !default; +$u-button-loading-text-font-size: 15px !default; +$u-button-loading-text-margin-left: 4px !default; +$u-button-large-width: 100% !default; +$u-button-large-height: 50px !default; +$u-button-normal-padding: 0 12px !default; +$u-button-large-padding: 0 15px !default; +$u-button-normal-font-size: 14px !default; +$u-button-small-min-width: 60px !default; +$u-button-small-height: 30px !default; +$u-button-small-padding: 0px 8px !default; +$u-button-mini-padding: 0px 8px !default; +$u-button-small-font-size: 12px !default; +$u-button-mini-height: 22px !default; +$u-button-mini-font-size: 10px !default; +$u-button-mini-min-width: 50px !default; +$u-button-disabled-opacity: 0.5 !default; +$u-button-info-color: #323233 !default; +$u-button-info-background-color: #fff !default; +$u-button-info-border-color: #ebedf0 !default; +$u-button-info-border-width: 1px !default; +$u-button-info-border-style: solid !default; +$u-button-success-color: #fff !default; +$u-button-success-background-color: $u-success !default; +$u-button-success-border-color: $u-button-success-background-color !default; +$u-button-success-border-width: 1px !default; +$u-button-success-border-style: solid !default; +$u-button-primary-color: #fff !default; +$u-button-primary-background-color: $u-primary !default; +$u-button-primary-border-color: $u-button-primary-background-color !default; +$u-button-primary-border-width: 1px !default; +$u-button-primary-border-style: solid !default; +$u-button-error-color: #fff !default; +$u-button-error-background-color: $u-error !default; +$u-button-error-border-color: $u-button-error-background-color !default; +$u-button-error-border-width: 1px !default; +$u-button-error-border-style: solid !default; +$u-button-warning-color: #fff !default; +$u-button-warning-background-color: $u-warning !default; +$u-button-warning-border-color: $u-button-warning-background-color !default; +$u-button-warning-border-width: 1px !default; +$u-button-warning-border-style: solid !default; +$u-button-block-width: 100% !default; +$u-button-circle-border-top-right-radius: 100px !default; +$u-button-circle-border-top-left-radius: 100px !default; +$u-button-circle-border-bottom-left-radius: 100px !default; +$u-button-circle-border-bottom-right-radius: 100px !default; +$u-button-square-border-top-right-radius: 3px !default; +$u-button-square-border-top-left-radius: 3px !default; +$u-button-square-border-bottom-left-radius: 3px !default; +$u-button-square-border-bottom-right-radius: 3px !default; +$u-button-icon-min-width: 1em !default; +$u-button-plain-background-color: #fff !default; +$u-button-hairline-border-width: 0.5px !default; + +.u-button { + height: $u-button-u-button-height; + position: relative; + align-items: center; + justify-content: center; + @include flex; + /* #ifndef APP-NVUE */ + box-sizing: border-box; + /* #endif */ + flex-direction: row; + + &__text { + font-size: $u-button-text-font-size; + } + + &__loading-text { + font-size: $u-button-loading-text-font-size; + margin-left: $u-button-loading-text-margin-left; + } + + &--large { + /* #ifndef APP-NVUE */ + width: $u-button-large-width; + /* #endif */ + height: $u-button-large-height; + padding: $u-button-large-padding; + } + + &--normal { + padding: $u-button-normal-padding; + font-size: $u-button-normal-font-size; + } + + &--small { + /* #ifndef APP-NVUE */ + min-width: $u-button-small-min-width; + /* #endif */ + height: $u-button-small-height; + padding: $u-button-small-padding; + font-size: $u-button-small-font-size; + } + + &--mini { + height: $u-button-mini-height; + font-size: $u-button-mini-font-size; + /* #ifndef APP-NVUE */ + min-width: $u-button-mini-min-width; + /* #endif */ + padding: $u-button-mini-padding; + } + + &--disabled { + opacity: $u-button-disabled-opacity; + } + + &--info { + color: $u-button-info-color; + background-color: $u-button-info-background-color; + border-color: $u-button-info-border-color; + border-width: $u-button-info-border-width; + border-style: $u-button-info-border-style; + } + + &--success { + color: $u-button-success-color; + background-color: $u-button-success-background-color; + border-color: $u-button-success-border-color; + border-width: $u-button-success-border-width; + border-style: $u-button-success-border-style; + } + + &--primary { + color: $u-button-primary-color; + background-color: $u-button-primary-background-color; + border-color: $u-button-primary-border-color; + border-width: $u-button-primary-border-width; + border-style: $u-button-primary-border-style; + } + + &--error { + color: $u-button-error-color; + background-color: $u-button-error-background-color; + border-color: $u-button-error-border-color; + border-width: $u-button-error-border-width; + border-style: $u-button-error-border-style; + } + + &--warning { + color: $u-button-warning-color; + background-color: $u-button-warning-background-color; + border-color: $u-button-warning-border-color; + border-width: $u-button-warning-border-width; + border-style: $u-button-warning-border-style; + } + + &--block { + @include flex; + width: $u-button-block-width; + } + + &--circle { + border-top-right-radius: $u-button-circle-border-top-right-radius; + border-top-left-radius: $u-button-circle-border-top-left-radius; + border-bottom-left-radius: $u-button-circle-border-bottom-left-radius; + border-bottom-right-radius: $u-button-circle-border-bottom-right-radius; + } + + &--square { + border-bottom-left-radius: $u-button-square-border-top-right-radius; + border-bottom-right-radius: $u-button-square-border-top-left-radius; + border-top-left-radius: $u-button-square-border-bottom-left-radius; + border-top-right-radius: $u-button-square-border-bottom-right-radius; + } + + &__icon { + /* #ifndef APP-NVUE */ + min-width: $u-button-icon-min-width; + line-height: inherit !important; + vertical-align: top; + /* #endif */ + } + + &--plain { + background-color: $u-button-plain-background-color; + } + + &--hairline { + border-width: $u-button-hairline-border-width !important; + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/vue.scss b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/vue.scss new file mode 100644 index 0000000..32019b2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-button/vue.scss @@ -0,0 +1,80 @@ +// nvue涓媓over-class鏃犳晥 +$u-button-before-top:50% !default; +$u-button-before-left:50% !default; +$u-button-before-width:100% !default; +$u-button-before-height:100% !default; +$u-button-before-transform:translate(-50%, -50%) !default; +$u-button-before-opacity:0 !default; +$u-button-before-background-color:#000 !default; +$u-button-before-border-color:#000 !default; +$u-button-active-before-opacity:.15 !default; +$u-button-icon-margin-left:4px !default; +$u-button-plain-u-button-info-color:$u-info; +$u-button-plain-u-button-success-color:$u-success; +$u-button-plain-u-button-error-color:$u-error; +$u-button-plain-u-button-warning-color:$u-error; + +.u-button { + width: 100%; + + &__text { + white-space: nowrap; + line-height: 1; + } + + &:before { + position: absolute; + top:$u-button-before-top; + left:$u-button-before-left; + width:$u-button-before-width; + height:$u-button-before-height; + border: inherit; + border-radius: inherit; + transform:$u-button-before-transform; + opacity:$u-button-before-opacity; + content: " "; + background-color:$u-button-before-background-color; + border-color:$u-button-before-border-color; + } + + &--active { + &:before { + opacity: .15 + } + } + + &__icon+&__text:not(:empty), + &__loading-text { + margin-left:$u-button-icon-margin-left; + } + + &--plain { + &.u-button--primary { + color: $u-primary; + } + } + + &--plain { + &.u-button--info { + color:$u-button-plain-u-button-info-color; + } + } + + &--plain { + &.u-button--success { + color:$u-button-plain-u-button-success-color; + } + } + + &--plain { + &.u-button--error { + color:$u-button-plain-u-button-error-color; + } + } + + &--plain { + &.u-button--warning { + color:$u-button-plain-u-button-warning-color; + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/header.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/header.vue new file mode 100644 index 0000000..dc4f7d0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/header.vue @@ -0,0 +1,99 @@ +<template> + <view class="u-calendar-header u-border-bottom"> + <text + class="u-calendar-header__title" + v-if="showTitle" + >{{ title }}</text> + <text + class="u-calendar-header__subtitle" + v-if="showSubtitle" + >{{ subtitle }}</text> + <view class="u-calendar-header__weekdays"> + <text class="u-calendar-header__weekdays__weekday">涓�</text> + <text class="u-calendar-header__weekdays__weekday">浜�</text> + <text class="u-calendar-header__weekdays__weekday">涓�</text> + <text class="u-calendar-header__weekdays__weekday">鍥�</text> + <text class="u-calendar-header__weekdays__weekday">浜�</text> + <text class="u-calendar-header__weekdays__weekday">鍏�</text> + <text class="u-calendar-header__weekdays__weekday">鏃�</text> + </view> + </view> +</template> + +<script> + export default { + name: 'u-calendar-header', + mixins: [uni.$u.mpMixin, uni.$u.mixin], + props: { + // 鏍囬 + title: { + type: String, + default: '' + }, + // 鍓爣棰� + subtitle: { + type: String, + default: '' + }, + // 鏄惁鏄剧ず鏍囬 + showTitle: { + type: Boolean, + default: true + }, + // 鏄惁鏄剧ず鍓爣棰� + showSubtitle: { + type: Boolean, + default: true + }, + }, + data() { + return { + + } + }, + methods: { + name() { + + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-calendar-header { + padding-bottom: 4px; + + &__title { + font-size: 16px; + color: $u-main-color; + text-align: center; + height: 42px; + line-height: 42px; + font-weight: bold; + } + + &__subtitle { + font-size: 14px; + color: $u-main-color; + height: 40px; + text-align: center; + line-height: 40px; + font-weight: bold; + } + + &__weekdays { + @include flex; + justify-content: space-between; + + &__weekday { + font-size: 13px; + color: $u-main-color; + line-height: 30px; + flex: 1; + text-align: center; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/month.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/month.vue new file mode 100644 index 0000000..c20937f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/month.vue @@ -0,0 +1,579 @@ +<template> + <view class="u-calendar-month-wrapper" ref="u-calendar-month-wrapper"> + <view v-for="(item, index) in months" :key="index" :class="[`u-calendar-month-${index}`]" + :ref="`u-calendar-month-${index}`" :id="`month-${index}`"> + <text v-if="index !== 0" class="u-calendar-month__title">{{ item.year }}骞磠{ item.month }}鏈�</text> + <view class="u-calendar-month__days"> + <view v-if="showMark" class="u-calendar-month__days__month-mark-wrapper"> + <text class="u-calendar-month__days__month-mark-wrapper__text">{{ item.month }}</text> + </view> + <view class="u-calendar-month__days__day" v-for="(item1, index1) in item.date" :key="index1" + :style="[dayStyle(index, index1, item1)]" @tap="clickHandler(index, index1, item1)" + :class="[item1.selected && 'u-calendar-month__days__day__select--selected']"> + <view class="u-calendar-month__days__day__select" :style="[daySelectStyle(index, index1, item1)]"> + <text class="u-calendar-month__days__day__select__info" + :class="[item1.disabled && 'u-calendar-month__days__day__select__info--disabled']" + :style="[textStyle(item1)]">{{ item1.day }}</text> + <text v-if="getBottomInfo(index, index1, item1)" + class="u-calendar-month__days__day__select__buttom-info" + :class="[item1.disabled && 'u-calendar-month__days__day__select__buttom-info--disabled']" + :style="[textStyle(item1)]">{{ getBottomInfo(index, index1, item1) }}</text> + <text v-if="item1.dot" class="u-calendar-month__days__day__select__dot"></text> + </view> + </view> + </view> + </view> + </view> +</template> + +<script> + // #ifdef APP-NVUE + // 鐢变簬nvue涓嶆敮鎸佺櫨鍒嗘瘮鍗曚綅锛岄渶瑕佹煡璇㈠搴︽潵璁$畻姣忎釜鏃ユ湡鐨勫搴� + const dom = uni.requireNativePlugin('dom') + // #endif + import dayjs from '../../libs/util/dayjs.js'; + export default { + name: 'u-calendar-month', + mixins: [uni.$u.mpMixin, uni.$u.mixin], + props: { + // 鏄惁鏄剧ず鏈堜唤鑳屾櫙鑹� + showMark: { + type: Boolean, + default: true + }, + // 涓婚鑹诧紝瀵瑰簳閮ㄦ寜閽拰閫変腑鏃ユ湡鏈夋晥 + color: { + type: String, + default: '#3c9cff' + }, + // 鏈堜唤鏁版嵁 + months: { + type: Array, + default: () => [] + }, + // 鏃ユ湡閫夋嫨绫诲瀷 + mode: { + type: String, + default: 'single' + }, + // 鏃ユ湡琛岄珮 + rowHeight: { + type: [String, Number], + default: 58 + }, + // mode=multiple鏃讹紝鏈�澶氬彲閫夊灏戜釜鏃ユ湡 + maxCount: { + type: [String, Number], + default: Infinity + }, + // mode=range鏃讹紝绗竴涓棩鏈熷簳閮ㄧ殑鎻愮ず鏂囧瓧 + startText: { + type: String, + default: '寮�濮�' + }, + // mode=range鏃讹紝鏈�鍚庝竴涓棩鏈熷簳閮ㄧ殑鎻愮ず鏂囧瓧 + endText: { + type: String, + default: '缁撴潫' + }, + // 榛樿閫変腑鐨勬棩鏈燂紝mode涓簃ultiple鎴杛ange鏄繀椤讳负鏁扮粍鏍煎紡 + defaultDate: { + type: [Array, String, Date], + default: null + }, + // 鏈�灏忕殑鍙�夋棩鏈� + minDate: { + type: [String, Number], + default: 0 + }, + // 鏈�澶у彲閫夋棩鏈� + maxDate: { + type: [String, Number], + default: 0 + }, + // 濡傛灉娌℃湁璁剧疆maxDate锛屽垯寰�鍚庢帹澶氬皯涓湀 + maxMonth: { + type: [String, Number], + default: 2 + }, + // 鏄惁涓哄彧璇荤姸鎬侊紝鍙鐘舵�佷笅绂佹閫夋嫨鏃ユ湡 + readonly: { + type: Boolean, + default: uni.$u.props.calendar.readonly + }, + // 鏃ユ湡鍖洪棿鏈�澶氬彲閫夊ぉ鏁帮紝榛樿鏃犻檺鍒讹紝mode = range鏃舵湁鏁� + maxRange: { + type: [Number, String], + default: Infinity + }, + // 鑼冨洿閫夋嫨瓒呰繃鏈�澶氬彲閫夊ぉ鏁版椂鐨勬彁绀烘枃妗堬紝mode = range鏃舵湁鏁� + rangePrompt: { + type: String, + default: '' + }, + // 鑼冨洿閫夋嫨瓒呰繃鏈�澶氬彲閫夊ぉ鏁版椂锛屾槸鍚﹀睍绀烘彁绀烘枃妗堬紝mode = range鏃舵湁鏁� + showRangePrompt: { + type: Boolean, + default: true + }, + // 鏄惁鍏佽鏃ユ湡鑼冨洿鐨勮捣姝㈡椂闂翠负鍚屼竴澶╋紝mode = range鏃舵湁鏁� + allowSameDay: { + type: Boolean, + default: false + } + }, + data() { + return { + // 姣忎釜鏃ユ湡鐨勫搴� + width: 0, + // 褰撳墠閫変腑鐨勬棩鏈焛tem + item: {}, + selected: [] + } + }, + watch: { + selectedChange: { + immediate: true, + handler(n) { + this.setDefaultDate() + } + } + }, + computed: { + // 澶氫釜鏉′欢鐨勫彉鍖栵紝浼氬紩璧烽�変腑鏃ユ湡鐨勫彉鍖栵紝杩欓噷缁熶竴绠$悊鐩戝惉 + selectedChange() { + return [this.minDate, this.maxDate, this.defaultDate] + }, + dayStyle(index1, index2, item) { + return (index1, index2, item) => { + const style = {} + let week = item.week + // 涓嶈繘琛屽洓鑸嶄簲鍏ョ殑褰㈠紡淇濈暀2浣嶅皬鏁� + const dayWidth = Number(parseFloat(this.width / 7).toFixed(3).slice(0, -1)) + // 寰楀嚭姣忎釜鏃ユ湡鐨勫搴� + // #ifdef APP-NVUE + style.width = uni.$u.addUnit(dayWidth) + // #endif + style.height = uni.$u.addUnit(this.rowHeight) + if (index2 === 0) { + // 鑾峰彇褰撳墠涓烘槦鏈熷嚑锛屽鏋滀负0锛屽垯涓烘槦鏈熷ぉ锛屽噺涓�涓烘瘡鏈堢涓�澶╂椂锛岄渶瑕佸悜宸﹀亸绉荤殑item涓暟 + week = (week === 0 ? 7 : week) - 1 + style.marginLeft = uni.$u.addUnit(week * dayWidth) + } + if (this.mode === 'range') { + // 涔嬫墍浠ラ渶瑕佽繖涔堝啓锛屾槸鍥犱负DCloud鍏徃鐨刬OS瀹㈡埛绔殑寮�鍙戣�呰兘鍔涙湁闄愬鑷寸殑bug + style.paddingLeft = 0 + style.paddingRight = 0 + style.paddingBottom = 0 + style.paddingTop = 0 + } + return style + } + }, + daySelectStyle() { + return (index1, index2, item) => { + let date = dayjs(item.date).format("YYYY-MM-DD"), + style = {} + // 鍒ゆ柇date鏄惁鍦╯elected鏁扮粍涓紝鍥犱负鏈堜唤鍙兘浼氶渶瑕佽ˉ0锛屾墍浠ヤ娇鐢╠ateSame鍒ゆ柇锛岃�屼笉鐢ㄦ暟缁勭殑includes鍒ゆ柇 + if (this.selected.some(item => this.dateSame(item, date))) { + style.backgroundColor = this.color + } + if (this.mode === 'single') { + if (date === this.selected[0]) { + // 鍥犱负闇�瑕佸nvue鐨勫吋瀹癸紝鍙兘杩欎箞鍐欙紝鏃犳硶缂╁啓锛屼篃鏃犳硶閫氳繃绫诲悕鎺у埗绛夌瓑 + style.borderTopLeftRadius = '3px' + style.borderBottomLeftRadius = '3px' + style.borderTopRightRadius = '3px' + style.borderBottomRightRadius = '3px' + } + } else if (this.mode === 'range') { + if (this.selected.length >= 2) { + const len = this.selected.length - 1 + // 绗竴涓棩鏈熻缃乏涓婅鍜屽乏涓嬭鐨勫渾瑙� + if (this.dateSame(date, this.selected[0])) { + style.borderTopLeftRadius = '3px' + style.borderBottomLeftRadius = '3px' + } + // 鏈�鍚庝竴涓棩鏈熻缃彸涓婅鍜屽彸涓嬭鐨勫渾瑙� + if (this.dateSame(date, this.selected[len])) { + style.borderTopRightRadius = '3px' + style.borderBottomRightRadius = '3px' + } + // 澶勪簬绗竴鍜屾渶鍚庝竴涓箣闂寸殑鏃ユ湡锛岃儗鏅壊璁剧疆涓烘祬鑹诧紝閫氳繃灏嗗搴旈鑹茶繘琛岀瓑鍒嗭紝鍐嶅彇鍏跺熬閮ㄧ殑棰滆壊鍊� + if (dayjs(date).isAfter(dayjs(this.selected[0])) && dayjs(date).isBefore(dayjs(this + .selected[len]))) { + style.backgroundColor = uni.$u.colorGradient(this.color, '#ffffff', 100)[90] + // 澧炲姞涓�涓�忔槑搴︼紝璁╄寖鍥村尯闂寸殑鑳屾櫙鑹蹭篃鑳界湅鍒板簳閮ㄧ殑mark姘村嵃瀛楃 + style.opacity = 0.7 + } + } else if (this.selected.length === 1) { + // 涔嬫墍浠ラ渶瑕佽繖涔堝啓锛屾槸鍥犱负DCloud鍏徃鐨刬OS瀹㈡埛绔殑寮�鍙戣�呰兘鍔涙湁闄愬鑷寸殑bug + // 杩涜杩樺師鎿嶄綔锛屽惁鍒欏湪nvue鐨刬OS锛寀ni-app鏈塨ug锛屼細瀵艰嚧璇″紓鐨勮〃鐜� + style.borderTopLeftRadius = '3px' + style.borderBottomLeftRadius = '3px' + } + } else { + if (this.selected.some(item => this.dateSame(item, date))) { + style.borderTopLeftRadius = '3px' + style.borderBottomLeftRadius = '3px' + style.borderTopRightRadius = '3px' + style.borderBottomRightRadius = '3px' + } + } + return style + } + }, + // 鏌愪釜鏃ユ湡鏄惁琚�変腑 + textStyle() { + return (item) => { + const date = dayjs(item.date).format("YYYY-MM-DD"), + style = {} + // 閫変腑鐨勬棩鏈燂紝鎻愮ず鏂囧瓧璁剧疆鐧借壊 + if (this.selected.some(item => this.dateSame(item, date))) { + style.color = '#ffffff' + } + if (this.mode === 'range') { + const len = this.selected.length - 1 + // 濡傛灉鏄寖鍥撮�夋嫨妯″紡锛岀涓�涓拰鏈�鍚庝竴涓箣闂寸殑鏃ユ湡锛屾枃瀛楅鑹茶缃负楂樹寒鐨勪富棰樿壊 + if (dayjs(date).isAfter(dayjs(this.selected[0])) && dayjs(date).isBefore(dayjs(this + .selected[len]))) { + style.color = this.color + } + } + return style + } + }, + // 鑾峰彇搴曢儴鐨勬彁绀烘枃瀛� + getBottomInfo() { + return (index1, index2, item) => { + const date = dayjs(item.date).format("YYYY-MM-DD") + const bottomInfo = item.bottomInfo + // 褰撲负鏃ユ湡鑼冨洿妯″紡鏃讹紝涓旈�夋嫨鐨勬棩鏈熶釜鏁板ぇ浜�0鏃� + if (this.mode === 'range' && this.selected.length > 0) { + if (this.selected.length === 1) { + // 閫夋嫨浜嗕竴涓棩鏈熸椂锛屽鏋滃綋鍓嶆棩鏈熶负鏁扮粍涓殑绗竴涓棩鏈燂紝鍒欐樉绀哄簳閮ㄦ枃瀛椾负鈥滃紑濮嬧�� + if (this.dateSame(date, this.selected[0])) return this.startText + else return bottomInfo + } else { + const len = this.selected.length - 1 + // 濡傛灉鏁扮粍涓殑鏃ユ湡澶т簬2涓椂锛岀涓�涓拰鏈�鍚庝竴涓樉绀轰负寮�濮嬪拰缁撴潫鏃ユ湡 + if (this.dateSame(date, this.selected[0]) && this.dateSame(date, this.selected[1]) && + len === 1) { + // 濡傛灉闀垮害涓�2锛屼笖绗竴涓瓑浜庣浜屼釜鏃ユ湡锛屽垯鎻愮ず璇斁鍦ㄥ悓涓�涓猧tem涓� + return `${this.startText}/${this.endText}` + } else if (this.dateSame(date, this.selected[0])) { + return this.startText + } else if (this.dateSame(date, this.selected[len])) { + return this.endText + } else { + return bottomInfo + } + } + } else { + return bottomInfo + } + } + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鍒濆鍖栭粯璁ら�変腑 + this.$emit('monthSelected', this.selected) + this.$nextTick(() => { + // 杩欓噷闇�瑕佸彟涓�涓欢鏃讹紝鍥犱负鑾峰彇瀹藉害鍚庯紝浼氳繘琛屾湀浠芥暟鎹覆鏌擄紝鍙湁娓叉煋瀹屾垚涔嬪悗锛屾墠鏈夌湡姝g殑楂樺害 + // 鍥犱负nvue涓嬶紝$nextTick骞朵笉鏄�100%鍙潬鐨� + uni.$u.sleep(10).then(() => { + this.getWrapperWidth() + this.getMonthRect() + }) + }) + }, + // 鍒ゆ柇涓や釜鏃ユ湡鏄惁鐩哥瓑 + dateSame(date1, date2) { + return dayjs(date1).isSame(dayjs(date2)) + }, + // 鑾峰彇鏈堜唤鏁版嵁鍖哄煙鐨勫搴︼紝鍥犱负nvue涓嶆敮鎸佺櫨鍒嗘瘮锛屾墍浠ユ棤娉曢�氳繃css璁剧疆姣忎釜鏃ユ湡item鐨勫搴� + getWrapperWidth() { + // #ifdef APP-NVUE + dom.getComponentRect(this.$refs['u-calendar-month-wrapper'], res => { + this.width = res.size.width + }) + // #endif + // #ifndef APP-NVUE + this.$uGetRect('.u-calendar-month-wrapper').then(size => { + this.width = size.width + }) + // #endif + }, + getMonthRect() { + // 鑾峰彇姣忎釜鏈堜唤鏁版嵁鐨勫昂瀵革紝鐢ㄤ簬鐖剁粍浠跺湪scroll-view婊氬姩浜嬩欢涓紝鐩戝惉褰撳墠婊氬姩鍒颁簡绗嚑涓湀浠� + const promiseAllArr = this.months.map((item, index) => this.getMonthRectByPromise( + `u-calendar-month-${index}`)) + // 涓�娆℃�ц繑鍥� + Promise.all(promiseAllArr).then( + sizes => { + let height = 1 + const topArr = [] + for (let i = 0; i < this.months.length; i++) { + // 娣诲姞鍒癿onths鏁扮粍涓紝渚泂croll-view婊氬姩浜嬩欢涓紝鍒ゆ柇褰撳墠婊氬姩鍒板摢涓湀浠� + topArr[i] = height + height += sizes[i].height + } + // 鐢变簬寰俊涓嬶紝鏃犳硶閫氳繃this.months[i].top鐨勫舰寮�(寮曠敤绫诲瀷)鍘讳慨鏀圭埗缁勪欢鐨刴onth鐨則op鍊硷紝鎵�浠ヤ娇鐢ㄤ簨浠跺舰寮忓澶栧彂鍑� + this.$emit('updateMonthTop', topArr) + }) + }, + // 鑾峰彇姣忎釜鏈堜唤鍖哄煙鐨勫昂瀵� + getMonthRectByPromise(el) { + // #ifndef APP-NVUE + // $uGetRect涓簎View鑷甫鐨勮妭鐐规煡璇㈢畝鍖栨柟娉曪紝璇﹁鏂囨。浠嬬粛锛歨ttps://www.uviewui.com/js/getRect.html + // 缁勪欢鍐呴儴涓�鑸敤this.$uGetRect锛屽澶栫殑涓簎ni.$u.getRect锛屼簩鑰呭姛鑳戒竴鑷达紝鍚嶇О涓嶅悓 + return new Promise(resolve => { + this.$uGetRect(`.${el}`).then(size => { + resolve(size) + }) + }) + // #endif + + // #ifdef APP-NVUE + // nvue涓嬶紝浣跨敤dom妯″潡鏌ヨ鍏冪礌楂樺害 + // 杩斿洖涓�涓猵romise锛岃璋冪敤姝ゆ柟娉曠殑涓讳綋鑳戒娇鐢╰hen鍥炶皟 + return new Promise(resolve => { + dom.getComponentRect(this.$refs[el][0], res => { + resolve(res.size) + }) + }) + // #endif + }, + // 鐐瑰嚮鏌愪竴涓棩鏈� + clickHandler(index1, index2, item) { + if (this.readonly) { + return; + } + this.item = item + const date = dayjs(item.date).format("YYYY-MM-DD") + if (item.disabled) return + // 瀵逛笂涓�娆¢�夋嫨鐨勬棩鏈熸暟缁勮繘琛屾繁搴﹀厠闅� + let selected = uni.$u.deepClone(this.selected) + if (this.mode === 'single') { + // 鍗曢�夋儏鍐典笅锛岃鏁扮粍涓殑鍏冪礌涓哄綋鍓嶇偣鍑荤殑鏃ユ湡 + selected = [date] + } else if (this.mode === 'multiple') { + if (selected.some(item => this.dateSame(item, date))) { + // 濡傛灉鐐瑰嚮鐨勬棩鏈熷凡鍦ㄦ暟缁勪腑锛屽垯杩涜绉婚櫎鎿嶄綔锛屼篃灏辨槸杈惧埌鍙嶉�夌殑鏁堟灉 + const itemIndex = selected.findIndex(item => item === date) + selected.splice(itemIndex, 1) + } else { + // 濡傛灉鐐瑰嚮鐨勬棩鏈熶笉鍦ㄦ暟缁勪腑锛屼笖宸叉湁鐨勯暱搴﹀皬浜庢�诲彲閫夐暱搴︽椂锛屽垯娣诲姞鍒版暟缁勪腑鍘� + if (selected.length < this.maxCount) selected.push(date) + } + } else { + // 閫夋嫨鍖洪棿褰㈠紡 + if (selected.length === 0 || selected.length >= 2) { + // 濡傛灉鍘熸潵灏变负0鎴栬�呭ぇ浜�2鐨勯暱搴︼紝鍒欏綋鍓嶇偣鍑荤殑鏃ユ湡锛屽氨鏄紑濮嬫棩鏈� + selected = [date] + } else if (selected.length === 1) { + // 濡傛灉宸茬粡閫夋嫨浜嗗紑濮嬫棩鏈� + const existsDate = selected[0] + // 濡傛灉褰撳墠閫夋嫨鐨勬棩鏈熷皬浜庝笂涓�娆¢�夋嫨鐨勬棩鏈燂紝鍒欏綋鍓嶇殑鏃ユ湡瀹氫负寮�濮嬫棩鏈� + if (dayjs(date).isBefore(existsDate)) { + selected = [date] + } else if (dayjs(date).isAfter(existsDate)) { + // 褰撳墠鏃ユ湡鍑忓幓鏈�澶у彲閫夌殑鏃ユ湡澶╂暟锛屽鏋滃ぇ浜庤捣濮嬫椂闂达紝鍒欒繘琛屾彁绀� + if(dayjs(dayjs(date).subtract(this.maxRange, 'day')).isAfter(dayjs(selected[0])) && this.showRangePrompt) { + if(this.rangePrompt) { + uni.$u.toast(this.rangePrompt) + } else { + uni.$u.toast(`閫夋嫨澶╂暟涓嶈兘瓒呰繃 ${this.maxRange} 澶ー) + } + return + } + // 濡傛灉褰撳墠鏃ユ湡澶т簬宸叉湁鏃ユ湡锛屽皢褰撳墠鐨勬坊鍔犲埌鏁扮粍灏鹃儴 + selected.push(date) + const startDate = selected[0] + const endDate = selected[1] + const arr = [] + let i = 0 + do { + // 灏嗗紑濮嬪拰缁撴潫鏃ユ湡涔嬮棿鐨勬棩鏈熸坊鍔犲埌鏁扮粍涓� + arr.push(dayjs(startDate).add(i, 'day').format("YYYY-MM-DD")) + i++ + // 绱姞鐨勬棩鏈熷皬浜庣粨鏉熸棩鏈熸椂锛岀户缁笅涓�娆$殑寰幆 + } while (dayjs(startDate).add(i, 'day').isBefore(dayjs(endDate))) + // 涓轰簡涓�娆℃�т慨鏀规暟缁勶紝閬垮厤computed涓娆¤Е鍙戯紝杩欓噷鎵嶇敤arr鍙橀噺涓�娆℃�ц祴鍊肩殑鏂瑰紡锛屽悓鏃跺皢鏈�鍚庝竴涓棩鏈熸坊鍔犺繎鏉� + arr.push(endDate) + selected = arr + } else { + // 閫夋嫨鍖洪棿鏃讹紝鍙湁涓�涓棩鏈熺殑鎯呭喌涓嬶紝涓斾笉鍏佽閫夋嫨璧锋涓哄悓涓�澶╃殑璇濓紝涓嶅厑璁搁�夋嫨鑷繁 + if (selected[0] === date && !this.allowSameDay) return + selected.push(date) + } + } + } + this.setSelected(selected) + }, + // 璁剧疆榛樿鏃ユ湡 + setDefaultDate() { + if (!this.defaultDate) { + // 濡傛灉娌℃湁璁剧疆榛樿鏃ユ湡锛屽垯灏嗗綋澶╂棩鏈熻缃负榛樿閫変腑鐨勬棩鏈� + const selected = [dayjs().format("YYYY-MM-DD")] + return this.setSelected(selected, false) + } + let defaultDate = [] + const minDate = this.minDate || dayjs().format("YYYY-MM-DD") + const maxDate = this.maxDate || dayjs(minDate).add(this.maxMonth - 1, 'month').format("YYYY-MM-DD") + if (this.mode === 'single') { + // 鍗曢�夋ā寮忥紝鍙互鏄瓧绗︿覆鎴栨暟缁勶紝Date瀵硅薄绛� + if (!uni.$u.test.array(this.defaultDate)) { + defaultDate = [dayjs(this.defaultDate).format("YYYY-MM-DD")] + } else { + defaultDate = [this.defaultDate[0]] + } + } else { + // 濡傛灉涓洪潪鏁扮粍锛屽垯涓嶆墽琛� + if (!uni.$u.test.array(this.defaultDate)) return + defaultDate = this.defaultDate + } + // 杩囨护鐢ㄦ埛浼犻�掔殑榛樿鏁扮粍锛屽彇鍑哄彧鍦ㄥ彲鍏佽鏈�澶у�间笌鏈�灏忓�间箣闂寸殑鍏冪礌 + defaultDate = defaultDate.filter(item => { + return dayjs(item).isAfter(dayjs(minDate).subtract(1, 'day')) && dayjs(item).isBefore(dayjs( + maxDate).add(1, 'day')) + }) + this.setSelected(defaultDate, false) + }, + setSelected(selected, event = true) { + this.selected = selected + event && this.$emit('monthSelected', this.selected) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-calendar-month-wrapper { + margin-top: 4px; + } + + .u-calendar-month { + + &__title { + font-size: 14px; + line-height: 42px; + height: 42px; + color: $u-main-color; + text-align: center; + font-weight: bold; + } + + &__days { + position: relative; + @include flex; + flex-wrap: wrap; + + &__month-mark-wrapper { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + @include flex; + justify-content: center; + align-items: center; + + &__text { + font-size: 155px; + color: rgba(231, 232, 234, 0.83); + } + } + + &__day { + @include flex; + padding: 2px; + /* #ifndef APP-NVUE */ + // vue涓嬩娇鐢╟ss杩涜瀹藉害璁$畻锛屽洜涓烘煇浜涘畨鍗撴満浼氭棤娉曡繘琛宩s鑾峰彇鐖跺厓绱犲搴﹁繘琛岃绠楀緱鍑猴紝浼氭湁鍋忕Щ + width: calc(100% / 7); + box-sizing: border-box; + /* #endif */ + + &__select { + flex: 1; + @include flex; + align-items: center; + justify-content: center; + position: relative; + + &__dot { + width: 7px; + height: 7px; + border-radius: 100px; + background-color: $u-error; + position: absolute; + top: 12px; + right: 7px; + } + + &__buttom-info { + color: $u-content-color; + text-align: center; + position: absolute; + bottom: 5px; + font-size: 10px; + text-align: center; + left: 0; + right: 0; + + &--selected { + color: #ffffff; + } + + &--disabled { + color: #cacbcd; + } + } + + &__info { + text-align: center; + font-size: 16px; + + &--selected { + color: #ffffff; + } + + &--disabled { + color: #cacbcd; + } + } + + &--selected { + background-color: $u-primary; + @include flex; + justify-content: center; + align-items: center; + flex: 1; + border-radius: 3px; + } + + &--range-selected { + opacity: 0.3; + border-radius: 0; + } + + &--range-start-selected { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + } + + &--range-end-selected { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/props.js new file mode 100644 index 0000000..2ad7bc7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/props.js @@ -0,0 +1,144 @@ +export default { + props: { + // 鏃ュ巻椤堕儴鏍囬 + title: { + type: String, + default: uni.$u.props.calendar.title + }, + // 鏄惁鏄剧ず鏍囬 + showTitle: { + type: Boolean, + default: uni.$u.props.calendar.showTitle + }, + // 鏄惁鏄剧ず鍓爣棰� + showSubtitle: { + type: Boolean, + default: uni.$u.props.calendar.showSubtitle + }, + // 鏃ユ湡绫诲瀷閫夋嫨锛宻ingle-閫夋嫨鍗曚釜鏃ユ湡锛宮ultiple-鍙互閫夋嫨澶氫釜鏃ユ湡锛宺ange-閫夋嫨鏃ユ湡鑼冨洿 + mode: { + type: String, + default: uni.$u.props.calendar.mode + }, + // mode=range鏃讹紝绗竴涓棩鏈熷簳閮ㄧ殑鎻愮ず鏂囧瓧 + startText: { + type: String, + default: uni.$u.props.calendar.startText + }, + // mode=range鏃讹紝鏈�鍚庝竴涓棩鏈熷簳閮ㄧ殑鎻愮ず鏂囧瓧 + endText: { + type: String, + default: uni.$u.props.calendar.endText + }, + // 鑷畾涔夊垪琛� + customList: { + type: Array, + default: uni.$u.props.calendar.customList + }, + // 涓婚鑹诧紝瀵瑰簳閮ㄦ寜閽拰閫変腑鏃ユ湡鏈夋晥 + color: { + type: String, + default: uni.$u.props.calendar.color + }, + // 鏈�灏忕殑鍙�夋棩鏈� + minDate: { + type: [String, Number], + default: uni.$u.props.calendar.minDate + }, + // 鏈�澶у彲閫夋棩鏈� + maxDate: { + type: [String, Number], + default: uni.$u.props.calendar.maxDate + }, + // 榛樿閫変腑鐨勬棩鏈燂紝mode涓簃ultiple鎴杛ange鏄繀椤讳负鏁扮粍鏍煎紡 + defaultDate: { + type: [Array, String, Date, null], + default: uni.$u.props.calendar.defaultDate + }, + // mode=multiple鏃讹紝鏈�澶氬彲閫夊灏戜釜鏃ユ湡 + maxCount: { + type: [String, Number], + default: uni.$u.props.calendar.maxCount + }, + // 鏃ユ湡琛岄珮 + rowHeight: { + type: [String, Number], + default: uni.$u.props.calendar.rowHeight + }, + // 鏃ユ湡鏍煎紡鍖栧嚱鏁� + formatter: { + type: [Function, null], + default: uni.$u.props.calendar.formatter + }, + // 鏄惁鏄剧ず鍐滃巻 + showLunar: { + type: Boolean, + default: uni.$u.props.calendar.showLunar + }, + // 鏄惁鏄剧ず鏈堜唤鑳屾櫙鑹� + showMark: { + type: Boolean, + default: uni.$u.props.calendar.showMark + }, + // 纭畾鎸夐挳鐨勬枃瀛� + confirmText: { + type: String, + default: uni.$u.props.calendar.confirmText + }, + // 纭鎸夐挳澶勪簬绂佺敤鐘舵�佹椂鐨勬枃瀛� + confirmDisabledText: { + type: String, + default: uni.$u.props.calendar.confirmDisabledText + }, + // 鏄惁鏄剧ず鏃ュ巻寮圭獥 + show: { + type: Boolean, + default: uni.$u.props.calendar.show + }, + // 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴鏃ュ巻 + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.calendar.closeOnClickOverlay + }, + // 鏄惁涓哄彧璇荤姸鎬侊紝鍙鐘舵�佷笅绂佹閫夋嫨鏃ユ湡 + readonly: { + type: Boolean, + default: uni.$u.props.calendar.readonly + }, + // 鏄惁灞曠ず纭鎸夐挳 + showConfirm: { + type: Boolean, + default: uni.$u.props.calendar.showConfirm + }, + // 鏃ユ湡鍖洪棿鏈�澶氬彲閫夊ぉ鏁帮紝榛樿鏃犻檺鍒讹紝mode = range鏃舵湁鏁� + maxRange: { + type: [Number, String], + default: uni.$u.props.calendar.maxRange + }, + // 鑼冨洿閫夋嫨瓒呰繃鏈�澶氬彲閫夊ぉ鏁版椂鐨勬彁绀烘枃妗堬紝mode = range鏃舵湁鏁� + rangePrompt: { + type: String, + default: uni.$u.props.calendar.rangePrompt + }, + // 鑼冨洿閫夋嫨瓒呰繃鏈�澶氬彲閫夊ぉ鏁版椂锛屾槸鍚﹀睍绀烘彁绀烘枃妗堬紝mode = range鏃舵湁鏁� + showRangePrompt: { + type: Boolean, + default: uni.$u.props.calendar.showRangePrompt + }, + // 鏄惁鍏佽鏃ユ湡鑼冨洿鐨勮捣姝㈡椂闂翠负鍚屼竴澶╋紝mode = range鏃舵湁鏁� + allowSameDay: { + type: Boolean, + default: uni.$u.props.calendar.allowSameDay + }, + // 鍦嗚鍊� + round: { + type: [Boolean, String, Number], + default: uni.$u.props.calendar.round + }, + // 鏈�澶氬睍绀烘湀浠芥暟閲� + monthNum: { + type: [Number, String], + default: 3 + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/u-calendar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/u-calendar.vue new file mode 100644 index 0000000..511f993 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/u-calendar.vue @@ -0,0 +1,384 @@ +<template> + <u-popup + :show="show" + mode="bottom" + closeable + @close="close" + :round="round" + :closeOnClickOverlay="closeOnClickOverlay" + > + <view class="u-calendar"> + <uHeader + :title="title" + :subtitle="subtitle" + :showSubtitle="showSubtitle" + :showTitle="showTitle" + ></uHeader> + <scroll-view + :style="{ + height: $u.addUnit(listHeight) + }" + scroll-y + @scroll="onScroll" + :scroll-top="scrollTop" + :scrollIntoView="scrollIntoView" + > + <uMonth + :color="color" + :rowHeight="rowHeight" + :showMark="showMark" + :months="months" + :mode="mode" + :maxCount="maxCount" + :startText="startText" + :endText="endText" + :defaultDate="defaultDate" + :minDate="innerMinDate" + :maxDate="innerMaxDate" + :maxMonth="monthNum" + :readonly="readonly" + :maxRange="maxRange" + :rangePrompt="rangePrompt" + :showRangePrompt="showRangePrompt" + :allowSameDay="allowSameDay" + ref="month" + @monthSelected="monthSelected" + @updateMonthTop="updateMonthTop" + ></uMonth> + </scroll-view> + <slot name="footer" v-if="showConfirm"> + <view class="u-calendar__confirm"> + <u-button + shape="circle" + :text=" + buttonDisabled ? confirmDisabledText : confirmText + " + :color="color" + @click="confirm" + :disabled="buttonDisabled" + ></u-button> + </view> + </slot> + </view> + </u-popup> +</template> + +<script> +import uHeader from './header.vue' +import uMonth from './month.vue' +import props from './props.js' +import util from './util.js' +import dayjs from '../../libs/util/dayjs.js' +import Calendar from '../../libs/util/calendar.js' +/** + * Calendar 鏃ュ巻 + * @description 姝ょ粍浠剁敤浜庡崟涓�夋嫨鏃ユ湡锛岃寖鍥撮�夋嫨鏃ユ湡绛夛紝鏃ュ巻琚寘瑁瑰湪搴曢儴寮硅捣鐨勫鍣ㄤ腑. + * @tutorial https://www.uviewui.com/components/calendar.html + * + * @property {String} title 鏍囬鍐呭 (榛樿 鏃ユ湡閫夋嫨 ) + * @property {Boolean} showTitle 鏄惁鏄剧ず鏍囬 (榛樿 true ) + * @property {Boolean} showSubtitle 鏄惁鏄剧ず鍓爣棰� (榛樿 true ) + * @property {String} mode 鏃ユ湡绫诲瀷閫夋嫨 single-閫夋嫨鍗曚釜鏃ユ湡锛宮ultiple-鍙互閫夋嫨澶氫釜鏃ユ湡锛宺ange-閫夋嫨鏃ユ湡鑼冨洿 锛� 榛樿 'single' ) + * @property {String} startText mode=range鏃讹紝绗竴涓棩鏈熷簳閮ㄧ殑鎻愮ず鏂囧瓧 (榛樿 '寮�濮�' ) + * @property {String} endText mode=range鏃讹紝鏈�鍚庝竴涓棩鏈熷簳閮ㄧ殑鎻愮ず鏂囧瓧 (榛樿 '缁撴潫' ) + * @property {Array} customList 鑷畾涔夊垪琛� + * @property {String} color 涓婚鑹诧紝瀵瑰簳閮ㄦ寜閽拰閫変腑鏃ユ湡鏈夋晥 (榛樿 鈥�#3c9cff' ) + * @property {String | Number} minDate 鏈�灏忕殑鍙�夋棩鏈� (榛樿 0 ) + * @property {String | Number} maxDate 鏈�澶у彲閫夋棩鏈� (榛樿 0 ) + * @property {Array | String| Date} defaultDate 榛樿閫変腑鐨勬棩鏈燂紝mode涓簃ultiple鎴杛ange鏄繀椤讳负鏁扮粍鏍煎紡 + * @property {String | Number} maxCount mode=multiple鏃讹紝鏈�澶氬彲閫夊灏戜釜鏃ユ湡 (榛樿 Number.MAX_SAFE_INTEGER ) + * @property {String | Number} rowHeight 鏃ユ湡琛岄珮 (榛樿 56 ) + * @property {Function} formatter 鏃ユ湡鏍煎紡鍖栧嚱鏁� + * @property {Boolean} showLunar 鏄惁鏄剧ず鍐滃巻 (榛樿 false ) + * @property {Boolean} showMark 鏄惁鏄剧ず鏈堜唤鑳屾櫙鑹� (榛樿 true ) + * @property {String} confirmText 纭畾鎸夐挳鐨勬枃瀛� (榛樿 '纭畾' ) + * @property {String} confirmDisabledText 纭鎸夐挳澶勪簬绂佺敤鐘舵�佹椂鐨勬枃瀛� (榛樿 '纭畾' ) + * @property {Boolean} show 鏄惁鏄剧ず鏃ュ巻寮圭獥 (榛樿 false ) + * @property {Boolean} closeOnClickOverlay 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴鏃ュ巻 (榛樿 false ) + * @property {Boolean} readonly 鏄惁涓哄彧璇荤姸鎬侊紝鍙鐘舵�佷笅绂佹閫夋嫨鏃ユ湡 (榛樿 false ) + * @property {String | Number} maxRange 鏃ユ湡鍖洪棿鏈�澶氬彲閫夊ぉ鏁帮紝榛樿鏃犻檺鍒讹紝mode = range鏃舵湁鏁� + * @property {String} rangePrompt 鑼冨洿閫夋嫨瓒呰繃鏈�澶氬彲閫夊ぉ鏁版椂鐨勬彁绀烘枃妗堬紝mode = range鏃舵湁鏁� + * @property {Boolean} showRangePrompt 鑼冨洿閫夋嫨瓒呰繃鏈�澶氬彲閫夊ぉ鏁版椂锛屾槸鍚﹀睍绀烘彁绀烘枃妗堬紝mode = range鏃舵湁鏁� (榛樿 true ) + * @property {Boolean} allowSameDay 鏄惁鍏佽鏃ユ湡鑼冨洿鐨勮捣姝㈡椂闂翠负鍚屼竴澶╋紝mode = range鏃舵湁鏁� (榛樿 false ) + * @property {Number|String} round 鍦嗚鍊硷紝榛樿鏃犲渾瑙� (榛樿 0 ) + * @property {Number|String} monthNum 鏈�澶氬睍绀虹殑鏈堜唤鏁伴噺 (榛樿 3 ) + * + * @event {Function()} confirm 鐐瑰嚮纭畾鎸夐挳鏃惰Е鍙� 閫夋嫨鏃ユ湡鐩稿叧鐨勮繑鍥炲弬鏁� + * @event {Function()} close 鏃ュ巻鍏抽棴鏃惰Е鍙� 鍙畾涔夐〉闈㈠叧闂椂鐨勫洖璋冧簨浠� + * @example <u-calendar :defaultDate="defaultDateMultiple" :show="show" mode="multiple" @confirm="confirm"> + </u-calendar> + * */ +export default { + name: 'u-calendar', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + components: { + uHeader, + uMonth + }, + data() { + return { + // 闇�瑕佹樉绀虹殑鏈堜唤鐨勬暟缁� + months: [], + // 鍦ㄦ湀浠芥粴鍔ㄥ尯鍩熶腑锛屽綋鍓嶈鍥句腑鏈堜唤鐨刬ndex绱㈠紩 + monthIndex: 0, + // 鏈堜唤婊氬姩鍖哄煙鐨勯珮搴� + listHeight: 0, + // month缁勪欢涓�夋嫨鐨勬棩鏈熸暟缁� + selected: [], + scrollIntoView: '', + scrollTop:0, + // 杩囨护澶勭悊鏂规硶 + innerFormatter: (value) => value + } + }, + watch: { + selectedChange: { + immediate: true, + handler(n) { + this.setMonth() + } + }, + // 鎵撳紑寮圭獥鏃讹紝璁剧疆鏈堜唤鏁版嵁 + show: { + immediate: true, + handler(n) { + this.setMonth() + } + } + }, + computed: { + // 鐢变簬maxDate鍜宮inDate鍙互涓哄瓧绗︿覆(2021-10-10)锛屾垨鑰呮暟鍊�(鏃堕棿鎴�)锛屼絾鏄痙ayjs濡傛灉鎺ュ彈瀛楃涓插舰寮忕殑鏃堕棿鎴充細鏈夐棶棰橈紝杩欓噷杩涜澶勭悊 + innerMaxDate() { + return uni.$u.test.number(this.maxDate) + ? Number(this.maxDate) + : this.maxDate + }, + innerMinDate() { + return uni.$u.test.number(this.minDate) + ? Number(this.minDate) + : this.minDate + }, + // 澶氫釜鏉′欢鐨勫彉鍖栵紝浼氬紩璧烽�変腑鏃ユ湡鐨勫彉鍖栵紝杩欓噷缁熶竴绠$悊鐩戝惉 + selectedChange() { + return [this.innerMinDate, this.innerMaxDate, this.defaultDate] + }, + subtitle() { + // 鍒濆鍖栨椂锛宼his.months涓虹┖鏁扮粍锛屾墍浠ラ渶瑕佺壒鍒垽鏂鐞� + if (this.months.length) { + return `${this.months[this.monthIndex].year}骞�${ + this.months[this.monthIndex].month + }鏈坄 + } else { + return '' + } + }, + buttonDisabled() { + // 濡傛灉涓簉ange绫诲瀷锛屼笖閫夋嫨鐨勬棩鏈熶釜鏁颁笉瓒�1涓椂锛岃搴曢儴鐨勬寜閽嚭浜巇isabled鐘舵�� + if (this.mode === 'range') { + if (this.selected.length <= 1) { + return true + } else { + return false + } + } else { + return false + } + } + }, + mounted() { + this.start = Date.now() + this.init() + }, + methods: { + // 鍦ㄥ井淇″皬绋嬪簭涓紝涓嶆敮鎸佸皢鍑芥暟褰撳仛props鍙傛暟锛屾晠鍙兘閫氳繃ref褰㈠紡璋冪敤 + setFormatter(e) { + this.innerFormatter = e + }, + // month缁勪欢鍐呴儴閫夋嫨鏃ユ湡鍚庯紝閫氳繃浜嬩欢閫氱煡缁欑埗缁勪欢 + monthSelected(e) { + this.selected = e + if (!this.showConfirm) { + // 鍦ㄤ笉闇�瑕佺‘璁ゆ寜閽殑鎯呭喌涓嬶紝濡傛灉涓哄崟閫夛紝鎴栬�呰寖鍥村閫変笖宸查�夐暱搴﹀ぇ浜�2锛屽垯鐩存帴杩涜杩旇繕 + if ( + this.mode === 'multiple' || + this.mode === 'single' || + (this.mode === 'range' && this.selected.length >= 2) + ) { + this.$emit('confirm', this.selected) + } + } + }, + init() { + // 鏍¢獙maxDate锛屼笉鑳藉皬浜巑inDate + if ( + this.innerMaxDate && + this.innerMinDate && + new Date(this.innerMaxDate).getTime() < new Date(this.innerMinDate).getTime() + ) { + return uni.$u.error('maxDate涓嶈兘灏忎簬minDate') + } + // 婊氬姩鍖哄煙鐨勯珮搴� + this.listHeight = this.rowHeight * 5 + 30 + this.setMonth() + }, + close() { + this.$emit('close') + }, + // 鐐瑰嚮纭畾鎸夐挳 + confirm() { + if (!this.buttonDisabled) { + this.$emit('confirm', this.selected) + } + }, + // 鑾峰緱涓や釜鏃ユ湡涔嬮棿鐨勬湀浠芥暟 + getMonths(minDate, maxDate) { + const minYear = dayjs(minDate).year() + const minMonth = dayjs(minDate).month() + 1 + const maxYear = dayjs(maxDate).year() + const maxMonth = dayjs(maxDate).month() + 1 + return (maxYear - minYear) * 12 + (maxMonth - minMonth) + 1 + }, + // 璁剧疆鏈堜唤鏁版嵁 + setMonth() { + // 鏈�灏忔棩鏈熺殑姣鏁� + const minDate = this.innerMinDate || dayjs().valueOf() + // 濡傛灉娌℃湁鎸囧畾鏈�澶ф棩鏈燂紝鍒欏線鍚庢帹3涓湀 + const maxDate = + this.innerMaxDate || + dayjs(minDate) + .add(this.monthNum - 1, 'month') + .valueOf() + // 鏈�澶ф渶灏忔湀浠戒箣闂寸殑鍏辨湁澶氬皯涓湀浠斤紝 + const months = uni.$u.range( + 1, + this.monthNum, + this.getMonths(minDate, maxDate) + ) + // 鍏堟竻绌烘暟缁� + this.months = [] + for (let i = 0; i < months; i++) { + this.months.push({ + date: new Array( + dayjs(minDate).add(i, 'month').daysInMonth() + ) + .fill(1) + .map((item, index) => { + // 鏃ユ湡锛屽彇鍊�1-31 + let day = index + 1 + // 鏄熸湡锛�0-6锛�0涓哄懆鏃� + const week = dayjs(minDate) + .add(i, 'month') + .date(day) + .day() + const date = dayjs(minDate) + .add(i, 'month') + .date(day) + .format('YYYY-MM-DD') + let bottomInfo = '' + if (this.showLunar) { + // 灏嗘棩鏈熻浆涓哄啘鍘嗘牸寮� + const lunar = Calendar.solar2lunar( + dayjs(date).year(), + dayjs(date).month() + 1, + dayjs(date).date() + ) + bottomInfo = lunar.IDayCn + } + let config = { + day, + week, + // 灏忎簬鏈�灏忓厑璁哥殑鏃ユ湡锛屾垨鑰呭ぇ浜庢渶澶х殑鏃ユ湡锛屽垯璁剧疆涓篸isabled鐘舵�� + disabled: + dayjs(date).isBefore( + dayjs(minDate).format('YYYY-MM-DD') + ) || + dayjs(date).isAfter( + dayjs(maxDate).format('YYYY-MM-DD') + ), + // 杩斿洖涓�涓棩鏈熷璞★紝渚涘閮ㄧ殑formatter鑾峰彇褰撳墠鏃ユ湡鐨勫勾鏈堟棩绛変俊鎭紝杩涜鍔犲伐澶勭悊 + date: new Date(date), + bottomInfo, + dot: false, + month: + dayjs(minDate).add(i, 'month').month() + 1 + } + const formatter = + this.formatter || this.innerFormatter + return formatter(config) + }), + // 褰撳墠鎵�灞炵殑鏈堜唤 + month: dayjs(minDate).add(i, 'month').month() + 1, + // 褰撳墠骞翠唤 + year: dayjs(minDate).add(i, 'month').year() + }) + } + + }, + // 婊氬姩鍒伴粯璁よ缃殑鏈堜唤 + scrollIntoDefaultMonth(selected) { + // 鏌ヨ榛樿鏃ユ湡鍦ㄥ彲閫夊垪琛ㄧ殑涓嬫爣 + const _index = this.months.findIndex(({ + year, + month + }) => { + month = uni.$u.padZero(month) + return `${year}-${month}` === selected + }) + if (_index !== -1) { + // #ifndef MP-WEIXIN + this.$nextTick(() => { + this.scrollIntoView = `month-${_index}` + }) + // #endif + // #ifdef MP-WEIXIN + this.scrollTop = this.months[_index].top || 0; + // #endif + } + }, + // scroll-view婊氬姩鐩戝惉 + onScroll(event) { + // 涓嶅厑璁稿皬浜�0鐨勬粴鍔ㄥ�硷紝濡傛灉scroll-view鍒伴《浜嗭紝缁х画涓嬫媺锛屼細鍑虹幇璐熸暟鍊� + const scrollTop = Math.max(0, event.detail.scrollTop) + // 灏嗗綋鍓嶆粴鍔ㄦ潯鏁板�硷紝闄や互婊氬姩鍖哄煙鐨勯珮搴︼紝鍙互寰楀嚭褰撳墠婊氬姩鍒颁簡鍝竴涓湀浠界殑绱㈠紩 + for (let i = 0; i < this.months.length; i++) { + if (scrollTop >= (this.months[i].top || this.listHeight)) { + this.monthIndex = i + } + } + }, + // 鏇存柊鏈堜唤鐨則op鍊� + updateMonthTop(topArr = []) { + // 璁剧疆瀵瑰簲鏈堜唤鐨則op鍊硷紝鐢ㄤ簬onScroll鏂规硶鏇存柊鏈堜唤 + topArr.map((item, index) => { + this.months[index].top = item + }) + + // 鑾峰彇榛樿鏃ユ湡鐨勪笅鏍� + if (!this.defaultDate) { + // 濡傛灉娌℃湁璁剧疆榛樿鏃ユ湡锛屽垯灏嗗綋澶╂棩鏈熻缃负榛樿閫変腑鐨勬棩鏈� + const selected = dayjs().format("YYYY-MM") + this.scrollIntoDefaultMonth(selected) + return + } + let selected = dayjs().format("YYYY-MM"); + // 鍗曢�夋ā寮忥紝鍙互鏄瓧绗︿覆鎴栨暟缁勶紝Date瀵硅薄绛� + if (!uni.$u.test.array(this.defaultDate)) { + selected = dayjs(this.defaultDate).format("YYYY-MM") + } else { + selected = dayjs(this.defaultDate[0]).format("YYYY-MM"); + } + this.scrollIntoDefaultMonth(selected) + } + } +} +</script> + +<style lang="scss" scoped> +@import '../../libs/css/components.scss'; + +.u-calendar { + &__confirm { + padding: 7px 18px; + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/util.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/util.js new file mode 100644 index 0000000..ca4736b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-calendar/util.js @@ -0,0 +1,85 @@ +export default { + methods: { + // 璁剧疆鏈堜唤鏁版嵁 + setMonth() { + // 鏈堝垵鏄懆鍑� + const day = dayjs(this.date).date(1).day() + const start = day == 0 ? 6 : day - 1 + + // 鏈湀澶╂暟 + const days = dayjs(this.date).endOf('month').format('D') + + // 涓婁釜鏈堝ぉ鏁� + const prevDays = dayjs(this.date).endOf('month').subtract(1, 'month').format('D') + + // 鏃ユ湡鏁版嵁 + const arr = [] + // 娓呯┖琛ㄦ牸 + this.month = [] + + // 娣诲姞涓婃湀鏁版嵁 + arr.push( + ...new Array(start).fill(1).map((e, i) => { + const day = prevDays - start + i + 1 + + return { + value: day, + disabled: true, + date: dayjs(this.date).subtract(1, 'month').date(day).format('YYYY-MM-DD') + } + }) + ) + + // 娣诲姞鏈湀鏁版嵁 + arr.push( + ...new Array(days - 0).fill(1).map((e, i) => { + const day = i + 1 + + return { + value: day, + date: dayjs(this.date).date(day).format('YYYY-MM-DD') + } + }) + ) + + // 娣诲姞涓嬩釜鏈� + arr.push( + ...new Array(42 - days - start).fill(1).map((e, i) => { + const day = i + 1 + + return { + value: day, + disabled: true, + date: dayjs(this.date).add(1, 'month').date(day).format('YYYY-MM-DD') + } + }) + ) + + // 鍒嗗壊鏁扮粍 + for (let n = 0; n < arr.length; n += 7) { + this.month.push( + arr.slice(n, n + 7).map((e, i) => { + e.index = i + n + + // 鑷畾涔変俊鎭� + const custom = this.customList.find((c) => c.date == e.date) + + // 鍐滃巻 + if (this.lunar) { + const { + IDayCn, + IMonthCn + } = this.getLunar(e.date) + e.lunar = IDayCn == '鍒濅竴' ? IMonthCn : IDayCn + } + + return { + ...e, + ...custom + } + }) + ) + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/props.js new file mode 100644 index 0000000..3553647 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/props.js @@ -0,0 +1,14 @@ +export default { + props: { + // 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴� + random: { + type: Boolean, + default: false + }, + // 杈撳叆涓�涓腑鏂囧悗锛屾槸鍚﹁嚜鍔ㄥ垏鎹㈠埌鑻辨枃 + autoChange: { + type: Boolean, + default: false + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/u-car-keyboard.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/u-car-keyboard.vue new file mode 100644 index 0000000..51175b5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-car-keyboard/u-car-keyboard.vue @@ -0,0 +1,311 @@ +<template> + <view + class="u-keyboard" + @touchmove.stop.prevent="noop" + > + <view + v-for="(group, i) in abc ? engKeyBoardList : areaList" + :key="i" + class="u-keyboard__button" + :index="i" + :class="[i + 1 === 4 && 'u-keyboard__button--center']" + > + <view + v-if="i === 3" + class="u-keyboard__button__inner-wrapper" + > + <view + class="u-keyboard__button__inner-wrapper__left" + hover-class="u-hover-class" + :hover-stay-time="200" + @tap="changeCarInputMode" + > + <text + class="u-keyboard__button__inner-wrapper__left__lang" + :class="[!abc && 'u-keyboard__button__inner-wrapper__left__lang--active']" + >涓�</text> + <text class="u-keyboard__button__inner-wrapper__left__line">/</text> + <text + class="u-keyboard__button__inner-wrapper__left__lang" + :class="[abc && 'u-keyboard__button__inner-wrapper__left__lang--active']" + >鑻�</text> + </view> + </view> + <view + class="u-keyboard__button__inner-wrapper" + v-for="(item, j) in group" + :key="j" + > + <view + class="u-keyboard__button__inner-wrapper__inner" + :hover-stay-time="200" + @tap="carInputClick(i, j)" + hover-class="u-hover-class" + > + <text class="u-keyboard__button__inner-wrapper__inner__text">{{ item }}</text> + </view> + </view> + <view + v-if="i === 3" + @touchstart="backspaceClick" + @touchend="clearTimer" + class="u-keyboard__button__inner-wrapper" + > + <view + class="u-keyboard__button__inner-wrapper__right" + hover-class="u-hover-class" + :hover-stay-time="200" + > + <u-icon + size="28" + name="backspace" + color="#303133" + ></u-icon> + </view> + </view> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * keyboard 閿洏缁勪欢 + * @description 姝や负uView鑷畾涔夌殑閿洏闈㈡澘锛屽唴鍚簡鏁板瓧閿洏锛岃溅鐗屽彿閿紝韬唤璇佸彿閿洏3绉嶆ā寮忥紝閮芥湁鍙互鎵撲贡鎸夐敭椤哄簭鐨勯�夐」銆� + * @tutorial https://uviewui.com/components/keyboard.html + * @property {Boolean} random 鏄惁鎵撲贡閿洏鐨勯『搴� + * @event {Function} change 鐐瑰嚮閿洏瑙﹀彂 + * @event {Function} backspace 鐐瑰嚮閫�鏍奸敭瑙﹀彂 + * @example <u-keyboard ref="uKeyboard" mode="car" v-model="show"></u-keyboard> + */ + export default { + name: "u-keyboard", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 杞︾墝杈撳叆鏃讹紝abc=true涓鸿緭鍏ヨ溅鐗屽彿鐮侊紝bac=false涓鸿緭鍏ョ渷浠戒腑鏂囩畝绉� + abc: false + }; + }, + computed: { + areaList() { + let data = [ + '浜�', + '娌�', + '绮�', + '娲�', + '鍐�', + '璞�', + '浜�', + '杈�', + '榛�', + '婀�', + '鐨�', + '椴�', + '鑻�', + '娴�', + '璧�', + '閯�', + '妗�', + '鐢�', + '鏅�', + '闄�', + '钂�', + '鍚�', + '闂�', + '璐�', + '娓�', + '宸�', + '闈�', + '鐞�', + '瀹�', + '鎸�', + '钘�', + '娓�', + '婢�', + '鏂�', + '浣�', + '瀛�' + ]; + let tmp = []; + // 鎵撲贡椤哄簭 + if (this.random) data = uni.$u.randomArray(data); + // 鍒囧壊鎴愪簩缁存暟缁� + tmp[0] = data.slice(0, 10); + tmp[1] = data.slice(10, 20); + tmp[2] = data.slice(20, 30); + tmp[3] = data.slice(30, 36); + return tmp; + }, + engKeyBoardList() { + let data = [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 0, + 'Q', + 'W', + 'E', + 'R', + 'T', + 'Y', + 'U', + 'I', + 'O', + 'P', + 'A', + 'S', + 'D', + 'F', + 'G', + 'H', + 'J', + 'K', + 'L', + 'Z', + 'X', + 'C', + 'V', + 'B', + 'N', + 'M' + ]; + let tmp = []; + if (this.random) data = uni.$u.randomArray(data); + tmp[0] = data.slice(0, 10); + tmp[1] = data.slice(10, 20); + tmp[2] = data.slice(20, 30); + tmp[3] = data.slice(30, 36); + return tmp; + } + }, + methods: { + // 鐐瑰嚮閿洏鎸夐挳 + carInputClick(i, j) { + let value = ''; + // 涓嶅悓妯″紡锛岃幏鍙栦笉鍚屾暟缁勭殑鍊� + if (this.abc) value = this.engKeyBoardList[i][j]; + else value = this.areaList[i][j]; + // 濡傛灉鍏佽鑷姩鍒囨崲锛屽垯灏嗕腑鏂囩姸鎬佸垏鎹负鑻辨枃 + if (!this.abc && this.autoChange) uni.$u.sleep(200).then(() => this.abc = true) + this.$emit('change', value); + }, + // 淇敼姹借溅鐗岄敭鐩樼殑杈撳叆妯″紡锛屼腑鏂噟鑻辨枃 + changeCarInputMode() { + this.abc = !this.abc; + }, + // 鐐瑰嚮閫�鏍奸敭 + backspaceClick() { + this.$emit('backspace'); + clearInterval(this.timer); //鍐嶆娓呯┖瀹氭椂鍣紝闃叉閲嶅娉ㄥ唽瀹氭椂鍣� + this.timer = null; + this.timer = setInterval(() => { + this.$emit('backspace'); + }, 250); + }, + clearTimer() { + clearInterval(this.timer); + this.timer = null; + }, + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-car-keyboard-background-color: rgb(224, 228, 230) !default; + $u-car-keyboard-padding:6px 0 6px !default; + $u-car-keyboard-button-inner-width:64rpx !default; + $u-car-keyboard-button-inner-background-color:#FFFFFF !default; + $u-car-keyboard-button-height:80rpx !default; + $u-car-keyboard-button-inner-box-shadow:0 1px 0px #999992 !default; + $u-car-keyboard-button-border-radius:4px !default; + $u-car-keyboard-button-inner-margin:8rpx 5rpx !default; + $u-car-keyboard-button-text-font-size:16px !default; + $u-car-keyboard-button-text-color:$u-main-color !default; + $u-car-keyboard-center-inner-margin: 0 4rpx !default; + $u-car-keyboard-special-button-width:134rpx !default; + $u-car-keyboard-lang-font-size:16px !default; + $u-car-keyboard-lang-color:$u-main-color !default; + $u-car-keyboard-active-color:$u-primary !default; + $u-car-keyboard-line-font-size:15px !default; + $u-car-keyboard-line-color:$u-main-color !default; + $u-car-keyboard-line-margin:0 1px !default; + $u-car-keyboard-u-hover-class-background-color:#BBBCC6 !default; + + .u-keyboard { + @include flex(column); + justify-content: space-around; + background-color: $u-car-keyboard-background-color; + align-items: stretch; + padding: $u-car-keyboard-padding; + + &__button { + @include flex; + justify-content: center; + flex: 1; + /* #ifndef APP-NVUE */ + /* #endif */ + + &__inner-wrapper { + box-shadow: $u-car-keyboard-button-inner-box-shadow; + margin: $u-car-keyboard-button-inner-margin; + border-radius: $u-car-keyboard-button-border-radius; + + &__inner { + @include flex; + justify-content: center; + align-items: center; + width: $u-car-keyboard-button-inner-width; + background-color: $u-car-keyboard-button-inner-background-color; + height: $u-car-keyboard-button-height; + border-radius: $u-car-keyboard-button-border-radius; + + &__text { + font-size: $u-car-keyboard-button-text-font-size; + color: $u-car-keyboard-button-text-color; + } + } + + &__left, + &__right { + border-radius: $u-car-keyboard-button-border-radius; + width: $u-car-keyboard-special-button-width; + height: $u-car-keyboard-button-height; + background-color: $u-car-keyboard-u-hover-class-background-color; + @include flex; + justify-content: center; + align-items: center; + box-shadow: $u-car-keyboard-button-inner-box-shadow; + } + + &__left { + &__line { + font-size: $u-car-keyboard-line-font-size; + color: $u-car-keyboard-line-color; + margin: $u-car-keyboard-line-margin; + } + + &__lang { + font-size: $u-car-keyboard-lang-font-size; + color: $u-car-keyboard-lang-color; + + &--active { + color: $u-car-keyboard-active-color; + } + } + } + } + } + } + + .u-hover-class { + background-color: $u-car-keyboard-u-hover-class-background-color; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/props.js new file mode 100644 index 0000000..350ef40 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/props.js @@ -0,0 +1,14 @@ +export default { + props: { + // 鍒嗙粍鏍囬 + title: { + type: String, + default: uni.$u.props.cellGroup.title + }, + // 鏄惁鏄剧ず澶栬竟妗� + border: { + type: Boolean, + default: uni.$u.props.cellGroup.border + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/u-cell-group.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/u-cell-group.vue new file mode 100644 index 0000000..a9508c0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell-group/u-cell-group.vue @@ -0,0 +1,61 @@ +<template> + <view :style="[$u.addStyle(customStyle)]" :class="[customClass]" class="u-cell-group"> + <view v-if="title" class="u-cell-group__title"> + <slot name="title"> + <text class="u-cell-group__title__text">{{ title }}</text> + </slot> + </view> + <view class="u-cell-group__wrapper"> + <u-line v-if="border"></u-line> + <slot /> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * cellGroup 鍗曞厓鏍� + * @description cell鍗曞厓鏍间竴鑸敤浜庝竴缁勫垪琛ㄧ殑鎯呭喌锛屾瘮濡備釜浜轰腑蹇冮〉锛岃缃〉绛夈�� + * @tutorial https://uviewui.com/components/cell.html + * + * @property {String} title 鍒嗙粍鏍囬 + * @property {Boolean} border 鏄惁鏄剧ず澶栬竟妗� (榛樿 true ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click 鐐瑰嚮cell鍒楄〃鏃惰Е鍙� + * @example <u-cell-group title="璁剧疆鍠滃ソ"> + */ + export default { + name: 'u-cell-group', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + $u-cell-group-title-padding: 16px 16px 8px !default; + $u-cell-group-title-font-size: 15px !default; + $u-cell-group-title-line-height: 16px !default; + $u-cell-group-title-color: $u-main-color !default; + + .u-cell-group { + flex: 1; + + &__title { + padding: $u-cell-group-title-padding; + + &__text { + font-size: $u-cell-group-title-font-size; + line-height: $u-cell-group-title-line-height; + color: $u-cell-group-title-color; + } + } + + &__wrapper { + position: relative; + } + } +</style> + diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/props.js new file mode 100644 index 0000000..da03330 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/props.js @@ -0,0 +1,110 @@ +export default { + props: { + // 鏍囬 + title: { + type: [String, Number], + default: uni.$u.props.cell.title + }, + // 鏍囬涓嬫柟鐨勬弿杩颁俊鎭� + label: { + type: [String, Number], + default: uni.$u.props.cell.label + }, + // 鍙充晶鐨勫唴瀹� + value: { + type: [String, Number], + default: uni.$u.props.cell.value + }, + // 宸︿晶鍥炬爣鍚嶇О锛屾垨鑰呭浘鐗囬摼鎺�(鏈湴鏂囦欢寤鸿浣跨敤缁濆鍦板潃) + icon: { + type: String, + default: uni.$u.props.cell.icon + }, + // 鏄惁绂佺敤cell + disabled: { + type: Boolean, + default: uni.$u.props.cell.disabled + }, + // 鏄惁鏄剧ず涓嬭竟妗� + border: { + type: Boolean, + default: uni.$u.props.cell.border + }, + // 鍐呭鏄惁鍨傜洿灞呬腑(涓昏鏄拡瀵瑰彸渚х殑value閮ㄥ垎) + center: { + type: Boolean, + default: uni.$u.props.cell.center + }, + // 鐐瑰嚮鍚庤烦杞殑URL鍦板潃 + url: { + type: String, + default: uni.$u.props.cell.url + }, + // 閾炬帴璺宠浆鐨勬柟寮忥紝鍐呴儴浣跨敤鐨勬槸uView灏佽鐨剅oute鏂规硶锛屽彲鑳戒細杩涜鎷︽埅鎿嶄綔 + linkType: { + type: String, + default: uni.$u.props.cell.linkType + }, + // 鏄惁寮�鍚偣鍑诲弽棣�(琛ㄧ幇涓虹偣鍑绘椂鍔犱笂鐏拌壊鑳屾櫙) + clickable: { + type: Boolean, + default: uni.$u.props.cell.clickable + }, + // 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣� + isLink: { + type: Boolean, + default: uni.$u.props.cell.isLink + }, + // 鏄惁鏄剧ず琛ㄥ崟鐘舵�佷笅鐨勫繀濉槦鍙�(姝ょ粍浠跺彲鑳戒細鍐呭祵鍏nput缁勪欢) + required: { + type: Boolean, + default: uni.$u.props.cell.required + }, + // 鍙充晶鐨勫浘鏍囩澶� + rightIcon: { + type: String, + default: uni.$u.props.cell.rightIcon + }, + // 鍙充晶绠ご鐨勬柟鍚戯紝鍙�夊�间负锛歭eft锛寀p锛宒own + arrowDirection: { + type: String, + default: uni.$u.props.cell.arrowDirection + }, + // 宸︿晶鍥炬爣鏍峰紡 + iconStyle: { + type: [Object, String], + default: () => { + return uni.$u.props.cell.iconStyle + } + }, + // 鍙充晶绠ご鍥炬爣鐨勬牱寮� + rightIconStyle: { + type: [Object, String], + default: () => { + return uni.$u.props.cell.rightIconStyle + } + }, + // 鏍囬鐨勬牱寮� + titleStyle: { + type: [Object, String], + default: () => { + return uni.$u.props.cell.titleStyle + } + }, + // 鍗曚綅鍏冪殑澶у皬锛屽彲閫夊�间负large + size: { + type: String, + default: uni.$u.props.cell.size + }, + // 鐐瑰嚮cell鏄惁闃绘浜嬩欢浼犳挱 + stop: { + type: Boolean, + default: uni.$u.props.cell.stop + }, + // 鏍囪瘑绗︼紝cell琚偣鍑绘椂杩斿洖 + name: { + type: [Number, String], + default: uni.$u.props.cell.name + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/u-cell.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/u-cell.vue new file mode 100644 index 0000000..b099c90 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-cell/u-cell.vue @@ -0,0 +1,229 @@ +<template> + <view class="u-cell" :class="[customClass]" :style="[$u.addStyle(customStyle)]" + :hover-class="(!disabled && (clickable || isLink)) ? 'u-cell--clickable' : ''" :hover-stay-time="250" + @tap="clickHandler"> + <view class="u-cell__body" :class="[ center && 'u-cell--center', size === 'large' && 'u-cell__body--large']"> + <view class="u-cell__body__content"> + <view class="u-cell__left-icon-wrap" v-if="$slots.icon || icon"> + <slot name="icon" v-if="$slots.icon"> + </slot> + <u-icon v-else :name="icon" :custom-style="iconStyle" :size="size === 'large' ? 22 : 18"></u-icon> + </view> + <view class="u-cell__title"> + <slot name="title"> + <text v-if="title" class="u-cell__title-text" :style="[titleTextStyle]" + :class="[disabled && 'u-cell--disabled', size === 'large' && 'u-cell__title-text--large']">{{ title }}</text> + </slot> + <slot name="label"> + <text class="u-cell__label" v-if="label" + :class="[disabled && 'u-cell--disabled', size === 'large' && 'u-cell__label--large']">{{ label }}</text> + </slot> + </view> + </view> + <slot name="value"> + <text class="u-cell__value" + :class="[disabled && 'u-cell--disabled', size === 'large' && 'u-cell__value--large']" + v-if="!$u.test.empty(value)">{{ value }}</text> + </slot> + <view class="u-cell__right-icon-wrap" v-if="$slots['right-icon'] || isLink" + :class="[`u-cell__right-icon-wrap--${arrowDirection}`]"> + <slot name="right-icon" v-if="$slots['right-icon']"> + </slot> + <u-icon v-else :name="rightIcon" :custom-style="rightIconStyle" :color="disabled ? '#c8c9cc' : 'info'" + :size="size === 'large' ? 18 : 16"></u-icon> + </view> + </view> + <u-line v-if="border"></u-line> + </view> +</template> + +<script> + import props from './props.js'; + /** + * cell 鍗曞厓鏍� + * @description cell鍗曞厓鏍间竴鑸敤浜庝竴缁勫垪琛ㄧ殑鎯呭喌锛屾瘮濡備釜浜轰腑蹇冮〉锛岃缃〉绛夈�� + * @tutorial https://uviewui.com/components/cell.html + * @property {String | Number} title 鏍囬 + * @property {String | Number} label 鏍囬涓嬫柟鐨勬弿杩颁俊鎭� + * @property {String | Number} value 鍙充晶鐨勫唴瀹� + * @property {String} icon 宸︿晶鍥炬爣鍚嶇О锛屾垨鑰呭浘鐗囬摼鎺�(鏈湴鏂囦欢寤鸿浣跨敤缁濆鍦板潃) + * @property {Boolean} disabled 鏄惁绂佺敤cell + * @property {Boolean} border 鏄惁鏄剧ず涓嬭竟妗� (榛樿 true ) + * @property {Boolean} center 鍐呭鏄惁鍨傜洿灞呬腑(涓昏鏄拡瀵瑰彸渚х殑value閮ㄥ垎) (榛樿 false ) + * @property {String} url 鐐瑰嚮鍚庤烦杞殑URL鍦板潃 + * @property {String} linkType 閾炬帴璺宠浆鐨勬柟寮忥紝鍐呴儴浣跨敤鐨勬槸uView灏佽鐨剅oute鏂规硶锛屽彲鑳戒細杩涜鎷︽埅鎿嶄綔 (榛樿 'navigateTo' ) + * @property {Boolean} clickable 鏄惁寮�鍚偣鍑诲弽棣�(琛ㄧ幇涓虹偣鍑绘椂鍔犱笂鐏拌壊鑳屾櫙) 锛堥粯璁� false 锛� + * @property {Boolean} isLink 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣� 锛堥粯璁� false 锛� + * @property {Boolean} required 鏄惁鏄剧ず琛ㄥ崟鐘舵�佷笅鐨勫繀濉槦鍙�(姝ょ粍浠跺彲鑳戒細鍐呭祵鍏nput缁勪欢) 锛堥粯璁� false 锛� + * @property {String} rightIcon 鍙充晶鐨勫浘鏍囩澶� 锛堥粯璁� 'arrow-right'锛� + * @property {String} arrowDirection 鍙充晶绠ご鐨勬柟鍚戯紝鍙�夊�间负锛歭eft锛寀p锛宒own + * @property {Object | String} rightIconStyle 鍙充晶绠ご鍥炬爣鐨勬牱寮� + * @property {Object | String} titleStyle 鏍囬鐨勬牱寮� + * @property {Object | String} iconStyle 宸︿晶鍥炬爣鏍峰紡 + * @property {String} size 鍗曚綅鍏冪殑澶у皬锛屽彲閫夊�间负 large锛宯ormal锛宮ini + * @property {Boolean} stop 鐐瑰嚮cell鏄惁闃绘浜嬩欢浼犳挱 (榛樿 true ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click 鐐瑰嚮cell鍒楄〃鏃惰Е鍙� + * @example 璇ョ粍浠堕渶瑕佹惌閰峜ell-group缁勪欢浣跨敤锛岃瀹樻柟鏂囨。绀轰緥 + */ + export default { + name: 'u-cell', + data() { + return { + + } + }, + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + computed: { + titleTextStyle() { + return uni.$u.addStyle(this.titleStyle) + } + }, + methods: { + // 鐐瑰嚮cell + clickHandler(e) { + if (this.disabled) return + this.$emit('click', { + name: this.name + }) + // 濡傛灉閰嶇疆浜唘rl(姝rops鍙傛暟閫氳繃mixin寮曞叆)鍙傛暟锛岃烦杞〉闈� + this.openPage() + // 鏄惁闃绘浜嬩欢浼犳挱 + this.stop && this.preventEvent(e) + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + $u-cell-padding: 10px 15px !default; + $u-cell-font-size: 15px !default; + $u-cell-line-height: 24px !default; + $u-cell-color: $u-main-color !default; + $u-cell-icon-size: 16px !default; + $u-cell-title-font-size: 15px !default; + $u-cell-title-line-height: 22px !default; + $u-cell-title-color: $u-main-color !default; + $u-cell-label-font-size: 12px !default; + $u-cell-label-color: $u-tips-color !default; + $u-cell-label-line-height: 18px !default; + $u-cell-value-font-size: 14px !default; + $u-cell-value-color: $u-content-color !default; + $u-cell-clickable-color: $u-bg-color !default; + $u-cell-disabled-color: #c8c9cc !default; + $u-cell-padding-top-large: 13px !default; + $u-cell-padding-bottom-large: 13px !default; + $u-cell-value-font-size-large: 15px !default; + $u-cell-label-font-size-large: 14px !default; + $u-cell-title-font-size-large: 16px !default; + $u-cell-left-icon-wrap-margin-right: 4px !default; + $u-cell-right-icon-wrap-margin-left: 4px !default; + $u-cell-title-flex:1 !default; + $u-cell-label-margin-top:5px !default; + + + .u-cell { + &__body { + @include flex(); + /* #ifndef APP-NVUE */ + box-sizing: border-box; + /* #endif */ + padding: $u-cell-padding; + font-size: $u-cell-font-size; + color: $u-cell-color; + // line-height: $u-cell-line-height; + align-items: center; + + &__content { + @include flex(row); + align-items: center; + flex: 1; + } + + &--large { + padding-top: $u-cell-padding-top-large; + padding-bottom: $u-cell-padding-bottom-large; + } + } + + &__left-icon-wrap, + &__right-icon-wrap { + @include flex(); + align-items: center; + // height: $u-cell-line-height; + font-size: $u-cell-icon-size; + } + + &__left-icon-wrap { + margin-right: $u-cell-left-icon-wrap-margin-right; + } + + &__right-icon-wrap { + margin-left: $u-cell-right-icon-wrap-margin-left; + transition: transform 0.3s; + + &--up { + transform: rotate(-90deg); + } + + &--down { + transform: rotate(90deg); + } + } + + &__title { + flex: $u-cell-title-flex; + + &-text { + font-size: $u-cell-title-font-size; + line-height: $u-cell-title-line-height; + color: $u-cell-title-color; + + &--large { + font-size: $u-cell-title-font-size-large; + } + } + + } + + &__label { + margin-top: $u-cell-label-margin-top; + font-size: $u-cell-label-font-size; + color: $u-cell-label-color; + line-height: $u-cell-label-line-height; + + &--large { + font-size: $u-cell-label-font-size-large; + } + } + + &__value { + text-align: right; + font-size: $u-cell-value-font-size; + line-height: $u-cell-line-height; + color: $u-cell-value-color; + + &--large { + font-size: $u-cell-value-font-size-large; + } + } + + &--clickable { + background-color: $u-cell-clickable-color; + } + + &--disabled { + color: $u-cell-disabled-color; + /* #ifndef APP-NVUE */ + cursor: not-allowed; + /* #endif */ + } + + &--center { + align-items: center; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/props.js new file mode 100644 index 0000000..2f818a1 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/props.js @@ -0,0 +1,82 @@ +export default { + props: { + // 鏍囪瘑绗� + name: { + type: String, + default: uni.$u.props.checkboxGroup.name + }, + // 缁戝畾鐨勫�� + value: { + type: Array, + default: uni.$u.props.checkboxGroup.value + }, + // 褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.checkboxGroup.shape + }, + // 鏄惁绂佺敤鍏ㄩ儴checkbox + disabled: { + type: Boolean, + default: uni.$u.props.checkboxGroup.disabled + }, + + // 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� + activeColor: { + type: String, + default: uni.$u.props.checkboxGroup.activeColor + }, + // 鏈�変腑鐨勯鑹� + inactiveColor: { + type: String, + default: uni.$u.props.checkboxGroup.inactiveColor + }, + + // 鏁翠釜缁勪欢鐨勫昂瀵革紝榛樿px + size: { + type: [String, Number], + default: uni.$u.props.checkboxGroup.size + }, + // 甯冨眬鏂瑰紡锛宺ow-妯悜锛宑olumn-绾靛悜 + placement: { + type: String, + default: uni.$u.props.checkboxGroup.placement + }, + // label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 + labelSize: { + type: [String, Number], + default: uni.$u.props.checkboxGroup.labelSize + }, + // label鐨勫瓧浣撻鑹� + labelColor: { + type: [String], + default: uni.$u.props.checkboxGroup.labelColor + }, + // 鏄惁绂佹鐐瑰嚮鏂囨湰鎿嶄綔 + labelDisabled: { + type: Boolean, + default: uni.$u.props.checkboxGroup.labelDisabled + }, + // 鍥炬爣棰滆壊 + iconColor: { + type: String, + default: uni.$u.props.checkboxGroup.iconColor + }, + // 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px + iconSize: { + type: [String, Number], + default: uni.$u.props.checkboxGroup.iconSize + }, + // 鍕鹃�夊浘鏍囩殑瀵归綈鏂瑰紡锛宭eft-宸﹁竟锛宺ight-鍙宠竟 + iconPlacement: { + type: String, + default: uni.$u.props.checkboxGroup.iconPlacement + }, + // 绔栧悜閰嶅垪鏃讹紝鏄惁鏄剧ず涓嬪垝绾� + borderBottom: { + type: Boolean, + default: uni.$u.props.checkboxGroup.borderBottom + } + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group.vue new file mode 100644 index 0000000..7a6b4fa --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group.vue @@ -0,0 +1,103 @@ +<template> + <view + class="u-checkbox-group" + :class="bemClass" + > + <slot></slot> + </view> +</template> + +<script> + import props from './props.js'; + /** + * checkboxGroup 澶嶉�夋缁� + * @description 澶嶉�夋缁勪欢涓�鑸敤浜庨渶瑕佸涓�夋嫨鐨勫満鏅紝璇ョ粍浠跺姛鑳藉畬鏁达紝浣跨敤鏂逛究 + * @tutorial https://www.uviewui.com/components/checkbox.html + * @property {String} name 鏍囪瘑绗� + * @property {Array} value 缁戝畾鐨勫�� + * @property {String} shape 褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 锛堥粯璁� 'square' 锛� + * @property {Boolean} disabled 鏄惁绂佺敤鍏ㄩ儴checkbox 锛堥粯璁� false 锛� + * @property {String} activeColor 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� 锛堥粯璁� '#2979ff' 锛� + * @property {String} inactiveColor 鏈�変腑鐨勯鑹� 锛堥粯璁� '#c8c9cc' 锛� + * @property {String | Number} size 鏁翠釜缁勪欢鐨勫昂瀵� 鍗曚綅px 锛堥粯璁� 18 锛� + * @property {String} placement 甯冨眬鏂瑰紡锛宺ow-妯悜锛宑olumn-绾靛悜 锛堥粯璁� 'row' 锛� + * @property {String | Number} labelSize label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 锛堥粯璁� 14 锛� + * @property {String} labelColor label鐨勫瓧浣撻鑹� 锛堥粯璁� '#303133' 锛� + * @property {Boolean} labelDisabled 鏄惁绂佹鐐瑰嚮鏂囨湰鎿嶄綔 (榛樿 false ) + * @property {String} iconColor 鍥炬爣棰滆壊 锛堥粯璁� '#ffffff' 锛� + * @property {String | Number} iconSize 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px 锛堥粯璁� 12 锛� + * @property {String} iconPlacement 鍕鹃�夊浘鏍囩殑瀵归綈鏂瑰紡锛宭eft-宸﹁竟锛宺ight-鍙宠竟 锛堥粯璁� 'left' 锛� + * @property {Boolean} borderBottom placement涓簉ow鏃讹紝鏄惁鏄剧ず涓嬭竟妗� 锛堥粯璁� false 锛� + * @event {Function} change 浠讳竴涓猚heckbox鐘舵�佸彂鐢熷彉鍖栨椂瑙﹀彂锛屽洖璋冧负涓�涓璞� + * @event {Function} input 淇敼閫氳繃v-model缁戝畾鐨勫�兼椂瑙﹀彂锛屽洖璋冧负涓�涓璞� + * @example <u-checkbox-group></u-checkbox-group> + */ + export default { + name: 'u-checkbox-group', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + // 杩欓噷computed鐨勫彉閲忥紝閮芥槸瀛愮粍浠秛-checkbox闇�瑕佺敤鍒扮殑锛岀敱浜庡ご鏉″皬绋嬪簭鐨勫吋瀹规�у樊寮傦紝瀛愮粍浠舵棤娉曞疄鏃剁洃鍚埗缁勪欢鍙傛暟鐨勫彉鍖� + // 鎵�浠ラ渶瑕佹墜鍔ㄩ�氱煡瀛愮粍浠讹紝杩欓噷杩斿洖涓�涓猵arentData鍙橀噺锛屼緵watch鐩戝惉锛屽湪鍏朵腑鍘婚�氱煡姣忎竴涓瓙缁勪欢閲嶆柊浠庣埗缁勪欢(u-checkbox-group) + // 鎷夊彇鐖剁粍浠舵柊鐨勫彉鍖栧悗鐨勫弬鏁� + parentData() { + return [this.value, this.disabled, this.inactiveColor, this.activeColor, this.size, this.labelDisabled, this.shape, + this.iconSize, this.borderBottom, this.placement + ] + }, + bemClass() { + // this.bem涓轰竴涓猚omputed鍙橀噺锛屽湪mixin涓� + return this.bem('checkbox-group', ['placement']) + }, + }, + watch: { + // 褰撶埗缁勪欢闇�瑕佸瓙缁勪欢闇�瑕佸叡浜殑鍙傛暟鍙戠敓浜嗗彉鍖栵紝鎵嬪姩閫氱煡瀛愮粍浠� + parentData() { + if (this.children.length) { + this.children.map(child => { + // 鍒ゆ柇瀛愮粍浠�(u-checkbox)濡傛灉鏈塱nit鏂规硶鐨勮瘽锛屽氨灏辨墽琛�(鎵ц鐨勭粨鏋滄槸瀛愮粍浠堕噸鏂颁粠鐖剁粍浠舵媺鍙栦簡鏈�鏂扮殑鍊�) + typeof(child.init) === 'function' && child.init() + }) + } + }, + }, + data() { + return { + + } + }, + created() { + this.children = [] + }, + methods: { + // 灏嗗叾浠栫殑checkbox璁剧疆涓烘湭閫変腑鐨勭姸鎬� + unCheckedOther(childInstance) { + const values = [] + this.children.map(child => { + // 灏嗚閫変腑鐨刢heckbox锛屾斁鍒版暟缁勪腑杩斿洖 + if (child.isChecked) { + values.push(child.name) + } + }) + // 鍙戝嚭浜嬩欢 + this.$emit('change', values) + // 淇敼閫氳繃v-model缁戝畾鐨勫�� + this.$emit('input', values) + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-checkbox-group { + + &--row { + @include flex; + } + + &--column { + @include flex(column); + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/props.js new file mode 100644 index 0000000..93f4fd9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/props.js @@ -0,0 +1,69 @@ +export default { + props: { + // checkbox鐨勫悕绉� + name: { + type: [String, Number, Boolean], + default: uni.$u.props.checkbox.name + }, + // 褰㈢姸锛宻quare涓烘柟褰紝circle涓哄渾鍨� + shape: { + type: String, + default: uni.$u.props.checkbox.shape + }, + // 鏁翠綋鐨勫ぇ灏� + size: { + type: [String, Number], + default: uni.$u.props.checkbox.size + }, + // 鏄惁榛樿閫変腑 + checked: { + type: Boolean, + default: uni.$u.props.checkbox.checked + }, + // 鏄惁绂佺敤 + disabled: { + type: [String, Boolean], + default: uni.$u.props.checkbox.disabled + }, + // 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� + activeColor: { + type: String, + default: uni.$u.props.checkbox.activeColor + }, + // 鏈�変腑鐨勯鑹� + inactiveColor: { + type: String, + default: uni.$u.props.checkbox.inactiveColor + }, + // 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px + iconSize: { + type: [String, Number], + default: uni.$u.props.checkbox.iconSize + }, + // 鍥炬爣棰滆壊 + iconColor: { + type: String, + default: uni.$u.props.checkbox.iconColor + }, + // label鎻愮ず鏂囧瓧锛屽洜涓簄vue涓嬶紝鐩存帴slot杩涙潵鐨勬枃瀛楋紝鐢变簬鐗规畩鐨勭粨鏋勶紝鏃犳硶淇敼鏍峰紡 + label: { + type: [String, Number], + default: uni.$u.props.checkbox.label + }, + // label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 + labelSize: { + type: [String, Number], + default: uni.$u.props.checkbox.labelSize + }, + // label鐨勯鑹� + labelColor: { + type: String, + default: uni.$u.props.checkbox.labelColor + }, + // 鏄惁绂佹鐐瑰嚮鎻愮ず璇�変腑澶嶉�夋 + labelDisabled: { + type: [String, Boolean], + default: uni.$u.props.checkbox.labelDisabled + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/u-checkbox.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/u-checkbox.vue new file mode 100644 index 0000000..6429cca --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-checkbox/u-checkbox.vue @@ -0,0 +1,344 @@ +<template> + <view + class="u-checkbox" + :style="[checkboxStyle]" + @tap.stop="wrapperClickHandler" + :class="[`u-checkbox-label--${parentData.iconPlacement}`, parentData.borderBottom && parentData.placement === 'column' && 'u-border-bottom']" + > + <view + class="u-checkbox__icon-wrap" + @tap.stop="iconClickHandler" + :class="iconClasses" + :style="[iconWrapStyle]" + > + <slot name="icon"> + <u-icon + class="u-checkbox__icon-wrap__icon" + name="checkbox-mark" + :size="elIconSize" + :color="elIconColor" + /> + </slot> + </view> + <text + @tap.stop="labelClickHandler" + :style="{ + color: elDisabled ? elInactiveColor : elLabelColor, + fontSize: elLabelSize, + lineHeight: elLabelSize + }" + >{{label}}</text> + </view> +</template> + +<script> + import props from './props.js'; + /** + * checkbox 澶嶉�夋 + * @description 澶嶉�夋缁勪欢涓�鑸敤浜庨渶瑕佸涓�夋嫨鐨勫満鏅紝璇ョ粍浠跺姛鑳藉畬鏁达紝浣跨敤鏂逛究 + * @tutorial https://uviewui.com/components/checkbox.html + * @property {String | Number | Boolean} name checkbox缁勪欢鐨勬爣绀虹 + * @property {String} shape 褰㈢姸锛宻quare涓烘柟褰紝circle涓哄渾鍨� + * @property {String | Number} size 鏁翠綋鐨勫ぇ灏� + * @property {Boolean} checked 鏄惁榛樿閫変腑 + * @property {String | Boolean} disabled 鏄惁绂佺敤 + * @property {String} activeColor 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� + * @property {String} inactiveColor 鏈�変腑鐨勯鑹� + * @property {String | Number} iconSize 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px + * @property {String} iconColor 鍥炬爣棰滆壊 + * @property {String | Number} label label鎻愮ず鏂囧瓧锛屽洜涓簄vue涓嬶紝鐩存帴slot杩涙潵鐨勬枃瀛楋紝鐢变簬鐗规畩鐨勭粨鏋勶紝鏃犳硶淇敼鏍峰紡 + * @property {String} labelColor label鐨勯鑹� + * @property {String | Number} labelSize label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 + * @property {String | Boolean} labelDisabled 鏄惁绂佹鐐瑰嚮鎻愮ず璇�変腑澶嶉�夋 + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} change 浠讳竴涓猚heckbox鐘舵�佸彂鐢熷彉鍖栨椂瑙﹀彂锛屽洖璋冧负涓�涓璞� + * @example <u-checkbox v-model="checked" :disabled="false">澶╂动</u-checkbox> + */ + export default { + name: "u-checkbox", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + isChecked: false, + // 鐖剁粍浠剁殑榛樿鍊硷紝鍥犱负澶存潯灏忕▼搴忎笉鏀寔鍦╟omputed涓娇鐢╰his.parent.shape鐨勫舰寮� + // 鏁呭彧鑳戒娇鐢ㄥ姝ゆ柟娉� + parentData: { + iconSize: 12, + labelDisabled: null, + disabled: null, + shape: 'square', + activeColor: null, + inactiveColor: null, + size: 18, + value: null, + iconColor: null, + placement: 'row', + borderBottom: false, + iconPlacement: 'left' + } + } + }, + computed: { + // 鏄惁绂佺敤锛屽鏋滅埗缁勪欢u-raios-group绂佺敤鐨勮瘽锛屽皢浼氬拷鐣ュ瓙缁勪欢鐨勯厤缃� + elDisabled() { + return this.disabled !== '' ? this.disabled : this.parentData.disabled !== null ? this.parentData.disabled : false; + }, + // 鏄惁绂佺敤label鐐瑰嚮 + elLabelDisabled() { + return this.labelDisabled !== '' ? this.labelDisabled : this.parentData.labelDisabled !== null ? this.parentData.labelDisabled : + false; + }, + // 缁勪欢灏哄锛屽搴攕ize鐨勫�硷紝榛樿鍊间负21px + elSize() { + return this.size ? this.size : (this.parentData.size ? this.parentData.size : 21); + }, + // 缁勪欢鐨勫嬀閫夊浘鏍囩殑灏哄锛岄粯璁�12px + elIconSize() { + return this.iconSize ? this.iconSize : (this.parentData.iconSize ? this.parentData.iconSize : 12); + }, + // 缁勪欢閫変腑婵�娲绘椂鐨勯鑹� + elActiveColor() { + return this.activeColor ? this.activeColor : (this.parentData.activeColor ? this.parentData.activeColor : '#2979ff'); + }, + // 缁勪欢閫夋湭涓縺娲绘椂鐨勯鑹� + elInactiveColor() { + return this.inactiveColor ? this.inactiveColor : (this.parentData.inactiveColor ? this.parentData.inactiveColor : + '#c8c9cc'); + }, + // label鐨勯鑹� + elLabelColor() { + return this.labelColor ? this.labelColor : (this.parentData.labelColor ? this.parentData.labelColor : '#606266') + }, + // 缁勪欢鐨勫舰鐘� + elShape() { + return this.shape ? this.shape : (this.parentData.shape ? this.parentData.shape : 'circle'); + }, + // label澶у皬 + elLabelSize() { + return uni.$u.addUnit(this.labelSize ? this.labelSize : (this.parentData.labelSize ? this.parentData.labelSize : + '15')) + }, + elIconColor() { + const iconColor = this.iconColor ? this.iconColor : (this.parentData.iconColor ? this.parentData.iconColor : + '#ffffff'); + // 鍥炬爣鐨勯鑹� + if (this.elDisabled) { + // disabled鐘舵�佷笅锛屽凡鍕鹃�夌殑checkbox鍥炬爣鏀逛负elInactiveColor + return this.isChecked ? this.elInactiveColor : 'transparent' + } else { + return this.isChecked ? iconColor : 'transparent' + } + }, + iconClasses() { + let classes = [] + // 缁勪欢鐨勫舰鐘� + classes.push('u-checkbox__icon-wrap--' + this.elShape) + if (this.elDisabled) { + classes.push('u-checkbox__icon-wrap--disabled') + } + if (this.isChecked && this.elDisabled) { + classes.push('u-checkbox__icon-wrap--disabled--checked') + } + // 鏀粯瀹濓紝澶存潯灏忕▼搴忔棤娉曞姩鎬佺粦瀹氫竴涓暟缁勭被鍚嶏紝鍚﹀垯瑙f瀽鍑烘潵鐨勭粨鏋滀細甯︽湁","锛岃�屽鑷村け鏁� + // #ifdef MP-ALIPAY || MP-TOUTIAO + classes = classes.join(' ') + // #endif + return classes + }, + iconWrapStyle() { + // checkbox鐨勬暣浣撴牱寮� + const style = {} + style.backgroundColor = this.isChecked && !this.elDisabled ? this.elActiveColor : '#ffffff' + style.borderColor = this.isChecked && !this.elDisabled ? this.elActiveColor : this.elInactiveColor + style.width = uni.$u.addUnit(this.elSize) + style.height = uni.$u.addUnit(this.elSize) + // 濡傛灉鏄浘鏍囧湪鍙宠竟鐨勮瘽锛岀Щ闄ゅ畠鐨勫彸杈硅窛 + if (this.parentData.iconPlacement === 'right') { + style.marginRight = 0 + } + return style + }, + checkboxStyle() { + const style = {} + if (this.parentData.borderBottom && this.parentData.placement === 'row') { + uni.$u.error('妫�娴嬪埌鎮ㄥ皢borderBottom璁剧疆涓簍rue锛岄渶瑕佸悓鏃跺皢u-checkbox-group鐨刾lacement璁剧疆涓篶olumn鎵嶆湁鏁�') + } + // 褰撶埗缁勪欢璁剧疆浜嗘樉绀轰笅杈规骞朵笖鎺掑垪褰㈠紡涓虹旱鍚戞椂锛岀粰鍐呭鍜岃竟妗嗕箣闂村姞涓婁竴瀹氶棿闅� + if (this.parentData.borderBottom && this.parentData.placement === 'column') { + style.paddingBottom = '8px' + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鏀粯瀹濆皬绋嬪簭涓嶆敮鎸乸rovide/inject锛屾墍浠ヤ娇鐢ㄨ繖涓柟娉曡幏鍙栨暣涓埗缁勪欢锛屽湪created瀹氫箟锛岄伩鍏嶅惊鐜紩鐢� + this.updateParentData() + if (!this.parent) { + uni.$u.error('u-checkbox蹇呴』鎼厤u-checkbox-group缁勪欢浣跨敤') + } + // 璁剧疆鍒濆鍖栨椂锛屾槸鍚﹂粯璁ら�変腑鐨勭姸鎬侊紝鐖剁粍浠秛-checkbox-group鐨剉alue鍙兘鏄痑rray锛屾墍浠ラ澶栧垽鏂� + if (this.checked) { + this.isChecked = true + } else if (uni.$u.test.array(this.parentData.value)) { + // 鏌ユ壘鏁扮粍鏄槸鍚﹀瓨鍦╰his.name鍏冪礌鍊� + this.isChecked = this.parentData.value.some(item => { + return item === this.name + }) + } + }, + updateParentData() { + this.getParentData('u-checkbox-group') + }, + // 妯悜涓ょ鎺掑垪鏃讹紝鐐瑰嚮缁勪欢鍗冲彲瑙﹀彂閫変腑浜嬩欢 + wrapperClickHandler(e) { + this.parentData.iconPlacement === 'right' && this.iconClickHandler(e) + }, + // 鐐瑰嚮鍥炬爣 + iconClickHandler(e) { + this.preventEvent(e) + // 濡傛灉鏁翠綋琚鐢紝涓嶅厑璁歌鐐瑰嚮 + if (!this.elDisabled) { + this.setRadioCheckedStatus() + } + }, + // 鐐瑰嚮label + labelClickHandler(e) { + this.preventEvent(e) + // 濡傛灉鎸夐挳鏁翠綋琚鐢ㄦ垨鑰卨abel琚鐢紝鍒欎笉鍏佽鐐瑰嚮鏂囧瓧淇敼鐘舵�� + if (!this.elLabelDisabled && !this.elDisabled) { + this.setRadioCheckedStatus() + } + }, + emitEvent() { + this.$emit('change', this.isChecked) + // 灏濊瘯璋冪敤u-form鐨勯獙璇佹柟娉曪紝杩涜涓�瀹氬欢杩燂紝鍚﹀垯寰俊灏忕▼搴忔洿鏂板彲鑳戒細涓嶅強鏃� + this.$nextTick(() => { + uni.$u.formValidate(this, 'change') + }) + }, + // 鏀瑰彉缁勪欢閫変腑鐘舵�� + // 杩欓噷鐨勬敼鍙樼殑渚濇嵁鏄紝鏇存敼鏈粍浠剁殑checked鍊间负true锛屽悓鏃堕�氳繃鐖剁粍浠堕亶鍘嗘墍鏈塽-checkbox瀹炰緥 + // 灏嗘湰缁勪欢澶栫殑鍏朵粬u-checkbox鐨刢hecked閮借缃负false(閮借鍙栨秷閫変腑鐘舵��)锛屽洜鑰屽彧鍓╀笅涓�涓负閫変腑鐘舵�� + setRadioCheckedStatus() { + // 灏嗘湰缁勪欢鏍囪涓轰笌鍘熸潵鐩稿弽鐨勭姸鎬� + this.isChecked = !this.isChecked + this.emitEvent() + typeof this.parent.unCheckedOther === 'function' && this.parent.unCheckedOther(this) + } + }, + watch:{ + checked(){ + this.isChecked = this.checked + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-checkbox-icon-wrap-margin-right:6px !default; + $u-checkbox-icon-wrap-font-size:6px !default; + $u-checkbox-icon-wrap-border-width:1px !default; + $u-checkbox-icon-wrap-border-color:#c8c9cc !default; + $u-checkbox-icon-wrap-icon-line-height:0 !default; + $u-checkbox-icon-wrap-circle-border-radius:100% !default; + $u-checkbox-icon-wrap-square-border-radius:3px !default; + $u-checkbox-icon-wrap-checked-color:#fff !default; + $u-checkbox-icon-wrap-checked-background-color:red !default; + $u-checkbox-icon-wrap-checked-border-color:#2979ff !default; + $u-checkbox-icon-wrap-disabled-background-color:#ebedf0 !default; + $u-checkbox-icon-wrap-disabled-checked-color:#c8c9cc !default; + $u-checkbox-label-margin-left:5px !default; + $u-checkbox-label-margin-right:12px !default; + $u-checkbox-label-color:$u-content-color !default; + $u-checkbox-label-font-size:15px !default; + $u-checkbox-label-disabled-color:#c8c9cc !default; + + .u-checkbox { + /* #ifndef APP-NVUE */ + @include flex(row); + /* #endif */ + overflow: hidden; + flex-direction: row; + align-items: center; + + &-label--left { + flex-direction: row + } + + &-label--right { + flex-direction: row-reverse; + justify-content: space-between + } + + &__icon-wrap { + /* #ifndef APP-NVUE */ + box-sizing: border-box; + // nvue涓嬶紝border-color杩囨浮鏈夐棶棰� + transition-property: border-color, background-color, color; + transition-duration: 0.2s; + /* #endif */ + color: $u-content-color; + @include flex; + align-items: center; + justify-content: center; + color: transparent; + text-align: center; + margin-right: $u-checkbox-icon-wrap-margin-right; + + font-size: $u-checkbox-icon-wrap-font-size; + border-width: $u-checkbox-icon-wrap-border-width; + border-color: $u-checkbox-icon-wrap-border-color; + border-style: solid; + + /* #ifdef MP-TOUTIAO */ + // 澶存潯灏忕▼搴忓吋瀹规�ч棶棰橈紝闇�瑕佽缃楂樹负0锛屽惁鍒欏浘鏍囧亸涓� + &__icon { + line-height: $u-checkbox-icon-wrap-icon-line-height; + } + + /* #endif */ + + &--circle { + border-radius: $u-checkbox-icon-wrap-circle-border-radius; + } + + &--square { + border-radius: $u-checkbox-icon-wrap-square-border-radius; + } + + &--checked { + color: $u-checkbox-icon-wrap-checked-color; + background-color: $u-checkbox-icon-wrap-checked-background-color; + border-color: $u-checkbox-icon-wrap-checked-border-color; + } + + &--disabled { + background-color: $u-checkbox-icon-wrap-disabled-background-color !important; + } + + &--disabled--checked { + color: $u-checkbox-icon-wrap-disabled-checked-color !important; + } + } + + &__label { + /* #ifndef APP-NVUE */ + word-wrap: break-word; + /* #endif */ + margin-left: $u-checkbox-label-margin-left; + margin-right: $u-checkbox-label-margin-right; + color: $u-checkbox-label-color; + font-size: $u-checkbox-label-font-size; + + &--disabled { + color: $u-checkbox-label-disabled-color; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/props.js new file mode 100644 index 0000000..d776cfb --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/props.js @@ -0,0 +1,8 @@ +export default { + props: { + percentage: { + type: [String, Number], + default: uni.$u.props.circleProgress.percentage + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/u-circle-progress.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/u-circle-progress.vue new file mode 100644 index 0000000..d1ee286 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-circle-progress/u-circle-progress.vue @@ -0,0 +1,198 @@ +<template> + <view class="u-circle-progress"> + <view class="u-circle-progress__left"> + <view + class="u-circle-progress__left__circle" + :style="[leftSyle]" + ref="left-circle" + > + + </view> + </view> + <view + class="u-circle-progress__right" + > + <view + class="u-circle-progress__right__circle" + ref="right-circle" + :style="[rightSyle]" + > + + </view> + </view> + <view class="u-circle-progress__circle"> + + </view> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const animation = uni.requireNativePlugin('animation') + // #endif + /** + * CircleProgress 鍦嗗舰杩涘害鏉� TODO: 寰呭畬鍠� + * @description 灞曠ず鎿嶄綔鎴栦换鍔$殑褰撳墠杩涘害锛屾瘮濡備笂浼犳枃浠讹紝鏄竴涓渾褰㈢殑杩涘害鐜�� + * @tutorial https://www.uviewui.com/components/circleProgress.html + * @property {String | Number} percentage 鍦嗙幆杩涘害鐧惧垎姣斿�硷紝涓烘暟鍊肩被鍨嬶紝0-100 (榛樿 30 ) + * @example + */ + export default { + name: 'u-circle-progress', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + leftBorderColor: 'rgb(200, 200, 200)', + rightBorderColor: 'rgb(200, 200, 200)', + } + }, + computed: { + leftSyle() { + const style = {} + style.borderTopColor = this.leftBorderColor + style.borderRightColor = this.leftBorderColor + return style + }, + rightSyle() { + const style = {} + style.borderLeftColor = this.rightBorderColor + style.borderBottomColor = this.rightBorderColor + return style + } + }, + mounted() { + uni.$u.sleep().then(() => { + this.rightBorderColor = 'rgb(66, 185, 131)' + // this.init() + }) + }, + methods: { + init() { + animation.transition(this.$refs['right-circle'].ref, { + styles: { + transform: 'rotate(45deg)', + transformOrigin: 'center center' + }, + }, () => { + this.rightBorderColor = 'rgb(66, 185, 131)' + // animation.transition(this.$refs['right-circle'].ref, { + // styles: { + // transform: 'rotate(225deg)', + // transformOrigin: 'center center' + // }, + // duration: 3000, + // }, () => { + // animation.transition(this.$refs['left-circle'].ref, { + // styles: { + // transform: 'rotate(45deg)', + // transformOrigin: 'center center' + // }, + // }, () => { + // this.leftBorderColor = 'rgb(66, 185, 131)' + // animation.transition(this.$refs['left-circle'].ref, { + // styles: { + // transform: 'rotate(225deg)', + // transformOrigin: 'center center' + // }, + // duration: 1500, + // }, () => { + + // }) + // }) + // }) + }) + + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-circle-progress { + @include flex(row); + position: relative; + border-radius: 100px; + height: 100px; + width: 100px; + // transform: rotate(0deg); + // background-color: rgb(66, 185, 131); + background-color: rgb(200, 200, 200); + overflow: hidden; + justify-content: space-between; + + &__circle { + border-radius: 100px; + height: 90px; + width: 90px; + transform: translate(-50%, -50%); + background-color: rgb(255, 255, 255); + left: 50px; + top: 50px; + position: absolute; + } + + &__left { + position: absolute; + left: 0; + width: 50px; + height: 100px; + overflow: hidden; + box-sizing: border-box; + // background-color: rgb(66, 185, 131); + // background-color: rgb(200, 200, 200); + // transform-origin: left center; + + &__circle { + box-sizing: border-box; + // background-color: red; + border-left-color: transparent; + border-bottom-color: transparent; + border-top-left-radius: 50px; + border-top-right-radius: 50px; + border-bottom-right-radius: 50px; + // border-left-color: rgb(66, 185, 131); + // border-bottom-color: rgb(66, 185, 131); + border-top-color: rgb(66, 185, 131); + border-right-color: rgb(66, 185, 131); + border-width: 5px; + width: 100px; + height: 100px; + transform: rotate(225deg); + // border-radius: 100px; + } + } + + &__right { + position: absolute; + right: 0; + width: 50px; + height: 100px; + overflow: hidden; + + &__circle { + position: absolute; + right: 0; + box-sizing: border-box; + // background-color: red; + border-top-color: transparent; + border-right-color: transparent; + border-top-left-radius: 50px; + border-bottom-left-radius: 50px; + border-bottom-right-radius: 50px; + // border-left-color: rgb(66, 185, 131); + // border-bottom-color: rgb(66, 185, 131); + border-left-color: rgb(200, 200, 200); + border-bottom-color: rgb(200, 200, 200); + border-width: 5px; + width: 100px; + height: 100px; + transform: rotate(45deg); + transform-origin: center center; + // border-radius: 100px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/props.js new file mode 100644 index 0000000..0f016ee --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/props.js @@ -0,0 +1,79 @@ +export default { + props: { + // 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰 + adjustPosition: { + type: Boolean, + default: uni.$u.props.codeInput.adjustPosition + }, + // 鏈�澶ц緭鍏ラ暱搴� + maxlength: { + type: [String, Number], + default: uni.$u.props.codeInput.maxlength + }, + // 鏄惁鐢ㄥ渾鐐瑰~鍏� + dot: { + type: Boolean, + default: uni.$u.props.codeInput.dot + }, + // 鏄剧ず妯″紡锛宐ox-鐩掑瓙妯″紡锛宭ine-搴曢儴妯嚎妯″紡 + mode: { + type: String, + default: uni.$u.props.codeInput.mode + }, + // 鏄惁缁嗚竟妗� + hairline: { + type: Boolean, + default: uni.$u.props.codeInput.hairline + }, + // 瀛楃闂寸殑璺濈 + space: { + type: [String, Number], + default: uni.$u.props.codeInput.space + }, + // 棰勭疆鍊� + value: { + type: [String, Number], + default: uni.$u.props.codeInput.value + }, + // 鏄惁鑷姩鑾峰彇鐒︾偣 + focus: { + type: Boolean, + default: uni.$u.props.codeInput.focus + }, + // 瀛椾綋鏄惁鍔犵矖 + bold: { + type: Boolean, + default: uni.$u.props.codeInput.bold + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.codeInput.color + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.codeInput.fontSize + }, + // 杈撳叆妗嗙殑澶у皬锛屽绛変簬楂� + size: { + type: [String, Number], + default: uni.$u.props.codeInput.size + }, + // 鏄惁闅愯棌鍘熺敓閿洏锛屽鏋滄兂鐢ㄨ嚜瀹氫箟閿洏鐨勮瘽锛岄渶璁剧疆姝ゅ弬鏁颁负true + disabledKeyboard: { + type: Boolean, + default: uni.$u.props.codeInput.disabledKeyboard + }, + // 杈规鍜岀嚎鏉¢鑹� + borderColor: { + type: String, + default: uni.$u.props.codeInput.borderColor + }, + // 鏄惁绂佹杈撳叆"."绗﹀彿 + disabledDot: { + type: Boolean, + default: uni.$u.props.codeInput.disabledDot + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/u-code-input.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/u-code-input.vue new file mode 100644 index 0000000..96241cf --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code-input/u-code-input.vue @@ -0,0 +1,252 @@ +<template> + <view class="u-code-input"> + <view + class="u-code-input__item" + :style="[itemStyle(index)]" + v-for="(item, index) in codeLength" + :key="index" + > + <view + class="u-code-input__item__dot" + v-if="dot && codeArray.length > index" + ></view> + <text + v-else + :style="{ + fontSize: $u.addUnit(fontSize), + fontWeight: bold ? 'bold' : 'normal', + color: color + }" + >{{codeArray[index]}}</text> + <view + class="u-code-input__item__line" + v-if="mode === 'line'" + :style="[lineStyle]" + ></view> + <!-- #ifndef APP-PLUS --> + <view v-if="isFocus && codeArray.length === index" :style="{backgroundColor: color}" class="u-code-input__item__cursor"></view> + <!-- #endif --> + </view> + <input + :disabled="disabledKeyboard" + type="number" + :focus="focus" + :value="inputValue" + :maxlength="maxlength" + :adjustPosition="adjustPosition" + class="u-code-input__input" + @input="inputHandler" + :style="{ + height: $u.addUnit(size) + }" + @focus="isFocus = true" + @blur="isFocus = false" + /> + </view> +</template> + +<script> + import props from './props.js'; + /** + * CodeInput 楠岃瘉鐮佽緭鍏� + * @description 璇ョ粍浠朵竴鑸敤浜庨獙璇佺敤鎴风煭淇¢獙璇佺爜鐨勫満鏅紝涔熷彲浠ョ粨鍚坲View鐨勯敭鐩樼粍浠朵娇鐢� + * @tutorial https://www.uviewui.com/components/codeInput.html + * @property {String | Number} maxlength 鏈�澶ц緭鍏ラ暱搴� 锛堥粯璁� 6 锛� + * @property {Boolean} dot 鏄惁鐢ㄥ渾鐐瑰~鍏� 锛堥粯璁� false 锛� + * @property {String} mode 鏄剧ず妯″紡锛宐ox-鐩掑瓙妯″紡锛宭ine-搴曢儴妯嚎妯″紡 锛堥粯璁� 'box' 锛� + * @property {Boolean} hairline 鏄惁缁嗚竟妗� 锛堥粯璁� false 锛� + * @property {String | Number} space 瀛楃闂寸殑璺濈 锛堥粯璁� 10 锛� + * @property {String | Number} value 棰勭疆鍊� + * @property {Boolean} focus 鏄惁鑷姩鑾峰彇鐒︾偣 锛堥粯璁� false 锛� + * @property {Boolean} bold 瀛椾綋鍜岃緭鍏ユí绾挎槸鍚﹀姞绮� 锛堥粯璁� false 锛� + * @property {String} color 瀛椾綋棰滆壊 锛堥粯璁� '#606266' 锛� + * @property {String | Number} fontSize 瀛椾綋澶у皬锛屽崟浣峱x 锛堥粯璁� 18 锛� + * @property {String | Number} size 杈撳叆妗嗙殑澶у皬锛屽绛変簬楂� 锛堥粯璁� 35 锛� + * @property {Boolean} disabledKeyboard 鏄惁闅愯棌鍘熺敓閿洏锛屽鏋滄兂鐢ㄨ嚜瀹氫箟閿洏鐨勮瘽锛岄渶璁剧疆姝ゅ弬鏁颁负true 锛堥粯璁� false 锛� + * @property {String} borderColor 杈规鍜岀嚎鏉¢鑹� 锛堥粯璁� '#c9cacc' 锛� + * @property {Boolean} disabledDot 鏄惁绂佹杈撳叆"."绗﹀彿 锛堥粯璁� true 锛� + * + * @event {Function} change 杈撳叆鍐呭鍙戠敓鏀瑰彉鏃惰Е鍙戯紝鍏蜂綋瑙佷笂鏂硅鏄� value锛氬綋鍓嶈緭鍏ョ殑鍊� + * @event {Function} finish 杈撳叆瀛楃涓暟杈緈axlength鍊兼椂瑙﹀彂锛岃涓婃柟璇存槑 value锛氬綋鍓嶈緭鍏ョ殑鍊� + * @example <u-code-input v-model="value4" :focus="true"></u-code-input> + */ + export default { + name: 'u-code-input', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + inputValue: '', + isFocus: this.focus + } + }, + watch: { + value: { + immediate: true, + handler(val) { + // 杞负瀛楃涓诧紝瓒呭嚭閮ㄥ垎鎴帀 + this.inputValue = String(val).substring(0, this.maxlength) + } + }, + }, + computed: { + // 鏍规嵁闀垮害锛屽惊鐜緭鍏ユ鐨勪釜鏁帮紝鍥犱负澶存潯灏忕▼搴忔暟鍊间笉鑳界敤浜巚-for + codeLength() { + return new Array(Number(this.maxlength)) + }, + // 寰幆item鐨勬牱寮� + itemStyle() { + return index => { + const addUnit = uni.$u.addUnit + const style = { + width: addUnit(this.size), + height: addUnit(this.size) + } + // 鐩掑瓙妯″紡涓嬶紝闇�瑕侀澶栬繘琛屽鐞� + if (this.mode === 'box') { + // 璁剧疆鐩掑瓙鐨勮竟妗嗭紝濡傛灉鏄粏杈规锛屽垯璁剧疆涓�0.5px瀹藉害 + style.border = `${this.hairline ? 0.5 : 1}px solid ${this.borderColor}` + // 濡傛灉鐩掑瓙闂磋窛涓�0鐨勮瘽 + if (uni.$u.getPx(this.space) === 0) { + // 缁欑涓�鍜屾渶鍚庝竴涓洅瀛愯缃渾瑙� + if (index === 0) { + style.borderTopLeftRadius = '3px' + style.borderBottomLeftRadius = '3px' + } + if (index === this.codeLength.length - 1) { + style.borderTopRightRadius = '3px' + style.borderBottomRightRadius = '3px' + } + // 鏈�鍚庝竴涓洅瀛愮殑鍙宠竟妗嗛渶瑕佷繚鐣� + if (index !== this.codeLength.length - 1) { + style.borderRight = 'none' + } + } + } + if (index !== this.codeLength.length - 1) { + // 璁剧疆楠岃瘉鐮佸瓧绗︿箣闂寸殑璺濈锛岄�氳繃margin-right璁剧疆锛屾渶鍚庝竴涓瓧绗︼紝鏃犻渶鍙宠竟妗� + style.marginRight = addUnit(this.space) + } else { + // 鏈�鍚庝竴涓洅瀛愮殑鏈夎竟妗嗛渶瑕佷繚鐣� + style.marginRight = 0 + } + + return style + } + }, + // 灏嗚緭鍏ョ殑鍊硷紝杞负鏁扮粍锛岀粰item鍘嗛亶鏃讹紝鏍规嵁褰撳墠鐨勭储寮曟樉绀烘暟缁勭殑鍏冪礌 + codeArray() { + return String(this.inputValue).split('') + }, + // 涓嬪垝绾挎ā寮忎笅锛屾í绾跨殑鏍峰紡 + lineStyle() { + const style = {} + style.height = this.hairline ? '2px' : '4px' + style.width = uni.$u.addUnit(this.size) + // 绾挎潯妯″紡涓嬶紝鑳屾櫙鑹插嵆涓鸿竟妗嗛鑹� + style.backgroundColor = this.borderColor + return style + } + }, + methods: { + // 鐩戝惉杈撳叆妗嗙殑鍊煎彂鐢熷彉鍖� + inputHandler(e) { + const value = e.detail.value + this.inputValue = value + // 鏄惁鍏佽杈撳叆鈥�.鈥濈鍙� + if(this.disabledDot) { + this.$nextTick(() => { + this.inputValue = value.replace('.', '') + }) + } + // 鏈揪鍒癿axlength涔嬪墠锛屽彂閫乧hange浜嬩欢锛岃揪鍒板悗鍙戦�乫inish浜嬩欢 + this.$emit('change', value) + // 淇敼閫氳繃v-model鍙屽悜缁戝畾鐨勫�� + this.$emit('input', value) + // 杈惧埌鐢ㄦ埛鎸囧畾杈撳叆闀垮害鏃讹紝鍙戝嚭瀹屾垚浜嬩欢 + if (String(value).length >= Number(this.maxlength)) { + this.$emit('finish', value) + } + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-code-input-cursor-width: 1px; + $u-code-input-cursor-height: 40%; + $u-code-input-cursor-animation-duration: 1s; + $u-code-input-cursor-animation-name: u-cursor-flicker; + + .u-code-input { + @include flex; + position: relative; + overflow: hidden; + + &__item { + @include flex; + justify-content: center; + align-items: center; + position: relative; + + &__text { + font-size: 15px; + color: $u-content-color; + } + + &__dot { + width: 7px; + height: 7px; + border-radius: 100px; + background-color: $u-content-color; + } + + &__line { + position: absolute; + bottom: 0; + height: 4px; + border-radius: 100px; + width: 40px; + background-color: $u-content-color; + } + /* #ifndef APP-PLUS */ + &__cursor { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%,-50%); + width: $u-code-input-cursor-width; + height: $u-code-input-cursor-height; + animation: $u-code-input-cursor-animation-duration u-cursor-flicker infinite; + } + /* #endif */ + + } + + &__input { + // 涔嬫墍浠ラ渶瑕乮nput杈撳叆妗嗭紝鏄洜涓烘湁瀹冩墠鑳藉敜璧烽敭鐩� + // 杩欓噷灏嗗畠璁剧疆涓轰袱鍊嶇殑灞忓箷瀹藉害锛屽啀灏嗗乏杈圭殑涓�鍗婄Щ鍑哄睆骞曪紝涓轰簡涓嶈鐢ㄦ埛鐪嬪埌杈撳叆鐨勫唴瀹� + position: absolute; + left: -750rpx; + width: 1500rpx; + top: 0; + background-color: transparent; + text-align: left; + } + } + + /* #ifndef APP-PLUS */ + @keyframes u-cursor-flicker { + 0% { + opacity: 0; + } + 50% { + opacity: 1; + } + 100% { + opacity: 0; + } + } + /* #endif */ + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/props.js new file mode 100644 index 0000000..eaf80d0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/props.js @@ -0,0 +1,34 @@ +export default { + props: { + // 鍊掕鏃舵�荤鏁� + seconds: { + type: [String, Number], + default: uni.$u.props.code.seconds + }, + // 灏氭湭寮�濮嬫椂鎻愮ず + startText: { + type: String, + default: uni.$u.props.code.startText + }, + // 姝e湪鍊掕鏃朵腑鐨勬彁绀� + changeText: { + type: String, + default: uni.$u.props.code.changeText + }, + // 鍊掕鏃剁粨鏉熸椂鐨勬彁绀� + endText: { + type: String, + default: uni.$u.props.code.endText + }, + // 鏄惁鍦℉5鍒锋柊鎴栧悇绔繑鍥炲啀杩涘叆鏃剁户缁�掕鏃� + keepRunning: { + type: Boolean, + default: uni.$u.props.code.keepRunning + }, + // 涓轰簡鍖哄垎澶氫釜椤甸潰锛屾垨鑰呬竴涓〉闈㈠涓�掕鏃剁粍浠舵湰鍦板瓨鍌ㄧ殑缁х画鍊掕鏃跺彉浜� + uniqueKey: { + type: String, + default: uni.$u.props.code.uniqueKey + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/u-code.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/u-code.vue new file mode 100644 index 0000000..f79a09a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-code/u-code.vue @@ -0,0 +1,129 @@ +<template> + <view class="u-code"> + <!-- 姝ょ粍浠跺姛鑳界敱js瀹屾垚锛屾棤闇�鍐檋tml閫昏緫 --> + </view> +</template> + +<script> + import props from './props.js'; + /** + * Code 楠岃瘉鐮佽緭鍏ユ + * @description 鑰冭檻鍒扮敤鎴峰疄闄呭彂閫侀獙璇佺爜鐨勫満鏅紝鍙兘鏄竴涓寜閽紝涔熷彲鑳芥槸涓�娈垫枃瀛楋紝鎻愮ず璇悇鏈変笉鍚岋紝鎵�浠ユ湰缁勪欢 涓嶆彁渚涚晫闈㈡樉绀猴紝鍙彁渚涙彁绀鸿锛岀敱鐢ㄦ埛灏嗘彁绀鸿宓屽叆鍒板叿浣撶殑鍦烘櫙 + * @tutorial https://www.uviewui.com/components/code.html + * @property {String | Number} seconds 鍊掕鏃舵墍闇�鐨勭鏁帮紙榛樿 60 锛� + * @property {String} startText 寮�濮嬪墠鐨勬彁绀鸿锛岃瀹樼綉璇存槑锛堥粯璁� '鑾峰彇楠岃瘉鐮�' 锛� + * @property {String} changeText 鍊掕鏃舵湡闂寸殑鎻愮ず璇紝蹇呴』甯︽湁瀛楁瘝"x"锛岃瀹樼綉璇存槑锛堥粯璁� 'X绉掗噸鏂拌幏鍙�' 锛� + * @property {String} endText 鍊掕缁撴潫鐨勬彁绀鸿锛岃瀹樼綉璇存槑锛堥粯璁� '閲嶆柊鑾峰彇' 锛� + * @property {Boolean} keepRunning 鏄惁鍦℉5鍒锋柊鎴栧悇绔繑鍥炲啀杩涘叆鏃剁户缁�掕鏃讹紙 榛樿false 锛� + * @property {String} uniqueKey 涓轰簡鍖哄垎澶氫釜椤甸潰锛屾垨鑰呬竴涓〉闈㈠涓�掕鏃剁粍浠舵湰鍦板瓨鍌ㄧ殑缁х画鍊掕鏃跺彉浜� + * + * @event {Function} change 鍊掕鏃舵湡闂达紝姣忕瑙﹀彂涓�娆� + * @event {Function} start 寮�濮嬪�掕鏃惰Е鍙� + * @event {Function} end 缁撴潫鍊掕鏃惰Е鍙� + * @example <u-code ref="uCode" @change="codeChange" seconds="20"></u-code> + */ + export default { + name: "u-code", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + secNum: this.seconds, + timer: null, + canGetCode: true, // 鏄惁鍙互鎵ц楠岃瘉鐮佹搷浣� + } + }, + mounted() { + this.checkKeepRunning() + }, + watch: { + seconds: { + immediate: true, + handler(n) { + this.secNum = n + } + } + }, + methods: { + checkKeepRunning() { + // 鑾峰彇涓婁竴娆¢��鍑洪〉闈�(H5杩樺寘鎷埛鏂�)鏃剁殑鏃堕棿鎴筹紝濡傛灉娌℃湁涓婃鐨勪繚瀛橈紝姝ゅ�煎彲鑳戒负绌� + let lastTimestamp = Number(uni.getStorageSync(this.uniqueKey + '_$uCountDownTimestamp')) + if(!lastTimestamp) return this.changeEvent(this.startText) + // 褰撳墠绉掔殑鏃堕棿鎴� + let nowTimestamp = Math.floor((+ new Date()) / 1000) + // 鍒ゆ柇褰撳墠鐨勬椂闂存埑锛屾槸鍚﹀皬浜庝笂涓�娆$殑鏈鎸夎瀹氱粨鏉燂紝鍗存彁鍓嶇粨鏉熺殑鏃堕棿鎴� + if(this.keepRunning && lastTimestamp && lastTimestamp > nowTimestamp) { + // 鍓╀綑灏氭湭鎵ц瀹岀殑鍊掕绉掓暟 + this.secNum = lastTimestamp - nowTimestamp + // 娓呴櫎鏈湴淇濆瓨鐨勫彉閲� + uni.removeStorageSync(this.uniqueKey + '_$uCountDownTimestamp') + // 寮�濮嬪�掕鏃� + this.start() + } else { + // 濡傛灉涓嶅瓨鍦ㄩ渶瑕佺户缁笂涓�娆$殑鍊掕鏃讹紝鎵ц姝e父鐨勯�昏緫 + this.changeEvent(this.startText) + } + }, + // 寮�濮嬪�掕鏃� + start() { + // 闃叉蹇�熺偣鍑昏幏鍙栭獙璇佺爜鐨勬寜閽�屽鑷村唴閮ㄤ骇鐢熷涓畾鏃跺櫒瀵艰嚧娣蜂贡 + if(this.timer) { + clearInterval(this.timer) + this.timer = null + } + this.$emit('start') + this.canGetCode = false + // 杩欓噷鏀捐繖鍙ワ紝鏄负浜嗕竴寮�濮嬫椂灏辨彁绀猴紝鍚﹀垯瑕佺瓑setInterval鐨�1绉掑悗鎵嶄細鏈夋彁绀� + this.changeEvent(this.changeText.replace(/x|X/, this.secNum)) + this.timer = setInterval(() => { + if (--this.secNum) { + // 鐢ㄥ綋鍓嶅�掕鏃剁殑绉掓暟鏇挎崲鎻愮ず瀛楃涓蹭腑鐨�"x"瀛楁瘝 + this.changeEvent(this.changeText.replace(/x|X/, this.secNum)) + } else { + clearInterval(this.timer) + this.timer = null + this.changeEvent(this.endText) + this.secNum = this.seconds + this.$emit('end') + this.canGetCode = true + } + }, 1000) + this.setTimeToStorage() + }, + // 閲嶇疆锛屽彲浠ヨ鐢ㄦ埛鍐嶆鑾峰彇楠岃瘉鐮� + reset() { + this.canGetCode = true + clearInterval(this.timer) + this.secNum = this.seconds + this.changeEvent(this.endText) + }, + changeEvent(text) { + this.$emit('change', text) + }, + // 淇濆瓨鏃堕棿鎴筹紝涓轰簡闃叉鍊掕鏃跺皻鏈粨鏉燂紝H5鍒锋柊鎴栬�呭悇绔殑鍙充笂瑙掕繑鍥炰笂涓�椤靛啀杩涙潵 + setTimeToStorage() { + if(!this.keepRunning || !this.timer) return + // 璁板綍褰撳墠鐨勬椂闂存埑锛屼负浜嗕笅娆¤繘鍏ラ〉闈紝濡傛灉杩樺湪鍊掕鏃跺唴鐨勮瘽锛岀户缁�掕鏃� + // 鍊掕鏃跺皻鏈粨鏉燂紝缁撴灉澶т簬0锛涘�掕鏃跺凡缁忓紑濮嬶紝灏变細灏忎簬鍒濆鍊硷紝濡傛灉绛変簬鍒濆鍊硷紝璇存槑娌℃湁寮�濮嬪�掕鏃讹紝鏃犻渶澶勭悊 + if(this.secNum > 0 && this.secNum <= this.seconds) { + // 鑾峰彇褰撳墠鏃堕棿鎴�(+ new Date()涓虹壒娈婂啓娉�)锛岄櫎浠�1000鍙樻垚绉掞紝鍐嶅幓闄ゅ皬鏁伴儴鍒� + let nowTimestamp = Math.floor((+ new Date()) / 1000) + // 灏嗘湰璇ョ粨鏉熸椂鍊欑殑鏃堕棿鎴充繚瀛樿捣鏉� => 褰撳墠鏃堕棿鎴� + 鍓╀綑鐨勭鏁� + uni.setStorage({ + key: this.uniqueKey + '_$uCountDownTimestamp', + data: nowTimestamp + Number(this.secNum) + }) + } + } + }, + // 缁勪欢閿�姣佺殑鏃跺�欙紝娓呴櫎瀹氭椂鍣紝鍚﹀垯瀹氭椂鍣ㄤ細缁х画瀛樺湪锛岀郴缁熶笉浼氳嚜鍔ㄦ竻闄� + beforeDestroy() { + this.setTimeToStorage() + clearTimeout(this.timer) + this.timer = null + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/props.js new file mode 100644 index 0000000..0622251 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/props.js @@ -0,0 +1,29 @@ +export default { + props: { + // 鍗犵埗瀹瑰櫒瀹藉害鐨勫灏戠瓑鍒嗭紝鎬诲垎涓�12浠� + span: { + type: [String, Number], + default: uni.$u.props.col.span + }, + // 鎸囧畾鏍呮牸宸︿晶鐨勯棿闅旀暟(鎬�12鏍�) + offset: { + type: [String, Number], + default: uni.$u.props.col.offset + }, + // 姘村钩鎺掑垪鏂瑰紡锛屽彲閫夊�间负`start`(鎴朻flex-start`)銆乣end`(鎴朻flex-end`)銆乣center`銆乣around`(鎴朻space-around`)銆乣between`(鎴朻space-between`) + justify: { + type: String, + default: uni.$u.props.col.justify + }, + // 鍨傜洿瀵归綈鏂瑰紡锛屽彲閫夊�间负top銆乧enter銆乥ottom銆乻tretch + align: { + type: String, + default: uni.$u.props.col.align + }, + // 鏂囧瓧瀵归綈鏂瑰紡 + textAlign: { + type: String, + default: uni.$u.props.col.textAlign + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/u-col.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/u-col.vue new file mode 100644 index 0000000..8be1517 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-col/u-col.vue @@ -0,0 +1,162 @@ +<template> + <view + class="u-col" + ref="u-col" + :class="[ + 'u-col-' + span + ]" + :style="[colStyle]" + @tap="clickHandler" + > + <slot></slot> + </view> +</template> + +<script> + import props from './props.js'; + /** + * CodeInput 鏍呮牸绯荤粺鐨勫垪 + * @description 璇ョ粍浠朵竴鑸敤浜嶭ayout 甯冨眬 閫氳繃鍩虹鐨� 12 鍒嗘爮锛岃繀閫熺畝渚垮湴鍒涘缓甯冨眬 + * @tutorial https://www.uviewui.com/components/Layout.html + * @property {String | Number} span 鏍呮牸鍗犳嵁鐨勫垪鏁帮紝鎬�12绛変唤 (榛樿 12 ) + * @property {String | Number} offset 鍒嗘爮宸﹁竟鍋忕Щ锛岃绠楁柟寮忎笌span鐩稿悓 (榛樿 0 ) + * @property {String} justify 姘村钩鎺掑垪鏂瑰紡锛屽彲閫夊�间负`start`(鎴朻flex-start`)銆乣end`(鎴朻flex-end`)銆乣center`銆乣around`(鎴朻space-around`)銆乣between`(鎴朻space-between`) (榛樿 'start' ) + * @property {String} align 鍨傜洿瀵归綈鏂瑰紡锛屽彲閫夊�间负top銆乧enter銆乥ottom銆乻tretch (榛樿 'stretch' ) + * @property {String} textAlign 鏂囧瓧姘村钩瀵归綈鏂瑰紡 (榛樿 'left' ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @event {Function} click col琚偣鍑伙紝浼氶樆姝簨浠跺啋娉″埌row + * @example <u-col span="3" offset="3" > <view class="demo-layout bg-purple"></view> </u-col> + */ + export default { + name: 'u-col', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + width: 0, + parentData: { + gutter: 0 + }, + gridNum: 12 + } + }, + computed: { + uJustify() { + if (this.justify == 'end' || this.justify == 'start') return 'flex-' + this.justify + else if (this.justify == 'around' || this.justify == 'between') return 'space-' + this.justify + else return this.justify + }, + uAlignItem() { + if (this.align == 'top') return 'flex-start' + if (this.align == 'bottom') return 'flex-end' + else return this.align + }, + colStyle() { + const style = { + // 杩欓噷鍐欐垚"padding: 0 10px"鐨勫舰寮忔槸鍥犱负nvue鐨勯渶瑕� + paddingLeft: uni.$u.addUnit(uni.$u.getPx(this.parentData.gutter)/2), + paddingRight: uni.$u.addUnit(uni.$u.getPx(this.parentData.gutter)/2), + alignItems: this.uAlignItem, + justifyContent: this.uJustify, + textAlign: this.textAlign, + // #ifndef APP-NVUE + // 鍦ㄩ潪nvue涓婏紝浣跨敤鐧惧垎姣斿舰寮� + flex: `0 0 ${100 / this.gridNum * this.span}%`, + marginLeft: 100 / 12 * this.offset + '%', + // #endif + // #ifdef APP-NVUE + // 鍦╪vue涓婏紝鐢变簬鏃犳硶浣跨敤鐧惧垎姣斿崟浣嶏紝杩欓噷闇�瑕佽幏鍙栫埗缁勪欢鐨勫搴︼紝鍐嶈绠楀緱鍑鸿鏈夊搴旂殑鐧惧垎姣斿昂瀵� + width: uni.$u.addUnit(Math.floor(this.width / this.gridNum * Number(this.span))), + marginLeft: uni.$u.addUnit(Math.floor(this.width / this.gridNum * Number(this.offset))), + // #endif + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + mounted() { + this.init() + }, + methods: { + async init() { + // 鏀粯瀹濆皬绋嬪簭涓嶆敮鎸乸rovide/inject锛屾墍浠ヤ娇鐢ㄨ繖涓柟娉曡幏鍙栨暣涓埗缁勪欢锛屽湪created瀹氫箟锛岄伩鍏嶅惊鐜紩鐢� + this.updateParentData() + this.width = await this.parent.getComponentWidth() + }, + updateParentData() { + this.getParentData('u-row') + }, + clickHandler(e) { + this.$emit('click'); + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-col { + padding: 0; + /* #ifndef APP-NVUE */ + box-sizing:border-box; + /* #endif */ + /* #ifdef MP */ + display: block; + /* #endif */ + } + + // nvue涓嬬櫨鍒嗘瘮鏃犳晥 + /* #ifndef APP-NVUE */ + .u-col-0 { + width: 0; + } + + .u-col-1 { + width: calc(100%/12); + } + + .u-col-2 { + width: calc(100%/12 * 2); + } + + .u-col-3 { + width: calc(100%/12 * 3); + } + + .u-col-4 { + width: calc(100%/12 * 4); + } + + .u-col-5 { + width: calc(100%/12 * 5); + } + + .u-col-6 { + width: calc(100%/12 * 6); + } + + .u-col-7 { + width: calc(100%/12 * 7); + } + + .u-col-8 { + width: calc(100%/12 * 8); + } + + .u-col-9 { + width: calc(100%/12 * 9); + } + + .u-col-10 { + width: calc(100%/12 * 10); + } + + .u-col-11 { + width: calc(100%/12 * 11); + } + + .u-col-12 { + width: calc(100%/12 * 12); + } + + /* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/props.js new file mode 100644 index 0000000..bd5749b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 鏍囬 + title: { + type: String, + default: uni.$u.props.collapseItem.title + }, + // 鏍囬鍙充晶鍐呭 + value: { + type: String, + default: uni.$u.props.collapseItem.value + }, + // 鏍囬涓嬫柟鐨勬弿杩颁俊鎭� + label: { + type: String, + default: uni.$u.props.collapseItem.label + }, + // 鏄惁绂佺敤鎶樺彔闈㈡澘 + disabled: { + type: Boolean, + default: uni.$u.props.collapseItem.disabled + }, + // 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣� + isLink: { + type: Boolean, + default: uni.$u.props.collapseItem.isLink + }, + // 鏄惁寮�鍚偣鍑诲弽棣� + clickable: { + type: Boolean, + default: uni.$u.props.collapseItem.clickable + }, + // 鏄惁鏄剧ず鍐呰竟妗� + border: { + type: Boolean, + default: uni.$u.props.collapseItem.border + }, + // 鏍囬鐨勫榻愭柟寮� + align: { + type: String, + default: uni.$u.props.collapseItem.align + }, + // 鍞竴鏍囪瘑绗� + name: { + type: [String, Number], + default: uni.$u.props.collapseItem.name + }, + // 鏍囬宸︿晶鍥剧墖锛屽彲涓虹粷瀵硅矾寰勭殑鍥剧墖鎴栧唴缃浘鏍� + icon: { + type: String, + default: uni.$u.props.collapseItem.icon + }, + // 闈㈡澘灞曞紑鏀惰捣鐨勮繃娓℃椂闂达紝鍗曚綅ms + duration: { + type: Number, + default: uni.$u.props.collapseItem.duration + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/u-collapse-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/u-collapse-item.vue new file mode 100644 index 0000000..0e1b703 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse-item/u-collapse-item.vue @@ -0,0 +1,225 @@ +<template> + <view class="u-collapse-item"> + <u-cell + :title="title" + :value="value" + :label="label" + :icon="icon" + :isLink="isLink" + :clickable="clickable" + :border="parentData.border && showBorder" + @click="clickHandler" + :arrowDirection="expanded ? 'up' : 'down'" + :disabled="disabled" + > + <!-- #ifndef MP-WEIXIN --> + <!-- 寰俊灏忕▼搴忎笉鏀寔锛屽洜涓哄井淇′腑涓嶆敮鎸� <slot name="title" slot="title" />鐨勫啓娉� --> + <template slot="title"> + <slot name="title"></slot> + </template> + <template slot="icon"> + <slot name="icon"></slot> + </template> + <template slot="value"> + <slot name="value"></slot> + </template> + <template slot="right-icon"> + <slot name="right-icon"></slot> + </template> + <!-- #endif --> + </u-cell> + <view + class="u-collapse-item__content" + :animation="animationData" + ref="animation" + > + <view + class="u-collapse-item__content__text content-class" + :id="elId" + :ref="elId" + ><slot /></view> + </view> + <u-line v-if="parentData.border"></u-line> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const animation = uni.requireNativePlugin('animation') + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * collapseItem 鎶樺彔闈㈡澘Item + * @description 閫氳繃鎶樺彔闈㈡澘鏀剁撼鍐呭鍖哄煙锛堟惌閰島-collapse浣跨敤锛� + * @tutorial https://www.uviewui.com/components/collapse.html + * @property {String} title 鏍囬 + * @property {String} value 鏍囬鍙充晶鍐呭 + * @property {String} label 鏍囬涓嬫柟鐨勬弿杩颁俊鎭� + * @property {Boolean} disbled 鏄惁绂佺敤鎶樺彔闈㈡澘 ( 榛樿 false ) + * @property {Boolean} isLink 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣� ( 榛樿 true ) + * @property {Boolean} clickable 鏄惁寮�鍚偣鍑诲弽棣� ( 榛樿 true ) + * @property {Boolean} border 鏄惁鏄剧ず鍐呰竟妗� ( 榛樿 true ) + * @property {String} align 鏍囬鐨勫榻愭柟寮� ( 榛樿 'left' ) + * @property {String | Number} name 鍞竴鏍囪瘑绗� + * @property {String} icon 鏍囬宸︿晶鍥剧墖锛屽彲涓虹粷瀵硅矾寰勭殑鍥剧墖鎴栧唴缃浘鏍� + * @event {Function} change 鏌愪釜item琚墦寮�鎴栬�呮敹璧锋椂瑙﹀彂 + * @example <u-collapse-item :title="item.head" v-for="(item, index) in itemList" :key="index">{{item.body}}</u-collapse-item> + */ + export default { + name: "u-collapse-item", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + elId: uni.$u.guid(), + // uni.createAnimation鐨勫鍑烘暟鎹� + animationData: {}, + // 鏄惁灞曞紑鐘舵�� + expanded: false, + // 鏍规嵁expanded纭畾鏄惁鏄剧ずborder锛屼负浜嗘帶鍒跺睍寮�鏃讹紝cell鐨勪笅鍒掔嚎鏇村ソ鐨勬樉绀烘晥鏋滐紝杩涜涓�瀹氭椂闂寸殑寤舵椂 + showBorder: false, + // 鏄惁鍔ㄧ敾涓紝濡傛灉鏄垯涓嶅厑璁哥户缁Е鍙戠偣鍑� + animating: false, + // 鐖剁粍浠秛-collapse鐨勫弬鏁� + parentData: { + accordion: false, + border: false + } + }; + }, + watch: { + expanded(n) { + clearTimeout(this.timer) + this.timer = null + // 杩欓噷鏍规嵁expanded鐨勫�兼潵杩涜涓�瀹氱殑寤舵椂锛屾槸涓轰簡cell鐨勪笅鍒掔嚎鏇村ソ鐨勬樉绀烘晥鏋� + this.timer = setTimeout(() => { + this.showBorder = n + }, n ? 10 : 290) + } + }, + mounted() { + this.init() + }, + methods: { + // 寮傛鑾峰彇鍐呭锛屾垨鑰呭姩鎬佷慨鏀逛簡鍐呭鏃讹紝闇�瑕侀噸鏂板垵濮嬪寲 + init() { + // 鍒濆鍖栨暟鎹� + this.updateParentData() + if (!this.parent) { + return uni.$u.error('u-collapse-item蹇呴』瑕佹惌閰島-collapse缁勪欢浣跨敤') + } + const { + value, + accordion, + children = [] + } = this.parent + + if (accordion) { + if (uni.$u.test.array(value)) { + return uni.$u.error('鎵嬮鐞存ā寮忎笅锛寀-collapse缁勪欢鐨剉alue鍙傛暟涓嶈兘涓烘暟缁�') + } + this.expanded = this.name == value + } else { + if (!uni.$u.test.array(value) && value !== null) { + return uni.$u.error('闈炴墜椋庣惔妯″紡涓嬶紝u-collapse缁勪欢鐨剉alue鍙傛暟蹇呴』涓烘暟缁�') + } + this.expanded = (value || []).some(item => item == this.name) + } + // 璁剧疆缁勪欢鐨勫睍寮�鎴栨敹璧风姸鎬� + this.$nextTick(function() { + this.setContentAnimate() + }) + }, + updateParentData() { + // 姝ゆ柟娉曞湪mixin涓� + this.getParentData('u-collapse') + }, + async setContentAnimate() { + // 姣忔闈㈡澘鎵撳紑鎴栬�呮敹璧锋椂锛岄兘鏌ヨ鍏冪礌灏哄 + // 濂藉鏄紝鐖剁粍浠朵粠鏈嶅姟绔幏鍙栧唴瀹瑰悗锛屽彉鏇存姌鍙犻潰鏉垮悗鍙互鑾峰緱鏈�鏂扮殑楂樺害 + const rect = await this.queryRect() + const height = this.expanded ? rect.height : 0 + this.animating = true + // #ifdef APP-NVUE + const ref = this.$refs['animation'].ref + animation.transition(ref, { + styles: { + height: height + 'px' + }, + duration: this.duration, + // 蹇呴』璁剧疆涓簍rue锛屽惁鍒欎細鍒伴潰鏉挎敹璧锋垨灞曞紑鏃讹紝椤甸潰鍏朵粬鍏冪礌涓嶄細闅忎箣璋冩暣瀹冧滑鐨勫竷灞� + needLayout: true, + timingFunction: 'ease-in-out', + }, () => { + this.animating = false + }) + // #endif + + // #ifndef APP-NVUE + const animation = uni.createAnimation({ + timingFunction: 'ease-in-out', + }); + animation + .height(height) + .step({ + duration: this.duration, + }) + .step() + // 瀵煎嚭鍔ㄧ敾鏁版嵁缁欓潰鏉跨殑animationData鍊� + this.animationData = animation.export() + // 鏍囪瘑鍔ㄧ敾缁撴潫 + uni.$u.sleep(this.duration).then(() => { + this.animating = false + }) + // #endif + }, + // 鐐瑰嚮collapsehead澶撮儴 + clickHandler() { + if (this.disabled && this.animating) return + // 璁剧疆鏈粍浠朵负鐩稿弽鐨勭姸鎬� + this.parent && this.parent.onChange(this) + }, + // 鏌ヨ鍐呭楂樺害 + queryRect() { + // #ifndef APP-NVUE + // $uGetRect涓簎View鑷甫鐨勮妭鐐规煡璇㈢畝鍖栨柟娉曪紝璇﹁鏂囨。浠嬬粛锛歨ttps://www.uviewui.com/js/getRect.html + // 缁勪欢鍐呴儴涓�鑸敤this.$uGetRect锛屽澶栫殑涓簎ni.$u.getRect锛屼簩鑰呭姛鑳戒竴鑷达紝鍚嶇О涓嶅悓 + return new Promise(resolve => { + this.$uGetRect(`#${this.elId}`).then(size => { + resolve(size) + }) + }) + // #endif + + // #ifdef APP-NVUE + // nvue涓嬶紝浣跨敤dom妯″潡鏌ヨ鍏冪礌楂樺害 + // 杩斿洖涓�涓猵romise锛岃璋冪敤姝ゆ柟娉曠殑涓讳綋鑳戒娇鐢╰hen鍥炶皟 + return new Promise(resolve => { + dom.getComponentRect(this.$refs[this.elId], res => { + resolve(res.size) + }) + }) + // #endif + } + }, + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-collapse-item { + + &__content { + overflow: hidden; + height: 0; + + &__text { + padding: 12px 15px; + color: $u-content-color; + font-size: 14px; + line-height: 18px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/props.js new file mode 100644 index 0000000..7ee6d31 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/props.js @@ -0,0 +1,19 @@ +export default { + props: { + // 褰撳墠灞曞紑闈㈡澘鐨刵ame锛岄潪鎵嬮鐞存ā寮忥細[<string | number>]锛屾墜椋庣惔妯″紡锛歴tring | number + value: { + type: [String, Number, Array, null], + default: uni.$u.props.collapse.value + }, + // 鏄惁鎵嬮鐞存ā寮� + accordion: { + type: Boolean, + default: uni.$u.props.collapse.accordion + }, + // 鏄惁鏄剧ず澶栬竟妗� + border: { + type: Boolean, + default: uni.$u.props.collapse.border + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/u-collapse.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/u-collapse.vue new file mode 100644 index 0000000..fc188a2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-collapse/u-collapse.vue @@ -0,0 +1,90 @@ +<template> + <view class="u-collapse"> + <u-line v-if="border"></u-line> + <slot /> + </view> +</template> + +<script> + import props from './props.js'; + /** + * collapse 鎶樺彔闈㈡澘 + * @description 閫氳繃鎶樺彔闈㈡澘鏀剁撼鍐呭鍖哄煙 + * @tutorial https://www.uviewui.com/components/collapse.html + * @property {String | Number | Array} value 褰撳墠灞曞紑闈㈡澘鐨刵ame锛岄潪鎵嬮鐞存ā寮忥細[<string | number>]锛屾墜椋庣惔妯″紡锛歴tring | number + * @property {Boolean} accordion 鏄惁鎵嬮鐞存ā寮忥紙 榛樿 false 锛� + * @property {Boolean} border 鏄惁鏄剧ず澶栬竟妗� ( 榛樿 true 锛� + * @event {Function} change 褰撳墠婵�娲婚潰鏉垮睍寮�鏃惰Е鍙�(濡傛灉鏄墜椋庣惔妯″紡锛屽弬鏁癮ctiveNames绫诲瀷涓篠tring锛屽惁鍒欎负Array) + * @example <u-collapse></u-collapse> + */ + export default { + name: "u-collapse", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + watch: { + needInit() { + this.init() + } + }, + created() { + this.children = [] + }, + computed: { + needInit() { + // 閫氳繃computed锛屽悓鏃剁洃鍚琣ccordion鍜寁alue鍊肩殑鍙樺寲 + // 鍐嶉�氳繃watch鍘绘墽琛宨nit()鏂规硶锛岃繘琛屽啀涓�娆$殑鍒濆鍖� + return [this.accordion, this.value] + } + }, + watch: { + // 褰撶埗缁勪欢闇�瑕佸瓙缁勪欢闇�瑕佸叡浜殑鍙傛暟鍙戠敓浜嗗彉鍖栵紝鎵嬪姩閫氱煡瀛愮粍浠� + parentData() { + if (this.children.length) { + this.children.map(child => { + // 鍒ゆ柇瀛愮粍浠�(u-checkbox)濡傛灉鏈塽pdateParentData鏂规硶鐨勮瘽锛屽氨灏辨墽琛�(鎵ц鐨勭粨鏋滄槸瀛愮粍浠堕噸鏂颁粠鐖剁粍浠舵媺鍙栦簡鏈�鏂扮殑鍊�) + typeof(child.updateParentData) === 'function' && child.updateParentData() + }) + } + }, + }, + methods: { + // 閲嶆柊鍒濆鍖栦竴娆″唴閮ㄧ殑鎵�鏈夊瓙鍏冪礌 + init() { + this.children.map(child => { + child.init() + }) + }, + /** + * collapse-item琚偣鍑绘椂瑙﹀彂锛岀敱collapse缁熶竴澶勭悊鍚勫瓙缁勪欢鐨勭姸鎬� + * @param {Object} target 琚搷浣滅殑闈㈡澘鐨勫疄渚� + */ + onChange(target) { + let changeArr = [] + this.children.map((child, index) => { + // 濡傛灉鏄墜椋庣惔妯″紡锛屽皢鍏朵粬鐨勬姌鍙犻潰鏉挎敹璧锋潵 + if (this.accordion) { + child.expanded = child === target ? !target.expanded : false + child.setContentAnimate() + } else { + if(child === target) { + child.expanded = !child.expanded + child.setContentAnimate() + } + } + // 鎷兼帴change浜嬩欢涓紝鏁扮粍鍏冪礌鐨勭姸鎬� + changeArr.push({ + // 濡傛灉娌℃湁瀹氫箟name灞炴�э紝鍒欓粯璁よ繑鍥炵粍浠剁殑index绱㈠紩 + name: child.name || index, + status: child.expanded ? 'open' : 'close' + }) + }) + + this.$emit('change', changeArr) + this.$emit(target.expanded ? 'open' : 'close', target.name) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/props.js new file mode 100644 index 0000000..4809154 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/props.js @@ -0,0 +1,55 @@ +export default { + props: { + // 鏄剧ず鐨勫唴瀹癸紝瀛楃涓� + text: { + type: [Array], + default: uni.$u.props.columnNotice.text + }, + // 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� + icon: { + type: String, + default: uni.$u.props.columnNotice.icon + }, + // 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + mode: { + type: String, + default: uni.$u.props.columnNotice.mode + }, + // 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.columnNotice.color + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.columnNotice.bgColor + }, + // 瀛椾綋澶у皬锛屽崟浣峱x + fontSize: { + type: [String, Number], + default: uni.$u.props.columnNotice.fontSize + }, + // 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(px)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 + speed: { + type: [String, Number], + default: uni.$u.props.columnNotice.speed + }, + // direction = row鏃讹紝鏄惁浣跨敤姝ヨ繘褰㈠紡婊氬姩 + step: { + type: Boolean, + default: uni.$u.props.columnNotice.step + }, + // 婊氬姩涓�涓懆鏈熺殑鏃堕棿闀匡紝鍗曚綅ms + duration: { + type: [String, Number], + default: uni.$u.props.columnNotice.duration + }, + // 鏄惁绂佹鐢ㄦ墜婊戝姩鍒囨崲 + // 鐩墠HX2.6.11锛屽彧鏀寔App 2.5.5+銆丠5 2.5.5+銆佹敮浠樺疂灏忕▼搴忋�佸瓧鑺傝烦鍔ㄥ皬绋嬪簭 + disableTouch: { + type: Boolean, + default: uni.$u.props.columnNotice.disableTouch + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/u-column-notice.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/u-column-notice.vue new file mode 100644 index 0000000..fc39532 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-column-notice/u-column-notice.vue @@ -0,0 +1,160 @@ +<template> + <view + class="u-notice" + @tap="clickHandler" + > + <slot name="icon"> + <view + class="u-notice__left-icon" + v-if="icon" + > + <u-icon + :name="icon" + :color="color" + size="19" + ></u-icon> + </view> + </slot> + <swiper + :disable-touch="disableTouch" + :vertical="step ? false : true" + circular + :interval="duration" + :autoplay="true" + class="u-notice__swiper" + @change="noticeChange" + > + <swiper-item + v-for="(item, index) in text" + :key="index" + class="u-notice__swiper__item" + > + <text + class="u-notice__swiper__item__text u-line-1" + :style="[textStyle]" + >{{ item }}</text> + </swiper-item> + </swiper> + <view + class="u-notice__right-icon" + v-if="['link', 'closable'].includes(mode)" + > + <u-icon + v-if="mode === 'link'" + name="arrow-right" + :size="17" + :color="color" + ></u-icon> + <u-icon + v-if="mode === 'closable'" + name="close" + :size="16" + :color="color" + @click="close" + ></u-icon> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * ColumnNotice 婊氬姩閫氱煡涓殑鍨傜洿婊氬姩 鍐呴儴缁勪欢 + * @description 璇ョ粍浠剁敤浜庢粴鍔ㄩ�氬憡鍦烘櫙锛屾槸鍏朵腑鐨勫瀭鐩存粴鍔ㄦ柟寮� + * @tutorial https://www.uviewui.com/components/noticeBar.html + * @property {Array} text 鏄剧ず鐨勫唴瀹癸紝瀛楃涓� + * @property {String} icon 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� 锛� 榛樿 'volume' 锛� + * @property {String} mode 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + * @property {String} color 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 锛� 榛樿 '#f9ae3d' 锛� + * @property {String} bgColor 鑳屾櫙棰滆壊 锛� 榛樿 '#fdf6ec' 锛� + * @property {String | Number} fontSize 瀛椾綋澶у皬锛屽崟浣峱x 锛� 榛樿 14 锛� + * @property {String | Number} speed 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(rpx)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 锛� 榛樿 80 锛� + * @property {Boolean} step direction = row鏃讹紝鏄惁浣跨敤姝ヨ繘褰㈠紡婊氬姩 锛� 榛樿 false 锛� + * @property {String | Number} duration 婊氬姩涓�涓懆鏈熺殑鏃堕棿闀匡紝鍗曚綅ms 锛� 榛樿 1500 锛� + * @property {Boolean} disableTouch 鏄惁绂佹鐢ㄦ墜婊戝姩鍒囨崲 鐩墠HX2.6.11锛屽彧鏀寔App 2.5.5+銆丠5 2.5.5+銆佹敮浠樺疂灏忕▼搴忋�佸瓧鑺傝烦鍔ㄥ皬绋嬪簭 锛� 榛樿 true 锛� + * @example + */ + export default { + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + watch: { + text: { + immediate: true, + handler(newValue, oldValue) { + if(!uni.$u.test.array(newValue)) { + uni.$u.error('noticebar缁勪欢direction涓篶olumn鏃讹紝瑕佹眰text鍙傛暟涓烘暟缁勫舰寮�') + } + } + } + }, + computed: { + // 鏂囧瓧鍐呭鐨勬牱寮� + textStyle() { + let style = {} + style.color = this.color + style.fontSize = uni.$u.addUnit(this.fontSize) + return style + }, + // 鍨傜洿鎴栬�呮按骞虫粴鍔� + vertical() { + if (this.mode == 'horizontal') return false + else return true + }, + }, + data() { + return { + index:0 + } + }, + methods: { + noticeChange(e){ + this.index = e.detail.current + }, + // 鐐瑰嚮閫氬憡鏍� + clickHandler() { + this.$emit('click', this.index) + }, + // 鐐瑰嚮鍏抽棴鎸夐挳 + close() { + this.$emit('close') + } + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-notice { + @include flex; + align-items: center; + justify-content: space-between; + + &__left-icon { + align-items: center; + margin-right: 5px; + } + + &__right-icon { + margin-left: 5px; + align-items: center; + } + + &__swiper { + height: 16px; + @include flex; + align-items: center; + flex: 1; + + &__item { + @include flex; + align-items: center; + overflow: hidden; + + &__text { + font-size: 14px; + color: $u-warning; + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/props.js new file mode 100644 index 0000000..d62f025 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/props.js @@ -0,0 +1,24 @@ +export default { + props: { + // 鍊掕鏃舵椂闀匡紝鍗曚綅ms + time: { + type: [String, Number], + default: uni.$u.props.countDown.time + }, + // 鏃堕棿鏍煎紡锛孌D-鏃ワ紝HH-鏃讹紝mm-鍒嗭紝ss-绉掞紝SSS-姣 + format: { + type: String, + default: uni.$u.props.countDown.format + }, + // 鏄惁鑷姩寮�濮嬪�掕鏃� + autoStart: { + type: Boolean, + default: uni.$u.props.countDown.autoStart + }, + // 鏄惁灞曠ず姣鍊掕鏃� + millisecond: { + type: Boolean, + default: uni.$u.props.countDown.millisecond + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/u-count-down.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/u-count-down.vue new file mode 100644 index 0000000..b5e85a6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/u-count-down.vue @@ -0,0 +1,163 @@ +<template> + <view class="u-count-down"> + <slot> + <text class="u-count-down__text">{{ formattedTime }}</text> + </slot> + </view> +</template> + +<script> + import props from './props.js'; + import { + isSameSecond, + parseFormat, + parseTimeData + } from './utils'; + /** + * u-count-down 鍊掕鏃� + * @description 璇ョ粍浠朵竴鑸娇鐢ㄤ簬鏌愪釜娲诲姩鐨勬埅姝㈡椂闂翠笂锛岄�氳繃鏁板瓧鐨勫彉鍖栵紝缁欑敤鎴锋槑纭殑鏃堕棿鎰熷彈锛屾彁绀虹敤鎴疯繘琛屾煇涓�涓涓烘搷浣溿�� + * @tutorial https://uviewui.com/components/countDown.html + * @property {String | Number} time 鍊掕鏃舵椂闀匡紝鍗曚綅ms 锛堥粯璁� 0 锛� + * @property {String} format 鏃堕棿鏍煎紡锛孌D-鏃ワ紝HH-鏃讹紝mm-鍒嗭紝ss-绉掞紝SSS-姣 锛堥粯璁� 'HH:mm:ss' 锛� + * @property {Boolean} autoStart 鏄惁鑷姩寮�濮嬪�掕鏃� 锛堥粯璁� true 锛� + * @property {Boolean} millisecond 鏄惁灞曠ず姣鍊掕鏃� 锛堥粯璁� false 锛� + * @event {Function} finish 鍊掕鏃剁粨鏉熸椂瑙﹀彂 + * @event {Function} change 鍊掕鏃跺彉鍖栨椂瑙﹀彂 + * @event {Function} start 寮�濮嬪�掕鏃� + * @event {Function} pause 鏆傚仠鍊掕鏃� + * @event {Function} reset 閲嶈鍊掕鏃讹紝鑻� auto-start 涓� true锛岄噸璁惧悗浼氳嚜鍔ㄥ紑濮嬪�掕鏃� + * @example <u-count-down :time="time"></u-count-down> + */ + export default { + name: 'u-count-down', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + timer: null, + // 鍚勫崟浣�(澶╋紝鏃讹紝鍒嗙瓑)鍓╀綑鏃堕棿 + timeData: parseTimeData(0), + // 鏍煎紡鍖栧悗鐨勬椂闂达紝濡�"03:23:21" + formattedTime: '0', + // 鍊掕鏃舵槸鍚︽鍦ㄨ繘琛屼腑 + runing: false, + endTime: 0, // 缁撴潫鐨勬绉掓椂闂存埑 + remainTime: 0, // 鍓╀綑鐨勬绉掓椂闂� + } + }, + watch: { + time(n) { + this.reset() + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.reset() + }, + // 寮�濮嬪�掕鏃� + start() { + if (this.runing) return + // 鏍囪瘑涓鸿繘琛屼腑 + this.runing = true + // 缁撴潫鏃堕棿鎴� = 姝ゅ埢鏃堕棿鎴� + 鍓╀綑鐨勬椂闂� + this.endTime = Date.now() + this.remainTime + this.toTick() + }, + // 鏍规嵁鏄惁灞曠ず姣锛屾墽琛屼笉鍚屾搷浣滃嚱鏁� + toTick() { + if (this.millisecond) { + this.microTick() + } else { + this.macroTick() + } + }, + macroTick() { + this.clearTimeout() + // 姣忛殧涓�瀹氭椂闂达紝鏇存柊涓�閬嶅畾鏃跺櫒鐨勫�� + // 鍚屾椂姝ゅ畾鏃跺櫒鐨勪綔鐢ㄤ篃鑳藉甫鏉ユ绉掔骇鐨勬洿鏂� + this.timer = setTimeout(() => { + // 鑾峰彇鍓╀綑鏃堕棿 + const remain = this.getRemainTime() + // 閲嶈鍓╀綑鏃堕棿 + if (!isSameSecond(remain, this.remainTime) || remain === 0) { + this.setRemainTime(remain) + } + // 濡傛灉鍓╀綑鏃堕棿涓嶄负0锛屽垯缁х画妫�鏌ユ洿鏂板�掕鏃� + if (this.remainTime !== 0) { + this.macroTick() + } + }, 30) + }, + microTick() { + this.clearTimeout() + this.timer = setTimeout(() => { + this.setRemainTime(this.getRemainTime()) + if (this.remainTime !== 0) { + this.microTick() + } + }, 50) + }, + // 鑾峰彇鍓╀綑鐨勬椂闂� + getRemainTime() { + // 鍙栨渶澶у�硷紝闃叉鍑虹幇灏忎簬0鐨勫墿浣欐椂闂村�� + return Math.max(this.endTime - Date.now(), 0) + }, + // 璁剧疆鍓╀綑鐨勬椂闂� + setRemainTime(remain) { + this.remainTime = remain + // 鏍规嵁鍓╀綑鐨勬绉掓椂闂达紝寰楀嚭璇ユ湁澶╋紝灏忔椂锛屽垎閽熺瓑鐨勫�硷紝杩斿洖涓�涓璞� + const timeData = parseTimeData(remain) + this.$emit('change', timeData) + // 寰楀嚭鏍煎紡鍖栧悗鐨勬椂闂� + this.formattedTime = parseFormat(this.format, timeData) + // 濡傛灉鏃堕棿宸插埌锛屽仠姝㈠�掕鏃� + if (remain <= 0) { + this.pause() + this.$emit('finish') + } + }, + // 閲嶇疆鍊掕鏃� + reset() { + this.pause() + this.remainTime = this.time + this.setRemainTime(this.remainTime) + if (this.autoStart) { + this.start() + } + }, + // 鏆傚仠鍊掕鏃� + pause() { + this.runing = false; + this.clearTimeout() + }, + // 娓呯┖瀹氭椂鍣� + clearTimeout() { + clearTimeout(this.timer) + this.timer = null + } + }, + beforeDestroy() { + this.clearTimeout() + } + } +</script> + +<style + lang="scss" + scoped +> + @import "../../libs/css/components.scss"; + $u-count-down-text-color:$u-content-color !default; + $u-count-down-text-font-size:15px !default; + $u-count-down-text-line-height:22px !default; + + .u-count-down { + &__text { + color: $u-count-down-text-color; + font-size: $u-count-down-text-font-size; + line-height: $u-count-down-text-line-height; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/utils.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/utils.js new file mode 100644 index 0000000..8c75005 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-down/utils.js @@ -0,0 +1,62 @@ +// 琛�0锛屽1 -> 01 +function padZero(num, targetLength = 2) { + let str = `${num}` + while (str.length < targetLength) { + str = `0${str}` + } + return str +} +const SECOND = 1000 +const MINUTE = 60 * SECOND +const HOUR = 60 * MINUTE +const DAY = 24 * HOUR +export function parseTimeData(time) { + const days = Math.floor(time / DAY) + const hours = Math.floor((time % DAY) / HOUR) + const minutes = Math.floor((time % HOUR) / MINUTE) + const seconds = Math.floor((time % MINUTE) / SECOND) + const milliseconds = Math.floor(time % SECOND) + return { + days, + hours, + minutes, + seconds, + milliseconds + } +} +export function parseFormat(format, timeData) { + let { + days, + hours, + minutes, + seconds, + milliseconds + } = timeData + // 濡傛灉鏍煎紡鍖栧瓧绗︿覆涓笉瀛樺湪DD(澶�)锛屽垯灏嗗ぉ鐨勬椂闂磋浆涓哄皬鏃朵腑鍘� + if (format.indexOf('DD') === -1) { + hours += days * 24 + } else { + // 瀵瑰ぉ琛�0 + format = format.replace('DD', padZero(days)) + } + // 鍏朵粬鍚岀悊浜嶥D鐨勬牸寮忓寲澶勭悊鏂瑰紡 + if (format.indexOf('HH') === -1) { + minutes += hours * 60 + } else { + format = format.replace('HH', padZero(hours)) + } + if (format.indexOf('mm') === -1) { + seconds += minutes * 60 + } else { + format = format.replace('mm', padZero(minutes)) + } + if (format.indexOf('ss') === -1) { + milliseconds += seconds * 1000 + } else { + format = format.replace('ss', padZero(seconds)) + } + return format.replace('SSS', padZero(milliseconds, 3)) +} +export function isSameSecond(time1, time2) { + return Math.floor(time1 / 1000) === Math.floor(time2 / 1000) +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/props.js new file mode 100644 index 0000000..86873c1 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 寮�濮嬬殑鏁板�硷紝榛樿浠�0澧為暱鍒版煇涓�涓暟 + startVal: { + type: [String, Number], + default: uni.$u.props.countTo.startVal + }, + // 瑕佹粴鍔ㄧ殑鐩爣鏁板�硷紝蹇呴』 + endVal: { + type: [String, Number], + default: uni.$u.props.countTo.endVal + }, + // 婊氬姩鍒扮洰鏍囨暟鍊肩殑鍔ㄧ敾鎸佺画鏃堕棿锛屽崟浣嶄负姣锛坢s锛� + duration: { + type: [String, Number], + default: uni.$u.props.countTo.duration + }, + // 璁剧疆鏁板�煎悗鏄惁鑷姩寮�濮嬫粴鍔� + autoplay: { + type: Boolean, + default: uni.$u.props.countTo.autoplay + }, + // 瑕佹樉绀虹殑灏忔暟浣嶆暟 + decimals: { + type: [String, Number], + default: uni.$u.props.countTo.decimals + }, + // 鏄惁鍦ㄥ嵆灏嗗埌杈剧洰鏍囨暟鍊肩殑鏃跺�欙紝浣跨敤缂撴參婊氬姩鐨勬晥鏋� + useEasing: { + type: Boolean, + default: uni.$u.props.countTo.useEasing + }, + // 鍗佽繘鍒跺垎鍓� + decimal: { + type: [String, Number], + default: uni.$u.props.countTo.decimal + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.countTo.color + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.countTo.fontSize + }, + // 鏄惁鍔犵矖瀛椾綋 + bold: { + type: Boolean, + default: uni.$u.props.countTo.bold + }, + // 鍗冧綅鍒嗛殧绗︼紝绫讳技閲戦鐨勫垎鍓�(锟�23,321.05涓殑",") + separator: { + type: String, + default: uni.$u.props.countTo.separator + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/u-count-to.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/u-count-to.vue new file mode 100644 index 0000000..417b732 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-count-to/u-count-to.vue @@ -0,0 +1,184 @@ +<template> + <text + class="u-count-num" + :style="{ + fontSize: $u.addUnit(fontSize), + fontWeight: bold ? 'bold' : 'normal', + color: color + }" + >{{ displayValue }}</text> +</template> + +<script> + import props from './props.js'; +/** + * countTo 鏁板瓧婊氬姩 + * @description 璇ョ粍浠朵竴鑸敤浜庨渶瑕佹粴鍔ㄦ暟瀛楀埌鏌愪竴涓�肩殑鍦烘櫙锛岀洰鏍囪姹傛槸涓�涓�掑鐨勫�笺�� + * @tutorial https://www.uviewui.com/components/countTo.html + * @property {String | Number} startVal 寮�濮嬬殑鏁板�硷紝榛樿浠�0澧為暱鍒版煇涓�涓暟锛堥粯璁� 0 锛� + * @property {String | Number} endVal 瑕佹粴鍔ㄧ殑鐩爣鏁板�硷紝蹇呴』 锛堥粯璁� 0 锛� + * @property {String | Number} duration 婊氬姩鍒扮洰鏍囨暟鍊肩殑鍔ㄧ敾鎸佺画鏃堕棿锛屽崟浣嶄负姣锛坢s锛� 锛堥粯璁� 2000 锛� + * @property {Boolean} autoplay 璁剧疆鏁板�煎悗鏄惁鑷姩寮�濮嬫粴鍔� 锛堥粯璁� true 锛� + * @property {String | Number} decimals 瑕佹樉绀虹殑灏忔暟浣嶆暟锛岃瀹樼綉璇存槑锛堥粯璁� 0 锛� + * @property {Boolean} useEasing 婊氬姩缁撴潫鏃讹紝鏄惁缂撳姩缁撳熬锛岃瀹樼綉璇存槑锛堥粯璁� true 锛� + * @property {String} decimal 鍗佽繘鍒跺垎鍓� 锛� 榛樿 "." 锛� + * @property {String} color 瀛椾綋棰滆壊锛� 榛樿 '#606266' ) + * @property {String | Number} fontSize 瀛椾綋澶у皬锛屽崟浣峱x锛� 榛樿 22 锛� + * @property {Boolean} bold 瀛椾綋鏄惁鍔犵矖锛堥粯璁� false 锛� + * @property {String} separator 鍗冧綅鍒嗛殧绗︼紝瑙佸畼缃戣鏄� + * @event {Function} end 鏁板�兼粴鍔ㄥ埌鐩爣鍊兼椂瑙﹀彂 + * @example <u-count-to ref="uCountTo" :end-val="endVal" :autoplay="autoplay"></u-count-to> + */ +export default { + name: 'u-count-to', + data() { + return { + localStartVal: this.startVal, + displayValue: this.formatNumber(this.startVal), + printVal: null, + paused: false, // 鏄惁鏆傚仠 + localDuration: Number(this.duration), + startTime: null, // 寮�濮嬬殑鏃堕棿 + timestamp: null, // 鏃堕棿鎴� + remaining: null, // 鍋滅暀鐨勬椂闂� + rAF: null, + lastTime: 0 // 涓婁竴娆$殑鏃堕棿 + }; + }, + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + countDown() { + return this.startVal > this.endVal; + } + }, + watch: { + startVal() { + this.autoplay && this.start(); + }, + endVal() { + this.autoplay && this.start(); + } + }, + mounted() { + this.autoplay && this.start(); + }, + methods: { + easingFn(t, b, c, d) { + return (c * (-Math.pow(2, (-10 * t) / d) + 1) * 1024) / 1023 + b; + }, + requestAnimationFrame(callback) { + const currTime = new Date().getTime(); + // 涓轰簡浣縮etTimteout鐨勫敖鍙兘鐨勬帴杩戞瘡绉�60甯х殑鏁堟灉 + const timeToCall = Math.max(0, 16 - (currTime - this.lastTime)); + const id = setTimeout(() => { + callback(currTime + timeToCall); + }, timeToCall); + this.lastTime = currTime + timeToCall; + return id; + }, + cancelAnimationFrame(id) { + clearTimeout(id); + }, + // 寮�濮嬫粴鍔ㄦ暟瀛� + start() { + this.localStartVal = this.startVal; + this.startTime = null; + this.localDuration = this.duration; + this.paused = false; + this.rAF = this.requestAnimationFrame(this.count); + }, + // 鏆傚畾鐘舵�侊紝閲嶆柊鍐嶅紑濮嬫粴鍔紱鎴栬�呮粴鍔ㄧ姸鎬佷笅锛屾殏鍋� + reStart() { + if (this.paused) { + this.resume(); + this.paused = false; + } else { + this.stop(); + this.paused = true; + } + }, + // 鏆傚仠 + stop() { + this.cancelAnimationFrame(this.rAF); + }, + // 閲嶆柊寮�濮�(鏆傚仠鐨勬儏鍐典笅) + resume() { + if (!this.remaining) return + this.startTime = 0; + this.localDuration = this.remaining; + this.localStartVal = this.printVal; + this.requestAnimationFrame(this.count); + }, + // 閲嶇疆 + reset() { + this.startTime = null; + this.cancelAnimationFrame(this.rAF); + this.displayValue = this.formatNumber(this.startVal); + }, + count(timestamp) { + if (!this.startTime) this.startTime = timestamp; + this.timestamp = timestamp; + const progress = timestamp - this.startTime; + this.remaining = this.localDuration - progress; + if (this.useEasing) { + if (this.countDown) { + this.printVal = this.localStartVal - this.easingFn(progress, 0, this.localStartVal - this.endVal, this.localDuration); + } else { + this.printVal = this.easingFn(progress, this.localStartVal, this.endVal - this.localStartVal, this.localDuration); + } + } else { + if (this.countDown) { + this.printVal = this.localStartVal - (this.localStartVal - this.endVal) * (progress / this.localDuration); + } else { + this.printVal = this.localStartVal + (this.endVal - this.localStartVal) * (progress / this.localDuration); + } + } + if (this.countDown) { + this.printVal = this.printVal < this.endVal ? this.endVal : this.printVal; + } else { + this.printVal = this.printVal > this.endVal ? this.endVal : this.printVal; + } + this.displayValue = this.formatNumber(this.printVal) || 0; + if (progress < this.localDuration) { + this.rAF = this.requestAnimationFrame(this.count); + } else { + this.$emit('end'); + } + }, + // 鍒ゆ柇鏄惁鏁板瓧 + isNumber(val) { + return !isNaN(parseFloat(val)); + }, + formatNumber(num) { + // 灏唍um杞负Number绫诲瀷锛屽洜涓哄叾鍊煎彲鑳戒负瀛楃涓叉暟鍊硷紝璋冪敤toFixed浼氭姤閿� + num = Number(num); + num = num.toFixed(Number(this.decimals)); + num += ''; + const x = num.split('.'); + let x1 = x[0]; + const x2 = x.length > 1 ? this.decimal + x[1] : ''; + const rgx = /(\d+)(\d{3})/; + if (this.separator && !this.isNumber(this.separator)) { + while (rgx.test(x1)) { + x1 = x1.replace(rgx, '$1' + this.separator + '$2'); + } + } + return x1 + x2; + }, + destroyed() { + this.cancelAnimationFrame(this.rAF); + } + } +}; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +.u-count-num { + /* #ifndef APP-NVUE */ + display: inline-flex; + /* #endif */ + text-align: center; +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/props.js new file mode 100644 index 0000000..f44c0f9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/props.js @@ -0,0 +1,116 @@ +export default { + props: { + // 鏄惁鎵撳紑缁勪欢 + show: { + type: Boolean, + default: uni.$u.props.datetimePicker.show + }, + // 鏄惁灞曠ず椤堕儴鐨勬搷浣滄爮 + showToolbar: { + type: Boolean, + default: uni.$u.props.datetimePicker.showToolbar + }, + // 缁戝畾鍊� + value: { + type: [String, Number], + default: uni.$u.props.datetimePicker.value + }, + // 椤堕儴鏍囬 + title: { + type: String, + default: uni.$u.props.datetimePicker.title + }, + // 灞曠ず鏍煎紡锛宮ode=date涓烘棩鏈熼�夋嫨锛宮ode=time涓烘椂闂撮�夋嫨锛宮ode=year-month涓哄勾鏈堥�夋嫨锛宮ode=datetime涓烘棩鏈熸椂闂撮�夋嫨 + mode: { + type: String, + default: uni.$u.props.datetimePicker.mode + }, + // 鍙�夌殑鏈�澶ф椂闂� + maxDate: { + type: Number, + // 鏈�澶ч粯璁ゅ�间负鍚�10骞� + default: uni.$u.props.datetimePicker.maxDate + }, + // 鍙�夌殑鏈�灏忔椂闂� + minDate: { + type: Number, + // 鏈�灏忛粯璁ゅ�间负鍓�10骞� + default: uni.$u.props.datetimePicker.minDate + }, + // 鍙�夌殑鏈�灏忓皬鏃讹紝浠卪ode=time鏈夋晥 + minHour: { + type: Number, + default: uni.$u.props.datetimePicker.minHour + }, + // 鍙�夌殑鏈�澶у皬鏃讹紝浠卪ode=time鏈夋晥 + maxHour: { + type: Number, + default: uni.$u.props.datetimePicker.maxHour + }, + // 鍙�夌殑鏈�灏忓垎閽燂紝浠卪ode=time鏈夋晥 + minMinute: { + type: Number, + default: uni.$u.props.datetimePicker.minMinute + }, + // 鍙�夌殑鏈�澶у垎閽燂紝浠卪ode=time鏈夋晥 + maxMinute: { + type: Number, + default: uni.$u.props.datetimePicker.maxMinute + }, + // 閫夐」杩囨护鍑芥暟 + filter: { + type: [Function, null], + default: uni.$u.props.datetimePicker.filter + }, + // 閫夐」鏍煎紡鍖栧嚱鏁� + formatter: { + type: [Function, null], + default: uni.$u.props.datetimePicker.formatter + }, + // 鏄惁鏄剧ず鍔犺浇涓姸鎬� + loading: { + type: Boolean, + default: uni.$u.props.datetimePicker.loading + }, + // 鍚勫垪涓紝鍗曚釜閫夐」鐨勯珮搴� + itemHeight: { + type: [String, Number], + default: uni.$u.props.datetimePicker.itemHeight + }, + // 鍙栨秷鎸夐挳鐨勬枃瀛� + cancelText: { + type: String, + default: uni.$u.props.datetimePicker.cancelText + }, + // 纭鎸夐挳鐨勬枃瀛� + confirmText: { + type: String, + default: uni.$u.props.datetimePicker.confirmText + }, + // 鍙栨秷鎸夐挳鐨勯鑹� + cancelColor: { + type: String, + default: uni.$u.props.datetimePicker.cancelColor + }, + // 纭鎸夐挳鐨勯鑹� + confirmColor: { + type: String, + default: uni.$u.props.datetimePicker.confirmColor + }, + // 姣忓垪涓彲瑙侀�夐」鐨勬暟閲� + visibleItemCount: { + type: [String, Number], + default: uni.$u.props.datetimePicker.visibleItemCount + }, + // 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴閫夋嫨鍣� + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.datetimePicker.closeOnClickOverlay + }, + // 鍚勫垪鐨勯粯璁ょ储寮� + defaultIndex: { + type: Array, + default: uni.$u.props.datetimePicker.defaultIndex + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker.vue new file mode 100644 index 0000000..18d8dcc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker.vue @@ -0,0 +1,360 @@ +<template> + <u-picker + ref="picker" + :show="show" + :closeOnClickOverlay="closeOnClickOverlay" + :columns="columns" + :title="title" + :itemHeight="itemHeight" + :showToolbar="showToolbar" + :visibleItemCount="visibleItemCount" + :defaultIndex="innerDefaultIndex" + :cancelText="cancelText" + :confirmText="confirmText" + :cancelColor="cancelColor" + :confirmColor="confirmColor" + @close="close" + @cancel="cancel" + @confirm="confirm" + @change="change" + > + </u-picker> +</template> + +<script> + function times(n, iteratee) { + let index = -1 + const result = Array(n < 0 ? 0 : n) + while (++index < n) { + result[index] = iteratee(index) + } + return result + } + import props from './props.js'; + import dayjs from '../../libs/util/dayjs.js'; + /** + * DatetimePicker 鏃堕棿鏃ユ湡閫夋嫨鍣� + * @description 姝ら�夋嫨鍣ㄧ敤浜庢椂闂存棩鏈� + * @tutorial https://www.uviewui.com/components/datetimePicker.html + * @property {Boolean} show 鐢ㄤ簬鎺у埗閫夋嫨鍣ㄧ殑寮瑰嚭涓庢敹璧� ( 榛樿 false ) + * @property {Boolean} showToolbar 鏄惁鏄剧ず椤堕儴鐨勬搷浣滄爮 ( 榛樿 true ) + * @property {String | Number} value 缁戝畾鍊� + * @property {String} title 椤堕儴鏍囬 + * @property {String} mode 灞曠ず鏍煎紡 mode=date涓烘棩鏈熼�夋嫨锛宮ode=time涓烘椂闂撮�夋嫨锛宮ode=year-month涓哄勾鏈堥�夋嫨锛宮ode=datetime涓烘棩鏈熸椂闂撮�夋嫨 ( 榛樿 鈥榙atetime ) + * @property {Number} maxDate 鍙�夌殑鏈�澶ф椂闂� 榛樿鍊间负鍚�10骞� + * @property {Number} minDate 鍙�夌殑鏈�灏忔椂闂� 榛樿鍊间负鍓�10骞� + * @property {Number} minHour 鍙�夌殑鏈�灏忓皬鏃讹紝浠卪ode=time鏈夋晥 ( 榛樿 0 ) + * @property {Number} maxHour 鍙�夌殑鏈�澶у皬鏃讹紝浠卪ode=time鏈夋晥 ( 榛樿 23 ) + * @property {Number} minMinute 鍙�夌殑鏈�灏忓垎閽燂紝浠卪ode=time鏈夋晥 ( 榛樿 0 ) + * @property {Number} maxMinute 鍙�夌殑鏈�澶у垎閽燂紝浠卪ode=time鏈夋晥 ( 榛樿 59 ) + * @property {Function} filter 閫夐」杩囨护鍑芥暟 + * @property {Function} formatter 閫夐」鏍煎紡鍖栧嚱鏁� + * @property {Boolean} loading 鏄惁鏄剧ず鍔犺浇涓姸鎬� ( 榛樿 false ) + * @property {String | Number} itemHeight 鍚勫垪涓紝鍗曚釜閫夐」鐨勯珮搴� ( 榛樿 44 ) + * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬枃瀛� ( 榛樿 '鍙栨秷' ) + * @property {String} confirmText 纭鎸夐挳鐨勬枃瀛� ( 榛樿 '纭' ) + * @property {String} cancelColor 鍙栨秷鎸夐挳鐨勯鑹� ( 榛樿 '#909193' ) + * @property {String} confirmColor 纭鎸夐挳鐨勯鑹� ( 榛樿 '#3c9cff' ) + * @property {String | Number} visibleItemCount 姣忓垪涓彲瑙侀�夐」鐨勬暟閲� ( 榛樿 5 ) + * @property {Boolean} closeOnClickOverlay 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴閫夋嫨鍣� ( 榛樿 false ) + * @property {Array} defaultIndex 鍚勫垪鐨勯粯璁ょ储寮� + * @event {Function} close 鍏抽棴閫夋嫨鍣ㄦ椂瑙﹀彂 + * @event {Function} confirm 鐐瑰嚮纭畾鎸夐挳锛岃繑鍥炲綋鍓嶉�夋嫨鐨勫�� + * @event {Function} change 褰撻�夋嫨鍊煎彉鍖栨椂瑙﹀彂 + * @event {Function} cancel 鐐瑰嚮鍙栨秷鎸夐挳 + * @example <u-datetime-picker :show="show" :value="value1" mode="datetime" ></u-datetime-picker> + */ + export default { + name: 'datetime-picker', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + columns: [], + innerDefaultIndex: [], + innerFormatter: (type, value) => value + } + }, + watch: { + show(newValue, oldValue) { + if (newValue) { + this.updateColumnValue(this.innerValue) + } + }, + propsChange() { + this.init() + } + }, + computed: { + // 濡傛灉浠ヤ笅杩欎簺鍙橀噺鍙戠敓浜嗗彉鍖栵紝鎰忓懗鐫�闇�瑕侀噸鏂板垵濮嬪寲鍚勫垪鐨勫�� + propsChange() { + return [this.mode, this.maxDate, this.minDate, this.minHour, this.maxHour, this.minMinute, this.maxMinute, this.filter, ] + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.innerValue = this.correctValue(this.value) + this.updateColumnValue(this.innerValue) + }, + // 鍦ㄥ井淇″皬绋嬪簭涓紝涓嶆敮鎸佸皢鍑芥暟褰撳仛props鍙傛暟锛屾晠鍙兘閫氳繃ref褰㈠紡璋冪敤 + setFormatter(e) { + this.innerFormatter = e + }, + // 鍏抽棴閫夋嫨鍣� + close() { + if (this.closeOnClickOverlay) { + this.$emit('close') + } + }, + // 鐐瑰嚮宸ュ叿鏍忕殑鍙栨秷鎸夐挳 + cancel() { + this.$emit('cancel') + }, + // 鐐瑰嚮宸ュ叿鏍忕殑纭畾鎸夐挳 + confirm() { + this.$emit('confirm', { + value: this.innerValue, + mode: this.mode + }) + this.$emit('input', this.innerValue) + }, + //鐢ㄦ鍒欐埅鍙栬緭鍑哄��,褰撳嚭鐜板缁勬暟瀛楁椂,鎶涘嚭閿欒 + intercept(e,type){ + let judge = e.match(/\d+/g) + //鍒ゆ柇鏄惁鎺烘潅鏁板瓧 + if(judge.length>1){ + uni.$u.error("璇峰嬁鍦ㄨ繃婊ゆ垨鏍煎紡鍖栧嚱鏁版椂娣诲姞鏁板瓧") + return 0 + }else if(type&&judge[0].length==4){//鍒ゆ柇鏄惁鏄勾浠� + return judge[0] + }else if(judge[0].length>2){ + uni.$u.error("璇峰嬁鍦ㄨ繃婊ゆ垨鏍煎紡鍖栧嚱鏁版椂娣诲姞鏁板瓧") + return 0 + }else{ + return judge[0] + } + }, + // 鍒楀彂鐢熷彉鍖栨椂瑙﹀彂 + change(e) { + const { indexs, values } = e + let selectValue = '' + if(this.mode === 'time') { + // 鏍规嵁value鍚勫垪绱㈠紩锛屼粠鍚勫垪鏁扮粍涓紝鍙栧嚭褰撳墠鏃堕棿鐨勯�変腑鍊� + selectValue = `${this.intercept(values[0][indexs[0]])}:${this.intercept(values[1][indexs[1]])}` + } else { + // 灏嗛�夋嫨鐨勫�艰浆涓烘暟鍊硷紝姣斿'03'杞负鏁板�肩殑3锛�'2019'杞负鏁板�肩殑2019 + const year = parseInt(this.intercept(values[0][indexs[0]],'year')) + const month = parseInt(this.intercept(values[1][indexs[1]])) + let date = parseInt(values[2] ? this.intercept(values[2][indexs[2]]) : 1) + let hour = 0, minute = 0 + // 姝ゆ湀浠界殑鏈�澶уぉ鏁� + const maxDate = dayjs(`${year}-${month}`).daysInMonth() + // year-month妯″紡涓嬶紝date涓嶄細鍑虹幇鍦ㄥ垪涓紝璁剧疆涓�1锛屼负浜嗙鍚堝悗杈归渶瑕佸噺1鐨勯渶姹� + if (this.mode === 'year-month') { + date = 1 + } + // 涓嶅厑璁歌秴杩噈axDate鍊� + date = Math.min(maxDate, date) + if (this.mode === 'datetime') { + hour = parseInt(this.intercept(values[3][indexs[3]])) + minute = parseInt(this.intercept(values[4][indexs[4]])) + } + // 杞负鏃堕棿妯″紡 + selectValue = Number(new Date(year, month - 1, date, hour, minute)) + } + // 鍙栧嚭鍑嗙‘鐨勫悎娉曞�硷紝闃叉瓒呰秺杈圭晫鐨勬儏鍐� + selectValue = this.correctValue(selectValue) + this.innerValue = selectValue + this.updateColumnValue(selectValue) + // 鍙戝嚭change鏃堕棿锛寁alue涓哄綋鍓嶉�変腑鐨勬椂闂存埑 + this.$emit('change', { + value: selectValue, + // #ifndef MP-WEIXIN + // 寰俊灏忕▼搴忎笉鑳戒紶閫抰his瀹炰緥锛屼細鍥犱负寰幆寮曠敤鑰屾姤閿� + picker: this.$refs.picker, + // #endif + mode: this.mode + }) + }, + // 鏇存柊鍚勫垪鐨勫�硷紝杩涜琛�0銆佹牸寮忓寲绛夋搷浣� + updateColumnValue(value) { + this.innerValue = value + this.updateColumns() + this.updateIndexs(value) + }, + // 鏇存柊绱㈠紩 + updateIndexs(value) { + let values = [] + const formatter = this.formatter || this.innerFormatter + const padZero = uni.$u.padZero + if (this.mode === 'time') { + // 灏唗ime妯″紡鐨勬椂闂寸敤:鍒嗛殧鎴愭暟缁� + const timeArr = value.split(':') + // 浣跨敤formatter鏍煎紡鍖栨柟娉曡繘琛岀閬撳鐞� + values = [formatter('hour', timeArr[0]), formatter('minute', timeArr[1])] + } else { + const date = new Date(value) + values = [ + formatter('year', `${dayjs(value).year()}`), + // 鏈堜唤琛�0 + formatter('month', padZero(dayjs(value).month() + 1)) + ] + if (this.mode === 'date') { + // date妯″紡锛岄渶瑕佹坊鍔犲ぉ鍒� + values.push(formatter('day', padZero(dayjs(value).date()))) + } + if (this.mode === 'datetime') { + // 鏁扮粍鐨刾ush鏂规硶锛屽彲浠ュ啓鍏ュ涓弬鏁� + values.push(formatter('day', padZero(dayjs(value).date())), formatter('hour', padZero(dayjs(value).hour())), formatter('minute', padZero(dayjs(value).minute()))) + } + } + + // 鏍规嵁褰撳墠鍚勫垪鐨勬墍鏈夊�硷紝浠庡悇鍒楅粯璁ゅ�间腑鎵惧埌榛樿鍊煎湪鍚勫垪涓殑绱㈠紩 + const indexs = this.columns.map((column, index) => { + // 閫氳繃鍙栧ぇ鍊硷紝鍙互淇濊瘉涓嶄細鍑虹幇鎵句笉鍒扮储寮曠殑-1鎯呭喌 + return Math.max(0, column.findIndex(item => item === values[index])) + }) + this.innerDefaultIndex = indexs + }, + // 鏇存柊鍚勫垪鐨勫�� + updateColumns() { + const formatter = this.formatter || this.innerFormatter + // 鑾峰彇鍚勫垪鐨勫�硷紝骞朵笖map鍚庯紝瀵瑰悇鍒楃殑鍏蜂綋鍊艰繘琛岃ˉ0鎿嶄綔 + const results = this.getOriginColumns().map((column) => column.values.map((value) => formatter(column.type, value))) + this.columns = results + }, + getOriginColumns() { + // 鐢熸垚鍚勫垪鐨勫�� + const results = this.getRanges().map(({ type, range }) => { + let values = times(range[1] - range[0] + 1, (index) => { + let value = range[0] + index + value = type === 'year' ? `${value}` : uni.$u.padZero(value) + return value + }) + // 杩涜杩囨护 + if (this.filter) { + values = this.filter(type, values) + } + return { type, values } + }) + return results + }, + // 閫氳繃鏈�澶у�煎拰鏈�灏忓�肩敓鎴愭暟缁� + generateArray(start, end) { + return Array.from(new Array(end + 1).keys()).slice(start) + }, + // 寰楀嚭鍚堟硶鐨勬椂闂� + correctValue(value) { + const isDateMode = this.mode !== 'time' + if (isDateMode && !uni.$u.test.date(value)) { + // 濡傛灉鏄棩鏈熺被鍨嬶紝浣嗘槸鍙堟病鏈夎缃悎娉曠殑褰撳墠鏃堕棿鐨勮瘽锛屼娇鐢ㄦ渶灏忔椂闂翠负褰撳墠鏃堕棿 + value = this.minDate + } else if (!isDateMode && !value) { + // 濡傛灉鏄椂闂寸被鍨嬶紝鑰屽張娌℃湁榛樿鍊肩殑璇濓紝灏辩敤鏈�灏忔椂闂� + value = `${uni.$u.padZero(this.minHour)}:${uni.$u.padZero(this.minMinute)}` + } + // 鏃堕棿绫诲瀷 + if (!isDateMode) { + if (String(value).indexOf(':') === -1) return uni.$u.error('鏃堕棿閿欒锛岃浼犻�掑12:24鐨勬牸寮�') + let [hour, minute] = value.split(':') + // 瀵规椂闂磋ˉ闆讹紝鍚屾椂鎺у埗鍦ㄦ渶灏忓�煎拰鏈�澶у�间箣闂� + hour = uni.$u.padZero(uni.$u.range(this.minHour, this.maxHour, Number(hour))) + minute = uni.$u.padZero(uni.$u.range(this.minMinute, this.maxMinute, Number(minute))) + return `${ hour }:${ minute }` + } else { + // 濡傛灉鏄棩鏈熸牸寮忥紝鎺у埗鍦ㄦ渶灏忔棩鏈熷拰鏈�澶ф棩鏈熶箣闂� + value = dayjs(value).isBefore(dayjs(this.minDate)) ? this.minDate : value + value = dayjs(value).isAfter(dayjs(this.maxDate)) ? this.maxDate : value + return value + } + }, + // 鑾峰彇姣忓垪鐨勬渶澶у拰鏈�灏忓�� + getRanges() { + if (this.mode === 'time') { + return [ + { + type: 'hour', + range: [this.minHour, this.maxHour], + }, + { + type: 'minute', + range: [this.minMinute, this.maxMinute], + }, + ]; + } + const { maxYear, maxDate, maxMonth, maxHour, maxMinute, } = this.getBoundary('max', this.innerValue); + const { minYear, minDate, minMonth, minHour, minMinute, } = this.getBoundary('min', this.innerValue); + const result = [ + { + type: 'year', + range: [minYear, maxYear], + }, + { + type: 'month', + range: [minMonth, maxMonth], + }, + { + type: 'day', + range: [minDate, maxDate], + }, + { + type: 'hour', + range: [minHour, maxHour], + }, + { + type: 'minute', + range: [minMinute, maxMinute], + }, + ]; + if (this.mode === 'date') + result.splice(3, 2); + if (this.mode === 'year-month') + result.splice(2, 3); + return result; + }, + // 鏍规嵁minDate銆乵axDate銆乵inHour銆乵axHour绛夎竟鐣屽�硷紝鍒ゆ柇鍚勫垪鐨勫紑濮嬪拰缁撴潫杈圭晫鍊� + getBoundary(type, innerValue) { + const value = new Date(innerValue) + const boundary = new Date(this[`${type}Date`]) + const year = dayjs(boundary).year() + let month = 1 + let date = 1 + let hour = 0 + let minute = 0 + if (type === 'max') { + month = 12 + // 鏈堜唤鐨勫ぉ鏁� + date = dayjs(value).daysInMonth() + hour = 23 + minute = 59 + } + // 鑾峰彇杈圭晫鍊硷紝閫昏緫鏄細褰撳勾杈惧埌浜嗚竟鐣屽��(鏈�澶ф垨鏈�灏忓勾)锛屽氨妫�鏌ユ湀鍏佽鐨勬渶澶у拰鏈�灏忓�硷紝浠ユ绫绘帹 + if (dayjs(value).year() === year) { + month = dayjs(boundary).month() + 1 + if (dayjs(value).month() + 1 === month) { + date = dayjs(boundary).date() + if (dayjs(value).date() === date) { + hour = dayjs(boundary).hour() + if (dayjs(value).hour() === hour) { + minute = dayjs(boundary).minute() + } + } + } + } + return { + [`${type}Year`]: year, + [`${type}Month`]: month, + [`${type}Date`]: date, + [`${type}Hour`]: hour, + [`${type}Minute`]: minute + } + }, + }, + } +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/props.js new file mode 100644 index 0000000..1fa8359 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/props.js @@ -0,0 +1,44 @@ +export default { + props: { + // 鏄惁铏氱嚎 + dashed: { + type: Boolean, + default: uni.$u.props.divider.dashed + }, + // 鏄惁缁嗙嚎 + hairline: { + type: Boolean, + default: uni.$u.props.divider.hairline + }, + // 鏄惁浠ョ偣鏇夸唬鏂囧瓧锛屼紭鍏堜簬text瀛楁璧蜂綔鐢� + dot: { + type: Boolean, + default: uni.$u.props.divider.dot + }, + // 鍐呭鏂囨湰鐨勪綅缃紝left-宸﹁竟锛宑enter-涓棿锛宺ight-鍙宠竟 + textPosition: { + type: String, + default: uni.$u.props.divider.textPosition + }, + // 鏂囨湰鍐呭 + text: { + type: [String, Number], + default: uni.$u.props.divider.text + }, + // 鏂囨湰澶у皬 + textSize: { + type: [String, Number], + default: uni.$u.props.divider.textSize + }, + // 鏂囨湰棰滆壊 + textColor: { + type: String, + default: uni.$u.props.divider.textColor + }, + // 绾挎潯棰滆壊 + lineColor: { + type: String, + default: uni.$u.props.divider.lineColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/u-divider.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/u-divider.vue new file mode 100644 index 0000000..b629da6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-divider/u-divider.vue @@ -0,0 +1,116 @@ +<template> + <view + class="u-divider" + :style="[$u.addStyle(customStyle)]" + @tap="click" + > + <u-line + :color="lineColor" + :customStyle="leftLineStyle" + :hairline="hairline" + :dashed="dashed" + ></u-line> + <text + v-if="dot" + class="u-divider__dot" + >鈼�</text> + <text + v-else-if="text" + class="u-divider__text" + :style="[textStyle]" + >{{text}}</text> + <u-line + :color="lineColor" + :customStyle="rightLineStyle" + :hairline="hairline" + :dashed="dashed" + ></u-line> + </view> +</template> + +<script> + import props from './props.js'; + /** + * divider 鍒嗗壊绾� + * @description 鍖洪殧鍐呭鐨勫垎鍓茬嚎锛屼竴鑸敤浜庨〉闈㈠簳閮�"娌℃湁鏇村"鐨勬彁绀恒�� + * @tutorial https://www.uviewui.com/components/divider.html + * @property {Boolean} dashed 鏄惁铏氱嚎 锛堥粯璁� false 锛� + * @property {Boolean} hairline 鏄惁缁嗙嚎 锛堥粯璁� true 锛� + * @property {Boolean} dot 鏄惁浠ョ偣鏇夸唬鏂囧瓧锛屼紭鍏堜簬text瀛楁璧蜂綔鐢� 锛堥粯璁� false 锛� + * @property {String} textPosition 鍐呭鏂囨湰鐨勪綅缃紝left-宸﹁竟锛宑enter-涓棿锛宺ight-鍙宠竟 锛堥粯璁� 'center' 锛� + * @property {String | Number} text 鏂囨湰鍐呭 + * @property {String | Number} textSize 鏂囨湰澶у皬 锛堥粯璁� 14锛� + * @property {String} textColor 鏂囨湰棰滆壊 锛堥粯璁� '#909399' 锛� + * @property {String} lineColor 绾挎潯棰滆壊 锛堥粯璁� '#dcdfe6' 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click divider缁勪欢琚偣鍑绘椂瑙﹀彂 + * @example <u-divider :color="color">閿︾憻鏃犵浜斿崄寮�</u-divider> + */ + export default { + name:'u-divider', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + textStyle() { + const style = {} + style.fontSize = uni.$u.addUnit(this.textSize) + style.color = this.textColor + return style + }, + // 宸﹁竟绾挎潯鐨勭殑鏍峰紡 + leftLineStyle() { + const style = {} + // 濡傛灉鏄湪宸﹁竟锛岃缃乏杈圭殑瀹藉害涓哄浐瀹氬�� + if (this.textPosition === 'left') { + style.width = '80rpx' + } else { + style.flex = 1 + } + return style + }, + // 鍙宠竟绾挎潯鐨勭殑鏍峰紡 + rightLineStyle() { + const style = {} + // 濡傛灉鏄湪鍙宠竟锛岃缃彸杈圭殑瀹藉害涓哄浐瀹氬�� + if (this.textPosition === 'right') { + style.width = '80rpx' + } else { + style.flex = 1 + } + return style + } + }, + methods: { + // divider缁勪欢琚偣鍑绘椂瑙﹀彂 + click() { + this.$emit('click'); + } + } + } +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; + $u-divider-margin:15px 0 !default; + $u-divider-text-margin:0 15px !default; + $u-divider-dot-font-size:12px !default; + $u-divider-dot-margin:0 12px !default; + $u-divider-dot-color: #c0c4cc !default; + + .u-divider { + @include flex; + flex-direction: row; + align-items: center; + margin: $u-divider-margin; + + &__text { + margin: $u-divider-text-margin; + } + + &__dot { + font-size: $u-divider-dot-font-size; + margin: $u-divider-dot-margin; + color: $u-divider-dot-color; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/props.js new file mode 100644 index 0000000..501a1f0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/props.js @@ -0,0 +1,36 @@ +export default { + props: { + // 褰撳墠閫変腑椤圭殑value鍊� + value: { + type: [Number, String, Array], + default: '' + }, + // 鑿滃崟椤规爣棰� + title: { + type: [String, Number], + default: '' + }, + // 閫夐」鏁版嵁锛屽鏋滀紶鍏ヤ簡榛樿slot锛屾鍙傛暟鏃犳晥 + options: { + type: Array, + default() { + return [] + } + }, + // 鏄惁绂佺敤姝よ彍鍗曢」 + disabled: { + type: Boolean, + default: false + }, + // 涓嬫媺寮圭獥鐨勯珮搴� + height: { + type: [Number, String], + default: 'auto' + }, + // 鐐瑰嚮閬僵鏄惁鍙互鏀惰捣寮圭獥 + closeOnClickOverlay: { + type: Boolean, + default: true + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue new file mode 100644 index 0000000..f830291 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue @@ -0,0 +1,127 @@ +<template> + <view class="u-drawdown"> + <view + class="u-dropdown__menu" + :style="{ + height: $u.addUnit(height) + }" + ref="u-dropdown__menu" + > + <view + class="u-dropdown__menu__item" + v-for="(item, index) in menuList" + :key="index" + @tap.stop="clickHandler(item, index)" + > + <view class="u-dropdown__menu__item__content"> + <text + class="u-dropdown__menu__item__content__text" + :style="[index === current ? activeStyle : inactiveStyle]" + >{{item.title}}</text> + <view + class="u-dropdown__menu__item__content__arrow" + :class="[index === current && 'u-dropdown__menu__item__content__arrow--rotate']" + > + <u-icon + :name="menuIcon" + :size="$u.addUnit(menuIconSize)" + ></u-icon> + </view> + </view> + </view> + </view> + <view class="u-dropdown__content"> + <slot /> + </view> + </view> +</template> + +<script> +import props from './props.js'; +/** + * Dropdown + * @description + * @tutorial url + * @property {String} + * @event {Function} + * @example + */ +export default { + name: 'u-dropdown', + mixins: [uni.$u.mixin, props], + data() { + return { + // 锟剿碉拷锟斤拷锟斤拷 + menuList: [], + current: 0 + } + }, + computed: { + + }, + created() { + // 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�(u-dropdown-item)锟斤拷this锟斤拷锟斤拷锟斤拷锟斤拷data锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷微锟斤拷小锟斤拷锟斤拷锟斤拷锟斤拷循锟斤拷锟斤拷锟矫讹拷锟斤拷锟斤拷 + this.children = []; + }, + methods: { + clickHandler(item, index) { + this.children.map(child => { + if(child.title === item.title) { + // this.queryRect('u-dropdown__menu').then(size => { + child.$emit('click') + child.setContentAnimate(child.show ? 0 : 300) + child.show = !child.show + // }) + } else { + child.show = false + child.setContentAnimate(0) + } + }) + }, + // 锟斤拷取锟斤拷签锟侥尺达拷位锟斤拷 + queryRect(el) { + // #ifndef APP-NVUE + // $uGetRect为uView锟皆达拷锟侥节碉拷锟窖拷蚧锟斤拷锟斤拷锟斤拷锟斤拷锟侥碉拷锟斤拷锟杰o拷https://www.uviewui.com/js/getRect.html + // 锟斤拷锟斤拷诓锟揭伙拷锟斤拷锟絫his.$uGetRect锟斤拷锟斤拷锟斤拷锟轿猼his.$u.getRect锟斤拷锟斤拷锟竭癸拷锟斤拷一锟铰o拷锟斤拷锟狡诧拷同 + return new Promise(resolve => { + this.$uGetRect(`.${el}`).then(size => { + resolve(size) + }) + }) + // #endif + + // #ifdef APP-NVUE + // nvue锟铰o拷使锟斤拷dom模锟斤拷锟窖拷馗叨锟� + // 锟斤拷锟斤拷一锟斤拷promise锟斤拷锟矫碉拷锟矫此凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷使锟斤拷then锟截碉拷 + return new Promise(resolve => { + dom.getComponentRect(this.$refs[el], res => { + resolve(res.size) + }) + }) + // #endif + }, + }, +} +</script> + +<style lang="scss"> +@import '../../libs/css/components.scss'; + +.u-dropdown { + + &__menu { + @include flex; + + &__item { + flex: 1; + @include flex; + justify-content: center; + + &__content { + @include flex; + align-items: center; + } + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/props.js new file mode 100644 index 0000000..5f8465e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/props.js @@ -0,0 +1,65 @@ +export default { + props: { + // 鏍囬閫変腑鏃剁殑鏍峰紡 + activeStyle: { + type: [String, Object], + default: () => ({ + color: '#2979ff', + fontSize: '14px' + }) + }, + // 鏍囬鏈�変腑鏃剁殑鏍峰紡 + inactiveStyle: { + type: [String, Object], + default: () => ({ + color: '#606266', + fontSize: '14px' + }) + }, + // 鐐瑰嚮閬僵鏄惁鍏抽棴鑿滃崟 + closeOnClickMask: { + type: Boolean, + default: true + }, + // 鐐瑰嚮褰撳墠婵�娲婚」鏍囬鏄惁鍏抽棴鑿滃崟 + closeOnClickSelf: { + type: Boolean, + default: true + }, + // 杩囨浮鏃堕棿 + duration: { + type: [Number, String], + default: 300 + }, + // 鏍囬鑿滃崟鐨勯珮搴� + height: { + type: [Number, String], + default: 40 + }, + // 鏄惁鏄剧ず涓嬭竟妗� + borderBottom: { + type: Boolean, + default: false + }, + // 鏍囬鐨勫瓧浣撳ぇ灏� + titleSize: { + type: [Number, String], + default: 14 + }, + // 涓嬫媺鍑烘潵鐨勫唴瀹归儴鍒嗙殑鍦嗚鍊� + borderRadius: { + type: [Number, String], + default: 0 + }, + // 鑿滃崟鍙充晶鐨刬con鍥炬爣 + menuIcon: { + type: String, + default: 'arrow-down' + }, + // 鑿滃崟鍙充晶鍥炬爣鐨勫ぇ灏� + menuIconSize: { + type: [Number, String], + default: 14 + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue new file mode 100644 index 0000000..f830291 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue @@ -0,0 +1,127 @@ +<template> + <view class="u-drawdown"> + <view + class="u-dropdown__menu" + :style="{ + height: $u.addUnit(height) + }" + ref="u-dropdown__menu" + > + <view + class="u-dropdown__menu__item" + v-for="(item, index) in menuList" + :key="index" + @tap.stop="clickHandler(item, index)" + > + <view class="u-dropdown__menu__item__content"> + <text + class="u-dropdown__menu__item__content__text" + :style="[index === current ? activeStyle : inactiveStyle]" + >{{item.title}}</text> + <view + class="u-dropdown__menu__item__content__arrow" + :class="[index === current && 'u-dropdown__menu__item__content__arrow--rotate']" + > + <u-icon + :name="menuIcon" + :size="$u.addUnit(menuIconSize)" + ></u-icon> + </view> + </view> + </view> + </view> + <view class="u-dropdown__content"> + <slot /> + </view> + </view> +</template> + +<script> +import props from './props.js'; +/** + * Dropdown + * @description + * @tutorial url + * @property {String} + * @event {Function} + * @example + */ +export default { + name: 'u-dropdown', + mixins: [uni.$u.mixin, props], + data() { + return { + // 锟剿碉拷锟斤拷锟斤拷 + menuList: [], + current: 0 + } + }, + computed: { + + }, + created() { + // 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�(u-dropdown-item)锟斤拷this锟斤拷锟斤拷锟斤拷锟斤拷data锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷微锟斤拷小锟斤拷锟斤拷锟斤拷锟斤拷循锟斤拷锟斤拷锟矫讹拷锟斤拷锟斤拷 + this.children = []; + }, + methods: { + clickHandler(item, index) { + this.children.map(child => { + if(child.title === item.title) { + // this.queryRect('u-dropdown__menu').then(size => { + child.$emit('click') + child.setContentAnimate(child.show ? 0 : 300) + child.show = !child.show + // }) + } else { + child.show = false + child.setContentAnimate(0) + } + }) + }, + // 锟斤拷取锟斤拷签锟侥尺达拷位锟斤拷 + queryRect(el) { + // #ifndef APP-NVUE + // $uGetRect为uView锟皆达拷锟侥节碉拷锟窖拷蚧锟斤拷锟斤拷锟斤拷锟斤拷锟侥碉拷锟斤拷锟杰o拷https://www.uviewui.com/js/getRect.html + // 锟斤拷锟斤拷诓锟揭伙拷锟斤拷锟絫his.$uGetRect锟斤拷锟斤拷锟斤拷锟轿猼his.$u.getRect锟斤拷锟斤拷锟竭癸拷锟斤拷一锟铰o拷锟斤拷锟狡诧拷同 + return new Promise(resolve => { + this.$uGetRect(`.${el}`).then(size => { + resolve(size) + }) + }) + // #endif + + // #ifdef APP-NVUE + // nvue锟铰o拷使锟斤拷dom模锟斤拷锟窖拷馗叨锟� + // 锟斤拷锟斤拷一锟斤拷promise锟斤拷锟矫碉拷锟矫此凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷使锟斤拷then锟截碉拷 + return new Promise(resolve => { + dom.getComponentRect(this.$refs[el], res => { + resolve(res.size) + }) + }) + // #endif + }, + }, +} +</script> + +<style lang="scss"> +@import '../../libs/css/components.scss'; + +.u-dropdown { + + &__menu { + @include flex; + + &__item { + flex: 1; + @include flex; + justify-content: center; + + &__content { + @include flex; + align-items: center; + } + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/props.js new file mode 100644 index 0000000..78662f8 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 鍐呯疆鍥炬爣鍚嶇О锛屾垨鍥剧墖璺緞锛屽缓璁粷瀵硅矾寰� + icon: { + type: String, + default: uni.$u.props.empty.icon + }, + // 鎻愮ず鏂囧瓧 + text: { + type: String, + default: uni.$u.props.empty.text + }, + // 鏂囧瓧棰滆壊 + textColor: { + type: String, + default: uni.$u.props.empty.textColor + }, + // 鏂囧瓧澶у皬 + textSize: { + type: [String, Number], + default: uni.$u.props.empty.textSize + }, + // 鍥炬爣鐨勯鑹� + iconColor: { + type: String, + default: uni.$u.props.empty.iconColor + }, + // 鍥炬爣鐨勫ぇ灏� + iconSize: { + type: [String, Number], + default: uni.$u.props.empty.iconSize + }, + // 閫夋嫨棰勭疆鐨勫浘鏍囩被鍨� + mode: { + type: String, + default: uni.$u.props.empty.mode + }, + // 鍥炬爣瀹藉害锛屽崟浣峱x + width: { + type: [String, Number], + default: uni.$u.props.empty.width + }, + // 鍥炬爣楂樺害锛屽崟浣峱x + height: { + type: [String, Number], + default: uni.$u.props.empty.height + }, + // 鏄惁鏄剧ず缁勪欢 + show: { + type: Boolean, + default: uni.$u.props.empty.show + }, + // 缁勪欢璺濈涓婁竴涓厓绱犱箣闂寸殑璺濈锛岄粯璁x鍗曚綅 + marginTop: { + type: [String, Number], + default: uni.$u.props.empty.marginTop + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/u-empty.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/u-empty.vue new file mode 100644 index 0000000..03d6a27 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-empty/u-empty.vue @@ -0,0 +1,128 @@ +<template> + <view + class="u-empty" + :style="[emptyStyle]" + v-if="show" + > + <u-icon + v-if="!isSrc" + :name="mode === 'message' ? 'chat' : `empty-${mode}`" + :size="iconSize" + :color="iconColor" + margin-top="14" + ></u-icon> + <image + v-else + :style="{ + width: $u.addUnit(width), + height: $u.addUnit(height), + }" + :src="icon" + mode="widthFix" + ></image> + <text + class="u-empty__text" + :style="[textStyle]" + >{{text ? text : icons[mode]}}</text> + <view class="u-empty__wrap" v-if="$slots.default || $slots.$default"> + <slot /> + </view> + </view> +</template> + +<script> + import props from './props.js'; + + /** + * empty 鍐呭涓虹┖ + * @description 璇ョ粍浠剁敤浜庨渶瑕佸姞杞藉唴瀹癸紝浣嗘槸鍔犺浇鐨勭涓�椤垫暟鎹氨涓虹┖锛屾彁绀轰竴涓�"娌℃湁鍐呭"鐨勫満鏅紝 鎴戜滑绮惧績鎸戦�変簡鍗佸嚑涓満鏅殑鍥炬爣锛屾柟渚挎偍浣跨敤銆� + * @tutorial https://www.uviewui.com/components/empty.html + * @property {String} icon 鍐呯疆鍥炬爣鍚嶇О锛屾垨鍥剧墖璺緞锛屽缓璁粷瀵硅矾寰� + * @property {String} text 鎻愮ず鏂囧瓧 + * @property {String} textColor 鏂囧瓧棰滆壊 (榛樿 '#c0c4cc' ) + * @property {String | Number} textSize 鏂囧瓧澶у皬 锛堥粯璁� 14 锛� + * @property {String} iconColor 鍥炬爣鐨勯鑹� 锛堥粯璁� '#c0c4cc' 锛� + * @property {String | Number} iconSize 鍥炬爣鐨勫ぇ灏� 锛堥粯璁� 90 锛� + * @property {String} mode 閫夋嫨棰勭疆鐨勫浘鏍囩被鍨� 锛堥粯璁� 'data' 锛� + * @property {String | Number} width 鍥炬爣瀹藉害锛屽崟浣峱x 锛堥粯璁� 160 锛� + * @property {String | Number} height 鍥炬爣楂樺害锛屽崟浣峱x 锛堥粯璁� 160 锛� + * @property {Boolean} show 鏄惁鏄剧ず缁勪欢 锛堥粯璁� true 锛� + * @property {String | Number} marginTop 缁勪欢璺濈涓婁竴涓厓绱犱箣闂寸殑璺濈锛岄粯璁x鍗曚綅 锛堥粯璁� 0 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click 鐐瑰嚮缁勪欢鏃惰Е鍙� + * @event {Function} close 鐐瑰嚮鍏抽棴鎸夐挳鏃惰Е鍙� + * @example <u-empty text="鎵�璋撲紛浜猴紝鍦ㄦ按涓�鏂�" mode="list"></u-empty> + */ + export default { + name: "u-empty", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + icons: { + car: '璐墿杞︿负绌�', + page: '椤甸潰涓嶅瓨鍦�', + search: '娌℃湁鎼滅储缁撴灉', + address: '娌℃湁鏀惰揣鍦板潃', + wifi: '娌℃湁WiFi', + order: '璁㈠崟涓虹┖', + coupon: '娌℃湁浼樻儬鍒�', + favor: '鏆傛棤鏀惰棌', + permission: '鏃犳潈闄�', + history: '鏃犲巻鍙茶褰�', + news: '鏃犳柊闂诲垪琛�', + message: '娑堟伅鍒楄〃涓虹┖', + list: '鍒楄〃涓虹┖', + data: '鏁版嵁涓虹┖', + comment: '鏆傛棤璇勮', + } + } + }, + computed: { + // 缁勪欢鏍峰紡 + emptyStyle() { + const style = {} + style.marginTop = uni.$u.addUnit(this.marginTop) + // 鍚堝苟customStyle鏍峰紡锛屾鍙傛暟閫氳繃mixin涓殑props浼犻�� + return uni.$u.deepMerge(uni.$u.addStyle(this.customStyle), style) + }, + // 鏂囨湰鏍峰紡 + textStyle() { + const style = {} + style.color = this.textColor + style.fontSize = uni.$u.addUnit(this.textSize) + return style + }, + // 鍒ゆ柇icon鏄惁鍥剧墖璺緞 + isSrc() { + return this.icon.indexOf('/') >= 0 + } + } + } +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; + $u-empty-text-margin-top:20rpx !default; + $u-empty-slot-margin-top:20rpx !default; + + .u-empty { + @include flex; + flex-direction: column; + justify-content: center; + align-items: center; + + &__text { + @include flex; + justify-content: center; + align-items: center; + margin-top: $u-empty-text-margin-top; + } + } + .u-slot-wrap { + @include flex; + justify-content: center; + align-items: center; + margin-top:$u-empty-slot-margin-top; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/props.js new file mode 100644 index 0000000..7b16655 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/props.js @@ -0,0 +1,48 @@ +export default { + props: { + // input鐨刲abel鎻愮ず璇� + label: { + type: String, + default: uni.$u.props.formItem.label + }, + // 缁戝畾鐨勫�� + prop: { + type: String, + default: uni.$u.props.formItem.prop + }, + // 鏄惁鏄剧ず琛ㄥ崟鍩熺殑涓嬪垝绾胯竟妗� + borderBottom: { + type: [String, Boolean], + default: uni.$u.props.formItem.borderBottom + }, + // label鐨勪綅缃紝left-宸﹁竟锛宼op-涓婅竟 + labelPosition: { + type: String, + default: uni.$u.props.formItem.labelPosition + }, + // label鐨勫搴︼紝鍗曚綅px + labelWidth: { + type: [String, Number], + default: uni.$u.props.formItem.labelWidth + }, + // 鍙充晶鍥炬爣 + rightIcon: { + type: String, + default: uni.$u.props.formItem.rightIcon + }, + // 宸︿晶鍥炬爣 + leftIcon: { + type: String, + default: uni.$u.props.formItem.leftIcon + }, + // 鏄惁鏄剧ず宸﹁竟鐨勫繀濉槦鍙凤紝鍙綔鏄剧ず鐢紝鍏蜂綋鏍¢獙蹇呭~鐨勯�昏緫锛岃鍦╮ules涓厤缃� + required: { + type: Boolean, + default: uni.$u.props.formItem.required + }, + leftIconStyle: { + type: [String, Object], + default: uni.$u.props.formItem.leftIconStyle, + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/u-form-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/u-form-item.vue new file mode 100644 index 0000000..6aa8d69 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form-item/u-form-item.vue @@ -0,0 +1,235 @@ +<template> + <view class="u-form-item"> + <view + class="u-form-item__body" + @tap="clickHandler" + :style="[$u.addStyle(customStyle), { + flexDirection: (labelPosition || parentData.labelPosition) === 'left' ? 'row' : 'column' + }]" + > + <!-- 寰俊灏忕▼搴忎腑锛屽皢涓�涓弬鏁拌缃┖瀛楃涓诧紝缁撴灉浼氬彉鎴愬瓧绗︿覆"true" --> + <slot name="label"> + <!-- {{required}} --> + <view + class="u-form-item__body__left" + v-if="required || leftIcon || label" + :style="{ + width: $u.addUnit(labelWidth || parentData.labelWidth), + marginBottom: parentData.labelPosition === 'left' ? 0 : '5px', + }" + > + <!-- 涓轰簡鍧楀榻� --> + <view class="u-form-item__body__left__content"> + <!-- nvue涓嶆敮鎸佷吉鍏冪礌before --> + <text + v-if="required" + class="u-form-item__body__left__content__required" + >*</text> + <view + class="u-form-item__body__left__content__icon" + v-if="leftIcon" + > + <u-icon + :name="leftIcon" + :custom-style="leftIconStyle" + ></u-icon> + </view> + <text + class="u-form-item__body__left__content__label" + :style="[parentData.labelStyle, { + justifyContent: parentData.labelAlign === 'left' ? 'flex-start' : parentData.labelAlign === 'center' ? 'center' : 'flex-end' + }]" + >{{ label }}</text> + </view> + </view> + </slot> + <view class="u-form-item__body__right"> + <view class="u-form-item__body__right__content"> + <view class="u-form-item__body__right__content__slot"> + <slot /> + </view> + <view + class="item__body__right__content__icon" + v-if="$slots.right" + > + <slot name="right" /> + </view> + </view> + </view> + </view> + <slot name="error"> + <text + v-if="!!message && parentData.errorType === 'message'" + class="u-form-item__body__right__message" + :style="{ + marginLeft: $u.addUnit(parentData.labelPosition === 'top' ? 0 : (labelWidth || parentData.labelWidth)) + }" + >{{ message }}</text> + </slot> + <u-line + v-if="borderBottom" + :color="message && parentData.errorType === 'border-bottom' ? $u.color.error : propsLine.color" + :customStyle="`margin-top: ${message && parentData.errorType === 'message' ? '5px' : 0}`" + ></u-line> + </view> +</template> + +<script> + import props from './props.js'; + /** + * Form 琛ㄥ崟 + * @description 姝ょ粍浠朵竴鑸敤浜庤〃鍗曞満鏅紝鍙互閰嶇疆Input杈撳叆妗嗭紝Select寮瑰嚭妗嗭紝杩涜琛ㄥ崟楠岃瘉绛夈�� + * @tutorial https://www.uviewui.com/components/form.html + * @property {String} label input鐨刲abel鎻愮ず璇� + * @property {String} prop 缁戝畾鐨勫�� + * @property {String | Boolean} borderBottom 鏄惁鏄剧ず琛ㄥ崟鍩熺殑涓嬪垝绾胯竟妗� + * @property {String | Number} labelWidth label鐨勫搴︼紝鍗曚綅px + * @property {String} rightIcon 鍙充晶鍥炬爣 + * @property {String} leftIcon 宸︿晶鍥炬爣 + * @property {String | Object} leftIconStyle 宸︿晶鍥炬爣鐨勬牱寮� + * @property {Boolean} required 鏄惁鏄剧ず宸﹁竟鐨勫繀濉槦鍙凤紝鍙綔鏄剧ず鐢紝鍏蜂綋鏍¢獙蹇呭~鐨勯�昏緫锛岃鍦╮ules涓厤缃� (榛樿 false ) + * + * @example <u-form-item label="濮撳悕" prop="userInfo.name" borderBottom ref="item1"></u-form-item> + */ + export default { + name: 'u-form-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 閿欒鎻愮ず璇� + message: '', + parentData: { + // 鎻愮ず鏂囨湰鐨勪綅缃� + labelPosition: 'left', + // 鎻愮ず鏂囨湰瀵归綈鏂瑰紡 + labelAlign: 'left', + // 鎻愮ず鏂囨湰鐨勬牱寮� + labelStyle: {}, + // 鎻愮ず鏂囨湰鐨勫搴� + labelWidth: 45, + // 閿欒鎻愮ず鏂瑰紡 + errorType: 'message' + } + } + }, + // 缁勪欢鍒涘缓瀹屾垚鏃讹紝灏嗗綋鍓嶅疄渚嬩繚瀛樺埌u-form涓� + computed: { + propsLine() { + return uni.$u.props.line + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鐖剁粍浠剁殑瀹炰緥 + this.updateParentData() + if (!this.parent) { + uni.$u.error('u-form-item闇�瑕佺粨鍚坲-form缁勪欢浣跨敤') + } + }, + // 鑾峰彇鐖剁粍浠剁殑鍙傛暟 + updateParentData() { + // 姝ゆ柟娉曞啓鍦╩ixin涓� + this.getParentData('u-form'); + }, + // 绉婚櫎u-form-item鐨勬牎楠岀粨鏋� + clearValidate() { + this.message = null + }, + // 娓呯┖褰撳墠鐨勭粍浠剁殑鏍¢獙缁撴灉锛屽苟閲嶇疆涓哄垵濮嬪�� + resetField() { + // 鎵惧埌鍘熷鍊� + const value = uni.$u.getProperty(this.parent.originalModel, this.prop) + // 灏唘-form鐨刴odel鐨刾rop灞炴�ч摼杩樺師鍘熷鍊� + uni.$u.setProperty(this.parent.model, this.prop, value) + // 绉婚櫎鏍¢獙缁撴灉 + this.message = null + }, + // 鐐瑰嚮缁勪欢 + clickHandler() { + this.$emit('click') + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-form-item { + @include flex(column); + font-size: 14px; + color: $u-main-color; + + &__body { + @include flex; + padding: 10px 0; + + &__left { + @include flex; + align-items: center; + + &__content { + position: relative; + @include flex; + align-items: center; + padding-right: 10rpx; + flex: 1; + + &__icon { + margin-right: 8rpx; + } + + &__required { + position: absolute; + left: -9px; + color: $u-error; + line-height: 20px; + font-size: 20px; + top: 3px; + } + + &__label { + @include flex; + align-items: center; + flex: 1; + color: $u-main-color; + font-size: 15px; + } + } + } + + &__right { + flex: 1; + + &__content { + @include flex; + align-items: center; + flex: 1; + + &__slot { + flex: 1; + /* #ifndef MP */ + @include flex; + align-items: center; + /* #endif */ + } + + &__icon { + margin-left: 10rpx; + color: $u-light-color; + font-size: 30rpx; + } + } + + &__message { + font-size: 12px; + line-height: 12px; + color: $u-error; + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/props.js new file mode 100644 index 0000000..f2a629c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/props.js @@ -0,0 +1,45 @@ +export default { + props: { + // 褰撳墠form鐨勯渶瑕侀獙璇佸瓧娈电殑闆嗗悎 + model: { + type: Object, + default: uni.$u.props.form.model + }, + // 楠岃瘉瑙勫垯 + rules: { + type: [Object, Function, Array], + default: uni.$u.props.form.rules + }, + // 鏈夐敊璇椂鐨勬彁绀烘柟寮忥紝message-鎻愮ず淇℃伅锛宼oast-杩涜toast鎻愮ず + // border-bottom-涓嬭竟妗嗗憟鐜扮孩鑹诧紝none-鏃犳彁绀� + errorType: { + type: String, + default: uni.$u.props.form.errorType + }, + // 鏄惁鏄剧ず琛ㄥ崟鍩熺殑涓嬪垝绾胯竟妗� + borderBottom: { + type: Boolean, + default: uni.$u.props.form.borderBottom + }, + // label鐨勪綅缃紝left-宸﹁竟锛宼op-涓婅竟 + labelPosition: { + type: String, + default: uni.$u.props.form.labelPosition + }, + // label鐨勫搴︼紝鍗曚綅px + labelWidth: { + type: [String, Number], + default: uni.$u.props.form.labelWidth + }, + // lable瀛椾綋鐨勫榻愭柟寮� + labelAlign: { + type: String, + default: uni.$u.props.form.labelAlign + }, + // lable鐨勬牱寮忥紝瀵硅薄褰㈠紡 + labelStyle: { + type: Object, + default: uni.$u.props.form.labelStyle + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/u-form.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/u-form.vue new file mode 100644 index 0000000..fe2dde2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-form/u-form.vue @@ -0,0 +1,214 @@ +<template> + <view class="u-form"> + <slot /> + </view> +</template> + +<script> + import props from "./props.js"; + import Schema from "../../libs/util/async-validator"; + // 鍘婚櫎璀﹀憡淇℃伅 + Schema.warning = function() {}; + /** + * Form 琛ㄥ崟 + * @description 姝ょ粍浠朵竴鑸敤浜庤〃鍗曞満鏅紝鍙互閰嶇疆Input杈撳叆妗嗭紝Select寮瑰嚭妗嗭紝杩涜琛ㄥ崟楠岃瘉绛夈�� + * @tutorial https://www.uviewui.com/components/form.html + * @property {Object} model 褰撳墠form鐨勯渶瑕侀獙璇佸瓧娈电殑闆嗗悎 + * @property {Object | Function | Array} rules 楠岃瘉瑙勫垯 + * @property {String} errorType 閿欒鐨勬彁绀烘柟寮忥紝瑙佷笂鏂硅鏄� ( 榛樿 message ) + * @property {Boolean} borderBottom 鏄惁鏄剧ず琛ㄥ崟鍩熺殑涓嬪垝绾胯竟妗� ( 榛樿 true 锛� + * @property {String} labelPosition 琛ㄥ崟鍩熸彁绀烘枃瀛楃殑浣嶇疆锛宭eft-宸︿晶锛宼op-涓婃柟 ( 榛樿 'left' 锛� + * @property {String | Number} labelWidth 鎻愮ず鏂囧瓧鐨勫搴︼紝鍗曚綅px ( 榛樿 45 锛� + * @property {String} labelAlign lable瀛椾綋鐨勫榻愭柟寮� ( 榛樿 鈥榣eft' 锛� + * @property {Object} labelStyle lable鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @example <u--formlabelPosition="left" :model="model1" :rules="rules" ref="form1"></u--form> + */ + export default { + name: "u-form", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + provide() { + return { + uForm: this, + }; + }, + data() { + return { + formRules: {}, + // 瑙勫垯鏍¢獙鍣� + validator: {}, + // 鍘熷鐨刴odel蹇収锛岀敤浜巖esetFields鏂规硶閲嶇疆琛ㄥ崟鏃朵娇鐢� + originalModel: null, + }; + }, + watch: { + // 鐩戝惉瑙勫垯鐨勫彉鍖� + rules: { + immediate: true, + handler(n) { + this.setRules(n); + }, + }, + // 鐩戝惉灞炴�х殑鍙樺寲锛岄�氱煡瀛愮粍浠秛-form-item閲嶆柊鑾峰彇淇℃伅 + propsChange(n) { + if (this.children?.length) { + this.children.map((child) => { + // 鍒ゆ柇瀛愮粍浠�(u-form-item)濡傛灉鏈塽pdateParentData鏂规硶鐨勮瘽锛屽氨灏辨墽琛�(鎵ц鐨勭粨鏋滄槸瀛愮粍浠堕噸鏂颁粠鐖剁粍浠舵媺鍙栦簡鏈�鏂扮殑鍊�) + typeof child.updateParentData == "function" && + child.updateParentData(); + }); + } + }, + // 鐩戝惉model鐨勫垵濮嬪�间綔涓洪噸缃〃鍗曠殑蹇収 + model: { + immediate: true, + handler(n) { + if (!this.originalModel) { + this.originalModel = uni.$u.deepClone(n); + } + }, + }, + }, + computed: { + propsChange() { + return [ + this.errorType, + this.borderBottom, + this.labelPosition, + this.labelWidth, + this.labelAlign, + this.labelStyle, + ]; + }, + }, + created() { + // 瀛樺偍褰撳墠form涓嬬殑鎵�鏈塽-form-item鐨勫疄渚� + // 涓嶈兘瀹氫箟鍦╠ata涓紝鍚﹀垯寰俊灏忕▼搴忎細閫犳垚寰幆寮曠敤鑰屾姤閿� + this.children = []; + }, + methods: { + // 鎵嬪姩璁剧疆鏍¢獙鐨勮鍒欙紝濡傛灉瑙勫垯涓湁鍑芥暟鐨勮瘽锛屽井淇″皬绋嬪簭涓細杩囨护鎺夛紝鎵�浠ュ彧鑳芥墜鍔ㄨ皟鐢ㄨ缃鍒� + setRules(rules) { + // 鍒ゆ柇鏄惁鏈夎鍒� + if (Object.keys(rules).length === 0) return; + if (process.env.NODE_ENV === 'development' && Object.keys(this.model).length === 0) { + uni.$u.error('璁剧疆rules锛宮odel蹇呴』璁剧疆锛佸鏋滃凡缁忚缃紝璇峰埛鏂伴〉闈€��'); + return; + }; + this.formRules = rules; + // 閲嶆柊灏嗚鍒欒祴浜圴alidator + this.validator = new Schema(rules); + }, + // 娓呯┖鎵�鏈塽-form-item缁勪欢鐨勫唴瀹癸紝鏈川涓婃槸璋冪敤浜唘-form-item缁勪欢涓殑resetField()鏂规硶 + resetFields() { + this.resetModel(); + }, + // 閲嶇疆model涓哄垵濮嬪�肩殑蹇収 + resetModel(obj) { + // 鍘嗛亶鎵�鏈塽-form-item锛屾牴鎹叾prop灞炴�э紝杩樺師model鐨勫師濮嬪揩鐓� + this.children.map((child) => { + const prop = child?.prop; + const value = uni.$u.getProperty(this.originalModel, prop); + uni.$u.setProperty(this.model, prop, value); + }); + }, + // 娓呯┖鏍¢獙缁撴灉 + clearValidate(props) { + props = [].concat(props); + this.children.map((child) => { + // 濡傛灉u-form-item鐨刾rop鍦╬rops鏁扮粍涓紝鍒欐竻闄ゅ搴旂殑鏍¢獙缁撴灉淇℃伅 + if (props[0] === undefined || props.includes(child.prop)) { + child.message = null; + } + }); + }, + // 瀵归儴鍒嗚〃鍗曞瓧娈佃繘琛屾牎楠� + async validateField(value, callback, event = null) { + // $nextTick鏄繀椤荤殑锛屽惁鍒檓odel鐨勫彉鏇达紝鍙兘浼氬欢鍚庝簬姝ゆ柟娉曠殑鎵ц + this.$nextTick(() => { + // 鏍¢獙閿欒淇℃伅锛岃繑鍥炵粰鍥炶皟鏂规硶锛岀敤浜庡瓨鏀炬墍鏈塮orm-item鐨勯敊璇俊鎭� + const errorsRes = []; + // 濡傛灉涓哄瓧绗︿覆锛岃浆涓烘暟缁� + value = [].concat(value); + // 鍘嗛亶children鎵�鏈夊瓙form-item + this.children.map((child) => { + // 鐢ㄤ簬瀛樻斁form-item鐨勯敊璇俊鎭� + const childErrors = []; + if (value.includes(child.prop)) { + // 鑾峰彇瀵瑰簲鐨勫睘鎬э紝閫氳繃绫讳技'a.b.c'鐨勫舰寮� + const propertyVal = uni.$u.getProperty( + this.model, + child.prop + ); + // 灞炴�ч摼鏁扮粍 + const propertyChain = child.prop.split("."); + const propertyName = + propertyChain[propertyChain.length - 1]; + + const rule = this.formRules[child.prop]; + // 濡傛灉涓嶅瓨鍦ㄥ搴旂殑瑙勫垯锛岀洿鎺ヨ繑鍥烇紝鍚﹀垯鏍¢獙鍣ㄤ細鎶ラ敊 + if (!rule) return; + // rule瑙勫垯鍙负鏁扮粍褰㈠紡锛屼篃鍙负瀵硅薄褰㈠紡锛屾澶勬嫾鎺ユ垚涓烘暟缁� + const rules = [].concat(rule); + + // 瀵箁ules鏁扮粍杩涜鏍¢獙 + for (let i = 0; i < rules.length; i++) { + const ruleItem = rules[i]; + // 灏唘-form-item鐨勮Е鍙戝櫒杞负鏁扮粍褰㈠紡 + const trigger = [].concat(ruleItem?.trigger); + // 濡傛灉鏄湁浼犲叆瑙﹀彂浜嬩欢锛屼絾鏄form-item鍗存病鏈夐厤缃瑙﹀彂鍣ㄧ殑璇濓紝涓嶆墽琛屾牎楠屾搷浣� + if (event && !trigger.includes(event)) continue; + // 瀹炰緥鍖栨牎楠屽璞★紝浼犲叆鏋勯�犺鍒� + const validator = new Schema({ + [propertyName]: ruleItem, + }); + validator.validate({ + [propertyName]: propertyVal, + }, + (errors, fields) => { + if (uni.$u.test.array(errors)) { + errorsRes.push(...errors); + childErrors.push(...errors); + } + child.message = + childErrors[0]?.message ?? null; + } + ); + } + } + }); + // 鎵ц鍥炶皟鍑芥暟 + typeof callback === "function" && callback(errorsRes); + }); + }, + // 鏍¢獙鍏ㄩ儴鏁版嵁 + validate(callback) { + // 寮�鍙戠幆澧冩墠鎻愮ず锛岀敓浜х幆澧冧笉浼氭彁绀� + if (process.env.NODE_ENV === 'development' && Object.keys(this.formRules).length === 0) { + uni.$u.error('鏈缃畆ules锛岃鐪嬫枃妗h鏄庯紒濡傛灉宸茬粡璁剧疆锛岃鍒锋柊椤甸潰銆�'); + return; + } + return new Promise((resolve, reject) => { + // $nextTick鏄繀椤荤殑锛屽惁鍒檓odel鐨勫彉鏇达紝鍙兘浼氬欢鍚庝簬validate鏂规硶 + this.$nextTick(() => { + // 鑾峰彇鎵�鏈塮orm-item鐨刾rop锛屼氦缁檝alidateField鏂规硶杩涜鏍¢獙 + const formItemProps = this.children.map( + (item) => item.prop + ); + this.validateField(formItemProps, (errors) => { + if(errors.length) { + // 濡傛灉閿欒鎻愮ず鏂瑰紡涓簍oast锛屽垯杩涜鎻愮ず + this.errorType === 'toast' && uni.$u.toast(errors[0].message) + reject(errors) + } else { + resolve(true) + } + }); + }); + }); + }, + }, + }; +</script> + +<style lang="scss" scoped> +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/props.js new file mode 100644 index 0000000..89953e3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/props.js @@ -0,0 +1,24 @@ +export default { + props: { + // 鑳屾櫙棰滆壊锛堥粯璁ransparent锛� + bgColor: { + type: String, + default: uni.$u.props.gap.bgColor + }, + // 鍒嗗壊妲介珮搴︼紝鍗曚綅px锛堥粯璁�30锛� + height: { + type: [String, Number], + default: uni.$u.props.gap.height + }, + // 涓庝笂涓�涓粍浠剁殑璺濈 + marginTop: { + type: [String, Number], + default: uni.$u.props.gap.marginTop + }, + // 涓庝笅涓�涓粍浠剁殑璺濈 + marginBottom: { + type: [String, Number], + default: uni.$u.props.gap.marginBottom + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/u-gap.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/u-gap.vue new file mode 100644 index 0000000..e4429f0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-gap/u-gap.vue @@ -0,0 +1,38 @@ +<template> + <view class="u-gap" :style="[gapStyle]"></view> +</template> + +<script> + import props from './props.js'; + /** + * gap 闂撮殧妲� + * @description 璇ョ粍浠朵竴鑸敤浜庡唴瀹瑰潡涔嬮棿鐨勭敤涓�涓伆鑹插潡闅斿紑鐨勫満鏅紝鏂逛究鐢ㄦ埛椋庢牸缁熶竴锛屽噺灏戝伐浣滈噺 + * @tutorial https://www.uviewui.com/components/gap.html + * @property {String} bgColor 鑳屾櫙棰滆壊 锛堥粯璁� 'transparent' 锛� + * @property {String | Number} height 鍒嗗壊妲介珮搴︼紝鍗曚綅px 锛堥粯璁� 20 锛� + * @property {String | Number} marginTop 涓庡墠涓�涓粍浠剁殑璺濈锛屽崟浣峱x锛� 榛樿 0 锛� + * @property {String | Number} marginBottom 涓庡悗涓�涓粍浠剁殑璺濈锛屽崟浣峱x 锛堥粯璁� 0 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @example <u-gap height="80" bg-color="#bbb"></u-gap> + */ + export default { + name: "u-gap", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + gapStyle() { + const style = { + backgroundColor: this.bgColor, + height: uni.$u.addUnit(this.height), + marginTop: uni.$u.addUnit(this.marginTop), + marginBottom: uni.$u.addUnit(this.marginBottom), + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/props.js new file mode 100644 index 0000000..06c3c66 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/props.js @@ -0,0 +1,14 @@ +export default { + props: { + // 瀹牸鐨刵ame + name: { + type: [String, Number, null], + default: uni.$u.props.gridItem.name + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.gridItem.bgColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/u-grid-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/u-grid-item.vue new file mode 100644 index 0000000..fc0c7cf --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid-item/u-grid-item.vue @@ -0,0 +1,209 @@ +<template> + <!-- #ifndef APP-NVUE --> + <view + class="u-grid-item" + hover-class="u-grid-item--hover-class" + :hover-stay-time="200" + @tap="clickHandler" + :class="classes" + :style="[itemStyle]" + > + <slot /> + </view> + <!-- #endif --> + <!-- #ifdef APP-NVUE --> + <view + class="u-grid-item" + :hover-stay-time="200" + @tap="clickHandler" + :class="classes" + :style="[itemStyle]" + > + <slot /> + </view> + <!-- #endif --> +</template> + +<script> + import props from './props.js'; + /** + * gridItem 鎻愮ず + * @description 瀹牸缁勪欢涓�鑸敤浜庡悓鏃跺睍绀哄涓悓绫婚」鐩殑鍦烘櫙锛屽彲浠ョ粰瀹牸鐨勯」鐩缃窘鏍囩粍浠�(badge)锛屾垨鑰呭浘鏍囩瓑锛屼篃鍙互鎵╁睍涓哄乏鍙虫粦鍔ㄧ殑杞挱褰㈠紡銆傛惌閰島-grid浣跨敤 + * @tutorial https://www.uviewui.com/components/grid.html + * @property {String | Number} name 瀹牸鐨刵ame ( 榛樿 null ) + * @property {String} bgColor 瀹牸鐨勮儗鏅鑹� 锛堥粯璁� 'transparent' 锛� + * @property {Object} customStyle 鑷畾涔夋牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} click 鐐瑰嚮瀹牸瑙﹀彂 + * @example <u-grid-item></u-grid-item> + */ + export default { + name: "u-grid-item", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + parentData: { + col: 3, // 鐖剁粍浠跺垝鍒嗙殑瀹牸鏁� + border: true, // 鏄惁鏄剧ず杈规锛屾牴鎹埗缁勪欢鍐冲畾 + }, + // #ifdef APP-NVUE + width: 0, // nvue涓嬫墠杩欎箞璁$畻锛寁ue涓嬫斁鍒癱omputed涓紝鍚﹀垯浼氬洜涓哄欢鏃堕�犳垚闂儊 + // #endif + classes: [], // 绫诲悕闆嗗悎锛岀敤浜庡垽鏂槸鍚︽樉绀哄彸杈瑰拰涓嬭竟妗� + }; + }, + mounted() { + this.init() + }, + computed: { + // #ifndef APP-NVUE + // vue涓嬫斁鍒癱omputed涓紝鍚﹀垯浼氬洜涓哄欢鏃堕�犳垚闂儊 + width() { + return 100 / Number(this.parentData.col) + '%' + }, + // #endif + itemStyle() { + const style = { + background: this.bgColor, + width: this.width + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + methods: { + init() { + // 鐢ㄤ簬鍦ㄧ埗缁勪欢u-grid鐨刢hildren涓娣诲姞鍏ュ瓙缁勪欢鏃讹紝 + // 閲嶆柊璁$畻item鐨勮竟妗� + uni.$on('$uGridItem', () => { + this.gridItemClasses() + }) + // 鐖剁粍浠剁殑瀹炰緥 + this.updateParentData() + // #ifdef APP-NVUE + // 鑾峰彇鍏冪礌璇ユ湁鐨勯暱搴︼紝nvue涓嬭寤舵椂鎵嶅噯纭� + this.$nextTick(function(){ + this.getItemWidth() + }) + // #endif + // 鍙戝嚭浜嬩欢锛岄�氱煡鎵�鏈夌殑grid-item閮介噸鏂拌绠楄嚜宸辩殑杈规 + uni.$emit('$uGridItem') + this.gridItemClasses() + }, + // 鑾峰彇鐖剁粍浠剁殑鍙傛暟 + updateParentData() { + // 姝ゆ柟娉曞啓鍦╩ixin涓� + this.getParentData('u-grid'); + }, + clickHandler() { + let name = this.name + // 濡傛灉娌℃湁璁剧疆name灞炴�э紝鍘嗛亶鐖剁粍浠剁殑children鏁扮粍锛屽垽鏂綋鍓嶇殑鍏冪礌鏄惁鍜屾湰瀹炰緥this鐩哥瓑锛屾壘鍑哄綋鍓嶇粍浠剁殑绱㈠紩 + const children = this.parent?.children + if(children && this.name === null) { + name = children.findIndex(child => child === this) + } + // 璋冪敤鐖剁粍浠舵柟娉曪紝鍙戝嚭浜嬩欢 + this.parent && this.parent.childClick(name) + this.$emit('click', name) + }, + async getItemWidth() { + // 濡傛灉鏄痭vue锛屼笉鑳戒娇鐢ㄧ櫨鍒嗘瘮锛屽彧鑳戒娇鐢ㄥ浐瀹氬搴� + let width = 0 + if(this.parent) { + // 鑾峰彇鐖剁粍浠跺搴﹀悗锛岄櫎浠ユ爡鏍兼暟锛屽緱鍑烘瘡涓猧tem鐨勫搴� + const parentWidth = await this.getParentWidth() + width = parentWidth / Number(this.parentData.col) + 'px' + } + this.width = width + }, + // 鑾峰彇鐖跺厓绱犵殑灏哄 + getParentWidth() { + // #ifdef APP-NVUE + // 杩斿洖涓�涓猵romise锛岃璋冪敤鑰呭彲浠ョ敤await鍚屾鑾峰彇 + const dom = uni.requireNativePlugin('dom') + return new Promise(resolve => { + // 璋冪敤鐖剁粍浠剁殑ref + dom.getComponentRect(this.parent.$refs['u-grid'], res => { + resolve(res.size.width) + }) + }) + // #endif + }, + gridItemClasses() { + if(this.parentData.border) { + const classes = [] + this.parent.children.map((child, index) =>{ + if(this === child) { + const len = this.parent.children.length + // 璐磋繎鍙宠竟灞忓箷杈规部鐨刢hild锛屽苟涓旀渶鍚庝竴涓紙姣斿鍙湁妯悜2涓殑鏃跺�欙級锛屾棤闇�鍙宠竟妗� + if((index + 1) % this.parentData.col !== 0 && index + 1 !== len) { + classes.push('u-border-right') + } + // 鎬荤殑瀹牸鏁伴噺瀵瑰垪鏁板彇浣欑殑鍊� + // 濡傛灉鍙栦綑鍚庯紝鍊间负0锛屽垯鎰忓懗鐫�瑕佸皢鏈�鍚庝竴鎺掔殑瀹牸锛岄兘涓嶉渶瑕佷笅杈规 + const lessNum = len % this.parentData.col === 0 ? this.parentData.col : len % this.parentData.col + // 鏈�涓嬮潰鐨勪竴鎺抍hild锛屾棤闇�涓嬭竟妗� + if(index < len - lessNum) { + classes.push('u-border-bottom') + } + } + }) + // 鏀粯瀹濓紝澶存潯灏忕▼搴忔棤娉曞姩鎬佺粦瀹氫竴涓暟缁勭被鍚嶏紝鍚﹀垯瑙f瀽鍑烘潵鐨勭粨鏋滀細甯︽湁","锛岃�屽鑷村け鏁� + // #ifdef MP-ALIPAY || MP-TOUTIAO + classes = classes.join(' ') + // #endif + this.classes = classes + } + } + }, + beforeDestroy() { + // 绉婚櫎浜嬩欢鐩戝惉锛岄噴鏀炬�ц兘 + uni.$off('$uGridItem') + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-grid-item-hover-class-opcatiy:.5 !default; + $u-grid-item-margin-top:1rpx !default; + $u-grid-item-border-right-width:0.5px !default; + $u-grid-item-border-bottom-width:0.5px !default; + $u-grid-item-border-right-color:$u-border-color !default; + $u-grid-item-border-bottom-color:$u-border-color !default; + .u-grid-item { + align-items: center; + justify-content: center; + position: relative; + flex-direction: column; + /* #ifndef APP-NVUE */ + box-sizing: border-box; + display: flex; + /* #endif */ + + /* #ifdef MP */ + position: relative; + float: left; + /* #endif */ + + /* #ifdef MP-WEIXIN */ + margin-top:$u-grid-item-margin-top; + /* #endif */ + + &--hover-class { + opacity:$u-grid-item-hover-class-opcatiy; + } + } + + /* #ifdef APP-NVUE */ + // 鐢变簬nvue涓嶆敮鎸佺粍浠跺唴寮曞叆app.vue涓啀寮曞叆鐨勬牱寮忥紝鎵�浠ラ渶瑕佸啓鍦ㄨ繖閲� + .u-border-right { + border-right-width:$u-grid-item-border-right-width; + border-color: $u-grid-item-border-right-color; + } + + .u-border-bottom { + border-bottom-width:$u-grid-item-border-bottom-width; + border-color:$u-grid-item-border-bottom-color; + } + + /* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/props.js new file mode 100644 index 0000000..87b0f6a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/props.js @@ -0,0 +1,19 @@ +export default { + props: { + // 鍒嗘垚鍑犲垪 + col: { + type: [String, Number], + default: uni.$u.props.grid.col + }, + // 鏄惁鏄剧ず杈规 + border: { + type: Boolean, + default: uni.$u.props.grid.border + }, + // 瀹牸瀵归綈鏂瑰紡锛岃〃鐜颁负鏁伴噺灏戠殑鏃跺�欙紝闈犲乏锛屽眳涓紝杩樻槸闈犲彸 + align: { + type: String, + default: uni.$u.props.grid.align + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/u-grid.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/u-grid.vue new file mode 100644 index 0000000..b43cc27 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-grid/u-grid.vue @@ -0,0 +1,97 @@ +<template> + <view + class="u-grid" + ref='u-grid' + :style="[gridStyle]" + > + <slot /> + </view> +</template> + +<script> + import props from './props.js'; + /** + * grid 瀹牸甯冨眬 + * @description 瀹牸缁勪欢涓�鑸敤浜庡悓鏃跺睍绀哄涓悓绫婚」鐩殑鍦烘櫙锛屽彲浠ョ粰瀹牸鐨勯」鐩缃窘鏍囩粍浠�(badge)锛屾垨鑰呭浘鏍囩瓑锛屼篃鍙互鎵╁睍涓哄乏鍙虫粦鍔ㄧ殑杞挱褰㈠紡銆� + * @tutorial https://www.uviewui.com/components/grid.html + * @property {String | Number} col 瀹牸鐨勫垪鏁帮紙榛樿 3 锛� + * @property {Boolean} border 鏄惁鏄剧ず瀹牸鐨勮竟妗嗭紙榛樿 false 锛� + * @property {String} align 瀹牸瀵归綈鏂瑰紡锛岃〃鐜颁负鏁伴噺灏戠殑鏃跺�欙紝闈犲乏锛屽眳涓紝杩樻槸闈犲彸 锛堥粯璁� 'left' 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @event {Function} click 鐐瑰嚮瀹牸瑙﹀彂 + * @example <u-grid :col="3" @click="click"></u-grid> + */ + export default { + name: 'u-grid', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + index: 0, + width: 0 + } + }, + watch: { + // 褰撶埗缁勪欢闇�瑕佸瓙缁勪欢闇�瑕佸叡浜殑鍙傛暟鍙戠敓浜嗗彉鍖栵紝鎵嬪姩閫氱煡瀛愮粍浠� + parentData() { + if (this.children.length) { + this.children.map(child => { + // 鍒ゆ柇瀛愮粍浠�(u-radio)濡傛灉鏈塽pdateParentData鏂规硶鐨勮瘽锛屽氨灏辨墽琛�(鎵ц鐨勭粨鏋滄槸瀛愮粍浠堕噸鏂颁粠鐖剁粍浠舵媺鍙栦簡鏈�鏂扮殑鍊�) + typeof(child.updateParentData) == 'function' && child.updateParentData(); + }) + } + }, + }, + created() { + // 濡傛灉灏哻hildren瀹氫箟鍦╠ata涓紝鍦ㄥ井淇″皬绋嬪簭浼氶�犳垚寰幆寮曠敤鑰屾姤閿� + this.children = [] + }, + computed: { + // 璁$畻鐖剁粍浠剁殑鍊兼槸鍚﹀彂鐢熷彉鍖� + parentData() { + return [this.hoverClass, this.col, this.size, this.border]; + }, + // 瀹牸瀵归綈鏂瑰紡 + gridStyle() { + let style = {}; + switch (this.align) { + case 'left': + style.justifyContent = 'flex-start'; + break; + case 'center': + style.justifyContent = 'center'; + break; + case 'right': + style.justifyContent = 'flex-end'; + break; + default: + style.justifyContent = 'flex-start'; + }; + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)); + } + }, + methods: { + // 姝ゆ柟娉曠敱u-grid-item瑙﹀彂锛岀敤浜庡湪u-grid鍙戝嚭浜嬩欢 + childClick(name) { + this.$emit('click', name) + } + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-grid-width:100% !default; + .u-grid { + /* #ifdef MP */ + width: $u-grid-width; + position: relative; + box-sizing: border-box; + overflow: hidden; + display: block; + /* #endif */ + justify-content: center; + @include flex; + flex-wrap: wrap; + align-items: center; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/iconfont.ttf b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/iconfont.ttf new file mode 100644 index 0000000..cd755ec --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/iconfont.ttf Binary files differ diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/icons.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/icons.js new file mode 100644 index 0000000..f4d0fe2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/icons.js @@ -0,0 +1,214 @@ +export default { + 'uicon-level': '\ue693', + 'uicon-column-line': '\ue68e', + 'uicon-checkbox-mark': '\ue807', + 'uicon-folder': '\ue7f5', + 'uicon-movie': '\ue7f6', + 'uicon-star-fill': '\ue669', + 'uicon-star': '\ue65f', + 'uicon-phone-fill': '\ue64f', + 'uicon-phone': '\ue622', + 'uicon-apple-fill': '\ue881', + 'uicon-chrome-circle-fill': '\ue885', + 'uicon-backspace': '\ue67b', + 'uicon-attach': '\ue632', + 'uicon-cut': '\ue948', + 'uicon-empty-car': '\ue602', + 'uicon-empty-coupon': '\ue682', + 'uicon-empty-address': '\ue646', + 'uicon-empty-favor': '\ue67c', + 'uicon-empty-permission': '\ue686', + 'uicon-empty-news': '\ue687', + 'uicon-empty-search': '\ue664', + 'uicon-github-circle-fill': '\ue887', + 'uicon-rmb': '\ue608', + 'uicon-person-delete-fill': '\ue66a', + 'uicon-reload': '\ue788', + 'uicon-order': '\ue68f', + 'uicon-server-man': '\ue6bc', + 'uicon-search': '\ue62a', + 'uicon-fingerprint': '\ue955', + 'uicon-more-dot-fill': '\ue630', + 'uicon-scan': '\ue662', + 'uicon-share-square': '\ue60b', + 'uicon-map': '\ue61d', + 'uicon-map-fill': '\ue64e', + 'uicon-tags': '\ue629', + 'uicon-tags-fill': '\ue651', + 'uicon-bookmark-fill': '\ue63b', + 'uicon-bookmark': '\ue60a', + 'uicon-eye': '\ue613', + 'uicon-eye-fill': '\ue641', + 'uicon-mic': '\ue64a', + 'uicon-mic-off': '\ue649', + 'uicon-calendar': '\ue66e', + 'uicon-calendar-fill': '\ue634', + 'uicon-trash': '\ue623', + 'uicon-trash-fill': '\ue658', + 'uicon-play-left': '\ue66d', + 'uicon-play-right': '\ue610', + 'uicon-minus': '\ue618', + 'uicon-plus': '\ue62d', + 'uicon-info': '\ue653', + 'uicon-info-circle': '\ue7d2', + 'uicon-info-circle-fill': '\ue64b', + 'uicon-question': '\ue715', + 'uicon-error': '\ue6d3', + 'uicon-close': '\ue685', + 'uicon-checkmark': '\ue6a8', + 'uicon-android-circle-fill': '\ue67e', + 'uicon-android-fill': '\ue67d', + 'uicon-ie': '\ue87b', + 'uicon-IE-circle-fill': '\ue889', + 'uicon-google': '\ue87a', + 'uicon-google-circle-fill': '\ue88a', + 'uicon-setting-fill': '\ue872', + 'uicon-setting': '\ue61f', + 'uicon-minus-square-fill': '\ue855', + 'uicon-plus-square-fill': '\ue856', + 'uicon-heart': '\ue7df', + 'uicon-heart-fill': '\ue851', + 'uicon-camera': '\ue7d7', + 'uicon-camera-fill': '\ue870', + 'uicon-more-circle': '\ue63e', + 'uicon-more-circle-fill': '\ue645', + 'uicon-chat': '\ue620', + 'uicon-chat-fill': '\ue61e', + 'uicon-bag-fill': '\ue617', + 'uicon-bag': '\ue619', + 'uicon-error-circle-fill': '\ue62c', + 'uicon-error-circle': '\ue624', + 'uicon-close-circle': '\ue63f', + 'uicon-close-circle-fill': '\ue637', + 'uicon-checkmark-circle': '\ue63d', + 'uicon-checkmark-circle-fill': '\ue635', + 'uicon-question-circle-fill': '\ue666', + 'uicon-question-circle': '\ue625', + 'uicon-share': '\ue631', + 'uicon-share-fill': '\ue65e', + 'uicon-shopping-cart': '\ue621', + 'uicon-shopping-cart-fill': '\ue65d', + 'uicon-bell': '\ue609', + 'uicon-bell-fill': '\ue640', + 'uicon-list': '\ue650', + 'uicon-list-dot': '\ue616', + 'uicon-zhihu': '\ue6ba', + 'uicon-zhihu-circle-fill': '\ue709', + 'uicon-zhifubao': '\ue6b9', + 'uicon-zhifubao-circle-fill': '\ue6b8', + 'uicon-weixin-circle-fill': '\ue6b1', + 'uicon-weixin-fill': '\ue6b2', + 'uicon-twitter-circle-fill': '\ue6ab', + 'uicon-twitter': '\ue6aa', + 'uicon-taobao-circle-fill': '\ue6a7', + 'uicon-taobao': '\ue6a6', + 'uicon-weibo-circle-fill': '\ue6a5', + 'uicon-weibo': '\ue6a4', + 'uicon-qq-fill': '\ue6a1', + 'uicon-qq-circle-fill': '\ue6a0', + 'uicon-moments-circel-fill': '\ue69a', + 'uicon-moments': '\ue69b', + 'uicon-qzone': '\ue695', + 'uicon-qzone-circle-fill': '\ue696', + 'uicon-baidu-circle-fill': '\ue680', + 'uicon-baidu': '\ue681', + 'uicon-facebook-circle-fill': '\ue68a', + 'uicon-facebook': '\ue689', + 'uicon-car': '\ue60c', + 'uicon-car-fill': '\ue636', + 'uicon-warning-fill': '\ue64d', + 'uicon-warning': '\ue694', + 'uicon-clock-fill': '\ue638', + 'uicon-clock': '\ue60f', + 'uicon-edit-pen': '\ue612', + 'uicon-edit-pen-fill': '\ue66b', + 'uicon-email': '\ue611', + 'uicon-email-fill': '\ue642', + 'uicon-minus-circle': '\ue61b', + 'uicon-minus-circle-fill': '\ue652', + 'uicon-plus-circle': '\ue62e', + 'uicon-plus-circle-fill': '\ue661', + 'uicon-file-text': '\ue663', + 'uicon-file-text-fill': '\ue665', + 'uicon-pushpin': '\ue7e3', + 'uicon-pushpin-fill': '\ue86e', + 'uicon-grid': '\ue673', + 'uicon-grid-fill': '\ue678', + 'uicon-play-circle': '\ue647', + 'uicon-play-circle-fill': '\ue655', + 'uicon-pause-circle-fill': '\ue654', + 'uicon-pause': '\ue8fa', + 'uicon-pause-circle': '\ue643', + 'uicon-eye-off': '\ue648', + 'uicon-eye-off-outline': '\ue62b', + 'uicon-gift-fill': '\ue65c', + 'uicon-gift': '\ue65b', + 'uicon-rmb-circle-fill': '\ue657', + 'uicon-rmb-circle': '\ue677', + 'uicon-kefu-ermai': '\ue656', + 'uicon-server-fill': '\ue751', + 'uicon-coupon-fill': '\ue8c4', + 'uicon-coupon': '\ue8ae', + 'uicon-integral': '\ue704', + 'uicon-integral-fill': '\ue703', + 'uicon-home-fill': '\ue964', + 'uicon-home': '\ue965', + 'uicon-hourglass-half-fill': '\ue966', + 'uicon-hourglass': '\ue967', + 'uicon-account': '\ue628', + 'uicon-plus-people-fill': '\ue626', + 'uicon-minus-people-fill': '\ue615', + 'uicon-account-fill': '\ue614', + 'uicon-thumb-down-fill': '\ue726', + 'uicon-thumb-down': '\ue727', + 'uicon-thumb-up': '\ue733', + 'uicon-thumb-up-fill': '\ue72f', + 'uicon-lock-fill': '\ue979', + 'uicon-lock-open': '\ue973', + 'uicon-lock-opened-fill': '\ue974', + 'uicon-lock': '\ue97a', + 'uicon-red-packet-fill': '\ue690', + 'uicon-photo-fill': '\ue98b', + 'uicon-photo': '\ue98d', + 'uicon-volume-off-fill': '\ue659', + 'uicon-volume-off': '\ue644', + 'uicon-volume-fill': '\ue670', + 'uicon-volume': '\ue633', + 'uicon-red-packet': '\ue691', + 'uicon-download': '\ue63c', + 'uicon-arrow-up-fill': '\ue6b0', + 'uicon-arrow-down-fill': '\ue600', + 'uicon-play-left-fill': '\ue675', + 'uicon-play-right-fill': '\ue676', + 'uicon-rewind-left-fill': '\ue679', + 'uicon-rewind-right-fill': '\ue67a', + 'uicon-arrow-downward': '\ue604', + 'uicon-arrow-leftward': '\ue601', + 'uicon-arrow-rightward': '\ue603', + 'uicon-arrow-upward': '\ue607', + 'uicon-arrow-down': '\ue60d', + 'uicon-arrow-right': '\ue605', + 'uicon-arrow-left': '\ue60e', + 'uicon-arrow-up': '\ue606', + 'uicon-skip-back-left': '\ue674', + 'uicon-skip-forward-right': '\ue672', + 'uicon-rewind-right': '\ue66f', + 'uicon-rewind-left': '\ue671', + 'uicon-arrow-right-double': '\ue68d', + 'uicon-arrow-left-double': '\ue68c', + 'uicon-wifi-off': '\ue668', + 'uicon-wifi': '\ue667', + 'uicon-empty-data': '\ue62f', + 'uicon-empty-history': '\ue684', + 'uicon-empty-list': '\ue68b', + 'uicon-empty-page': '\ue627', + 'uicon-empty-order': '\ue639', + 'uicon-man': '\ue697', + 'uicon-woman': '\ue69c', + 'uicon-man-add': '\ue61c', + 'uicon-man-add-fill': '\ue64c', + 'uicon-man-delete': '\ue61a', + 'uicon-man-delete-fill': '\ue66a', + 'uicon-zh': '\ue70a', + 'uicon-en': '\ue692' +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/props.js new file mode 100644 index 0000000..71845b7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/props.js @@ -0,0 +1,89 @@ +export default { + props: { + // 鍥炬爣绫诲悕 + name: { + type: String, + default: uni.$u.props.icon.name + }, + // 鍥炬爣棰滆壊锛屽彲鎺ュ彈涓婚鑹� + color: { + type: String, + default: uni.$u.props.icon.color + }, + // 瀛椾綋澶у皬锛屽崟浣峱x + size: { + type: [String, Number], + default: uni.$u.props.icon.size + }, + // 鏄惁鏄剧ず绮椾綋 + bold: { + type: Boolean, + default: uni.$u.props.icon.bold + }, + // 鐐瑰嚮鍥炬爣鐨勬椂鍊欎紶閫掍簨浠跺嚭鍘荤殑index锛堢敤浜庡尯鍒嗙偣鍑讳簡鍝竴涓級 + index: { + type: [String, Number], + default: uni.$u.props.icon.index + }, + // 瑙︽懜鍥炬爣鏃剁殑绫诲悕 + hoverClass: { + type: String, + default: uni.$u.props.icon.hoverClass + }, + // 鑷畾涔夋墿灞曞墠缂�锛屾柟渚跨敤鎴锋墿灞曡嚜宸辩殑鍥炬爣搴� + customPrefix: { + type: String, + default: uni.$u.props.icon.customPrefix + }, + // 鍥炬爣鍙宠竟鎴栬�呬笅闈㈢殑鏂囧瓧 + label: { + type: [String, Number], + default: uni.$u.props.icon.label + }, + // label鐨勪綅缃紝鍙兘鍙宠竟鎴栬�呬笅杈� + labelPos: { + type: String, + default: uni.$u.props.icon.labelPos + }, + // label鐨勫ぇ灏� + labelSize: { + type: [String, Number], + default: uni.$u.props.icon.labelSize + }, + // label鐨勯鑹� + labelColor: { + type: String, + default: uni.$u.props.icon.labelColor + }, + // label涓庡浘鏍囩殑璺濈 + space: { + type: [String, Number], + default: uni.$u.props.icon.space + }, + // 鍥剧墖鐨刴ode + imgMode: { + type: String, + default: uni.$u.props.icon.imgMode + }, + // 鐢ㄤ簬鏄剧ず鍥剧墖灏忓浘鏍囨椂锛屽浘鐗囩殑瀹藉害 + width: { + type: [String, Number], + default: uni.$u.props.icon.width + }, + // 鐢ㄤ簬鏄剧ず鍥剧墖灏忓浘鏍囨椂锛屽浘鐗囩殑楂樺害 + height: { + type: [String, Number], + default: uni.$u.props.icon.height + }, + // 鐢ㄤ簬瑙e喅鏌愪簺鎯呭喌涓嬶紝璁╁浘鏍囧瀭鐩村眳涓殑鐢ㄩ�� + top: { + type: [String, Number], + default: uni.$u.props.icon.top + }, + // 鏄惁闃绘浜嬩欢浼犳挱 + stop: { + type: Boolean, + default: uni.$u.props.icon.stop + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/u-icon.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/u-icon.vue new file mode 100644 index 0000000..6079231 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-icon/u-icon.vue @@ -0,0 +1,234 @@ +<template> + <view + class="u-icon" + @tap="clickHandler" + :class="['u-icon--' + labelPos]" + > + <image + class="u-icon__img" + v-if="isImg" + :src="name" + :mode="imgMode" + :style="[imgStyle, $u.addStyle(customStyle)]" + ></image> + <text + v-else + class="u-icon__icon" + :class="uClasses" + :style="[iconStyle, $u.addStyle(customStyle)]" + :hover-class="hoverClass" + >{{icon}}</text> + <!-- 杩欓噷杩涜绌哄瓧绗︿覆鍒ゆ柇锛屽鏋滀粎浠呮槸v-if="label"锛屽彲鑳戒細鍑虹幇浼犻��0鐨勬椂鍊欙紝缁撴灉涔熸棤娉曟樉绀� --> + <text + v-if="label !== ''" + class="u-icon__label" + :style="{ + color: labelColor, + fontSize: $u.addUnit(labelSize), + marginLeft: labelPos == 'right' ? $u.addUnit(space) : 0, + marginTop: labelPos == 'bottom' ? $u.addUnit(space) : 0, + marginRight: labelPos == 'left' ? $u.addUnit(space) : 0, + marginBottom: labelPos == 'top' ? $u.addUnit(space) : 0, + }" + >{{ label }}</text> + </view> +</template> + +<script> + // #ifdef APP-NVUE + // nvue閫氳繃weex鐨刣om妯″潡寮曞叆瀛椾綋锛岀浉鍏虫枃妗e湴鍧�濡備笅锛� + // https://weex.apache.org/zh/docs/modules/dom.html#addrule + const fontUrl = './iconfont.ttf' + const domModule = weex.requireModule('dom') + domModule.addRule('fontFace', { + 'fontFamily': "uicon-iconfont", + 'src': `url('${fontUrl}')` + }) + // #endif + + // 寮曞叆鍥炬爣鍚嶇О锛屽凡缁忓搴旂殑unicode + import icons from './icons' + + import props from './props.js';; + + /** + * icon 鍥炬爣 + * @description 鍩轰簬瀛椾綋鐨勫浘鏍囬泦锛屽寘鍚簡澶у鏁板父瑙佸満鏅殑鍥炬爣銆� + * @tutorial https://www.uviewui.com/components/icon.html + * @property {String} name 鍥炬爣鍚嶇О锛岃绀轰緥鍥炬爣闆� + * @property {String} color 鍥炬爣棰滆壊,鍙帴鍙椾富棰樿壊 锛堥粯璁� color['u-content-color'] 锛� + * @property {String | Number} size 鍥炬爣瀛椾綋澶у皬锛屽崟浣峱x 锛堥粯璁� '16px' 锛� + * @property {Boolean} bold 鏄惁鏄剧ず绮椾綋 锛堥粯璁� false 锛� + * @property {String | Number} index 鐐瑰嚮鍥炬爣鐨勬椂鍊欎紶閫掍簨浠跺嚭鍘荤殑index锛堢敤浜庡尯鍒嗙偣鍑讳簡鍝竴涓級 + * @property {String} hoverClass 鍥炬爣鎸変笅鍘荤殑鏍峰紡绫伙紝鐢ㄦ硶鍚寀ni鐨剉iew缁勪欢鐨刪overClass鍙傛暟锛岃鎯呰瀹樼綉 + * @property {String} customPrefix 鑷畾涔夋墿灞曞墠缂�锛屾柟渚跨敤鎴锋墿灞曡嚜宸辩殑鍥炬爣搴� 锛堥粯璁� 'uicon' 锛� + * @property {String | Number} label 鍥炬爣鍙充晶鐨刲abel鏂囧瓧 + * @property {String} labelPos label鐩稿浜庡浘鏍囩殑浣嶇疆锛屽彧鑳絩ight鎴朾ottom 锛堥粯璁� 'right' 锛� + * @property {String | Number} labelSize label瀛椾綋澶у皬锛屽崟浣峱x 锛堥粯璁� '15px' 锛� + * @property {String} labelColor 鍥炬爣鍙充晶鐨刲abel鏂囧瓧棰滆壊 锛� 榛樿 color['u-content-color'] 锛� + * @property {String | Number} space label涓庡浘鏍囩殑璺濈锛屽崟浣峱x 锛堥粯璁� '3px' 锛� + * @property {String} imgMode 鍥剧墖鐨刴ode + * @property {String | Number} width 鏄剧ず鍥剧墖灏忓浘鏍囨椂鐨勫搴� + * @property {String | Number} height 鏄剧ず鍥剧墖灏忓浘鏍囨椂鐨勯珮搴� + * @property {String | Number} top 鍥炬爣鍦ㄥ瀭鐩存柟鍚戜笂鐨勫畾浣� 鐢ㄤ簬瑙e喅鏌愪簺鎯呭喌涓嬶紝璁╁浘鏍囧瀭鐩村眳涓殑鐢ㄩ�� 锛堥粯璁� 0 锛� + * @property {Boolean} stop 鏄惁闃绘浜嬩欢浼犳挱 锛堥粯璁� false 锛� + * @property {Object} customStyle icon鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} click 鐐瑰嚮鍥炬爣鏃惰Е鍙� + * @event {Function} touchstart 浜嬩欢瑙︽懜鏃惰Е鍙� + * @example <u-icon name="photo" color="#2979ff" size="28"></u-icon> + */ + export default { + name: 'u-icon', + data() { + return { + + } + }, + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + uClasses() { + let classes = [] + classes.push(this.customPrefix + '-' + this.name) + // // uView鐨勮嚜瀹氫箟鍥炬爣绫诲悕涓簎-iconfont + // if (this.customPrefix == 'uicon') { + // classes.push('u-iconfont') + // } else { + // classes.push(this.customPrefix) + // } + // 涓婚鑹诧紝閫氳繃绫婚厤缃� + if (this.color && uni.$u.config.type.includes(this.color)) classes.push('u-icon__icon--' + this.color) + // 闃块噷锛屽ご鏉★紝鐧惧害灏忕▼搴忛�氳繃鏁扮粍缁戝畾绫诲悕鏃讹紝鏃犳硶鐩存帴浣跨敤[a, b, c]鐨勫舰寮忥紝鍚﹀垯鏃犳硶璇嗗埆 + // 鏁呴渶灏嗗叾鎷嗘垚涓�涓瓧绗︿覆鐨勫舰寮忥紝閫氳繃绌烘牸闅斿紑鍚勪釜绫诲悕 + //#ifdef MP-ALIPAY || MP-TOUTIAO || MP-BAIDU + classes = classes.join(' ') + //#endif + return classes + }, + iconStyle() { + let style = {} + style = { + fontSize: uni.$u.addUnit(this.size), + lineHeight: uni.$u.addUnit(this.size), + fontWeight: this.bold ? 'bold' : 'normal', + // 鏌愪簺鐗规畩鎯呭喌闇�瑕佽缃竴涓埌椤堕儴鐨勮窛绂伙紝鎵嶈兘鏇村ソ鐨勫瀭鐩村眳涓� + top: uni.$u.addUnit(this.top) + } + // 闈炰富棰樿壊鍊兼椂锛屾墠褰撲綔棰滆壊鍊� + if (this.color && !uni.$u.config.type.includes(this.color)) style.color = this.color + + return style + }, + // 鍒ゆ柇浼犲叆鐨刵ame灞炴�э紝鏄惁鍥剧墖璺緞锛屽彧瑕佸甫鏈�"/"鍧囪涓烘槸鍥剧墖褰㈠紡 + isImg() { + return this.name.indexOf('/') !== -1 + }, + imgStyle() { + let style = {} + // 濡傛灉璁剧疆width鍜宧eight灞炴�э紝鍒欎紭鍏堜娇鐢紝鍚﹀垯浣跨敤size灞炴�� + style.width = this.width ? uni.$u.addUnit(this.width) : uni.$u.addUnit(this.size) + style.height = this.height ? uni.$u.addUnit(this.height) : uni.$u.addUnit(this.size) + return style + }, + // 閫氳繃鍥炬爣鍚嶏紝鏌ユ壘瀵瑰簲鐨勫浘鏍� + icon() { + // 濡傛灉鍐呯疆鐨勫浘鏍囦腑鎵句笉鍒板搴旂殑鍥炬爣锛屽氨鐩存帴杩斿洖name鍊硷紝鍥犱负鐢ㄦ埛鍙兘浼犲叆鐨勬槸unicode浠g爜 + return icons['uicon-' + this.name] || this.name + } + }, + methods: { + clickHandler(e) { + this.$emit('click', this.index) + // 鏄惁闃绘浜嬩欢鍐掓场 + this.stop && this.preventEvent(e) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + // 鍙橀噺瀹氫箟 + $u-icon-primary: $u-primary !default; + $u-icon-success: $u-success !default; + $u-icon-info: $u-info !default; + $u-icon-warning: $u-warning !default; + $u-icon-error: $u-error !default; + $u-icon-label-line-height:1 !default; + + /* #ifndef APP-NVUE */ + // 闈瀗vue涓嬪姞杞藉瓧浣� + @font-face { + font-family: 'uicon-iconfont'; + src: url('./iconfont.ttf') format('truetype'); + } + + /* #endif */ + + .u-icon { + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + align-items: center; + + &--left { + flex-direction: row-reverse; + align-items: center; + } + + &--right { + flex-direction: row; + align-items: center; + } + + &--top { + flex-direction: column-reverse; + justify-content: center; + } + + &--bottom { + flex-direction: column; + justify-content: center; + } + + &__icon { + font-family: uicon-iconfont; + position: relative; + @include flex; + align-items: center; + + &--primary { + color: $u-icon-primary; + } + + &--success { + color: $u-icon-success; + } + + &--error { + color: $u-icon-error; + } + + &--warning { + color: $u-icon-warning; + } + + &--info { + color: $u-icon-info; + } + } + + &__img { + /* #ifndef APP-NVUE */ + height: auto; + will-change: transform; + /* #endif */ + } + + &__label { + /* #ifndef APP-NVUE */ + line-height: $u-icon-label-line-height; + /* #endif */ + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/props.js new file mode 100644 index 0000000..2eabb74 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/props.js @@ -0,0 +1,84 @@ +export default { + props: { + // 鍥剧墖鍦板潃 + src: { + type: String, + default: uni.$u.props.image.src + }, + // 瑁佸壀妯″紡 + mode: { + type: String, + default: uni.$u.props.image.mode + }, + // 瀹藉害锛屽崟浣嶄换鎰� + width: { + type: [String, Number], + default: uni.$u.props.image.width + }, + // 楂樺害锛屽崟浣嶄换鎰� + height: { + type: [String, Number], + default: uni.$u.props.image.height + }, + // 鍥剧墖褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.image.shape + }, + // 鍦嗚锛屽崟浣嶄换鎰� + radius: { + type: [String, Number], + default: uni.$u.props.image.radius + }, + // 鏄惁鎳掑姞杞斤紝寰俊灏忕▼搴忋�丄pp銆佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭 + lazyLoad: { + type: Boolean, + default: uni.$u.props.image.lazyLoad + }, + // 寮�鍚暱鎸夊浘鐗囨樉绀鸿瘑鍒井淇″皬绋嬪簭鐮佽彍鍗� + showMenuByLongpress: { + type: Boolean, + default: uni.$u.props.image.showMenuByLongpress + }, + // 鍔犺浇涓殑鍥炬爣锛屾垨鑰呭皬鍥剧墖 + loadingIcon: { + type: String, + default: uni.$u.props.image.loadingIcon + }, + // 鍔犺浇澶辫触鐨勫浘鏍囷紝鎴栬�呭皬鍥剧墖 + errorIcon: { + type: String, + default: uni.$u.props.image.errorIcon + }, + // 鏄惁鏄剧ず鍔犺浇涓殑鍥炬爣鎴栬�呰嚜瀹氫箟鐨剆lot + showLoading: { + type: Boolean, + default: uni.$u.props.image.showLoading + }, + // 鏄惁鏄剧ず鍔犺浇閿欒鐨勫浘鏍囨垨鑰呰嚜瀹氫箟鐨剆lot + showError: { + type: Boolean, + default: uni.$u.props.image.showError + }, + // 鏄惁闇�瑕佹贰鍏ユ晥鏋� + fade: { + type: Boolean, + default: uni.$u.props.image.fade + }, + // 鍙敮鎸佺綉缁滆祫婧愶紝鍙寰俊灏忕▼搴忔湁鏁� + webp: { + type: Boolean, + default: uni.$u.props.image.webp + }, + // 杩囨浮鏃堕棿锛屽崟浣峬s + duration: { + type: [String, Number], + default: uni.$u.props.image.duration + }, + // 鑳屾櫙棰滆壊锛岀敤浜庢繁鑹查〉闈㈠姞杞藉浘鐗囨椂锛屼负浜嗗拰鑳屾櫙鑹茶瀺鍚� + bgColor: { + type: String, + default: uni.$u.props.image.bgColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/u-image.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/u-image.vue new file mode 100644 index 0000000..473e35b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-image/u-image.vue @@ -0,0 +1,232 @@ +<template> + <u-transition + mode="fade" + :show="show" + :duration="fade ? 1000 : 0" + > + <view + class="u-image" + @tap="onClick" + :style="[wrapStyle, backgroundStyle]" + > + <image + v-if="!isError" + :src="src" + :mode="mode" + @error="onErrorHandler" + @load="onLoadHandler" + :show-menu-by-longpress="showMenuByLongpress" + :lazy-load="lazyLoad" + class="u-image__image" + :style="{ + borderRadius: shape == 'circle' ? '10000px' : $u.addUnit(radius), + width: $u.addUnit(width), + height: $u.addUnit(height) + }" + ></image> + <view + v-if="showLoading && loading" + class="u-image__loading" + :style="{ + borderRadius: shape == 'circle' ? '50%' : $u.addUnit(radius), + backgroundColor: this.bgColor, + width: $u.addUnit(width), + height: $u.addUnit(height) + }" + > + <slot name="loading"> + <u-icon + :name="loadingIcon" + :width="width" + :height="height" + ></u-icon> + </slot> + </view> + <view + v-if="showError && isError && !loading" + class="u-image__error" + :style="{ + borderRadius: shape == 'circle' ? '50%' : $u.addUnit(radius), + width: $u.addUnit(width), + height: $u.addUnit(height) + }" + > + <slot name="error"> + <u-icon + :name="errorIcon" + :width="width" + :height="height" + ></u-icon> + </slot> + </view> + </view> + </u-transition> +</template> + +<script> + import props from './props.js'; + /** + * Image 鍥剧墖 + * @description 姝ょ粍浠朵负uni-app鐨刬mage缁勪欢鐨勫姞寮虹増锛屽湪缁ф壙浜嗗師鏈夊姛鑳藉锛岃繕鏀寔娣″叆鍔ㄧ敾銆佸姞杞戒腑銆佸姞杞藉け璐ユ彁绀恒�佸渾瑙掑�煎拰褰㈢姸绛夈�� + * @tutorial https://uviewui.com/components/image.html + * @property {String} src 鍥剧墖鍦板潃 + * @property {String} mode 瑁佸壀妯″紡锛岃瀹樼綉璇存槑 锛堥粯璁� 'aspectFill' 锛� + * @property {String | Number} width 瀹藉害锛屽崟浣嶄换鎰忥紝濡傛灉涓烘暟鍊硷紝鍒欎负px鍗曚綅 锛堥粯璁� '300' 锛� + * @property {String | Number} height 楂樺害锛屽崟浣嶄换鎰忥紝濡傛灉涓烘暟鍊硷紝鍒欎负px鍗曚綅 锛堥粯璁� '225' 锛� + * @property {String} shape 鍥剧墖褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 锛堥粯璁� 'square' 锛� + * @property {String | Number} radius 鍦嗚鍊硷紝鍗曚綅浠绘剰锛屽鏋滀负鏁板�硷紝鍒欎负px鍗曚綅 锛堥粯璁� 0 锛� + * @property {Boolean} lazyLoad 鏄惁鎳掑姞杞斤紝浠呭井淇″皬绋嬪簭銆丄pp銆佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭鏈夋晥 锛堥粯璁� true 锛� + * @property {Boolean} showMenuByLongpress 鏄惁寮�鍚暱鎸夊浘鐗囨樉绀鸿瘑鍒皬绋嬪簭鐮佽彍鍗曪紝浠呭井淇″皬绋嬪簭鏈夋晥 锛堥粯璁� true 锛� + * @property {String} loadingIcon 鍔犺浇涓殑鍥炬爣锛屾垨鑰呭皬鍥剧墖 锛堥粯璁� 'photo' 锛� + * @property {String} errorIcon 鍔犺浇澶辫触鐨勫浘鏍囷紝鎴栬�呭皬鍥剧墖 锛堥粯璁� 'error-circle' 锛� + * @property {Boolean} showLoading 鏄惁鏄剧ず鍔犺浇涓殑鍥炬爣鎴栬�呰嚜瀹氫箟鐨剆lot 锛堥粯璁� true 锛� + * @property {Boolean} showError 鏄惁鏄剧ず鍔犺浇閿欒鐨勫浘鏍囨垨鑰呰嚜瀹氫箟鐨剆lot 锛堥粯璁� true 锛� + * @property {Boolean} fade 鏄惁闇�瑕佹贰鍏ユ晥鏋� 锛堥粯璁� true 锛� + * @property {Boolean} webp 鍙敮鎸佺綉缁滆祫婧愶紝鍙寰俊灏忕▼搴忔湁鏁� 锛堥粯璁� false 锛� + * @property {String | Number} duration 鎼厤fade鍙傛暟鐨勮繃娓℃椂闂达紝鍗曚綅ms 锛堥粯璁� 500 锛� + * @property {String} bgColor 鑳屾櫙棰滆壊锛岀敤浜庢繁鑹查〉闈㈠姞杞藉浘鐗囨椂锛屼负浜嗗拰鑳屾櫙鑹茶瀺鍚� (榛樿 '#f3f4f6' ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @event {Function} click 鐐瑰嚮鍥剧墖鏃惰Е鍙� + * @event {Function} error 鍥剧墖鍔犺浇澶辫触鏃惰Е鍙� + * @event {Function} load 鍥剧墖鍔犺浇鎴愬姛鏃惰Е鍙� + * @example <u-image width="100%" height="300px" :src="src"></u-image> + */ + export default { + name: 'u-image', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 鍥剧墖鏄惁鍔犺浇閿欒锛屽鏋滄槸锛屽垯鏄剧ず閿欒鍗犱綅鍥� + isError: false, + // 鍒濆鍖栫粍浠舵椂锛岄粯璁や负鍔犺浇涓姸鎬� + loading: true, + // 涓嶉�忔槑搴︼紝涓轰簡瀹炵幇娣″叆娣″嚭鐨勬晥鏋� + opacity: 1, + // 杩囨浮鏃堕棿锛屽洜涓簆rops鐨勫�兼棤娉曚慨鏀癸紝鏁呴渶瑕佷竴涓腑闂村�� + durationTime: this.duration, + // 鍥剧墖鍔犺浇瀹屾垚鏃讹紝鍘绘帀鑳屾櫙棰滆壊锛屽洜涓哄鏋滄槸png鍥剧墖锛屽氨浼氭樉绀虹伆鑹茬殑鑳屾櫙 + backgroundStyle: {}, + // 鐢ㄤ簬fade妯″紡鐨勬帶鍒剁粍浠舵樉绀轰笌鍚� + show: false + }; + }, + watch: { + src: { + immediate: true, + handler(n) { + if (!n) { + // 濡傛灉浼犲叆null鎴栬��''锛屾垨鑰協alse锛屾垨鑰卽ndefined锛屾爣璁颁负閿欒鐘舵�� + this.isError = true + + } else { + this.isError = false; + this.loading = true; + } + } + } + }, + computed: { + wrapStyle() { + let style = {}; + // 閫氳繃璋冪敤addUnit()鏂规硶锛屽鏋滄湁鍗曚綅锛屽鐧惧垎姣旓紝px鍗曚綅绛夛紝鐩存帴杩斿洖锛屽鏋滄槸绾补鐨勬暟鍊硷紝鍒欏姞涓妑px鍗曚綅 + style.width = this.$u.addUnit(this.width); + style.height = this.$u.addUnit(this.height); + // 濡傛灉鏄樉绀哄渾褰紝璁剧疆涓�涓緢澶氱殑鍗婂緞鍊煎嵆鍙� + style.borderRadius = this.shape == 'circle' ? '10000px' : uni.$u.addUnit(this.radius) + // 濡傛灉璁剧疆鍦嗚锛屽繀椤昏鏈塰idden锛屽惁鍒欏彲鑳藉渾瑙掓棤鏁� + style.overflow = this.borderRadius > 0 ? 'hidden' : 'visible' + // if (this.fade) { + // style.opacity = this.opacity + // // nvue涓嬶紝杩欏嚑涓睘鎬у繀椤昏鍒嗗紑鍐� + // style.transitionDuration = `${this.durationTime}ms` + // style.transitionTimingFunction = 'ease-in-out' + // style.transitionProperty = 'opacity' + // } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)); + + } + }, + mounted() { + this.show = true + }, + methods: { + // 鐐瑰嚮鍥剧墖 + onClick() { + this.$emit('click') + }, + // 鍥剧墖鍔犺浇澶辫触 + onErrorHandler(err) { + this.loading = false + this.isError = true + this.$emit('error', err) + }, + // 鍥剧墖鍔犺浇瀹屾垚锛屾爣璁發oading缁撴潫 + onLoadHandler(event) { + this.loading = false + this.isError = false + this.$emit('load', event) + this.removeBgColor() + // 濡傛灉涓嶉渶瑕佸姩鐢绘晥鏋滐紝灏变笉鎵ц涓嬫柟浠g爜锛屽悓鏃剁Щ闄ゅ姞杞芥椂鐨勮儗鏅鑹� + // 鍚﹀垯鏃犻渶fade鏁堟灉鏃讹紝png鍥剧墖渚濈劧鑳界湅鍒颁笅鏂圭殑鑳屾櫙鑹� + // if (!this.fade) return this.removeBgColor(); + // // 鍘熸潵opacity涓�1(涓嶉�忔槑锛屾槸涓轰簡鏄剧ず鍗犱綅鍥�)锛屾敼鎴�0(閫忔槑锛屾剰鍛崇潃璇ュ厓绱犳樉绀虹殑鏄儗鏅鑹诧紝榛樿鐨勭伆鑹�)锛屽啀鏀规垚1锛屾槸涓轰簡鑾峰緱杩囨浮鏁堟灉 + // this.opacity = 0; + // // 杩欓噷璁剧疆涓�0锛屾槸涓轰簡鍥剧墖灞曠ず鍒拌儗鏅叏閫忔槑杩欎釜杩囩▼鏃堕棿涓�0锛屽欢鏃朵箣鍚庡欢鏃朵箣鍚庨噸鏂拌缃负duration锛屾槸涓轰簡鑾峰緱鑳屾櫙閫忔槑(鐏拌壊) + // // 鍒板浘鐗囧睍绀虹殑杩囩▼涓殑娣″叆鏁堟灉 + // this.durationTime = 0; + // // 寤舵椂50ms锛屽惁鍒欏湪娴忚鍣℉5锛岃繃娓℃晥鏋滄棤鏁� + // setTimeout(() => { + // this.durationTime = this.duration; + // this.opacity = 1; + // setTimeout(() => { + // this.removeBgColor(); + // }, this.durationTime); + // }, 50); + }, + // 绉婚櫎鍥剧墖鐨勮儗鏅壊 + removeBgColor() { + // 娣″叆鍔ㄧ敾杩囨浮瀹屾垚鍚庯紝灏嗚儗鏅缃负閫忔槑鑹诧紝鍚﹀垯png鍥剧墖浼氱湅鍒扮伆鑹茬殑鑳屾櫙 + this.backgroundStyle = { + backgroundColor: 'transparent' + }; + } + } + }; +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; + + $u-image-error-top:0px !default; + $u-image-error-left:0px !default; + $u-image-error-width:100% !default; + $u-image-error-hight:100% !default; + $u-image-error-background-color:$u-bg-color !default; + $u-image-error-color:$u-tips-color !default; + $u-image-error-font-size: 46rpx !default; + + .u-image { + position: relative; + transition: opacity 0.5s ease-in-out; + + &__image { + width: 100%; + height: 100%; + } + + &__loading, + &__error { + position: absolute; + top: $u-image-error-top; + left: $u-image-error-left; + width: $u-image-error-width; + height: $u-image-error-hight; + @include flex; + align-items: center; + justify-content: center; + background-color: $u-image-error-background-color; + color: $u-image-error-color; + font-size: $u-image-error-font-size; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/props.js new file mode 100644 index 0000000..6d8b59a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/props.js @@ -0,0 +1,29 @@ +export default { + props: { + // 鍒楄〃閿氱偣鏂囨湰鍐呭 + text: { + type: [String, Number], + default: uni.$u.props.indexAnchor.text + }, + // 鍒楄〃閿氱偣鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.indexAnchor.color + }, + // 鍒楄〃閿氱偣鏂囧瓧澶у皬锛屽崟浣嶉粯璁x + size: { + type: [String, Number], + default: uni.$u.props.indexAnchor.size + }, + // 鍒楄〃閿氱偣鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.indexAnchor.bgColor + }, + // 鍒楄〃閿氱偣楂樺害锛屽崟浣嶉粯璁x + height: { + type: [String, Number], + default: uni.$u.props.indexAnchor.height + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/u-index-anchor.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/u-index-anchor.vue new file mode 100644 index 0000000..b95ddef --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-anchor/u-index-anchor.vue @@ -0,0 +1,91 @@ +<template> + <!-- #ifdef APP-NVUE --> + <header> + <!-- #endif --> + <view + class="u-index-anchor u-border-bottom" + :ref="`u-index-anchor-${text}`" + :style="{ + height: $u.addUnit(height), + backgroundColor: bgColor + }" + > + <text + class="u-index-anchor__text" + :style="{ + fontSize: $u.addUnit(size), + color: color + }" + >{{ text }}</text> + </view> + <!-- #ifdef APP-NVUE --> + </header> + <!-- #endif --> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * IndexAnchor 鍒楄〃閿氱偣 + * @description + * @tutorial https://uviewui.com/components/indexList.html + * @property {String | Number} text 鍒楄〃閿氱偣鏂囨湰鍐呭 + * @property {String} color 鍒楄〃閿氱偣鏂囧瓧棰滆壊 ( 榛樿 '#606266' ) + * @property {String | Number} size 鍒楄〃閿氱偣鏂囧瓧澶у皬锛屽崟浣嶉粯璁x ( 榛樿 14 ) + * @property {String} bgColor 鍒楄〃閿氱偣鑳屾櫙棰滆壊 ( 榛樿 '#dedede' ) + * @property {String | Number} height 鍒楄〃閿氱偣楂樺害锛屽崟浣嶉粯璁x ( 榛樿 32 ) + * @example <u-index-anchor :text="indexList[index]"></u-index-anchor> + */ + export default { + name: 'u-index-anchor', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 姝ゅ浼氭椿鍔ㄧ埗缁勪欢瀹炰緥锛屽苟璧嬪�肩粰瀹炰緥鐨刾arent灞炴�� + const indexList = uni.$u.$parent.call(this, 'u-index-list') + if (!indexList) { + return uni.$u.error('u-index-anchor蹇呴』瑕佹惌閰島-index-list缁勪欢浣跨敤') + } + // 灏嗗綋鍓嶅疄渚嬫斁鍏ュ埌u-index-list涓� + indexList.anchors.push(this) + const indexListItem = uni.$u.$parent.call(this, 'u-index-item') + // #ifndef APP-NVUE + // 鍙湁鍦ㄩ潪nvue涓嬶紝u-index-anchor鎵嶆槸宓屽鍦╱-index-item涓殑 + if (!indexListItem) { + return uni.$u.error('u-index-anchor蹇呴』瑕佹惌閰島-index-item缁勪欢浣跨敤') + } + // 璁剧疆u-index-item鐨刬d涓篴nchor鐨則ext鏍囪瘑绗︼紝鍥犱负闈瀗vue涓嬫粴鍔ㄥ垪琛ㄩ渶瑕佷緷璧杝croll-view婊氬姩鍒板厓绱犵殑鐗规�� + indexListItem.id = this.text.charCodeAt(0) + // #endif + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-index-anchor { + position: sticky; + top: 0; + @include flex; + align-items: center; + padding-left: 15px; + z-index: 1; + + &__text { + @include flex; + align-items: center; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/u-index-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/u-index-item.vue new file mode 100644 index 0000000..0bc7fb3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-item/u-index-item.vue @@ -0,0 +1,87 @@ +<template> + <!-- #ifdef APP-NVUE --> + <cell ref="u-index-item"> + <!-- #endif --> + <view + class="u-index-item" + :id="`u-index-item-${id}`" + :class="[`u-index-item-${id}`]" + > + <slot /> + </view> + <!-- #ifdef APP-NVUE --> + </cell> + <!-- #endif --> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + // 鐢变簬weex涓洪樋閲岀殑KPI涓氱哗鑰冩牳鐨勪骇鐗╋紝鎵�浠ヤ笉鏀寔鐧惧垎姣斿崟浣嶏紝杩欓噷闇�瑕侀�氳繃dom鏌ヨ缁勪欢鐨勫搴� + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * IndexItem + * @description + * @tutorial https://uviewui.com/components/indexList.html + * @property {String} + * @event {Function} + * @example + */ + export default { + name: 'u-index-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + // 鏈粍浠跺埌婊氬姩鏉¢《閮ㄧ殑璺濈 + top: 0, + height: 0, + id: '' + } + }, + created() { + // 瀛愮粍浠秛-index-anchor鐨勫疄渚� + this.anchor = {} + }, + mounted() { + this.init() + }, + methods: { + init() { + // 姝ゅ浼氭椿鍔ㄧ埗缁勪欢瀹炰緥锛屽苟璧嬪�肩粰瀹炰緥鐨刾arent灞炴�� + this.getParentData('u-index-list') + if (!this.parent) { + return uni.$u.error('u-index-item蹇呴』瑕佹惌閰島-index-list缁勪欢浣跨敤') + } + uni.$u.sleep().then(() =>{ + this.getIndexItemRect().then(size => { + // 鐢变簬瀵硅薄鐨勫紩鐢ㄧ壒鎬э紝姝ゅ浼氬悓鏃剁敓鏁堝埌鐖剁粍浠剁殑children鏁扮粍鐨勬湰瀹炰緥鐨則op灞炴�т腑锛屼緵鐖剁粍浠跺垽鏂鍙� + this.top = Math.ceil(size.top) + this.height = Math.ceil(size.height) + }) + }) + }, + getIndexItemRect() { + return new Promise(resolve => { + // #ifndef APP-NVUE + this.$uGetRect('.u-index-item').then(size => { + resolve(size) + }) + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs['u-index-item'] + dom.getComponentRect(ref, res => { + resolve(res.size) + }) + // #endif + }) + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/props.js new file mode 100644 index 0000000..354d459 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/props.js @@ -0,0 +1,29 @@ +export default { + props: { + // 鍙宠竟閿氱偣闈炴縺娲荤殑棰滆壊 + inactiveColor: { + type: String, + default: uni.$u.props.indexList.inactiveColor + }, + // 鍙宠竟閿氱偣婵�娲荤殑棰滆壊 + activeColor: { + type: String, + default: uni.$u.props.indexList.activeColor + }, + // 绱㈠紩瀛楃鍒楄〃锛屾暟缁勫舰寮� + indexList: { + type: Array, + default: uni.$u.props.indexList.indexList + }, + // 鏄惁寮�鍚敋鐐硅嚜鍔ㄥ惛椤� + sticky: { + type: Boolean, + default: uni.$u.props.indexList.sticky + }, + // 鑷畾涔夊鑸爮鐨勯珮搴� + customNavHeight: { + type: [String, Number], + default: uni.$u.props.indexList.customNavHeight + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/u-index-list.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/u-index-list.vue new file mode 100644 index 0000000..d712618 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-index-list/u-index-list.vue @@ -0,0 +1,440 @@ +<template> + <view class="u-index-list"> + <!-- #ifdef APP-NVUE --> + <list + :scrollTop="scrollTop" + enable-back-to-top + :offset-accuracy="1" + :style="{ + maxHeight: $u.addUnit(scrollViewHeight) + }" + @scroll="scrollHandler" + ref="uList" + > + <cell + v-if="$slots.header" + ref="header" + > + <slot name="header" /> + </cell> + <slot /> + <cell v-if="$slots.footer"> + <slot name="footer" /> + </cell> + </list> + <!-- #endif --> + <!-- #ifndef APP-NVUE --> + <scroll-view + :scrollTop="scrollTop" + :scrollIntoView="scrollIntoView" + :offset-accuracy="1" + :style="{ + maxHeight: $u.addUnit(scrollViewHeight) + }" + scroll-y + @scroll="scrollHandler" + ref="uList" + > + <view v-if="$slots.header"> + <slot name="header" /> + </view> + <slot /> + <view v-if="$slots.footer"> + <slot name="footer" /> + </view> + </scroll-view> + <!-- #endif --> + <view + class="u-index-list__letter" + ref="u-index-list__letter" + :style="{ top: $u.addUnit(letterInfo.top || 100) }" + @touchstart="touchStart" + @touchmove.stop.prevent="touchMove" + @touchend.stop.prevent="touchEnd" + @touchcancel.stop.prevent="touchEnd" + > + <view + class="u-index-list__letter__item" + v-for="(item, index) in uIndexList" + :key="index" + :style="{ + backgroundColor: activeIndex === index ? activeColor : 'transparent' + }" + > + <text + class="u-index-list__letter__item__index" + :style="{color: activeIndex === index ? '#fff' : inactiveColor}" + >{{ item }}</text> + </view> + </view> + <u-transition + mode="fade" + :show="touching" + :customStyle="{ + position: 'fixed', + right: '50px', + top: $u.addUnit(indicatorTop), + zIndex: 2 + }" + > + <view + class="u-index-list__indicator" + :class="['u-index-list__indicator--show']" + :style="{ + height: $u.addUnit(indicatorHeight), + width: $u.addUnit(indicatorHeight) + }" + > + <text class="u-index-list__indicator__text">{{ uIndexList[activeIndex] }}</text> + </view> + </u-transition> + </view> +</template> + +<script> + const indexList = () => { + const indexList = []; + const charCodeOfA = 'A'.charCodeAt(0); + for (let i = 0; i < 26; i++) { + indexList.push(String.fromCharCode(charCodeOfA + i)); + } + return indexList; + } + import props from './props.js'; + // #ifdef APP-NVUE + // 鐢变簬weex涓洪樋閲岀殑KPI涓氱哗鑰冩牳鐨勪骇鐗╋紝鎵�浠ヤ笉鏀寔鐧惧垎姣斿崟浣嶏紝杩欓噷闇�瑕侀�氳繃dom鏌ヨ缁勪欢鐨勫搴� + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * IndexList 绱㈠紩鍒楄〃 + * @description 閫氳繃鎶樺彔闈㈡澘鏀剁撼鍐呭鍖哄煙 + * @tutorial https://uviewui.com/components/indexList.html + * @property {String} inactiveColor 鍙宠竟閿氱偣闈炴縺娲荤殑棰滆壊 ( 榛樿 '#606266' ) + * @property {String} activeColor 鍙宠竟閿氱偣婵�娲荤殑棰滆壊 ( 榛樿 '#5677fc' ) + * @property {Array} indexList 绱㈠紩瀛楃鍒楄〃锛屾暟缁勫舰寮� + * @property {Boolean} sticky 鏄惁寮�鍚敋鐐硅嚜鍔ㄥ惛椤� ( 榛樿 true ) + * @property {String | Number} customNavHeight 鑷畾涔夊鑸爮鐨勯珮搴� ( 榛樿 0 ) + * */ + export default { + name: 'u-index-list', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + // #ifdef MP-WEIXIN + // 灏嗚嚜瀹氫箟鑺傜偣璁剧疆鎴愯櫄鎷熺殑锛屾洿鍔犳帴杩慥ue缁勪欢鐨勮〃鐜帮紝鑳芥洿濂界殑浣跨敤flex灞炴�� + options: { + virtualHost: true + }, + // #endif + data() { + return { + // 褰撳墠姝e湪琚�変腑鐨勫瓧姣嶇储寮� + activeIndex: -1, + touchmoveIndex: 1, + // 绱㈠紩瀛楁瘝鐨勪俊鎭� + letterInfo: { + height: 0, + itemHeight: 0, + top: 0 + }, + // 璁剧疆瀛楁瘝鎸囩ず鍣ㄧ殑楂樺害锛屽悗闈负浜嗚鎸囩ず鍣ㄨ窡闅忓瓧姣嶏紝骞跺皢灏栬閮ㄥ垎鎸囧悜瀛楁瘝鐨勪腑閮紝闇�瑕佷緷璧栨鍊� + indicatorHeight: 50, + // 瀛楁瘝鏀惧ぇ鎸囩ず鍣ㄧ殑top鍊硷紝涓轰簡璁╁叾鎸囧悜褰撳墠婵�娲荤殑瀛楁瘝 + // indicatorTop: 0 + // 褰撳墠鏄惁姝e湪琚Е鎽哥姸鎬� + touching: false, + // 婊氬姩鏉¢《閮╰op鍊� + scrollTop: 0, + // scroll-view鐨勯珮搴� + scrollViewHeight: 0, + // 绯荤粺淇℃伅 + sys: uni.$u.sys(), + scrolling: false, + scrollIntoView: '', + } + }, + computed: { + // 濡傛灉鏈変紶鍏ュ閮ㄧ殑indexList閿氱偣鏁扮粍鍒欎娇鐢紝鍚﹀垯浣跨敤鍐呴儴鐢熸垚A-Z瀛楁瘝 + uIndexList() { + return this.indexList.length ? this.indexList : indexList() + }, + // 瀛楁瘝鏀惧ぇ鎸囩ず鍣ㄧ殑top鍊硷紝涓轰簡璁╁叾鎸囧悜褰撳墠婵�娲荤殑瀛楁瘝 + indicatorTop() { + const { + top, + itemHeight + } = this.letterInfo + return Math.floor(top + itemHeight * this.activeIndex + itemHeight / 2 - this.indicatorHeight / 2) + } + }, + watch: { + // 鐩戝惉瀛楁瘝绱㈠紩鐨勫彉鍖栵紝閲嶆柊璁剧疆灏哄 + uIndexList: { + immediate: true, + handler() { + uni.$u.sleep().then(() => { + this.setIndexListLetterInfo() + }) + } + } + }, + created() { + this.children = [] + this.anchors = [] + this.init() + }, + mounted() { + this.setIndexListLetterInfo() + }, + methods: { + init() { + // 璁剧疆鍒楄〃鐨勯珮搴︿负鏁翠釜灞忓箷鐨勯珮搴� + //鍑忓幓this.customNavHeight锛屽苟灏唗his.scrollViewHeight璁剧疆涓簃axHeight + //瑙e喅褰搖-index-list缁勪欢鏀惧湪tabbar椤甸潰鏃�,scroll-view鍐呭杈冨皯鏃讹紝杩樿兘婊氬姩 + this.scrollViewHeight = this.sys.windowHeight - this.customNavHeight + }, + // 绱㈠紩鍒楄〃琚Е鎽� + touchStart(e) { + // 鑾峰彇瑙︽懜鐐逛俊鎭� + const touchStart = e.changedTouches[0] + if (!touchStart) return + this.touching = true + const { + pageY + } = touchStart + // 鏍规嵁褰撳墠瑙︽懜鐐圭殑鍧愭爣锛岃幏鍙栧綋鍓嶈Е鎽哥殑涓虹鍑犱釜瀛楁瘝 + const currentIndex = this.getIndexListLetter(pageY) + this.setValueForTouch(currentIndex) + }, + // 绱㈠紩瀛楁瘝鍒楄〃琚Е鎽告粦鍔ㄤ腑 + touchMove(e) { + // 鑾峰彇瑙︽懜鐐逛俊鎭� + let touchMove = e.changedTouches[0] + if (!touchMove) return; + + // 婊戝姩缁撴潫鍚庤繀閫熷紑濮嬬浜屾婊戝姩鏃跺�� touching 涓� false 閫犳垚涓嶆樉绀� indicator 闂 + if (!this.touching) { + this.touching = true + } + const { + pageY + } = touchMove + const currentIndex = this.getIndexListLetter(pageY) + this.setValueForTouch(currentIndex) + }, + // 瑙︽懜缁撴潫 + touchEnd(e) { + // 寤舵椂涓�瀹氭椂闂村悗鍐嶉殣钘忔寚绀哄櫒锛屼负浜嗚鐢ㄦ埛鐪嬬殑鏇寸洿瑙傦紝鍚屾椂涔熸槸涓轰簡娑堥櫎蹇�熷垏鎹-transition鐨剆how甯︽潵鐨勫奖鍝� + uni.$u.sleep(300).then(() => { + this.touching = false + }) + }, + // 鑾峰彇绱㈠紩鍒楄〃鐨勫昂瀵镐互鍙婂崟涓瓧绗︾殑灏哄淇℃伅 + getIndexListLetterRect() { + return new Promise(resolve => { + // 寤舵椂涓�瀹氭椂闂达紝浠ヨ幏鍙杁om灏哄 + // #ifndef APP-NVUE + this.$uGetRect('.u-index-list__letter').then(size => { + resolve(size) + }) + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs['u-index-list__letter'] + dom.getComponentRect(ref, res => { + resolve(res.size) + }) + // #endif + }) + }, + // 璁剧疆indexList绱㈠紩鐨勫昂瀵镐俊鎭� + setIndexListLetterInfo() { + this.getIndexListLetterRect().then(size => { + const { + height + } = size + const sys = uni.$u.sys() + const windowHeight = sys.windowHeight + let customNavHeight = 0 + // 娑堥櫎鍚勭瀵艰埅鏍忛潪鍘熺敓鍜屽師鐢熷鑷寸殑宸紓锛岃绱㈠紩鍒楄〃瀛楁瘝瀵瑰睆骞曞瀭鐩村眳涓� + if (this.customNavHeight == 0) { + // #ifdef H5 + customNavHeight = sys.windowTop + // #endif + // #ifndef H5 + // 鍦ㄩ潪H5涓紝涓哄師鐢熷鑸爮锛屽叾楂樺害涓嶇畻鍦╳indowHeight鍐咃紝杩欓噷璁剧疆涓鸿礋鍊硷紝鍚庨潰鐩稿姞鏃跺彉鎴愬噺鍘诲叾楂樺害鐨勪竴鍗� + customNavHeight = -(sys.statusBarHeight + 44) + // #endif + } else { + customNavHeight = uni.$u.getPx(this.customNavHeight) + } + this.letterInfo = { + height, + // 涓轰簡璁╁瓧姣嶅垪琛ㄥ灞忓箷缁濆灞呬腑锛岃鍏跺瀵艰埅鏍忚繘琛屼慨姝o紝涔熷嵆寰�涓婂亸绉诲鑸爮鐨勪竴鍗婇珮搴� + top: (windowHeight - height) / 2 + customNavHeight / 2, + itemHeight: Math.floor(height / this.uIndexList.length) + } + }) + }, + // 鑾峰彇褰撳墠琚Е鎽哥殑绱㈠紩瀛楁瘝 + getIndexListLetter(pageY) { + const { + top, + height, + itemHeight + } = this.letterInfo + // 瀵笻5鐨刾ageY杩涜淇锛岃繖鏄敱浜巙ni-app鑷綔澶氭儏鍦℉5涓皢瑙︽懜鐐圭殑鍧愭爣璺烪5鐨勫鑸爮缁撳悎瀵艰嚧鐨勯棶棰� + // #ifdef H5 + pageY += uni.$u.sys().windowTop + // #endif + // 瀵圭涓�鍜屾渶鍚庝竴涓瓧姣嶅仛杈圭晫澶勭悊锛屽洜涓虹敤鎴峰彲鑳藉湪瀛楁瘝鍒楄〃涓婅Е鎽稿埌涓ょ鐨勫敖澶村悗渚濈劧缁х画婊戝姩 + if (pageY < top) { + return 0 + } else if (pageY >= top + height) { + // 濡傛灉瓒呭嚭浜嗭紝鍙栨渶鍚庝竴涓瓧姣� + return this.uIndexList.length - 1 + } else { + // 灏嗚Е鎽哥偣鐨刌杞村亸绉诲�硷紝鍑忓幓绱㈠紩瀛楁瘝鐨則op鍊硷紝闄や互姣忎釜瀛楁瘝鐨勯珮搴︼紝鍗冲彲寰楀埌褰撳墠瑙︽懜鐐硅惤鍦ㄥ摢涓瓧姣嶄笂 + return Math.floor((pageY - top) / itemHeight); + } + }, + // 璁剧疆鍚勯」鐢辫Е鎽歌�屽鑷村彉鍖栫殑鍊� + setValueForTouch(currentIndex) { + // 濡傛灉鍋忕Щ閲忓お灏忥紝鍓嶅悗寰楀嚭鐨勪細鏄悓涓�涓储寮曞瓧姣嶏紝涓轰簡闃叉姈锛岃繘琛岃繑鍥� + if (currentIndex === this.activeIndex) return + this.activeIndex = currentIndex + // #ifndef APP-NVUE || MP-WEIXIN + // 鍦ㄩ潪nvue涓紝鐢变簬anchor鍜宨tem閮藉湪u-index-item涓紝鎵�浠ラ渶瑕佸index-item杩涜鍋忕Щ + this.scrollIntoView = `u-index-item-${this.uIndexList[currentIndex].charCodeAt(0)}` + // #endif + // #ifdef MP-WEIXIN + // 寰俊灏忕▼搴忎笅锛宻croll-view鐨剆croll-into-view灞炴�ф棤娉曞slot涓殑鍐呭鐨刬d鐢熸晥锛屽彧鑳介�氳繃璁剧疆scrollTop鐨勫舰寮忓幓绉诲姩婊氬姩鏉� + this.scrollTop = this.children[currentIndex].top + // #endif + // #ifdef APP-NVUE + // 鍦╪vue涓紝鐢变簬cell鍜宧eader涓哄悓绾у厓绱狅紝鎵�浠ュ疄闄呮槸闇�瑕佸header(anchor)杩涜鍋忕Щ + const anchor = `u-index-anchor-${this.uIndexList[currentIndex]}` + dom.scrollToElement(this.anchors[currentIndex].$refs[anchor], { + offset: 0, + animated: false + }) + // #endif + }, + getHeaderRect() { + // 鑾峰彇header slot鐨勯珮搴︼紝鍥犱负list缁勪欢涓幏鍙栧厓绱犵殑灏哄鏄病鏈塼op鍊肩殑 + return new Promise(resolve => { + dom.getComponentRect(this.$refs.header, res => { + resolve(res.size) + }) + }) + }, + // scroll-view鐨勬粴鍔ㄤ簨浠� + async scrollHandler(e) { + if (this.touching || this.scrolling) return + // 姣忚繃涓�瀹氭椂闂村彇鏍蜂竴娆★紝鍑忓皯璧勬簮鎹熻�椾互鍙婂彲鑳藉甫鏉ョ殑鍗¢】 + this.scrolling = true + uni.$u.sleep(10).then(() => { + this.scrolling = false + }) + let scrollTop = 0 + const len = this.children.length + let children = this.children + const anchors = this.anchors + // #ifdef APP-NVUE + // nvue涓嬭幏鍙栫殑婊氬姩鏉″亸绉讳负璐熸暟锛岄渶瑕佽浆涓烘鏁� + scrollTop = Math.abs(e.contentOffset.y) + // 鑾峰彇header slot鐨勫昂瀵镐俊鎭� + const header = await this.getHeaderRect() + // item鐨則op鍊硷紝鍦╪vue涓嬶紝妯℃嫙鍑虹殑anchor鐨則op锛岀被浼奸潪nvue涓嬬殑index-item鐨則op + let top = header.height + // 鐢变簬list缁勪欢鏃犳硶鑾峰彇cell鐨則op鍊硷紝杩欓噷閫氳繃header slot鍜屽悇涓猧tem涔嬮棿鐨刪eight锛屾ā鎷熷嚭绫讳技闈瀗vue涓嬬殑浣嶇疆淇℃伅 + children = this.children.map((item, index) => { + const child = { + height: item.height, + top + } + // 杩涜绱姞锛岀粰涓嬩竴涓猧tem鎻愪緵璁$畻渚濇嵁 + top += item.height + anchors[index].height + return child + }) + // #endif + // #ifndef APP-NVUE + // 闈瀗vue閫氳繃detail鑾峰彇婊氬姩鏉′綅绉� + scrollTop = e.detail.scrollTop + // #endif + for (let i = 0; i < len; i++) { + const item = children[i], + nextItem = children[i + 1] + // 濡傛灉婊氬姩鏉¢珮搴﹀皬浜庣涓�涓猧tem鐨則op鍊硷紝姝ゆ椂鏃犻渶璁剧疆浠绘剰瀛楁瘝涓洪珮浜� + if (scrollTop <= children[0].top || scrollTop >= children[len - 1].top + children[len - + 1].height) { + this.activeIndex = -1 + break + } else if (!nextItem) { + // 褰撲笉瀛樺湪涓嬩竴涓猧tem鏃讹紝鎰忓懗鐫�鍘嗛亶鍒颁簡鏈�鍚庝竴涓� + this.activeIndex = len - 1 + break + } else if (scrollTop > item.top && scrollTop < nextItem.top) { + this.activeIndex = i + break + } + } + }, + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-index-list { + + &__letter { + position: fixed; + right: 0; + text-align: center; + z-index: 3; + padding: 0 6px; + + &__item { + width: 16px; + height: 16px; + border-radius: 100px; + margin: 1px 0; + @include flex; + align-items: center; + justify-content: center; + + &--active { + background-color: $u-primary; + } + + &__index { + font-size: 12px; + text-align: center; + line-height: 12px; + } + } + } + + &__indicator { + width: 50px; + height: 50px; + border-radius: 100px 100px 0 100px; + text-align: center; + color: #ffffff; + background-color: #c9c9c9; + transform: rotate(-45deg); + @include flex; + justify-content: center; + align-items: center; + + &__text { + font-size: 28px; + line-height: 28px; + font-weight: bold; + color: #fff; + transform: rotate(45deg); + text-align: center; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/props.js new file mode 100644 index 0000000..2c50870 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/props.js @@ -0,0 +1,187 @@ +export default { + props: { + // 杈撳叆鐨勫�� + value: { + type: [String, Number], + default: uni.$u.props.input.value + }, + // 杈撳叆妗嗙被鍨� + // number-鏁板瓧杈撳叆閿洏锛宎pp-vue涓嬪彲浠ヨ緭鍏ユ诞鐐规暟锛宎pp-nvue鍜屽皬绋嬪簭骞冲彴涓嬪彧鑳借緭鍏ユ暣鏁� + // idcard-韬唤璇佽緭鍏ラ敭鐩橈紝寰俊銆佹敮浠樺疂銆佺櫨搴︺�丵Q灏忕▼搴� + // digit-甯﹀皬鏁扮偣鐨勬暟瀛楅敭鐩橈紝App鐨刵vue椤甸潰銆佸井淇°�佹敮浠樺疂銆佺櫨搴︺�佸ご鏉°�丵Q灏忕▼搴� + // text-鏂囨湰杈撳叆閿洏 + type: { + type: String, + default: uni.$u.props.input.type + }, + // 濡傛灉 textarea 鏄湪涓�涓� position:fixed 鐨勫尯鍩燂紝闇�瑕佹樉绀烘寚瀹氬睘鎬� fixed 涓� true锛� + // 鍏煎鎬э細寰俊灏忕▼搴忋�佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭銆丵Q灏忕▼搴� + fixed: { + type: Boolean, + default: uni.$u.props.input.fixed + }, + // 鏄惁绂佺敤杈撳叆妗� + disabled: { + type: Boolean, + default: uni.$u.props.input.disabled + }, + // 绂佺敤鐘舵�佹椂鐨勮儗鏅壊 + disabledColor: { + type: String, + default: uni.$u.props.input.disabledColor + }, + // 鏄惁鏄剧ず娓呴櫎鎺т欢 + clearable: { + type: Boolean, + default: uni.$u.props.input.clearable + }, + // 鏄惁瀵嗙爜绫诲瀷 + password: { + type: Boolean, + default: uni.$u.props.input.password + }, + // 鏈�澶ц緭鍏ラ暱搴︼紝璁剧疆涓� -1 鐨勬椂鍊欎笉闄愬埗鏈�澶ч暱搴� + maxlength: { + type: [String, Number], + default: uni.$u.props.input.maxlength + }, + // 杈撳叆妗嗕负绌烘椂鐨勫崰浣嶇 + placeholder: { + type: String, + default: uni.$u.props.input.placeholder + }, + // 鎸囧畾placeholder鐨勬牱寮忕被锛屾敞鎰忛〉闈㈡垨缁勪欢鐨剆tyle涓啓浜唖coped鏃讹紝闇�瑕佸湪绫诲悕鍓嶅啓/deep/ + placeholderClass: { + type: String, + default: uni.$u.props.input.placeholderClass + }, + // 鎸囧畾placeholder鐨勬牱寮� + placeholderStyle: { + type: [String, Object], + default: uni.$u.props.input.placeholderStyle + }, + // 鏄惁鏄剧ず杈撳叆瀛楁暟缁熻锛屽彧鍦� type ="text"鎴杢ype ="textarea"鏃舵湁鏁� + showWordLimit: { + type: Boolean, + default: uni.$u.props.input.showWordLimit + }, + // 璁剧疆鍙充笅瑙掓寜閽殑鏂囧瓧锛屾湁鏁堝�硷細send|search|next|go|done锛屽吋瀹规�ц瑙乽ni-app鏂囨。 + // https://uniapp.dcloud.io/component/input + // https://uniapp.dcloud.io/component/textarea + confirmType: { + type: String, + default: uni.$u.props.input.confirmType + }, + // 鐐瑰嚮閿洏鍙充笅瑙掓寜閽椂鏄惁淇濇寔閿洏涓嶆敹璧凤紝H5鏃犳晥 + confirmHold: { + type: Boolean, + default: uni.$u.props.input.confirmHold + }, + // focus鏃讹紝鐐瑰嚮椤甸潰鐨勬椂鍊欎笉鏀惰捣閿洏锛屽井淇″皬绋嬪簭鏈夋晥 + holdKeyboard: { + type: Boolean, + default: uni.$u.props.input.holdKeyboard + }, + // 鑷姩鑾峰彇鐒︾偣 + // 鍦� H5 骞冲彴鑳藉惁鑱氱劍浠ュ強杞敭鐩樻槸鍚﹁窡闅忓脊鍑猴紝鍙栧喅浜庡綋鍓嶆祻瑙堝櫒鏈韩鐨勫疄鐜般�俷vue 椤甸潰涓嶆敮鎸侊紝闇�浣跨敤缁勪欢鐨� focus()銆乥lur() 鏂规硶鎺у埗鐒︾偣 + focus: { + type: Boolean, + default: uni.$u.props.input.focus + }, + // 閿洏鏀惰捣鏃讹紝鏄惁鑷姩澶卞幓鐒︾偣锛岀洰鍓嶄粎App3.0.0+鏈夋晥 + autoBlur: { + type: Boolean, + default: uni.$u.props.input.autoBlur + }, + // 鏄惁鍘绘帀 iOS 涓嬬殑榛樿鍐呰竟璺濓紝浠呭井淇″皬绋嬪簭锛屼笖type=textarea鏃舵湁鏁� + disableDefaultPadding: { + type: Boolean, + default: uni.$u.props.input.disableDefaultPadding + }, + // 鎸囧畾focus鏃跺厜鏍囩殑浣嶇疆 + cursor: { + type: [String, Number], + default: uni.$u.props.input.cursor + }, + // 杈撳叆妗嗚仛鐒︽椂搴曢儴涓庨敭鐩樼殑璺濈 + cursorSpacing: { + type: [String, Number], + default: uni.$u.props.input.cursorSpacing + }, + // 鍏夋爣璧峰浣嶇疆锛岃嚜鍔ㄨ仛闆嗘椂鏈夋晥锛岄渶涓巗election-end鎼厤浣跨敤 + selectionStart: { + type: [String, Number], + default: uni.$u.props.input.selectionStart + }, + // 鍏夋爣缁撴潫浣嶇疆锛岃嚜鍔ㄨ仛闆嗘椂鏈夋晥锛岄渶涓巗election-start鎼厤浣跨敤 + selectionEnd: { + type: [String, Number], + default: uni.$u.props.input.selectionEnd + }, + // 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰 + adjustPosition: { + type: Boolean, + default: uni.$u.props.input.adjustPosition + }, + // 杈撳叆妗嗗唴瀹瑰榻愭柟寮忥紝鍙�夊�间负锛歭eft|center|right + inputAlign: { + type: String, + default: uni.$u.props.input.inputAlign + }, + // 杈撳叆妗嗗瓧浣撶殑澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.input.fontSize + }, + // 杈撳叆妗嗗瓧浣撻鑹� + color: { + type: String, + default: uni.$u.props.input.color + }, + // 杈撳叆妗嗗墠缃浘鏍� + prefixIcon: { + type: String, + default: uni.$u.props.input.prefixIcon + }, + // 鍓嶇疆鍥炬爣鏍峰紡锛屽璞℃垨瀛楃涓� + prefixIconStyle: { + type: [String, Object], + default: uni.$u.props.input.prefixIconStyle + }, + // 杈撳叆妗嗗悗缃浘鏍� + suffixIcon: { + type: String, + default: uni.$u.props.input.suffixIcon + }, + // 鍚庣疆鍥炬爣鏍峰紡锛屽璞℃垨瀛楃涓� + suffixIconStyle: { + type: [String, Object], + default: uni.$u.props.input.suffixIconStyle + }, + // 杈规绫诲瀷锛宻urround-鍥涘懆杈规锛宐ottom-搴曢儴杈规锛宯one-鏃犺竟妗� + border: { + type: String, + default: uni.$u.props.input.border + }, + // 鏄惁鍙锛屼笌disabled涓嶅悓涔嬪鍦ㄤ簬disabled浼氱疆鐏扮粍浠讹紝鑰宺eadonly鍒欎笉浼� + readonly: { + type: Boolean, + default: uni.$u.props.input.readonly + }, + // 杈撳叆妗嗗舰鐘讹紝circle-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.input.shape + }, + // 鐢ㄤ簬澶勭悊鎴栬�呰繃婊よ緭鍏ユ鍐呭鐨勬柟娉� + formatter: { + type: [Function, null], + default: uni.$u.props.input.formatter + }, + // 鏄惁蹇界暐缁勪欢鍐呭鏂囨湰鍚堟垚绯荤粺浜嬩欢鐨勫鐞� + ignoreCompositionEvent: { + type: Boolean, + default: true + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/u-input.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/u-input.vue new file mode 100644 index 0000000..9864701 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-input/u-input.vue @@ -0,0 +1,352 @@ +<template> + <view class="u-input" :class="inputClass" :style="[wrapperStyle]"> + <view class="u-input__content"> + <view + class="u-input__content__prefix-icon" + v-if="prefixIcon || $scopedSlots.prefix" + > + <u-icon v-if="prefixIcon" + :name="prefixIcon" + size="18" + :customStyle="prefixIconStyle" + ></u-icon> + <slot name="prefix" v-else></slot> + </view> + <view class="u-input__content__field-wrapper" @tap="clickHandler"> + <!-- 鏍规嵁uni-app鐨刬nput缁勪欢鏂囨。锛孒5鍜孉PP涓彧瑕佸0鏄庝簡password鍙傛暟(鏃犺true杩樻槸false)锛宼ype鍧囧け鏁堬紝姝ゆ椂 + 涓轰簡闃叉type=number鏃讹紝鍙堝瓨鍦╬assword灞炴�э紝type鏃犳晥锛屾鏃堕渶瑕佽缃畃assword涓簎ndefined + --> + <input + class="u-input__content__field-wrapper__field" + :style="[inputStyle]" + :type="type" + :focus="focus" + :cursor="cursor" + :value="innerValue" + :auto-blur="autoBlur" + :disabled="disabled || readonly" + :maxlength="maxlength" + :placeholder="placeholder" + :placeholder-style="placeholderStyle" + :placeholder-class="placeholderClass" + :confirm-type="confirmType" + :confirm-hold="confirmHold" + :hold-keyboard="holdKeyboard" + :cursor-spacing="cursorSpacing" + :adjust-position="adjustPosition" + :selection-end="selectionEnd" + :selection-start="selectionStart" + :password="password || type === 'password' || undefined" + :ignoreCompositionEvent="ignoreCompositionEvent" + @input="onInput" + @blur="onBlur" + @focus="onFocus" + @confirm="onConfirm" + @keyboardheightchange="onkeyboardheightchange" + /> + </view> + <view + class="u-input__content__clear" + v-if="isShowClear" + @tap="onClear" + > + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + <view + class="u-input__content__subfix-icon" + v-if="suffixIcon || $scopedSlots.suffix" + > + <u-icon v-if="suffixIcon" + :name="suffixIcon" + size="18" + :customStyle="suffixIconStyle" + ></u-icon> + <slot name="suffix" v-else></slot> + </view> + </view> + </view> +</template> + +<script> +import props from "./props.js"; +/** + * Input 杈撳叆妗� + * @description 姝ょ粍浠朵负涓�涓緭鍏ユ锛岄粯璁ゆ病鏈夎竟妗嗗拰鏍峰紡锛屾槸涓撻棬涓洪厤鍚堣〃鍗曠粍浠秛-form鑰岃璁$殑锛屽埄鐢ㄥ畠鍙互蹇�熷疄鐜拌〃鍗曢獙璇侊紝杈撳叆鍐呭锛屼笅鎷夐�夋嫨绛夊姛鑳姐�� + * @tutorial https://uviewui.com/components/input.html + * @property {String | Number} value 杈撳叆鐨勫�� + * @property {String} type 杈撳叆妗嗙被鍨嬶紝瑙佷笂鏂硅鏄� 锛� 榛樿 'text' 锛� + * @property {Boolean} fixed 濡傛灉 textarea 鏄湪涓�涓� position:fixed 鐨勫尯鍩燂紝闇�瑕佹樉绀烘寚瀹氬睘鎬� fixed 涓� true锛屽吋瀹规�э細寰俊灏忕▼搴忋�佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭銆丵Q灏忕▼搴� 锛� 榛樿 false 锛� + * @property {Boolean} disabled 鏄惁绂佺敤杈撳叆妗� 锛� 榛樿 false 锛� + * @property {String} disabledColor 绂佺敤鐘舵�佹椂鐨勮儗鏅壊锛� 榛樿 '#f5f7fa' 锛� + * @property {Boolean} clearable 鏄惁鏄剧ず娓呴櫎鎺т欢 锛� 榛樿 false 锛� + * @property {Boolean} password 鏄惁瀵嗙爜绫诲瀷 锛� 榛樿 false 锛� + * @property {String | Number} maxlength 鏈�澶ц緭鍏ラ暱搴︼紝璁剧疆涓� -1 鐨勬椂鍊欎笉闄愬埗鏈�澶ч暱搴� 锛� 榛樿 -1 锛� + * @property {String} placeholder 杈撳叆妗嗕负绌烘椂鐨勫崰浣嶇 + * @property {String} placeholderClass 鎸囧畾placeholder鐨勬牱寮忕被锛屾敞鎰忛〉闈㈡垨缁勪欢鐨剆tyle涓啓浜唖coped鏃讹紝闇�瑕佸湪绫诲悕鍓嶅啓/deep/ 锛� 榛樿 'input-placeholder' 锛� + * @property {String | Object} placeholderStyle 鎸囧畾placeholder鐨勬牱寮忥紝瀛楃涓�/瀵硅薄褰㈠紡锛屽"color: red;" + * @property {Boolean} showWordLimit 鏄惁鏄剧ず杈撳叆瀛楁暟缁熻锛屽彧鍦� type ="text"鎴杢ype ="textarea"鏃舵湁鏁� 锛� 榛樿 false 锛� + * @property {String} confirmType 璁剧疆鍙充笅瑙掓寜閽殑鏂囧瓧锛屽吋瀹规�ц瑙乽ni-app鏂囨。 锛� 榛樿 'done' 锛� + * @property {Boolean} confirmHold 鐐瑰嚮閿洏鍙充笅瑙掓寜閽椂鏄惁淇濇寔閿洏涓嶆敹璧凤紝H5鏃犳晥 锛� 榛樿 false 锛� + * @property {Boolean} holdKeyboard focus鏃讹紝鐐瑰嚮椤甸潰鐨勬椂鍊欎笉鏀惰捣閿洏锛屽井淇″皬绋嬪簭鏈夋晥 锛� 榛樿 false 锛� + * @property {Boolean} focus 鑷姩鑾峰彇鐒︾偣锛屽湪 H5 骞冲彴鑳藉惁鑱氱劍浠ュ強杞敭鐩樻槸鍚﹁窡闅忓脊鍑猴紝鍙栧喅浜庡綋鍓嶆祻瑙堝櫒鏈韩鐨勫疄鐜般�俷vue 椤甸潰涓嶆敮鎸侊紝闇�浣跨敤缁勪欢鐨� focus()銆乥lur() 鏂规硶鎺у埗鐒︾偣 锛� 榛樿 false 锛� + * @property {Boolean} autoBlur 閿洏鏀惰捣鏃讹紝鏄惁鑷姩澶卞幓鐒︾偣锛岀洰鍓嶄粎App3.0.0+鏈夋晥 锛� 榛樿 false 锛� + * @property {Boolean} disableDefaultPadding 鏄惁鍘绘帀 iOS 涓嬬殑榛樿鍐呰竟璺濓紝浠呭井淇″皬绋嬪簭锛屼笖type=textarea鏃舵湁鏁� 锛� 榛樿 false 锛� + * @property {String 锝� Number} cursor 鎸囧畾focus鏃跺厜鏍囩殑浣嶇疆锛� 榛樿 -1 锛� + * @property {String 锝� Number} cursorSpacing 杈撳叆妗嗚仛鐒︽椂搴曢儴涓庨敭鐩樼殑璺濈 锛� 榛樿 30 锛� + * @property {String 锝� Number} selectionStart 鍏夋爣璧峰浣嶇疆锛岃嚜鍔ㄨ仛闆嗘椂鏈夋晥锛岄渶涓巗election-end鎼厤浣跨敤 锛� 榛樿 -1 锛� + * @property {String 锝� Number} selectionEnd 鍏夋爣缁撴潫浣嶇疆锛岃嚜鍔ㄨ仛闆嗘椂鏈夋晥锛岄渶涓巗election-start鎼厤浣跨敤 锛� 榛樿 -1 锛� + * @property {Boolean} adjustPosition 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰 锛� 榛樿 true 锛� + * @property {String} inputAlign 杈撳叆妗嗗唴瀹瑰榻愭柟寮忥紙 榛樿 'left' 锛� + * @property {String | Number} fontSize 杈撳叆妗嗗瓧浣撶殑澶у皬 锛� 榛樿 '15px' 锛� + * @property {String} color 杈撳叆妗嗗瓧浣撻鑹� 锛� 榛樿 '#303133' 锛� + * @property {Function} formatter 鍐呭寮忓寲鍑芥暟 + * @property {String} prefixIcon 杈撳叆妗嗗墠缃浘鏍� + * @property {String | Object} prefixIconStyle 鍓嶇疆鍥炬爣鏍峰紡锛屽璞℃垨瀛楃涓� + * @property {String} suffixIcon 杈撳叆妗嗗悗缃浘鏍� + * @property {String | Object} suffixIconStyle 鍚庣疆鍥炬爣鏍峰紡锛屽璞℃垨瀛楃涓� + * @property {String} border 杈规绫诲瀷锛宻urround-鍥涘懆杈规锛宐ottom-搴曢儴杈规锛宯one-鏃犺竟妗� 锛� 榛樿 'surround' 锛� + * @property {Boolean} readonly 鏄惁鍙锛屼笌disabled涓嶅悓涔嬪鍦ㄤ簬disabled浼氱疆鐏扮粍浠讹紝鑰宺eadonly鍒欎笉浼� 锛� 榛樿 false 锛� + * @property {String} shape 杈撳叆妗嗗舰鐘讹紝circle-鍦嗗舰锛宻quare-鏂瑰舰 锛� 榛樿 'square' 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @property {Boolean} ignoreCompositionEvent 鏄惁蹇界暐缁勪欢鍐呭鏂囨湰鍚堟垚绯荤粺浜嬩欢鐨勫鐞嗐�� + * @example <u-input v-model="value" :password="true" suffix-icon="lock-fill" /> + */ +export default { + name: "u-input", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 杈撳叆妗嗙殑鍊� + innerValue: "", + // 鏄惁澶勪簬鑾峰緱鐒︾偣鐘舵�� + focused: false, + // value鏄惁绗竴娆″彉鍖栵紝鍦╳atch涓紝鐢变簬鍔犲叆immediate灞炴�э紝浼氬湪绗竴娆¤Е鍙戯紝姝ゆ椂涓嶅簲璇ヨ涓簐alue鍙戠敓浜嗗彉鍖� + firstChange: true, + // value缁戝畾鍊肩殑鍙樺寲鏄敱鍐呴儴杩樻槸澶栭儴寮曡捣鐨� + changeFromInner: false, + // 杩囨护澶勭悊鏂规硶 + innerFormatter: value => value + }; + }, + watch: { + value: { + immediate: true, + handler(newVal, oldVal) { + this.innerValue = newVal; + /* #ifdef H5 */ + // 鍦℉5涓紝澶栭儴value鍙樺寲鍚庯紝淇敼input涓殑鍊硷紝涓嶄細瑙﹀彂@input浜嬩欢锛屾鏃舵墜鍔ㄨ皟鐢ㄥ�煎彉鍖栨柟娉� + if ( + this.firstChange === false && + this.changeFromInner === false + ) { + this.valueChange(); + } + /* #endif */ + this.firstChange = false; + // 閲嶇疆changeFromInner鐨勫�间负false锛屾爣璇嗕笅涓�娆″紩璧烽粯璁や负澶栭儴寮曡捣鐨� + this.changeFromInner = false; + }, + }, + }, + computed: { + // 鏄惁鏄剧ず娓呴櫎鎺т欢 + isShowClear() { + const { clearable, readonly, focused, innerValue } = this; + return !!clearable && !readonly && !!focused && innerValue !== ""; + }, + // 缁勪欢鐨勭被鍚� + inputClass() { + let classes = [], + { border, disabled, shape } = this; + border === "surround" && + (classes = classes.concat(["u-border", "u-input--radius"])); + classes.push(`u-input--${shape}`); + border === "bottom" && + (classes = classes.concat([ + "u-border-bottom", + "u-input--no-radius", + ])); + return classes.join(" "); + }, + // 缁勪欢鐨勬牱寮� + wrapperStyle() { + const style = {}; + // 绂佺敤鐘舵�佷笅锛岃鑳屾櫙鑹插姞涓婂搴旂殑鏍峰紡 + if (this.disabled) { + style.backgroundColor = this.disabledColor; + } + // 鏃犺竟妗嗘椂锛屽幓闄ゅ唴杈硅窛 + if (this.border === "none") { + style.padding = "0"; + } else { + // 鐢变簬uni-app鐨刬OS寮�鍙戣�呰兘鍔涙湁闄愶紝瀵艰嚧闇�瑕佸垎寮�鍐欐墠鏈夋晥 + style.paddingTop = "6px"; + style.paddingBottom = "6px"; + style.paddingLeft = "9px"; + style.paddingRight = "9px"; + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)); + }, + // 杈撳叆妗嗙殑鏍峰紡 + inputStyle() { + const style = { + color: this.color, + fontSize: uni.$u.addUnit(this.fontSize), + textAlign: this.inputAlign + }; + return style; + }, + }, + methods: { + // 鍦ㄥ井淇″皬绋嬪簭涓紝涓嶆敮鎸佸皢鍑芥暟褰撳仛props鍙傛暟锛屾晠鍙兘閫氳繃ref褰㈠紡璋冪敤 + setFormatter(e) { + this.innerFormatter = e + }, + // 褰撻敭鐩樿緭鍏ユ椂锛岃Е鍙慽nput浜嬩欢 + onInput(e) { + let { value = "" } = e.detail || {}; + // 鏍煎紡鍖栬繃婊ゆ柟娉� + const formatter = this.formatter || this.innerFormatter + const formatValue = formatter(value) + // 涓轰簡閬垮厤props鐨勫崟鍚戞暟鎹祦鐗规�э紝闇�瑕佸厛灏唅nnerValue鍊艰缃负褰撳墠鍊硷紝鍐嶅湪$nextTick涓噸鏂拌祴浜堣缃悗鐨勫�兼墠鏈夋晥 + this.innerValue = value + this.$nextTick(() => { + this.innerValue = formatValue; + this.valueChange(); + }) + }, + // 杈撳叆妗嗗け鍘荤劍鐐规椂瑙﹀彂 + onBlur(event) { + this.$emit("blur", event.detail.value); + // H5绔殑blur浼氬厛浜庣偣鍑绘竻闄ゆ帶浠剁殑鐐瑰嚮click浜嬩欢瑙﹀彂锛屽鑷磃ocused + // 鐬棿涓篺alse锛屼粠鑰岄殣钘忎簡娓呴櫎鎺т欢鑰屾棤娉曡鐐瑰嚮鍒� + uni.$u.sleep(50).then(() => { + this.focused = false; + }); + // 灏濊瘯璋冪敤u-form鐨勯獙璇佹柟娉� + uni.$u.formValidate(this, "blur"); + }, + // 杈撳叆妗嗚仛鐒︽椂瑙﹀彂 + onFocus(event) { + this.focused = true; + this.$emit("focus"); + }, + // 鐐瑰嚮瀹屾垚鎸夐挳鏃惰Е鍙� + onConfirm(event) { + this.$emit("confirm", this.innerValue); + }, + // 閿洏楂樺害鍙戠敓鍙樺寲鐨勬椂鍊欒Е鍙戞浜嬩欢 + // 鍏煎鎬э細寰俊灏忕▼搴�2.7.0+銆丄pp 3.1.0+ + onkeyboardheightchange() { + this.$emit("keyboardheightchange"); + }, + // 鍐呭鍙戠敓鍙樺寲锛岃繘琛屽鐞� + valueChange() { + const value = this.innerValue; + this.$nextTick(() => { + this.$emit("input", value); + // 鏍囪瘑value鍊肩殑鍙樺寲鏄敱鍐呴儴寮曡捣鐨� + this.changeFromInner = true; + this.$emit("change", value); + // 灏濊瘯璋冪敤u-form鐨勯獙璇佹柟娉� + uni.$u.formValidate(this, "change"); + }); + }, + // 鐐瑰嚮娓呴櫎鎺т欢 + onClear() { + this.innerValue = ""; + this.$nextTick(() => { + this.valueChange(); + this.$emit("clear"); + }); + }, + /** + * 鍦ㄥ畨鍗搉vue涓婏紝浜嬩欢鏃犳硶鍐掓场 + * 鍦ㄦ煇浜涙椂闂达紝鎴戜滑甯屾湜鐩戝惉u-from-item鐨勭偣鍑讳簨浠讹紝姝ゆ椂浼氬鑷寸偣鍑籾-form-item鍐呯殑u-input鍚� + * 鏃犳硶瑙﹀彂u-form-item鐨勭偣鍑讳簨浠讹紝杩欓噷閫氳繃鎵嬪姩璋冪敤u-form-item鐨勬柟娉曡繘琛岃Е鍙� + */ + clickHandler() { + // #ifdef APP-NVUE + if (uni.$u.os() === "android") { + const formItem = uni.$u.$parent.call(this, "u-form-item"); + if (formItem) { + formItem.clickHandler(); + } + } + // #endif + }, + }, +}; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +.u-input { + @include flex(row); + align-items: center; + justify-content: space-between; + flex: 1; + + &--radius, + &--square { + border-radius: 4px; + } + + &--no-radius { + border-radius: 0; + } + + &--circle { + border-radius: 100px; + } + + &__content { + flex: 1; + @include flex(row); + align-items: center; + justify-content: space-between; + + &__field-wrapper { + position: relative; + @include flex(row); + margin: 0; + flex: 1; + + &__field { + line-height: 26px; + text-align: left; + color: $u-main-color; + height: 24px; + font-size: 15px; + flex: 1; + } + } + + &__clear { + width: 20px; + height: 20px; + border-radius: 100px; + background-color: #c6c7cb; + @include flex(row); + align-items: center; + justify-content: center; + transform: scale(0.82); + margin-left: 4px; + } + + &__subfix-icon { + margin-left: 4px; + } + + &__prefix-icon { + margin-right: 4px; + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/props.js new file mode 100644 index 0000000..cfdb00a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/props.js @@ -0,0 +1,84 @@ +export default { + props: { + // 閿洏鐨勭被鍨嬶紝number-鏁板瓧閿洏锛宑ard-韬唤璇侀敭鐩橈紝car-杞︾墝鍙烽敭鐩� + mode: { + type: String, + default: uni.$u.props.keyboard.mode + }, + // 鏄惁鏄剧ず閿洏鐨�"."绗﹀彿 + dotDisabled: { + type: Boolean, + default: uni.$u.props.keyboard.dotDisabled + }, + // 鏄惁鏄剧ず椤堕儴宸ュ叿鏉� + tooltip: { + type: Boolean, + default: uni.$u.props.keyboard.tooltip + }, + // 鏄惁鏄剧ず宸ュ叿鏉′腑闂寸殑鎻愮ず + showTips: { + type: Boolean, + default: uni.$u.props.keyboard.showTips + }, + // 宸ュ叿鏉′腑闂寸殑鎻愮ず鏂囧瓧 + tips: { + type: String, + default: uni.$u.props.keyboard.tips + }, + // 鏄惁鏄剧ず宸ュ叿鏉″乏杈圭殑"鍙栨秷"鎸夐挳 + showCancel: { + type: Boolean, + default: uni.$u.props.keyboard.showCancel + }, + // 鏄惁鏄剧ず宸ュ叿鏉″彸杈圭殑"瀹屾垚"鎸夐挳 + showConfirm: { + type: Boolean, + default: uni.$u.props.keyboard.showConfirm + }, + // 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴� + random: { + type: Boolean, + default: uni.$u.props.keyboard.random + }, + // 鏄惁寮�鍚簳閮ㄥ畨鍏ㄥ尯閫傞厤锛屽紑鍚殑璇濓紝浼氬湪iPhoneX鏈哄瀷搴曢儴娣诲姞涓�瀹氱殑鍐呰竟璺� + safeAreaInsetBottom: { + type: Boolean, + default: uni.$u.props.keyboard.safeAreaInsetBottom + }, + // 鏄惁鍏佽閫氳繃鐐瑰嚮閬僵鍏抽棴閿洏 + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.keyboard.closeOnClickOverlay + }, + // 鎺у埗閿洏鐨勫脊鍑轰笌鏀惰捣 + show: { + type: Boolean, + default: uni.$u.props.keyboard.show + }, + // 鏄惁鏄剧ず閬僵锛屾煇浜涙椂鍊欐暟瀛楅敭鐩樻椂锛岀敤鎴峰笇鏈涚湅鍒拌嚜宸辩殑鏁板�硷紝鎵�浠ュ彲鑳戒笉鎯宠閬僵 + overlay: { + type: Boolean, + default: uni.$u.props.keyboard.overlay + }, + // z-index鍊� + zIndex: { + type: [String, Number], + default: uni.$u.props.keyboard.zIndex + }, + // 鍙栨秷鎸夐挳鐨勬枃瀛� + cancelText: { + type: String, + default: uni.$u.props.keyboard.cancelText + }, + // 纭鎸夐挳鐨勬枃瀛� + confirmText: { + type: String, + default: uni.$u.props.keyboard.confirmText + }, + // 杈撳叆涓�涓腑鏂囧悗锛屾槸鍚﹁嚜鍔ㄥ垏鎹㈠埌鑻辨枃 + autoChange: { + type: Boolean, + default: uni.$u.props.keyboard.autoChange + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/u-keyboard.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/u-keyboard.vue new file mode 100644 index 0000000..14228cb --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-keyboard/u-keyboard.vue @@ -0,0 +1,164 @@ +<template> + <u-popup + :overlay="overlay" + :closeOnClickOverlay="closeOnClickOverlay" + mode="bottom" + :popup="false" + :show="show" + :safeAreaInsetBottom="safeAreaInsetBottom" + @close="popupClose" + :zIndex="zIndex" + :customStyle="{ + backgroundColor: 'rgb(214, 218, 220)' + }" + > + <view class="u-keyboard"> + <slot /> + <view + class="u-keyboard__tooltip" + v-if="tooltip" + > + <view + hover-class="u-hover-class" + :hover-stay-time="100" + > + <text + class="u-keyboard__tooltip__item u-keyboard__tooltip__cancel" + v-if="showCancel" + @tap="onCancel" + >{{showCancel && cancelText}}</text> + </view> + <view> + <text + v-if="showTips" + class="u-keyboard__tooltip__item u-keyboard__tooltip__tips" + >{{tips ? tips : mode == 'number' ? '鏁板瓧閿洏' : mode == 'card' ? '韬唤璇侀敭鐩�' : '杞︾墝鍙烽敭鐩�'}}</text> + </view> + <view + hover-class="u-hover-class" + :hover-stay-time="100" + > + <text + v-if="showConfirm" + @tap="onConfirm" + class="u-keyboard__tooltip__item u-keyboard__tooltip__submit" + hover-class="u-hover-class" + >{{showConfirm && confirmText}}</text> + </view> + </view> + <template v-if="mode == 'number' || mode == 'card'"> + <u-number-keyboard + :random="random" + @backspace="backspace" + @change="change" + :mode="mode" + :dotDisabled="dotDisabled" + ></u-number-keyboard> + </template> + <template v-else> + <u-car-keyboard + :random="random" + :autoChange="autoChange" + @backspace="backspace" + @change="change" + ></u-car-keyboard> + </template> + </view> + </u-popup> +</template> + +<script> + import props from './props.js'; + + /** + * keyboard 閿洏 + * @description 姝や负uViw鑷畾涔夌殑閿洏闈㈡澘锛屽唴鍚簡鏁板瓧閿洏锛岃溅鐗屽彿閿紝韬唤璇佸彿閿洏3涓ā寮忥紝閮芥湁鍙互鎵撲贡鎸夐敭椤哄簭鐨勯�夐」銆� + * @tutorial https://www.uviewui.com/components/keyboard.html + * @property {String} mode 閿洏绫诲瀷锛岃瀹樼綉鍩烘湰浣跨敤鐨勮鏄� 锛堥粯璁� 'number' 锛� + * @property {Boolean} dotDisabled 鏄惁鏄剧ず"."鎸夐敭锛屽彧鍦╩ode=number鏃舵湁鏁� 锛堥粯璁� false 锛� + * @property {Boolean} tooltip 鏄惁鏄剧ず閿洏椤堕儴宸ュ叿鏉� 锛堥粯璁� true 锛� + * @property {Boolean} showTips 鏄惁鏄剧ず宸ュ叿鏉′腑闂寸殑鎻愮ず 锛堥粯璁� true 锛� + * @property {String} tips 宸ュ叿鏉′腑闂寸殑鎻愮ず鏂囧瓧锛岃涓婃柟鍩烘湰浣跨敤鐨勮鏄庯紝濡備笉闇�瑕侊紝璇蜂紶""绌哄瓧绗� + * @property {Boolean} showCancel 鏄惁鏄剧ず宸ュ叿鏉″乏杈圭殑"鍙栨秷"鎸夐挳 锛堥粯璁� true 锛� + * @property {Boolean} showConfirm 鏄惁鏄剧ず宸ュ叿鏉″彸杈圭殑"瀹屾垚"鎸夐挳锛� 榛樿 true 锛� + * @property {Boolean} random 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴� 锛堥粯璁� false 锛� + * @property {Boolean} safeAreaInsetBottom 鏄惁寮�鍚簳閮ㄥ畨鍏ㄥ尯閫傞厤 锛堥粯璁� true 锛� + * @property {Boolean} closeOnClickOverlay 鏄惁鍏佽鐐瑰嚮閬僵鏀惰捣閿洏 锛堥粯璁� true 锛� + * @property {Boolean} show 鎺у埗閿洏鐨勫脊鍑轰笌鏀惰捣锛堥粯璁� false 锛� + * @property {Boolean} overlay 鏄惁鏄剧ず閬僵 锛堥粯璁� true 锛� + * @property {String | Number} zIndex 寮瑰嚭閿洏鐨剒-index鍊� 锛堥粯璁� 1075 锛� + * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬枃瀛� 锛堥粯璁� '鍙栨秷' 锛� + * @property {String} confirmText 纭鎸夐挳鐨勬枃瀛� 锛堥粯璁� '纭' 锛� + * @property {Object} customStyle 鑷畾涔夋牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} change 鎸夐敭琚偣鍑�(涓嶅寘鍚��鏍奸敭琚偣鍑�) + * @event {Function} cancel 閿洏椤堕儴宸ュ叿鏉″乏杈圭殑"鍙栨秷"鎸夐挳琚偣鍑� + * @event {Function} confirm 閿洏椤堕儴宸ュ叿鏉″彸杈圭殑"瀹屾垚"鎸夐挳琚偣鍑� + * @event {Function} backspace 閿洏閫�鏍奸敭琚偣鍑� + * @example <u-keyboard mode="number" v-model="show"></u-keyboard> + */ + export default { + name: "u-keyboard", + data() { + return { + + } + }, + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + methods: { + change(e) { + this.$emit('change', e); + }, + // 閿洏鍏抽棴 + popupClose() { + this.$emit('close'); + }, + // 杈撳叆瀹屾垚 + onConfirm() { + this.$emit('confirm'); + }, + // 鍙栨秷杈撳叆 + onCancel() { + this.$emit('cancel'); + }, + // 閫�鏍奸敭 + backspace() { + this.$emit('backspace'); + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-keyboard { + + &__tooltip { + @include flex; + justify-content: space-between; + background-color: #FFFFFF; + padding: 14px 12px; + + &__item { + color: #333333; + flex: 1; + text-align: center; + font-size: 15px; + } + + &__submit { + text-align: right; + color: $u-primary; + } + + &__cancel { + text-align: left; + color: #888888; + } + + &__tips { + color: $u-tips-color; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/props.js new file mode 100644 index 0000000..a4210bd --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/props.js @@ -0,0 +1,28 @@ +export default { + props: { + // 婵�娲婚儴鍒嗙殑棰滆壊 + activeColor: { + type: String, + default: uni.$u.props.lineProgress.activeColor + }, + inactiveColor: { + type: String, + default: uni.$u.props.lineProgress.color + }, + // 杩涘害鐧惧垎姣旓紝鏁板�� + percentage: { + type: [String, Number], + default: uni.$u.props.lineProgress.inactiveColor + }, + // 鏄惁鍦ㄨ繘搴︽潯鍐呴儴鏄剧ず鐧惧垎姣旂殑鍊� + showText: { + type: Boolean, + default: uni.$u.props.lineProgress.showText + }, + // 杩涘害鏉$殑楂樺害锛屽崟浣峱x + height: { + type: [String, Number], + default: uni.$u.props.lineProgress.height + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/u-line-progress.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/u-line-progress.vue new file mode 100644 index 0000000..4e27931 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line-progress/u-line-progress.vue @@ -0,0 +1,144 @@ +<template> + <view + class="u-line-progress" + :style="[$u.addStyle(customStyle)]" + > + <view + class="u-line-progress__background" + ref="u-line-progress__background" + :style="[{ + backgroundColor: inactiveColor, + height: $u.addUnit(height), + }]" + > + </view> + <view + class="u-line-progress__line" + :style="[progressStyle]" + > + <slot> + <text v-if="showText && percentage >= 10" class="u-line-progress__text">{{innserPercentage + '%'}}</text> + </slot> + </view> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * lineProgress 绾垮瀷杩涘害鏉� + * @description 灞曠ず鎿嶄綔鎴栦换鍔$殑褰撳墠杩涘害锛屾瘮濡備笂浼犳枃浠讹紝鏄竴涓嚎褰㈢殑杩涘害鏉°�� + * @tutorial https://www.uviewui.com/components/lineProgress.html + * @property {String} activeColor 婵�娲婚儴鍒嗙殑棰滆壊 ( 榛樿 '#19be6b' ) + * @property {String} inactiveColor 鑳屾櫙鑹� ( 榛樿 '#ececec' ) + * @property {String | Number} percentage 杩涘害鐧惧垎姣旓紝鏁板�� ( 榛樿 0 ) + * @property {Boolean} showText 鏄惁鍦ㄨ繘搴︽潯鍐呴儴鏄剧ず鐧惧垎姣旂殑鍊� ( 榛樿 true ) + * @property {String | Number} height 杩涘害鏉$殑楂樺害锛屽崟浣峱x ( 榛樿 12 ) + * + * @example <u-line-progress :percent="70" :show-percent="true"></u-line-progress> + */ + export default { + name: "u-line-progress", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + lineWidth: 0, + } + }, + watch: { + percentage(n) { + this.resizeProgressWidth() + } + }, + computed: { + progressStyle() { + let style = {} + style.width = this.lineWidth + style.backgroundColor = this.activeColor + style.height = uni.$u.addUnit(this.height) + return style + }, + innserPercentage() { + // 鎺у埗鑼冨洿鍦�0-100涔嬮棿 + return uni.$u.range(0, 100, this.percentage) + } + }, + mounted() { + this.init() + }, + methods: { + init() { + uni.$u.sleep(20).then(() => { + this.resizeProgressWidth() + }) + }, + getProgressWidth() { + // #ifndef APP-NVUE + return this.$uGetRect('.u-line-progress__background') + // #endif + + // #ifdef APP-NVUE + // 杩斿洖涓�涓猵romise + return new Promise(resolve => { + dom.getComponentRect(this.$refs['u-line-progress__background'], (res) => { + resolve(res.size) + }) + }) + // #endif + }, + resizeProgressWidth() { + this.getProgressWidth().then(size => { + const { + width + } = size + // 閫氳繃璁剧疆鐨刾ercentage鍊硷紝璁$畻鍏舵墍鍗犳�婚暱搴︾殑鐧惧垎姣� + this.lineWidth = width * this.innserPercentage / 100 + 'px' + }) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-line-progress { + align-items: stretch; + position: relative; + @include flex(row); + flex: 1; + overflow: hidden; + border-radius: 100px; + + &__background { + background-color: #ececec; + border-radius: 100px; + flex: 1; + } + + &__line { + position: absolute; + top: 0; + left: 0; + bottom: 0; + align-items: center; + @include flex(row); + color: #ffffff; + border-radius: 100px; + transition: width 0.5s ease; + justify-content: flex-end; + } + + &__text { + font-size: 10px; + align-items: center; + text-align: right; + color: #FFFFFF; + margin-right: 5px; + transform: scale(0.9); + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/props.js new file mode 100644 index 0000000..2308cc3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/props.js @@ -0,0 +1,33 @@ +export default { + props: { + color: { + type: String, + default: uni.$u.props.line.color + }, + // 闀垮害锛岀珫鍚戞椂琛ㄧ幇涓洪珮搴︼紝妯悜鏃惰〃鐜颁负闀垮害锛屽彲浠ヤ负鐧惧垎姣旓紝甯x鍗曚綅鐨勫�肩瓑 + length: { + type: [String, Number], + default: uni.$u.props.line.length + }, + // 绾挎潯鏂瑰悜锛宑ol-绔栧悜锛宺ow-妯悜 + direction: { + type: String, + default: uni.$u.props.line.direction + }, + // 鏄惁鏄剧ず缁嗚竟妗� + hairline: { + type: Boolean, + default: uni.$u.props.line.hairline + }, + // 绾挎潯涓庝笂涓嬪乏鍙冲厓绱犵殑闂磋窛锛屽瓧绗︿覆褰㈠紡锛屽"30px"銆�"20px 30px" + margin: { + type: [String, Number], + default: uni.$u.props.line.margin + }, + // 鏄惁铏氱嚎锛宼rue-铏氱嚎锛宖alse-瀹炵嚎 + dashed: { + type: Boolean, + default: uni.$u.props.line.dashed + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/u-line.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/u-line.vue new file mode 100644 index 0000000..e0a6d92 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-line/u-line.vue @@ -0,0 +1,62 @@ +<template> + <view + class="u-line" + :style="[lineStyle]" + > + + </view> +</template> + +<script> + import props from './props.js'; + /** + * line 绾挎潯 + * @description 姝ょ粍浠朵竴鑸敤浜庢樉绀轰竴鏍圭嚎鏉★紝鐢ㄤ簬鍒嗛殧鍐呭鍧楋紝鏈夋í鍚戝拰绔栧悜涓ょ妯″紡锛屼笖鑳借缃�0.5px绾挎潯锛屼娇鐢ㄤ篃寰堢畝鍗� + * @tutorial https://www.uviewui.com/components/line.html + * @property {String} color 绾挎潯鐨勯鑹� ( 榛樿 '#d6d7d9' ) + * @property {String | Number} length 闀垮害锛岀珫鍚戞椂琛ㄧ幇涓洪珮搴︼紝妯悜鏃惰〃鐜颁负闀垮害锛屽彲浠ヤ负鐧惧垎姣旓紝甯x鍗曚綅鐨勫�肩瓑 ( 榛樿 '100%' ) + * @property {String} direction 绾挎潯鐨勬柟鍚戯紝row-妯悜锛宑ol-绔栧悜 (榛樿 'row' ) + * @property {Boolean} hairline 鏄惁鏄剧ず缁嗙嚎鏉� (榛樿 true ) + * @property {String | Number} margin 绾挎潯涓庝笂涓嬪乏鍙冲厓绱犵殑闂磋窛锛屽瓧绗︿覆褰㈠紡锛屽"30px" (榛樿 0 ) + * @property {Boolean} dashed 鏄惁铏氱嚎锛宼rue-铏氱嚎锛宖alse-瀹炵嚎 (榛樿 false ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @example <u-line color="red"></u-line> + */ + export default { + name: 'u-line', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + lineStyle() { + const style = {} + style.margin = this.margin + // 濡傛灉鏄按骞崇嚎鏉★紝杈规楂樺害涓�1px锛屽啀閫氳繃transform缂╁皬涓�鍗婏紝灏辨槸0.5px浜� + if (this.direction === 'row') { + // 姝ゅ閲囩敤鍏煎鍒嗗紑鍐欙紝鍏煎nvue鐨勫啓娉� + style.borderBottomWidth = '1px' + style.borderBottomStyle = this.dashed ? 'dashed' : 'solid' + style.width = uni.$u.addUnit(this.length) + if (this.hairline) style.transform = 'scaleY(0.5)' + } else { + // 濡傛灉鏄珫鍚戠嚎鏉★紝杈规瀹藉害涓�1px锛屽啀閫氳繃transform缂╁皬涓�鍗婏紝灏辨槸0.5px浜� + style.borderLeftWidth = '1px' + style.borderLeftStyle = this.dashed ? 'dashed' : 'solid' + style.height = uni.$u.addUnit(this.length) + if (this.hairline) style.transform = 'scaleX(0.5)' + } + + style.borderColor = this.color + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-line { + /* #ifndef APP-NVUE */ + vertical-align: middle; + /* #endif */ + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/props.js new file mode 100644 index 0000000..d39353f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/props.js @@ -0,0 +1,39 @@ +export default { + props: { + // 鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.link.color + }, + // 瀛椾綋澶у皬锛屽崟浣峱x + fontSize: { + type: [String, Number], + default: uni.$u.props.link.fontSize + }, + // 鏄惁鏄剧ず涓嬪垝绾� + underLine: { + type: Boolean, + default: uni.$u.props.link.underLine + }, + // 瑕佽烦杞殑閾炬帴 + href: { + type: String, + default: uni.$u.props.link.href + }, + // 灏忕▼搴忎腑澶嶅埗鍒扮矘璐存澘鐨勬彁绀鸿 + mpTips: { + type: String, + default: uni.$u.props.link.mpTips + }, + // 涓嬪垝绾块鑹� + lineColor: { + type: String, + default: uni.$u.props.link.lineColor + }, + // 瓒呴摼鎺ョ殑闂锛屼笉浣跨敤slot褰㈠紡浼犲叆锛屾槸鍥犱负nvue涓嬫棤娉曚慨鏀归鑹� + text: { + type: String, + default: uni.$u.props.link.text + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/u-link.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/u-link.vue new file mode 100644 index 0000000..c6802a5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-link/u-link.vue @@ -0,0 +1,83 @@ +<template> + <text + class="u-link" + @tap.stop="openLink" + :style="[linkStyle, $u.addStyle(customStyle)]" + >{{text}}</text> +</template> + +<script> + import props from './props.js'; + + /** + * link 瓒呴摼鎺� + * @description 璇ョ粍浠朵负瓒呴摼鎺ョ粍浠讹紝鍦ㄤ笉鍚屽钩鍙版湁涓嶅悓琛ㄧ幇褰㈠紡锛氬湪APP骞冲彴浼氶�氳繃plus鐜鎵撳紑鍐呯疆娴忚鍣紝鍦ㄥ皬绋嬪簭涓妸閾炬帴澶嶅埗鍒扮矘璐存澘锛屽悓鏃舵彁绀轰俊鎭紝鍦℉5涓�氳繃window.open鎵撳紑閾炬帴銆� + * @tutorial https://www.uviewui.com/components/link.html + * @property {String} color 鏂囧瓧棰滆壊 锛堥粯璁� color['u-primary'] 锛� + * @property {String 锝� Number} fontSize 瀛椾綋澶у皬锛屽崟浣峱x 锛堥粯璁� 15 锛� + * @property {Boolean} underLine 鏄惁鏄剧ず涓嬪垝绾� 锛堥粯璁� false 锛� + * @property {String} href 璺宠浆鐨勯摼鎺ワ紝瑕佸甫涓奾ttp(s) + * @property {String} mpTips 鍚勪釜灏忕▼搴忓钩鍙版妸閾炬帴澶嶅埗鍒扮矘璐存澘鍚庣殑鎻愮ず璇紙榛樿鈥滈摼鎺ュ凡澶嶅埗锛岃鍦ㄦ祻瑙堝櫒鎵撳紑鈥濓級 + * @property {String} lineColor 涓嬪垝绾块鑹诧紝榛樿鍚宑olor鍙傛暟棰滆壊 + * @property {String} text 瓒呴摼鎺ョ殑闂锛屼笉浣跨敤slot褰㈠紡浼犲叆锛屾槸鍥犱负nvue涓嬫棤娉曚慨鏀归鑹� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @example <u-link href="http://www.uviewui.com">铚�閬撻毦锛岄毦浜庝笂闈掑ぉ</u-link> + */ + export default { + name: "u-link", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + linkStyle() { + const style = { + color: this.color, + fontSize: uni.$u.addUnit(this.fontSize), + // line-height璁剧疆涓烘瘮瀛椾綋澶у皬澶�2px + lineHeight: uni.$u.addUnit(uni.$u.getPx(this.fontSize) + 2), + textDecoration: this.underLine ? 'underline' : 'none' + } + // if (this.underLine) { + // style.borderBottomColor = this.lineColor || this.color + // style.borderBottomWidth = '1px' + // } + return style + } + }, + methods: { + openLink() { + // #ifdef APP-PLUS + plus.runtime.openURL(this.href) + // #endif + // #ifdef H5 + window.open(this.href) + // #endif + // #ifdef MP + uni.setClipboardData({ + data: this.href, + success: () => { + uni.hideToast(); + this.$nextTick(() => { + uni.$u.toast(this.mpTips); + }) + } + }); + // #endif + this.$emit('click') + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-link-line-height:1 !default; + + .u-link { + /* #ifndef APP-NVUE */ + line-height: $u-link-line-height; + /* #endif */ + @include flex; + flex-wrap: wrap; + flex: 1; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/props.js new file mode 100644 index 0000000..58ddc49 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/props.js @@ -0,0 +1,9 @@ +export default { + props: { + // 鐢ㄤ簬婊氬姩鍒版寚瀹歩tem + anchor: { + type: [String, Number], + default: uni.$u.props.listItem.anchor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/u-list-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/u-list-item.vue new file mode 100644 index 0000000..1a25db6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list-item/u-list-item.vue @@ -0,0 +1,116 @@ +<template> + <!-- #ifdef APP-NVUE --> + <cell> + <!-- #endif --> + <view + class="u-list-item" + :ref="`u-list-item-${anchor}`" + :anchor="`u-list-item-${anchor}`" + :class="[`u-list-item-${anchor}`]" + > + <slot /> + </view> + <!-- #ifdef APP-NVUE --> + </cell> + <!-- #endif --> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * List 鍒楄〃 + * @description 璇ョ粍浠朵负楂樻�ц兘鍒楄〃缁勪欢 + * @tutorial https://www.uviewui.com/components/list.html + * @property {String | Number} anchor 鐢ㄤ簬婊氬姩鍒版寚瀹歩tem + * @example <u-list-ite v-for="(item, index) in indexList" :key="index" ></u-list-item> + */ + export default { + name: 'u-list-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + // 鑺傜偣淇℃伅 + rect: {}, + index: 0, + show: true, + sys: uni.$u.sys() + } + }, + computed: { + + }, + inject: ['uList'], + watch: { + // #ifndef APP-NVUE + 'uList.innerScrollTop'(n) { + const preLoadScreen = this.uList.preLoadScreen + const windowHeight = this.sys.windowHeight + if(n <= windowHeight * preLoadScreen) { + this.parent.updateOffsetFromChild(0) + } else if (this.rect.top <= n - windowHeight * preLoadScreen) { + this.parent.updateOffsetFromChild(this.rect.top) + } + } + // #endif + }, + created() { + this.parent = {} + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鍒濆鍖栨暟鎹� + this.updateParentData() + this.index = this.parent.children.indexOf(this) + this.resize() + }, + updateParentData() { + // 姝ゆ柟娉曞湪mixin涓� + this.getParentData('u-list') + }, + resize() { + this.queryRect(`u-list-item-${this.anchor}`).then(size => { + const lastChild = this.parent.children[this.index - 1] + this.rect = size + const preLoadScreen = this.uList.preLoadScreen + const windowHeight = this.sys.windowHeight + // #ifndef APP-NVUE + if (lastChild) { + this.rect.top = lastChild.rect.top + lastChild.rect.height + } + if (size.top >= this.uList.innerScrollTop + (1 + preLoadScreen) * windowHeight) this.show = + false + // #endif + }) + }, + // 鏌ヨ鍏冪礌灏哄 + queryRect(el) { + return new Promise(resolve => { + // #ifndef APP-NVUE + this.$uGetRect(`.${el}`).then(size => { + resolve(size) + }) + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs[el] + dom.getComponentRect(ref, res => { + resolve(res.size) + }) + // #endif + }) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-list-item {} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/props.js new file mode 100644 index 0000000..25406f4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/props.js @@ -0,0 +1,76 @@ +export default { + props: { + // 鎺у埗鏄惁鍑虹幇婊氬姩鏉★紝浠卬vue鏈夋晥 + showScrollbar: { + type: Boolean, + default: uni.$u.props.list.showScrollbar + }, + // 璺濆簳閮ㄥ灏戞椂瑙﹀彂scrolltolower浜嬩欢 + lowerThreshold: { + type: [String, Number], + default: uni.$u.props.list.lowerThreshold + }, + // 璺濋《閮ㄥ灏戞椂瑙﹀彂scrolltoupper浜嬩欢锛岄潪nvue鏈夋晥 + upperThreshold: { + type: [String, Number], + default: uni.$u.props.list.upperThreshold + }, + // 璁剧疆绔栧悜婊氬姩鏉′綅缃� + scrollTop: { + type: [String, Number], + default: uni.$u.props.list.scrollTop + }, + // 鎺у埗 onscroll 浜嬩欢瑙﹀彂鐨勯鐜囷紝浠卬vue鏈夋晥 + offsetAccuracy: { + type: [String, Number], + default: uni.$u.props.list.offsetAccuracy + }, + // 鍚敤 flexbox 甯冨眬銆傚紑鍚悗锛屽綋鍓嶈妭鐐瑰0鏄庝簡display: flex灏变細鎴愪负flex container锛屽苟浣滅敤浜庡叾瀛╁瓙鑺傜偣锛屼粎寰俊灏忕▼搴忔湁鏁� + enableFlex: { + type: Boolean, + default: uni.$u.props.list.enableFlex + }, + // 鏄惁鎸夊垎椤垫ā寮忔樉绀篖ist锛岄粯璁ゅ�糵alse + pagingEnabled: { + type: Boolean, + default: uni.$u.props.list.pagingEnabled + }, + // 鏄惁鍏佽List婊氬姩 + scrollable: { + type: Boolean, + default: uni.$u.props.list.scrollable + }, + // 鍊煎簲涓烘煇瀛愬厓绱爄d锛坕d涓嶈兘浠ユ暟瀛楀紑澶达級 + scrollIntoView: { + type: String, + default: uni.$u.props.list.scrollIntoView + }, + // 鍦ㄨ缃粴鍔ㄦ潯浣嶇疆鏃朵娇鐢ㄥ姩鐢昏繃娓� + scrollWithAnimation: { + type: Boolean, + default: uni.$u.props.list.scrollWithAnimation + }, + // iOS鐐瑰嚮椤堕儴鐘舵�佹爮銆佸畨鍗撳弻鍑绘爣棰樻爮鏃讹紝婊氬姩鏉¤繑鍥為《閮紝鍙寰俊灏忕▼搴忔湁鏁� + enableBackToTop: { + type: Boolean, + default: uni.$u.props.list.enableBackToTop + }, + // 鍒楄〃鐨勯珮搴� + height: { + type: [String, Number], + default: uni.$u.props.list.height + }, + // 鍒楄〃瀹藉害 + width: { + type: [String, Number], + default: uni.$u.props.list.width + }, + // 鍒楄〃鍓嶅悗棰勬覆鏌撶殑灞忔暟锛�1浠h〃涓�涓睆骞曠殑楂樺害锛�1.5浠h〃1涓崐灞忓箷楂樺害 + preLoadScreen: { + type: [String, Number], + default: uni.$u.props.list.preLoadScreen + } + // vue涓嬶紝鏄惁寮�鍚櫄鎷熷垪琛� + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/u-list.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/u-list.vue new file mode 100644 index 0000000..4447cab --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-list/u-list.vue @@ -0,0 +1,157 @@ +<template> + <!-- #ifdef APP-NVUE --> + <list + class="u-list" + :enableBackToTop="enableBackToTop" + :loadmoreoffset="lowerThreshold" + :showScrollbar="showScrollbar" + :style="[listStyle]" + :offset-accuracy="Number(offsetAccuracy)" + @scroll="onScroll" + @loadmore="scrolltolower" + > + <slot /> + </list> + <!-- #endif --> + <!-- #ifndef APP-NVUE --> + <scroll-view + class="u-list" + :scroll-into-view="scrollIntoView" + :style="[listStyle]" + scroll-y + :scroll-top="Number(scrollTop)" + :lower-threshold="Number(lowerThreshold)" + :upper-threshold="Number(upperThreshold)" + :show-scrollbar="showScrollbar" + :enable-back-to-top="enableBackToTop" + :scroll-with-animation="scrollWithAnimation" + @scroll="onScroll" + @scrolltolower="scrolltolower" + @scrolltoupper="scrolltoupper" + > + <view> + <slot /> + </view> + </scroll-view> + <!-- #endif --> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * List 鍒楄〃 + * @description 璇ョ粍浠朵负楂樻�ц兘鍒楄〃缁勪欢 + * @tutorial https://www.uviewui.com/components/list.html + * @property {Boolean} showScrollbar 鎺у埗鏄惁鍑虹幇婊氬姩鏉★紝浠卬vue鏈夋晥 锛堥粯璁� false 锛� + * @property {String 锝� Number} lowerThreshold 璺濆簳閮ㄥ灏戞椂瑙﹀彂scrolltolower浜嬩欢 锛堥粯璁� 50 锛� + * @property {String 锝� Number} upperThreshold 璺濋《閮ㄥ灏戞椂瑙﹀彂scrolltoupper浜嬩欢锛岄潪nvue鏈夋晥 锛堥粯璁� 0 锛� + * @property {String 锝� Number} scrollTop 璁剧疆绔栧悜婊氬姩鏉′綅缃紙榛樿 0 锛� + * @property {String 锝� Number} offsetAccuracy 鎺у埗 onscroll 浜嬩欢瑙﹀彂鐨勯鐜囷紝浠卬vue鏈夋晥锛堥粯璁� 10 锛� + * @property {Boolean} enableFlex 鍚敤 flexbox 甯冨眬銆傚紑鍚悗锛屽綋鍓嶈妭鐐瑰0鏄庝簡display: flex灏变細鎴愪负flex container锛屽苟浣滅敤浜庡叾瀛╁瓙鑺傜偣锛屼粎寰俊灏忕▼搴忔湁鏁堬紙榛樿 false 锛� + * @property {Boolean} pagingEnabled 鏄惁鎸夊垎椤垫ā寮忔樉绀篖ist锛岋紙榛樿 false 锛� + * @property {Boolean} scrollable 鏄惁鍏佽List婊氬姩锛堥粯璁� true 锛� + * @property {String} scrollIntoView 鍊煎簲涓烘煇瀛愬厓绱爄d锛坕d涓嶈兘浠ユ暟瀛楀紑澶达級 + * @property {Boolean} scrollWithAnimation 鍦ㄨ缃粴鍔ㄦ潯浣嶇疆鏃朵娇鐢ㄥ姩鐢昏繃娓� 锛堥粯璁� false 锛� + * @property {Boolean} enableBackToTop iOS鐐瑰嚮椤堕儴鐘舵�佹爮銆佸畨鍗撳弻鍑绘爣棰樻爮鏃讹紝婊氬姩鏉¤繑鍥為《閮紝鍙寰俊灏忕▼搴忔湁鏁� 锛堥粯璁� false 锛� + * @property {String 锝� Number} height 鍒楄〃鐨勯珮搴� 锛堥粯璁� 0 锛� + * @property {String 锝� Number} width 鍒楄〃瀹藉害 锛堥粯璁� 0 锛� + * @property {String 锝� Number} preLoadScreen 鍒楄〃鍓嶅悗棰勬覆鏌撶殑灞忔暟锛�1浠h〃涓�涓睆骞曠殑楂樺害锛�1.5浠h〃1涓崐灞忓箷楂樺害 锛堥粯璁� 1 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @example <u-list @scrolltolower="scrolltolower"></u-list> + */ + export default { + name: 'u-list', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + watch: { + scrollIntoView(n) { + this.scrollIntoViewById(n) + } + }, + data() { + return { + // 璁板綍鍐呴儴婊氬姩鐨勮窛绂� + innerScrollTop: 0, + // vue涓嬶紝scroll-view鍦ㄤ笂鎷夊姞杞芥椂鐨勫亸绉诲�� + offset: 0, + sys: uni.$u.sys() + } + }, + computed: { + listStyle() { + const style = {}, + addUnit = uni.$u.addUnit + if (this.width != 0) style.width = addUnit(this.width) + if (this.height != 0) style.height = addUnit(this.height) + // 濡傛灉娌℃湁瀹氫箟鍒楄〃楂樺害锛屽垯榛樿浣跨敤灞忓箷楂樺害 + if (!style.height) style.height = addUnit(this.sys.windowHeight, 'px') + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + provide() { + return { + uList: this + } + }, + created() { + this.refs = [] + this.children = [] + this.anchors = [] + }, + mounted() {}, + methods: { + updateOffsetFromChild(top) { + this.offset = top + }, + onScroll(e) { + let scrollTop = 0 + // #ifdef APP-NVUE + scrollTop = e.contentOffset.y + // #endif + // #ifndef APP-NVUE + scrollTop = e.detail.scrollTop + // #endif + this.innerScrollTop = scrollTop + this.$emit('scroll', Math.abs(scrollTop)) + }, + scrollIntoViewById(id) { + // #ifdef APP-NVUE + // 鏍规嵁id鍙傛暟锛屾壘鍒版墍鏈塽-list-item涓尮閰嶇殑鑺傜偣锛屽啀閫氳繃dom妯″潡婊氬姩鍒板搴旂殑浣嶇疆 + const item = this.refs.find(item => item.$refs[id] ? true : false) + dom.scrollToElement(item.$refs[id], { + // 鏄惁闇�瑕佹粴鍔ㄥ姩鐢� + animated: this.scrollWithAnimation + }) + // #endif + }, + // 婊氬姩鍒板簳閮ㄨЕ鍙戜簨浠� + scrolltolower(e) { + uni.$u.sleep(30).then(() => { + this.$emit('scrolltolower') + }) + }, + // #ifndef APP-NVUE + // 婊氬姩鍒板簳閮ㄦ椂瑙﹀彂锛岄潪nvue鏈夋晥 + scrolltoupper(e) { + uni.$u.sleep(30).then(() => { + this.$emit('scrolltoupper') + // 杩欎竴鍙ュ緢閲嶈锛岃兘缁濆淇濊瘉鍦ㄦ�у姛鑳介殰纰嶇殑webview锛屾粴鍔ㄦ潯鍒伴《鏃讹紝鍙栨秷鍋忕Щ鍊硷紝璁╅〉闈㈢疆椤� + this.offset = 0 + }) + } + // #endif + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-list { + @include flex(column); + + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/props.js new file mode 100644 index 0000000..c35524e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 鏄惁鏄剧ず缁勪欢 + show: { + type: Boolean, + default: uni.$u.props.loadingIcon.show + }, + // 棰滆壊 + color: { + type: String, + default: uni.$u.props.loadingIcon.color + }, + // 鎻愮ず鏂囧瓧棰滆壊 + textColor: { + type: String, + default: uni.$u.props.loadingIcon.textColor + }, + // 鏂囧瓧鍜屽浘鏍囨槸鍚﹀瀭鐩存帓鍒� + vertical: { + type: Boolean, + default: uni.$u.props.loadingIcon.vertical + }, + // 妯″紡閫夋嫨锛宑ircle-鍦嗗舰锛宻pinner-鑺辨湹褰紝semicircle-鍗婂渾褰� + mode: { + type: String, + default: uni.$u.props.loadingIcon.mode + }, + // 鍥炬爣澶у皬锛屽崟浣嶉粯璁x + size: { + type: [String, Number], + default: uni.$u.props.loadingIcon.size + }, + // 鏂囧瓧澶у皬 + textSize: { + type: [String, Number], + default: uni.$u.props.loadingIcon.textSize + }, + // 鏂囧瓧鍐呭 + text: { + type: [String, Number], + default: uni.$u.props.loadingIcon.text + }, + // 鍔ㄧ敾妯″紡 + timingFunction: { + type: String, + default: uni.$u.props.loadingIcon.timingFunction + }, + // 鍔ㄧ敾鎵ц鍛ㄦ湡鏃堕棿 + duration: { + type: [String, Number], + default: uni.$u.props.loadingIcon.duration + }, + // mode=circle鏃剁殑鏆楄竟棰滆壊 + inactiveColor: { + type: String, + default: uni.$u.props.loadingIcon.inactiveColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/u-loading-icon.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/u-loading-icon.vue new file mode 100644 index 0000000..2ede5c3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-icon/u-loading-icon.vue @@ -0,0 +1,343 @@ +<template> + <view + class="u-loading-icon" + :style="[$u.addStyle(customStyle)]" + :class="[vertical && 'u-loading-icon--vertical']" + v-if="show" + > + <view + v-if="!webviewHide" + class="u-loading-icon__spinner" + :class="[`u-loading-icon__spinner--${mode}`]" + ref="ani" + :style="{ + color: color, + width: $u.addUnit(size), + height: $u.addUnit(size), + borderTopColor: color, + borderBottomColor: otherBorderColor, + borderLeftColor: otherBorderColor, + borderRightColor: otherBorderColor, + 'animation-duration': `${duration}ms`, + 'animation-timing-function': mode === 'semicircle' || mode === 'circle' ? timingFunction : '' + }" + > + <block v-if="mode === 'spinner'"> + <!-- #ifndef APP-NVUE --> + <view + v-for="(item, index) in array12" + :key="index" + class="u-loading-icon__dot" + > + </view> + <!-- #endif --> + <!-- #ifdef APP-NVUE --> + <!-- 姝ょ粍浠跺唴閮ㄥ浘鏍囬儴鍒嗘棤娉曡缃楂橈紝鍗充娇閫氳繃width鍜宧eight閰嶇疆浜嗕篃鏃犳晥 --> + <loading-indicator + v-if="!webviewHide" + class="u-loading-indicator" + :animating="true" + :style="{ + color: color, + width: $u.addUnit(size), + height: $u.addUnit(size) + }" + /> + <!-- #endif --> + </block> + </view> + <text + v-if="text" + class="u-loading-icon__text" + :style="{ + fontSize: $u.addUnit(textSize), + color: textColor, + }" + >{{text}}</text> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const animation = weex.requireModule('animation'); + // #endif + /** + * loading 鍔犺浇鍔ㄧ敾 + * @description 璀︽缁勪欢涓轰竴涓皬鍔ㄧ敾锛岀洰鍓嶇敤鍦╱View鐨刲oadmore鍔犺浇鏇村鍜宻witch寮�鍏崇瓑缁勪欢鐨勬鍦ㄥ姞杞界姸鎬佸満鏅�� + * @tutorial https://www.uviewui.com/components/loading.html + * @property {Boolean} show 鏄惁鏄剧ず缁勪欢 (榛樿 true) + * @property {String} color 鍔ㄧ敾娲诲姩鍖哄煙鐨勯鑹诧紝鍙 mode = flower 妯″紡鏈夋晥锛堥粯璁olor['u-tips-color']锛� + * @property {String} textColor 鎻愮ず鏂囨湰鐨勯鑹诧紙榛樿color['u-tips-color']锛� + * @property {Boolean} vertical 鏂囧瓧鍜屽浘鏍囨槸鍚﹀瀭鐩存帓鍒� (榛樿 false ) + * @property {String} mode 妯″紡閫夋嫨锛岃瀹樼綉璇存槑锛堥粯璁� 'circle' 锛� + * @property {String | Number} size 鍔犺浇鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px 锛堥粯璁� 24 锛� + * @property {String | Number} textSize 鏂囧瓧澶у皬锛堥粯璁� 15 锛� + * @property {String | Number} text 鏂囧瓧鍐呭 + * @property {String} timingFunction 鍔ㄧ敾妯″紡 锛堥粯璁� 'ease-in-out' 锛� + * @property {String | Number} duration 鍔ㄧ敾鎵ц鍛ㄦ湡鏃堕棿锛堥粯璁� 1200锛� + * @property {String} inactiveColor mode=circle鏃剁殑鏆楄竟棰滆壊 + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @example <u-loading mode="circle"></u-loading> + */ + export default { + name: 'u-loading-icon', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // Array.form鍙互閫氳繃涓�涓吉鏁扮粍瀵硅薄鍒涘缓鎸囧畾闀垮害鐨勬暟缁� + // https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from + array12: Array.from({ + length: 12 + }), + // 杩欓噷闇�瑕佽缃粯璁ゅ�间负360锛屽惁鍒欏湪瀹夊崜nvue涓婏紝浼氬欢杩熶竴涓猟uration鍛ㄦ湡鍚庢墠鎵ц + // 鍦╥OS nvue涓婏紝鍒欎細涓�寮�濮嬮粯璁ゆ墽琛屼袱涓懆鏈熺殑鍔ㄧ敾 + aniAngel: 360, // 鍔ㄧ敾鏃嬭浆瑙掑害 + webviewHide: false, // 鐩戝惉webview鐨勭姸鎬侊紝濡傛灉闅愯棌浜嗛〉闈紝鍒欏仠姝㈠姩鐢伙紝浠ュ厤鎬ц兘娑堣�� + loading: false, // 鏄惁杩愯涓紝閽堝nvue浣跨敤 + } + }, + computed: { + // 褰撲负circle绫诲瀷鏃讹紝缁欏叾鍙﹀涓夎竟璁剧疆涓�涓洿杞讳竴浜涚殑棰滆壊 + // 涔嬫墍浠ラ渶瑕佽繖涔堝仛鐨勫師鍥犳槸锛屾瘮濡傜埗缁勪欢浼犱簡color涓虹孩鑹诧紝閭d箞闇�瑕佸彟澶栫殑涓変釜杈逛负娴呯孩鑹� + // 鑰屼笉鑳芥槸鍥哄畾鐨勬煇涓�涓叾浠栭鑹�(鍥犱负杩欎釜鍥哄畾鐨勯鑹插彲鑳芥祬钃濓紝瀵艰嚧鏁堟灉娌℃湁閭d箞缁嗚吇鑹ソ) + otherBorderColor() { + const lightColor = uni.$u.colorGradient(this.color, '#ffffff', 100)[80] + if (this.mode === 'circle') { + return this.inactiveColor ? this.inactiveColor : lightColor + } else { + return 'transparent' + } + // return this.mode === 'circle' ? this.inactiveColor ? this.inactiveColor : lightColor : 'transparent' + } + }, + watch: { + show(n) { + // nvue涓紝show涓簍rue锛屼笖涓洪潪loading鐘舵�侊紝灏遍噸鏂版墽琛屽姩鐢绘ā鍧� + // #ifdef APP-NVUE + if (n && !this.loading) { + setTimeout(() => { + this.startAnimate() + }, 30) + } + // #endif + } + }, + mounted() { + this.init() + }, + methods: { + init() { + setTimeout(() => { + // #ifdef APP-NVUE + this.show && this.nvueAnimate() + // #endif + // #ifdef APP-PLUS + this.show && this.addEventListenerToWebview() + // #endif + }, 20) + }, + // 鐩戝惉webview鐨勬樉绀轰笌闅愯棌 + addEventListenerToWebview() { + // webview鐨勫爢鏍� + const pages = getCurrentPages() + // 褰撳墠椤甸潰 + const page = pages[pages.length - 1] + // 褰撳墠椤甸潰鐨剋ebview瀹炰緥 + const currentWebview = page.$getAppWebview() + // 鐩戝惉webview鐨勬樉绀轰笌闅愯棌锛屼粠鑰屽仠姝㈡垨鑰呭紑濮嬪姩鐢�(涓轰簡鎬ц兘) + currentWebview.addEventListener('hide', () => { + this.webviewHide = true + }) + currentWebview.addEventListener('show', () => { + this.webviewHide = false + }) + }, + // #ifdef APP-NVUE + nvueAnimate() { + // nvue涓嬶紝闈瀞pinner绫诲瀷鏃舵墠闇�瑕佹棆杞紝鍥犱负nvue鐨剆pinner绫诲瀷锛屼娇鐢ㄤ簡weex鐨� + // loading-indicator缁勪欢锛岃嚜甯︽棆杞姛鑳� + this.mode !== 'spinner' && this.startAnimate() + }, + // 鎵цnvue鐨刟nimate妯″潡鍔ㄧ敾 + startAnimate() { + this.loading = true + const ani = this.$refs.ani + if (!ani) return + animation.transition(ani, { + // 杩涜瑙掑害鏃嬭浆 + styles: { + transform: `rotate(${this.aniAngel}deg)`, + transformOrigin: 'center center' + }, + duration: this.duration, + timingFunction: this.timingFunction, + // delay: 10 + }, () => { + // 姣忔澧炲姞360deg锛屼负浜嗚鍏堕噸鏂版棆杞竴鍛� + this.aniAngel += 360 + // 鍔ㄧ敾缁撴潫鍚庯紝缁х画寰幆鎵ц鍔ㄧ敾锛岄渶瑕佸悓鏃跺垽鏂瓀ebviewHide鍙橀噺 + // nvue瀹夊崜锛岄〉闈㈤殣钘忓悗渚濈劧浼氱户缁墽琛宻tartAnimate鏂规硶 + this.show && !this.webviewHide ? this.startAnimate() : this.loading = false + }) + } + // #endif + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-loading-icon-color: #c8c9cc !default; + $u-loading-icon-text-margin-left:4px !default; + $u-loading-icon-text-color:$u-content-color !default; + $u-loading-icon-text-font-size:14px !default; + $u-loading-icon-text-line-height:20px !default; + $u-loading-width:30px !default; + $u-loading-height:30px !default; + $u-loading-max-width:100% !default; + $u-loading-max-height:100% !default; + $u-loading-semicircle-border-width: 2px !default; + $u-loading-semicircle-border-color:transparent !default; + $u-loading-semicircle-border-top-right-radius: 100px !default; + $u-loading-semicircle-border-top-left-radius: 100px !default; + $u-loading-semicircle-border-bottom-left-radius: 100px !default; + $u-loading-semicircle-border-bottom-right-radiu: 100px !default; + $u-loading-semicircle-border-style: solid !default; + $u-loading-circle-border-top-right-radius: 100px !default; + $u-loading-circle-border-top-left-radius: 100px !default; + $u-loading-circle-border-bottom-left-radius: 100px !default; + $u-loading-circle-border-bottom-right-radiu: 100px !default; + $u-loading-circle-border-width:2px !default; + $u-loading-circle-border-top-color:#e5e5e5 !default; + $u-loading-circle-border-right-color:$u-loading-circle-border-top-color !default; + $u-loading-circle-border-bottom-color:$u-loading-circle-border-top-color !default; + $u-loading-circle-border-left-color:$u-loading-circle-border-top-color !default; + $u-loading-circle-border-style:solid !default; + $u-loading-icon-host-font-size:0px !default; + $u-loading-icon-host-line-height:1 !default; + $u-loading-icon-vertical-margin:6px 0 0 !default; + $u-loading-icon-dot-top:0 !default; + $u-loading-icon-dot-left:0 !default; + $u-loading-icon-dot-width:100% !default; + $u-loading-icon-dot-height:100% !default; + $u-loading-icon-dot-before-width:2px !default; + $u-loading-icon-dot-before-height:25% !default; + $u-loading-icon-dot-before-margin:0 auto !default; + $u-loading-icon-dot-before-background-color:currentColor !default; + $u-loading-icon-dot-before-border-radius:40% !default; + + .u-loading-icon { + /* #ifndef APP-NVUE */ + // display: inline-flex; + /* #endif */ + flex-direction: row; + align-items: center; + justify-content: center; + color: $u-loading-icon-color; + + &__text { + margin-left: $u-loading-icon-text-margin-left; + color: $u-loading-icon-text-color; + font-size: $u-loading-icon-text-font-size; + line-height: $u-loading-icon-text-line-height; + } + + &__spinner { + width: $u-loading-width; + height: $u-loading-height; + position: relative; + /* #ifndef APP-NVUE */ + box-sizing: border-box; + max-width: $u-loading-max-width; + max-height: $u-loading-max-height; + animation: u-rotate 1s linear infinite; + /* #endif */ + } + + &__spinner--semicircle { + border-width: $u-loading-semicircle-border-width; + border-color: $u-loading-semicircle-border-color; + border-top-right-radius: $u-loading-semicircle-border-top-right-radius; + border-top-left-radius: $u-loading-semicircle-border-top-left-radius; + border-bottom-left-radius: $u-loading-semicircle-border-bottom-left-radius; + border-bottom-right-radius: $u-loading-semicircle-border-bottom-right-radiu; + border-style: $u-loading-semicircle-border-style; + } + + &__spinner--circle { + border-top-right-radius: $u-loading-circle-border-top-right-radius; + border-top-left-radius: $u-loading-circle-border-top-left-radius; + border-bottom-left-radius: $u-loading-circle-border-bottom-left-radius; + border-bottom-right-radius: $u-loading-circle-border-bottom-right-radiu; + border-width: $u-loading-circle-border-width; + border-top-color: $u-loading-circle-border-top-color; + border-right-color: $u-loading-circle-border-right-color; + border-bottom-color: $u-loading-circle-border-bottom-color; + border-left-color: $u-loading-circle-border-left-color; + border-style: $u-loading-circle-border-style; + } + + &--vertical { + flex-direction: column + } + } + + /* #ifndef APP-NVUE */ + :host { + font-size: $u-loading-icon-host-font-size; + line-height: $u-loading-icon-host-line-height; + } + + .u-loading-icon { + &__spinner--spinner { + animation-timing-function: steps(12) + } + + &__text:empty { + display: none + } + + &--vertical &__text { + margin: $u-loading-icon-vertical-margin; + color: $u-content-color; + } + + &__dot { + position: absolute; + top: $u-loading-icon-dot-top; + left: $u-loading-icon-dot-left; + width: $u-loading-icon-dot-width; + height: $u-loading-icon-dot-height; + + &:before { + display: block; + width: $u-loading-icon-dot-before-width; + height: $u-loading-icon-dot-before-height; + margin: $u-loading-icon-dot-before-margin; + background-color: $u-loading-icon-dot-before-background-color; + border-radius: $u-loading-icon-dot-before-border-radius; + content: " " + } + } + } + + @for $i from 1 through 12 { + .u-loading-icon__dot:nth-of-type(#{$i}) { + transform: rotate($i * 30deg); + opacity: 1 - 0.0625 * ($i - 1); + } + } + + @keyframes u-rotate { + 0% { + transform: rotate(0deg) + } + + to { + transform: rotate(1turn) + } + } + + /* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/props.js new file mode 100644 index 0000000..e239b61 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/props.js @@ -0,0 +1,49 @@ +export default { + props: { + // 鎻愮ず鍐呭 + loadingText: { + type: [String, Number], + default: uni.$u.props.loadingPage.loadingText + }, + // 鏂囧瓧涓婃柟鐢ㄤ簬鏇挎崲loading鍔ㄧ敾鐨勫浘鐗� + image: { + type: String, + default: uni.$u.props.loadingPage.image + }, + // 鍔犺浇鍔ㄧ敾鐨勬ā寮忥紝circle-鍦嗗舰锛宻pinner-鑺辨湹褰紝semicircle-鍗婂渾褰� + loadingMode: { + type: String, + default: uni.$u.props.loadingPage.loadingMode + }, + // 鏄惁鍔犺浇涓� + loading: { + type: Boolean, + default: uni.$u.props.loadingPage.loading + }, + // 鑳屾櫙鑹� + bgColor: { + type: String, + default: uni.$u.props.loadingPage.bgColor + }, + // 鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.loadingPage.color + }, + // 鏂囧瓧澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.loadingPage.fontSize + }, + // 鍥炬爣澶у皬 + iconSize: { + type: [String, Number], + default: uni.$u.props.loadingPage.fontSize + }, + // 鍔犺浇涓浘鏍囩殑棰滆壊锛屽彧鑳絩gb鎴栬�呭崄鍏繘鍒堕鑹插�� + loadingColor: { + type: String, + default: uni.$u.props.loadingPage.loadingColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue new file mode 100644 index 0000000..03a78ad --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue @@ -0,0 +1,115 @@ +<template> + <u-transition + :show="loading" + :custom-style="{ + position: 'fixed', + top: 0, + left: 0, + right: 0, + bottom: 0, + backgroundColor: bgColor, + display: 'flex', + }" + > + <view class="u-loading-page"> + <view class="u-loading-page__warpper"> + <view class="u-loading-page__warpper__loading-icon"> + <image + v-if="image" + :src="image" + class="u-loading-page__warpper__loading-icon__img" + mode="widthFit" + :style="{ + width: $u.addUnit(iconSize), + height: $u.addUnit(iconSize) + }" + ></image> + <u-loading-icon + v-else + :mode="loadingMode" + :size="$u.addUnit(iconSize)" + :color="loadingColor" + ></u-loading-icon> + </view> + <slot> + <text + class="u-loading-page__warpper__text" + :style="{ + fontSize: $u.addUnit(fontSize), + color: color, + }" + >{{ loadingText }}</text + > + </slot> + </view> + </view> + </u-transition> +</template> + +<script> +import props from "./props.js"; +/** + * loadingPage 鍔犺浇鍔ㄧ敾 + * @description 璀︽缁勪欢涓轰竴涓皬鍔ㄧ敾锛岀洰鍓嶇敤鍦╱View鐨刲oadmore鍔犺浇鏇村鍜宻witch寮�鍏崇瓑缁勪欢鐨勬鍦ㄥ姞杞界姸鎬佸満鏅�� + * @tutorial https://www.uviewui.com/components/loading.html + * @property {String | Number} loadingText 鎻愮ず鍐呭 (榛樿 '姝e湪鍔犺浇' ) + * @property {String} image 鏂囧瓧涓婃柟鐢ㄤ簬鏇挎崲loading鍔ㄧ敾鐨勫浘鐗� + * @property {String} loadingMode 鍔犺浇鍔ㄧ敾鐨勬ā寮忥紝circle-鍦嗗舰锛宻pinner-鑺辨湹褰紝semicircle-鍗婂渾褰� 锛堥粯璁� 'circle' 锛� + * @property {Boolean} loading 鏄惁鍔犺浇涓� 锛堥粯璁� false 锛� + * @property {String} bgColor 鑳屾櫙鑹� 锛堥粯璁� '#ffffff' 锛� + * @property {String} color 鏂囧瓧棰滆壊 锛堥粯璁� '#C8C8C8' 锛� + * @property {String | Number} fontSize 鏂囧瓧澶у皬 锛堥粯璁� 19 锛� + * @property {String | Number} iconSize 鍥炬爣澶у皬 锛堥粯璁� 28 锛� + * @property {String} loadingColor 鍔犺浇涓浘鏍囩殑棰滆壊锛屽彧鑳絩gb鎴栬�呭崄鍏繘鍒堕鑹插�� 锛堥粯璁� '#C8C8C8' 锛� + * @property {Object} customStyle 鑷畾涔夋牱寮� + * @example <u-loading mode="circle"></u-loading> + */ +export default { + name: "u-loading-page", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return {}; + }, + methods: {}, +}; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +$text-color: rgb(200, 200, 200) !default; +$text-size: 19px !default; +$u-loading-icon-margin-bottom: 10px !default; + +.u-loading-page { + @include flex(column); + flex: 1; + align-items: center; + justify-content: center; + + &__warpper { + margin-top: -150px; + justify-content: center; + align-items: center; + /* #ifndef APP-NVUE */ + color: $text-color; + font-size: $text-size; + /* #endif */ + @include flex(column); + + &__loading-icon { + margin-bottom: $u-loading-icon-margin-bottom; + + &__img { + width: 40px; + height: 40px; + } + } + + &__text { + font-size: $text-size; + color: $text-color; + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/props.js new file mode 100644 index 0000000..1e67d89 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/props.js @@ -0,0 +1,94 @@ +export default { + props: { + // 缁勪欢鐘舵�侊紝loadmore-鍔犺浇鍓嶇殑鐘舵�侊紝loading-鍔犺浇涓殑鐘舵�侊紝nomore-娌℃湁鏇村鐨勭姸鎬� + status: { + type: String, + default: uni.$u.props.loadmore.status + }, + // 缁勪欢鑳屾櫙鑹� + bgColor: { + type: String, + default: uni.$u.props.loadmore.bgColor + }, + // 鏄惁鏄剧ず鍔犺浇涓殑鍥炬爣 + icon: { + type: Boolean, + default: uni.$u.props.loadmore.icon + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.loadmore.fontSize + }, + // 鍥炬爣澶у皬 + iconSize: { + type: [String, Number], + default: uni.$u.props.loadmore.iconSize + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.loadmore.color + }, + // 鍔犺浇涓姸鎬佺殑鍥炬爣锛宻pinner-鑺辨湹鐘跺浘鏍囷紝circle-鍦嗗湀鐘讹紝semicircle-鍗婂渾 + loadingIcon: { + type: String, + default: uni.$u.props.loadmore.loadingIcon + }, + // 鍔犺浇鍓嶇殑鎻愮ず璇� + loadmoreText: { + type: String, + default: uni.$u.props.loadmore.loadmoreText + }, + // 鍔犺浇涓彁绀鸿 + loadingText: { + type: String, + default: uni.$u.props.loadmore.loadingText + }, + // 娌℃湁鏇村鐨勬彁绀鸿 + nomoreText: { + type: String, + default: uni.$u.props.loadmore.nomoreText + }, + // 鍦ㄢ�滄病鏈夋洿澶氣�濈姸鎬佷笅锛屾槸鍚︽樉绀虹矖鐐� + isDot: { + type: Boolean, + default: uni.$u.props.loadmore.isDot + }, + // 鍔犺浇涓浘鏍囩殑棰滆壊 + iconColor: { + type: String, + default: uni.$u.props.loadmore.iconColor + }, + // 涓婅竟璺� + marginTop: { + type: [String, Number], + default: uni.$u.props.loadmore.marginTop + }, + // 涓嬭竟璺� + marginBottom: { + type: [String, Number], + default: uni.$u.props.loadmore.marginBottom + }, + // 楂樺害锛屽崟浣峱x + height: { + type: [String, Number], + default: uni.$u.props.loadmore.height + }, + // 鏄惁鏄剧ず宸﹁竟鍒嗗壊绾� + line: { + type: Boolean, + default: uni.$u.props.loadmore.line + }, + // 绾挎潯棰滆壊 + lineColor: { + type: String, + default: uni.$u.props.loadmore.lineColor + }, + // 鏄惁铏氱嚎锛宼rue-铏氱嚎锛宖alse-瀹炵嚎 + dashed: { + type: Boolean, + default: uni.$u.props.loadmore.dashed + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue new file mode 100644 index 0000000..73c79fe --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue @@ -0,0 +1,150 @@ +<template> + <view + class="u-loadmore" + :style="[ + $u.addStyle(customStyle), + { + backgroundColor: bgColor, + marginBottom: $u.addUnit(marginBottom), + marginTop: $u.addUnit(marginTop), + height: $u.addUnit(height), + }, + ]" + > + <u-line + length="140rpx" + :color="lineColor" + :hairline="false" + :dashed="dashed" + v-if="line" + ></u-line> + <!-- 鍔犺浇涓拰娌℃湁鏇村鐨勭姸鎬佹墠鏄剧ず涓よ竟鐨勬í绾� --> + <view + :class="status == 'loadmore' || status == 'nomore' ? 'u-more' : ''" + class="u-loadmore__content" + > + <view + class="u-loadmore__content__icon-wrap" + v-if="status === 'loading' && icon" + > + <u-loading-icon + :color="iconColor" + :size="iconSize" + :mode="loadingIcon" + ></u-loading-icon> + </view> + <!-- 濡傛灉娌℃湁鏇村鐨勭姸鎬佷笅锛屾樉绀哄唴瀹逛负dot锛堢矖鐐癸級锛屽姞杞界壒瀹氭牱寮� --> + <text + class="u-line-1" + :style="[loadTextStyle]" + :class="[(status == 'nomore' && isDot == true) ? 'u-loadmore__content__dot-text' : 'u-loadmore__content__text']" + @tap="loadMore" + >{{ showText }}</text> + </view> + <u-line + length="140rpx" + :color="lineColor" + :hairline="false" + :dashed="dashed" + v-if="line" + ></u-line> + </view> +</template> + +<script> + import props from './props.js'; + + /** + * loadmore 鍔犺浇鏇村 + * @description 姝ょ粍浠朵竴鑸敤浜庢爣璇嗛〉闈㈠簳閮ㄥ姞杞芥暟鎹椂鐨勭姸鎬併�� + * @tutorial https://www.uviewui.com/components/loadMore.html + * @property {String} status 缁勪欢鐘舵�侊紙榛樿 'loadmore' 锛� + * @property {String} bgColor 缁勪欢鑳屾櫙棰滆壊锛屽湪椤甸潰鏄潪鐧借壊鏃朵細鐢ㄥ埌锛堥粯璁� 'transparent' 锛� + * @property {Boolean} icon 鍔犺浇涓椂鏄惁鏄剧ず鍥炬爣锛堥粯璁� true 锛� + * @property {String | Number} fontSize 瀛椾綋澶у皬锛堥粯璁� 14 锛� + * @property {String | Number} iconSize 鍥炬爣澶у皬锛堥粯璁� 17 锛� + * @property {String} color 瀛椾綋棰滆壊锛堥粯璁� '#606266' 锛� + * @property {String} loadingIcon 鍔犺浇鍥炬爣锛堥粯璁� 'circle' 锛� + * @property {String} loadmoreText 鍔犺浇鍓嶇殑鎻愮ず璇紙榛樿 '鍔犺浇鏇村' 锛� + * @property {String} loadingText 鍔犺浇涓彁绀鸿锛堥粯璁� '姝e湪鍔犺浇...' 锛� + * @property {String} nomoreText 娌℃湁鏇村鐨勬彁绀鸿锛堥粯璁� '娌℃湁鏇村浜�' 锛� + * @property {Boolean} isDot 鍒颁笂涓�涓浉閭诲厓绱犵殑璺濈 锛堥粯璁� false 锛� + * @property {String} iconColor 鍔犺浇涓浘鏍囩殑棰滆壊 锛堥粯璁� '#b7b7b7' 锛� + * @property {String} lineColor 绾挎潯棰滆壊锛堥粯璁� #E6E8EB 锛� + * @property {String | Number} marginTop 涓婅竟璺� 锛堥粯璁� 10 锛� + * @property {String | Number} marginBottom 涓嬭竟璺� 锛堥粯璁� 10 锛� + * @property {String | Number} height 楂樺害锛屽崟浣峱x 锛堥粯璁� 'auto' 锛� + * @property {Boolean} line 鏄惁鏄剧ず宸﹁竟鍒嗗壊绾� 锛堥粯璁� false 锛� + * @property {Boolean} dashed // 鏄惁铏氱嚎锛宼rue-铏氱嚎锛宖alse-瀹炵嚎 锛堥粯璁� false 锛� + * @event {Function} loadmore status涓簂oadmore鏃讹紝鐐瑰嚮缁勪欢浼氬彂鍑烘浜嬩欢 + * @example <u-loadmore :status="status" icon-type="iconType" load-text="loadText" /> + */ + export default { + name: "u-loadmore", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + // 绮楃偣 + dotText: "鈼�" + } + }, + computed: { + // 鍔犺浇鐨勬枃瀛楁樉绀虹殑鏍峰紡 + loadTextStyle() { + return { + color: this.color, + fontSize: uni.$u.addUnit(this.fontSize), + lineHeight: uni.$u.addUnit(this.fontSize), + backgroundColor: this.bgColor, + } + }, + // 鏄剧ず鐨勬彁绀烘枃瀛� + showText() { + let text = ''; + if (this.status == 'loadmore') text = this.loadmoreText + else if (this.status == 'loading') text = this.loadingText + else if (this.status == 'nomore' && this.isDot) text = this.dotText; + else text = this.nomoreText; + return text; + } + }, + methods: { + loadMore() { + // 鍙湁鍦ㄢ�滃姞杞芥洿澶氣�濈殑鐘舵�佷笅鎵嶅彂閫佺偣鍑讳簨浠讹紝鍐呭涓嶆弧涓�灞忔椂鏃犳硶瑙﹀彂搴曢儴涓婃媺浜嬩欢锛屾墍浠ラ渶瑕佺偣鍑绘潵瑙﹀彂 + if (this.status == 'loadmore') this.$emit('loadmore'); + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-loadmore { + @include flex(row); + align-items: center; + justify-content: center; + flex: 1; + + &__content { + margin: 0 15px; + @include flex(row); + align-items: center; + justify-content: center; + + &__icon-wrap { + margin-right: 8px; + } + + &__text { + font-size: 14px; + color: $u-content-color; + } + + &__dot-text { + font-size: 15px; + color: $u-tips-color; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/props.js new file mode 100644 index 0000000..f76672c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/props.js @@ -0,0 +1,84 @@ +export default { + props: { + // 鏄惁灞曠ずmodal + show: { + type: Boolean, + default: uni.$u.props.modal.show + }, + // 鏍囬 + title: { + type: [String], + default: uni.$u.props.modal.title + }, + // 寮圭獥鍐呭 + content: { + type: String, + default: uni.$u.props.modal.content + }, + // 纭鏂囨 + confirmText: { + type: String, + default: uni.$u.props.modal.confirmText + }, + // 鍙栨秷鏂囨 + cancelText: { + type: String, + default: uni.$u.props.modal.cancelText + }, + // 鏄惁鏄剧ず纭鎸夐挳 + showConfirmButton: { + type: Boolean, + default: uni.$u.props.modal.showConfirmButton + }, + // 鏄惁鏄剧ず鍙栨秷鎸夐挳 + showCancelButton: { + type: Boolean, + default: uni.$u.props.modal.showCancelButton + }, + // 纭鎸夐挳棰滆壊 + confirmColor: { + type: String, + default: uni.$u.props.modal.confirmColor + }, + // 鍙栨秷鏂囧瓧棰滆壊 + cancelColor: { + type: String, + default: uni.$u.props.modal.cancelColor + }, + // 瀵硅皟纭鍜屽彇娑堢殑浣嶇疆 + buttonReverse: { + type: Boolean, + default: uni.$u.props.modal.buttonReverse + }, + // 鏄惁寮�鍚缉鏀炬晥鏋� + zoom: { + type: Boolean, + default: uni.$u.props.modal.zoom + }, + // 鏄惁寮傛鍏抽棴锛屽彧瀵圭‘瀹氭寜閽湁鏁� + asyncClose: { + type: Boolean, + default: uni.$u.props.modal.asyncClose + }, + // 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴modal + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.modal.closeOnClickOverlay + }, + // 缁欎竴涓礋鐨刴argin-top锛屽線涓婂亸绉伙紝閬垮厤鍜岄敭鐩橀噸鍚堢殑鎯呭喌 + negativeTop: { + type: [String, Number], + default: uni.$u.props.modal.negativeTop + }, + // modal瀹藉害锛屼笉鏀寔鐧惧垎姣旓紝鍙互鏁板�硷紝px锛宺px鍗曚綅 + width: { + type: [String, Number], + default: uni.$u.props.modal.width + }, + // 纭鎸夐挳鐨勬牱寮忥紝circle-鍦嗗舰锛宻quare-鏂瑰舰锛屽璁剧疆锛屽皢涓嶄細鏄剧ず鍙栨秷鎸夐挳 + confirmButtonShape: { + type: String, + default: uni.$u.props.modal.confirmButtonShape + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/u-modal.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/u-modal.vue new file mode 100644 index 0000000..4c37ae2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-modal/u-modal.vue @@ -0,0 +1,227 @@ +<template> + <u-popup + mode="center" + :zoom="zoom" + :show="show" + :customStyle="{ + borderRadius: '6px', + overflow: 'hidden', + marginTop: `-${$u.addUnit(negativeTop)}` + }" + :closeOnClickOverlay="closeOnClickOverlay" + :safeAreaInsetBottom="false" + :duration="400" + @click="clickHandler" + > + <view + class="u-modal" + :style="{ + width: $u.addUnit(width), + }" + > + <text + class="u-modal__title" + v-if="title" + >{{ title }}</text> + <view + class="u-modal__content" + :style="{ + paddingTop: `${title ? 12 : 25}px` + }" + > + <slot> + <text class="u-modal__content__text">{{ content }}</text> + </slot> + </view> + <view + class="u-modal__button-group--confirm-button" + v-if="$slots.confirmButton" + > + <slot name="confirmButton"></slot> + </view> + <template v-else> + <u-line></u-line> + <view + class="u-modal__button-group" + :style="{ + flexDirection: buttonReverse ? 'row-reverse' : 'row' + }" + > + <view + class="u-modal__button-group__wrapper u-modal__button-group__wrapper--cancel" + :hover-stay-time="150" + hover-class="u-modal__button-group__wrapper--hover" + :class="[showCancelButton && !showConfirmButton && 'u-modal__button-group__wrapper--only-cancel']" + v-if="showCancelButton" + @tap="cancelHandler" + > + <text + class="u-modal__button-group__wrapper__text" + :style="{ + color: cancelColor + }" + >{{ cancelText }}</text> + </view> + <u-line + direction="column" + v-if="showConfirmButton && showCancelButton" + ></u-line> + <view + class="u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm" + :hover-stay-time="150" + hover-class="u-modal__button-group__wrapper--hover" + :class="[!showCancelButton && showConfirmButton && 'u-modal__button-group__wrapper--only-confirm']" + v-if="showConfirmButton" + @tap="confirmHandler" + > + <u-loading-icon v-if="loading"></u-loading-icon> + <text + v-else + class="u-modal__button-group__wrapper__text" + :style="{ + color: confirmColor + }" + >{{ confirmText }}</text> + </view> + </view> + </template> + </view> + </u-popup> +</template> + +<script> + import props from './props.js'; + /** + * Modal 妯℃�佹 + * @description 寮瑰嚭妯℃�佹锛屽父鐢ㄤ簬娑堟伅鎻愮ず銆佹秷鎭‘璁ゃ�佸湪褰撳墠椤甸潰鍐呭畬鎴愮壒瀹氱殑浜や簰鎿嶄綔銆� + * @tutorial https://www.uviewui.com/components/modul.html + * @property {Boolean} show 鏄惁鏄剧ず妯℃�佹锛岃璧嬪�肩粰show 锛堥粯璁� false 锛� + * @property {String} title 鏍囬鍐呭 + * @property {String} content 妯℃�佹鍐呭锛屽浼犲叆slot鍐呭锛屽垯姝ゅ弬鏁版棤鏁� + * @property {String} confirmText 纭鎸夐挳鐨勬枃瀛� 锛堥粯璁� '纭' 锛� + * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬枃瀛� 锛堥粯璁� '鍙栨秷' 锛� + * @property {Boolean} showConfirmButton 鏄惁鏄剧ず纭鎸夐挳 锛堥粯璁� true 锛� + * @property {Boolean} showCancelButton 鏄惁鏄剧ず鍙栨秷鎸夐挳 锛堥粯璁� false 锛� + * @property {String} confirmColor 纭鎸夐挳鐨勯鑹� 锛堥粯璁� '#2979ff' 锛� + * @property {String} cancelColor 鍙栨秷鎸夐挳鐨勯鑹� 锛堥粯璁� '#606266' 锛� + * @property {Boolean} buttonReverse 瀵硅皟纭鍜屽彇娑堢殑浣嶇疆 锛堥粯璁� false 锛� + * @property {Boolean} zoom 鏄惁寮�鍚缉鏀炬ā寮� 锛堥粯璁� true 锛� + * @property {Boolean} asyncClose 鏄惁寮傛鍏抽棴锛屽彧瀵圭‘瀹氭寜閽湁鏁堬紝瑙佷笂鏂硅鏄� 锛堥粯璁� false 锛� + * @property {Boolean} closeOnClickOverlay 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴Modal 锛堥粯璁� false 锛� + * @property {String | Number} negativeTop 寰�涓婂亸绉荤殑鍊硷紝缁欎竴涓礋鐨刴argin-top锛屽線涓婂亸绉伙紝閬垮厤鍜岄敭鐩橀噸鍚堢殑鎯呭喌锛屽崟浣嶄换鎰忥紝鏁板�煎垯榛樿涓簆x鍗曚綅 锛堥粯璁� 0 锛� + * @property {String | Number} width modal瀹藉害锛屼笉鏀寔鐧惧垎姣旓紝鍙互鏁板�硷紝px锛宺px鍗曚綅 锛堥粯璁� '650rpx' 锛� + * @property {String} confirmButtonShape 纭鎸夐挳鐨勬牱寮�,濡傝缃紝灏嗕笉浼氭樉绀哄彇娑堟寜閽� + * @event {Function} confirm 鐐瑰嚮纭鎸夐挳鏃惰Е鍙� + * @event {Function} cancel 鐐瑰嚮鍙栨秷鎸夐挳鏃惰Е鍙� + * @event {Function} close 鐐瑰嚮閬僵鍏抽棴鍑哄彂锛宑loseOnClickOverlay涓簍rue鏈夋晥 + * @example <u-loadmore :status="status" icon-type="iconType" load-text="loadText" /> + */ + export default { + name: 'u-modal', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + loading: false + } + }, + watch: { + show(n) { + // 涓轰簡閬垮厤绗竴娆℃墦寮�modal锛屽張浣跨敤浜嗗紓姝ュ叧闂殑loading + // 绗簩娆℃墦寮�modal鏃讹紝loading渚濈劧瀛樺湪鐨勬儏鍐� + if (n && this.loading) this.loading = false + } + }, + methods: { + // 鐐瑰嚮纭畾鎸夐挳 + confirmHandler() { + // 濡傛灉閰嶇疆浜嗗紓姝ュ叧闂紝灏嗘寜閽�间负loading鐘舵�� + if (this.asyncClose) { + this.loading = true; + } + this.$emit('confirm') + }, + // 鐐瑰嚮鍙栨秷鎸夐挳 + cancelHandler() { + this.$emit('cancel') + }, + // 鐐瑰嚮閬僵 + // 浠庡師鐞嗕笂鏉ヨ锛宮odal鐨勯伄缃╃偣鍑伙紝骞朵笉鏄湡鐨勭偣鍑诲埌浜嗛伄缃� + // 鍥犱负modal渚濊禆浜巔opup鐨勪腑閮ㄥ脊绐楃被鍨嬶紝涓儴寮圭獥姣旇緝鐗规畩锛岃櫧鏈夌劧閬僵锛屼絾鏄负浜嗚寮圭獥鍐呭鑳絝lex灞呬腑 + // 澶氫簡涓�涓�忔槑鐨勯伄缃╋紝姝ら�忔槑鐨勯伄缃╀細瑕嗙洊鍦ㄧ伆鑹茬殑閬僵涓婏紝鎵�浠ュ疄闄呬笂鏄偣鍑讳笉鍒扮伆鑹查伄缃╃殑锛宲opup鍐呴儴鍦� + // 閫忔槑閬僵鐨勫瓙鍏冪礌鍋氫簡.stop澶勭悊锛屾墍浠ョ偣鍑诲唴瀹瑰尯锛屼篃涓嶄細瀵艰嚧璇Е鍙� + clickHandler() { + if (this.closeOnClickOverlay) { + this.$emit('close') + } + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-modal-border-radius: 6px; + + .u-modal { + width: 650rpx; + border-radius: $u-modal-border-radius; + overflow: hidden; + + &__title { + font-size: 16px; + font-weight: bold; + color: $u-content-color; + text-align: center; + padding-top: 25px; + } + + &__content { + padding: 12px 25px 25px 25px; + @include flex; + justify-content: center; + + &__text { + font-size: 15px; + color: $u-content-color; + flex: 1; + } + } + + &__button-group { + @include flex; + + &--confirm-button { + flex-direction: column; + padding: 0px 25px 15px 25px; + } + + &__wrapper { + flex: 1; + @include flex; + justify-content: center; + align-items: center; + height: 48px; + + &--confirm, + &--only-cancel { + border-bottom-right-radius: $u-modal-border-radius; + } + + &--cancel, + &--only-confirm { + border-bottom-left-radius: $u-modal-border-radius; + } + + &--hover { + background-color: $u-bg-color; + } + + &__text { + color: $u-content-color; + font-size: 16px; + text-align: center; + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/props.js new file mode 100644 index 0000000..5398de2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/props.js @@ -0,0 +1,84 @@ +export default { + props: { + // 鏄惁寮�鍚《閮ㄥ畨鍏ㄥ尯閫傞厤 + safeAreaInsetTop: { + type: Boolean, + default: uni.$u.props.navbar.safeAreaInsetTop + }, + // 鍥哄畾鍦ㄩ《閮ㄦ椂锛屾槸鍚︾敓鎴愪竴涓瓑楂樺厓绱狅紝浠ラ槻姝㈠闄� + placeholder: { + type: Boolean, + default: uni.$u.props.navbar.placeholder + }, + // 鏄惁鍥哄畾鍦ㄩ《閮� + fixed: { + type: Boolean, + default: uni.$u.props.navbar.fixed + }, + // 鏄惁鏄剧ず涓嬭竟妗� + border: { + type: Boolean, + default: uni.$u.props.navbar.border + }, + // 宸﹁竟鐨勫浘鏍� + leftIcon: { + type: String, + default: uni.$u.props.navbar.leftIcon + }, + // 宸﹁竟鐨勬彁绀烘枃瀛� + leftText: { + type: String, + default: uni.$u.props.navbar.leftText + }, + // 宸﹀彸鐨勬彁绀烘枃瀛� + rightText: { + type: String, + default: uni.$u.props.navbar.rightText + }, + // 鍙宠竟鐨勫浘鏍� + rightIcon: { + type: String, + default: uni.$u.props.navbar.rightIcon + }, + // 鏍囬 + title: { + type: [String, Number], + default: uni.$u.props.navbar.title + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.navbar.bgColor + }, + // 鏍囬鐨勫搴� + titleWidth: { + type: [String, Number], + default: uni.$u.props.navbar.titleWidth + }, + // 瀵艰埅鏍忛珮搴� + height: { + type: [String, Number], + default: uni.$u.props.navbar.height + }, + // 宸︿晶杩斿洖鍥炬爣鐨勫ぇ灏� + leftIconSize: { + type: [String, Number], + default: uni.$u.props.navbar.leftIconSize + }, + // 宸︿晶杩斿洖鍥炬爣鐨勯鑹� + leftIconColor: { + type: String, + default: uni.$u.props.navbar.leftIconColor + }, + // 鐐瑰嚮宸︿晶鍖哄煙(杩斿洖鍥炬爣)锛屾槸鍚﹁嚜鍔ㄨ繑鍥炰笂涓�椤� + autoBack: { + type: Boolean, + default: uni.$u.props.navbar.autoBack + }, + // 鏍囬鐨勬牱寮忥紝瀵硅薄鎴栧瓧绗︿覆 + titleStyle: { + type: [String, Object], + default: uni.$u.props.navbar.titleStyle + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/u-navbar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/u-navbar.vue new file mode 100644 index 0000000..2b206b7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-navbar/u-navbar.vue @@ -0,0 +1,186 @@ +<template> + <view class="u-navbar"> + <view + class="u-navbar__placeholder" + v-if="fixed && placeholder" + :style="{ + height: $u.addUnit($u.getPx(height) + $u.sys().statusBarHeight,'px'), + }" + ></view> + <view :class="[fixed && 'u-navbar--fixed']"> + <u-status-bar + v-if="safeAreaInsetTop" + :bgColor="bgColor" + ></u-status-bar> + <view + class="u-navbar__content" + :class="[border && 'u-border-bottom']" + :style="{ + height: $u.addUnit(height), + backgroundColor: bgColor, + }" + > + <view + class="u-navbar__content__left" + hover-class="u-navbar__content__left--hover" + hover-start-time="150" + @tap="leftClick" + > + <slot name="left"> + <u-icon + v-if="leftIcon" + :name="leftIcon" + :size="leftIconSize" + :color="leftIconColor" + ></u-icon> + <text + v-if="leftText" + :style="{ + color: leftIconColor + }" + class="u-navbar__content__left__text" + >{{ leftText }}</text> + </slot> + </view> + <slot name="center"> + <text + class="u-line-1 u-navbar__content__title" + :style="[{ + width: $u.addUnit(titleWidth), + }, $u.addStyle(titleStyle)]" + >{{ title }}</text> + </slot> + <view + class="u-navbar__content__right" + v-if="$slots.right || rightIcon || rightText" + @tap="rightClick" + > + <slot name="right"> + <u-icon + v-if="rightIcon" + :name="rightIcon" + size="20" + ></u-icon> + <text + v-if="rightText" + class="u-navbar__content__right__text" + >{{ rightText }}</text> + </slot> + </view> + </view> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * Navbar 鑷畾涔夊鑸爮 + * @description 姝ょ粍浠朵竴鑸敤浜庡湪鐗规畩鎯呭喌涓嬶紝闇�瑕佽嚜瀹氫箟瀵艰埅鏍忕殑鏃跺�欑敤鍒帮紝涓�鑸缓璁娇鐢╱ni-app甯︾殑瀵艰埅鏍忋�� + * @tutorial https://www.uviewui.com/components/navbar.html + * @property {Boolean} safeAreaInsetTop 鏄惁寮�鍚《閮ㄥ畨鍏ㄥ尯閫傞厤 锛堥粯璁� true 锛� + * @property {Boolean} placeholder 鍥哄畾鍦ㄩ《閮ㄦ椂锛屾槸鍚︾敓鎴愪竴涓瓑楂樺厓绱狅紝浠ラ槻姝㈠闄� 锛堥粯璁� false 锛� + * @property {Boolean} fixed 瀵艰埅鏍忔槸鍚﹀浐瀹氬湪椤堕儴 锛堥粯璁� false 锛� + * @property {Boolean} border 瀵艰埅鏍忓簳閮ㄦ槸鍚︽樉绀轰笅杈规 锛堥粯璁� false 锛� + * @property {String} leftIcon 宸﹁竟杩斿洖鍥炬爣鐨勫悕绉帮紝鍙兘涓簎View鑷甫鐨勫浘鏍� 锛堥粯璁� 'arrow-left' 锛� + * @property {String} leftText 宸﹁竟鐨勬彁绀烘枃瀛� + * @property {String} rightText 鍙宠竟鐨勬彁绀烘枃瀛� + * @property {String} rightIcon 鍙宠竟杩斿洖鍥炬爣鐨勫悕绉帮紝鍙兘涓簎View鑷甫鐨勫浘鏍� + * @property {String} title 瀵艰埅鏍忔爣棰橈紝濡傝缃负绌哄瓧绗︼紝灏嗕細闅愯棌鏍囬鍗犱綅鍖哄煙 + * @property {String} bgColor 瀵艰埅鏍忚儗鏅缃� 锛堥粯璁� '#ffffff' 锛� + * @property {String | Number} titleWidth 瀵艰埅鏍忔爣棰樼殑鏈�澶у搴︼紝鍐呭瓒呭嚭浼氫互鐪佺暐鍙烽殣钘� 锛堥粯璁� '400rpx' 锛� + * @property {String | Number} height 瀵艰埅鏍忛珮搴�(涓嶅寘鎷姸鎬佹爮楂樺害鍦ㄥ唴锛屽唴閮ㄨ嚜鍔ㄥ姞涓�)锛堥粯璁� '44px' 锛� + * @property {String | Number} leftIconSize 宸︿晶杩斿洖鍥炬爣鐨勫ぇ灏忥紙榛樿 20px 锛� + * @property {String | Number} leftIconColor 宸︿晶杩斿洖鍥炬爣鐨勯鑹诧紙榛樿 #303133 锛� + * @property {Boolean} autoBack 鐐瑰嚮宸︿晶鍖哄煙(杩斿洖鍥炬爣)锛屾槸鍚﹁嚜鍔ㄨ繑鍥炰笂涓�椤碉紙榛樿 false 锛� + * @property {Object | String} titleStyle 鏍囬鐨勬牱寮忥紝瀵硅薄鎴栧瓧绗︿覆 + * @event {Function} leftClick 鐐瑰嚮宸︿晶鍖哄煙 + * @event {Function} rightClick 鐐瑰嚮鍙充晶鍖哄煙 + * @example <u-navbar title="鍓戞湭閰嶅Ε锛屽嚭闂ㄥ凡鏄睙婀�" left-text="杩斿洖" right-text="甯姪" @click-left="onClickBack" @click-right="onClickRight"></u-navbar> + */ + export default { + name: 'u-navbar', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + + } + }, + methods: { + // 鐐瑰嚮宸︿晶鍖哄煙 + leftClick() { + // 濡傛灉閰嶇疆浜哸utoBack锛岃嚜鍔ㄨ繑鍥炰笂涓�椤� + this.$emit('leftClick') + if(this.autoBack) { + uni.navigateBack() + } + }, + // 鐐瑰嚮鍙充晶鍖哄煙 + rightClick() { + this.$emit('rightClick') + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-navbar { + + &--fixed { + position: fixed; + left: 0; + right: 0; + top: 0; + z-index: 11; + } + + &__content { + @include flex(row); + align-items: center; + height: 44px; + background-color: #9acafc; + position: relative; + justify-content: center; + + &__left, + &__right { + padding: 0 13px; + position: absolute; + top: 0; + bottom: 0; + @include flex(row); + align-items: center; + } + + &__left { + left: 0; + + &--hover { + opacity: 0.7; + } + + &__text { + font-size: 15px; + margin-left: 3px; + } + } + + &__title { + text-align: center; + font-size: 16px; + color: $u-main-color; + } + + &__right { + right: 0; + + &__text { + font-size: 15px; + margin-left: 3px; + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/props.js new file mode 100644 index 0000000..9f3af62 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/props.js @@ -0,0 +1,19 @@ +export default { + props: { + // 椤甸潰鏂囧瓧鎻愮ず + tips: { + type: String, + default: uni.$u.props.noNetwork.tips + }, + // 涓�涓獄-index鍊硷紝鐢ㄤ簬璁剧疆娌℃湁缃戠粶杩欎釜缁勪欢鐨勫眰娆★紝鍥犱负椤甸潰鍙兘浼氭湁鍏朵粬瀹氫綅鐨勫厓绱犲眰绾ц繃楂橈紝瀵艰嚧姝ょ粍浠惰瑕嗙洊 + zIndex: { + type: [String, Number], + default: uni.$u.props.noNetwork.zIndex + }, + // image 娌℃湁缃戠粶鐨勫浘鐗囨彁绀� + image: { + type: String, + default: uni.$u.props.noNetwork.image + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/u-no-network.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/u-no-network.vue new file mode 100644 index 0000000..9710729 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-no-network/u-no-network.vue @@ -0,0 +1,220 @@ +<template> + <u-overlay + :show="!isConnected" + :zIndex="zIndex" + @touchmove.stop.prevent="noop" + :customStyle="{ + backgroundColor: '#fff', + display: 'flex', + justifyContent: 'center', + }" + > + <view + class="u-no-network" + > + <u-icon + :name="image" + size="150" + imgMode="widthFit" + class="u-no-network__error-icon" + ></u-icon> + <text class="u-no-network__tips">{{tips}}</text> + <!-- 鍙湁APP骞冲彴锛屾墠鑳借烦杞缃〉锛屽洜涓洪渶瑕佽皟鐢╬lus鐜 --> + <!-- #ifdef APP-PLUS --> + <view class="u-no-network__app"> + <text class="u-no-network__app__setting">璇锋鏌ョ綉缁滐紝鎴栧墠寰�</text> + <text + class="u-no-network__app__to-setting" + @tap="openSettings" + >璁剧疆</text> + </view> + <!-- #endif --> + <view class="u-no-network__retry"> + <u-button + size="mini" + text="閲嶈瘯" + type="primary" + plain + @click="retry" + ></u-button> + </view> + </view> + </u-overlay> +</template> + +<script> + import props from './props.js'; + + /** + * noNetwork 鏃犵綉缁滄彁绀� + * @description 璇ョ粍浠舵棤闇�浠讳綍閰嶇疆锛屽紩鍏ュ嵆鍙紝鍐呴儴鑷姩澶勭悊鎵�鏈夊姛鑳藉拰浜嬩欢銆� + * @tutorial https://www.uviewui.com/components/noNetwork.html + * @property {String} tips 娌℃湁缃戠粶鏃剁殑鎻愮ず璇� 锛堥粯璁わ細'鍝庡憖锛岀綉缁滀俊鍙蜂涪澶�' 锛� + * @property {String | Number} zIndex 缁勪欢鐨剒-index鍊� + * @property {String} image 鏃犵綉缁滅殑鍥剧墖鎻愮ず锛屽彲鐢ㄧ殑src鍦板潃鎴朾ase64鍥剧墖 + * @event {Function} retry 鐢ㄦ埛鐐瑰嚮椤甸潰鐨�"閲嶈瘯"鎸夐挳鏃惰Е鍙� + * @example <u-no-network></u-no-network> + */ + export default { + name: "u-no-network", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + isConnected: true, // 鏄惁鏈夌綉缁滆繛鎺� + networkType: "none", // 缃戠粶绫诲瀷 + } + }, + mounted() { + this.isIOS = (uni.getSystemInfoSync().platform === 'ios') + uni.onNetworkStatusChange((res) => { + this.isConnected = res.isConnected + this.networkType = res.networkType + this.emitEvent(this.networkType) + }) + uni.getNetworkType({ + success: (res) => { + this.networkType = res.networkType + this.emitEvent(this.networkType) + if (res.networkType == 'none') { + this.isConnected = false + } else { + this.isConnected = true + } + } + }) + }, + methods: { + retry() { + // 閲嶆柊妫�鏌ョ綉缁� + uni.getNetworkType({ + success: (res) => { + this.networkType = res.networkType + this.emitEvent(this.networkType) + if (res.networkType == 'none') { + uni.$u.toast('鏃犵綉缁滆繛鎺�') + this.isConnected = false + } else { + uni.$u.toast('缃戠粶宸茶繛鎺�') + this.isConnected = true + } + } + }) + this.$emit('retry') + }, + // 鍙戝嚭浜嬩欢缁欑埗缁勪欢 + emitEvent(networkType) { + this.$emit(networkType === 'none' ? 'disconnected' : 'connected') + }, + async openSettings() { + if (this.networkType == "none") { + this.openSystemSettings() + return + } + }, + openAppSettings() { + this.gotoAppSetting() + }, + openSystemSettings() { + // 浠ヤ笅鏂规硶鏉ヨ嚜5+鑼冪暣锛屽闇�娣辩┒锛岃鑷鏌ラ槄鐩稿叧鏂囨。 + // https://ask.dcloud.net.cn/docs/ + if (this.isIOS) { + this.gotoiOSSetting() + } else { + this.gotoAndroidSetting() + } + }, + network() { + var result = null + var cellularData = plus.ios.newObject("CTCellularData") + var state = cellularData.plusGetAttribute("restrictedState") + if (state == 0) { + result = null + } else if (state == 2) { + result = 1 + } else if (state == 1) { + result = 2 + } + plus.ios.deleteObject(cellularData) + return result + }, + gotoAppSetting() { + if (this.isIOS) { + var UIApplication = plus.ios.import("UIApplication") + var application2 = UIApplication.sharedApplication() + var NSURL2 = plus.ios.import("NSURL") + var setting2 = NSURL2.URLWithString("app-settings:") + application2.openURL(setting2) + plus.ios.deleteObject(setting2) + plus.ios.deleteObject(NSURL2) + plus.ios.deleteObject(application2) + } else { + var Intent = plus.android.importClass("android.content.Intent") + var Settings = plus.android.importClass("android.provider.Settings") + var Uri = plus.android.importClass("android.net.Uri") + var mainActivity = plus.android.runtimeMainActivity() + var intent = new Intent() + intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) + var uri = Uri.fromParts("package", mainActivity.getPackageName(), null) + intent.setData(uri) + mainActivity.startActivity(intent) + } + }, + gotoiOSSetting() { + var UIApplication = plus.ios.import("UIApplication") + var application2 = UIApplication.sharedApplication() + var NSURL2 = plus.ios.import("NSURL") + var setting2 = NSURL2.URLWithString("App-prefs:root=General") + application2.openURL(setting2) + plus.ios.deleteObject(setting2) + plus.ios.deleteObject(NSURL2) + plus.ios.deleteObject(application2) + }, + gotoAndroidSetting() { + var Intent = plus.android.importClass("android.content.Intent") + var Settings = plus.android.importClass("android.provider.Settings") + var mainActivity = plus.android.runtimeMainActivity() + var intent = new Intent(Settings.ACTION_SETTINGS) + mainActivity.startActivity(intent) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-no-network { + @include flex(column); + justify-content: center; + align-items: center; + margin-top: -100px; + + &__tips { + color: $u-tips-color; + font-size: 14px; + margin-top: 15px; + } + + &__app { + @include flex(row); + margin-top: 6px; + + &__setting { + color: $u-light-color; + font-size: 13px; + } + + &__to-setting { + font-size: 13px; + color: $u-primary; + margin-left: 3px; + } + } + + &__retry { + @include flex(row); + justify-content: center; + margin-top: 15px; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/props.js new file mode 100644 index 0000000..7040c29 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/props.js @@ -0,0 +1,70 @@ +export default { + props: { + // 鏄剧ず鐨勫唴瀹癸紝鏁扮粍 + text: { + type: [Array, String], + default: uni.$u.props.noticeBar.text + }, + // 閫氬憡婊氬姩妯″紡锛宺ow-妯悜婊氬姩锛宑olumn-绔栧悜婊氬姩 + direction: { + type: String, + default: uni.$u.props.noticeBar.direction + }, + // direction = row鏃讹紝鏄惁浣跨敤姝ヨ繘褰㈠紡婊氬姩 + step: { + type: Boolean, + default: uni.$u.props.noticeBar.step + }, + // 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� + icon: { + type: String, + default: uni.$u.props.noticeBar.icon + }, + // 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + mode: { + type: String, + default: uni.$u.props.noticeBar.mode + }, + // 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.noticeBar.color + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.noticeBar.bgColor + }, + // 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(px)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 + speed: { + type: [String, Number], + default: uni.$u.props.noticeBar.speed + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.noticeBar.fontSize + }, + // 婊氬姩涓�涓懆鏈熺殑鏃堕棿闀匡紝鍗曚綅ms + duration: { + type: [String, Number], + default: uni.$u.props.noticeBar.duration + }, + // 鏄惁绂佹鐢ㄦ墜婊戝姩鍒囨崲 + // 鐩墠HX2.6.11锛屽彧鏀寔App 2.5.5+銆丠5 2.5.5+銆佹敮浠樺疂灏忕▼搴忋�佸瓧鑺傝烦鍔ㄥ皬绋嬪簭 + disableTouch: { + type: Boolean, + default: uni.$u.props.noticeBar.disableTouch + }, + // 璺宠浆鐨勯〉闈㈣矾寰� + url: { + type: String, + default: uni.$u.props.noticeBar.url + }, + // 椤甸潰璺宠浆鐨勭被鍨� + linkType: { + type: String, + default: uni.$u.props.noticeBar.linkType + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue new file mode 100644 index 0000000..a06eb39 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue @@ -0,0 +1,101 @@ +<template> + <view + class="u-notice-bar" + v-if="show" + :style="[{ + backgroundColor: bgColor + }, $u.addStyle(customStyle)]" + > + <template v-if="direction === 'column' || (direction === 'row' && step)"> + <u-column-notice + :color="color" + :bgColor="bgColor" + :text="text" + :mode="mode" + :step="step" + :icon="icon" + :disable-touch="disableTouch" + :fontSize="fontSize" + :duration="duration" + @close="close" + @click="click" + ></u-column-notice> + </template> + <template v-else> + <u-row-notice + :color="color" + :bgColor="bgColor" + :text="text" + :mode="mode" + :fontSize="fontSize" + :speed="speed" + :url="url" + :linkType="linkType" + :icon="icon" + @close="close" + @click="click" + ></u-row-notice> + </template> + </view> +</template> +<script> + import props from './props.js'; + + /** + * noticeBar 婊氬姩閫氱煡 + * @description 璇ョ粍浠剁敤浜庢粴鍔ㄩ�氬憡鍦烘櫙锛屾湁澶氱妯″紡鍙緵閫夋嫨 + * @tutorial https://www.uviewui.com/components/noticeBar.html + * @property {Array | String} text 鏄剧ず鐨勫唴瀹癸紝鏁扮粍 + * @property {String} direction 閫氬憡婊氬姩妯″紡锛宺ow-妯悜婊氬姩锛宑olumn-绔栧悜婊氬姩 ( 榛樿 'row' ) + * @property {Boolean} step direction = row鏃讹紝鏄惁浣跨敤姝ヨ繘褰㈠紡婊氬姩 ( 榛樿 false ) + * @property {String} icon 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� ( 榛樿 'volume' ) + * @property {String} mode 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + * @property {String} color 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 ( 榛樿 '#f9ae3d' ) + * @property {String} bgColor 鑳屾櫙棰滆壊 ( 榛樿 '#fdf6ec' ) + * @property {String | Number} speed 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(px)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 ( 榛樿 80 ) + * @property {String | Number} fontSize 瀛椾綋澶у皬 ( 榛樿 14 ) + * @property {String | Number} duration 婊氬姩涓�涓懆鏈熺殑鏃堕棿闀匡紝鍗曚綅ms ( 榛樿 2000 ) + * @property {Boolean} disableTouch 鏄惁绂佹鐢ㄦ墜婊戝姩鍒囨崲 鐩墠HX2.6.11锛屽彧鏀寔App 2.5.5+銆丠5 2.5.5+銆佹敮浠樺疂灏忕▼搴忋�佸瓧鑺傝烦鍔ㄥ皬绋嬪簭锛堥粯璁�34锛� ( 榛樿 true ) + * @property {String} url 璺宠浆鐨勯〉闈㈣矾寰� + * @property {String} linkType 椤甸潰璺宠浆鐨勭被鍨� ( 榛樿 navigateTo ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click 鐐瑰嚮閫氬憡鏂囧瓧瑙﹀彂 + * @event {Function} close 鐐瑰嚮鍙充晶鍏抽棴鍥炬爣瑙﹀彂 + * @example <u-notice-bar :more-icon="true" :list="list"></u-notice-bar> + */ + export default { + name: "u-notice-bar", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + show: true + } + }, + methods: { + // 鐐瑰嚮閫氬憡鏍� + click(index) { + this.$emit('click', index) + if (this.url && this.linkType) { + // 姝ゆ柟娉曞啓鍦╩ixin涓紝鍙﹀璺宠浆鐨剈rl鍜宭inkType鍙傛暟涔熷湪mixin鐨刾rops涓� + this.openPage() + } + }, + // 鐐瑰嚮鍏抽棴鎸夐挳 + close() { + this.show = false + this.$emit('close') + } + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-notice-bar { + overflow: hidden; + padding: 9px 12px; + flex: 1; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/props.js new file mode 100644 index 0000000..57a9d71 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/props.js @@ -0,0 +1,49 @@ +export default { + props: { + // 鍒伴《閮ㄧ殑璺濈 + top: { + type: [String, Number], + default: uni.$u.props.notify.top + }, + // 鏄惁灞曠ず缁勪欢 + // show: { + // type: Boolean, + // default: uni.$u.props.notify.show + // }, + // type涓婚锛宲rimary锛宻uccess锛寃arning锛宔rror + type: { + type: String, + default: uni.$u.props.notify.type + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.notify.color + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.notify.bgColor + }, + // 灞曠ず鐨勬枃瀛楀唴瀹� + message: { + type: String, + default: uni.$u.props.notify.message + }, + // 灞曠ず鏃堕暱锛屼负0鏃朵笉娑堝け锛屽崟浣峬s + duration: { + type: [String, Number], + default: uni.$u.props.notify.duration + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.notify.fontSize + }, + // 鏄惁鐣欏嚭椤堕儴瀹夊叏璺濈锛堢姸鎬佹爮楂樺害锛� + safeAreaInsetTop: { + type: Boolean, + default: uni.$u.props.notify.safeAreaInsetTop + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/u-notify.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/u-notify.vue new file mode 100644 index 0000000..30adb72 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-notify/u-notify.vue @@ -0,0 +1,211 @@ +<template> + <u-transition + mode="slide-down" + :customStyle="containerStyle" + :show="open" + > + <view + class="u-notify" + :class="[`u-notify--${tmpConfig.type}`]" + :style="[backgroundColor, $u.addStyle(customStyle)]" + > + <u-status-bar v-if="tmpConfig.safeAreaInsetTop"></u-status-bar> + <view class="u-notify__warpper"> + <slot name="icon"> + <u-icon + v-if="['success', 'warning', 'error'].includes(tmpConfig.type)" + :name="tmpConfig.icon" + :color="tmpConfig.color" + :size="1.3 * tmpConfig.fontSize" + :customStyle="{marginRight: '4px'}" + ></u-icon> + </slot> + <text + class="u-notify__warpper__text" + :style="{ + fontSize: $u.addUnit(tmpConfig.fontSize), + color: tmpConfig.color + }" + >{{ tmpConfig.message }}</text> + </view> + </view> + </u-transition> +</template> + +<script> + import props from './props.js'; + /** + * notify 椤堕儴鎻愮ず + * @description 璇ョ粍浠朵竴鑸敤浜庨〉闈㈤《閮ㄥ悜涓嬫粦鍑轰竴涓彁绀猴紝灏斿悗鑷姩鏀惰捣鐨勫満鏅� + * @tutorial + * @property {String | Number} top 鍒伴《閮ㄧ殑璺濈 ( 榛樿 0 ) + * @property {String} type 涓婚锛宲rimary锛宻uccess锛寃arning锛宔rror ( 榛樿 'primary' ) + * @property {String} color 瀛椾綋棰滆壊 ( 榛樿 '#ffffff' ) + * @property {String} bgColor 鑳屾櫙棰滆壊 + * @property {String} message 灞曠ず鐨勬枃瀛楀唴瀹� + * @property {String | Number} duration 灞曠ず鏃堕暱锛屼负0鏃朵笉娑堝け锛屽崟浣峬s ( 榛樿 3000 ) + * @property {String | Number} fontSize 瀛椾綋澶у皬 ( 榛樿 15 ) + * @property {Boolean} safeAreaInsetTop 鏄惁鐣欏嚭椤堕儴瀹夊叏璺濈锛堢姸鎬佹爮楂樺害锛� ( 榛樿 false ) + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} open 寮�鍚粍浠舵椂璋冪敤鐨勫嚱鏁� + * @event {Function} close 鍏抽棴缁勪欢寮忚皟鐢ㄧ殑鍑芥暟 + * @example <u-notify message="Hi uView"></u-notify> + */ + export default { + name: 'u-notify', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + // 鏄惁灞曠ず缁勪欢 + open: false, + timer: null, + config: { + // 鍒伴《閮ㄧ殑璺濈 + top: uni.$u.props.notify.top, + // type涓婚锛宲rimary锛宻uccess锛寃arning锛宔rror + type: uni.$u.props.notify.type, + // 瀛椾綋棰滆壊 + color: uni.$u.props.notify.color, + // 鑳屾櫙棰滆壊 + bgColor: uni.$u.props.notify.bgColor, + // 灞曠ず鐨勬枃瀛楀唴瀹� + message: uni.$u.props.notify.message, + // 灞曠ず鏃堕暱锛屼负0鏃朵笉娑堝け锛屽崟浣峬s + duration: uni.$u.props.notify.duration, + // 瀛椾綋澶у皬 + fontSize: uni.$u.props.notify.fontSize, + // 鏄惁鐣欏嚭椤堕儴瀹夊叏璺濈锛堢姸鎬佹爮楂樺害锛� + safeAreaInsetTop: uni.$u.props.notify.safeAreaInsetTop + }, + // 鍚堝苟鍚庣殑閰嶇疆锛岄伩鍏嶅娆¤皟鐢ㄧ粍浠跺悗锛屽彲鑳戒細澶嶇敤涔嬪墠浣跨敤鐨勯厤缃弬鏁� + tmpConfig: {} + } + }, + computed: { + containerStyle() { + let top = 0 + if (this.tmpConfig.top === 0) { + // #ifdef H5 + // H5绔紝瀵艰埅鏍忎负鏅�氬厓绱狅紝闇�瑕佸皢缁勪欢绉诲姩鍒板鑸爮鐨勪笅杈规部 + // H5鐨勫鑸爮楂樺害涓�44px + top = 44 + // #endif + } + const style = { + top: uni.$u.addUnit(this.tmpConfig.top === 0 ? top : this.tmpConfig.top), + // 鍥犱负缁勪欢搴曞眰涓簎-transition缁勪欢锛屽繀椤诲皢鍏惰缃负fixed瀹氫綅 + // 璁╁叾鍑虹幇鍦ㄥ鑸爮搴曢儴 + position: 'fixed', + left: 0, + right: 0, + zIndex: 10076 + } + return style + }, + // 缁勪欢鑳屾櫙棰滆壊 + backgroundColor() { + const style = {} + if (this.tmpConfig.bgColor) { + style.backgroundColor = this.tmpConfig.bgColor + } + return style + }, + // 榛樿涓婚涓嬬殑鍥炬爣 + icon() { + let icon + if (this.tmpConfig.type === 'success') { + icon = 'checkmark-circle' + } else if (this.tmpConfig.type === 'error') { + icon = 'close-circle' + } else if (this.tmpConfig.type === 'warning') { + icon = 'error-circle' + } + return icon + } + }, + created() { + // 閫氳繃涓婚鐨勫舰寮忚皟鐢╰oast锛屾壒閲忕敓鎴愭柟娉曞嚱鏁� + ['primary', 'success', 'error', 'warning'].map(item => { + this[item] = message => this.show({ + type: item, + message + }) + }) + }, + methods: { + show(options) { + // 涓嶅皢缁撴灉鍚堝苟鍒皌his.config鍙橀噺锛岄伩鍏嶅娆¤皟鐢╱-toast锛屽墠鍚庣殑閰嶇疆閫犳垚娣蜂贡 + this.tmpConfig = uni.$u.deepMerge(this.config, options) + // 浠讳綍瀹氭椂鍣ㄥ垵濮嬪寲涔嬪墠锛岄兘瑕佹墽琛屾竻闄ゆ搷浣滐紝鍚﹀垯鍙兘浼氶�犳垚娣蜂贡 + this.clearTimer() + this.open = true + if (this.tmpConfig.duration > 0) { + this.timer = setTimeout(() => { + this.open = false + // 鍊掕鏃剁粨鏉燂紝娓呴櫎瀹氭椂鍣紝闅愯棌toast缁勪欢 + this.clearTimer() + // 鍒ゆ柇鏄惁瀛樺湪callback鏂规硶锛屽鏋滃瓨鍦ㄥ氨鎵ц + typeof(this.tmpConfig.complete) === 'function' && this.tmpConfig.complete() + }, this.tmpConfig.duration) + } + }, + // 鍏抽棴notify + close() { + this.clearTimer() + }, + clearTimer() { + this.open = false + // 娓呴櫎瀹氭椂鍣� + clearTimeout(this.timer) + this.timer = null + } + }, + beforeDestroy() { + this.clearTimer() + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + $u-notify-padding: 8px 10px !default; + $u-notify-text-font-size: 15px !default; + $u-notify-primary-bgColor: $u-primary !default; + $u-notify-success-bgColor: $u-success !default; + $u-notify-error-bgColor: $u-error !default; + $u-notify-warning-bgColor: $u-warning !default; + + + .u-notify { + padding: $u-notify-padding; + + &__warpper { + @include flex; + align-items: center; + text-align: center; + justify-content: center; + + &__text { + font-size: $u-notify-text-font-size; + text-align: center; + } + } + + &--primary { + background-color: $u-notify-primary-bgColor; + } + + &--success { + background-color: $u-notify-success-bgColor; + } + + &--error { + background-color: $u-notify-error-bgColor; + } + + &--warning { + background-color: $u-notify-warning-bgColor; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/props.js new file mode 100644 index 0000000..fb0fa94 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/props.js @@ -0,0 +1,109 @@ +export default { + props: { + // 姝ヨ繘鍣ㄦ爣璇嗙锛屽湪change鍥炶皟杩斿洖 + name: { + type: [String, Number], + default: uni.$u.props.numberBox.name + }, + // 鐢ㄤ簬鍙屽悜缁戝畾鐨勫�硷紝鍒濆鍖栨椂璁剧疆璁句负榛樿min鍊�(鏈�灏忓��) + value: { + type: [String, Number], + default: uni.$u.props.numberBox.value + }, + // 鏈�灏忓�� + min: { + type: [String, Number], + default: uni.$u.props.numberBox.min + }, + // 鏈�澶у�� + max: { + type: [String, Number], + default: uni.$u.props.numberBox.max + }, + // 鍔犲噺鐨勬闀匡紝鍙负灏忔暟 + step: { + type: [String, Number], + default: uni.$u.props.numberBox.step + }, + // 鏄惁鍙厑璁歌緭鍏ユ暣鏁� + integer: { + type: Boolean, + default: uni.$u.props.numberBox.integer + }, + // 鏄惁绂佺敤锛屽寘鎷緭鍏ユ锛屽姞鍑忔寜閽� + disabled: { + type: Boolean, + default: uni.$u.props.numberBox.disabled + }, + // 鏄惁绂佺敤杈撳叆妗� + disabledInput: { + type: Boolean, + default: uni.$u.props.numberBox.disabledInput + }, + // 鏄惁寮�鍚紓姝ュ彉鏇达紝寮�鍚悗闇�瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ�� + asyncChange: { + type: Boolean, + default: uni.$u.props.numberBox.asyncChange + }, + // 杈撳叆妗嗗搴︼紝鍗曚綅涓簆x + inputWidth: { + type: [String, Number], + default: uni.$u.props.numberBox.inputWidth + }, + // 鏄惁鏄剧ず鍑忓皯鎸夐挳 + showMinus: { + type: Boolean, + default: uni.$u.props.numberBox.showMinus + }, + // 鏄惁鏄剧ず澧炲姞鎸夐挳 + showPlus: { + type: Boolean, + default: uni.$u.props.numberBox.showPlus + }, + // 鏄剧ず鐨勫皬鏁颁綅鏁� + decimalLength: { + type: [String, Number, null], + default: uni.$u.props.numberBox.decimalLength + }, + // 鏄惁寮�鍚暱鎸夊姞鍑忔墜鍔� + longPress: { + type: Boolean, + default: uni.$u.props.numberBox.longPress + }, + // 杈撳叆妗嗘枃瀛楀拰鍔犲噺鎸夐挳鍥炬爣鐨勯鑹� + color: { + type: String, + default: uni.$u.props.numberBox.color + }, + // 鎸夐挳澶у皬锛屽楂樼瓑浜庢鍊硷紝鍗曚綅px锛岃緭鍏ユ楂樺害鍜屾鍊间繚鎸佷竴鑷� + buttonSize: { + type: [String, Number], + default: uni.$u.props.numberBox.buttonSize + }, + // 杈撳叆妗嗗拰鎸夐挳鐨勮儗鏅鑹� + bgColor: { + type: String, + default: uni.$u.props.numberBox.bgColor + }, + // 鎸囧畾鍏夋爣浜庨敭鐩樼殑璺濈锛岄伩鍏嶉敭鐩橀伄鎸¤緭鍏ユ锛屽崟浣峱x + cursorSpacing: { + type: [String, Number], + default: uni.$u.props.numberBox.cursorSpacing + }, + // 鏄惁绂佺敤澧炲姞鎸夐挳 + disablePlus: { + type: Boolean, + default: uni.$u.props.numberBox.disablePlus + }, + // 鏄惁绂佺敤鍑忓皯鎸夐挳 + disableMinus: { + type: Boolean, + default: uni.$u.props.numberBox.disableMinus + }, + // 鍔犲噺鎸夐挳鍥炬爣鐨勬牱寮� + iconStyle: { + type: [Object, String], + default: uni.$u.props.numberBox.iconStyle + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/u-number-box.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/u-number-box.vue new file mode 100644 index 0000000..69211c5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-box/u-number-box.vue @@ -0,0 +1,416 @@ +<template> + <view class="u-number-box"> + <view + class="u-number-box__slot" + @tap.stop="clickHandler('minus')" + @touchstart="onTouchStart('minus')" + @touchend.stop="clearTimeout" + v-if="showMinus && $slots.minus" + > + <slot name="minus" /> + </view> + <view + v-else-if="showMinus" + class="u-number-box__minus" + @tap.stop="clickHandler('minus')" + @touchstart="onTouchStart('minus')" + @touchend.stop="clearTimeout" + hover-class="u-number-box__minus--hover" + hover-stay-time="150" + :class="{ 'u-number-box__minus--disabled': isDisabled('minus') }" + :style="[buttonStyle('minus')]" + > + <u-icon + name="minus" + :color="isDisabled('minus') ? '#c8c9cc' : '#323233'" + size="15" + bold + :customStyle="iconStyle" + ></u-icon> + </view> + + <slot name="input"> + <input + :disabled="disabledInput || disabled" + :cursor-spacing="getCursorSpacing" + :class="{ 'u-number-box__input--disabled': disabled || disabledInput }" + v-model="currentValue" + class="u-number-box__input" + @blur="onBlur" + @focus="onFocus" + @input="onInput" + type="number" + :style="[inputStyle]" + /> + </slot> + <view + class="u-number-box__slot" + @tap.stop="clickHandler('plus')" + @touchstart="onTouchStart('plus')" + @touchend.stop="clearTimeout" + v-if="showPlus && $slots.plus" + > + <slot name="plus" /> + </view> + <view + v-else-if="showPlus" + class="u-number-box__plus" + @tap.stop="clickHandler('plus')" + @touchstart="onTouchStart('plus')" + @touchend.stop="clearTimeout" + hover-class="u-number-box__plus--hover" + hover-stay-time="150" + :class="{ 'u-number-box__minus--disabled': isDisabled('plus') }" + :style="[buttonStyle('plus')]" + > + <u-icon + name="plus" + :color="isDisabled('plus') ? '#c8c9cc' : '#323233'" + size="15" + bold + :customStyle="iconStyle" + ></u-icon> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * numberBox 姝ヨ繘鍣� + * @description 璇ョ粍浠朵竴鑸敤浜庡晢鍩庤喘鐗╅�夋嫨鐗╁搧鏁伴噺鐨勫満鏅�� + * @tutorial https://uviewui.com/components/numberBox.html + * @property {String | Number} name 姝ヨ繘鍣ㄦ爣璇嗙锛屽湪change鍥炶皟杩斿洖 + * @property {String | Number} value 鐢ㄤ簬鍙屽悜缁戝畾鐨勫�硷紝鍒濆鍖栨椂璁剧疆璁句负榛樿min鍊�(鏈�灏忓��) 锛堥粯璁� 0 锛� + * @property {String | Number} min 鏈�灏忓�� 锛堥粯璁� 1 锛� + * @property {String | Number} max 鏈�澶у�� 锛堥粯璁� Number.MAX_SAFE_INTEGER 锛� + * @property {String | Number} step 鍔犲噺鐨勬闀匡紝鍙负灏忔暟 锛堥粯璁� 1 锛� + * @property {Boolean} integer 鏄惁鍙厑璁歌緭鍏ユ暣鏁� 锛堥粯璁� false 锛� + * @property {Boolean} disabled 鏄惁绂佺敤锛屽寘鎷緭鍏ユ锛屽姞鍑忔寜閽� 锛堥粯璁� false 锛� + * @property {Boolean} disabledInput 鏄惁绂佺敤杈撳叆妗� 锛堥粯璁� false 锛� + * @property {Boolean} asyncChange 鏄惁寮�鍚紓姝ュ彉鏇达紝寮�鍚悗闇�瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ�� 锛堥粯璁� false 锛� + * @property {String | Number} inputWidth 杈撳叆妗嗗搴︼紝鍗曚綅涓簆x 锛堥粯璁� 35 锛� + * @property {Boolean} showMinus 鏄惁鏄剧ず鍑忓皯鎸夐挳 锛堥粯璁� true 锛� + * @property {Boolean} showPlus 鏄惁鏄剧ず澧炲姞鎸夐挳 锛堥粯璁� true 锛� + * @property {String | Number} decimalLength 鏄剧ず鐨勫皬鏁颁綅鏁� + * @property {Boolean} longPress 鏄惁寮�鍚暱鎸夊姞鍑忔墜鍔� 锛堥粯璁� true 锛� + * @property {String} color 杈撳叆妗嗘枃瀛楀拰鍔犲噺鎸夐挳鍥炬爣鐨勯鑹� 锛堥粯璁� '#323233' 锛� + * @property {String | Number} buttonSize 鎸夐挳澶у皬锛屽楂樼瓑浜庢鍊硷紝鍗曚綅px锛岃緭鍏ユ楂樺害鍜屾鍊间繚鎸佷竴鑷� 锛堥粯璁� 30 锛� + * @property {String} bgColor 杈撳叆妗嗗拰鎸夐挳鐨勮儗鏅鑹� 锛堥粯璁� '#EBECEE' 锛� + * @property {String | Number} cursorSpacing 鎸囧畾鍏夋爣浜庨敭鐩樼殑璺濈锛岄伩鍏嶉敭鐩橀伄鎸¤緭鍏ユ锛屽崟浣峱x 锛堥粯璁� 100 锛� + * @property {Boolean} disablePlus 鏄惁绂佺敤澧炲姞鎸夐挳 锛堥粯璁� false 锛� + * @property {Boolean} disableMinus 鏄惁绂佺敤鍑忓皯鎸夐挳 锛堥粯璁� false 锛� + * @property {Object 锝� String} iconStyle 鍔犲噺鎸夐挳鍥炬爣鐨勬牱寮� + * + * @event {Function} onFocus 杈撳叆妗嗘椿鍔ㄧ劍鐐� + * @event {Function} onBlur 杈撳叆妗嗗け鍘荤劍鐐� + * @event {Function} onInput 杈撳叆妗嗗�煎彂鐢熷彉鍖� + * @event {Function} onChange + * @example <u-number-box v-model="value" @change="valChange"></u-number-box> + */ + export default { + name: 'u-number-box', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 杈撳叆妗嗗疄闄呮搷浣滅殑鍊� + currentValue: '', + // 瀹氭椂鍣� + longPressTimer: null + } + }, + watch: { + // 澶氫釜鍊间箣闂达紝鍙涓�涓�煎彂鐢熷彉鍖栵紝閮借閲嶆柊妫�鏌heck()鍑芥暟 + watchChange(n) { + this.check() + }, + // 鐩戝惉v-mode鐨勫彉鍖栵紝閲嶆柊鍒濆鍖栧唴閮ㄧ殑鍊� + value(n) { + if (n !== this.currentValue) { + this.currentValue = this.format(this.value) + } + } + }, + computed: { + getCursorSpacing() { + // 鍒ゆ柇浼犲叆鐨勫崟浣嶏紝濡傛灉涓簆x鍗曚綅锛岄渶瑕佽浆鎴恜x + return uni.$u.getPx(this.cursorSpacing) + }, + // 鎸夐挳鐨勬牱寮� + buttonStyle() { + return (type) => { + const style = { + backgroundColor: this.bgColor, + height: uni.$u.addUnit(this.buttonSize), + color: this.color + } + if (this.isDisabled(type)) { + style.backgroundColor = '#f7f8fa' + } + return style + } + }, + // 杈撳叆妗嗙殑鏍峰紡 + inputStyle() { + const disabled = this.disabled || this.disabledInput + const style = { + color: this.color, + backgroundColor: this.bgColor, + height: uni.$u.addUnit(this.buttonSize), + width: uni.$u.addUnit(this.inputWidth) + } + return style + }, + // 鐢ㄤ簬鐩戝惉澶氫釜鍊煎彂鐢熷彉鍖� + watchChange() { + return [this.integer, this.decimalLength, this.min, this.max] + }, + isDisabled() { + return (type) => { + if (type === 'plus') { + // 鍦ㄧ偣鍑诲鍔犳寜閽儏鍐典笅锛屽垽鏂暣浣撶殑disabled锛屾槸鍚﹀崟鐙鐢ㄥ鍔犳寜閽紝浠ュ強褰撳墠鍊兼槸鍚﹀ぇ浜庢渶澶х殑鍏佽鍊� + return ( + this.disabled || + this.disablePlus || + this.currentValue >= this.max + ) + } + // 鐐瑰嚮鍑忓皯鎸夐挳鍚岀悊 + return ( + this.disabled || + this.disableMinus || + this.currentValue <= this.min + ) + } + }, + }, + mounted() { + this.init() + }, + methods: { + init() { + this.currentValue = this.format(this.value) + }, + // 鏍煎紡鍖栨暣鐞嗘暟鎹紝闄愬埗鑼冨洿 + format(value) { + value = this.filter(value) + // 濡傛灉涓虹┖瀛楃涓诧紝閭d箞璁剧疆涓�0锛屽悓鏃跺皢鍊艰浆涓篘umber绫诲瀷 + value = value === '' ? 0 : +value + // 瀵规瘮鏈�澶ф渶灏忓�硷紝鍙栧湪min鍜宮ax涔嬮棿鐨勫�� + value = Math.max(Math.min(this.max, value), this.min) + // 濡傛灉璁惧畾浜嗘渶澶х殑灏忔暟浣嶆暟锛屼娇鐢╰oFixed鍘昏繘琛屾牸寮忓寲 + if (this.decimalLength !== null) { + value = value.toFixed(this.decimalLength) + } + return value + }, + // 杩囨护闈炴硶鐨勫瓧绗� + filter(value) { + // 鍙厑璁�0-9涔嬮棿鐨勬暟瀛楋紝"."涓哄皬鏁扮偣锛�"-"涓鸿礋鏁版椂鍊欎娇鐢� + value = String(value).replace(/[^0-9.-]/g, '') + // 濡傛灉鍙厑璁歌緭鍏ユ暣鏁帮紝鍒欒繃婊ゆ帀灏忔暟鐐瑰悗鐨勯儴鍒� + if (this.integer && value.indexOf('.') !== -1) { + value = value.split('.')[0] + } + return value; + }, + check() { + // 鏍煎紡鍖栦簡涔嬪悗锛屽鏋滃墠鍚庣殑鍊间笉鐩哥瓑锛岄偅涔堣缃负鏍煎紡鍖栧悗鐨勫�� + const val = this.format(this.currentValue); + if (val !== this.currentValue) { + this.currentValue = val + } + }, + // 鍒ゆ柇鏄惁鍑轰簬绂佹鎿嶄綔鐘舵�� + // isDisabled(type) { + // if (type === 'plus') { + // // 鍦ㄧ偣鍑诲鍔犳寜閽儏鍐典笅锛屽垽鏂暣浣撶殑disabled锛屾槸鍚﹀崟鐙鐢ㄥ鍔犳寜閽紝浠ュ強褰撳墠鍊兼槸鍚﹀ぇ浜庢渶澶х殑鍏佽鍊� + // return ( + // this.disabled || + // this.disablePlus || + // this.currentValue >= this.max + // ) + // } + // // 鐐瑰嚮鍑忓皯鎸夐挳鍚岀悊 + // return ( + // this.disabled || + // this.disableMinus || + // this.currentValue <= this.min + // ) + // }, + // 杈撳叆妗嗘椿鍔ㄧ劍鐐� + onFocus(event) { + this.$emit('focus', { + ...event.detail, + name: this.name, + }) + }, + // 杈撳叆妗嗗け鍘荤劍鐐� + onBlur(event) { + // 瀵硅緭鍏ュ�艰繘琛屾牸寮忓寲 + const value = this.format(event.detail.value) + // 鍙戝嚭blur浜嬩欢 + this.$emit( + 'blur',{ + ...event.detail, + name: this.name, + } + ) + }, + // 杈撳叆妗嗗�煎彂鐢熷彉鍖� + onInput(e) { + const { + value = '' + } = e.detail || {} + // 涓虹┖杩斿洖 + if (value === '') return + let formatted = this.filter(value) + // 鏈�澶у厑璁哥殑灏忔暟闀垮害 + if (this.decimalLength !== null && formatted.indexOf('.') !== -1) { + const pair = formatted.split('.'); + formatted = `${pair[0]}.${pair[1].slice(0, this.decimalLength)}` + } + formatted = this.format(formatted) + this.emitChange(formatted); + }, + // 鍙戝嚭change浜嬩欢 + emitChange(value) { + // 濡傛灉寮�鍚簡寮傛鍙樻洿鍊硷紝鍒欎笉淇敼鍐呴儴鐨勫�硷紝闇�瑕佺敤鎴锋墜鍔ㄥ湪澶栭儴閫氳繃v-model鍙樻洿 + if (!this.asyncChange) { + this.$nextTick(() => { + this.$emit('input', value) + this.currentValue = value + this.$forceUpdate() + }) + } + this.$emit('change', { + value, + name: this.name, + }); + }, + onChange() { + const { + type + } = this + if (this.isDisabled(type)) { + return this.$emit('overlimit', type) + } + const diff = type === 'minus' ? -this.step : +this.step + const value = this.format(this.add(+this.currentValue, diff)) + this.emitChange(value) + this.$emit(type) + }, + // 瀵瑰�兼墿澶у悗杩涜鍥涜垗浜斿叆锛屽啀闄や互鎵╁ぇ鍥犲瓙锛岄伩鍏嶅嚭鐜版诞鐐规暟鎿嶄綔鐨勭簿搴﹂棶棰� + add(num1, num2) { + const cardinal = Math.pow(10, 10); + return Math.round((num1 + num2) * cardinal) / cardinal + }, + // 鐐瑰嚮鍔犲噺鎸夐挳 + clickHandler(type) { + this.type = type + this.onChange() + }, + longPressStep() { + // 姣忛殧涓�娈垫椂闂达紝閲嶆柊璋冪敤longPressStep鏂规硶锛屽疄鐜伴暱鎸夊姞鍑� + this.clearTimeout() + this.longPressTimer = setTimeout(() => { + this.onChange() + this.longPressStep() + }, 250); + }, + onTouchStart(type) { + if (!this.longPress) return + this.clearTimeout() + this.type = type + // 涓�瀹氭椂闂村悗锛岄粯璁よ揪鍒伴暱鎸夌姸鎬� + this.longPressTimer = setTimeout(() => { + this.onChange() + this.longPressStep() + }, 600) + }, + // 瑙︽懜缁撴潫锛屾竻闄ゅ畾鏃跺櫒锛屽仠姝㈤暱鎸夊姞鍑� + onTouchEnd() { + if (!this.longPress) return + this.clearTimeout() + }, + // 娓呴櫎瀹氭椂鍣� + clearTimeout() { + clearTimeout(this.longPressTimer) + this.longPressTimer = null + } + } + } +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; + + $u-numberBox-hover-bgColor: #E6E6E6 !default; + $u-numberBox-disabled-color: #c8c9cc !default; + $u-numberBox-disabled-bgColor: #f7f8fa !default; + $u-numberBox-plus-radius: 4px !default; + $u-numberBox-minus-radius: 4px !default; + $u-numberBox-input-text-align: center !default; + $u-numberBox-input-font-size: 15px !default; + $u-numberBox-input-padding: 0 !default; + $u-numberBox-input-margin: 0 2px !default; + $u-numberBox-input-disabled-color: #c8c9cc !default; + $u-numberBox-input-disabled-bgColor: #f2f3f5 !default; + + .u-number-box { + @include flex(row); + align-items: center; + + &__slot { + /* #ifndef APP-NVUE */ + touch-action: none; + /* #endif */ + } + + &__plus, + &__minus { + width: 35px; + @include flex; + justify-content: center; + align-items: center; + /* #ifndef APP-NVUE */ + touch-action: none; + /* #endif */ + + &--hover { + background-color: $u-numberBox-hover-bgColor !important; + } + + &--disabled { + color: $u-numberBox-disabled-color; + background-color: $u-numberBox-disabled-bgColor; + } + } + + &__plus { + border-top-right-radius: $u-numberBox-plus-radius; + border-bottom-right-radius: $u-numberBox-plus-radius; + } + + &__minus { + border-top-left-radius: $u-numberBox-minus-radius; + border-bottom-left-radius: $u-numberBox-minus-radius; + } + + &__input { + position: relative; + text-align: $u-numberBox-input-text-align; + font-size: $u-numberBox-input-font-size; + padding: $u-numberBox-input-padding; + margin: $u-numberBox-input-margin; + @include flex; + align-items: center; + justify-content: center; + + &--disabled { + color: $u-numberBox-input-disabled-color; + background-color: $u-numberBox-input-disabled-bgColor; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/props.js new file mode 100644 index 0000000..5e3bf55 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/props.js @@ -0,0 +1,19 @@ +export default { + props: { + // 閿洏鐨勭被鍨嬶紝number-鏁板瓧閿洏锛宑ard-韬唤璇侀敭鐩� + mode: { + type: String, + default: uni.$u.props.numberKeyboard.value + }, + // 鏄惁鏄剧ず閿洏鐨�"."绗﹀彿 + dotDisabled: { + type: Boolean, + default: uni.$u.props.numberKeyboard.dotDisabled + }, + // 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴� + random: { + type: Boolean, + default: uni.$u.props.numberKeyboard.random + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/u-number-keyboard.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/u-number-keyboard.vue new file mode 100644 index 0000000..4f505c6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-number-keyboard/u-number-keyboard.vue @@ -0,0 +1,196 @@ +<template> + <view + class="u-keyboard" + @touchmove.stop.prevent="noop" + > + <view + class="u-keyboard__button-wrapper" + v-for="(item, index) in numList" + :key="index" + > + <view + class="u-keyboard__button-wrapper__button" + :style="[itemStyle(index)]" + @tap="keyboardClick(item)" + hover-class="u-hover-class" + :hover-stay-time="200" + > + <text class="u-keyboard__button-wrapper__button__text">{{ item }}</text> + </view> + </view> + <view + class="u-keyboard__button-wrapper" + > + <view + class="u-keyboard__button-wrapper__button u-keyboard__button-wrapper__button--gray" + hover-class="u-hover-class" + :hover-stay-time="200" + @touchstart.stop="backspaceClick" + @touchend="clearTimer" + > + <u-icon + name="backspace" + color="#303133" + size="28" + ></u-icon> + </view> + </view> + </view> +</template> + +<script> + import props from './props.js'; + + /** + * keyboard 閿洏缁勪欢 + * @description + * @tutorial + * @property {String} mode 閿洏鐨勭被鍨嬶紝number-鏁板瓧閿洏锛宑ard-韬唤璇侀敭鐩� + * @property {Boolean} dotDisabled 鏄惁鏄剧ず閿洏鐨�"."绗﹀彿 + * @property {Boolean} random 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴� + * @event {Function} change 鐐瑰嚮閿洏瑙﹀彂 + * @event {Function} backspace 鐐瑰嚮閫�鏍奸敭瑙﹀彂 + * @example + */ + export default { + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + backspace: 'backspace', // 閫�鏍奸敭鍐呭 + dot: '.', // 鐐� + timer: null, // 闀挎寜澶氭鍒犻櫎鐨勪簨浠剁洃鍚� + cardX: 'X' // 韬唤璇佺殑X绗﹀彿 + }; + }, + computed: { + // 閿洏闇�瑕佹樉绀虹殑鍐呭 + numList() { + let tmp = []; + if (this.dotDisabled && this.mode == 'number') { + if (!this.random) { + return [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]; + } else { + return uni.$u.randomArray([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]); + } + } else if (!this.dotDisabled && this.mode == 'number') { + if (!this.random) { + return [1, 2, 3, 4, 5, 6, 7, 8, 9, this.dot, 0]; + } else { + return uni.$u.randomArray([1, 2, 3, 4, 5, 6, 7, 8, 9, this.dot, 0]); + } + } else if (this.mode == 'card') { + if (!this.random) { + return [1, 2, 3, 4, 5, 6, 7, 8, 9, this.cardX, 0]; + } else { + return uni.$u.randomArray([1, 2, 3, 4, 5, 6, 7, 8, 9, this.cardX, 0]); + } + } + }, + // 鎸夐敭鐨勬牱寮忥紝鍦ㄩ潪涔卞簭&&鏁板瓧閿洏&&涓嶆樉绀虹偣鎸夐挳鏃讹紝index涓�9鏃讹紝鎸夐敭鍗犱綅涓や釜绌洪棿 + itemStyle() { + return index => { + let style = {}; + if (this.mode == 'number' && this.dotDisabled && index == 9) style.width = '464rpx'; + return style; + }; + }, + // 鏄惁璁╂寜閿樉绀虹伆鑹诧紝鍙湪闈炰贡搴�&&鏁板瓧閿洏&&涓斿厑璁哥偣鎸夐敭鐨勬椂鍊� + btnBgGray() { + return index => { + if (!this.random && index == 9 && (this.mode != 'number' || (this.mode == 'number' && !this + .dotDisabled))) return true; + else return false; + }; + }, + }, + created() { + + }, + methods: { + // 鐐瑰嚮閫�鏍奸敭 + backspaceClick() { + this.$emit('backspace'); + clearInterval(this.timer); //鍐嶆娓呯┖瀹氭椂鍣紝闃叉閲嶅娉ㄥ唽瀹氭椂鍣� + this.timer = null; + this.timer = setInterval(() => { + this.$emit('backspace'); + }, 250); + }, + clearTimer() { + clearInterval(this.timer); + this.timer = null; + }, + // 鑾峰彇閿洏鏄剧ず鐨勫唴瀹� + keyboardClick(val) { + // 鍏佽閿洏鏄剧ず鐐规ā寮忓拰瑙﹀彂闈炵偣鎸夐敭鏃讹紝灏嗗唴瀹硅浆涓烘暟瀛楃被鍨� + if (!this.dotDisabled && val != this.dot && val != this.cardX) val = Number(val); + this.$emit('change', val); + } + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-number-keyboard-background-color:rgb(224, 228, 230) !default; + $u-number-keyboard-padding:8px 10rpx 8px 10rpx !default; + $u-number-keyboard-button-width:222rpx !default; + $u-number-keyboard-button-margin:4px 6rpx !default; + $u-number-keyboard-button-border-top-left-radius:4px !default; + $u-number-keyboard-button-border-top-right-radius:4px !default; + $u-number-keyboard-button-border-bottom-left-radius:4px !default; + $u-number-keyboard-button-border-bottom-right-radius:4px !default; + $u-number-keyboard-button-height: 90rpx!default; + $u-number-keyboard-button-background-color:#FFFFFF !default; + $u-number-keyboard-button-box-shadow:0 2px 0px #BBBCBE !default; + $u-number-keyboard-text-font-size:20px !default; + $u-number-keyboard-text-font-weight:500 !default; + $u-number-keyboard-text-color:$u-main-color !default; + $u-number-keyboard-gray-background-color:rgb(200, 202, 210) !default; + $u-number-keyboard-u-hover-class-background-color: #BBBCC6 !default; + + .u-keyboard { + @include flex; + flex-direction: row; + justify-content: space-around; + background-color: $u-number-keyboard-background-color; + flex-wrap: wrap; + padding: $u-number-keyboard-padding; + + &__button-wrapper { + box-shadow: $u-number-keyboard-button-box-shadow; + margin: $u-number-keyboard-button-margin; + border-top-left-radius: $u-number-keyboard-button-border-top-left-radius; + border-top-right-radius: $u-number-keyboard-button-border-top-right-radius; + border-bottom-left-radius: $u-number-keyboard-button-border-bottom-left-radius; + border-bottom-right-radius: $u-number-keyboard-button-border-bottom-right-radius; + + &__button { + width: $u-number-keyboard-button-width; + height: $u-number-keyboard-button-height; + background-color: $u-number-keyboard-button-background-color; + @include flex; + justify-content: center; + align-items: center; + border-top-left-radius: $u-number-keyboard-button-border-top-left-radius; + border-top-right-radius: $u-number-keyboard-button-border-top-right-radius; + border-bottom-left-radius: $u-number-keyboard-button-border-bottom-left-radius; + border-bottom-right-radius: $u-number-keyboard-button-border-bottom-right-radius; + + &__text { + font-size: $u-number-keyboard-text-font-size; + font-weight: $u-number-keyboard-text-font-weight; + color: $u-number-keyboard-text-color; + } + + &--gray { + background-color: $u-number-keyboard-gray-background-color; + } + } + } + } + + .u-hover-class { + background-color: $u-number-keyboard-u-hover-class-background-color; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/props.js new file mode 100644 index 0000000..e6974df --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/props.js @@ -0,0 +1,24 @@ +export default { + props: { + // 鏄惁鏄剧ず閬僵 + show: { + type: Boolean, + default: uni.$u.props.overlay.show + }, + // 灞傜骇z-index + zIndex: { + type: [String, Number], + default: uni.$u.props.overlay.zIndex + }, + // 閬僵鐨勮繃娓℃椂闂达紝鍗曚綅涓簃s + duration: { + type: [String, Number], + default: uni.$u.props.overlay.duration + }, + // 涓嶉�忔槑搴﹀�硷紝褰撳仛rgba鐨勭鍥涗釜鍙傛暟 + opacity: { + type: [String, Number], + default: uni.$u.props.overlay.opacity + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/u-overlay.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/u-overlay.vue new file mode 100644 index 0000000..92de4e9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-overlay/u-overlay.vue @@ -0,0 +1,68 @@ +<template> + <u-transition + :show="show" + custom-class="u-overlay" + :duration="duration" + :custom-style="overlayStyle" + @click="clickHandler" + > + <slot /> + </u-transition> +</template> + +<script> + import props from './props.js'; + + /** + * overlay 閬僵 + * @description 鍒涘缓涓�涓伄缃╁眰锛岀敤浜庡己璋冪壒瀹氱殑椤甸潰鍏冪礌锛屽苟闃绘鐢ㄦ埛瀵归伄缃╀笅灞傜殑鍐呭杩涜鎿嶄綔锛屼竴鑸敤浜庡脊绐楀満鏅� + * @tutorial https://www.uviewui.com/components/overlay.html + * @property {Boolean} show 鏄惁鏄剧ず閬僵锛堥粯璁� false 锛� + * @property {String | Number} zIndex zIndex 灞傜骇锛堥粯璁� 10070 锛� + * @property {String | Number} duration 鍔ㄧ敾鏃堕暱锛屽崟浣嶆绉掞紙榛樿 300 锛� + * @property {String | Number} opacity 涓嶉�忔槑搴﹀�硷紝褰撳仛rgba鐨勭鍥涗釜鍙傛暟 锛堥粯璁� 0.5 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @event {Function} click 鐐瑰嚮閬僵鍙戦�佷簨浠� + * @example <u-overlay :show="show" @click="show = false"></u-overlay> + */ + export default { + name: "u-overlay", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + overlayStyle() { + const style = { + position: 'fixed', + top: 0, + left: 0, + right: 0, + zIndex: this.zIndex, + bottom: 0, + 'background-color': `rgba(0, 0, 0, ${this.opacity})` + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + methods: { + clickHandler() { + this.$emit('click') + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-overlay-top:0 !default; + $u-overlay-left:0 !default; + $u-overlay-width:100% !default; + $u-overlay-height:100% !default; + $u-overlay-background-color:rgba(0, 0, 0, .7) !default; + .u-overlay { + position: fixed; + top:$u-overlay-top; + left:$u-overlay-left; + width: $u-overlay-width; + height:$u-overlay-height; + background-color:$u-overlay-background-color; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/node/node.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/node/node.vue new file mode 100644 index 0000000..73e30fd --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/node/node.vue @@ -0,0 +1,499 @@ +<template> + <view :id="attrs.id" :class="'_'+name+' '+attrs.class" :style="attrs.style"> + <block v-for="(n, i) in childs" v-bind:key="i"> + <!-- 鍥剧墖 --> + <!-- 鍗犱綅鍥� --> + <image v-if="n.name=='img'&&((opts[1]&&!ctrl[i])||ctrl[i]<0)" class="_img" :style="n.attrs.style" :src="ctrl[i]<0?opts[2]:opts[1]" mode="widthFix" /> + <!-- 鏄剧ず鍥剧墖 --> + <!-- #ifdef H5 || APP-PLUS --> + <img v-if="n.name=='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl[i]==-1?'display:none;':'')+n.attrs.style" :src="n.attrs.src||(ctrl.load?n.attrs['data-src']:'')" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap" @longpress="imgLongTap"/> + <!-- #endif --> + <!-- #ifndef H5 || APP-PLUS --> + <image v-if="n.name=='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl[i]==-1?'display:none;':'')+'width:'+(ctrl[i]||1)+'px;height:1px;'+n.attrs.style" :src="n.attrs.src" :mode="n.h?'':'widthFix'" :lazy-load="opts[0]" :webp="n.webp" :show-menu-by-longpress="opts[3]&&!n.attrs.ignore" :image-menu-prevent="!opts[3]||n.attrs.ignore" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap" @longpress="imgLongTap" /> + <!-- #endif --> + <!-- 鏂囨湰 --> + <!-- #ifndef MP-BAIDU --> + <text v-else-if="n.type=='text'" decode>{{n.text}}</text> + <!-- #endif --> + <text v-else-if="n.name=='br'">\n</text> + <!-- 閾炬帴 --> + <view v-else-if="n.name=='a'" :id="n.attrs.id" :class="(n.attrs.href?'_a ':'')+n.attrs.class" hover-class="_hover" :style="'display:inline;'+n.attrs.style" :data-i="i" @tap.stop="linkTap"> + <node name="span" :childs="n.children" :opts="opts" style="display:inherit" /> + </view> + <!-- 瑙嗛 --> + <!-- #ifdef APP-PLUS --> + <view v-else-if="n.html" :id="n.attrs.id" :class="'_video '+n.attrs.class" :style="n.attrs.style" v-html="n.html" /> + <!-- #endif --> + <!-- #ifndef APP-PLUS --> + <video v-else-if="n.name=='video'" :id="n.attrs.id" :class="n.attrs.class" :style="n.attrs.style" :autoplay="n.attrs.autoplay" :controls="n.attrs.controls" :loop="n.attrs.loop" :muted="n.attrs.muted" :poster="n.attrs.poster" :src="n.src[ctrl[i]||0]" :data-i="i" @play="play" @error="mediaError" /> + <!-- #endif --> + <!-- #ifdef H5 || APP-PLUS --> + <iframe v-else-if="n.name=='iframe'" :style="n.attrs.style" :allowfullscreen="n.attrs.allowfullscreen" :frameborder="n.attrs.frameborder" :src="n.attrs.src" /> + <embed v-else-if="n.name=='embed'" :style="n.attrs.style" :src="n.attrs.src" /> + <!-- #endif --> + <!-- #ifndef MP-TOUTIAO --> + <!-- 闊抽 --> + <audio v-else-if="n.name=='audio'" :id="n.attrs.id" :class="n.attrs.class" :style="n.attrs.style" :author="n.attrs.author" :controls="n.attrs.controls" :loop="n.attrs.loop" :name="n.attrs.name" :poster="n.attrs.poster" :src="n.src[ctrl[i]||0]" :data-i="i" @play="play" @error="mediaError" /> + <!-- #endif --> + <view v-else-if="(n.name=='table'&&n.c)||n.name=='li'" :id="n.attrs.id" :class="'_'+n.name+' '+n.attrs.class" :style="n.attrs.style"> + <node v-if="n.name=='li'" :childs="n.children" :opts="opts" /> + <view v-else v-for="(tbody, x) in n.children" v-bind:key="x" :class="'_'+tbody.name+' '+tbody.attrs.class" :style="tbody.attrs.style"> + <node v-if="tbody.name=='td'||tbody.name=='th'" :childs="tbody.children" :opts="opts" /> + <block v-else v-for="(tr, y) in tbody.children" v-bind:key="y"> + <view v-if="tr.name=='td'||tr.name=='th'" :class="'_'+tr.name+' '+tr.attrs.class" :style="tr.attrs.style"> + <node :childs="tr.children" :opts="opts" /> + </view> + <view v-else :class="'_'+tr.name+' '+tr.attrs.class" :style="tr.attrs.style"> + <view v-for="(td, z) in tr.children" v-bind:key="z" :class="'_'+td.name+' '+td.attrs.class" :style="td.attrs.style"> + <node :childs="td.children" :opts="opts" /> + </view> + </view> + </block> + </view> + </view> + + <!-- 瀵屾枃鏈� --> + <!-- #ifdef H5 || MP-WEIXIN || MP-QQ || APP-PLUS || MP-360 --> + <rich-text v-else-if="handler.use(n)" :id="n.attrs.id" :style="n.f" :nodes="[n]" /> + <!-- #endif --> + <!-- #ifndef H5 || MP-WEIXIN || MP-QQ || APP-PLUS || MP-360 --> + <rich-text v-else-if="!n.c" :id="n.attrs.id" :style="n.f+';display:inline'" :preview="false" :nodes="[n]" /> + <!-- #endif --> + <!-- 缁х画閫掑綊 --> + <view v-else-if="n.c==2" :id="n.attrs.id" :class="'_'+n.name+' '+n.attrs.class" :style="n.f+';'+n.attrs.style"> + <node v-for="(n2, j) in n.children" v-bind:key="j" :style="n2.f" :name="n2.name" :attrs="n2.attrs" :childs="n2.children" :opts="opts" /> + </view> + <node v-else :style="n.f" :name="n.name" :attrs="n.attrs" :childs="n.children" :opts="opts" /> + </block> + </view> +</template> +<script module="handler" lang="wxs"> +// 琛屽唴鏍囩鍒楄〃 +var inlineTags = { + abbr: true, + b: true, + big: true, + code: true, + del: true, + em: true, + i: true, + ins: true, + label: true, + q: true, + small: true, + span: true, + strong: true, + sub: true, + sup: true +} +/** + * @description 鏄惁浣跨敤 rich-text 鏄剧ず鍓╀綑鍐呭 + */ +module.exports = { + use: function (item) { + // 寰俊鍜� QQ 鐨� rich-text inline 甯冨眬鏃犳晥 + if (inlineTags[item.name] || (item.attrs.style || '').indexOf('display:inline') != -1) + return false + return !item.c + } +} +</script> +<script> + +import node from './node' +export default { + name: 'node', + // #ifdef MP-WEIXIN + options: { + virtualHost: true + }, + // #endif + data() { + return { + ctrl: {} + } + }, + props: { + name: String, + attrs: { + type: Object, + default() { + return {} + } + }, + childs: Array, + opts: Array + }, + components: { + + node + }, + mounted() { + for (this.root = this.$parent; this.root.$options.name != 'mp-html'; this.root = this.root.$parent); + // #ifdef H5 || APP-PLUS + if (this.opts[0]) { + for (var i = this.childs.length; i--;) + if (this.childs[i].name == 'img') + break + if (i != -1) { + this.observer = uni.createIntersectionObserver(this).relativeToViewport({ + top: 500, + bottom: 500 + }) + this.observer.observe('._img', res => { + if (res.intersectionRatio) { + this.$set(this.ctrl, 'load', 1) + this.observer.disconnect() + } + }) + } + } + // #endif + }, + beforeDestroy() { + // #ifdef H5 || APP-PLUS + if (this.observer) + this.observer.disconnect() + // #endif + }, + methods:{ + // #ifdef MP-WEIXIN + toJSON() { }, + // #endif + /** + * @description 鎾斁瑙嗛浜嬩欢 + * @param {Event} e + */ + play(e) { + // #ifndef APP-PLUS + if (this.root.pauseVideo) { + var flag = false, id = e.target.id + for (var i = this.root._videos.length; i--;) { + if (this.root._videos[i].id == id) + flag = true + else + this.root._videos[i].pause() // 鑷姩鏆傚仠鍏朵粬瑙嗛 + } + // 灏嗚嚜宸卞姞鍏ュ垪琛� + if (!flag) { + var ctx = uni.createVideoContext(id + // #ifndef MP-BAIDU + , this + // #endif + ) + ctx.id = id + this.root._videos.push(ctx) + } + } + // #endif + }, + + /** + * @description 鍥剧墖鐐瑰嚮浜嬩欢 + * @param {Event} e + */ + imgTap(e) { + var node = this.childs[e.currentTarget.dataset.i] + if (node.a) + return this.linkTap(node.a) + if (node.attrs.ignore) + return + // #ifdef H5 || APP-PLUS + node.attrs.src = node.attrs.src || node.attrs['data-src'] + // #endif + this.root.$emit('imgTap', node.attrs) + // 鑷姩棰勮鍥剧墖 + if (this.root.previewImg) + uni.previewImage({ + current: parseInt(node.attrs.i), + urls: this.root.imgList + }) + }, + + /** + * @description 鍥剧墖闀挎寜 + */ + imgLongTap(e) { + // #ifdef APP-PLUS + var attrs = this.childs[e.currentTarget.dataset.i].attrs + if (!attrs.ignore) + uni.showActionSheet({ + itemList: ['淇濆瓨鍥剧墖'], + success: () => { + uni.downloadFile({ + url: this.root.imgList[attrs.i], + success: res => { + uni.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success() { + uni.showToast({ + title: '淇濆瓨鎴愬姛' + }) + } + }) + } + }) + } + }) + // #endif + }, + + /** + * @description 鍥剧墖鍔犺浇瀹屾垚浜嬩欢 + * @param {Event} e + */ + imgLoad(e) { + var i = e.currentTarget.dataset.i + // #ifndef H5 || APP-PLUS + // 璁剧疆鍘熷搴� + if (!this.childs[i].w) + this.$set(this.ctrl, i, e.detail.width) + else + // #endif + // 鍔犺浇瀹屾瘯锛屽彇娑堝姞杞戒腑鍗犱綅鍥� + if ((this.opts[1] && !this.ctrl[i]) || this.ctrl[i] == -1) + this.$set(this.ctrl, i, 1) + }, + + /** + * @description 閾炬帴鐐瑰嚮浜嬩欢 + * @param {Event} e + */ + linkTap(e) { + var attrs = e.currentTarget ? this.childs[e.currentTarget.dataset.i].attrs : e, + href = attrs.href + this.root.$emit('linkTap', attrs) + if (href) { + // 璺宠浆閿氱偣 + if (href[0] == '#') + this.root.navigateTo(href.substring(1)).catch(() => { }) + // 澶嶅埗澶栭儴閾炬帴 + else if (href.includes('://')) { + if (this.root.copyLink) { + // #ifdef H5 + window.open(href) + // #endif + // #ifdef MP + uni.setClipboardData({ + data: href, + success: () => + uni.showToast({ + title: '閾炬帴宸插鍒�' + }) + }) + // #endif + // #ifdef APP-PLUS + plus.runtime.openWeb(href) + // #endif + } + } + // 璺宠浆椤甸潰 + else + uni.navigateTo({ + url: href, + fail() { + uni.switchTab({ + url: href, + fail() { } + }) + } + }) + } + }, + + /** + * @description 閿欒浜嬩欢 + * @param {Event} e + */ + mediaError(e) { + var i = e.currentTarget.dataset.i, + node = this.childs[i] + // 鍔犺浇鍏朵粬婧� + if (node.name == 'video' || node.name == 'audio') { + var index = (this.ctrl[i] || 0) + 1 + if (index > node.src.length) + index = 0 + if (index < node.src.length) + return this.$set(this.ctrl, i, index) + } + // 鏄剧ず閿欒鍗犱綅鍥� + else if (node.name == 'img' && this.opts[2]) + this.$set(this.ctrl, i, -1) + if (this.root) + this.root.$emit('error', { + source: node.name, + attrs: node.attrs, + errMsg: e.detail.errMsg + }) + } + } +} +</script> +<style> +/* a 鏍囩榛樿鏁堟灉 */ +._a { + padding: 1.5px 0 1.5px 0; + color: #366092; + word-break: break-all; +} + +/* a 鏍囩鐐瑰嚮鎬佹晥鏋� */ +._hover { + text-decoration: underline; + opacity: 0.7; +} + +/* 鍥剧墖榛樿鏁堟灉 */ +._img { + max-width: 100%; + -webkit-touch-callout: none; +} + +/* 鍐呴儴鏍峰紡 */ + +._b, +._strong { + font-weight: bold; +} + +._code { + font-family: monospace; +} + +._del { + text-decoration: line-through; +} + +._em, +._i { + font-style: italic; +} + +._h1 { + font-size: 2em; +} + +._h2 { + font-size: 1.5em; +} + +._h3 { + font-size: 1.17em; +} + +._h5 { + font-size: 0.83em; +} + +._h6 { + font-size: 0.67em; +} + +._h1, +._h2, +._h3, +._h4, +._h5, +._h6 { + display: block; + font-weight: bold; +} + +._image { + height: 1px; +} + +._ins { + text-decoration: underline; +} + +._li { + display: list-item; +} + +._ol { + list-style-type: decimal; +} + +._ol, +._ul { + display: block; + padding-left: 40px; + margin: 1em 0; +} + +._q::before { + content: '"'; +} + +._q::after { + content: '"'; +} + +._sub { + font-size: smaller; + vertical-align: sub; +} + +._sup { + font-size: smaller; + vertical-align: super; +} + +._thead, +._tbody, +._tfoot { + display: table-row-group; +} + +._tr { + display: table-row; +} + +._td, +._th { + display: table-cell; + vertical-align: middle; +} + +._th { + font-weight: bold; + text-align: center; +} + +._ul { + list-style-type: disc; +} + +._ul ._ul { + margin: 0; + list-style-type: circle; +} + +._ul ._ul ._ul { + list-style-type: square; +} + +._abbr, +._b, +._code, +._del, +._em, +._i, +._ins, +._label, +._q, +._span, +._strong, +._sub, +._sup { + display: inline; +} + +/* #ifdef APP-PLUS */ +._video { + width: 300px; + height: 225px; +} +/* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/parser.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/parser.js new file mode 100644 index 0000000..a78a654 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/parser.js @@ -0,0 +1,1075 @@ +'use strict' + +/** + * @fileoverview html 瑙f瀽鍣� + */ +// 閰嶇疆 +const config = { + // 淇′换鐨勬爣绛撅紙淇濇寔鏍囩鍚嶄笉鍙橈級 + trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'), + // 鍧楃骇鏍囩锛堣浆涓� div锛屽叾浠栫殑闈炰俊浠绘爣绛捐浆涓� span锛� + blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'), + // 瑕佺Щ闄ょ殑鏍囩 + ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'), + // 鑷棴鍚堢殑鏍囩 + voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'), + // html 瀹炰綋 + entities: { + lt: '<', + gt: '>', + quot: '"', + apos: "'", + ensp: '\u2002', + emsp: '\u2003', + nbsp: '\xA0', + semi: ';', + ndash: '鈥�', + mdash: '鈥�', + middot: '路', + lsquo: '鈥�', + rsquo: '鈥�', + ldquo: '鈥�', + rdquo: '鈥�', + bull: '鈥�', + hellip: '鈥�' + }, + // 榛樿鐨勬爣绛炬牱寮� + tagStyle: { + // #ifndef APP-PLUS-NVUE + address: 'font-style:italic', + big: 'display:inline;font-size:1.2em', + caption: 'display:table-caption;text-align:center', + center: 'text-align:center', + cite: 'font-style:italic', + dd: 'margin-left:40px', + mark: 'background-color:yellow', + pre: 'font-family:monospace;white-space:pre', + s: 'text-decoration:line-through', + small: 'display:inline;font-size:0.8em', + u: 'text-decoration:underline' // #endif + + } +} +const { windowWidth } = uni.getSystemInfoSync() +const blankChar = makeMap(' ,\r,\n,\t,\f') +let idIndex = 0 // #ifdef H5 || APP-PLUS + +config.ignoreTags.iframe = void 0 +config.trustTags.iframe = true +config.ignoreTags.embed = void 0 +config.trustTags.embed = true // #endif +// #ifdef APP-PLUS-NVUE + +config.ignoreTags.source = void 0 +config.ignoreTags.style = void 0 // #endif + +/** + * @description 鍒涘缓 map + * @param {String} str 閫楀彿鍒嗛殧 + */ + +function makeMap(str) { + const map = Object.create(null) + const list = str.split(',') + + for (let i = list.length; i--;) { + map[list[i]] = true + } + + return map +} +/** + * @description 瑙g爜 html 瀹炰綋 + * @param {String} str 瑕佽В鐮佺殑瀛楃涓� + * @param {Boolean} amp 瑕佷笉瑕佽В鐮� & + * @returns {String} 瑙g爜鍚庣殑瀛楃涓� + */ + +function decodeEntity(str, amp) { + let i = str.indexOf('&') + + while (i != -1) { + const j = str.indexOf(';', i + 3) + let code = void 0 + if (j == -1) break + + if (str[i + 1] == '#') { + // { 褰㈠紡鐨勫疄浣� + code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j)) + if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1) + } else { + // 褰㈠紡鐨勫疄浣� + code = str.substring(i + 1, j) + if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1) + } + + i = str.indexOf('&', i + 1) + } + + return str +} +/** + * @description html 瑙f瀽鍣� + * @param {Object} vm 缁勪欢瀹炰緥 + */ + +function parser(vm) { + this.options = vm || {} + this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle) + this.imgList = vm.imgList || [] + this.plugins = vm.plugins || [] + this.attrs = Object.create(null) + this.stack = [] + this.nodes = [] +} +/** + * @description 鎵ц瑙f瀽 + * @param {String} content 瑕佽В鏋愮殑鏂囨湰 + */ + +parser.prototype.parse = function (content) { + // 鎻掍欢澶勭悊 + for (let i = this.plugins.length; i--;) { + if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content + } + + new lexer(this).parse(content) // 鍑烘爤鏈棴鍚堢殑鏍囩 + + while (this.stack.length) { + this.popNode() + } + + return this.nodes +} +/** + * @description 灏嗘爣绛炬毚闇插嚭鏉ワ紙涓嶈 rich-text 鍖呭惈锛� + */ + +parser.prototype.expose = function () { + // #ifndef APP-PLUS-NVUE + for (let i = this.stack.length; i--;) { + const item = this.stack[i] + if (item.name == 'a' || item.c) return + item.c = 1 + } // #endif +} +/** + * @description 澶勭悊鎻掍欢 + * @param {Object} node 瑕佸鐞嗙殑鏍囩 + * @returns {Boolean} 鏄惁瑕佺Щ闄ゆ鏍囩 + */ + +parser.prototype.hook = function (node) { + for (let i = this.plugins.length; i--;) { + if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false + } + + return true +} +/** + * @description 灏嗛摼鎺ユ嫾鎺ヤ笂涓诲煙鍚� + * @param {String} url 闇�瑕佹嫾鎺ョ殑閾炬帴 + * @returns {String} 鎷兼帴鍚庣殑閾炬帴 + */ + +parser.prototype.getUrl = function (url) { + const { domain } = this.options + + if (url[0] == '/') { + // // 寮�澶寸殑琛ュ厖鍗忚鍚� + if (url[1] == '/') url = `${domain ? domain.split('://')[0] : 'http'}:${url}` // 鍚﹀垯琛ュ厖鏁翠釜鍩熷悕 + else if (domain) url = domain + url + } else if (domain && !url.includes('data:') && !url.includes('://')) url = `${domain}/${url}` + + return url +} +/** + * @description 瑙f瀽鏍峰紡琛� + * @param {Object} node 鏍囩 + * @returns {Object} + */ + +parser.prototype.parseStyle = function (node) { + const { attrs } = node + const list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';')) + const styleObj = {} + let tmp = '' + + if (attrs.id) { + // 鏆撮湶閿氱偣 + if (this.options.useAnchor) this.expose(); else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0 + } // 杞崲 width 鍜� height 灞炴�� + + if (attrs.width) { + styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px') + attrs.width = void 0 + } + + if (attrs.height) { + styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px') + attrs.height = void 0 + } + + for (let i = 0, len = list.length; i < len; i++) { + const info = list[i].split(':') + if (info.length < 2) continue + const key = info.shift().trim().toLowerCase() + let value = info.join(':').trim() // 鍏煎鎬х殑 css 涓嶅帇缂� + + if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value) // 閲嶅鐨勬牱寮忚繘琛岃鐩� + else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) { + // 濉厖閾炬帴 + if (value.includes('url')) { + let j = value.indexOf('(') + 1 + + if (j) { + while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) { + j++ + } + + value = value.substr(0, j) + this.getUrl(value.substr(j)) + } + } // 杞崲 rpx锛坮ich-text 鍐呴儴涓嶆敮鎸� rpx锛� + else if (value.includes('rpx')) { + value = value.replace(/[0-9.]+\s*rpx/g, ($) => `${parseFloat($) * windowWidth / 750}px`) + } + + styleObj[key] = value + } + } + + node.attrs.style = tmp + return styleObj +} +/** + * @description 瑙f瀽鍒版爣绛惧悕 + * @param {String} name 鏍囩鍚� + * @private + */ + +parser.prototype.onTagName = function (name) { + this.tagName = this.xml ? name : name.toLowerCase() + if (this.tagName == 'svg') this.xml = true // svg 鏍囩鍐呭ぇ灏忓啓鏁忔劅 +} +/** + * @description 瑙f瀽鍒板睘鎬у悕 + * @param {String} name 灞炴�у悕 + * @private + */ + +parser.prototype.onAttrName = function (name) { + name = this.xml ? name : name.toLowerCase() + + if (name.substr(0, 5) == 'data-') { + // data-src 鑷姩杞负 src + if (name == 'data-src' && !this.attrs.src) this.attrName = 'src' // a 鍜� img 鏍囩淇濈暀 data- 鐨勫睘鎬э紝鍙互鍦� imgtap 鍜� linktap 浜嬩欢涓娇鐢� + else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name // 鍓╀綑鐨勭Щ闄や互鍑忓皬澶у皬 + else this.attrName = void 0 + } else { + this.attrName = name + this.attrs[name] = 'T' // boolean 鍨嬪睘鎬х己鐪佽缃� + } +} +/** + * @description 瑙f瀽鍒板睘鎬у�� + * @param {String} val 灞炴�у�� + * @private + */ + +parser.prototype.onAttrVal = function (val) { + const name = this.attrName || '' // 閮ㄥ垎灞炴�ц繘琛屽疄浣撹В鐮� + + if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true) // 鎷兼帴涓诲煙鍚� + else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true)); else if (name) this.attrs[name] = val +} +/** + * @description 瑙f瀽鍒版爣绛惧紑濮� + * @param {Boolean} selfClose 鏄惁鏈夎嚜闂悎鏍囪瘑 /> + * @private + */ + +parser.prototype.onOpenTag = function (selfClose) { + // 鎷艰 node + const node = Object.create(null) + node.name = this.tagName + node.attrs = this.attrs + this.attrs = Object.create(null) + const { attrs } = node + const parent = this.stack[this.stack.length - 1] + const siblings = parent ? parent.children : this.nodes + const close = this.xml ? selfClose : config.voidTags[node.name] // 杞崲 embed 鏍囩 + + if (node.name == 'embed') { + // #ifndef H5 || APP-PLUS + const src = attrs.src || '' // 鎸夌収鍚庣紑鍚嶅拰 type 灏� embed 杞负 video 鎴� audio + + if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video'; else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio' + if (attrs.autostart) attrs.autoplay = 'T' + attrs.controls = 'T' // #endif + // #ifdef H5 || APP-PLUS + + this.expose() // #endif + } // #ifndef APP-PLUS-NVUE + // 澶勭悊闊宠棰� + + if (node.name == 'video' || node.name == 'audio') { + // 璁剧疆 id 浠ヤ究鑾峰彇 context + if (node.name == 'video' && !attrs.id) attrs.id = `v${idIndex++}` // 娌℃湁璁剧疆 controls 涔熸病鏈夎缃� autoplay 鐨勮嚜鍔ㄨ缃� controls + + if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T' // 鐢ㄦ暟缁勫瓨鍌ㄦ墍鏈夊彲鐢ㄧ殑 source + + node.src = [] + + if (attrs.src) { + node.src.push(attrs.src) + attrs.src = void 0 + } + + this.expose() + } // #endif + // 澶勭悊鑷棴鍚堟爣绛� + + if (close) { + if (!this.hook(node) || config.ignoreTags[node.name]) { + // 閫氳繃 base 鏍囩璁剧疆涓诲煙鍚� + if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href // #ifndef APP-PLUS-NVUE + // 璁剧疆 source 鏍囩锛堜粎鐖惰妭鐐逛负 video 鎴� audio 鏃舵湁鏁堬級 + else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src) // #endif + + return + } // 瑙f瀽 style + + const styleObj = this.parseStyle(node) // 澶勭悊鍥剧墖 + + if (node.name == 'img') { + if (attrs.src) { + // 鏍囪 webp + if (attrs.src.includes('webp')) node.webp = 'T' // data url 鍥剧墖濡傛灉娌℃湁璁剧疆 original-src 榛樿涓轰笉鍙瑙堢殑灏忓浘鐗� + + if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T' + + if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) { + for (let i = this.stack.length; i--;) { + const item = this.stack[i] + + if (item.name == 'a') { + node.a = item.attrs + break + } // #ifndef H5 || APP-PLUS + + const style = item.attrs.style || '' + + if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) { + styleObj.width = '100% !important' + styleObj.height = '' + + for (let j = i + 1; j < this.stack.length; j++) { + this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '') + } + } else if (style.includes('flex') && styleObj.width == '100%') { + for (let _j = i + 1; _j < this.stack.length; _j++) { + const _style = this.stack[_j].attrs.style || '' + + if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) { + styleObj.width = '' + break + } + } + } else if (style.includes('inline-block')) { + if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') { + item.attrs.style += `;max-width:${styleObj.width}` + styleObj.width = '' + } else item.attrs.style += ';max-width:100%' + } // #endif + + item.c = 1 + } + + attrs.i = this.imgList.length.toString() + + let _src = attrs['original-src'] || attrs.src // #ifndef H5 || MP-ALIPAY || APP-PLUS || MP-360 + + if (this.imgList.includes(_src)) { + // 濡傛灉鏈夐噸澶嶇殑閾炬帴鍒欏鍩熷悕杩涜闅忔満澶у皬鍐欏彉鎹㈤伩鍏嶉瑙堟椂閿欎綅 + let _i = _src.indexOf('://') + + if (_i != -1) { + _i += 3 + + let newSrc = _src.substr(0, _i) + + for (; _i < _src.length; _i++) { + if (_src[_i] == '/') break + newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i] + } + + newSrc += _src.substr(_i) + _src = newSrc + } + } // #endif + + this.imgList.push(_src) // #ifdef H5 || APP-PLUS + + if (this.options.lazyLoad) { + attrs['data-src'] = attrs.src + attrs.src = void 0 + } // #endif + } + } + + if (styleObj.display == 'inline') styleObj.display = '' // #ifndef APP-PLUS-NVUE + + if (attrs.ignore) { + styleObj['max-width'] = styleObj['max-width'] || '100%' + attrs.style += ';-webkit-touch-callout:none' + } // #endif + // 璁剧疆鐨勫搴﹁秴鍑哄睆骞曪紝涓洪伩鍏嶅彉褰紝楂樺害杞负鑷姩 + + if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0 // 璁板綍鏄惁璁剧疆浜嗗楂� + + if (styleObj.width) { + if (styleObj.width.includes('auto')) styleObj.width = ''; else { + node.w = 'T' + if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T' + } + } + } else if (node.name == 'svg') { + siblings.push(node) + this.stack.push(node) + this.popNode() + return + } + + for (const key in styleObj) { + if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', '')) + } + + attrs.style = attrs.style.substr(1) || void 0 + } else { + if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true + node.children = [] + this.stack.push(node) + } // 鍔犲叆鑺傜偣鏍� + + siblings.push(node) +} +/** + * @description 瑙f瀽鍒版爣绛剧粨鏉� + * @param {String} name 鏍囩鍚� + * @private + */ + +parser.prototype.onCloseTag = function (name) { + // 渚濇鍑烘爤鍒板尮閰嶄负姝� + name = this.xml ? name : name.toLowerCase() + let i + + for (i = this.stack.length; i--;) { + if (this.stack[i].name == name) break + } + + if (i != -1) { + while (this.stack.length > i) { + this.popNode() + } + } else if (name == 'p' || name == 'br') { + const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes + siblings.push({ + name, + attrs: {} + }) + } +} +/** + * @description 澶勭悊鏍囩鍑烘爤 + * @private + */ + +parser.prototype.popNode = function () { + const node = this.stack.pop() + let { attrs } = node + const { children } = node + const parent = this.stack[this.stack.length - 1] + const siblings = parent ? parent.children : this.nodes + + if (!this.hook(node) || config.ignoreTags[node.name]) { + // 鑾峰彇鏍囬 + if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) { + uni.setNavigationBarTitle({ + title: children[0].text + }) + } + siblings.pop() + return + } + + if (node.pre) { + // 鏄惁鍚堝苟绌虹櫧绗︽爣璇� + node.pre = this.pre = void 0 + + for (let i = this.stack.length; i--;) { + if (this.stack[i].pre) this.pre = true + } + } + + const styleObj = {} // 杞崲 svg + + if (node.name == 'svg') { + // #ifndef APP-PLUS-NVUE + let src = '' + const { style } = attrs + attrs.style = '' + attrs.xmlns = 'http://www.w3.org/2000/svg'; + + (function traversal(node) { + src += `<${node.name}` + + for (let item in node.attrs) { + const val = node.attrs[item] + + if (val) { + if (item == 'viewbox') item = 'viewBox' + src += ' '.concat(item, '="').concat(val, '"') + } + } + + if (!node.children) src += '/>'; else { + src += '>' + + for (let _i2 = 0; _i2 < node.children.length; _i2++) { + traversal(node.children[_i2]) + } + + src += `</${node.name}>` + } + }(node)) + + node.name = 'img' + node.attrs = { + src: `data:image/svg+xml;utf8,${src.replace(/#/g, '%23')}`, + style, + ignore: 'T' + } + node.children = void 0 // #endif + + this.xml = false + return + } // #ifndef APP-PLUS-NVUE + // 杞崲 align 灞炴�� + + if (attrs.align) { + if (node.name == 'table') { + if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto'; else styleObj.float = attrs.align + } else styleObj['text-align'] = attrs.align + + attrs.align = void 0 + } // 杞崲 font 鏍囩鐨勫睘鎬� + + if (node.name == 'font') { + if (attrs.color) { + styleObj.color = attrs.color + attrs.color = void 0 + } + + if (attrs.face) { + styleObj['font-family'] = attrs.face + attrs.face = void 0 + } + + if (attrs.size) { + let size = parseInt(attrs.size) + + if (!isNaN(size)) { + if (size < 1) size = 1; else if (size > 7) size = 7 + styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1] + } + + attrs.size = void 0 + } + } // #endif + // 涓�浜涚紪杈戝櫒鐨勮嚜甯� class + + if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center' + Object.assign(styleObj, this.parseStyle(node)) + + if (parseInt(styleObj.width) > windowWidth) { + styleObj['max-width'] = '100%' + styleObj['box-sizing'] = 'border-box' + } // #ifndef APP-PLUS-NVUE + + if (config.blockTags[node.name]) node.name = 'div' // 鏈煡鏍囩杞负 span锛岄伩鍏嶆棤娉曟樉绀� + else if (!config.trustTags[node.name] && !this.xml) node.name = 'span' + if (node.name == 'a' || node.name == 'ad' // #ifdef H5 || APP-PLUS + || node.name == 'iframe' // #endif + ) this.expose() // #ifdef APP-PLUS + else if (node.name == 'video') { + let str = '<video style="width:100%;height:100%"' // 绌虹櫧鍥惧崰浣� + + if (!attrs.poster && !attrs.autoplay) attrs.poster = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'/>" + + for (const item in attrs) { + if (attrs[item]) str += ` ${item}="${attrs[item]}"` + } + + if (this.options.pauseVideo) str += ' onplay="for(var e=document.getElementsByTagName(\'video\'),t=0;t<e.length;t++)e[t]!=this&&e[t].pause()"' + str += '>' + + for (let _i3 = 0; _i3 < node.src.length; _i3++) { + str += `<source src="${node.src[_i3]}">` + } + + str += '</video>' + node.html = str + } // #endif + // 鍒楄〃澶勭悊 + else if ((node.name == 'ul' || node.name == 'ol') && node.c) { + const types = { + a: 'lower-alpha', + A: 'upper-alpha', + i: 'lower-roman', + I: 'upper-roman' + } + + if (types[attrs.type]) { + attrs.style += `;list-style-type:${types[attrs.type]}` + attrs.type = void 0 + } + + for (let _i4 = children.length; _i4--;) { + if (children[_i4].name == 'li') children[_i4].c = 1 + } + } // 琛ㄦ牸澶勭悊 + else if (node.name == 'table') { + // cellpadding銆乧ellspacing銆乥order 杩欏嚑涓父鐢ㄨ〃鏍煎睘鎬ч渶瑕侀�氳繃杞崲瀹炵幇 + let padding = parseFloat(attrs.cellpadding) + let spacing = parseFloat(attrs.cellspacing) + const border = parseFloat(attrs.border) + + if (node.c) { + // padding 鍜� spacing 榛樿 2 + if (isNaN(padding)) padding = 2 + if (isNaN(spacing)) spacing = 2 + } + + if (border) attrs.style += `;border:${border}px solid gray` + + if (node.flag && node.c) { + // 鏈� colspan 鎴� rowspan 涓斿惈鏈夐摼鎺ョ殑琛ㄦ牸閫氳繃 grid 甯冨眬瀹炵幇 + styleObj.display = 'grid' + + if (spacing) { + styleObj['grid-gap'] = `${spacing}px` + styleObj.padding = `${spacing}px` + } // 鏃犻棿闅旂殑鎯呭喌涓嬮伩鍏嶈竟妗嗛噸鍙� + else if (border) attrs.style += ';border-left:0;border-top:0' + + const width = [] + // 琛ㄦ牸鐨勫垪瀹� + const trList = [] + // tr 鍒楄〃 + const cells = [] + // 淇濆瓨鏂扮殑鍗曞厓鏍� + const map = {}; // 琚悎骞跺崟鍏冩牸鍗犵敤鐨勬牸瀛� + + (function traversal(nodes) { + for (let _i5 = 0; _i5 < nodes.length; _i5++) { + if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]); else traversal(nodes[_i5].children || []) + } + }(children)) + + for (let row = 1; row <= trList.length; row++) { + let col = 1 + + for (let j = 0; j < trList[row - 1].children.length; j++, col++) { + const td = trList[row - 1].children[j] + + if (td.name == 'td' || td.name == 'th') { + // 杩欎釜鏍煎瓙琚笂闈㈢殑鍗曞厓鏍煎崰鐢紝鍒欏垪鍙�++ + while (map[`${row}.${col}`]) { + col++ + } + + let _style2 = td.attrs.style || '' + const start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0 // 鎻愬彇鍑� td 鐨勫搴� + + if (start != -1) { + let end = _style2.indexOf(';', start + 6) + + if (end == -1) end = _style2.length + if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end) + _style2 = _style2.substr(0, start) + _style2.substr(end) + } + + _style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : '') // 澶勭悊鍒楀悎骞� + + if (td.attrs.colspan) { + _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan)) + if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1) + col += parseInt(td.attrs.colspan) - 1 + } // 澶勭悊琛屽悎骞� + + if (td.attrs.rowspan) { + _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan)) + if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1) // 璁板綍涓嬫柟鍗曞厓鏍艰鍗犵敤 + + for (let k = 1; k < td.attrs.rowspan; k++) { + map[`${row + k}.${col}`] = 1 + } + } + + if (_style2) td.attrs.style = _style2 + cells.push(td) + } + } + + if (row == 1) { + let temp = '' + + for (let _i6 = 1; _i6 < col; _i6++) { + temp += `${width[_i6] ? width[_i6] : 'auto'} ` + } + + styleObj['grid-template-columns'] = temp + } + } + + node.children = cells + } else { + // 娌℃湁浣跨敤鍚堝苟鍗曞厓鏍肩殑琛ㄦ牸閫氳繃 table 甯冨眬瀹炵幇 + if (node.c) styleObj.display = 'table' + if (!isNaN(spacing)) styleObj['border-spacing'] = `${spacing}px` + + if (border || padding) { + // 閬嶅巻 + (function traversal(nodes) { + for (let _i7 = 0; _i7 < nodes.length; _i7++) { + const _td = nodes[_i7] + + if (_td.name == 'th' || _td.name == 'td') { + if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '') + if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '') + } else if (_td.children) traversal(_td.children) + } + }(children)) + } + } // 缁欒〃鏍兼坊鍔犱竴涓崟鐙殑妯悜婊氬姩灞� + + if (this.options.scrollTable && !(attrs.style || '').includes('inline')) { + const table = { ...node } + node.name = 'div' + node.attrs = { + style: 'overflow:auto' + } + node.children = [table] + attrs = table.attrs + } + } else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) { + for (let _i8 = this.stack.length; _i8--;) { + if (this.stack[_i8].name == 'table') { + this.stack[_i8].flag = 1 // 鎸囩ず鍚湁鍚堝苟鍗曞厓鏍� + + break + } + } + } // 杞崲 ruby + else if (node.name == 'ruby') { + node.name = 'span' + + for (let _i9 = 0; _i9 < children.length - 1; _i9++) { + if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') { + children[_i9] = { + name: 'div', + attrs: { + style: 'display:inline-block' + }, + children: [{ + name: 'div', + attrs: { + style: 'font-size:50%;text-align:start' + }, + children: children[_i9 + 1].children + }, children[_i9]] + } + children.splice(_i9 + 1, 1) + } + } + } else if (node.c) { + node.c = 2 + + for (let _i10 = node.children.length; _i10--;) { + if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1 + } + } + if ((styleObj.display || '').includes('flex') && !node.c) { + for (let _i11 = children.length; _i11--;) { + const _item = children[_i11] + + if (_item.f) { + _item.attrs.style = (_item.attrs.style || '') + _item.f + _item.f = void 0 + } + } + } // flex 甯冨眬鏃堕儴鍒嗘牱寮忛渶瑕佹彁鍙栧埌 rich-text 澶栧眰 + + const flex = parent && (parent.attrs.style || '').includes('flex') // #ifdef MP-WEIXIN + // 妫�鏌ュ熀纭�搴撶増鏈� virtualHost 鏄惁鍙敤 + && !(node.c && wx.getNFCAdapter) // #endif + // #ifndef MP-WEIXIN || MP-QQ || MP-BAIDU || MP-TOUTIAO + && !node.c // #endif + + if (flex) node.f = ';max-width:100%' // #endif + + for (const key in styleObj) { + if (styleObj[key]) { + const val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', '')) // #ifndef APP-PLUS-NVUE + + if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) { + node.f += val + if (key == 'width') attrs.style += ';width:100%' + } else // #endif + { attrs.style += val } + } + } + + attrs.style = attrs.style.substr(1) || void 0 +} +/** + * @description 瑙f瀽鍒版枃鏈� + * @param {String} text 鏂囨湰鍐呭 + */ + +parser.prototype.onText = function (text) { + if (!this.pre) { + // 鍚堝苟绌虹櫧绗� + let trim = '' + let flag + + for (let i = 0, len = text.length; i < len; i++) { + if (!blankChar[text[i]]) trim += text[i]; else { + if (trim[trim.length - 1] != ' ') trim += ' ' + if (text[i] == '\n' && !flag) flag = true + } + } // 鍘婚櫎鍚湁鎹㈣绗︾殑绌轰覆 + + if (trim == ' ' && flag) return + text = trim + } + + const node = Object.create(null) + node.type = 'text' + node.text = decodeEntity(text) + + if (this.hook(node)) { + const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes + siblings.push(node) + } +} +/** + * @description html 璇嶆硶鍒嗘瀽鍣� + * @param {Object} handler 楂樺眰澶勭悊鍣� + */ + +function lexer(handler) { + this.handler = handler +} +/** + * @description 鎵ц瑙f瀽 + * @param {String} content 瑕佽В鏋愮殑鏂囨湰 + */ + +lexer.prototype.parse = function (content) { + this.content = content || '' + this.i = 0 // 鏍囪瑙f瀽浣嶇疆 + + this.start = 0 // 鏍囪涓�涓崟璇嶇殑寮�濮嬩綅缃� + + this.state = this.text // 褰撳墠鐘舵�� + + for (let len = this.content.length; this.i != -1 && this.i < len;) { + this.state() + } +} +/** + * @description 妫�鏌ユ爣绛炬槸鍚﹂棴鍚� + * @param {String} method 濡傛灉闂悎瑕佽繘琛岀殑鎿嶄綔 + * @returns {Boolean} 鏄惁闂悎 + * @private + */ + +lexer.prototype.checkClose = function (method) { + const selfClose = this.content[this.i] == '/' + + if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') { + if (method) this.handler[method](this.content.substring(this.start, this.i)) + this.i += selfClose ? 2 : 1 + this.start = this.i + this.handler.onOpenTag(selfClose) + + if (this.handler.tagName == 'script') { + this.i = this.content.indexOf('</', this.i) + + if (this.i != -1) { + this.i += 2 + this.start = this.i + } + + this.state = this.endTag + } else this.state = this.text + + return true + } + + return false +} +/** + * @description 鏂囨湰鐘舵�� + * @private + */ + +lexer.prototype.text = function () { + this.i = this.content.indexOf('<', this.i) // 鏌ユ壘鏈�杩戠殑鏍囩 + + if (this.i == -1) { + // 娌℃湁鏍囩浜� + if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length)) + return + } + + const c = this.content[this.i + 1] + + if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') { + // 鏍囩寮�澶� + if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i)) + this.start = ++this.i + this.state = this.tagName + } else if (c == '/' || c == '!' || c == '?') { + if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i)) + const next = this.content[this.i + 2] + + if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) { + // 鏍囩缁撳熬 + this.i += 2 + this.start = this.i + return this.state = this.endTag + } // 澶勭悊娉ㄩ噴 + + let end = '-->' + if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>' + this.i = this.content.indexOf(end, this.i) + + if (this.i != -1) { + this.i += end.length + this.start = this.i + } + } else this.i++ +} +/** + * @description 鏍囩鍚嶇姸鎬� + * @private + */ + +lexer.prototype.tagName = function () { + if (blankChar[this.content[this.i]]) { + // 瑙f瀽鍒版爣绛惧悕 + this.handler.onTagName(this.content.substring(this.start, this.i)) + + while (blankChar[this.content[++this.i]]) { + + } + + if (this.i < this.content.length && !this.checkClose()) { + this.start = this.i + this.state = this.attrName + } + } else if (!this.checkClose('onTagName')) this.i++ +} +/** + * @description 灞炴�у悕鐘舵�� + * @private + */ + +lexer.prototype.attrName = function () { + let c = this.content[this.i] + + if (blankChar[c] || c == '=') { + // 瑙f瀽鍒板睘鎬у悕 + this.handler.onAttrName(this.content.substring(this.start, this.i)) + let needVal = c == '=' + const len = this.content.length + + while (++this.i < len) { + c = this.content[this.i] + + if (!blankChar[c]) { + if (this.checkClose()) return + + if (needVal) { + // 绛夊彿鍚庨亣鍒扮涓�涓潪绌哄瓧绗� + this.start = this.i + return this.state = this.attrVal + } + + if (this.content[this.i] == '=') needVal = true; else { + this.start = this.i + return this.state = this.attrName + } + } + } + } else if (!this.checkClose('onAttrName')) this.i++ +} +/** + * @description 灞炴�у�肩姸鎬� + * @private + */ + +lexer.prototype.attrVal = function () { + const c = this.content[this.i] + const len = this.content.length // 鏈夊啋鍙风殑灞炴�� + + if (c == '"' || c == "'") { + this.start = ++this.i + this.i = this.content.indexOf(c, this.i) + if (this.i == -1) return + this.handler.onAttrVal(this.content.substring(this.start, this.i)) + } // 娌℃湁鍐掑彿鐨勫睘鎬� + else { + for (; this.i < len; this.i++) { + if (blankChar[this.content[this.i]]) { + this.handler.onAttrVal(this.content.substring(this.start, this.i)) + break + } else if (this.checkClose('onAttrVal')) return + } + } + + while (blankChar[this.content[++this.i]]) { + + } + + if (this.i < len && !this.checkClose()) { + this.start = this.i + this.state = this.attrName + } +} +/** + * @description 缁撴潫鏍囩鐘舵�� + * @returns {String} 缁撴潫鐨勬爣绛惧悕 + * @private + */ + +lexer.prototype.endTag = function () { + const c = this.content[this.i] + + if (blankChar[c] || c == '>' || c == '/') { + this.handler.onCloseTag(this.content.substring(this.start, this.i)) + + if (c != '>') { + this.i = this.content.indexOf('>', this.i) + if (this.i == -1) return + } + + this.start = ++this.i + this.state = this.text + } else this.i++ +} + +module.exports = parser diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/props.js new file mode 100644 index 0000000..defd06c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/props.js @@ -0,0 +1,45 @@ +export default { + props: { + // #ifdef APP-PLUS-NVUE + bgColor: String, + // #endif + content: String, + copyLink: { + type: Boolean, + default: uni.$u.props.parse.copyLink + }, + domain: String, + errorImg: { + type: String, + default: uni.$u.props.parse.errorImg + }, + lazyLoad: { + type: Boolean, + default: uni.$u.props.parse.lazyLoad + }, + loadingImg: { + type: String, + default: uni.$u.props.parse.loadingImg + }, + pauseVideo: { + type: Boolean, + default: uni.$u.props.parse.pauseVideo + }, + previewImg: { + type: Boolean, + default: uni.$u.props.parse.previewImg + }, + scrollTable: Boolean, + selectable: Boolean, + setTitle: { + type: Boolean, + default: uni.$u.props.parse.setTitle + }, + showImgMenu: { + type: Boolean, + default: uni.$u.props.parse.showImgMenu + }, + tagStyle: Object, + useAnchor: null + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/u-parse.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/u-parse.vue new file mode 100644 index 0000000..7bc8b3d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-parse/u-parse.vue @@ -0,0 +1,366 @@ +<template> + <view id="_root" :class="(selectable?'_select ':'')+'_root'"> + <slot v-if="!nodes[0]" /> + <!-- #ifndef APP-PLUS-NVUE --> + <node v-else :childs="nodes" :opts="[lazyLoad,loadingImg,errorImg,showImgMenu]" /> + <!-- #endif --> + <!-- #ifdef APP-PLUS-NVUE --> + <web-view ref="web" src="/static/app-plus/mp-html/local.html" :style="'margin-top:-2px;height:' + height + 'px'" @onPostMessage="_onMessage" /> + <!-- #endif --> + </view> +</template> + +<script> + import props from './props.js'; +/** + * mp-html v2.0.4 + * @description 瀵屾枃鏈粍浠� + * @tutorial https://github.com/jin-yufeng/mp-html + * @property {String} bgColor 鑳屾櫙棰滆壊锛屽彧閫傜敤涓嶢PP-PLUS-NVUE + * @property {String} content 鐢ㄤ簬娓叉煋鐨勫瘜鏂囨湰瀛楃涓诧紙榛樿 true 锛� + * @property {Boolean} copyLink 鏄惁鍏佽澶栭儴閾炬帴琚偣鍑绘椂鑷姩澶嶅埗 + * @property {String} domain 涓诲煙鍚嶏紝鐢ㄤ簬鎷兼帴閾炬帴 + * @property {String} errorImg 鍥剧墖鍑洪敊鏃剁殑鍗犱綅鍥鹃摼鎺� + * @property {Boolean} lazyLoad 鏄惁寮�鍚浘鐗囨噿鍔犺浇锛堥粯璁� true 锛� + * @property {string} loadingImg 鍥剧墖鍔犺浇杩囩▼涓殑鍗犱綅鍥鹃摼鎺� + * @property {Boolean} pauseVideo 鏄惁鍦ㄦ挱鏀句竴涓棰戞椂鑷姩鏆傚仠鍏跺畠瑙嗛锛堥粯璁� true 锛� + * @property {Boolean} previewImg 鏄惁鍏佽鍥剧墖琚偣鍑绘椂鑷姩棰勮锛堥粯璁� true 锛� + * @property {Boolean} scrollTable 鏄惁缁欐瘡涓〃鏍兼坊鍔犱竴涓粴鍔ㄥ眰浣垮叾鑳藉崟鐙í鍚戞粴鍔� + * @property {Boolean} selectable 鏄惁寮�鍚暱鎸夊鍒� + * @property {Boolean} setTitle 鏄惁灏� title 鏍囩鐨勫唴瀹硅缃埌椤甸潰鏍囬锛堥粯璁� true 锛� + * @property {Boolean} showImgMenu 鏄惁鍏佽鍥剧墖琚暱鎸夋椂鏄剧ず鑿滃崟锛堥粯璁� true 锛� + * @property {Object} tagStyle 鏍囩鐨勯粯璁ゆ牱寮� + * @property {Boolean | Number} useAnchor 鏄惁浣跨敤閿氱偣閾炬帴 + * + * @event {Function} load dom 缁撴瀯鍔犺浇瀹屾瘯鏃惰Е鍙� + * @event {Function} ready 鎵�鏈夊浘鐗囧姞杞藉畬姣曟椂瑙﹀彂 + * @event {Function} imgTap 鍥剧墖琚偣鍑绘椂瑙﹀彂 + * @event {Function} linkTap 閾炬帴琚偣鍑绘椂瑙﹀彂 + * @event {Function} error 濯掍綋鍔犺浇鍑洪敊鏃惰Е鍙� + */ +const plugins=[] +const parser = require('./parser') +// #ifndef APP-PLUS-NVUE +import node from './node/node' +// #endif +// #ifdef APP-PLUS-NVUE +const dom = weex.requireModule('dom') +// #endif +export default { + name: 'mp-html', + data() { + return { + nodes: [], + // #ifdef APP-PLUS-NVUE + height: 0 + // #endif + } + }, + mixins:[props], + // #ifndef APP-PLUS-NVUE + components: { + node + }, + // #endif + watch: { + content(content) { + this.setContent(content) + } + }, + created() { + this.plugins = [] + for (let i = plugins.length; i--;) + this.plugins.push(new plugins[i](this)) + }, + mounted() { + if (this.content && !this.nodes.length) + this.setContent(this.content) + }, + beforeDestroy() { + this._hook('onDetached') + clearInterval(this._timer) + }, + methods: { + /** + * @description 灏嗛敋鐐硅烦杞殑鑼冨洿闄愬畾鍦ㄤ竴涓� scroll-view 鍐� + * @param {Object} page scroll-view 鎵�鍦ㄩ〉闈㈢殑绀轰緥 + * @param {String} selector scroll-view 鐨勯�夋嫨鍣� + * @param {String} scrollTop scroll-view scroll-top 灞炴�х粦瀹氱殑鍙橀噺鍚� + */ + in(page, selector, scrollTop) { + // #ifndef APP-PLUS-NVUE + if (page && selector && scrollTop) + this._in = { + page, + selector, + scrollTop + } + // #endif + }, + + /** + * @description 閿氱偣璺宠浆 + * @param {String} id 瑕佽烦杞殑閿氱偣 id + * @param {Number} offset 璺宠浆浣嶇疆鐨勫亸绉婚噺 + * @returns {Promise} + */ + navigateTo(id, offset) { + return new Promise((resolve, reject) => { + if (!this.useAnchor) + return reject('Anchor is disabled') + offset = offset || parseInt(this.useAnchor) || 0 + // #ifdef APP-PLUS-NVUE + if (!id) { + dom.scrollToElement(this.$refs.web, { + offset + }) + resolve() + } else { + this._navigateTo = { + resolve, + reject, + offset + } + this.$refs.web.evalJs('uni.postMessage({data:{action:"getOffset",offset:(document.getElementById(' + id + ')||{}).offsetTop}})') + } + // #endif + // #ifndef APP-PLUS-NVUE + let deep = ' ' + // #ifdef MP-WEIXIN || MP-QQ || MP-TOUTIAO + deep = '>>>' + // #endif + const selector = uni.createSelectorQuery() + // #ifndef MP-ALIPAY + .in(this._in ? this._in.page : this) + // #endif + .select((this._in ? this._in.selector : '._root') + (id ? `${deep}#${id}` : '')).boundingClientRect() + if (this._in) + selector.select(this._in.selector).scrollOffset() + .select(this._in.selector).boundingClientRect() // 鑾峰彇 scroll-view 鐨勪綅缃拰婊氬姩璺濈 + else + selector.selectViewport().scrollOffset() // 鑾峰彇绐楀彛鐨勬粴鍔ㄨ窛绂� + selector.exec(res => { + if (!res[0]) + return reject('Label not found') + const scrollTop = res[1].scrollTop + res[0].top - (res[2] ? res[2].top : 0) + offset + if (this._in) + // scroll-view 璺宠浆 + this._in.page[this._in.scrollTop] = scrollTop + else + // 椤甸潰璺宠浆 + uni.pageScrollTo({ + scrollTop, + duration: 300 + }) + resolve() + }) + // #endif + }) + }, + + /** + * @description 鑾峰彇鏂囨湰鍐呭 + * @return {String} + */ + getText() { + let text = ''; + (function traversal(nodes) { + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i] + if (node.type == 'text') + text += node.text.replace(/&/g, '&') + else if (node.name == 'br') + text += '\n' + else { + // 鍧楃骇鏍囩鍓嶅悗鍔犳崲琛� + const isBlock = node.name == 'p' || node.name == 'div' || node.name == 'tr' || node.name == 'li' || (node.name[0] == 'h' && node.name[1] > '0' && node.name[1] < '7') + if (isBlock && text && text[text.length - 1] != '\n') + text += '\n' + // 閫掑綊鑾峰彇瀛愯妭鐐圭殑鏂囨湰 + if (node.children) + traversal(node.children) + if (isBlock && text[text.length - 1] != '\n') + text += '\n' + else if (node.name == 'td' || node.name == 'th') + text += '\t' + } + } + })(this.nodes) + return text + }, + + /** + * @description 鑾峰彇鍐呭澶у皬鍜屼綅缃� + * @return {Promise} + */ + getRect() { + return new Promise((resolve, reject) => { + uni.createSelectorQuery() + // #ifndef MP-ALIPAY + .in(this) + // #endif + .select('#_root').boundingClientRect().exec(res => res[0] ? resolve(res[0]) : reject('Root label not found')) + }) + }, + + /** + * @description 璁剧疆鍐呭 + * @param {String} content html 鍐呭 + * @param {Boolean} append 鏄惁鍦ㄥ熬閮ㄨ拷鍔� + */ + setContent(content, append) { + if (!append || !this.imgList) + this.imgList = [] + const nodes = new parser(this).parse(content) + // #ifdef APP-PLUS-NVUE + if (this._ready) + this._set(nodes, append) + // #endif + this.$set(this, 'nodes', append ? (this.nodes || []).concat(nodes) : nodes) + + // #ifndef APP-PLUS-NVUE + this._videos = [] + this.$nextTick(() => { + this._hook('onLoad') + this.$emit('load') + }) + + // 绛夊緟鍥剧墖鍔犺浇瀹屾瘯 + let height + clearInterval(this._timer) + this._timer = setInterval(() => { + this.getRect().then(rect => { + // 350ms 鎬婚珮搴︽棤鍙樺寲灏辫Е鍙� ready 浜嬩欢 + if (rect.height == height) { + this.$emit('ready', rect) + clearInterval(this._timer) + } + height = rect.height + }).catch(() => { }) + }, 350) + // #endif + }, + + /** + * @description 璋冪敤鎻掍欢閽╁瓙鍑芥暟 + */ + _hook(name) { + for (let i = plugins.length; i--;) + if (this.plugins[i][name]) + this.plugins[i][name]() + }, + + // #ifdef APP-PLUS-NVUE + /** + * @description 璁剧疆鍐呭 + */ + _set(nodes, append) { + this.$refs.web.evalJs('setContent(' + JSON.stringify(nodes) + ',' + JSON.stringify([this.bgColor, this.errorImg, this.loadingImg, this.pauseVideo, this.scrollTable, this.selectable]) + ',' + append + ')') + }, + + /** + * @description 鎺ユ敹鍒� web-view 娑堟伅 + */ + _onMessage(e) { + const message = e.detail.data[0] + switch (message.action) { + // web-view 鍒濆鍖栧畬姣� + case 'onJSBridgeReady': + this._ready = true + if (this.nodes) + this._set(this.nodes) + break + // 鍐呭 dom 鍔犺浇瀹屾瘯 + case 'onLoad': + this.height = message.height + this._hook('onLoad') + this.$emit('load') + break + // 鎵�鏈夊浘鐗囧姞杞藉畬姣� + case 'onReady': + this.getRect().then(res => { + this.$emit('ready', res) + }).catch(() => { }) + break + // 鎬婚珮搴﹀彂鐢熷彉鍖� + case 'onHeightChange': + this.height = message.height + break + // 鍥剧墖鐐瑰嚮 + case 'onImgTap': + this.$emit('imgTap', message.attrs) + if (this.previewImg) + uni.previewImage({ + current: parseInt(message.attrs.i), + urls: this.imgList + }) + break + // 閾炬帴鐐瑰嚮 + case 'onLinkTap': + const href = message.attrs.href + this.$emit('linkTap', message.attrs) + if (href) { + // 閿氱偣璺宠浆 + if (href[0] == '#') { + if (this.useAnchor) + dom.scrollToElement(this.$refs.web, { + offset: message.offset + }) + } + // 鎵撳紑澶栭摼 + else if (href.includes('://')) { + if (this.copyLink) + plus.runtime.openWeb(href) + } + else + uni.navigateTo({ + url: href, + fail() { + wx.switchTab({ + url: href + }) + } + }) + } + break + // 鑾峰彇鍒伴敋鐐圭殑鍋忕Щ閲� + case 'getOffset': + if (typeof message.offset == 'number') { + dom.scrollToElement(this.$refs.web, { + offset: message.offset + this._navigateTo.offset + }) + this._navigateTo.resolve() + } else + this._navigateTo.reject('Label not found') + break + // 鐐瑰嚮 + case 'onClick': + this.$emit('tap') + break + // 鍑洪敊 + case 'onError': + this.$emit('error', { + source: message.source, + attrs: message.attrs + }) + } + } + // #endif + } +} +</script> + +<style> +/* #ifndef APP-PLUS-NVUE */ +/* 鏍硅妭鐐规牱寮� */ +._root { + overflow: auto; + -webkit-overflow-scrolling: touch; +} + +/* 闀挎寜澶嶅埗 */ +._select { + user-select: text; +} +/* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/u-picker-column.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/u-picker-column.vue new file mode 100644 index 0000000..53553f3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker-column/u-picker-column.vue @@ -0,0 +1,27 @@ +<template> + <picker-view-column> + <view class="u-picker-column"> + + </view> + </picker-view-column> +</template> + +<script> + import props from './props.js'; + /** + * PickerColumn + * @description + * @tutorial url + * @property {String} + * @event {Function} + * @example + */ + export default { + name: 'u-picker-column', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/props.js new file mode 100644 index 0000000..7b5d091 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/props.js @@ -0,0 +1,79 @@ +export default { + props: { + // 鏄惁灞曠ずpicker寮圭獥 + show: { + type: Boolean, + default: uni.$u.props.picker.show + }, + // 鏄惁灞曠ず椤堕儴鐨勬搷浣滄爮 + showToolbar: { + type: Boolean, + default: uni.$u.props.picker.showToolbar + }, + // 椤堕儴鏍囬 + title: { + type: String, + default: uni.$u.props.picker.title + }, + // 瀵硅薄鏁扮粍锛岃缃瘡涓�鍒楃殑鏁版嵁 + columns: { + type: Array, + default: uni.$u.props.picker.columns + }, + // 鏄惁鏄剧ず鍔犺浇涓姸鎬� + loading: { + type: Boolean, + default: uni.$u.props.picker.loading + }, + // 鍚勫垪涓紝鍗曚釜閫夐」鐨勯珮搴� + itemHeight: { + type: [String, Number], + default: uni.$u.props.picker.itemHeight + }, + // 鍙栨秷鎸夐挳鐨勬枃瀛� + cancelText: { + type: String, + default: uni.$u.props.picker.cancelText + }, + // 纭鎸夐挳鐨勬枃瀛� + confirmText: { + type: String, + default: uni.$u.props.picker.confirmText + }, + // 鍙栨秷鎸夐挳鐨勯鑹� + cancelColor: { + type: String, + default: uni.$u.props.picker.cancelColor + }, + // 纭鎸夐挳鐨勯鑹� + confirmColor: { + type: String, + default: uni.$u.props.picker.confirmColor + }, + // 姣忓垪涓彲瑙侀�夐」鐨勬暟閲� + visibleItemCount: { + type: [String, Number], + default: uni.$u.props.picker.visibleItemCount + }, + // 閫夐」瀵硅薄涓紝闇�瑕佸睍绀虹殑灞炴�ч敭鍚� + keyName: { + type: String, + default: uni.$u.props.picker.keyName + }, + // 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴閫夋嫨鍣� + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.picker.closeOnClickOverlay + }, + // 鍚勫垪鐨勯粯璁ょ储寮� + defaultIndex: { + type: Array, + default: uni.$u.props.picker.defaultIndex + }, + // 鏄惁鍦ㄦ墜鎸囨澗寮�鏃剁珛鍗宠Е鍙� change 浜嬩欢銆傝嫢涓嶅紑鍚垯浼氬湪婊氬姩鍔ㄧ敾缁撴潫鍚庤Е鍙� change 浜嬩欢锛屽彧鍦ㄥ井淇�2.21.1鍙婁互涓婃湁鏁� + immediateChange: { + type: Boolean, + default: uni.$u.props.picker.immediateChange + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/u-picker.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/u-picker.vue new file mode 100644 index 0000000..8885917 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-picker/u-picker.vue @@ -0,0 +1,283 @@ +<template> + <u-popup + :show="show" + @close="closeHandler" + > + <view class="u-picker"> + <u-toolbar + v-if="showToolbar" + :cancelColor="cancelColor" + :confirmColor="confirmColor" + :cancelText="cancelText" + :confirmText="confirmText" + :title="title" + @cancel="cancel" + @confirm="confirm" + ></u-toolbar> + <picker-view + class="u-picker__view" + :indicatorStyle="`height: ${$u.addUnit(itemHeight)}`" + :value="innerIndex" + :immediateChange="immediateChange" + :style="{ + height: `${$u.addUnit(visibleItemCount * itemHeight)}` + }" + @change="changeHandler" + > + <picker-view-column + v-for="(item, index) in innerColumns" + :key="index" + class="u-picker__view__column" + > + <text + v-if="$u.test.array(item)" + class="u-picker__view__column__item u-line-1" + v-for="(item1, index1) in item" + :key="index1" + :style="{ + height: $u.addUnit(itemHeight), + lineHeight: $u.addUnit(itemHeight), + fontWeight: index1 === innerIndex[index] ? 'bold' : 'normal' + }" + >{{ getItemText(item1) }}</text> + </picker-view-column> + </picker-view> + <view + v-if="loading" + class="u-picker--loading" + > + <u-loading-icon mode="circle"></u-loading-icon> + </view> + </view> + </u-popup> +</template> + +<script> +/** + * u-picker + * @description 閫夋嫨鍣� + * @property {Boolean} show 鏄惁鏄剧ずpicker寮圭獥锛堥粯璁� false 锛� + * @property {Boolean} showToolbar 鏄惁鏄剧ず椤堕儴鐨勬搷浣滄爮锛堥粯璁� true 锛� + * @property {String} title 椤堕儴鏍囬 + * @property {Array} columns 瀵硅薄鏁扮粍锛岃缃瘡涓�鍒楃殑鏁版嵁 + * @property {Boolean} loading 鏄惁鏄剧ず鍔犺浇涓姸鎬侊紙榛樿 false 锛� + * @property {String | Number} itemHeight 鍚勫垪涓紝鍗曚釜閫夐」鐨勯珮搴︼紙榛樿 44 锛� + * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬枃瀛楋紙榛樿 '鍙栨秷' 锛� + * @property {String} confirmText 纭鎸夐挳鐨勬枃瀛楋紙榛樿 '纭畾' 锛� + * @property {String} cancelColor 鍙栨秷鎸夐挳鐨勯鑹诧紙榛樿 '#909193' 锛� + * @property {String} confirmColor 纭鎸夐挳鐨勯鑹诧紙榛樿 '#3c9cff' 锛� + * @property {String | Number} visibleItemCount 姣忓垪涓彲瑙侀�夐」鐨勬暟閲忥紙榛樿 5 锛� + * @property {String} keyName 閫夐」瀵硅薄涓紝闇�瑕佸睍绀虹殑灞炴�ч敭鍚嶏紙榛樿 'text' 锛� + * @property {Boolean} closeOnClickOverlay 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴閫夋嫨鍣紙榛樿 false 锛� + * @property {Array} defaultIndex 鍚勫垪鐨勯粯璁ょ储寮� + * @property {Boolean} immediateChange 鏄惁鍦ㄦ墜鎸囨澗寮�鏃剁珛鍗宠Е鍙慶hange浜嬩欢锛堥粯璁� false 锛� + * @event {Function} close 鍏抽棴閫夋嫨鍣ㄦ椂瑙﹀彂 + * @event {Function} cancel 鐐瑰嚮鍙栨秷鎸夐挳瑙﹀彂 + * @event {Function} change 褰撻�夋嫨鍊煎彉鍖栨椂瑙﹀彂 + * @event {Function} confirm 鐐瑰嚮纭畾鎸夐挳锛岃繑鍥炲綋鍓嶉�夋嫨鐨勫�� + */ +import props from './props.js'; +export default { + name: 'u-picker', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 涓婁竴娆¢�夋嫨鐨勫垪绱㈠紩 + lastIndex: [], + // 绱㈠紩鍊� 锛屽搴攑icker-view鐨剉alue + innerIndex: [], + // 鍚勫垪鐨勫�� + innerColumns: [], + // 涓婁竴娆$殑鍙樺寲鍒楃储寮� + columnIndex: 0, + } + }, + watch: { + // 鐩戝惉榛樿绱㈠紩鐨勫彉鍖栵紝閲嶆柊璁剧疆瀵瑰簲鐨勫�� + defaultIndex: { + immediate: true, + handler(n) { + this.setIndexs(n, true) + } + }, + // 鐩戝惉columns鍙傛暟鐨勫彉鍖� + columns: { + immediate: true, + handler(n) { + this.setColumns(n) + } + }, + }, + methods: { + // 鑾峰彇item闇�瑕佹樉绀虹殑鏂囧瓧锛屽垽鍒负瀵硅薄杩樻槸鏂囨湰 + getItemText(item) { + if (uni.$u.test.object(item)) { + return item[this.keyName] + } else { + return item + } + }, + // 鍏抽棴閫夋嫨鍣� + closeHandler() { + if (this.closeOnClickOverlay) { + this.$emit('close') + } + }, + // 鐐瑰嚮宸ュ叿鏍忕殑鍙栨秷鎸夐挳 + cancel() { + this.$emit('cancel') + }, + // 鐐瑰嚮宸ュ叿鏍忕殑纭畾鎸夐挳 + confirm() { + this.$emit('confirm', { + indexs: this.innerIndex, + value: this.innerColumns.map((item, index) => item[this.innerIndex[index]]), + values: this.innerColumns + }) + }, + // 閫夋嫨鍣ㄦ煇涓�鍒楃殑鏁版嵁鍙戠敓鍙樺寲鏃惰Е鍙� + changeHandler(e) { + const { + value + } = e.detail + let index = 0, + columnIndex = 0 + // 閫氳繃瀵规瘮鍓嶅悗涓ゆ鐨勫垪绱㈠紩锛屽緱鍑哄綋鍓嶅彉鍖栫殑鏄摢涓�鍒� + for (let i = 0; i < value.length; i++) { + let item = value[i] + if (item !== (this.lastIndex[i] || 0)) { // 鎶妘ndefined杞负鍚堟硶鍋囧��0 + // 璁剧疆columnIndex涓哄綋鍓嶅彉鍖栧垪鐨勭储寮� + columnIndex = i + // index鍒欎负鍙樺寲鍒椾腑鐨勫彉鍖栭」鐨勭储寮� + index = item + break // 缁堟寰幆锛屽嵆浣垮皯涓�娆″惊鐜紝涔熸槸鎬ц兘鐨勬彁鍗� + } + } + this.columnIndex = columnIndex + const values = this.innerColumns + // 灏嗗綋鍓嶇殑鍚勯」鍙樺寲绱㈠紩锛岃缃负"涓婁竴娆�"鐨勭储寮曞彉鍖栧�� + this.setLastIndex(value) + this.setIndexs(value) + + this.$emit('change', { + // #ifndef MP-WEIXIN || MP-LARK + // 寰俊灏忕▼搴忎笉鑳戒紶閫抰his锛屼細鍥犱负寰幆寮曠敤鑰屾姤閿� + picker: this, + // #endif + value: this.innerColumns.map((item, index) => item[value[index]]), + index, + indexs: value, + // values涓哄綋鍓嶅彉鍖栧垪鐨勬暟缁勫唴瀹� + values, + columnIndex + }) + }, + // 璁剧疆index绱㈠紩锛屾鏂规硶鍙澶栭儴璋冪敤璁剧疆 + setIndexs(index, setLastIndex) { + this.innerIndex = uni.$u.deepClone(index) + if (setLastIndex) { + this.setLastIndex(index) + } + }, + // 璁板綍涓婁竴娆$殑鍚勫垪绱㈠紩浣嶇疆 + setLastIndex(index) { + // 褰撹兘杩涘叆姝ゆ柟娉曪紝鎰忓懗鐫�褰撳墠璁剧疆鐨勫悇鍒楅粯璁ょ储寮曪紝鍗充负鈥滀笂涓�娆♀�濈殑閫変腑鍊硷紝闇�瑕佽褰曪紝鏄洜涓篶hangeHandler涓� + // 闇�瑕佹嬁鍓嶅悗鐨勫彉鍖栧�艰繘琛屽姣旓紝寰楀嚭褰撳墠鍙戠敓鏀瑰彉鐨勬槸鍝竴鍒� + this.lastIndex = uni.$u.deepClone(index) + }, + // 璁剧疆瀵瑰簲鍒楅�夐」鐨勬墍鏈夊�� + setColumnValues(columnIndex, values) { + // 鏇挎崲innerColumns鏁扮粍涓璫olumnIndex绱㈠紩鐨勫�间负values锛屼娇鐢ㄧ殑鏄暟缁勭殑splice鏂规硶 + this.innerColumns.splice(columnIndex, 1, values) + // 鎷疯礉涓�浠藉師鏈夌殑innerIndex鍋氫复鏃跺彉閲忥紝灏嗗ぇ浜庡綋鍓嶅彉鍖栧垪鐨勬墍鏈夌殑鍒楃殑榛樿绱㈠紩璁剧疆涓�0 + let tmpIndex = uni.$u.deepClone(this.innerIndex) + for (let i = 0; i < this.innerColumns.length; i++) { + if (i > this.columnIndex) { + tmpIndex[i] = 0 + } + } + // 涓�娆℃�ц祴鍊硷紝涓嶈兘鍗曚釜淇敼锛屽惁鍒欐棤鏁� + this.setIndexs(tmpIndex) + }, + // 鑾峰彇瀵瑰簲鍒楃殑鎵�鏈夐�夐」 + getColumnValues(columnIndex) { + // 杩涜鍚屾闃诲锛屽洜涓哄閮ㄥ緱鍒癱hange浜嬩欢涔嬪悗锛屽彲鑳介渶瑕佹墽琛宻etColumnValues鏇存柊鍒楃殑鍊� + // 绱㈠紩濡傛灉鍦ㄥ閮╟hange鐨勫洖璋冧腑璋冪敤getColumnValues鐨勮瘽锛屽彲鑳芥棤娉曞緱鍒板彉鏇村悗鐨勫垪鍊硷紝杩欓噷杩涜涓�瀹氬欢鏃讹紝淇濊瘉鍊肩殑鍑嗙‘鎬� + (async () => { + await uni.$u.sleep() + })() + return this.innerColumns[columnIndex] + }, + // 璁剧疆鏁翠綋鍚勫垪鐨刢olumns鐨勫�� + setColumns(columns) { + this.innerColumns = uni.$u.deepClone(columns) + // 濡傛灉鍦ㄨ缃悇鍒楁暟鎹椂锛屾病鏈夎璁剧疆榛樿鐨勫悇鍒楃储寮昫efaultIndex锛岄偅涔堢敤0鍘诲~鍏呭畠锛屾暟缁勯暱搴︿负鍒楃殑鏁伴噺 + if (this.innerIndex.length === 0) { + this.innerIndex = new Array(columns.length).fill(0) + } + }, + // 鑾峰彇鍚勫垪閫変腑鍊煎搴旂殑绱㈠紩 + getIndexs() { + return this.innerIndex + }, + // 鑾峰彇鍚勫垪閫変腑鐨勫�� + getValues() { + // 杩涜鍚屾闃诲锛屽洜涓哄閮ㄥ緱鍒癱hange浜嬩欢涔嬪悗锛屽彲鑳介渶瑕佹墽琛宻etColumnValues鏇存柊鍒楃殑鍊� + // 绱㈠紩濡傛灉鍦ㄥ閮╟hange鐨勫洖璋冧腑璋冪敤getValues鐨勮瘽锛屽彲鑳芥棤娉曞緱鍒板彉鏇村悗鐨勫垪鍊硷紝杩欓噷杩涜涓�瀹氬欢鏃讹紝淇濊瘉鍊肩殑鍑嗙‘鎬� + (async () => { + await uni.$u.sleep() + })() + return this.innerColumns.map((item, index) => item[this.innerIndex[index]]) + } + }, +} +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-picker { + position: relative; + + &__view { + + &__column { + @include flex; + flex: 1; + justify-content: center; + + &__item { + @include flex; + justify-content: center; + align-items: center; + font-size: 16px; + text-align: center; + /* #ifndef APP-NVUE */ + display: block; + /* #endif */ + color: $u-main-color; + + &--disabled { + /* #ifndef APP-NVUE */ + cursor: not-allowed; + /* #endif */ + opacity: 0.35; + } + } + } + } + + &--loading { + position: absolute; + top: 0; + right: 0; + left: 0; + bottom: 0; + @include flex; + justify-content: center; + align-items: center; + background-color: rgba(255, 255, 255, 0.87); + z-index: 1000; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/props.js new file mode 100644 index 0000000..d9fe952 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/props.js @@ -0,0 +1,79 @@ +export default { + props: { + // 鏄惁灞曠ず寮圭獥 + show: { + type: Boolean, + default: uni.$u.props.popup.show + }, + // 鏄惁鏄剧ず閬僵 + overlay: { + type: Boolean, + default: uni.$u.props.popup.overlay + }, + // 寮瑰嚭鐨勬柟鍚戯紝鍙�夊�间负 top bottom right left center + mode: { + type: String, + default: uni.$u.props.popup.mode + }, + // 鍔ㄧ敾鏃堕暱锛屽崟浣峬s + duration: { + type: [String, Number], + default: uni.$u.props.popup.duration + }, + // 鏄惁鏄剧ず鍏抽棴鍥炬爣 + closeable: { + type: Boolean, + default: uni.$u.props.popup.closeable + }, + // 鑷畾涔夐伄缃╃殑鏍峰紡 + overlayStyle: { + type: [Object, String], + default: uni.$u.props.popup.overlayStyle + }, + // 鐐瑰嚮閬僵鏄惁鍏抽棴寮圭獥 + closeOnClickOverlay: { + type: Boolean, + default: uni.$u.props.popup.closeOnClickOverlay + }, + // 灞傜骇 + zIndex: { + type: [String, Number], + default: uni.$u.props.popup.zIndex + }, + // 鏄惁涓篿PhoneX鐣欏嚭搴曢儴瀹夊叏璺濈 + safeAreaInsetBottom: { + type: Boolean, + default: uni.$u.props.popup.safeAreaInsetBottom + }, + // 鏄惁鐣欏嚭椤堕儴瀹夊叏璺濈锛堢姸鎬佹爮楂樺害锛� + safeAreaInsetTop: { + type: Boolean, + default: uni.$u.props.popup.safeAreaInsetTop + }, + // 鑷畾涔夊叧闂浘鏍囦綅缃紝top-left涓哄乏涓婅锛宼op-right涓哄彸涓婅锛宐ottom-left涓哄乏涓嬭锛宐ottom-right涓哄彸涓嬭 + closeIconPos: { + type: String, + default: uni.$u.props.popup.closeIconPos + }, + // 鏄惁鏄剧ず鍦嗚 + round: { + type: [Boolean, String, Number], + default: uni.$u.props.popup.round + }, + // mode=center锛屼篃鍗充腑閮ㄥ脊鍑烘椂锛屾槸鍚︿娇鐢ㄧ缉鏀炬ā寮� + zoom: { + type: Boolean, + default: uni.$u.props.popup.zoom + }, + // 寮圭獥鑳屾櫙鑹诧紝璁剧疆涓簍ransparent鍙幓闄ょ櫧鑹茶儗鏅� + bgColor: { + type: String, + default: uni.$u.props.popup.bgColor + }, + // 閬僵鐨勯�忔槑搴︼紝0-1涔嬮棿 + overlayOpacity: { + type: [Number, String], + default: uni.$u.props.popup.overlayOpacity + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/u-popup.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/u-popup.vue new file mode 100644 index 0000000..2ca51cc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-popup/u-popup.vue @@ -0,0 +1,304 @@ +<template> + <view class="u-popup"> + <u-overlay + :show="show" + @click="overlayClick" + v-if="overlay" + :duration="overlayDuration" + :customStyle="overlayStyle" + :opacity="overlayOpacity" + ></u-overlay> + <u-transition + :show="show" + :customStyle="transitionStyle" + :mode="position" + :duration="duration" + @afterEnter="afterEnter" + @click="clickHandler" + > + <view + class="u-popup__content" + :style="[contentStyle]" + @tap.stop="noop" + > + <u-status-bar v-if="safeAreaInsetTop"></u-status-bar> + <slot></slot> + <view + v-if="closeable" + @tap.stop="close" + class="u-popup__content__close" + :class="['u-popup__content__close--' + closeIconPos]" + hover-class="u-popup__content__close--hover" + hover-stay-time="150" + > + <u-icon + name="close" + color="#909399" + size="18" + bold + ></u-icon> + </view> + <u-safe-bottom v-if="safeAreaInsetBottom"></u-safe-bottom> + </view> + </u-transition> + </view> +</template> + +<script> + import props from './props.js'; + + /** + * popup 寮圭獥 + * @description 寮瑰嚭灞傚鍣紝鐢ㄤ簬灞曠ず寮圭獥銆佷俊鎭彁绀虹瓑鍐呭锛屾敮鎸佷笂銆佷笅銆佸乏銆佸彸鍜屼腑閮ㄥ脊鍑恒�傜粍浠跺彧鎻愪緵瀹瑰櫒锛屽唴閮ㄥ唴瀹圭敱鐢ㄦ埛鑷畾涔� + * @tutorial https://www.uviewui.com/components/popup.html + * @property {Boolean} show 鏄惁灞曠ず寮圭獥 (榛樿 false ) + * @property {Boolean} overlay 鏄惁鏄剧ず閬僵 锛堥粯璁� true 锛� + * @property {String} mode 寮瑰嚭鏂瑰悜锛堥粯璁� 'bottom' 锛� + * @property {String | Number} duration 鍔ㄧ敾鏃堕暱锛屽崟浣峬s 锛堥粯璁� 300 锛� + * @property {String | Number} overlayDuration 閬僵灞傚姩鐢绘椂闀匡紝鍗曚綅ms 锛堥粯璁� 350 锛� + * @property {Boolean} closeable 鏄惁鏄剧ず鍏抽棴鍥炬爣锛堥粯璁� false 锛� + * @property {Object | String} overlayStyle 鑷畾涔夐伄缃╃殑鏍峰紡 + * @property {String | Number} overlayOpacity 閬僵閫忔槑搴︼紝0-1涔嬮棿锛堥粯璁� 0.5锛� + * @property {Boolean} closeOnClickOverlay 鐐瑰嚮閬僵鏄惁鍏抽棴寮圭獥 锛堥粯璁� true 锛� + * @property {String | Number} zIndex 灞傜骇 锛堥粯璁� 10075 锛� + * @property {Boolean} safeAreaInsetBottom 鏄惁涓篿PhoneX鐣欏嚭搴曢儴瀹夊叏璺濈 锛堥粯璁� true 锛� + * @property {Boolean} safeAreaInsetTop 鏄惁鐣欏嚭椤堕儴瀹夊叏璺濈锛堢姸鎬佹爮楂樺害锛� 锛堥粯璁� false 锛� + * @property {String} closeIconPos 鑷畾涔夊叧闂浘鏍囦綅缃紙榛樿 'top-right' 锛� + * @property {String | Number} round 鍦嗚鍊硷紙榛樿 0锛� + * @property {Boolean} zoom 褰搈ode=center鏃� 鏄惁寮�鍚缉鏀撅紙榛樿 true 锛� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} open 寮瑰嚭灞傛墦寮� + * @event {Function} close 寮瑰嚭灞傛敹璧� + * @example <u-popup v-model="show"><text>鍑烘筏娉ヨ�屼笉鏌擄紝婵竻娑熻�屼笉濡�</text></u-popup> + */ + export default { + name: 'u-popup', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + overlayDuration: this.duration + 50 + } + }, + watch: { + show(newValue, oldValue) { + if (newValue === true) { + // #ifdef MP-WEIXIN + const children = this.$children + this.retryComputedComponentRect(children) + // #endif + } + } + }, + computed: { + transitionStyle() { + const style = { + zIndex: this.zIndex, + position: 'fixed', + display: 'flex', + } + style[this.mode] = 0 + if (this.mode === 'left') { + return uni.$u.deepMerge(style, { + bottom: 0, + top: 0, + }) + } else if (this.mode === 'right') { + return uni.$u.deepMerge(style, { + bottom: 0, + top: 0, + }) + } else if (this.mode === 'top') { + return uni.$u.deepMerge(style, { + left: 0, + right: 0 + }) + } else if (this.mode === 'bottom') { + return uni.$u.deepMerge(style, { + left: 0, + right: 0, + }) + } else if (this.mode === 'center') { + return uni.$u.deepMerge(style, { + alignItems: 'center', + 'justify-content': 'center', + top: 0, + left: 0, + right: 0, + bottom: 0 + }) + } + }, + contentStyle() { + const style = {} + // 閫氳繃璁惧淇℃伅鐨剆afeAreaInsets鍊兼潵鍒ゆ柇鏄惁闇�瑕侀鐣欓《閮ㄧ姸鎬佹爮鍜屽簳閮ㄥ畨鍏ㄥ眬鐨勪綅缃� + // 涓嶄娇鐢╟ss鏂规锛屾槸鍥犱负nvue涓嶆敮鎸乧ss鐨刬PhoneX瀹夊叏鍖烘煡璇㈠睘鎬� + const { + safeAreaInsets + } = uni.$u.sys() + if (this.mode !== 'center') { + style.flex = 1 + } + // 鑳屾櫙鑹诧紝涓�鑸敤浜庤缃负transparent锛屽幓闄ら粯璁ょ殑鐧借壊鑳屾櫙 + if (this.bgColor) { + style.backgroundColor = this.bgColor + } + if(this.round) { + const value = uni.$u.addUnit(this.round) + if(this.mode === 'top') { + style.borderBottomLeftRadius = value + style.borderBottomRightRadius = value + } else if(this.mode === 'bottom') { + style.borderTopLeftRadius = value + style.borderTopRightRadius = value + } else if(this.mode === 'center') { + style.borderRadius = value + } + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + }, + position() { + if (this.mode === 'center') { + return this.zoom ? 'fade-zoom' : 'fade' + } + if (this.mode === 'left') { + return 'slide-left' + } + if (this.mode === 'right') { + return 'slide-right' + } + if (this.mode === 'bottom') { + return 'slide-up' + } + if (this.mode === 'top') { + return 'slide-down' + } + }, + }, + methods: { + // 鐐瑰嚮閬僵 + overlayClick() { + if (this.closeOnClickOverlay) { + this.$emit('close') + } + }, + close(e) { + this.$emit('close') + }, + afterEnter() { + this.$emit('open') + }, + clickHandler() { + // 鐢变簬涓儴寮瑰嚭鏃讹紝鍏秛-transition鍗犳嵁浜嗘暣涓〉闈㈢浉褰撲簬閬僵锛屾鏃堕渶瑕佸彂鍑洪伄缃╃偣鍑讳簨浠讹紝鏄惁鏃犳硶閫氳繃鐐瑰嚮閬僵鍏抽棴寮圭獥 + if(this.mode === 'center') { + this.overlayClick() + } + this.$emit('click') + }, + // #ifdef MP-WEIXIN + retryComputedComponentRect(children) { + // 缁勪欢鍐呴儴闇�瑕佽绠楄妭鐐圭殑缁勪欢 + const names = ['u-calendar-month', 'u-album', 'u-collapse-item', 'u-dropdown', 'u-index-item', 'u-index-list', + 'u-line-progress', 'u-list-item', 'u-rate', 'u-read-more', 'u-row', 'u-row-notice', 'u-scroll-list', + 'u-skeleton', 'u-slider', 'u-steps-item', 'u-sticky', 'u-subsection', 'u-swipe-action-item', 'u-tabbar', + 'u-tabs', 'u-tooltip' + ] + // 鍘嗛亶鎵�鏈夌殑瀛愮粍浠惰妭鐐� + for (let i = 0; i < children.length; i++) { + const child = children[i] + // 鎷垮埌瀛愮粍浠剁殑瀛愮粍浠� + const grandChild = child.$children + // 鍒ゆ柇濡傛灉鍦ㄩ渶瑕侀噸鏂板垵濮嬪寲鐨勭粍浠舵暟缁勪腑鍚嶄腑锛屽苟涓斿瓨鍦╥nit鏂规硶鐨勮瘽锛屽垯鎵ц + if (names.includes(child.$options.name) && typeof child?.init === 'function') { + // 闇�瑕佽繘琛屼竴瀹氱殑寤舵椂锛屽洜涓哄垵濮嬪寲椤甸潰闇�瑕佹椂闂� + uni.$u.sleep(50).then(() => { + child.init() + }) + } + // 濡傛灉瀛愮粍浠惰繕鏈夊瓩缁勪欢锛岃繘琛岄�掑綊鍘嗛亶 + if (grandChild.length) { + this.retryComputedComponentRect(grandChild) + } + } + } + // #endif + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-popup-flex:1 !default; + $u-popup-content-background-color: #fff !default; + + .u-popup { + flex: $u-popup-flex; + + &__content { + background-color: $u-popup-content-background-color; + position: relative; + + &--round-top { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; + } + + &--round-left { + border-top-left-radius: 0; + border-top-right-radius: 10px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 10px; + } + + &--round-right { + border-top-left-radius: 10px; + border-top-right-radius: 0; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 0; + } + + &--round-bottom { + border-top-left-radius: 10px; + border-top-right-radius: 10px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + + &--round-center { + border-top-left-radius: 10px; + border-top-right-radius: 10px; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; + } + + &__close { + position: absolute; + + &--hover { + opacity: 0.4; + } + } + + &__close--top-left { + top: 15px; + left: 15px; + } + + &__close--top-right { + top: 15px; + right: 15px; + } + + &__close--bottom-left { + bottom: 15px; + left: 15px; + } + + &__close--bottom-right { + right: 15px; + bottom: 15px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/props.js new file mode 100644 index 0000000..bb86cba --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/props.js @@ -0,0 +1,85 @@ +export default { + props: { + // 缁戝畾鐨勫�� + value: { + type: [String, Number, Boolean], + default: uni.$u.props.radioGroup.value + }, + + // 鏄惁绂佺敤鍏ㄩ儴radio + disabled: { + type: Boolean, + default: uni.$u.props.radioGroup.disabled + }, + // 褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.radioGroup.shape + }, + // 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� + activeColor: { + type: String, + default: uni.$u.props.radioGroup.activeColor + }, + // 鏈�変腑鐨勯鑹� + inactiveColor: { + type: String, + default: uni.$u.props.radioGroup.inactiveColor + }, + // 鏍囪瘑绗� + name: { + type: String, + default: uni.$u.props.radioGroup.name + }, + // 鏁翠釜缁勪欢鐨勫昂瀵革紝榛樿px + size: { + type: [String, Number], + default: uni.$u.props.radioGroup.size + }, + // 甯冨眬鏂瑰紡锛宺ow-妯悜锛宑olumn-绾靛悜 + placement: { + type: String, + default: uni.$u.props.radioGroup.placement + }, + // label鐨勬枃鏈� + label: { + type: [String], + default: uni.$u.props.radioGroup.label + }, + // label鐨勯鑹� 锛堥粯璁� '#303133' 锛� + labelColor: { + type: [String], + default: uni.$u.props.radioGroup.labelColor + }, + // label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 + labelSize: { + type: [String, Number], + default: uni.$u.props.radioGroup.labelSize + }, + // 鏄惁绂佹鐐瑰嚮鏂囨湰鎿嶄綔checkbox(榛樿 false ) + labelDisabled: { + type: Boolean, + default: uni.$u.props.radioGroup.labelDisabled + }, + // 鍥炬爣棰滆壊 + iconColor: { + type: String, + default: uni.$u.props.radioGroup.iconColor + }, + // 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px + iconSize: { + type: [String, Number], + default: uni.$u.props.radioGroup.iconSize + }, + // 绔栧悜閰嶅垪鏃讹紝鏄惁鏄剧ず涓嬪垝绾� + borderBottom: { + type: Boolean, + default: uni.$u.props.radioGroup.borderBottom + }, + // 鍥炬爣涓庢枃瀛楃殑瀵归綈鏂瑰紡 + iconPlacement: { + type: String, + default: uni.$u.props.radio.iconPlacement + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/u-radio-group.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/u-radio-group.vue new file mode 100644 index 0000000..0d3c9b5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio-group/u-radio-group.vue @@ -0,0 +1,108 @@ +<template> + <view + class="u-radio-group" + :class="bemClass" + > + <slot></slot> + </view> +</template> + +<script> + import props from './props.js'; + + /** + * radioRroup 鍗曢�夋鐖剁粍浠� + * @description 鍗曢�夋鐢ㄤ簬鏈変竴涓�夋嫨锛岀敤鎴峰彧鑳介�夋嫨鍏朵腑涓�涓殑鍦烘櫙銆傛惌閰島-radio浣跨敤 + * @tutorial https://www.uviewui.com/components/radio.html + * @property {String | Number | Boolean} value 缁戝畾鐨勫�� + * @property {Boolean} disabled 鏄惁绂佺敤鎵�鏈塺adio锛堥粯璁� false 锛� + * @property {String} shape 澶栬褰㈢姸锛宻hape-鏂瑰舰锛宑ircle-鍦嗗舰(榛樿 circle ) + * @property {String} activeColor 閫変腑鏃剁殑棰滆壊锛屽簲鐢ㄥ埌鎵�鏈夊瓙Radio缁勪欢锛堥粯璁� '#2979ff' 锛� + * @property {String} inactiveColor 鏈�変腑鐨勯鑹� (榛樿 '#c8c9cc' ) + * @property {String} name 鏍囪瘑绗� + * @property {String | Number} size 缁勪欢鏁翠綋鐨勫ぇ灏忥紝鍗曚綅px锛堥粯璁� 18 锛� + * @property {String} placement 甯冨眬鏂瑰紡锛宺ow-妯悜锛宑olumn-绾靛悜 锛堥粯璁� 'row' 锛� + * @property {String} label 鏂囨湰 + * @property {String} labelColor label鐨勯鑹� 锛堥粯璁� '#303133' 锛� + * @property {String | Number} labelSize label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 锛堥粯璁� 14 锛� + * @property {Boolean} labelDisabled 鏄惁绂佹鐐瑰嚮鏂囨湰鎿嶄綔checkbox(榛樿 false ) + * @property {String} iconColor 鍥炬爣棰滆壊 锛堥粯璁� '#ffffff' 锛� + * @property {String | Number} iconSize 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px 锛堥粯璁� 12 锛� + * @property {Boolean} borderBottom placement涓簉ow鏃讹紝鏄惁鏄剧ず涓嬭竟妗� 锛堥粯璁� false 锛� + * @property {String} iconPlacement 鍥炬爣涓庢枃瀛楃殑瀵归綈鏂瑰紡 锛堥粯璁� 'left' 锛� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} change 浠讳竴涓猺adio鐘舵�佸彂鐢熷彉鍖栨椂瑙﹀彂 + * @example <u-radio-group v-model="value"></u-radio-group> + */ + export default { + name: 'u-radio-group', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + computed: { + // 杩欓噷computed鐨勫彉閲忥紝閮芥槸瀛愮粍浠秛-radio闇�瑕佺敤鍒扮殑锛岀敱浜庡ご鏉″皬绋嬪簭鐨勫吋瀹规�у樊寮傦紝瀛愮粍浠舵棤娉曞疄鏃剁洃鍚埗缁勪欢鍙傛暟鐨勫彉鍖� + // 鎵�浠ラ渶瑕佹墜鍔ㄩ�氱煡瀛愮粍浠讹紝杩欓噷杩斿洖涓�涓猵arentData鍙橀噺锛屼緵watch鐩戝惉锛屽湪鍏朵腑鍘婚�氱煡姣忎竴涓瓙缁勪欢閲嶆柊浠庣埗缁勪欢(u-radio-group) + // 鎷夊彇鐖剁粍浠舵柊鐨勫彉鍖栧悗鐨勫弬鏁� + parentData() { + return [this.value, this.disabled, this.inactiveColor, this.activeColor, this.size, this.labelDisabled, this.shape, + this.iconSize, this.borderBottom, this.placement + ] + }, + bemClass() { + // this.bem涓轰竴涓猚omputed鍙橀噺锛屽湪mixin涓� + return this.bem('radio-group', ['placement']) + }, + }, + watch: { + // 褰撶埗缁勪欢闇�瑕佸瓙缁勪欢闇�瑕佸叡浜殑鍙傛暟鍙戠敓浜嗗彉鍖栵紝鎵嬪姩閫氱煡瀛愮粍浠� + parentData() { + if (this.children.length) { + this.children.map(child => { + // 鍒ゆ柇瀛愮粍浠�(u-radio)濡傛灉鏈塱nit鏂规硶鐨勮瘽锛屽氨灏辨墽琛�(鎵ц鐨勭粨鏋滄槸瀛愮粍浠堕噸鏂颁粠鐖剁粍浠舵媺鍙栦簡鏈�鏂扮殑鍊�) + typeof(child.init) === 'function' && child.init() + }) + } + }, + }, + data() { + return { + + } + }, + created() { + this.children = [] + }, + methods: { + // 灏嗗叾浠栫殑radio璁剧疆涓烘湭閫変腑鐨勭姸鎬� + unCheckedOther(childInstance) { + this.children.map(child => { + // 鎵�鏈夊瓙radio涓紝琚搷浣滅粍浠跺疄渚嬬殑checked鐨勫�兼棤闇�淇敼 + if (childInstance !== child) { + child.checked = false + } + }) + const { + name + } = childInstance + // 閫氳繃emit浜嬩欢锛岃缃埗缁勪欢閫氳繃v-model鍙屽悜缁戝畾鐨勫�� + this.$emit('input', name) + // 鍙戝嚭浜嬩欢 + this.$emit('change', name) + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-radio-group { + flex: 1; + + &--row { + @include flex; + } + + &--column { + @include flex(column); + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/props.js new file mode 100644 index 0000000..3ec5f6b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/props.js @@ -0,0 +1,64 @@ +export default { + props: { + // radio鐨勫悕绉� + name: { + type: [String, Number, Boolean], + default: uni.$u.props.radio.name + }, + // 褰㈢姸锛宻quare涓烘柟褰紝circle涓哄渾鍨� + shape: { + type: String, + default: uni.$u.props.radio.shape + }, + // 鏄惁绂佺敤 + disabled: { + type: [String, Boolean], + default: uni.$u.props.radio.disabled + }, + // 鏄惁绂佹鐐瑰嚮鎻愮ず璇�変腑鍗曢�夋 + labelDisabled: { + type: [String, Boolean], + default: uni.$u.props.radio.labelDisabled + }, + // 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� + activeColor: { + type: String, + default: uni.$u.props.radio.activeColor + }, + // 鏈�変腑鐨勯鑹� + inactiveColor: { + type: String, + default: uni.$u.props.radio.inactiveColor + }, + // 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px + iconSize: { + type: [String, Number], + default: uni.$u.props.radio.iconSize + }, + // label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 + labelSize: { + type: [String, Number], + default: uni.$u.props.radio.labelSize + }, + // label鎻愮ず鏂囧瓧锛屽洜涓簄vue涓嬶紝鐩存帴slot杩涙潵鐨勬枃瀛楋紝鐢变簬鐗规畩鐨勭粨鏋勶紝鏃犳硶淇敼鏍峰紡 + label: { + type: [String, Number], + default: uni.$u.props.radio.label + }, + // 鏁翠綋鐨勫ぇ灏� + size: { + type: [String, Number], + default: uni.$u.props.radio.size + }, + // 鍥炬爣棰滆壊 + color: { + type: String, + default: uni.$u.props.radio.color + }, + // label鐨勯鑹� + labelColor: { + type: String, + default: uni.$u.props.radio.labelColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/u-radio.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/u-radio.vue new file mode 100644 index 0000000..c0caab6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-radio/u-radio.vue @@ -0,0 +1,339 @@ +<template> + <view + class="u-radio" + @tap.stop="wrapperClickHandler" + :style="[radioStyle]" + :class="[`u-radio-label--${parentData.iconPlacement}`, parentData.borderBottom && parentData.placement === 'column' && 'u-border-bottom']" + > + <view + class="u-radio__icon-wrap" + @tap.stop="iconClickHandler" + :class="iconClasses" + :style="[iconWrapStyle]" + > + <slot name="icon"> + <u-icon + class="u-radio__icon-wrap__icon" + name="checkbox-mark" + :size="elIconSize" + :color="elIconColor" + /> + </slot> + </view> + <slot> + <text + class="u-radio__text" + @tap.stop="labelClickHandler" + :style="{ + color: elDisabled ? elInactiveColor : elLabelColor, + fontSize: elLabelSize, + lineHeight: elLabelSize + }" + >{{label}}</text> + </slot> + </view> +</template> + +<script> + import props from './props.js'; + /** + * radio 鍗曢�夋 + * @description 鍗曢�夋鐢ㄤ簬鏈変竴涓�夋嫨锛岀敤鎴峰彧鑳介�夋嫨鍏朵腑涓�涓殑鍦烘櫙銆傛惌閰島-radio-group浣跨敤 + * @tutorial https://www.uviewui.com/components/radio.html + * @property {String | Number} name radio鐨勫悕绉� + * @property {String} shape 褰㈢姸锛宻quare涓烘柟褰紝circle涓哄渾鍨� + * @property {Boolean} disabled 鏄惁绂佺敤 + * @property {String | Boolean} labelDisabled 鏄惁绂佹鐐瑰嚮鎻愮ず璇�変腑鍗曢�夋 + * @property {String} activeColor 閫変腑鏃剁殑棰滆壊锛屽璁剧疆parent鐨刟ctive-color灏嗗け鏁� + * @property {String} inactiveColor 鏈�変腑鐨勯鑹� + * @property {String | Number} iconSize 鍥炬爣澶у皬锛屽崟浣峱x + * @property {String | Number} labelSize label瀛椾綋澶у皬锛屽崟浣峱x + * @property {String | Number} label label鎻愮ず鏂囧瓧锛屽洜涓簄vue涓嬶紝鐩存帴slot杩涙潵鐨勬枃瀛楋紝鐢变簬鐗规畩鐨勭粨鏋勶紝鏃犳硶淇敼鏍峰紡 + * @property {String | Number} size 鏁翠綋鐨勫ぇ灏� + * @property {String} iconColor 鍥炬爣棰滆壊 + * @property {String} labelColor label鐨勯鑹� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * + * @event {Function} change 鏌愪釜radio鐘舵�佸彂鐢熷彉鍖栨椂瑙﹀彂(閫変腑鐘舵��) + * @example <u-radio :labelDisabled="false">闂ㄦ帺榛勬槒锛屾棤璁$暀鏄ヤ綇</u-radio> + */ + export default { + name: "u-radio", + + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + checked: false, + // 褰撲綘鐪嬪埌杩欐浠g爜鐨勬椂鍊欙紝 + // 鐖剁粍浠剁殑榛樿鍊硷紝鍥犱负澶存潯灏忕▼搴忎笉鏀寔鍦╟omputed涓娇鐢╰his.parent.shape鐨勫舰寮� + // 鏁呭彧鑳戒娇鐢ㄥ姝ゆ柟娉� + parentData: { + iconSize: 12, + labelDisabled: null, + disabled: null, + shape: null, + activeColor: null, + inactiveColor: null, + size: 18, + value: null, + iconColor: null, + placement: 'row', + borderBottom: false, + iconPlacement: 'left' + } + } + }, + computed: { + // 鏄惁绂佺敤锛屽鏋滅埗缁勪欢u-raios-group绂佺敤鐨勮瘽锛屽皢浼氬拷鐣ュ瓙缁勪欢鐨勯厤缃� + elDisabled() { + return this.disabled !== '' ? this.disabled : this.parentData.disabled !== null ? this.parentData.disabled : false; + }, + // 鏄惁绂佺敤label鐐瑰嚮 + elLabelDisabled() { + return this.labelDisabled !== '' ? this.labelDisabled : this.parentData.labelDisabled !== null ? this.parentData.labelDisabled : + false; + }, + // 缁勪欢灏哄锛屽搴攕ize鐨勫�硷紝榛樿鍊间负21px + elSize() { + return this.size ? this.size : (this.parentData.size ? this.parentData.size : 21); + }, + // 缁勪欢鐨勫嬀閫夊浘鏍囩殑灏哄锛岄粯璁�12px + elIconSize() { + return this.iconSize ? this.iconSize : (this.parentData.iconSize ? this.parentData.iconSize : 12); + }, + // 缁勪欢閫変腑婵�娲绘椂鐨勯鑹� + elActiveColor() { + return this.activeColor ? this.activeColor : (this.parentData.activeColor ? this.parentData.activeColor : '#2979ff'); + }, + // 缁勪欢閫夋湭涓縺娲绘椂鐨勯鑹� + elInactiveColor() { + return this.inactiveColor ? this.inactiveColor : (this.parentData.inactiveColor ? this.parentData.inactiveColor : + '#c8c9cc'); + }, + // label鐨勯鑹� + elLabelColor() { + return this.labelColor ? this.labelColor : (this.parentData.labelColor ? this.parentData.labelColor : '#606266') + }, + // 缁勪欢鐨勫舰鐘� + elShape() { + return this.shape ? this.shape : (this.parentData.shape ? this.parentData.shape : 'circle'); + }, + // label澶у皬 + elLabelSize() { + return uni.$u.addUnit(this.labelSize ? this.labelSize : (this.parentData.labelSize ? this.parentData.labelSize : + '15')) + }, + elIconColor() { + const iconColor = this.iconColor ? this.iconColor : (this.parentData.iconColor ? this.parentData.iconColor : + '#ffffff'); + // 鍥炬爣鐨勯鑹� + if (this.elDisabled) { + // disabled鐘舵�佷笅锛屽凡鍕鹃�夌殑radio鍥炬爣鏀逛负elInactiveColor + return this.checked ? this.elInactiveColor : 'transparent' + } else { + return this.checked ? iconColor : 'transparent' + } + }, + iconClasses() { + let classes = [] + // 缁勪欢鐨勫舰鐘� + classes.push('u-radio__icon-wrap--' + this.elShape) + if (this.elDisabled) { + classes.push('u-radio__icon-wrap--disabled') + } + if (this.checked && this.elDisabled) { + classes.push('u-radio__icon-wrap--disabled--checked') + } + // 鏀粯瀹濓紝澶存潯灏忕▼搴忔棤娉曞姩鎬佺粦瀹氫竴涓暟缁勭被鍚嶏紝鍚﹀垯瑙f瀽鍑烘潵鐨勭粨鏋滀細甯︽湁","锛岃�屽鑷村け鏁� + // #ifdef MP-ALIPAY || MP-TOUTIAO + classes = classes.join(' ') + // #endif + return classes + }, + iconWrapStyle() { + // radio鐨勬暣浣撴牱寮� + const style = {} + style.backgroundColor = this.checked && !this.elDisabled ? this.elActiveColor : '#ffffff' + style.borderColor = this.checked && !this.elDisabled ? this.elActiveColor : this.elInactiveColor + style.width = uni.$u.addUnit(this.elSize) + style.height = uni.$u.addUnit(this.elSize) + // 濡傛灉鏄浘鏍囧湪鍙宠竟鐨勮瘽锛岀Щ闄ゅ畠鐨勫彸杈硅窛 + if (this.parentData.iconPlacement === 'right') { + style.marginRight = 0 + } + return style + }, + radioStyle() { + const style = {} + if(this.parentData.borderBottom && this.parentData.placement === 'row') { + uni.$u.error('妫�娴嬪埌鎮ㄥ皢borderBottom璁剧疆涓簍rue锛岄渶瑕佸悓鏃跺皢u-radio-group鐨刾lacement璁剧疆涓篶olumn鎵嶆湁鏁�') + } + // 褰撶埗缁勪欢璁剧疆浜嗘樉绀轰笅杈规骞朵笖鎺掑垪褰㈠紡涓虹旱鍚戞椂锛岀粰鍐呭鍜岃竟妗嗕箣闂村姞涓婁竴瀹氶棿闅� + if(this.parentData.borderBottom && this.parentData.placement === 'column') { + // ios鍍忕礌瀵嗗害楂橈紝闇�瑕佸涓�鐐圭殑璺濈 + style.paddingBottom = uni.$u.os() === 'ios' ? '12px' : '8px' + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鏀粯瀹濆皬绋嬪簭涓嶆敮鎸乸rovide/inject锛屾墍浠ヤ娇鐢ㄨ繖涓柟娉曡幏鍙栨暣涓埗缁勪欢锛屽湪created瀹氫箟锛岄伩鍏嶅惊鐜紩鐢� + this.updateParentData() + if (!this.parent) { + uni.$u.error('u-radio蹇呴』鎼厤u-radio-group缁勪欢浣跨敤') + } + // 璁剧疆鍒濆鍖栨椂锛屾槸鍚﹂粯璁ら�変腑鐨勭姸鎬� + this.checked = this.name === this.parentData.value + }, + updateParentData() { + this.getParentData('u-radio-group') + }, + // 鐐瑰嚮鍥炬爣 + iconClickHandler(e) { + this.preventEvent(e) + // 濡傛灉鏁翠綋琚鐢紝涓嶅厑璁歌鐐瑰嚮 + if (!this.elDisabled) { + this.setRadioCheckedStatus() + } + }, + // 妯悜涓ょ鎺掑垪鏃讹紝鐐瑰嚮缁勪欢鍗冲彲瑙﹀彂閫変腑浜嬩欢 + wrapperClickHandler(e) { + this.parentData.iconPlacement === 'right' && this.iconClickHandler(e) + }, + // 鐐瑰嚮label + labelClickHandler(e) { + this.preventEvent(e) + // 濡傛灉鎸夐挳鏁翠綋琚鐢ㄦ垨鑰卨abel琚鐢紝鍒欎笉鍏佽鐐瑰嚮鏂囧瓧淇敼鐘舵�� + if (!this.elLabelDisabled && !this.elDisabled) { + this.setRadioCheckedStatus() + } + }, + emitEvent() { + // u-radio鐨刢hecked涓嶄负true鏃�(鎰忓懗鐫�鏈�変腑)锛屾墠鍙戝嚭浜嬩欢锛岄伩鍏嶅娆$偣鍑昏Е鍙戜簨浠� + if (!this.checked) { + this.$emit('change', this.name) + // 灏濊瘯璋冪敤u-form鐨勯獙璇佹柟娉曪紝杩涜涓�瀹氬欢杩燂紝鍚﹀垯寰俊灏忕▼搴忔洿鏂板彲鑳戒細涓嶅強鏃� + this.$nextTick(() => { + uni.$u.formValidate(this, 'change') + }) + } + }, + // 鏀瑰彉缁勪欢閫変腑鐘舵�� + // 杩欓噷鐨勬敼鍙樼殑渚濇嵁鏄紝鏇存敼鏈粍浠剁殑checked鍊间负true锛屽悓鏃堕�氳繃鐖剁粍浠堕亶鍘嗘墍鏈塽-radio瀹炰緥 + // 灏嗘湰缁勪欢澶栫殑鍏朵粬u-radio鐨刢hecked閮借缃负false(閮借鍙栨秷閫変腑鐘舵��)锛屽洜鑰屽彧鍓╀笅涓�涓负閫変腑鐘舵�� + setRadioCheckedStatus() { + this.emitEvent() + // 灏嗘湰缁勪欢鏍囪涓洪�変腑鐘舵�� + this.checked = true + typeof this.parent.unCheckedOther === 'function' && this.parent.unCheckedOther(this) + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + $u-radio-wrap-margin-right:6px !default; + $u-radio-wrap-font-size:20px !default; + $u-radio-wrap-border-width:1px !default; + $u-radio-wrap-border-color: #c8c9cc !default; + $u-radio-line-height:0 !default; + $u-radio-circle-border-radius:100% !default; + $u-radio-square-border-radius:3px !default; + $u-radio-checked-color:#fff !default; + $u-radio-checked-background-color:red !default; + $u-radio-checked-border-color: #2979ff !default; + $u-radio-disabled-background-color:#ebedf0 !default; + $u-radio-disabled--checked-color:#c8c9cc !default; + $u-radio-label-margin-left: 5px !default; + $u-radio-label-margin-right:12px !default; + $u-radio-label-color:$u-content-color !default; + $u-radio-label-font-size:15px !default; + $u-radio-label-disabled-color:#c8c9cc !default; + + .u-radio { + /* #ifndef APP-NVUE */ + @include flex(row); + /* #endif */ + overflow: hidden; + flex-direction: row; + align-items: center; + + &-label--left { + flex-direction: row + } + + &-label--right { + flex-direction: row-reverse; + justify-content: space-between + } + + &__icon-wrap { + /* #ifndef APP-NVUE */ + box-sizing: border-box; + // nvue涓嬶紝border-color杩囨浮鏈夐棶棰� + transition-property: border-color, background-color, color; + transition-duration: 0.2s; + /* #endif */ + color: $u-content-color; + @include flex; + align-items: center; + justify-content: center; + color: transparent; + text-align: center; + margin-right: $u-radio-wrap-margin-right; + font-size: $u-radio-wrap-font-size; + border-width: $u-radio-wrap-border-width; + border-color: $u-radio-wrap-border-color; + border-style: solid; + + /* #ifdef MP-TOUTIAO */ + // 澶存潯灏忕▼搴忓吋瀹规�ч棶棰橈紝闇�瑕佽缃楂樹负0锛屽惁鍒欏浘鏍囧亸涓� + &__icon { + line-height: $u-radio-line-height; + } + + /* #endif */ + + &--circle { + border-radius: $u-radio-circle-border-radius; + } + + &--square { + border-radius: $u-radio-square-border-radius; + } + + &--checked { + color: $u-radio-checked-color; + background-color: $u-radio-checked-background-color; + border-color: $u-radio-checked-border-color; + } + + &--disabled { + background-color: $u-radio-disabled-background-color !important; + } + + &--disabled--checked { + color: $u-radio-disabled--checked-color !important; + } + } + + &__label { + /* #ifndef APP-NVUE */ + word-wrap: break-word; + /* #endif */ + margin-left: $u-radio-label-margin-left; + margin-right: $u-radio-label-margin-right; + color: $u-radio-label-color; + font-size: $u-radio-label-font-size; + + &--disabled { + color: $u-radio-label-disabled-color; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/props.js new file mode 100644 index 0000000..2a56350 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/props.js @@ -0,0 +1,69 @@ +export default { + props: { + // 鐢ㄤ簬v-model鍙屽悜缁戝畾閫変腑鐨勬槦鏄熸暟閲� + value: { + type: [String, Number], + default: uni.$u.props.rate.value + }, + // 瑕佹樉绀虹殑鏄熸槦鏁伴噺 + count: { + type: [String, Number], + default: uni.$u.props.rate.count + }, + // 鏄惁涓嶅彲閫変腑 + disabled: { + type: Boolean, + default: uni.$u.props.rate.disabled + }, + // 鏄惁鍙 + readonly: { + type: Boolean, + default: uni.$u.props.rate.readonly + }, + // 鏄熸槦鐨勫ぇ灏忥紝鍗曚綅px + size: { + type: [String, Number], + default: uni.$u.props.rate.size + }, + // 鏈�変腑鏃剁殑棰滆壊 + inactiveColor: { + type: String, + default: uni.$u.props.rate.inactiveColor + }, + // 閫変腑鐨勯鑹� + activeColor: { + type: String, + default: uni.$u.props.rate.activeColor + }, + // 鏄熸槦涔嬮棿鐨勯棿璺濓紝鍗曚綅px + gutter: { + type: [String, Number], + default: uni.$u.props.rate.gutter + }, + // 鏈�灏戣兘閫夋嫨鐨勬槦鏄熶釜鏁� + minCount: { + type: [String, Number], + default: uni.$u.props.rate.minCount + }, + // 鏄惁鍏佽鍗婃槦 + allowHalf: { + type: Boolean, + default: uni.$u.props.rate.allowHalf + }, + // 閫変腑鏃剁殑鍥炬爣(鏄熸槦) + activeIcon: { + type: String, + default: uni.$u.props.rate.activeIcon + }, + // 鏈�変腑鏃剁殑鍥炬爣(鏄熸槦) + inactiveIcon: { + type: String, + default: uni.$u.props.rate.inactiveIcon + }, + // 鏄惁鍙互閫氳繃婊戝姩鎵嬪娍閫夋嫨璇勫垎 + touchable: { + type: Boolean, + default: uni.$u.props.rate.touchable + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/u-rate.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/u-rate.vue new file mode 100644 index 0000000..1aa5dd0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-rate/u-rate.vue @@ -0,0 +1,306 @@ +<template> + <view + class="u-rate" + :id="elId" + ref="u-rate" + :style="[$u.addStyle(customStyle)]" + > + <view + class="u-rate__content" + @touchmove.stop="touchMove" + @touchend.stop="touchEnd" + > + <view + class="u-rate__content__item" + v-for="(item, index) in Number(count)" + :key="index" + :class="[elClass]" + > + <view + class="u-rate__content__item__icon-wrap" + ref="u-rate__content__item__icon-wrap" + @tap.stop="clickHandler($event, index + 1)" + > + <u-icon + :name=" + Math.floor(activeIndex) > index + ? activeIcon + : inactiveIcon + " + :color=" + disabled + ? '#c8c9cc' + : Math.floor(activeIndex) > index + ? activeColor + : inactiveColor + " + :custom-style="{ + 'padding-left': $u.addUnit(gutter / 2), + 'padding-right': $u.addUnit(gutter / 2) + }" + :size="size" + ></u-icon> + </view> + <view + v-if="allowHalf" + @tap.stop="clickHandler($event, index + 1)" + class="u-rate__content__item__icon-wrap u-rate__content__item__icon-wrap--half" + :style="[{ + width: $u.addUnit(rateWidth / 2), + }]" + ref="u-rate__content__item__icon-wrap" + > + <u-icon + :name=" + Math.ceil(activeIndex) > index + ? activeIcon + : inactiveIcon + " + :color=" + disabled + ? '#c8c9cc' + : Math.ceil(activeIndex) > index + ? activeColor + : inactiveColor + " + :custom-style="{ + 'padding-left': $u.addUnit(gutter / 2), + 'padding-right': $u.addUnit(gutter / 2) + }" + :size="size" + ></u-icon> + </view> + </view> + </view> + </view> +</template> + +<script> + import props from './props.js'; + + // #ifdef APP-NVUE + const dom = weex.requireModule("dom"); + // #endif + /** + * rate 璇勫垎 + * @description 璇ョ粍浠朵竴鑸敤浜庢弧鎰忓害璋冩煡锛屾槦鍨嬭瘎鍒嗙殑鍦烘櫙 + * @tutorial https://www.uviewui.com/components/rate.html + * @property {String | Number} value 鐢ㄤ簬v-model鍙屽悜缁戝畾閫変腑鐨勬槦鏄熸暟閲� (榛樿 1 ) + * @property {String | Number} count 鏈�澶氬彲閫夌殑鏄熸槦鏁伴噺 锛堥粯璁� 5 锛� + * @property {Boolean} disabled 鏄惁绂佹鐢ㄦ埛鎿嶄綔 锛堥粯璁� false 锛� + * @property {Boolean} readonly 鏄惁鍙 锛堥粯璁� false 锛� + * @property {String | Number} size 鏄熸槦鐨勫ぇ灏忥紝鍗曚綅px 锛堥粯璁� 18 锛� + * @property {String} inactiveColor 鏈�変腑鏄熸槦鐨勯鑹� 锛堥粯璁� '#b2b2b2' 锛� + * @property {String} activeColor 閫変腑鐨勬槦鏄熼鑹� 锛堥粯璁� '#FA3534' 锛� + * @property {String | Number} gutter 鏄熸槦涔嬮棿鐨勮窛绂� 锛堥粯璁� 4 锛� + * @property {String | Number} minCount 鏈�灏戦�変腑鏄熸槦鐨勪釜鏁� 锛堥粯璁� 1 锛� + * @property {Boolean} allowHalf 鏄惁鍏佽鍗婃槦閫夋嫨 锛堥粯璁� false 锛� + * @property {String} activeIcon 閫変腑鏃剁殑鍥炬爣鍚嶏紝鍙兘涓簎View鐨勫唴缃浘鏍� 锛堥粯璁� 'star-fill' 锛� + * @property {String} inactiveIcon 鏈�変腑鏃剁殑鍥炬爣鍚嶏紝鍙兘涓簎View鐨勫唴缃浘鏍� 锛堥粯璁� 'star' 锛� + * @property {Boolean} touchable 鏄惁鍙互閫氳繃婊戝姩鎵嬪娍閫夋嫨璇勫垎 锛堥粯璁� 'true' 锛� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} change 閫変腑鐨勬槦鏄熷彂鐢熷彉鍖栨椂瑙﹀彂 + * @example <u-rate :count="count" :value="2"></u-rate> + */ + export default { + name: "u-rate", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + // 鐢熸垚涓�涓敮涓�id锛屽惁鍒欎竴涓〉闈㈠涓瘎鍒嗙粍浠讹紝浼氶�犳垚鍐茬獊 + elId: uni.$u.guid(), + elClass: uni.$u.guid(), + rateBoxLeft: 0, // 璇勫垎鐩掑瓙宸﹁竟鍒板睆骞曞乏杈圭殑璺濈锛岀敤浜庢粦鍔ㄩ�夋嫨鏃惰绠楄窛绂� + activeIndex: this.value, + rateWidth: 0, // 姣忎釜鏄熸槦鐨勫搴� + // 鏍囪瘑鏄惁姝e湪婊戝姩锛岀敱浜巌OS浜嬩欢涓妕ouch姣攃lick鍏堣Е鍙戯紝瀵艰嚧蹇�熸粦鍔ㄧ粨鏉熷悗锛屾帴鐫�瑙﹀彂click锛屽鑷翠簨浠舵贩涔辫�屽嚭閿� + moving: false, + }; + }, + watch: { + value(val) { + this.activeIndex = val; + }, + activeIndex: 'emitEvent' + }, + methods: { + init() { + uni.$u.sleep().then(() => { + this.getRateItemRect(); + this.getRateIconWrapRect(); + }) + }, + // 鑾峰彇璇勫垎缁勪欢鐩掑瓙鐨勫竷灞�淇℃伅 + async getRateItemRect() { + await uni.$u.sleep(); + // uView灏佽鐨勮幏鍙栬妭鐐圭殑鏂规硶锛岃瑙佹枃妗� + // #ifndef APP-NVUE + this.$uGetRect("#" + this.elId).then((res) => { + this.rateBoxLeft = res.left; + }); + // #endif + // #ifdef APP-NVUE + dom.getComponentRect(this.$refs["u-rate"], (res) => { + this.rateBoxLeft = res.size.left; + }); + // #endif + }, + // 鑾峰彇鍗曚釜鏄熸槦鐨勫昂瀵� + getRateIconWrapRect() { + // uView灏佽鐨勮幏鍙栬妭鐐圭殑鏂规硶锛岃瑙佹枃妗� + // #ifndef APP-NVUE + this.$uGetRect("." + this.elClass).then((res) => { + this.rateWidth = res.width; + }); + // #endif + // #ifdef APP-NVUE + dom.getComponentRect( + this.$refs["u-rate__content__item__icon-wrap"][0], + (res) => { + this.rateWidth = res.size.width; + } + ); + // #endif + }, + // 鎵嬫寚婊戝姩 + touchMove(e) { + // 濡傛灉绂佹閫氳繃鎵嬪姩婊戝姩閫夋嫨锛岃繑鍥� + if (!this.touchable) { + return; + } + this.preventEvent(e); + const x = e.changedTouches[0].pageX; + this.getActiveIndex(x); + }, + // 鍋滄婊戝姩 + touchEnd(e) { + // 濡傛灉绂佹閫氳繃鎵嬪姩婊戝姩閫夋嫨锛岃繑鍥� + if (!this.touchable) { + return; + } + this.preventEvent(e); + const x = e.changedTouches[0].pageX; + this.getActiveIndex(x); + }, + // 閫氳繃鐐瑰嚮锛岀洿鎺ラ�変腑 + clickHandler(e, index) { + // ios涓婏紝moving鐘舵�佸彇娑堜簨浠惰Е鍙� + if (uni.$u.os() === "ios" && this.moving) { + return; + } + this.preventEvent(e); + let x = 0; + // 鐐瑰嚮鏃讹紝鍦╪vue涓婏紝鏃犳硶鑾峰緱鐐瑰嚮鐨勫潗鏍囷紝鎵�浠ユ棤娉曞疄鐜扮偣鍑诲崐鏄熼�夋嫨 + // #ifndef APP-NVUE + x = e.changedTouches[0].pageX; + // #endif + // #ifdef APP-NVUE + // nvue涓嬶紝鏃犳硶閫氳繃鐐瑰嚮鑾峰緱鍧愭爣淇℃伅锛岃繖閲岄�氳繃鍏冪礌鐨勪綅缃昂瀵稿�兼ā鎷熷潗鏍� + x = index * this.rateWidth + this.rateBoxLeft; + // #endif + this.getActiveIndex(x,true); + }, + // 鍙戝嚭浜嬩欢 + emitEvent() { + // 鍙戝嚭change浜嬩欢 + this.$emit("change", this.activeIndex); + // 鍚屾椂淇敼鍙屽悜缁戝畾鐨剉alue鐨勫�� + this.$emit("input", this.activeIndex); + }, + // 鑾峰彇褰撳墠婵�娲荤殑璇勫垎鍥炬爣 + getActiveIndex(x,isClick = false) { + if (this.disabled || this.readonly) { + return; + } + // 鍒ゆ柇褰撳墠鎿嶄綔鐨勭偣鐨剎鍧愭爣鍊硷紝鏄惁鍦ㄥ厑璁哥殑杈圭晫鑼冨洿鍐� + const allRateWidth = this.rateWidth * this.count + this.rateBoxLeft; + // 濡傛灉灏忎簬绗竴涓浘鏍囩殑宸﹁竟鐣岋紝璁剧疆涓烘渶灏忓�硷紝濡傛灉澶т簬鎵�鏈夊浘鏍囩殑瀹藉害锛屽垯璁剧疆涓烘渶澶у�� + x = uni.$u.range(this.rateBoxLeft, allRateWidth, x) - this.rateBoxLeft + // 婊戝姩鐐圭浉瀵逛簬璇勫垎鐩掑瓙宸﹁竟鐨勮窛绂� + const distance = x; + // 婊戝姩鐨勮窛绂伙紝鐩稿綋浜庡灏戦鏄熸槦 + let index; + // 鍒ゆ柇鏄惁鍏佽鍗婃槦 + if (this.allowHalf) { + index = Math.floor(distance / this.rateWidth); + // 鍙栦綑锛屽垽鏂皬鏁扮殑鍖洪棿鑼冨洿 + const decimal = distance % this.rateWidth; + if (decimal <= this.rateWidth / 2 && decimal > 0) { + index += 0.5; + } else if (decimal > this.rateWidth / 2) { + index++; + } + } else { + index = Math.floor(distance / this.rateWidth); + // 鍙栦綑锛屽垽鏂皬鏁扮殑鍖洪棿鑼冨洿 + const decimal = distance % this.rateWidth; + // 闈炲崐鏄熸椂锛屽彧鏈夎秴杩囦簡鍥炬爣鐨勪竴鍗婅窛绂伙紝鎵嶈涓烘槸閫夋嫨浜嗚繖棰楁槦 + if (isClick){ + if (decimal > 0) index++; + } else { + if (decimal > this.rateWidth / 2) index++; + } + + } + this.activeIndex = Math.min(index, this.count); + // 瀵规渶灏戦鏄熸槦鐨勯檺鍒� + if (this.activeIndex < this.minCount) { + this.activeIndex = this.minCount; + } + + // 璁剧疆寤舵椂涓轰簡璁ヽlick浜嬩欢鍦╰ouchmove涔嬪墠瑙﹀彂 + setTimeout(() => { + this.moving = true; + }, 10); + // 涓�瀹氭椂闂村悗锛屽彇娑堟爣璇嗕负绉诲姩涓姸鎬侊紝鏄负浜嗚click浜嬩欢鏃犳晥 + setTimeout(() => { + this.moving = false; + }, 10); + }, + }, + mounted() { + this.init(); + }, + }; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; +$u-rate-margin: 0 !default; +$u-rate-padding: 0 !default; +$u-rate-item-icon-wrap-half-top: 0 !default; +$u-rate-item-icon-wrap-half-left: 0 !default; + +.u-rate { + @include flex; + align-items: center; + margin: $u-rate-margin; + padding: $u-rate-padding; + /* #ifndef APP-NVUE */ + touch-action: none; + /* #endif */ + + &__content { + @include flex; + + &__item { + position: relative; + + &__icon-wrap { + &--half { + position: absolute; + overflow: hidden; + top: $u-rate-item-icon-wrap-half-top; + left: $u-rate-item-icon-wrap-half-left; + } + } + } + } +} + +.u-icon { + /* #ifndef APP-NVUE */ + box-sizing: border-box; + /* #endif */ +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/props.js new file mode 100644 index 0000000..b444e74 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/props.js @@ -0,0 +1,61 @@ +export default { + props: { + // 榛樿鐨勬樉绀哄崰浣嶉珮搴� + showHeight: { + type: [String, Number], + default: uni.$u.props.readMore.showHeight + }, + // 灞曞紑鍚庢槸鍚︽樉绀�"鏀惰捣"鎸夐挳 + toggle: { + type: Boolean, + default: uni.$u.props.readMore.toggle + }, + // 鍏抽棴鏃剁殑鎻愮ず鏂囧瓧 + closeText: { + type: String, + default: uni.$u.props.readMore.closeText + }, + // 灞曞紑鏃剁殑鎻愮ず鏂囧瓧 + openText: { + type: String, + default: uni.$u.props.readMore.openText + }, + // 鎻愮ず鐨勬枃瀛楅鑹� + color: { + type: String, + default: uni.$u.props.readMore.color + }, + // 鎻愮ず鏂囧瓧鐨勫ぇ灏� + fontSize: { + type: [String, Number], + default: uni.$u.props.readMore.fontSize + }, + // 鏄惁鏄剧ず闃村奖 + // 姝ゅ弬鏁颁笉鑳藉啓鍦╬rops/readMore.js涓繘琛岄粯璁ら厤缃紝鍥犱负浣跨敤浜嗘潯浠剁紪璇戯紝鍦ㄥ閮╦s涓� + // uni鏃犳硶鍑嗙‘璇嗗埆褰撳墠鏄惁澶勪簬nvue杩樻槸闈瀗vue涓� + shadowStyle: { + type: Object, + default: () => ({ + // #ifndef APP-NVUE + backgroundImage: 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)', + // #endif + // #ifdef APP-NVUE + // nvue涓婁笉鏀寔璁剧疆澶嶆潅鐨刡ackgroundImage灞炴�� + backgroundImage: 'linear-gradient(to top, #fff, rgba(255, 255, 255, 0.5))', + // #endif + paddingTop: '100px', + marginTop: '-100px' + }) + }, + // 娈佃惤棣栬缂╄繘鐨勫瓧绗︿釜鏁� + textIndent: { + type: String, + default: uni.$u.props.readMore.textIndent + }, + // open鍜宑lose浜嬩欢鏃讹紝灏嗘鍙傛暟杩斿洖鍦ㄥ洖璋冨弬鏁颁腑 + name: { + type: [String, Number], + default: uni.$u.props.readMore.name + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/u-read-more.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/u-read-more.vue new file mode 100644 index 0000000..9104e40 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-read-more/u-read-more.vue @@ -0,0 +1,157 @@ +<template> + <view class="u-read-more"> + <view + class="u-read-more__content" + :style="{ + height: isLongContent && status === 'close' ? $u.addUnit(showHeight) : $u.addUnit(contentHeight), + textIndent: textIndent + }" + > + <view + class="u-read-more__content__inner" + ref="u-read-more__content__inner" + :class="[elId]" + > + <slot></slot> + </view> + </view> + <view + class="u-read-more__toggle" + :style="[innerShadowStyle]" + v-if="isLongContent" + > + <slot name="toggle"> + <view + class="u-read-more__toggle__text" + @tap="toggleReadMore" + > + <u--text + :text="status === 'close' ? closeText : openText" + :color="color" + :size="fontSize" + :lineHeight="fontSize" + margin="0 5px 0 0" + ></u--text> + <view class="u-read-more__toggle__icon"> + <u-icon + :color="color" + :size="fontSize + 2" + :name="status === 'close' ? 'arrow-down' : 'arrow-up'" + ></u-icon> + </view> + </view> + </slot> + </view> + </view> +</template> + +<script> + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + import props from './props.js'; + /** + * readMore 闃呰鏇村 + * @description 璇ョ粍浠朵竴鑸敤浜庡唴瀹硅緝闀匡紝棰勫厛鏀惰捣涓�閮ㄥ垎锛岀偣鍑诲睍寮�鍏ㄩ儴鍐呭鐨勫満鏅�� + * @tutorial https://www.uviewui.com/components/readMore.html + * @property {String | Number} showHeight 鍐呭瓒呭嚭姝ら珮搴︽墠浼氭樉绀哄睍寮�鍏ㄦ枃鎸夐挳锛屽崟浣峱x锛堥粯璁� 400 锛� + * @property {Boolean} toggle 灞曞紑鍚庢槸鍚︽樉绀烘敹璧锋寜閽紙榛樿 false 锛� + * @property {String} closeText 鍏抽棴鏃剁殑鎻愮ず鏂囧瓧锛堥粯璁� '灞曞紑闃呰鍏ㄦ枃' 锛� + * @property {String} openText 灞曞紑鏃剁殑鎻愮ず鏂囧瓧锛堥粯璁� '鏀惰捣' 锛� + * @property {String} color 鎻愮ず鏂囧瓧鐨勯鑹诧紙榛樿 '#2979ff' 锛� + * @property {String | Number} fontSize 鎻愮ず鏂囧瓧鐨勫ぇ灏忥紝鍗曚綅px 锛堥粯璁� 14 锛� + * @property {Object} shadowStyle 鏄剧ず闃村奖鐨勬牱寮� + * @property {String} textIndent 娈佃惤棣栬缂╄繘鐨勫瓧绗︿釜鏁� 锛堥粯璁� '2em' 锛� + * @property {String | Number} name 鐢ㄤ簬鍦� open 鍜� close 浜嬩欢涓綋浣滃洖璋冨弬鏁拌繑鍥� + * @event {Function} open 鍐呭琚睍寮�鏃惰Е鍙� + * @event {Function} close 鍐呭琚敹璧锋椂瑙﹀彂 + * @example <u-read-more><rich-text :nodes="content"></rich-text></u-read-more> + */ + export default { + name: 'u-read-more', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + isLongContent: false, // 鏄惁闇�瑕侀殣钘忎竴閮ㄥ垎鍐呭 + status: 'close', // 褰撳墠闅愯棌涓庢樉绀虹殑鐘舵�侊紝close-鏀惰捣鐘舵�侊紝open-灞曞紑鐘舵�� + elId: uni.$u.guid(), // 鐢熸垚鍞竴class + contentHeight: 100, // 鍐呭楂樺害 + } + }, + computed: { + // 灞曞紑鍚庢棤闇�闃村奖锛屾敹璧锋椂鎵嶉渶瑕侀槾褰辨牱寮� + innerShadowStyle() { + if (this.status === 'open') return {} + else return this.shadowStyle + } + }, + mounted() { + this.init() + }, + methods: { + async init() { + this.getContentHeight().then(height => { + this.contentHeight = height + // 鍒ゆ柇楂樺害锛屽鏋滅湡瀹炲唴瀹归珮搴﹀ぇ浜庡崰浣嶉珮搴︼紝鍒欐樉绀烘敹璧蜂笌灞曞紑鐨勬帶鍒舵寜閽� + if (height > uni.$u.getPx(this.showHeight)) { + this.isLongContent = true + this.status = 'close' + } + }) + }, + // 鑾峰彇鍐呭鐨勯珮搴� + async getContentHeight() { + // 寤舵椂涓�瀹氭椂闂村啀鑾峰彇鑺傜偣 + await uni.$u.sleep(30) + return new Promise(resolve => { + // #ifndef APP-NVUE + this.$uGetRect('.' + this.elId).then(res => { + resolve(res.height) + }) + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs['u-read-more__content__inner'] + dom.getComponentRect(ref, (res) => { + resolve(res.size.height) + }) + // #endif + }) + }, + // 灞曞紑鎴栬�呮敹璧� + toggleReadMore() { + this.status = this.status === 'close' ? 'open' : 'close' + // 濡傛灉toggle涓篺alse锛岄殣钘�"鏀惰捣"閮ㄥ垎鐨勫唴瀹� + if (this.toggle == false) this.isLongContent = false + // 鍙戝嚭鎵撳紑鎴栬�呮敹榻愮殑浜嬩欢 + this.$emit(this.status, this.name) + } + } + } +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +.u-read-more { + + &__content { + overflow: hidden; + color: $u-content-color; + font-size: 15px; + text-align: left; + } + + &__toggle { + @include flex; + justify-content: center; + + &__text { + @include flex; + align-items: center; + justify-content: center; + margin-top: 5px; + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/props.js new file mode 100644 index 0000000..107bd70 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/props.js @@ -0,0 +1,39 @@ +export default { + props: { + // 鏄剧ず鐨勫唴瀹癸紝瀛楃涓� + text: { + type: String, + default: uni.$u.props.rowNotice.text + }, + // 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� + icon: { + type: String, + default: uni.$u.props.rowNotice.icon + }, + // 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + mode: { + type: String, + default: uni.$u.props.rowNotice.mode + }, + // 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.rowNotice.color + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.rowNotice.bgColor + }, + // 瀛椾綋澶у皬锛屽崟浣峱x + fontSize: { + type: [String, Number], + default: uni.$u.props.rowNotice.fontSize + }, + // 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(rpx)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 + speed: { + type: [String, Number], + default: uni.$u.props.rowNotice.speed + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue new file mode 100644 index 0000000..20f43c3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue @@ -0,0 +1,330 @@ +<template> + <view + class="u-notice" + @tap="clickHandler" + > + <slot name="icon"> + <view + class="u-notice__left-icon" + v-if="icon" + > + <u-icon + :name="icon" + :color="color" + size="19" + ></u-icon> + </view> + </slot> + <view + class="u-notice__content" + ref="u-notice__content" + > + <view + ref="u-notice__content__text" + class="u-notice__content__text" + :style="[animationStyle]" + > + <text + v-for="(item, index) in innerText" + :key="index" + :style="[textStyle]" + >{{item}}</text> + </view> + </view> + <view + class="u-notice__right-icon" + v-if="['link', 'closable'].includes(mode)" + > + <u-icon + v-if="mode === 'link'" + name="arrow-right" + :size="17" + :color="color" + ></u-icon> + <u-icon + v-if="mode === 'closable'" + @click="close" + name="close" + :size="16" + :color="color" + ></u-icon> + </view> + </view> +</template> +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const animation = uni.requireNativePlugin('animation') + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * RowNotice 婊氬姩閫氱煡涓殑姘村钩婊氬姩妯″紡 + * @description 姘村钩婊氬姩 + * @tutorial https://www.uviewui.com/components/noticeBar.html + * @property {String | Number} text 鏄剧ず鐨勫唴瀹癸紝瀛楃涓� + * @property {String} icon 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� (榛樿 'volume' ) + * @property {String} mode 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + * @property {String} color 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 (榛樿 '#f9ae3d' ) + * @property {String} bgColor 鑳屾櫙棰滆壊 (榛樿 ''#fdf6ec' ) + * @property {String | Number} fontSize 瀛椾綋澶у皬锛屽崟浣峱x (榛樿 14 ) + * @property {String | Number} speed 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(rpx)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 (榛樿 80 ) + * + * @event {Function} click 鐐瑰嚮閫氬憡鏂囧瓧瑙﹀彂 + * @event {Function} close 鐐瑰嚮鍙充晶鍏抽棴鍥炬爣瑙﹀彂 + * @example + */ + export default { + name: 'u-row-notice', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + animationDuration: '0', // 鍔ㄧ敾鎵ц鏃堕棿 + animationPlayState: 'paused', // 鍔ㄧ敾鐨勫紑濮嬪拰缁撴潫鎵ц + // nvue涓嬶紝鍐呭鍙戠敓鍙樺寲锛屽鑷存粴鍔ㄥ搴︿篃鍙樺寲锛岄渶瑕佹爣蹇椾负鏄惁闇�瑕侀噸鏂拌绠楀搴� + // 涓嶈兘鍦ㄥ唴瀹瑰彉鍖栨椂鐩存帴閲嶆柊璁$畻锛屽洜涓簄vue鐨刟nimation妯″潡涓婁竴娆$殑婊氬姩涓嶆槸鍒氬ソ缁撴潫锛屼細鏈夊奖鍝� + nvueInit: true, + show: true + }; + }, + watch: { + text: { + immediate: true, + handler(newValue, oldValue) { + // #ifdef APP-NVUE + this.nvueInit = true + // #endif + // #ifndef APP-NVUE + this.vue() + // #endif + + if(!uni.$u.test.string(newValue)) { + uni.$u.error('noticebar缁勪欢direction涓簉ow鏃讹紝瑕佹眰text鍙傛暟涓哄瓧绗︿覆褰㈠紡') + } + } + }, + fontSize() { + // #ifdef APP-NVUE + this.nvueInit = true + // #endif + // #ifndef APP-NVUE + this.vue() + // #endif + }, + speed() { + // #ifdef APP-NVUE + this.nvueInit = true + // #endif + // #ifndef APP-NVUE + this.vue() + // #endif + } + }, + computed: { + // 鏂囧瓧鍐呭鐨勬牱寮� + textStyle() { + let style = {} + style.color = this.color + style.fontSize = uni.$u.addUnit(this.fontSize) + return style + }, + animationStyle() { + let style = {} + style.animationDuration = this.animationDuration + style.animationPlayState = this.animationPlayState + return style + }, + // 鍐呴儴瀵圭敤鎴蜂紶鍏ョ殑鏁版嵁杩涗竴姝ュ垎鍓诧紝鏀惧埌澶氫釜text鏍囩寰幆锛屽惁鍒欏鏋滅敤鎴蜂紶鍏ョ殑瀛楃涓插緢闀匡紙100涓瓧绗︿互涓婏級 + // 鏀惧湪涓�涓猼ext鏍囩涓繘琛屾粴鍔紝鍦ㄤ綆绔畨鍗撴満涓婏紝鍔ㄧ敾鍙兘浼氬嚭鐜版姈鍔ㄧ幇璞★紝闇�瑕佸垎鍓插埌澶氫釜text涓彲瑙e喅姝ら棶棰� + innerText() { + let result = [], + // 姣忕粍text鏍囩鐨勫瓧绗﹂暱搴� + len = 20 + const textArr = this.text.split('') + for (let i = 0; i < textArr.length; i += len) { + // 瀵规媶鍒嗙殑鍚庣殑text杩涜slice鍒嗗壊锛屽緱鍒扮殑涓烘暟缁勫啀杩涜join鎷兼帴涓哄瓧绗︿覆 + result.push(textArr.slice(i, i + len).join('')) + } + return result + } + }, + mounted() { + // #ifdef APP-PLUS + // 鍦ˋPP涓�(鍚玭vue)锛岀洃鍚綋鍓峸ebview鏄惁澶勪簬闅愯棌鐘舵��(杩涘叆涓嬩竴椤垫椂鍗充负hide鐘舵��) + // 濡傛灉webivew闅愯棌浜嗭紝涓轰簡鑺傜渷鎬ц兘鐨勬崯鑰楋紝搴斿仠姝㈠姩鐢荤殑鎵ц锛屽悓鏃朵篃鏄负浜嗕繚鎸佽繘鍏ヤ笅涓�椤佃繑鍥炲悗锛屾粴鍔ㄤ綅缃繚鎸佷笉鍙� + var pages = getCurrentPages() + var page = pages[pages.length - 1] + var currentWebview = page.$getAppWebview() + currentWebview.addEventListener('hide', () => { + this.webviewHide = true + }) + currentWebview.addEventListener('show', () => { + this.webviewHide = false + }) + // #endif + + this.init() + }, + methods: { + init() { + // #ifdef APP-NVUE + this.nvue() + // #endif + + // #ifndef APP-NVUE + this.vue() + // #endif + + if(!uni.$u.test.string(this.text)) { + uni.$u.error('noticebar缁勪欢direction涓簉ow鏃讹紝瑕佹眰text鍙傛暟涓哄瓧绗︿覆褰㈠紡') + } + }, + // vue鐗堝鐞� + async vue() { + // #ifndef APP-NVUE + let boxWidth = 0, + textWidth = 0 + // 杩涜涓�瀹氱殑寤舵椂 + await uni.$u.sleep() + // 鏌ヨ鐩掑瓙鍜屾枃瀛楃殑瀹藉害 + textWidth = (await this.$uGetRect('.u-notice__content__text')).width + boxWidth = (await this.$uGetRect('.u-notice__content')).width + // 鏍规嵁t=s/v(鏃堕棿=璺▼/閫熷害)锛岃繖閲屼负浣曚笉闇�瑕佸姞涓�#u-notice-box鐨勫搴︼紝鍥犱负涓缃簡.u-notice-content鏍峰紡涓缃簡padding-left: 100% + // 鎭板阀璁$畻鍑烘潵鐨勭粨鏋滀腑宸茬粡鍖呭惈浜�#u-notice-box鐨勫搴� + this.animationDuration = `${textWidth / uni.$u.getPx(this.speed)}s` + // 杩欓噷蹇呴』杩欐牱寮�濮嬪姩鐢伙紝鍚﹀垯鍦ˋPP涓婂姩鐢婚�熷害涓嶄細鏀瑰彉 + this.animationPlayState = 'paused' + setTimeout(() => { + this.animationPlayState = 'running' + }, 10) + // #endif + }, + // nvue鐗堝鐞� + async nvue() { + // #ifdef APP-NVUE + this.nvueInit = false + let boxWidth = 0, + textWidth = 0 + // 杩涜涓�瀹氱殑寤舵椂 + await uni.$u.sleep() + // 鏌ヨ鐩掑瓙鍜屾枃瀛楃殑瀹藉害 + textWidth = (await this.getNvueRect('u-notice__content__text')).width + boxWidth = (await this.getNvueRect('u-notice__content')).width + // 灏嗘枃瀛楃Щ鍔ㄥ埌鐩掑瓙鐨勫彸杈规部锛屼箣鎵�浠ラ渶瑕佽繖涔堝仛锛屾槸鍥犱负nvue涓嶆敮鎸�100%鍗曚綅锛屽惁鍒欏彲浠ラ�氳繃css璁剧疆 + animation.transition(this.$refs['u-notice__content__text'], { + styles: { + transform: `translateX(${boxWidth}px)` + }, + }, () => { + // 濡傛灉闈炵姝㈠姩鐢伙紝鍒欏紑濮嬫粴鍔� + !this.stopAnimation && this.loopAnimation(textWidth, boxWidth) + }); + // #endif + }, + loopAnimation(textWidth, boxWidth) { + // #ifdef APP-NVUE + animation.transition(this.$refs['u-notice__content__text'], { + styles: { + // 鐩爣绉诲姩缁堢偣涓�-textWidth锛屼篃鍗冲綋鏂囧瓧鐨勬渶鍙宠竟璐村埌鐩掑瓙鐨勫乏杈规鐨勪綅缃� + transform: `translateX(-${textWidth}px)` + }, + // 婊氬姩鏃堕棿鐨勮绠椾负锛屾椂闂� = 璺▼(boxWidth + textWidth) / 閫熷害锛屾渶鍚庤浆涓烘绉� + duration: (boxWidth + textWidth) / uni.$u.getPx(this.speed) * 1000, + delay: 10 + }, () => { + animation.transition(this.$refs['u-notice__content__text'], { + styles: { + // 閲嶆柊灏嗘枃瀛楃Щ鍔ㄥ埌鐩掑瓙鐨勫彸杈规部 + transform: `translateX(${this.stopAnimation ? 0 : boxWidth}px)` + }, + }, () => { + // 濡傛灉闈炵姝㈠姩鐢伙紝鍒欑户缁笅涓�杞粴鍔� + if (!this.stopAnimation) { + // 鍒ゆ柇鏄惁闇�瑕佸垵濮嬪寲璁$畻灏哄 + if (this.nvueInit) { + this.nvue() + } else { + this.loopAnimation(textWidth, boxWidth) + } + } + }); + }) + // #endif + }, + getNvueRect(el) { + // #ifdef APP-NVUE + // 杩斿洖涓�涓猵romise + return new Promise(resolve => { + dom.getComponentRect(this.$refs[el], (res) => { + resolve(res.size) + }) + }) + // #endif + }, + // 鐐瑰嚮閫氬憡鏍� + clickHandler(index) { + this.$emit('click') + }, + // 鐐瑰嚮鍙充晶鎸夐挳锛岄渶瑕佸垽鏂偣鍑荤殑鏄叧闂浘鏍囪繕鏄澶村浘鏍� + close() { + this.$emit('close') + } + }, + // #ifdef APP-NVUE + beforeDestroy() { + this.stopAnimation = true + }, + // #endif + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-notice { + @include flex; + align-items: center; + justify-content: space-between; + + &__left-icon { + align-items: center; + margin-right: 5px; + } + + &__right-icon { + margin-left: 5px; + align-items: center; + } + + &__content { + text-align: right; + flex: 1; + @include flex; + flex-wrap: nowrap; + overflow: hidden; + + &__text { + font-size: 14px; + color: $u-warning; + /* #ifndef APP-NVUE */ + // 杩欎竴鍙ュ緢閲嶈锛屼负浜嗚兘璁╂粴鍔ㄥ乏鍙宠繛鎺ヨ捣鏉� + padding-left: 100%; + word-break: keep-all; + white-space: nowrap; + animation: u-loop-animation 10s linear infinite both; + /* #endif */ + @include flex(row); + } + } + + } + + @keyframes u-loop-animation { + 0% { + transform: translate3d(0, 0, 0); + } + + 100% { + transform: translate3d(-100%, 0, 0); + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/props.js new file mode 100644 index 0000000..4b71b87 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/props.js @@ -0,0 +1,19 @@ +export default { + props: { + // 缁檆ol娣诲姞闂磋窛锛屽乏鍙宠竟璺濆悇鍗犱竴鍗� + gutter: { + type: [String, Number], + default: uni.$u.props.row.gutter + }, + // 姘村钩鎺掑垪鏂瑰紡锛屽彲閫夊�间负`start`(鎴朻flex-start`)銆乣end`(鎴朻flex-end`)銆乣center`銆乣around`(鎴朻space-around`)銆乣between`(鎴朻space-between`) + justify: { + type: String, + default: uni.$u.props.row.justify + }, + // 鍨傜洿瀵归綈鏂瑰紡锛屽彲閫夊�间负top銆乧enter銆乥ottom + align: { + type: String, + default: uni.$u.props.row.align + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/u-row.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/u-row.vue new file mode 100644 index 0000000..e608fc5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-row/u-row.vue @@ -0,0 +1,93 @@ +<template> + <view + class="u-row" + ref="u-row" + :style="[rowStyle]" + @tap="clickHandler" + > + <slot /> + </view> +</template> + +<script> + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + import props from './props.js'; + /** + * Row 鏍呮牸绯荤粺涓殑琛� + * @description 閫氳繃鍩虹鐨� 12 鍒嗘爮锛岃繀閫熺畝渚垮湴鍒涘缓甯冨眬 + * @tutorial https://www.uviewui.com/components/layout.html + * @property {String | Number} gutter 鏍呮牸闂撮殧锛屽乏鍙冲悇涓烘鍊肩殑涓�鍗婏紝鍗曚綅px (榛樿 0 ) + * @property {String} justify 姘村钩鎺掑垪鏂瑰紡(寰俊灏忕▼搴忔殏涓嶆敮鎸�) 鍙�夊�间负`start`(鎴朻flex-start`)銆乣end`(鎴朻flex-end`)銆乣center`銆乣around`(鎴朻space-around`)銆乣between`(鎴朻space-between`) (榛樿 'start' ) + * @property {String} align 鍨傜洿鎺掑垪鏂瑰紡 (榛樿 'center' ) + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} click row琚偣鍑� + * @example <u-row justify="space-between" customStyle="margin-bottom: 10px"></u-row> + */ + export default { + name: "u-row", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + + } + }, + computed: { + uJustify() { + if (this.justify == 'end' || this.justify == 'start') return 'flex-' + this.justify + else if (this.justify == 'around' || this.justify == 'between') return 'space-' + this.justify + else return this.justify + }, + uAlignItem() { + if (this.align == 'top') return 'flex-start' + if (this.align == 'bottom') return 'flex-end' + else return this.align + }, + rowStyle() { + const style = { + alignItems: this.uAlignItem, + justifyContent: this.uJustify + } + // 閫氳繃缁檜-row宸﹀彸涓よ竟鐨勮礋澶栬竟璺濓紝娑堥櫎u-col鍦ㄦ湁gutter鏃讹紝绗竴涓拰鏈�鍚庝竴涓厓绱犵殑宸﹀唴杈硅窛鍜屽彸鍐呰竟璺濋�犳垚鐨勫奖鍝� + if(this.gutter) { + style.marginLeft = uni.$u.addUnit(-Number(this.gutter)/2) + style.marginRight = uni.$u.addUnit(-Number(this.gutter)/2) + } + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + methods: { + clickHandler(e) { + this.$emit('click') + }, + async getComponentWidth() { + // 寤舵椂涓�瀹氭椂闂达紝浠ョ‘淇濊妭鐐规覆鏌撳畬鎴� + await uni.$u.sleep() + return new Promise(resolve => { + // uView灏佽鐨勮幏鍙栬妭鐐圭殑鏂规硶锛岃瑙佹枃妗� + // #ifndef APP-NVUE + this.$uGetRect('.u-row').then(res => { + resolve(res.width) + }) + // #endif + // #ifdef APP-NVUE + // nvue鐨刣om妯″潡鐢ㄤ簬鑾峰彇鑺傜偣 + dom.getComponentRect(this.$refs['u-row'], (res) => { + resolve(res.size.width) + }) + // #endif + }) + }, + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-row { + @include flex; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue new file mode 100644 index 0000000..fb858ea --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom.vue @@ -0,0 +1,56 @@ +<template> + <view + class="u-safe-bottom" + :style="[style]" + :class="[!isNvue && 'u-safe-area-inset-bottom']" + > + </view> +</template> + +<script> + import props from "./props.js"; + /** + * SafeBottom 搴曢儴瀹夊叏鍖� + * @description 杩欎釜閫傞厤锛屼富瑕佹槸閽堝IPhone X绛変竴浜涘簳閮ㄥ甫鎸囩ず鏉$殑鏈哄瀷锛屾寚绀烘潯鐨勬搷浣滃尯鍩熶笌椤甸潰搴曢儴瀛樺湪閲嶅悎锛屽鏄撳鑷寸敤鎴疯鎿嶄綔锛屽洜姝ゆ垜浠渶瑕侀拡瀵硅繖浜涙満鍨嬭繘琛屽簳閮ㄥ畨鍏ㄥ尯閫傞厤銆� + * @tutorial https://www.uviewui.com/components/safeAreaInset.html + * @property {type} prop_name + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function()} + * @example <u-status-bar></u-status-bar> + */ + export default { + name: "u-safe-bottom", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + safeAreaBottomHeight: 0, + isNvue: false, + }; + }, + computed: { + style() { + const style = {}; + // #ifdef APP-NVUE + // nvue涓嬶紝楂樺害浣跨敤js璁$畻濉厖 + style.height = uni.$u.addUnit(uni.$u.sys().safeAreaInsets.bottom, 'px'); + // #endif + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)); + }, + }, + mounted() { + // #ifdef APP-NVUE + // 鏍囪瘑涓烘槸鍚vue + this.isNvue = true; + // #endif + }, + }; +</script> + +<style lang="scss" scoped> + .u-safe-bottom { + /* #ifndef APP-NVUE */ + width: 100%; + /* #endif */ + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/nvue.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/nvue.js new file mode 100644 index 0000000..94bb056 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/nvue.js @@ -0,0 +1,28 @@ +// 寮曞叆bindingx锛屾搴撶被浼间簬寰俊灏忕▼搴弚xs锛岀洰鐨勬槸璁﹋s杩愯鍦ㄨ鍥惧眰锛屽噺灏戣鍥惧眰鍜岄�昏緫灞傜殑閫氫俊鎶樻崯 +const BindingX = uni.requireNativePlugin('bindingx') + +export default { + methods: { + // 姝ゅ涓嶅啓娉ㄩ噴锛岃鑷浣撲細 + nvueScrollHandler(e) { + const anchor = this.$refs['u-scroll-list__scroll-view'].ref + const element = this.$refs['u-scroll-list__indicator__line__bar'].ref + const scrollLeft = e.contentOffset.x + const contentSize = e.contentSize.width + const { scrollWidth } = this + const barAllMoveWidth = this.indicatorWidth - this.indicatorBarWidth + // 鍦ㄥ畨鍗撳拰iOS涓婏紝闇�瑕侀櫎鐨勫�嶆暟涓嶄竴鏍凤紝iOS闇�瑕侀櫎浠�2 + const actionNum = uni.$u.os() === 'ios' ? 2 : 1 + const expression = `(x / ${actionNum}) / ${contentSize - scrollWidth} * ${barAllMoveWidth}` + BindingX.bind({ + anchor, + eventType: 'scroll', + props: [{ + element, + property: 'transform.translateX', + expression + }] + }) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/other.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/other.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/other.js diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/props.js new file mode 100644 index 0000000..765be54 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/props.js @@ -0,0 +1,34 @@ +export default { + props: { + // 鎸囩ず鍣ㄧ殑鏁翠綋瀹藉害 + indicatorWidth: { + type: [String, Number], + default: uni.$u.props.scrollList.indicatorWidth + }, + // 婊戝潡鐨勫搴� + indicatorBarWidth: { + type: [String, Number], + default: uni.$u.props.scrollList.indicatorBarWidth + }, + // 鏄惁鏄剧ず闈㈡澘鎸囩ず鍣� + indicator: { + type: Boolean, + default: uni.$u.props.scrollList.indicator + }, + // 鎸囩ず鍣ㄩ潪婵�娲婚鑹� + indicatorColor: { + type: String, + default: uni.$u.props.scrollList.indicatorColor + }, + // 鎸囩ず鍣ㄧ殑婵�娲婚鑹� + indicatorActiveColor: { + type: String, + default: uni.$u.props.scrollList.indicatorActiveColor + }, + // 鎸囩ず鍣ㄦ牱寮忥紝鍙�氳繃bottom锛宭eft锛宺ight杩涜瀹氫綅 + indicatorStyle: { + type: [String, Object], + default: uni.$u.props.scrollList.indicatorStyle + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/scrollWxs.wxs b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/scrollWxs.wxs new file mode 100644 index 0000000..ce94f1d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/scrollWxs.wxs @@ -0,0 +1,50 @@ +function scroll(event, ownerInstance) { + // detail涓惈鏈塻croll-view鐨勪俊鎭紝姣斿scroll-view鐨勫疄闄呭搴︼紝褰撳墠鏃堕棿鐐箂croll-view鐨勭Щ鍔ㄨ窛绂荤瓑 + var detail = event.detail + var scrollWidth = detail.scrollWidth + var scrollLeft = detail.scrollLeft + // 鑾峰彇褰撳墠缁勪欢鐨刣ataset锛岃鐧戒簡灏辨槸绁稿浗娈冩皯鐨勮吘xun鎼炲嚭鏉ョ殑鍨僯i + var dataset = event.currentTarget.dataset + // 姝や负scroll-view澶栭儴鍖呰9鍏冪礌鐨勫搴� + // 鏌愪簺HX鐗堟湰(3.1.18)锛屽彂鐜皏iew鍏冪礌涓ぇ鍐欑殑data-scrollWidth锛屽湪wxs涓紝鍙樻垚浜嗗叏閮ㄥ皬鍐欙紝鎵�浠ヨ繖閲岄渶瑕佺壒鍒鐞� + var scrollComponentWidth = dataset.scrollWidth || dataset.scrollwidth || 0 + // 鎸囩ず鍣ㄥ拰婊戝潡鐨勫搴� + var indicatorWidth = dataset.indicatorWidth || dataset.indicatorwidth || 0 + var barWidth = dataset.barWidth || dataset.barwidth || 0 + // 姝ゅ鐨勮绠楃悊鐢变负锛歴croll-view鐨勬粴鍔ㄨ窛绂讳笌鐩爣婊氬姩璺濈(scroll-view鐨勫疄闄呭搴﹀噺鍘诲寘瑁瑰厓绱犵殑瀹藉害)涔嬫瘮锛岀瓑浜庢粦鍧楀綋鍓嶇Щ鍔ㄨ窛绂讳笌鎬婚渶 + // 婊戝姩璺濈(鎸囩ず鍣ㄧ殑鎬诲搴﹀噺鍘绘粦鍧楀搴�)鐨勬瘮鍊� + var x = scrollLeft / (scrollWidth - scrollComponentWidth) * (indicatorWidth - barWidth) + setBarStyle(ownerInstance, x) +} + +// 鐢变簬webview鐨勬棤鑳斤紝鏃犳硶淇濊瘉scroll-view鍦ㄦ粦鍔ㄨ繃绋嬩腑锛屼竴鐩磋Е鍙憇croll浜嬩欢锛屼細瀵艰嚧 +// 鏃犳硶鐩戝惉鍒版煇浜涙粴鍔ㄥ�硷紝褰撳湪棣栧熬涓寸晫鍊兼棤娉曠洃鍚埌鏃讹紝杩欐槸鑷村懡鐨勶紝鍥犱负閿欏け杩欎簺鍊间細瀵艰嚧婊戝潡鏃犳硶鍥炲埌璧风偣鍜岀粓鐐� +// 鎵�浠ヨ繖閲岄渶瑕佸涓寸晫鍊煎仛鐩戝惉骞跺鐞� +function scrolltolower(event, ownerInstance) { + ownerInstance.callMethod('scrollEvent', 'right') + // 鑾峰彇褰撳墠缁勪欢鐨刣ataset + var dataset = event.currentTarget.dataset + // 鎸囩ず鍣ㄥ拰婊戝潡鐨勫搴� + var indicatorWidth = dataset.indicatorWidth || dataset.indicatorwidth || 0 + var barWidth = dataset.barWidth || dataset.barwidth || 0 + // scroll-view婊氬姩鍒板彸杈圭粓鐐规椂锛屽皢婊戝潡涔熻缃负鍒板彸杈圭殑缁堢偣锛屽畠鎵�闇�绉诲姩鐨勮窛绂讳负锛氭寚绀哄櫒瀹藉害 - 婊戝潡瀹藉害 + setBarStyle(ownerInstance, indicatorWidth - barWidth) +} + +function scrolltoupper(event, ownerInstance) { + ownerInstance.callMethod('scrollEvent', 'left') + // 婊氬姩鍒板乏杈规椂锛屽皢婊戝潡璁剧疆涓�0鐨勫亸绉昏窛绂伙紝鍥炲埌璧风偣 + setBarStyle(ownerInstance, 0) +} + +function setBarStyle(ownerInstance, x) { + ownerInstance.selectComponent('.u-scroll-list__indicator__line__bar') && ownerInstance.selectComponent('.u-scroll-list__indicator__line__bar').setStyle({ + transform: 'translateX(' + x + 'px)' + }) +} + +module.exports = { + scroll: scroll, + scrolltolower: scrolltolower, + scrolltoupper: scrolltoupper +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/u-scroll-list.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/u-scroll-list.vue new file mode 100644 index 0000000..4fe885a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-scroll-list/u-scroll-list.vue @@ -0,0 +1,224 @@ +<template> + <view + class="u-scroll-list" + ref="u-scroll-list" + > + <!-- #ifdef APP-NVUE --> + <!-- nvue浣跨敤bindingX瀹炵幇锛屼互寰楀埌鏇村ソ鐨勬�ц兘 --> + <scroller + class="u-scroll-list__scroll-view" + ref="u-scroll-list__scroll-view" + scroll-direction="horizontal" + :show-scrollbar="false" + :offset-accuracy="1" + @scroll="nvueScrollHandler" + > + <view class="u-scroll-list__scroll-view__content"> + <slot /> + </view> + </scroller> + <!-- #endif --> + <!-- #ifndef APP-NVUE --> + <!-- #ifdef MP-WEIXIN || APP-VUE || H5 || MP-QQ --> + <!-- 浠ヤ笂骞冲彴锛屾敮鎸亀xs --> + <scroll-view + class="u-scroll-list__scroll-view" + scroll-x + @scroll="wxs.scroll" + @scrolltoupper="wxs.scrolltoupper" + @scrolltolower="wxs.scrolltolower" + :data-scrollWidth="scrollWidth" + :data-barWidth="$u.getPx(indicatorBarWidth)" + :data-indicatorWidth="$u.getPx(indicatorWidth)" + :show-scrollbar="false" + :upper-threshold="0" + :lower-threshold="0" + > + <!-- #endif --> + <!-- #ifndef APP-NVUE || MP-WEIXIN || H5 || APP-VUE || MP-QQ --> + <!-- 闈炰互涓婂钩鍙帮紝鍙兘浣跨敤鏅�歫s瀹炵幇 --> + <scroll-view + class="u-scroll-list__scroll-view" + scroll-x + @scroll="scrollHandler" + @scrolltoupper="scrolltoupperHandler" + @scrolltolower="scrolltolowerHandler" + :show-scrollbar="false" + :upper-threshold="0" + :lower-threshold="0" + > + <!-- #endif --> + <view class="u-scroll-list__scroll-view__content"> + <slot /> + </view> + </scroll-view> + <!-- #endif --> + <view + class="u-scroll-list__indicator" + v-if="indicator" + :style="[$u.addStyle(indicatorStyle)]" + > + <view + class="u-scroll-list__indicator__line" + :style="[lineStyle]" + > + <view + class="u-scroll-list__indicator__line__bar" + :style="[barStyle]" + ref="u-scroll-list__indicator__line__bar" + ></view> + </view> + </view> + </view> +</template> + +<script + src="./scrollWxs.wxs" + module="wxs" + lang="wxs" +></script> + +<script> +/** + * scrollList 妯悜婊氬姩鍒楄〃 + * @description 璇ョ粍浠朵竴鑸敤浜庡悓鏃跺睍绀哄涓晢鍝併�佸垎绫荤殑鍦烘櫙锛屼篃鍙互瀹屾垚宸﹀彸婊戝姩鐨勫垪琛ㄣ�� + * @tutorial https://www.uviewui.com/components/scrollList.html + * @property {String | Number} indicatorWidth 鎸囩ず鍣ㄧ殑鏁翠綋瀹藉害 (榛樿 50 ) + * @property {String | Number} indicatorBarWidth 婊戝潡鐨勫搴� (榛樿 20 ) + * @property {Boolean} indicator 鏄惁鏄剧ず闈㈡澘鎸囩ず鍣� (榛樿 true ) + * @property {String} indicatorColor 鎸囩ず鍣ㄩ潪婵�娲婚鑹� (榛樿 '#f2f2f2' ) + * @property {String} indicatorActiveColor 鎸囩ず鍣ㄧ殑婵�娲婚鑹� (榛樿 '#3c9cff' ) + * @property {String | Object} indicatorStyle 鎸囩ず鍣ㄦ牱寮忥紝鍙�氳繃bottom锛宭eft锛宺ight杩涜瀹氫綅 + * @event {Function} left 婊戝姩鍒板乏杈规椂瑙﹀彂 + * @event {Function} right 婊戝姩鍒板彸杈规椂瑙﹀彂 + * @example + */ +// #ifdef APP-NVUE +const dom = uni.requireNativePlugin('dom') +import nvueMixin from "./nvue.js" +// #endif +import props from './props.js'; +export default { + name: 'u-scroll-list', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + // #ifdef APP-NVUE + mixins: [uni.$u.mpMixin, uni.$u.mixin, nvueMixin, props], + // #endif + data() { + return { + scrollInfo: { + scrollLeft: 0, + scrollWidth: 0 + }, + scrollWidth: 0 + } + }, + computed: { + // 鎸囩ず鍣ㄤ负绾垮瀷鐨勬牱寮� + barStyle() { + const style = {} + // #ifndef APP-NVUE || MP-WEIXIN || H5 || APP-VUE || MP-QQ + // 姝や负鏅�歫s鏂规锛屽彧鏈夊湪闈瀗vue鍜屼笉鏀寔wxs鏂规鐨勭鎵嶄娇鐢ㄣ�� + // 姝ゅ鐨勮绠楃悊鐢变负锛歴croll-view鐨勬粴鍔ㄨ窛绂讳笌鐩爣婊氬姩璺濈(scroll-view鐨勫疄闄呭搴﹀噺鍘诲寘瑁瑰厓绱犵殑瀹藉害)涔嬫瘮锛岀瓑浜庢粦鍧楀綋鍓嶇Щ鍔ㄨ窛绂讳笌鎬婚渶 + // 婊戝姩璺濈(鎸囩ず鍣ㄧ殑鎬诲搴﹀噺鍘绘粦鍧楀搴�)鐨勬瘮鍊� + const scrollLeft = this.scrollInfo.scrollLeft, + scrollWidth = this.scrollInfo.scrollWidth, + barAllMoveWidth = this.indicatorWidth - this.indicatorBarWidth + const x = scrollLeft / (scrollWidth - this.scrollWidth) * barAllMoveWidth + style.transform = `translateX(${ x }px)` + // #endif + // 璁剧疆婊戝潡鐨勫搴﹀拰鑳屾櫙鑹诧紝鏄瘡涓钩鍙伴兘闇�瑕佺殑 + style.width = uni.$u.addUnit(this.indicatorBarWidth) + style.backgroundColor = this.indicatorActiveColor + return style + }, + lineStyle() { + const style = {} + // 鎸囩ず鍣ㄦ暣浣撶殑鏍峰紡锛岄渶瑕佽缃叾瀹藉害鍜岃儗鏅壊 + style.width = uni.$u.addUnit(this.indicatorWidth) + style.backgroundColor = this.indicatorColor + return style + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getComponentWidth() + }, + // #ifndef APP-NVUE || MP-WEIXIN || H5 || APP-VUE || MP-QQ + // scroll-view瑙﹀彂婊氬姩浜嬩欢 + scrollHandler(e) { + this.scrollInfo = e.detail + }, + scrolltoupperHandler() { + this.scrollEvent('left') + this.scrollInfo.scrollLeft = 0 + }, + scrolltolowerHandler() { + this.scrollEvent('right') + // 鍦ㄦ櫘閫歫s鏂规涓紝婊氬姩鍒板彸杈规椂锛岄�氳繃璁剧疆this.scrollInfo锛屾ā鎷熷嚭婊氬姩鍒板彸杈圭殑鎯呭喌 + // 鍥犱负涓婃柟鏄敤杩嘽omputed璁$畻鐨勶紝璁剧疆鍚庯紝浼氳嚜鍔ㄨ皟鏁存粦鍧楃殑浣嶇疆 + this.scrollInfo.scrollLeft = uni.$u.getPx(this.indicatorWidth) - uni.$u.getPx(this.indicatorBarWidth) + }, + // #endif + // + scrollEvent(status) { + this.$emit(status) + }, + // 鑾峰彇缁勪欢鐨勫搴� + async getComponentWidth() { + // 寤舵椂涓�瀹氭椂闂达紝浠ヨ幏鍙杁om灏哄 + await uni.$u.sleep(30) + // #ifndef APP-NVUE + this.$uGetRect('.u-scroll-list').then(size => { + this.scrollWidth = size.width + }) + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs['u-scroll-list'] + ref && dom.getComponentRect(ref, (res) => { + this.scrollWidth = res.size.width + }) + // #endif + }, + } +} +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +.u-scroll-list { + padding-bottom: 10px; + + &__scroll-view { + @include flex; + + &__content { + @include flex; + } + } + + &__indicator { + @include flex; + justify-content: center; + margin-top: 15px; + + &__line { + width: 60px; + height: 4px; + border-radius: 100px; + overflow: hidden; + + &__bar { + width: 20px; + height: 4px; + border-radius: 100px; + } + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/props.js new file mode 100644 index 0000000..df1b342 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/props.js @@ -0,0 +1,118 @@ +export default { + props: { + // 鎼滅储妗嗗舰鐘讹紝round-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.search.shape + }, + // 鎼滅储妗嗚儗鏅壊锛岄粯璁ゅ��#f2f2f2 + bgColor: { + type: String, + default: uni.$u.props.search.bgColor + }, + // 鍗犱綅鎻愮ず鏂囧瓧 + placeholder: { + type: String, + default: uni.$u.props.search.placeholder + }, + // 鏄惁鍚敤娓呴櫎鎺т欢 + clearabled: { + type: Boolean, + default: uni.$u.props.search.clearabled + }, + // 鏄惁鑷姩鑱氱劍 + focus: { + type: Boolean, + default: uni.$u.props.search.focus + }, + // 鏄惁鍦ㄦ悳绱㈡鍙充晶鏄剧ず鍙栨秷鎸夐挳 + showAction: { + type: Boolean, + default: uni.$u.props.search.showAction + }, + // 鍙宠竟鎺т欢鐨勬牱寮� + actionStyle: { + type: Object, + default: uni.$u.props.search.actionStyle + }, + // 鍙栨秷鎸夐挳鏂囧瓧 + actionText: { + type: String, + default: uni.$u.props.search.actionText + }, + // 杈撳叆妗嗗唴瀹瑰榻愭柟寮忥紝鍙�夊�间负 left|center|right + inputAlign: { + type: String, + default: uni.$u.props.search.inputAlign + }, + // input杈撳叆妗嗙殑鏍峰紡锛屽彲浠ュ畾涔夋枃瀛楅鑹诧紝澶у皬绛夛紝瀵硅薄褰㈠紡 + inputStyle: { + type: Object, + default: uni.$u.props.search.inputStyle + }, + // 鏄惁鍚敤杈撳叆妗� + disabled: { + type: Boolean, + default: uni.$u.props.search.disabled + }, + // 杈规棰滆壊 + borderColor: { + type: String, + default: uni.$u.props.search.borderColor + }, + // 鎼滅储鍥炬爣鐨勯鑹诧紝榛樿鍚岃緭鍏ユ瀛椾綋棰滆壊 + searchIconColor: { + type: String, + default: uni.$u.props.search.searchIconColor + }, + // 杈撳叆妗嗗瓧浣撻鑹� + color: { + type: String, + default: uni.$u.props.search.color + }, + // placeholder鐨勯鑹� + placeholderColor: { + type: String, + default: uni.$u.props.search.placeholderColor + }, + // 宸﹁竟杈撳叆妗嗙殑鍥炬爣锛屽彲浠ヤ负uView鍥炬爣鍚嶇О鎴栧浘鐗囪矾寰� + searchIcon: { + type: String, + default: uni.$u.props.search.searchIcon + }, + searchIconSize: { + type: [Number, String], + default: uni.$u.props.search.searchIconSize + }, + // 缁勪欢涓庡叾浠栦笂涓嬪乏鍙冲厓绱犱箣闂寸殑璺濈锛屽甫鍗曚綅鐨勫瓧绗︿覆褰㈠紡锛屽"30px"銆�"30px 20px"绛夊啓娉� + margin: { + type: String, + default: uni.$u.props.search.margin + }, + // 寮�鍚痵howAction鏃讹紝鏄惁鍦╥nput鑾峰彇鐒︾偣鏃舵墠鏄剧ず + animation: { + type: Boolean, + default: uni.$u.props.search.animation + }, + // 杈撳叆妗嗙殑鍒濆鍖栧唴瀹� + value: { + type: String, + default: uni.$u.props.search.value + }, + // 杈撳叆妗嗘渶澶ц兘杈撳叆鐨勯暱搴︼紝-1涓轰笉闄愬埗闀垮害(鏉ヨ嚜uniapp鏂囨。) + maxlength: { + type: [String, Number], + default: uni.$u.props.search.maxlength + }, + // 鎼滅储妗嗛珮搴︼紝鍗曚綅px + height: { + type: [String, Number], + default: uni.$u.props.search.height + }, + // 鎼滅储妗嗗乏渚ф枃鏈� + label: { + type: [String, Number, null], + default: uni.$u.props.search.label + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/u-search.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/u-search.vue new file mode 100644 index 0000000..f169c7f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-search/u-search.vue @@ -0,0 +1,303 @@ +<template> + <view + class="u-search" + @tap="clickHandler" + :style="[{ + margin: margin, + }, $u.addStyle(customStyle)]" + > + <view + class="u-search__content" + :style="{ + backgroundColor: bgColor, + borderRadius: shape == 'round' ? '100px' : '4px', + borderColor: borderColor, + }" + > + <template v-if="$slots.label || label !== null"> + <slot name="label"> + <text class="u-search__content__label">{{ label }}</text> + </slot> + </template> + <view class="u-search__content__icon"> + <u-icon + @tap="clickIcon" + :size="searchIconSize" + :name="searchIcon" + :color="searchIconColor ? searchIconColor : color" + ></u-icon> + </view> + <input + confirm-type="search" + @blur="blur" + :value="value" + @confirm="search" + @input="inputChange" + :disabled="disabled" + @focus="getFocus" + :focus="focus" + :maxlength="maxlength" + placeholder-class="u-search__content__input--placeholder" + :placeholder="placeholder" + :placeholder-style="`color: ${placeholderColor}`" + class="u-search__content__input" + type="text" + :style="[{ + textAlign: inputAlign, + color: color, + backgroundColor: bgColor, + height: $u.addUnit(height) + }, inputStyle]" + /> + <view + class="u-search__content__icon u-search__content__close" + v-if="keyword && clearabled && focused" + @tap="clear" + > + <u-icon + name="close" + size="11" + color="#ffffff" + customStyle="line-height: 12px" + ></u-icon> + </view> + </view> + <text + :style="[actionStyle]" + class="u-search__action" + :class="[(showActionBtn || show) && 'u-search__action--active']" + @tap.stop.prevent="custom" + >{{ actionText }}</text> + </view> +</template> + +<script> + import props from './props.js'; + + /** + * search 鎼滅储妗� + * @description 鎼滅储缁勪欢锛岄泦鎴愪簡甯歌鎼滅储妗嗘墍闇�鍔熻兘锛岀敤鎴峰彲浠ヤ竴閿紩鍏ワ紝寮�绠卞嵆鐢ㄣ�� + * @tutorial https://www.uviewui.com/components/search.html + * @property {String} shape 鎼滅储妗嗗舰鐘讹紝round-鍦嗗舰锛宻quare-鏂瑰舰锛堥粯璁� 'round' 锛� + * @property {String} bgColor 鎼滅储妗嗚儗鏅鑹诧紙榛樿 '#f2f2f2' 锛� + * @property {String} placeholder 鍗犱綅鏂囧瓧鍐呭锛堥粯璁� '璇疯緭鍏ュ叧閿瓧' 锛� + * @property {Boolean} clearabled 鏄惁鍚敤娓呴櫎鎺т欢锛堥粯璁� true 锛� + * @property {Boolean} focus 鏄惁鑷姩鑾峰緱鐒︾偣锛堥粯璁� false 锛� + * @property {Boolean} showAction 鏄惁鏄剧ず鍙充晶鎺т欢锛堥粯璁� true 锛� + * @property {Object} actionStyle 鍙充晶鎺т欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @property {String} actionText 鍙充晶鎺т欢鏂囧瓧锛堥粯璁� '鎼滅储' 锛� + * @property {String} inputAlign 杈撳叆妗嗗唴瀹规按骞冲榻愭柟寮� 锛堥粯璁� 'left' 锛� + * @property {Object} inputStyle 鑷畾涔夎緭鍏ユ鏍峰紡锛屽璞″舰寮� + * @property {Boolean} disabled 鏄惁鍚敤杈撳叆妗嗭紙榛樿 false 锛� + * @property {String} borderColor 杈规棰滆壊锛岄厤缃簡棰滆壊锛屾墠浼氭湁杈规 (榛樿 'transparent' ) + * @property {String} searchIconColor 鎼滅储鍥炬爣鐨勯鑹诧紝榛樿鍚岃緭鍏ユ瀛椾綋棰滆壊 (榛樿 '#909399' ) + * @property {Number | String} searchIconSize 鎼滅储鍥炬爣鐨勫瓧浣擄紝榛樿22 + * @property {String} color 杈撳叆妗嗗瓧浣撻鑹诧紙榛樿 '#606266' 锛� + * @property {String} placeholderColor placeholder鐨勯鑹诧紙榛樿 '#909399' 锛� + * @property {String} searchIcon 杈撳叆妗嗗乏杈圭殑鍥炬爣锛屽彲浠ヤ负uView鍥炬爣鍚嶇О鎴栧浘鐗囪矾寰� (榛樿 'search' ) + * @property {String} margin 缁勪欢涓庡叾浠栦笂涓嬪乏鍙冲厓绱犱箣闂寸殑璺濈锛屽甫鍗曚綅鐨勫瓧绗︿覆褰㈠紡锛屽"30px" (榛樿 '0' ) + * @property {Boolean} animation 鏄惁寮�鍚姩鐢伙紝瑙佷笂鏂硅鏄庯紙榛樿 false 锛� + * @property {String} value 杈撳叆妗嗗垵濮嬪�� + * @property {String | Number} maxlength 杈撳叆妗嗘渶澶ц兘杈撳叆鐨勯暱搴︼紝-1涓轰笉闄愬埗闀垮害 (榛樿 '-1' ) + * @property {String | Number} height 杈撳叆妗嗛珮搴︼紝鍗曚綅px锛堥粯璁� 64 锛� + * @property {String | Number} label 鎼滅储妗嗗乏杈规樉绀哄唴瀹� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} change 杈撳叆妗嗗唴瀹瑰彂鐢熷彉鍖栨椂瑙﹀彂 + * @event {Function} search 鐢ㄦ埛纭畾鎼滅储鏃惰Е鍙戯紝鐢ㄦ埛鎸夊洖杞﹂敭锛屾垨鑰呮墜鏈洪敭鐩樺彸涓嬭鐨�"鎼滅储"閿椂瑙﹀彂 + * @event {Function} custom 鐢ㄦ埛鐐瑰嚮鍙充晶鎺т欢鏃惰Е鍙� + * @event {Function} clear 鐢ㄦ埛鐐瑰嚮娓呴櫎鎸夐挳鏃惰Е鍙� + * @example <u-search placeholder="鏃ョ収棣欑倝鐢熺传鐑�" v-model="keyword"></u-search> + */ + export default { + name: "u-search", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + keyword: '', + showClear: false, // 鏄惁鏄剧ず鍙宠竟鐨勬竻闄ゅ浘鏍� + show: false, + // 鏍囪input褰撳墠鐘舵�佹槸鍚﹀浜庤仛鐒︿腑锛屽鏋滄槸锛屾墠浼氭樉绀哄彸渚х殑娓呴櫎鎺т欢 + focused: this.focus + // 缁戝畾杈撳叆妗嗙殑鍊� + // inputValue: this.value + }; + }, + watch: { + keyword(nVal) { + // 鍙屽悜缁戝畾鍊硷紝璁﹙-model缁戝畾鐨勫�煎弻鍚戝彉鍖� + this.$emit('input', nVal); + // 瑙﹀彂change浜嬩欢锛屼簨浠舵晥鏋滃拰v-model鍙屽悜缁戝畾鐨勬晥鏋滀竴鏍凤紝璁╃敤鎴峰涓�涓�夋嫨 + this.$emit('change', nVal); + }, + value: { + immediate: true, + handler(nVal) { + this.keyword = nVal; + } + } + }, + computed: { + showActionBtn() { + return !this.animation && this.showAction + } + }, + methods: { + // 鐩墠HX2.6.9 v-model鍙屽悜缁戝畾鏃犳晥锛屾晠鐩戝惉input浜嬩欢鑾峰彇杈撳叆妗嗗唴瀹圭殑鍙樺寲 + inputChange(e) { + this.keyword = e.detail.value; + }, + // 娓呯┖杈撳叆 + // 涔熷彲浠ヤ綔涓虹敤鎴烽�氳繃this.$refs褰㈠紡璋冪敤娓呯┖杈撳叆妗嗗唴瀹� + clear() { + this.keyword = ''; + // 寤跺悗鍙戝嚭浜嬩欢锛岄伩鍏嶅湪鐖剁粍浠剁洃鍚琧lear浜嬩欢鏃讹紝value涓烘洿鏂板墠鐨勫��(涓嶄负绌�) + this.$nextTick(() => { + this.$emit('clear'); + }) + }, + // 纭畾鎼滅储 + search(e) { + this.$emit('search', e.detail.value); + try { + // 鏀惰捣閿洏 + uni.hideKeyboard(); + } catch (e) {} + }, + // 鐐瑰嚮鍙宠竟鑷畾涔夋寜閽殑浜嬩欢 + custom() { + this.$emit('custom', this.keyword); + try { + // 鏀惰捣閿洏 + uni.hideKeyboard(); + } catch (e) {} + }, + // 鑾峰彇鐒︾偣 + getFocus() { + this.focused = true; + // 寮�鍚彸渚ф悳绱㈡寜閽睍寮�鐨勫姩鐢绘晥鏋� + if (this.animation && this.showAction) this.show = true; + this.$emit('focus', this.keyword); + }, + // 澶卞幓鐒︾偣 + blur() { + // 鏈�寮�濮嬩娇鐢ㄧ殑鏄洃鍚浘鏍嘆touchstart浜嬩欢锛岃嚜浠巋x2.8.4鍚庯紝姝ゆ柟娉曞湪寰俊灏忕▼搴忓嚭閿� + // 杩欓噷鏀逛负鐩戝惉鐐瑰嚮浜嬩欢锛屾墜鐐瑰嚮娓呴櫎鍥炬爣鏃讹紝鍚屾椂涔熷彂鐢熶簡@blur浜嬩欢锛屽鑷村浘鏍囨秷澶辫�屾棤娉曠偣鍑伙紝杩欓噷鍋氫竴涓欢鏃� + setTimeout(() => { + this.focused = false; + }, 100) + this.show = false; + this.$emit('blur', this.keyword); + }, + // 鐐瑰嚮鎼滅储妗嗭紝鍙湁disabled=true鏃舵墠鍙戝嚭浜嬩欢锛屽洜涓虹姝簡杈撳叆锛屾剰鍛崇潃鏄兂璺宠浆鐪熸鐨勬悳绱㈤〉 + clickHandler() { + if (this.disabled) this.$emit('click'); + }, + // 鐐瑰嚮宸﹁竟鍥炬爣 + clickIcon() { + this.$emit('clickIcon'); + } + } + } +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; +$u-search-content-padding: 0 10px !default; +$u-search-label-color: $u-main-color !default; +$u-search-label-font-size: 14px !default; +$u-search-label-margin: 0 4px !default; +$u-search-close-size: 20px !default; +$u-search-close-radius: 100px !default; +$u-search-close-bgColor: #C6C7CB !default; +$u-search-close-transform: scale(0.82) !default; +$u-search-input-font-size: 14px !default; +$u-search-input-margin: 0 5px !default; +$u-search-input-color: $u-main-color !default; +$u-search-input-placeholder-color: $u-tips-color !default; +$u-search-action-font-size: 14px !default; +$u-search-action-color: $u-main-color !default; +$u-search-action-width: 0 !default; +$u-search-action-active-width: 40px !default; +$u-search-action-margin-left: 5px !default; + +/* #ifdef H5 */ +// iOS15鍦℉5涓嬶紝hx鐨勬煇浜涚増鏈紝input type=search鏃讹紝浼氬浜嗕竴涓悳绱㈠浘鏍囷紝杩涜绉婚櫎 +[type="search"]::-webkit-search-decoration { + display: none; +} +/* #endif */ + +.u-search { + @include flex(row); + align-items: center; + flex: 1; + + &__content { + @include flex; + align-items: center; + padding: $u-search-content-padding; + flex: 1; + justify-content: space-between; + border-width: 1px; + border-color: transparent; + border-style: solid; + overflow: hidden; + + &__icon { + @include flex; + align-items: center; + } + + &__label { + color: $u-search-label-color; + font-size: $u-search-label-font-size; + margin: $u-search-label-margin; + } + + &__close { + width: $u-search-close-size; + height: $u-search-close-size; + border-top-left-radius: $u-search-close-radius; + border-top-right-radius: $u-search-close-radius; + border-bottom-left-radius: $u-search-close-radius; + border-bottom-right-radius: $u-search-close-radius; + background-color: $u-search-close-bgColor; + @include flex(row); + align-items: center; + justify-content: center; + transform: $u-search-close-transform; + } + + &__input { + flex: 1; + font-size: $u-search-input-font-size; + line-height: 1; + margin: $u-search-input-margin; + color: $u-search-input-color; + + &--placeholder { + color: $u-search-input-placeholder-color; + } + } + } + + &__action { + font-size: $u-search-action-font-size; + color: $u-search-action-color; + width: $u-search-action-width; + overflow: hidden; + transition-property: width; + transition-duration: 0.3s; + /* #ifndef APP-NVUE */ + white-space: nowrap; + /* #endif */ + text-align: center; + + &--active { + width: $u-search-action-active-width; + margin-left: $u-search-action-margin-left; + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/props.js new file mode 100644 index 0000000..ed3ba5a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 鏄惁灞曠ず楠ㄦ灦缁勪欢 + loading: { + type: Boolean, + default: uni.$u.props.skeleton.loading + }, + // 鏄惁寮�鍚姩鐢绘晥鏋� + animate: { + type: Boolean, + default: uni.$u.props.skeleton.animate + }, + // 娈佃惤鍗犱綅鍥捐鏁� + rows: { + type: [String, Number], + default: uni.$u.props.skeleton.rows + }, + // 娈佃惤鍗犱綅鍥剧殑瀹藉害 + rowsWidth: { + type: [String, Number, Array], + default: uni.$u.props.skeleton.rowsWidth + }, + // 娈佃惤鍗犱綅鍥剧殑楂樺害 + rowsHeight: { + type: [String, Number, Array], + default: uni.$u.props.skeleton.rowsHeight + }, + // 鏄惁灞曠ず鏍囬鍗犱綅鍥� + title: { + type: Boolean, + default: uni.$u.props.skeleton.title + }, + // 娈佃惤鏍囬鐨勫搴� + titleWidth: { + type: [String, Number], + default: uni.$u.props.skeleton.titleWidth + }, + // 娈佃惤鏍囬鐨勯珮搴� + titleHeight: { + type: [String, Number], + default: uni.$u.props.skeleton.titleHeight + }, + // 鏄惁灞曠ず澶村儚鍗犱綅鍥� + avatar: { + type: Boolean, + default: uni.$u.props.skeleton.avatar + }, + // 澶村儚鍗犱綅鍥惧ぇ灏� + avatarSize: { + type: [String, Number], + default: uni.$u.props.skeleton.avatarSize + }, + // 澶村儚鍗犱綅鍥剧殑褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 + avatarShape: { + type: String, + default: uni.$u.props.skeleton.avatarShape + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/u-skeleton.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/u-skeleton.vue new file mode 100644 index 0000000..efa649e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-skeleton/u-skeleton.vue @@ -0,0 +1,244 @@ +<template> + <view class="u-skeleton"> + <view + class="u-skeleton__wrapper" + ref="u-skeleton__wrapper" + v-if="loading" + style="display: flex; flex-direction: row;" + > + <view + class="u-skeleton__wrapper__avatar" + v-if="avatar" + :class="[`u-skeleton__wrapper__avatar--${avatarShape}`, animate && 'animate']" + :style="{ + height: $u.addUnit(avatarSize), + width: $u.addUnit(avatarSize) + }" + ></view> + <view + class="u-skeleton__wrapper__content" + ref="u-skeleton__wrapper__content" + style="flex: 1;" + > + <view + class="u-skeleton__wrapper__content__title" + v-if="title" + :style="{ + width: uTitleWidth, + height: $u.addUnit(titleHeight), + }" + :class="[animate && 'animate']" + ></view> + <view + class="u-skeleton__wrapper__content__rows" + :class="[animate && 'animate']" + v-for="(item, index) in rowsArray" + :key="index" + :style="{ + width: item.width, + height: item.height, + marginTop: item.marginTop + }" + > + + </view> + </view> + </view> + <slot v-else /> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + // 鐢变簬weex涓洪樋閲岀殑KPI涓氱哗鑰冩牳鐨勪骇鐗╋紝鎵�浠ヤ笉鏀寔鐧惧垎姣斿崟浣嶏紝杩欓噷闇�瑕侀�氳繃dom鏌ヨ缁勪欢鐨勫搴� + const dom = uni.requireNativePlugin('dom') + const animation = uni.requireNativePlugin('animation') + // #endif + /** + * Skeleton 楠ㄦ灦灞� + * @description 楠ㄦ灦灞忎竴鑸敤浜庨〉闈㈠湪璇锋眰杩滅▼鏁版嵁灏氭湭瀹屾垚鏃讹紝椤甸潰鐢ㄧ伆鑹插潡棰勬樉绀烘湰鏉ョ殑椤甸潰缁撴瀯锛岀粰鐢ㄦ埛鏇村ソ鐨勪綋楠屻�� + * @tutorial https://www.uviewui.com/components/skeleton.html + * @property {Boolean} loading 鏄惁鏄剧ず楠ㄦ灦鍗犱綅鍥撅紝璁剧疆涓篺alse灏嗕細灞曠ず瀛愮粍浠跺唴瀹� (榛樿 true ) + * @property {Boolean} animate 鏄惁寮�鍚姩鐢绘晥鏋� (榛樿 true ) + * @property {String | Number} rows 娈佃惤鍗犱綅鍥捐鏁� (榛樿 0 ) + * @property {String | Number | Array} rowsWidth 娈佃惤鍗犱綅鍥剧殑瀹藉害锛屽彲浠ヤ负鐧惧垎姣旓紝鏁板�硷紝甯﹀崟浣嶅瓧绗︿覆绛夛紝鍙�氳繃鏁扮粍浼犲叆鎸囧畾姣忎釜娈佃惤琛岀殑瀹藉害 (榛樿 '100%' ) + * @property {String | Number | Array} rowsHeight 娈佃惤鐨勯珮搴� (榛樿 18 ) + * @property {Boolean} title 鏄惁灞曠ず鏍囬鍗犱綅鍥� (榛樿 true ) + * @property {String | Number} titleWidth 鏍囬鐨勫搴� (榛樿 '50%' ) + * @property {String | Number} titleHeight 鏍囬鐨勯珮搴� (榛樿 18 ) + * @property {Boolean} avatar 鏄惁灞曠ず澶村儚鍗犱綅鍥� (榛樿 false ) + * @property {String | Number} avatarSize 澶村儚鍗犱綅鍥惧ぇ灏� (榛樿 32 ) + * @property {String} avatarShape 澶村儚鍗犱綅鍥剧殑褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 (榛樿 'circle' ) + * @example <u-search placeholder="鏃ョ収棣欑倝鐢熺传鐑�" v-model="keyword"></u-search> + */ + export default { + name: 'u-skeleton', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + width: 0, + } + }, + watch: { + loading() { + this.getComponentWidth() + } + }, + computed: { + rowsArray() { + if (/%$/.test(this.rowsHeight)) { + uni.$u.error('rowsHeight鍙傛暟涓嶆敮鎸佺櫨鍒嗘瘮鍗曚綅') + } + const rows = [] + for (let i = 0; i < this.rows; i++) { + let item = {}, + // 闇�瑕侀闃茶秴鍑烘暟缁勮竟鐣岀殑鎯呭喌 + rowWidth = uni.$u.test.array(this.rowsWidth) ? (this.rowsWidth[i] || (i === this.row - 1 ? '70%' : '100%')) : i === + this.rows - 1 ? '70%' : this.rowsWidth, + rowHeight = uni.$u.test.array(this.rowsHeight) ? (this.rowsHeight[i] || '18px') : this.rowsHeight + // 濡傛灉鏈塼itle鍗犱綅鍥撅紝绗竴涓钀藉崰浣嶅浘鐨勫杈硅窛闇�瑕佸ぇ涓�浜涳紝濡傛灉娌℃湁title鍗犱綅鍥撅紝绗竴涓钀藉崰浣嶅浘鍒欐棤闇�澶栬竟璺� + // 涔嬫墍浠ラ渶瑕佽繖涔堝仛锛屾槸鍥犱负weex鐨勬棤鑳斤紝浠ユ彁鍗囨�ц兘涓哄�熷彛涓嶆敮鎸乧ss鐨勪竴浜涗吉绫� + item.marginTop = !this.title && i === 0 ? 0 : this.title && i === 0 ? '20px' : '12px' + // 濡傛灉璁剧疆鐨勪负鐧惧垎姣旂殑瀹藉害锛岃浆鎹负px鍊硷紝鍥犱负nvue涓嶆敮鎸佺櫨鍒嗘瘮鍗曚綅 + if (/%$/.test(rowWidth)) { + // 閫氳繃parseInt鎻愬彇鍑虹櫨鍒嗘瘮鍗曚綅涓殑鏁板�奸儴鍒嗭紝闄や互100寰楀埌鐧惧垎姣旂殑灏忔暟鍊� + item.width = uni.$u.addUnit(this.width * parseInt(rowWidth) / 100) + } else { + item.width = uni.$u.addUnit(rowWidth) + } + item.height = uni.$u.addUnit(rowHeight) + rows.push(item) + } + // console.log(rows); + return rows + }, + uTitleWidth() { + let tWidth = 0 + if (/%$/.test(this.titleWidth)) { + // 閫氳繃parseInt鎻愬彇鍑虹櫨鍒嗘瘮鍗曚綅涓殑鏁板�奸儴鍒嗭紝闄や互100寰楀埌鐧惧垎姣旂殑灏忔暟鍊� + tWidth = uni.$u.addUnit(this.width * parseInt(this.titleWidth) / 100) + } else { + tWidth = uni.$u.addUnit(this.titleWidth) + } + return uni.$u.addUnit(tWidth) + }, + + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getComponentWidth() + // #ifdef APP-NVUE + this.loading && this.animate && this.setNvueAnimation() + // #endif + }, + async setNvueAnimation() { + // #ifdef APP-NVUE + // 涓轰簡璁﹐pacity:1鐨勭姸鎬佷繚鎸佷竴瀹氭椂闂达紝杩欓噷鍋氫竴涓欢鏃� + await uni.$u.sleep(500) + const skeleton = this.$refs['u-skeleton__wrapper']; + skeleton && this.loading && this.animate && animation.transition(skeleton, { + styles: { + opacity: 0.5 + }, + duration: 600, + }, () => { + // 杩欓噷鏃犻渶鍒ゆ柇鏄惁loading鍜屽紑鍚姩鐢荤姸鎬侊紝鍥犱负鏈�缁堢殑鐘舵�佸繀椤昏揪鍒皁pacity: 1锛屽惁鍒欏彲鑳� + // 浼氬仠鐣欏湪opacity: 0.5鐨勭姸鎬佷腑 + animation.transition(skeleton, { + styles: { + opacity: 1 + }, + duration: 600, + }, () => { + // 鍙湁鍦╨oading涓椂锛屾墠鎵ц鍔ㄧ敾 + this.loading && this.animate && this.setNvueAnimation() + }) + }) + // #endif + }, + // 鑾峰彇缁勪欢鐨勫搴� + async getComponentWidth() { + // 寤舵椂涓�瀹氭椂闂达紝浠ヨ幏鍙杁om灏哄 + await uni.$u.sleep(20) + // #ifndef APP-NVUE + this.$uGetRect('.u-skeleton__wrapper__content').then(size => { + this.width = size.width + }) + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs['u-skeleton__wrapper__content'] + ref && dom.getComponentRect(ref, (res) => { + this.width = res.size.width + }) + // #endif + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + @mixin background { + /* #ifdef APP-NVUE */ + background-color: #F1F2F4; + /* #endif */ + /* #ifndef APP-NVUE */ + background: linear-gradient(90deg, #F1F2F4 25%, #e6e6e6 37%, #F1F2F4 50%); + background-size: 400% 100%; + /* #endif */ + } + + .u-skeleton { + flex: 1; + + &__wrapper { + @include flex(row); + + &__avatar { + @include background; + margin-right: 15px; + + &--circle { + border-radius: 100px; + } + + &--square { + border-radius: 4px; + } + } + + &__content { + flex: 1; + + &__rows, + &__title { + @include background; + border-radius: 3px; + } + } + } + } + + /* #ifndef APP-NVUE */ + .animate { + animation: skeleton 1.8s ease infinite + } + + @keyframes skeleton { + 0% { + background-position: 100% 50% + } + + 100% { + background-position: 0 50% + } + } + + /* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpother.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpother.js new file mode 100644 index 0000000..040c848 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpother.js @@ -0,0 +1,113 @@ +/** + * 浣跨敤鏅�氱殑js鏂规瀹炵幇slider + */ +export default { + watch: { + value(n) { + // 鍙湁鍦ㄩ潪婊戝姩鐘舵�佹椂锛屾墠鍙互閫氳繃value鏇存柊婊戝潡鍊硷紝杩欓噷鐩戝惉锛屾槸涓轰簡璁╃敤鎴疯Е鍙� + if (this.status === 'end') { + this.updateSliderPlacement(n, true) + } + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getSliderRect() + }, + // 鑾峰彇slider灏哄 + getSliderRect() { + // 鑾峰彇婊戝潡鏉$殑灏哄淇℃伅 + setTimeout(() => { + this.$uGetRect('.u-slider').then((rect) => { + this.sliderRect = rect + this.updateSliderPlacement(this.value, true) + }) + }, 10) + }, + // 鏄惁鍙互鎿嶄綔 + canNotDo() { + return this.disabled + }, + // 鑾峰彇褰撳墠鎵嬪娍鐐圭殑X杞翠綅绉诲�� + getTouchX(e) { + return e.touches[0].clientX + }, + formatStep(value) { + // 绉诲姩鐐瑰崰鎬婚暱搴︾殑鐧惧垎姣� + return Math.round(Math.max(this.min, Math.min(value, this.max)) / this.step) * this.step + }, + // 鍙戝嚭浜嬩欢 + emitEvent(event, value) { + this.$emit(event, value || this.value) + }, + // 鏍囪褰撳墠鎵嬪娍鐨勭姸鎬� + setTouchStatus(status) { + this.status = status + }, + onTouchStart(e) { + if (this.canNotDo()) { + return + } + // 鏍囩ず褰撳墠鐨勭姸鎬佷负寮�濮嬭Е鎽告粦鍔� + this.emitEvent('start') + this.setTouchStatus('start') + }, + onTouchMove(e) { + if (this.canNotDo()) { + return + } + // 婊戝潡鐨勫乏杈逛笉涓�瀹氳窡灞忓箷宸﹁竟鎺ュ¥锛屾墍浠ラ渶瑕佸噺鍘绘渶澶栧眰鐖跺厓绱犵殑宸﹁竟鍊� + const x = this.getTouchX(e) + const { left, width } = this.sliderRect + const distanceX = x - left + // 鑾峰緱绉诲姩璺濈瀵规暣涓粦鍧楃殑鐧惧垎姣斿�硷紝姝や负甯︽湁澶氫綅灏忔暟鐨勫�硷紝涓嶈兘鐢ㄦ鏇存柊瑙嗗浘 + // 鍚﹀垯閫犳垚閫氫俊闃诲锛岄渶瑕佹瘡鏀瑰彉涓�涓猻tep鍊兼椂淇敼涓�娆¤鍥� + const percent = (distanceX / width) * 100 + this.setTouchStatus('moving') + this.updateSliderPlacement(percent, true, 'moving') + }, + onTouchEnd() { + if (this.canNotDo()) { + return + } + this.emitEvent('end') + this.setTouchStatus('end') + }, + // 璁剧疆婊戠偣鐨勪綅缃� + updateSliderPlacement(value, drag, event) { + // 鍘绘帀灏忔暟閮ㄥ垎锛屽悓鏃朵篃鏄step姝ヨ繘鐨勫鐞� + const { width } = this.sliderRect + const percent = this.formatStep(value) + // 璁剧疆绉诲姩鐨勫�� + const barStyle = { + width: `${percent / 100 * width}px` + } + // 绉诲姩鏈熼棿鏃犻渶杩囨浮鍔ㄧ敾 + if (drag === true) { + barStyle.transition = 'none' + } else { + // 闈炵Щ鍔ㄦ湡闂达紝鍒犳帀瀵硅繃娓′负绌虹殑澹版槑锛岃css涓殑澹版槑璧锋晥 + delete barStyle.transition + } + // 淇敼value鍊� + this.$emit('input', percent) + // 浜嬩欢鐨勫悕绉� + if (event) { + this.emitEvent(event, percent) + } + this.barStyle = barStyle + }, + onClick(e) { + if (this.canNotDo()) { + return + } + // 鐩存帴鐐瑰嚮婊戝潡鐨勬儏鍐碉紝璁$畻鏂瑰紡涓巓nTouchMove鏂规硶鐩稿悓 + const { left, width } = this.sliderRect + const value = ((e.detail.x - left) / width) * 100 + this.updateSliderPlacement(value, false, 'click') + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.js new file mode 100644 index 0000000..f263911 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.js @@ -0,0 +1,42 @@ +export default { + data() { + return { + sliderRect: {}, + info: { + width: null, + left: null, + step: this.step, + disabled: this.disabled, + min: this.min, + max: this.max, + value: this.value + } + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getSliderRect() + }, + // 鑾峰彇slider灏哄 + getSliderRect() { + // 鑾峰彇婊戝潡鏉$殑灏哄淇℃伅 + uni.$u.sleep().then(() => { + this.$uGetRect('.u-slider').then((rect) => { + this.info.width = rect.width + this.info.left = rect.left + }) + }) + }, + // 姝ゆ柟娉曠敱wxs璋冪敤锛岀敤浜庝慨鏀箆-model缁戝畾鐨勫�� + updateValue(value) { + this.$emit('input', value) + }, + // 姝ゆ柟娉曠敱wxs璋冪敤锛屽彂鍑轰簨浠� + emitEvent(e) { + this.$emit(e.event, e.value ? e.value : this.value) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.wxs b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.wxs new file mode 100644 index 0000000..847df4a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/mpwxs.wxs @@ -0,0 +1,121 @@ +/** + * 浣跨敤wxs鏂规瀹炵幇slider + * 鍏煎寰俊锛孮Q锛孒5锛孷ue鐗堢殑瀹夊崜鍜宨OS + */ +/** + * 寮�濮嬫粦鍔ㄦ搷浣� + * @param {Object} e + * @param {Object} ownerInstance + */ +function onTouchMove(e, ownerInstance) { + // wxs浜嬩欢瀵硅薄涓嬫湁涓�涓猧nstance灞炴�э紝琛ㄧず褰撳墠瑙﹀彂姝や簨浠剁殑缁勪欢鐨勫疄渚嬶紝閫氳繃璇ュ疄渚嬶紝鍙互鑾峰彇鐩稿叧鐨刣ataset锛岃缃牱寮忕瓑淇℃伅 + // https://developers.weixin.qq.com/miniprogram/dev/framework/view/interactive-animation.html + var instance = e.instance; + // getState()涓轰竴涓璞★紝鎸傝浇鍦╥nstance涓婏紝绫讳技缁勪欢鐨刣ata涓�鏍凤紝鍙互瀛樻斁涓�浜涘彉閲忥紝渚涗互鍚庣殑瑙﹀彂浜嬩欢涓娇鐢� + var state = instance.getState() + + // 婊戝潡缁勪欢鐨勬暣浣撳昂瀵镐俊鎭� + var mp = state.mp + if(mp.disabled) { + return + } + + var distanceX = getTouchX(e) - mp.left + // 鑾峰緱绉诲姩璺濈瀵规暣涓粦鍧楃殑鐧惧垎姣斿�硷紝姝や负甯︽湁澶氫綅灏忔暟鐨勫�硷紝step澶т簬1鏃讹紝涓嶈兘鐢ㄦ鏇存柊瑙嗗浘 + var percent = (distanceX / mp.width) * 100 + + updateSliderPlacement(instance, ownerInstance, percent, 'moving') + + // 闃绘椤甸潰婊氬姩锛屽彲浠ヤ繚璇佸湪婊戝姩杩囩▼涓紝涓嶈椤甸潰鍙互涓婁笅婊氬姩锛岄�犳垚涓嶅ソ鐨勪綋楠� + e.stopPropagation && e.stopPropagation() + e.preventDefault && e.preventDefault() +} + +function onClick(e, ownerInstance) { + var instance = e.instance + var state = instance.getState() + var mp = state.mp + if(mp.disabled) { + return + } + + // 鐩存帴鐐瑰嚮婊戝潡鐨勬儏鍐碉紝璁$畻鏂瑰紡涓巓nTouchMove鏂规硶鐩稿悓 + var value = ((e.detail.x - mp.left) / mp.width) * 100 + updateSliderPlacement(instance, ownerInstance, value, 'click') +} + +function sizeReady(newValue, oldValue, ownerInstance, instance) { + // 椤甸潰鍒濆鍖栨椂鍊欙紝涔熶細瑙﹀彂姝ゆ柟娉曪紝浼犻�掔殑鍊间负绌猴紝杩欓噷涓嶆墽琛屽線鍚庣殑閫昏緫 + if(!newValue || newValue.disabled) { + return + } + var state = instance.getState() + state.mp = newValue + updateSliderPlacement(instance, ownerInstance, newValue.value) +} + +// 璁剧疆婊戠偣鐨勪綅缃� +function updateSliderPlacement(instance, ownerInstance, value, event) { + var state = instance.getState() + var mp = state.mp + if(mp.disabled) { + return + } + + var percent = 0 + if (mp.step > 1) { + // 濡傛灉step姝ヨ繘澶т簬1锛岄渶瑕佽烦姝ワ紝鎵�浠ラ渶瑕佷娇鐢∕ath.round杩涜鍙栨暣 + percent = Math.round(Math.max(mp.min, Math.min(value, mp.max)) / mp.step) * mp.step + } else { + // 褰搒tep=1鏃讹紝鏃犻渶璺虫锛屽厖鍒嗗埄鐢╳xs鎬ц兘锛屾粦鍧楀疄鏃惰窡闅忔墜鍔匡紝杈惧埌涓濇粦鐨勬晥鏋� + percent = Math.max(mp.min, Math.min(value, mp.max)) + } + // 杩斿洖缁勪欢鐨勫疄渚� + var gapInstance = ownerInstance.selectComponent('.u-slider__gap') + // 鍦ㄧЩ鍔ㄦ湡闂达紝涓嶅厑璁竧ransition鍔ㄧ敾锛屽惁鍒欎細閫犳垚鍗¢】 + gapInstance[event === 'click' ? 'addClass' : 'removeClass']('u-slider__gap--ani') + // 璋冪敤閫昏緫灞傜殑鏂规硶锛屼慨鏀箆-model缁戝畾鐨勫�� + ownerInstance.callMethod('updateValue', Math.round(percent)) + if(event) { + ownerInstance.callMethod('emitEvent', { + event: event, + value: Math.round(percent) + }) + } + + // 璁剧疆绉诲姩鐨勫�� + gapInstance.requestAnimationFrame(function() { + gapInstance.setStyle({ + width: percent / 100 * mp.width + 'px', + }) + }) +} + +// 寮�濮嬫粦鍔� +function onTouchStart(e, ownerInstance) { + ownerInstance.callMethod('emitEvent', { + event: 'start', + value: null + }) +} + +// 鍋滄婊戝姩 +function onTouchEnd(e, ownerInstance) { + ownerInstance.callMethod('emitEvent', { + event: 'end', + value: null + }) +} + +// 鑾峰彇褰撳墠鎵嬪娍鐐圭殑X杞翠綅绉诲�� +function getTouchX(e) { + return e.touches[0].clientX +} + +module.exports = { + onTouchStart: onTouchStart, + onTouchMove: onTouchMove, + onTouchEnd: onTouchEnd, + sizeReady: sizeReady, + onClick: onClick +} diff --git "a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue - \345\211\257\346\234\254.js" "b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue - \345\211\257\346\234\254.js" new file mode 100644 index 0000000..df62349 --- /dev/null +++ "b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue - \345\211\257\346\234\254.js" @@ -0,0 +1,180 @@ +/** + * 浣跨敤bindingx鏂规瀹炵幇slider + * 鍙兘浣跨敤浜巒vue涓� + */ +// 寮曞叆bindingx锛屾搴撶被浼间簬寰俊灏忕▼搴弚xs锛岀洰鐨勬槸璁﹋s杩愯鍦ㄨ鍥惧眰锛屽噺灏戣鍥惧眰鍜岄�昏緫灞傜殑閫氫俊鎶樻崯 +const BindingX = uni.requireNativePlugin('bindingx') +// nvue鎿嶄綔dom鐨勫簱锛岀敤浜庤幏鍙杁om鐨勫昂瀵镐俊鎭� +const dom = uni.requireNativePlugin('dom') +// nvue涓敤浜庢搷浣滃厓绱犲姩鐢荤殑搴擄紝绫讳技浜巙ni.animation锛屽彧涓嶈繃uni.animation涓嶈兘鐢ㄤ簬nvue +const animation = uni.requireNativePlugin('animation') + +export default { + data() { + return { + // bindingx鐨勫洖璋冨�硷紝鐢ㄤ簬鍙栨秷缁戝畾 + panEvent: null, + // 鏍囪鏄惁绉诲姩鐘舵�� + moving: false, + // 浣嶇Щ鐨勫亸绉婚噺 + x: 0, + // 鏄惁姝e湪瑙︽懜杩囩▼涓紝鐢ㄤ簬鏍囪鍔ㄧ敾绫绘槸鍚︽坊鍔犳垨绉婚櫎 + touching: false, + changeFromInside: false + } + }, + watch: { + // 鐩戝惉vlaue鐨勫彉鍖栵紝姝ゅ彉鍖栧彲鑳芥槸鐢变簬鍐呴儴淇敼v-model鐨勫�硷紝鎴栬�呭閮� + // 浠庢湇鍔$鑾峰彇涓�涓�煎悗锛岃祴鍊肩粰slider鐨剉-model鑰屽鑷寸殑 + value(n) { + if (!this.changeFromInside) { + this.initX() + } else { + this.changeFromInside = false + } + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getSliderRect() + }, + // 鑾峰彇鑺傜偣淇℃伅 + // 鑾峰彇slider灏哄 + getSliderRect() { + // 鑾峰彇婊戝潡鏉$殑灏哄淇℃伅 + // 閫氳繃nvue鐨刣om妯″潡锛屾煡璇㈣妭鐐逛俊鎭� + setTimeout(() => { + dom.getComponentRect(this.$refs['slider'], res => { + this.sliderRect = res.size + this.initX() + }) + }, 10) + }, + // 鍒濆鍖栨寜閽綅缃� + initButtonStyle({ + barStyle, + buttonWrapperStyle + }) { + this.barStyle = barStyle + this.buttonWrapperStyle = buttonWrapperStyle + }, + emitEvent(event, value) { + this.$emit(event, value ? value : this.value) + }, + formatStep(value) { + // 绉诲姩鐐瑰崰鎬婚暱搴︾殑鐧惧垎姣� + return Math.round(Math.max(this.min, Math.min(value, this.max)) / this.step) * this.step + }, + // 婊戝姩寮�濮� + onTouchStart(e) { + // 闃绘椤甸潰婊氬姩锛屽彲浠ヤ繚璇佸湪婊戝姩杩囩▼涓紝涓嶈椤甸潰鍙互涓婁笅婊氬姩锛岄�犳垚涓嶅ソ鐨勪綋楠� + e.stopPropagation && e.stopPropagation() + e.preventDefault && e.preventDefault() + if (this.moving || this.disabled) { + // 閲婃斁涓婁竴娆$殑璧勬簮 + if (this.panEvent?.token != 0) { + BindingX.unbind({ + token: this.panEvent.token, + // pan涓烘墜鍔夸簨浠� + eventType: 'pan' + }) + this.gesToken = 0 + } + return + } + + this.moving = true + this.touching = true + + // 鑾峰彇鍏冪礌ref + const button = this.$refs['nvue-button'].ref + const gap = this.$refs['nvue-gap'].ref + + const { + min, + max, + step + } = this + const { + left, + width + } = this.sliderRect + + // 鍒濆鍊间负鏈鍋忕Щ閲弜锛屽姞涓婃鍋滄婊戝姩鏃剁殑缁撴潫鍊� + let exporession = `(${this.x} + x)` + // 灏嗗亸绉荤殑x鍊硷紝杞负鎬讳綅绉荤殑鐧惧垎姣斿�硷紝涓轰簡鍜宮in鍜宮ax杩涜鍒ゆ柇 + exporession = `(${exporession} / ${width}) * 100` + if (step > 1) { + // 濡傛灉step姝ヨ繘澶т簬1锛岄渶瑕佽烦姝ワ紝鎵�浠ラ渶瑕佷娇鐢∕ath.round杩涜鍙栨暣 + exporession = `round(max(${min}, min(${exporession}, ${max})) / ${step}) * ${step}` + } else { + // 褰搒tep=1鏃讹紝鏃犻渶璺虫锛屽厖鍒嗗埄鐢╞indingx鎬ц兘锛屾粦鍧楀疄鏃惰窡闅忔墜鍔匡紝杈惧埌涓濇粦鐨勬晥鏋� + exporession = `max(${min}, min(${exporession}, ${max}))` + } + // 灏嗙櫨鍒嗘瘮鏈�鍚庤浆鍖栦负瀵瑰簲鐨刾x鍊� + exporession = `${exporession} / 100 * ${width}` + // 鏈�澶у�间笉鍏佽瓒呰繃杞ㄨ抗鐨勫搴� + const { + sliderWidth + } = this.sliderRect + exporession = `min(${sliderWidth}, ${exporession})` + // 婊戝潡鐐规�绘槸闇�瑕佷竴涓乏鍋忕Щ鐨勫�硷紝涓鸿嚜韬搴︾殑涓�鍗� + const buttonExpression = `${exporession} - ${this.blockHeight / 2}` + // 闃块噷涓轰簡KPI鑰屽紑婧愮殑BindingX + this.panEvent = BindingX.bind({ + anchor: button, + eventType: 'pan', + props: [{ + element: gap, + // 缁戝畾width灞炴�э紝璁剧疆鍏跺搴﹀�� + property: 'width', + expression + }, { + element: button, + // 缁戝畾width灞炴�э紝璁剧疆鍏跺搴﹀�� + property: 'transform.translateX', + expression: buttonExpression + }] + }, (e) => { + if (e.state === 'end' || e.state === 'exit') { + // + this.x = uni.$u.range(0, left + width, e.deltaX + this.x) + // 鏍规嵁鍋忕Щ鍊硷紝寰楀嚭绉诲姩鐨勭櫨鍒嗘瘮锛岃繘鑰屼慨鏀瑰弻鍚戠粦瀹氱殑v-model鐨勫�� + const value = (this.x / width) * 100 + const percent = this.formatStep(value) + // 淇敼value鍊� + this.$emit('input', percent) + // 鏍囪涓嬩竴娆¤Е鍙憊alue鐨剋atch鏃讹紝杩欎釜鍊肩殑鍙樺寲锛屾槸鐢卞唴閮ㄦ敼鍙樼殑 + this.changeFromInside = true + this.moving = false + this.touching = false + } + }) + }, + // 浠巚alue鐨勫彉鍖栵紝鍊掓帹寰楀嚭x鐨勫�艰涓哄灏� + initX() { + const { + left, + width + } = this.sliderRect + // 寰楀嚭x鐨勫垵濮嬪亸绉诲�硷紝涔嬫墍浠ラ渶瑕佽繖涔堝仛锛屾槸鍥犱负鍦╞indingX涓紝瑙︽懜婊戝姩鏃讹紝鍙兘鐨勫�兼湰娆$Щ鍔ㄧ殑鍋忕Щ鍊� + // 鑰屾棤娉曠殑鍊煎噯纭殑鍓嶅悗绉诲姩鐨勪袱涓偣鐨勫潗鏍囧�硷紝weex绾补涓洪樋閲屽反宸寸殑KPI(閮ㄩ棬涓氱哗鑰冩牳)浜х墿锛屼篃灏辫繖鏍蜂簡 + this.x = this.value / 100 * width + // 璁剧疆绉诲姩鐨勫�� + const barStyle = { + width: this.x + 'px' + } + // 鎸夐挳鐨勫垵濮嬪�� + const buttonWrapperStyle = { + transform: `translateX(${this.x - this.blockHeight / 2}px)` + } + this.initButtonStyle({ + barStyle, + buttonWrapperStyle + }) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue.js new file mode 100644 index 0000000..344dce8 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/nvue.js @@ -0,0 +1,193 @@ +/** + * 浣跨敤bindingx鏂规瀹炵幇slider + * 鍙兘浣跨敤浜巒vue涓� + */ +// 寮曞叆bindingx锛屾搴撶被浼间簬寰俊灏忕▼搴弚xs锛岀洰鐨勬槸璁﹋s杩愯鍦ㄨ鍥惧眰锛屽噺灏戣鍥惧眰鍜岄�昏緫灞傜殑閫氫俊鎶樻崯 +const BindingX = uni.requireNativePlugin('bindingx') +// nvue鎿嶄綔dom鐨勫簱锛岀敤浜庤幏鍙杁om鐨勫昂瀵镐俊鎭� +const dom = uni.requireNativePlugin('dom') +// nvue涓敤浜庢搷浣滃厓绱犲姩鐢荤殑搴擄紝绫讳技浜巙ni.animation锛屽彧涓嶈繃uni.animation涓嶈兘鐢ㄤ簬nvue +const animation = uni.requireNativePlugin('animation') + +export default { + data() { + return { + // 浣嶇Щ鐨勫亸绉婚噺 + x: 0, + // 鏄惁姝e湪瑙︽懜杩囩▼涓紝鐢ㄤ簬鏍囪鍔ㄧ敾绫绘槸鍚︽坊鍔犳垨绉婚櫎 + touching: false, + changeFromInside: false + } + }, + watch: { + // 鐩戝惉vlaue鐨勫彉鍖栵紝姝ゅ彉鍖栧彲鑳芥槸鐢变簬鍐呴儴淇敼v-model鐨勫�硷紝鎴栬�呭閮� + // 浠庢湇鍔$鑾峰彇涓�涓�煎悗锛岃祴鍊肩粰slider鐨剉-model鑰屽鑷寸殑 + value(n) { + if (!this.changeFromInside) { + this.initX() + } else { + this.changeFromInside = false + } + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鏇存柊婊戝潡灏哄淇℃伅 + this.getSliderRect().then((size) => { + this.sliderRect = size + this.initX() + }) + }, + // 鑾峰彇鑺傜偣淇℃伅 + // 鑾峰彇slider灏哄 + getSliderRect() { + // 鑾峰彇婊戝潡鏉$殑灏哄淇℃伅 + // 閫氳繃nvue鐨刣om妯″潡锛屾煡璇㈣妭鐐逛俊鎭� + return new Promise((resolve) => { + this.$nextTick(() => { + dom.getComponentRect(this.$refs.slider, (res) => { + resolve(res.size) + }) + }) + }) + }, + // 鍒濆鍖栨寜閽綅缃� + initButtonStyle({ + barStyle, + buttonWrapperStyle + }) { + this.barStyle = barStyle + this.buttonWrapperStyle = buttonWrapperStyle + }, + emitEvent(event, value) { + this.$emit(event, value || this.value) + }, + // 婊戝姩寮�濮� + async onTouchStart(e) { + // if (this.disabled) return + // // 闃绘椤甸潰婊氬姩锛屽彲浠ヤ繚璇佸湪婊戝姩杩囩▼涓紝涓嶈椤甸潰鍙互涓婁笅婊氬姩锛岄�犳垚涓嶅ソ鐨勪綋楠� + // e.stopPropagation && e.stopPropagation() + // e.preventDefault && e.preventDefault() + // // 鏇存柊婊戝潡鐨勫昂瀵镐俊鎭� + // this.sliderRect = await this.getSliderRect() + // // 鏍囪婊戝姩杩囩▼涓Е鎽哥偣鐨勪俊鎭� + // this.touchStart(e) + // this.startValue = this.format(this.value) + // this.dragStatus = 'start' + + // 鏍囪婊戝姩杩囩▼涓Е鎽哥偣鐨勪俊鎭� + // this.touchStart(e) + }, + // 寮�濮嬫粦鍔� + onTouchMove(e) { + // if (this.disabled) return; + // if (this.dragStatus === 'start') { + // this.$emit('drag-start') + // } + // // 鏍囪褰撳墠婊戝姩杩囩▼涓殑瑙︾偣淇℃伅锛屾鏂规硶鍦╰ouch mixin涓� + // this.touchMove(e) + // this.dragStatus = 'draging' + // const { + // width: sliderWidth + // } = this.sliderRect + // const diff = (this.deltaX / sliderWidth) * this.getRange() + // this.newValue = this.startValue + diff + // this.updateValue(this.newValue, false, true) + // 鑾峰彇鍏冪礌ref + // const button = this.$refs['nvue-button'].ref + // const gap = this.$refs['nvue-gap'].ref + + // animation.transition(gap, { + // styles: { + // width: `${this.startX + this.deltaX}px` + // } + // }) + // // console.log(this.startX + this.deltaX); + // animation.transition(button, { + // styles: { + // transform: `translateX(${this.startX + this.deltaX}px)` + // } + // }) + // this.barStyle = { + // width: `${this.startX + this.deltaX}px` + // } + const { + x + } = this.getTouchPoint(e) + this.buttonWrapperStyle = { + transform: `translateX(${x}px)` + } + // this.buttonWrapperStyle = { + // transform: `translateX(${this.format(this.startX + this.deltaX)}px)` + // } + }, + // onTouchEnd() { + // if (this.disabled) return; + // if (this.dragStatus === 'draging') { + // this.updateValue(this.newValue, true) + // this.$emit('drag-end'); + // } + // }, + updateValue(value, end, drag) { + value = this.format(value) + const { + width: sliderWidth + } = this.sliderRect + const width = `${((value - this.min) * sliderWidth) / this.getRange()}` + this.value = value + this.barStyle = { + width: `${width}px` + } + // console.log('width', width); + if (drag) { + this.$emit('drag', { + value + }) + } + if (end) { + this.$emit('change', value) + } + if ((drag || end)) { + this.changeFromInside = true + this.$emit('update', value) + } + }, + // 浠巚alue鐨勫彉鍖栵紝鍊掓帹寰楀嚭x鐨勫�艰涓哄灏� + initX() { + const { + left, + width + } = this.sliderRect + // 寰楀嚭x鐨勫垵濮嬪亸绉诲�硷紝涔嬫墍浠ラ渶瑕佽繖涔堝仛锛屾槸鍥犱负鍦╞indingX涓紝瑙︽懜婊戝姩鏃讹紝鍙兘鐨勫�兼湰娆$Щ鍔ㄧ殑鍋忕Щ鍊� + // 鑰屾棤娉曠殑鍊煎噯纭殑鍓嶅悗绉诲姩鐨勪袱涓偣鐨勫潗鏍囧�硷紝weex绾补涓洪樋閲屽反宸寸殑KPI(閮ㄩ棬涓氱哗鑰冩牳)浜х墿锛屼篃灏辫繖鏍蜂簡 + this.x = this.value / 100 * width + // 璁剧疆绉诲姩鐨勫�� + const barStyle = { + width: `${this.x}px` + } + // 鎸夐挳鐨勫垵濮嬪�� + const buttonWrapperStyle = { + transform: `translateX(${this.x - this.blockHeight / 2}px)` + } + this.initButtonStyle({ + barStyle, + buttonWrapperStyle + }) + }, + // 绉诲姩鐐瑰崰鎬婚暱搴︾殑鐧惧垎姣旓紝姝ゅ闇�瑕佸厛闄や互step锛屾槸涓轰簡淇濊瘉step澶т簬1鏃讹紝姣斿10锛岄偅涔堝湪婊戝姩11,12px杩欐牱鐨� + // 璺濈鏃讹紝瀹為檯涓婃粦鍧楁槸涓嶄細婊戝姩鐨勶紝鍒颁簡16,17px锛岀粡杩囧洓鑸嶄簲鍏ュ悗锛屽氨鍙樻垚浜�20px锛岃繘琛屼簡涓嬩竴涓烦鍙� + format(value) { + return Math.round(uni.$u.range(this.min, this.max, value) / this.step) * this.step + }, + getRange() { + const { + max, + min + } = this + return max - min + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/props.js new file mode 100644 index 0000000..433a7b5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/props.js @@ -0,0 +1,54 @@ +export default { + props: { + // 鏈�灏忓彲閫夊�� + min: { + type: [Number, String], + default: uni.$u.props.slider.min + }, + // 鏈�澶у彲閫夊�� + max: { + type: [Number, String], + default: uni.$u.props.slider.max + }, + // 姝ラ暱锛屽彇鍊煎繀椤诲ぇ浜� 0锛屽苟涓斿彲琚�(max - min)鏁撮櫎 + step: { + type: [Number, String], + default: uni.$u.props.slider.step + }, + // 褰撳墠鍙栧�� + value: { + type: [Number, String], + default: uni.$u.props.slider.value + }, + // 婊戝潡鍙充晶宸查�夋嫨閮ㄥ垎鐨勮儗鏅壊 + activeColor: { + type: String, + default: uni.$u.props.slider.activeColor + }, + // 婊戝潡宸︿晶鏈�夋嫨閮ㄥ垎鐨勮儗鏅壊 + inactiveColor: { + type: String, + default: uni.$u.props.slider.inactiveColor + }, + // 婊戝潡鐨勫ぇ灏忥紝鍙栧�艰寖鍥翠负 12 - 28 + blockSize: { + type: [Number, String], + default: uni.$u.props.slider.blockSize + }, + // 婊戝潡鐨勯鑹� + blockColor: { + type: String, + default: uni.$u.props.slider.blockColor + }, + // 绂佺敤鐘舵�� + disabled: { + type: Boolean, + default: uni.$u.props.slider.disabled + }, + // 鏄惁鏄剧ず褰撳墠鐨勯�夋嫨鍊� + showValue: { + type: Boolean, + default: uni.$u.props.slider.showValue + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/u-slider.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/u-slider.vue new file mode 100644 index 0000000..80ebbed --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-slider/u-slider.vue @@ -0,0 +1,55 @@ +<template> + <view + class="u-slider" + :style="[$u.addStyle(customStyle)]" + > + <slider + :min="min" + :max="max" + :step="step" + :value="value" + :activeColor="activeColor" + :inactiveColor="inactiveColor" + :blockSize="$u.getPx(blockSize)" + :blockColor="blockColor" + :showValue="showValue" + :disabled="disabled" + @changing="changingHandler" + @change="changeHandler" + ></slider> + </view> +</template> + +<script> + import props from './props.js' + export default { + name: 'u--slider', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + methods: { + // 鎷栧姩杩囩▼涓Е鍙� + changingHandler(e) { + const { + value + } = e.detail + // 鏇存柊v-model鐨勫�� + this.$emit('input', value) + // 瑙﹀彂浜嬩欢 + this.$emit('changing', value) + }, + // 婊戝姩缁撴潫鏃惰Е鍙� + changeHandler(e) { + const { + value + } = e.detail + // 鏇存柊v-model鐨勫�� + this.$emit('input', value) + // 瑙﹀彂浜嬩欢 + this.$emit('change', value) + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/props.js new file mode 100644 index 0000000..64b9e63 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/props.js @@ -0,0 +1,8 @@ +export default { + props: { + bgColor: { + type: String, + default: uni.$u.props.statusBar.bgColor + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue new file mode 100644 index 0000000..ed91373 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-status-bar/u-status-bar.vue @@ -0,0 +1,46 @@ +<template> + <view + :style="[style]" + class="u-status-bar" + > + <slot /> + </view> +</template> + +<script> + import props from './props.js'; + /** + * StatbusBar 鐘舵�佹爮鍗犱綅 + * @description 鏈粍浠朵富瑕佺敤浜庣姸鎬佸~鍏咃紝姣斿鍦ㄨ嚜瀹氬鑸爮鐨勬椂鍊欙紝瀹冧細鑷姩閫傞厤涓�涓伆褰撶殑鐘舵�佹爮楂樺害銆� + * @tutorial https://uviewui.com/components/statusBar.html + * @property {String} bgColor 鑳屾櫙鑹� (榛樿 'transparent' ) + * @property {String | Object} customStyle 鑷畾涔夋牱寮� + * @example <u-status-bar></u-status-bar> + */ + export default { + name: 'u-status-bar', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + } + }, + computed: { + style() { + const style = {} + // 鐘舵�佹爮楂樺害锛岀敱浜庢煇浜涘畨鍗撳拰寰俊寮�鍙戝伐鍏锋棤娉曡瘑鍒玞ss鐨勯《閮ㄧ姸鎬佹爮鍙橀噺锛屾墍浠ヤ娇鐢╦s鑾峰彇鐨勬柟寮� + style.height = uni.$u.addUnit(uni.$u.sys().statusBarHeight, 'px') + style.backgroundColor = this.bgColor + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + } +</script> + +<style lang="scss" scoped> + .u-status-bar { + // nvue浼氶粯璁�100%锛屽鏋渘vue涓嬶紝鏄惧紡鍐�100%鐨勮瘽锛屼細瀵艰嚧瀹藉害涓嶄负100%鑰屽紓甯� + /* #ifndef APP-NVUE */ + width: 100%; + /* #endif */ + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/props.js new file mode 100644 index 0000000..825727a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/props.js @@ -0,0 +1,24 @@ +export default { + props: { + // 鏍囬 + title: { + type: [String, Number], + default: uni.$u.props.stepsItem.title + }, + // 鎻忚堪鏂囨湰 + desc: { + type: [String, Number], + default: uni.$u.props.stepsItem.desc + }, + // 鍥炬爣澶у皬 + iconSize: { + type: [String, Number], + default: uni.$u.props.stepsItem.iconSize + }, + // 褰撳墠姝ラ鏄惁澶勪簬澶辫触鐘舵�� + error: { + type: Boolean, + default: uni.$u.props.stepsItem.error + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/u-steps-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/u-steps-item.vue new file mode 100644 index 0000000..342fa63 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps-item/u-steps-item.vue @@ -0,0 +1,316 @@ +<template> + <view class="u-steps-item" ref="u-steps-item" :class="[`u-steps-item--${parentData.direction}`]"> + <view class="u-steps-item__line" v-if="index + 1 < childLength" + :class="[`u-steps-item__line--${parentData.direction}`]" :style="[lineStyle]"></view> + <view class="u-steps-item__wrapper" + :class="[`u-steps-item__wrapper--${parentData.direction}`, parentData.dot && `u-steps-item__wrapper--${parentData.direction}--dot`]"> + <slot name="icon"> + <view class="u-steps-item__wrapper__dot" v-if="parentData.dot" :style="{ + backgroundColor: statusColor + }"> + + </view> + <view class="u-steps-item__wrapper__icon" v-else-if="parentData.activeIcon || parentData.inactiveIcon"> + <u-icon :name="index <= parentData.current ? parentData.activeIcon : parentData.inactiveIcon" + :size="iconSize" + :color="index <= parentData.current ? parentData.activeColor : parentData.inactiveColor"> + </u-icon> + </view> + <view v-else :style="{ + backgroundColor: statusClass === 'process' ? parentData.activeColor : 'transparent', + borderColor: statusColor + }" class="u-steps-item__wrapper__circle"> + <text v-if="statusClass === 'process' || statusClass === 'wait'" + class="u-steps-item__wrapper__circle__text" :style="{ + color: index == parentData.current ? '#ffffff' : parentData.inactiveColor + }">{{ index + 1}}</text> + <u-icon v-else :color="statusClass === 'error' ? 'error' : parentData.activeColor" size="12" + :name="statusClass === 'error' ? 'close' : 'checkmark'"></u-icon> + </view> + </slot> + </view> + <view class="u-steps-item__content" :class="[`u-steps-item__content--${parentData.direction}`]" + :style="[contentStyle]"> + <u--text :text="title" :type="parentData.current == index ? 'main' : 'content'" lineHeight="20px" + :size="parentData.current == index ? 14 : 13"></u--text> + <slot name="desc"> + <u--text :text="desc" type="tips" size="12"></u--text> + </slot> + </view> + <!-- <view + class="u-steps-item__line" + v-if="showLine && parentData.direction === 'column'" + :class="[`u-steps-item__line--${parentData.direction}`]" + :style="[lineStyle]" + ></view> --> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * StepsItem 姝ラ鏉$殑瀛愮粍浠� + * @description 鏈粍浠堕渶瑕佸拰u-steps閰嶅悎浣跨敤 + * @tutorial https://uviewui.com/components/steps.html + * @property {String} title 鏍囬鏂囧瓧 + * @property {String} current 鎻忚堪鏂囨湰 + * @property {String | Number} iconSize 鍥炬爣澶у皬 (榛樿 17 ) + * @property {Boolean} error 褰撳墠姝ラ鏄惁澶勪簬澶辫触鐘舵�� (榛樿 false ) + * @example <u-steps current="0"><u-steps-item title="宸插嚭搴�" desc="10:35" ></u-steps-item></u-steps> + */ + export default { + name: 'u-steps-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + index: 0, + childLength: 0, + showLine: false, + size: { + height: 0, + width: 0 + }, + parentData: { + direction: 'row', + current: 0, + activeColor: '', + inactiveColor: '', + activeIcon: '', + inactiveIcon: '', + dot: false + } + } + }, + watch: { + 'parentData'(newValue, oldValue) { + } + }, + created() { + this.init() + }, + computed: { + lineStyle() { + const style = {} + if (this.parentData.direction === 'row') { + style.width = this.size.width + 'px' + style.left = this.size.width / 2 + 'px' + } else { + style.height = this.size.height + 'px' + // style.top = this.size.height / 2 + 'px' + } + style.backgroundColor = this.parent.children?.[this.index + 1]?.error ? uni.$u.color.error : this.index < + this + .parentData + .current ? this.parentData.activeColor : this.parentData.inactiveColor + return style + }, + statusClass() { + const { + index, + error + } = this + const { + current + } = this.parentData + if (current == index) { + return error === true ? 'error' : 'process' + } else if (error) { + return 'error' + } else if (current > index) { + return 'finish' + } else { + return 'wait' + } + }, + statusColor() { + let color = '' + switch (this.statusClass) { + case 'finish': + color = this.parentData.activeColor + break + case 'error': + color = uni.$u.color.error + break + case 'process': + color = this.parentData.dot ? this.parentData.activeColor : 'transparent' + break + default: + color = this.parentData.inactiveColor + break + } + return color + }, + contentStyle() { + const style = {} + if (this.parentData.direction === 'column') { + style.marginLeft = this.parentData.dot ? '2px' : '6px' + style.marginTop = this.parentData.dot ? '0px' : '6px' + } else { + style.marginTop = this.parentData.dot ? '2px' : '6px' + style.marginLeft = this.parentData.dot ? '2px' : '6px' + } + + return style + } + }, + mounted() { + this.parent && this.parent.updateFromChild() + uni.$u.sleep().then(() => { + this.getStepsItemRect() + }) + }, + methods: { + init() { + // 鍒濆鍖栨暟鎹� + this.updateParentData() + if (!this.parent) { + return uni.$u.error('u-steps-item蹇呴』瑕佹惌閰島-steps缁勪欢浣跨敤') + } + this.index = this.parent.children.indexOf(this) + this.childLength = this.parent.children.length + }, + updateParentData() { + // 姝ゆ柟娉曞湪mixin涓� + this.getParentData('u-steps') + }, + // 鐖剁粍浠舵暟鎹彂鐢熷彉鍖� + updateFromParent() { + this.init() + }, + // 鑾峰彇缁勪欢鐨勫昂瀵革紝鐢ㄤ簬璁剧疆妯嚎鐨勪綅缃� + getStepsItemRect() { + // #ifndef APP-NVUE + this.$uGetRect('.u-steps-item').then(size => { + this.size = size + }) + // #endif + + // #ifdef APP-NVUE + dom.getComponentRect(this.$refs['u-steps-item'], res => { + const { + size + } = res + this.size = size + }) + // #endif + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-steps-item { + flex: 1; + @include flex; + + &--row { + flex-direction: column; + align-items: center; + position: relative; + } + + &--column { + position: relative; + flex-direction: row; + justify-content: flex-start; + padding-bottom: 5px; + } + + &__wrapper { + @include flex; + justify-content: center; + align-items: center; + position: relative; + background-color: #fff; + + &--column { + width: 20px; + height: 32px; + + &--dot { + height: 20px; + width: 20px; + } + } + + &--row { + width: 32px; + height: 20px; + + &--dot { + width: 20px; + height: 20px; + } + } + + &__circle { + width: 20px; + height: 20px; + /* #ifndef APP-NVUE */ + box-sizing: border-box; + flex-shrink: 0; + /* #endif */ + border-radius: 100px; + border-width: 1px; + border-color: $u-tips-color; + border-style: solid; + @include flex(row); + align-items: center; + justify-content: center; + transition: background-color 0.3s; + + &__text { + color: $u-tips-color; + font-size: 11px; + @include flex(row); + align-items: center; + justify-content: center; + text-align: center; + line-height: 11px; + } + } + + &__dot { + width: 10px; + height: 10px; + border-radius: 100px; + background-color: $u-content-color; + } + } + + &__content { + @include flex; + flex: 1; + + &--row { + flex-direction: column; + align-items: center; + } + + &--column { + flex-direction: column; + margin-left: 6px; + } + } + + &__line { + position: absolute; + background: $u-tips-color; + + &--row { + top: 10px; + height: 1px; + } + + &--column { + width: 1px; + left: 10px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/props.js new file mode 100644 index 0000000..6d4c768 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/props.js @@ -0,0 +1,39 @@ +export default { + props: { + // 鎺掑垪鏂瑰悜 + direction: { + type: String, + default: uni.$u.props.steps.direction + }, + // 璁剧疆绗嚑涓楠� + current: { + type: [String, Number], + default: uni.$u.props.steps.current + }, + // 婵�娲荤姸鎬侀鑹� + activeColor: { + type: String, + default: uni.$u.props.steps.activeColor + }, + // 鏈縺娲荤姸鎬侀鑹� + inactiveColor: { + type: String, + default: uni.$u.props.steps.inactiveColor + }, + // 婵�娲荤姸鎬佺殑鍥炬爣 + activeIcon: { + type: String, + default: uni.$u.props.steps.activeIcon + }, + // 鏈縺娲荤姸鎬佸浘鏍� + inactiveIcon: { + type: String, + default: uni.$u.props.steps.inactiveIcon + }, + // 鏄惁鏄剧ず鐐圭被鍨� + dot: { + type: Boolean, + default: uni.$u.props.steps.dot + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/u-steps.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/u-steps.vue new file mode 100644 index 0000000..3ab7764 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-steps/u-steps.vue @@ -0,0 +1,80 @@ +<template> + <view + class="u-steps" + :class="[`u-steps--${direction}`]" + > + <slot></slot> + </view> +</template> + +<script> + import props from './props.js'; + /** + * Steps 姝ラ鏉� + * @description 璇ョ粍浠朵竴鑸敤浜庡畬鎴愪竴涓换鍔¤鍒嗗嚑涓楠わ紝鏍囪瘑鐩墠澶勪簬绗嚑姝ョ殑鍦烘櫙銆� + * @tutorial https://uviewui.com/components/steps.html + * @property {String} direction row-妯悜锛宑olumn-绔栧悜 (榛樿 'row' ) + * @property {String | Number} current 璁剧疆褰撳墠澶勪簬绗嚑姝� (榛樿 0 ) + * @property {String} activeColor 婵�娲荤姸鎬侀鑹� (榛樿 '#3c9cff' ) + * @property {String} inactiveColor 鏈縺娲荤姸鎬侀鑹� (榛樿 '#969799' ) + * @property {String} activeIcon 婵�娲荤姸鎬佺殑鍥炬爣 + * @property {String} inactiveIcon 鏈縺娲荤姸鎬佸浘鏍� + * @property {Boolean} dot 鏄惁鏄剧ず鐐圭被鍨� (榛樿 false ) + * @example <u-steps current="0"><u-steps-item title="宸插嚭搴�" desc="10:35" ></u-steps-item></u-steps> + */ + export default { + name: 'u-steps', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + } + }, + watch: { + children() { + this.updateChildData() + }, + parentData() { + this.updateChildData() + } + }, + computed: { + // 鐩戝惉鍙傛暟鐨勫彉鍖栵紝閫氳繃watch涓紝鎵嬪姩鍘绘洿鏂板瓙缁勪欢鐨勬暟鎹紝鍚﹀垯瀛愮粍浠朵笉浼氳嚜鍔ㄥ彉鍖� + parentData() { + return [this.current, this.direction, this.activeColor, this.inactiveColor, this.activeIcon, this.inactiveIcon, this.dot] + } + }, + methods: { + // 鏇存柊瀛愮粍浠剁殑鏁版嵁 + updateChildData() { + this.children.map(child => { + // 鍏堝垽鏂瓙缁勪欢鏄惁瀛樺湪瀵瑰簲鐨勬柟娉� + uni.$u.test.func((child || {}).updateFromParent()) && child.updateFromParent() + }) + }, + // 鎺ュ彈瀛愮粍浠剁殑閫氱煡锛屽幓淇敼鍏朵粬瀛愮粍浠剁殑鏁版嵁 + updateFromChild() { + this.updateChildData() + } + }, + created() { + this.children = [] + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-steps { + @include flex; + + &--column { + flex-direction: column + } + + &--row { + flex-direction: row; + flex: 1; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/props.js new file mode 100644 index 0000000..c2ca8da --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/props.js @@ -0,0 +1,40 @@ +export default { + props: { + // 鍚搁《瀹瑰櫒鍒伴《閮ㄦ煇涓窛绂荤殑鏃跺�欙紝杩涜鍚搁《锛屽湪H5骞冲彴锛孨avigationBar涓�44px + offsetTop: { + type: [String, Number], + default: uni.$u.props.sticky.offsetTop + }, + // 鑷畾涔夊鑸爮鐨勯珮搴� + customNavHeight: { + type: [String, Number], + // #ifdef H5 + // H5绔殑瀵艰埅鏍忓睘浜庘�滆嚜瀹氫箟鈥濆鑸爮鐨勮寖鐣达紝鍥犱负瀹冩槸闈炲師鐢熺殑锛屼笌鏅�氬厓绱犱竴鑷� + default: 44, + // #endif + // #ifndef H5 + default: uni.$u.props.sticky.customNavHeight + // #endif + }, + // 鏄惁寮�鍚惛椤跺姛鑳� + disabled: { + type: Boolean, + default: uni.$u.props.sticky.disabled + }, + // 鍚搁《鍖哄煙鐨勮儗鏅鑹� + bgColor: { + type: String, + default: uni.$u.props.sticky.bgColor + }, + // z-index鍊� + zIndex: { + type: [String, Number], + default: uni.$u.props.sticky.zIndex + }, + // 鍒楄〃涓殑绱㈠紩鍊� + index: { + type: [String, Number], + default: uni.$u.props.sticky.index + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/u-sticky.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/u-sticky.vue new file mode 100644 index 0000000..ff74688 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-sticky/u-sticky.vue @@ -0,0 +1,212 @@ +<template> + <view + class="u-sticky" + :id="elId" + :style="[style]" + > + <view + :style="[stickyContent]" + class="u-sticky__content" + > + <slot /> + </view> + </view> +</template> + +<script> + import props from './props.js';; + /** + * sticky 鍚搁《 + * @description 璇ョ粍浠朵笌CSS涓璸osition: sticky灞炴�у疄鐜扮殑鏁堟灉涓�鑷达紝褰撶粍浠惰揪鍒伴璁剧殑鍒伴《閮ㄨ窛绂绘椂锛� 灏变細鍥哄畾鍦ㄦ寚瀹氫綅缃紝缁勪欢浣嶇疆澶т簬棰勮鐨勯《閮ㄨ窛绂绘椂锛屼細閲嶆柊鎸夌収姝e父鐨勫竷灞�鎺掑垪銆� + * @tutorial https://www.uviewui.com/components/sticky.html + * @property {String 锝� Number} offsetTop 鍚搁《鏃朵笌椤堕儴鐨勮窛绂伙紝鍗曚綅px锛堥粯璁� 0 锛� + * @property {String 锝� Number} customNavHeight 鑷畾涔夊鑸爮鐨勯珮搴� 锛坔5 榛樿44 鍏朵粬榛樿 0 锛� + * @property {Boolean} disabled 鏄惁寮�鍚惛椤跺姛鑳� 锛堥粯璁� false 锛� + * @property {String} bgColor 缁勪欢鑳屾櫙棰滆壊锛堥粯璁� '#ffffff' 锛� + * @property {String 锝� Number} zIndex 鍚搁《鏃剁殑z-index鍊� + * @property {String 锝� Number} index 鑷畾涔夋爣璇嗭紝鐢ㄤ簬鍖哄垎鏄摢涓�涓粍浠� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} fixed 缁勪欢鍚搁《鏃惰Е鍙� + * @event {Function} unfixed 缁勪欢鍙栨秷鍚搁《鏃惰Е鍙� + * @example <u-sticky offsetTop="200"><view>濉炰笅绉嬫潵椋庢櫙寮傦紝琛¢槼闆佸幓鏃犵暀鎰�</view></u-sticky> + */ + export default { + name: 'u-sticky', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + cssSticky: false, // 鏄惁浣跨敤css鐨剆ticky瀹炵幇 + stickyTop: 0, // 鍚搁《鐨則op鍊硷紝鍥犱负鍙兘鍙楄嚜瀹氫箟瀵艰埅鏍忓奖鍝嶏紝鏈�缁堢殑鍚搁《鍊奸潪offsetTop鍊� + elId: uni.$u.guid(), + left: 0, // js妯″紡鏃讹紝鍚搁《鐨勫唴瀹瑰洜涓哄浜巔ostition: fixed妯″紡锛屼负浜嗗拰鍘熸潵淇濇寔涓�鑷寸殑鏍峰紡锛岄渶瑕佽褰曞苟閲嶆柊璁剧疆瀹冪殑left锛宧eight锛寃idth灞炴�� + width: 'auto', + height: 'auto', + fixed: false, // js妯″紡鏃讹紝鏄惁澶勪簬鍚搁《妯″紡 + } + }, + computed: { + style() { + const style = {} + if(!this.disabled) { + if (this.cssSticky) { + style.position = 'sticky' + style.zIndex = this.uZindex + style.top = uni.$u.addUnit(this.stickyTop) + } else { + style.height = this.fixed ? this.height + 'px' : 'auto' + } + } else { + // 鏃犻渶鍚搁《鏃讹紝璁剧疆浼氶粯璁ょ殑relative(nvue)鍜岄潪nvue鐨剆tatic闈欐�佹ā寮忓嵆鍙� + // #ifdef APP-NVUE + style.position = 'relative' + // #endif + // #ifndef APP-NVUE + style.position = 'static' + // #endif + } + style.backgroundColor = this.bgColor + return uni.$u.deepMerge(uni.$u.addStyle(this.customStyle), style) + }, + // 鍚搁《鍐呭鐨勬牱寮� + stickyContent() { + const style = {} + if (!this.cssSticky) { + style.position = this.fixed ? 'fixed' : 'static' + style.top = this.stickyTop + 'px' + style.left = this.left + 'px' + style.width = this.width == 'auto' ? 'auto' : this.width + 'px' + style.zIndex = this.uZindex + } + return style + }, + uZindex() { + return this.zIndex ? this.zIndex : uni.$u.zIndex.sticky + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getStickyTop() + // 鍒ゆ柇浣跨敤鐨勬ā寮� + this.checkSupportCssSticky() + // 濡傛灉涓嶆敮鎸乧ss sticky锛屽垯浣跨敤js鏂规锛屾鏂规鎬ц兘姣斾笉涓奵ss鏂规 + if (!this.cssSticky) { + !this.disabled && this.initObserveContent() + } + }, + initObserveContent() { + // 鑾峰彇鍚搁《鍐呭鐨勯珮搴︼紝鐢ㄤ簬鍦╦s鍚搁《妯″紡鏃讹紝缁欑埗鍏冪礌涓�涓~鍏呴珮搴︼紝闃叉"濉岄櫡" + this.$uGetRect('#' + this.elId).then((res) => { + this.height = res.height + this.left = res.left + this.width = res.width + this.$nextTick(() => { + this.observeContent() + }) + }) + }, + observeContent() { + // 鍏堟柇鎺変箣鍓嶇殑瑙傚療 + this.disconnectObserver('contentObserver') + const contentObserver = uni.createIntersectionObserver({ + // 妫�娴嬬殑鍖洪棿鑼冨洿 + thresholds: [0.95, 0.98, 1] + }) + // 鍒板睆骞曢《閮ㄧ殑楂樺害鏃惰Е鍙� + contentObserver.relativeToViewport({ + top: -this.stickyTop + }) + // 缁戝畾瑙傚療鐨勫厓绱� + contentObserver.observe(`#${this.elId}`, res => { + this.setFixed(res.boundingClientRect.top) + }) + this.contentObserver = contentObserver + }, + setFixed(top) { + // 鍒ゆ柇鏄惁鍑轰簬鍚搁《鏉′欢鑼冨洿 + const fixed = top <= this.stickyTop + this.fixed = fixed + }, + disconnectObserver(observerName) { + // 鏂帀瑙傚療锛岄噴鏀捐祫婧� + const observer = this[observerName] + observer && observer.disconnect() + }, + getStickyTop() { + this.stickyTop = uni.$u.getPx(this.offsetTop) + uni.$u.getPx(this.customNavHeight) + }, + async checkSupportCssSticky() { + // #ifdef H5 + // H5锛屼竴鑸兘鏄幇浠f祻瑙堝櫒锛屾槸鏀寔css sticky鐨勶紝杩欓噷浣跨敤鍒涘缓鍏冪礌鍡呮帰鐨勫舰寮忓垽鏂� + if (this.checkCssStickyForH5()) { + this.cssSticky = true + } + // #endif + + // 濡傛灉瀹夊崜鐗堟湰楂樹簬8.0锛屼緷鐒惰涓烘槸鏀寔css sticky鐨�(鍥犱负瀹夊崜7鍦ㄦ煇浜涙満鍨嬶紝鍙兘涓嶆敮鎸乻ticky) + if (uni.$u.os() === 'android' && Number(uni.$u.sys().system) > 8) { + this.cssSticky = true + } + + // APP-Vue鍜屽井淇″钩鍙帮紝閫氳繃computedStyle鍒ゆ柇鏄惁鏀寔css sticky + // #ifdef APP-VUE || MP-WEIXIN + this.cssSticky = await this.checkComputedStyle() + // #endif + + // ios涓婏紝浠巌os6寮�濮嬶紝閮芥槸鏀寔css sticky鐨� + if (uni.$u.os() === 'ios') { + this.cssSticky = true + } + + // nvue锛屾槸鏀寔css sticky鐨� + // #ifdef APP-NVUE + this.cssSticky = true + // #endif + }, + // 鍦ˋPP鍜屽井淇″皬绋嬪簭涓婏紝閫氳繃uni.createSelectorQuery鍙互鍒ゆ柇鏄惁鏀寔css sticky + checkComputedStyle() { + // 鏂规硶鍐呰繘琛屽垽鏂紝閬垮厤鍦ㄥ叾浠栧钩鍙扮敓鎴愭棤鐢ㄤ唬鐮� + // #ifdef APP-VUE || MP-WEIXIN + return new Promise(resolve => { + uni.createSelectorQuery().in(this).select('.u-sticky').fields({ + computedStyle: ["position"] + }).exec(e => { + resolve('sticky' === e[0].position) + }) + }) + // #endif + }, + // H5閫氳繃鍒涘缓鍏冪礌鐨勫舰寮忓梾鎺㈡槸鍚︽敮鎸乧ss sticky + // 鍒ゆ柇娴忚鍣ㄦ槸鍚︽敮鎸乻ticky灞炴�� + checkCssStickyForH5() { + // 鏂规硶鍐呰繘琛屽垽鏂紝閬垮厤鍦ㄥ叾浠栧钩鍙扮敓鎴愭棤鐢ㄤ唬鐮� + // #ifdef H5 + const vendorList = ['', '-webkit-', '-ms-', '-moz-', '-o-'], + vendorListLength = vendorList.length, + stickyElement = document.createElement('div') + for (let i = 0; i < vendorListLength; i++) { + stickyElement.style.position = vendorList[i] + 'sticky' + if (stickyElement.style.position !== '') { + return true + } + } + return false; + // #endif + } + }, + beforeDestroy() { + this.disconnectObserver('contentObserver') + } + } +</script> + +<style lang="scss" scoped> + .u-sticky { + /* #ifdef APP-VUE || MP-WEIXIN */ + // 姝ゅ榛樿鍐檚ticky灞炴�э紝鏄负浜嗙粰寰俊鍜孉PP閫氳繃uni.createSelectorQuery鏌ヨ鏄惁鏀寔css sticky浣跨敤 + position: sticky; + /* #endif */ + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/props.js new file mode 100644 index 0000000..5675eaa --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/props.js @@ -0,0 +1,49 @@ +export default { + props: { + // tab鐨勬暟鎹� + list: { + type: Array, + default: uni.$u.props.subsection.list + }, + // 褰撳墠娲诲姩鐨則ab鐨刬ndex + current: { + type: [String, Number], + default: uni.$u.props.subsection.current + }, + // 婵�娲荤殑棰滆壊 + activeColor: { + type: String, + default: uni.$u.props.subsection.activeColor + }, + // 鏈縺娲荤殑棰滆壊 + inactiveColor: { + type: String, + default: uni.$u.props.subsection.inactiveColor + }, + // 妯″紡閫夋嫨锛宮ode=button涓烘寜閽舰寮忥紝mode=subsection鏃朵负鍒嗘妯″紡 + mode: { + type: String, + default: uni.$u.props.subsection.mode + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.subsection.fontSize + }, + // 婵�娲籺ab鐨勫瓧浣撴槸鍚﹀姞绮� + bold: { + type: Boolean, + default: uni.$u.props.subsection.bold + }, + // mode = button鏃讹紝缁勪欢鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.subsection.bgColor + }, + // 浠巐ist鍏冪礌瀵硅薄涓鍙栫殑閿悕 + keyName: { + type: String, + default: uni.$u.props.subsection.keyName + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/u-subsection.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/u-subsection.vue new file mode 100644 index 0000000..cc4d540 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-subsection/u-subsection.vue @@ -0,0 +1,299 @@ +<template> + <view + class="u-subsection" + ref="u-subsection" + :class="[`u-subsection--${mode}`]" + :style="[$u.addStyle(customStyle), wrapperStyle]" + > + <view + class="u-subsection__bar" + ref="u-subsection__bar" + :style="[barStyle]" + :class="[ + mode === 'button' && 'u-subsection--button__bar', + current === 0 && + mode === 'subsection' && + 'u-subsection__bar--first', + current > 0 && + current < list.length - 1 && + mode === 'subsection' && + 'u-subsection__bar--center', + current === list.length - 1 && + mode === 'subsection' && + 'u-subsection__bar--last', + ]" + ></view> + <view + class="u-subsection__item" + :class="[ + `u-subsection__item--${index}`, + index < list.length - 1 && + 'u-subsection__item--no-border-right', + index === 0 && 'u-subsection__item--first', + index === list.length - 1 && 'u-subsection__item--last', + ]" + :ref="`u-subsection__item--${index}`" + :style="[itemStyle(index)]" + @tap="clickHandler(index)" + v-for="(item, index) in list" + :key="index" + > + <text + class="u-subsection__item__text" + :style="[textStyle(index)]" + >{{ getText(item) }}</text + > + </view> + </view> +</template> + +<script> +// #ifdef APP-NVUE +const dom = uni.requireNativePlugin("dom"); +const animation = uni.requireNativePlugin("animation"); +// #endif +import props from "./props.js"; +/** + * Subsection 鍒嗘鍣� + * @description 璇ュ垎娈靛櫒涓�鑸敤浜庣敤鎴蜂粠鍑犱釜閫夐」涓�夋嫨鏌愪竴涓殑鍦烘櫙 + * @tutorial https://www.uviewui.com/components/subsection.html + * @property {Array} list tab鐨勬暟鎹� + * @property {String 锝� Number} current 褰撳墠娲诲姩鐨則ab鐨刬ndex锛堥粯璁� 0 锛� + * @property {String} activeColor 婵�娲绘椂鐨勯鑹诧紙榛樿 '#3c9cff' 锛� + * @property {String} inactiveColor 鏈縺娲绘椂鐨勯鑹诧紙榛樿 '#303133' 锛� + * @property {String} mode 妯″紡閫夋嫨锛宮ode=button涓烘寜閽舰寮忥紝mode=subsection鏃朵负鍒嗘妯″紡锛堥粯璁� 'button' 锛� + * @property {String 锝� Number} fontSize 瀛椾綋澶у皬锛屽崟浣峱x锛堥粯璁� 12 锛� + * @property {Boolean} bold 婵�娲婚�夐」鐨勫瓧浣撴槸鍚﹀姞绮楋紙榛樿 true 锛� + * @property {String} bgColor 缁勪欢鑳屾櫙棰滆壊锛宮ode涓篵utton鏃舵湁鏁堬紙榛樿 '#eeeeef' 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * @property {String} keyName 浠巂list`鍏冪礌瀵硅薄涓鍙栫殑閿悕锛堥粯璁� 'name' 锛� + * + * @event {Function} change 鍒嗘鍣ㄩ�夐」鍙戠敓鏀瑰彉鏃惰Е鍙� 鍥炶皟 index锛氶�夐」鐨刬ndex绱㈠紩鍊硷紝浠�0寮�濮� + * @example <u-subsection :list="list" :current="curNow" @change="sectionChange"></u-subsection> + */ +export default { + name: "u-subsection", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 缁勪欢灏哄 + itemRect: { + width: 0, + height: 0, + }, + }; + }, + watch: { + list(newValue, oldValue) { + this.init(); + }, + current: { + immediate: true, + handler(n) { + // #ifdef APP-NVUE + // 鍦ㄥ畨鍗搉vue涓婏紝濡傛灉閫氳繃translateX杩涜浣嶇Щ锛屽埌鏈�鍚庝竴涓椂锛屼細瀵艰嚧鍙充晶鏃犳硶缁樺埗鍦嗚 + // 鏁呯敤animation妯″潡杩涜浣嶇Щ + const ref = this.$refs?.["u-subsection__bar"]?.ref; + // 涓嶅瓨鍦╮ef鐨勬椂鍊�(鐞嗚В涓虹涓�娆″垵濮嬪寲鏃讹紝闇�瑕佹覆鏌揹om锛岃繘琛屼竴瀹氬欢鏃跺啀鑾峰彇ref)锛岃繖閲岀殑100ms鏄粡杩囨祴璇曞緱鍑虹殑缁撴灉(鏌愪簺瀹夊崜闇�瑕佸欢鏃朵箙涓�鐐�)锛屽嬁闅忔剰淇敼 + uni.$u.sleep(ref ? 0 : 100).then(() => { + animation.transition(this.$refs["u-subsection__bar"].ref, { + styles: { + transform: `translateX(${ + n * this.itemRect.width + }px)`, + transformOrigin: "center center", + }, + duration: 300, + }); + }); + // #endif + }, + }, + }, + computed: { + wrapperStyle() { + const style = {}; + // button妯″紡鏃讹紝璁剧疆鑳屾櫙鑹� + if (this.mode === "button") { + style.backgroundColor = this.bgColor; + } + return style; + }, + // 婊戝潡鐨勬牱寮� + barStyle() { + const style = {}; + style.width = `${this.itemRect.width}px`; + style.height = `${this.itemRect.height}px`; + // 閫氳繃translateX绉诲姩婊戝潡锛屽叾绉诲姩鐨勮窛绂讳负绱㈠紩*item鐨勫搴� + // #ifndef APP-NVUE + style.transform = `translateX(${ + this.current * this.itemRect.width + }px)`; + // #endif + if (this.mode === "subsection") { + // 鍦╯ubsection妯″紡涓嬶紝闇�瑕佸姩鎬佽缃粦鍧楃殑鍦嗚锛屽洜涓虹Щ鍔ㄦ粦鍧椾娇鐢ㄧ殑鏄痶ranslateX锛屾棤娉曢�氳繃鐖跺厓绱犺缃畂verflow: hidden闅愯棌婊戝潡鐨勭洿瑙� + style.backgroundColor = this.activeColor; + } + return style; + }, + // 鍒嗘鍣╥tem鐨勬牱寮� + itemStyle(index) { + return (index) => { + const style = {}; + if (this.mode === "subsection") { + // 璁剧疆border鐨勬牱寮� + style.borderColor = this.activeColor; + style.borderWidth = "1px"; + style.borderStyle = "solid"; + } + return style; + }; + }, + // 鍒嗘鍣ㄦ枃瀛楅鑹� + textStyle(index) { + return (index) => { + const style = {}; + style.fontWeight = + this.bold && this.current === index ? "bold" : "normal"; + style.fontSize = uni.$u.addUnit(this.fontSize); + // subsection妯″紡涓嬶紝婵�娲绘椂榛樿涓虹櫧鑹茬殑鏂囧瓧 + if (this.mode === "subsection") { + style.color = + this.current === index ? "#fff" : this.inactiveColor; + } else { + // button妯″紡涓嬶紝婵�娲绘椂鏂囧瓧棰滆壊榛樿涓篴ctiveColor + style.color = + this.current === index + ? this.activeColor + : this.inactiveColor; + } + return style; + }; + }, + }, + mounted() { + this.init(); + }, + methods: { + init() { + uni.$u.sleep().then(() => this.getRect()); + }, + // 鍒ゆ柇灞曠ず鏂囨湰 + getText(item) { + return typeof item === 'object' ? item[this.keyName] : item + }, + // 鑾峰彇缁勪欢鐨勫昂瀵� + getRect() { + // #ifndef APP-NVUE + this.$uGetRect(".u-subsection__item--0").then((size) => { + this.itemRect = size; + }); + // #endif + + // #ifdef APP-NVUE + const ref = this.$refs["u-subsection__item--0"][0]; + ref && + dom.getComponentRect(ref, (res) => { + this.itemRect = res.size; + }); + // #endif + }, + clickHandler(index) { + this.$emit("change", index); + }, + }, +}; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +.u-subsection { + @include flex; + position: relative; + overflow: hidden; + /* #ifndef APP-NVUE */ + width: 100%; + box-sizing: border-box; + /* #endif */ + + &--button { + height: 32px; + background-color: rgb(238, 238, 239); + padding: 3px; + border-radius: 3px; + align-items: stretch; + + &__bar { + background-color: #ffffff; + border-radius: 3px !important; + } + } + + &--subsection { + height: 30px; + } + + &__bar { + position: absolute; + /* #ifndef APP-NVUE */ + transition-property: transform, color; + transition-duration: 0.3s; + transition-timing-function: ease-in-out; + /* #endif */ + + &--first { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + } + + &--center { + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + } + + &--last { + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; + } + } + + &__item { + @include flex; + flex: 1; + justify-content: center; + align-items: center; + // vue鐜涓嬶紝闇�瑕佽缃浉瀵瑰畾浣嶏紝鍥犱负婊戝潡涓虹粷瀵瑰畾浣嶏紝item闇�瑕佸湪婊戝潡鐨勪笂闈� + position: relative; + + &--no-border-right { + border-right-width: 0 !important; + } + + &--first { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; + } + + &--last { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; + } + + &__text { + font-size: 12px; + line-height: 12px; + @include flex; + align-items: center; + transition-property: color; + transition-duration: 0.3s; + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index - backup.wxs b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index - backup.wxs new file mode 100644 index 0000000..04cab92 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index - backup.wxs @@ -0,0 +1,256 @@ +/** + * 姝や负wxs妯″潡锛屽彧鏀寔APP-VUE锛屽井淇″拰QQ灏忕▼搴忎互鍙奌5骞冲彴 + * wxs鍐呴儴涓嶆敮鎸乪s6璇硶锛屽彉閲忓彧鑳戒娇鐢╲ar瀹氫箟锛屾棤娉曚娇鐢ㄨВ鏋勶紝绠ご鍑芥暟绛夌壒鎬� + */ + +// 寮�濮嬭Е鎽� +function touchstart(event, ownerInstance) { + // 瑙﹀彂浜嬩欢鐨勭粍浠剁殑ComponentDescriptor瀹炰緥 + var instance = event.instance + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓э紝姝ゅ揩鐓ф槸灞炰簬鏁翠釜缁勪欢鐨勶紝鍦╰ouchstart鍜宼ouchmove浜嬩欢涓兘鑳借幏鍙栧埌鐩稿悓鐨勭粨鏋� + var state = instance.getState() + if (state.disable) return + var touches = event.touches + // 濡傛灉杩涜鐨勬槸澶氭寚瑙︽帶锛屼笉鍏佽杩涜鎿嶄綔 + if (touches && touches.length > 1) return + // 鏍囪瘑褰撳墠涓烘粦鍔ㄤ腑鐘舵�� + state.moving = true + // 璁板綍瑙︽懜寮�濮嬬偣鐨勫潗鏍囧�� + state.startX = touches[0].pageX + state.startY = touches[0].pageY +} + +// 瑙︽懜婊戝姩 +function touchmove(event, ownerInstance) { + // 瑙﹀彂浜嬩欢鐨勭粍浠剁殑ComponentDescriptor瀹炰緥 + var instance = event.instance + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓� + var state = instance.getState() + if (state.disabled || !state.moving) return + + var touches = event.touches + var pageX = touches[0].pageX + var pageY = touches[0].pageY + var moveX = pageX - state.startX + var moveY = pageY - state.startY + var buttonsWidth = state.buttonsWidth + + // 绉诲姩鐨刋杞磋窛绂诲ぇ浜嶻杞磋窛绂伙紝涔熷嵆缁堢偣涓庤捣鐐逛綅缃繛绾匡紝涓嶺杞村す瑙掑皬浜�45搴︽椂锛岀姝㈤〉闈㈡粴鍔� + if (Math.abs(moveX) > Math.abs(moveY) || Math.abs(moveX) > state.threshold) { + event.preventDefault() + event.stopPropagation() + } + // 濡傛灉绉诲姩鐨刋杞磋窛绂诲皬浜嶻杞磋窛绂伙紝涔熷嵆缁堢偣浣嶇疆涓庤捣鐐逛綅缃繛绾匡紝涓嶻杞村す瑙掑皬浜�45搴︽椂锛岃涓烘槸椤甸潰涓婁笅婊戝姩锛岃�屼笉鏄乏鍙虫粦鍔ㄥ崟鍏冩牸 + if (Math.abs(moveX) < Math.abs(moveY)) return + + // 闄愬埗鍙虫粦鐨勮窛绂伙紝涓嶅厑璁稿唴瀹归儴鍒嗗線鍙冲亸绉伙紝鍙虫粦浼氬鑷碭杞村亸绉诲�煎ぇ浜�0锛屼互姝ゅ仛鍒ゆ柇 + // 姝ゅ涓嶈兘鐩存帴return锛屽洜涓烘粦鍔ㄨ繃绋嬩腑浼氱己澶辨煇浜涘叧閿偣鍧愭爣锛屼細瀵艰嚧閿欎贡锛屾渶濂界殑鍔炴硶灏辨槸 + // 鍦ㄨ秴鍑哄悗锛岃缃负0 + if (state.status === 'open') { + // 鍦ㄥ紑鍚姸鎬佷笅锛屽悜宸︽粦鍔紝闇�蹇界暐 + if (moveX < 0) moveX = 0 + // 鎯宠鏀惰捣鑿滃崟锛屾渶澶ц兘绉诲姩鐨勮窛绂讳负鎸夐挳鐨勬�诲搴� + if (moveX > buttonsWidth) moveX = buttonsWidth + // 濡傛灉鏄凡缁忔墦寮�浜嗙殑鐘舵�侊紝鍚戝乏婊戝姩鏃讹紝绉诲姩鏀惰捣鑿滃崟 + moveSwipeAction(-buttonsWidth + moveX, instance, ownerInstance) + } else { + // 鍏抽棴鐘舵�佷笅锛屽彸婊戝姩闇�蹇界暐 + if (moveX > 0) moveX = 0 + // 婊戝姩鐨勮窛绂讳笉鍏佽瓒呰繃鎵�鏈夋寜閽殑鎬诲搴︼紝姝ゆ椂鍙兘鏄乏婊戯紝鏈�缁堣缃寜閽殑鎬诲搴︼紝鍚屾椂涓鸿礋鏁� + if (Math.abs(moveX) > buttonsWidth) moveX = -buttonsWidth + // 鍙鏄湪婊戣繃绋嬩腑锛屽氨涓嶆柇绉诲姩鑿滃崟鐨勫唴瀹归儴鍒嗭紝浠庤�屼娇闅愯棌鐨勮彍鍗曟樉绀哄嚭鏉� + moveSwipeAction(moveX, instance, ownerInstance) + } +} + +// 瑙︽懜缁撴潫 +function touchend(event, ownerInstance) { + // 瑙﹀彂浜嬩欢鐨勭粍浠剁殑ComponentDescriptor瀹炰緥 + var instance = event.instance + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓� + var state = instance.getState() + if (!state.moving || state.disabled) return + var touches = event.changedTouches ? event.changedTouches[0] : {} + var pageX = touches.pageX + var pageY = touches.pageY + var moveX = pageX - state.startX + if (state.status === 'open') { + // 鍦ㄥ睍寮�鐨勭姸鎬佷笅锛岀户缁乏婊戯紝鏃犻渶鎿嶄綔 + if (moveX < 0) return + // 鍦ㄥ紑鍚姸鎬佷笅锛岀偣鍑讳竴涓嬪唴瀹瑰尯鍩燂紝moveX涓�0锛屼篃鍗虫病鏈夎繘琛岀Щ鍔紝杩欐椂鎵ц鏀惰捣鑿滃崟閫昏緫 + if (moveX === 0) { + return closeSwipeAction(instance, ownerInstance) + } + // 鍦ㄥ紑鍚姸鎬佷笅锛屾粦鍔ㄨ窛绂诲皬浜庨槇鍊硷紝鍒欓粯璁や负涓嶅叧闂紝鍚屾椂鎭㈠鍘熸潵鐨勬墦寮�鐘舵�� + if (Math.abs(moveX) < state.threshold) { + openSwipeAction(instance, ownerInstance) + } else { + // 濡傛灉婊戝姩璺濈澶т簬闃堝�硷紝鍒欐墽琛屾敹璧烽�昏緫 + closeSwipeAction(instance, ownerInstance) + } + } else { + // 鍦ㄥ叧闂殑鐘舵�佷笅锛屽彸婊戯紝鏃犻渶鎿嶄綔 + if (moveX > 0) return + // 鐞嗙敱鍚屼笂 + if (Math.abs(moveX) < state.threshold) { + closeSwipeAction(instance, ownerInstance) + } else { + openSwipeAction(instance, ownerInstance) + } + } +} + +// 鑾峰彇杩囨浮鏃堕棿 +function getDuration(value) { + if (value.toString().indexOf('s') >= 0) return value + return value > 30 ? value + 'ms' : value + 's' +} + +// 婊戝姩缁撴潫鏃跺垽鏂粦鍔ㄧ殑鏂瑰悜 +function getMoveDirection(instance, ownerInstance) { + var state = instance.getState() +} + +// 绉诲姩婊戝姩閫夋嫨鍣ㄥ唴瀹瑰尯鍩燂紝鍚屾椂鏄剧ず鍑哄叾闅愯棌鐨勮彍鍗� +function moveSwipeAction(moveX, instance, ownerInstance) { + var state = instance.getState() + // 鑾峰彇鎵�鏈夋寜閽殑瀹炰緥锛岄渶瑕侀�氳繃瀹冨幓璁剧疆鎸夐挳鐨勪綅绉� + var buttons = ownerInstance.selectAllComponents('.u-swipe-action-item__right__button') + var len = buttons.length + var previewButtonsMoveX = 0 + + // 璁剧疆鑿滃崟鍐呭閮ㄥ垎鐨勫亸绉� + instance.requestAnimationFrame(function() { + instance.setStyle({ + // 璁剧疆translateX鐨勫�� + 'transition': 'none', + transform: 'translateX(' + moveX + 'px)', + '-webkit-transform': 'translateX(' + moveX + 'px)' + }) + // 鎶樺彔鎸夐挳鍔ㄧ敾 + for (var i = len - 1; i >= 0; i--) { + // 閫氳繃姣斾緥锛屽緱鍑哄厓绱犺嚜韬绉诲姩鐨勮窛绂� + var translateX = state.buttons[i].width / state.buttonsWidth * moveX + // 鏈�缁堢Щ鍔ㄧ殑璺濈锛屾槸閫氳繃鑷韩姣斾緥绠楀嚭鐨勮窛绂伙紝鍐嶅姞涓婂湪瀹冧箣鍓嶆墍鏈夋寜閽Щ鍔ㄧ殑璺濈涔嬪拰 + var realTranslateX = translateX + previewButtonsMoveX + buttons[i].setStyle({ + // 鍦ㄧЩ鍔ㄦ湡闂达紝涓嶈兘浣跨敤杩囨浮鏁堟灉锛屽惁鍒欎細閫犳垚鍗¢】锛屾湰璐ㄥ師鍥犳槸姣忔绉诲姩涓�鐐癸紝灏辫鑺变竴瀹氭椂闂村幓杩囨浮杩欎釜杩囩▼ + 'transition': 'none', + 'transform': 'translateX(' + realTranslateX + 'px)', + '-webkit-transform': 'translateX(' + realTranslateX + 'px)' + }) + // 璁板綍鏈寜閽箣鍓嶇殑鎵�鏈夋寜閽殑绉诲姩璺濈涔嬪拰 + previewButtonsMoveX += translateX + } + }) +} + +// 涓�娆℃�у睍寮�婊戝姩鑿滃崟 +function openSwipeAction(instance, ownerInstance) { + var state = instance.getState() + // 鑾峰彇鎵�鏈夋寜閽殑瀹炰緥锛岄渶瑕侀�氳繃瀹冨幓璁剧疆鎸夐挳鐨勪綅绉� + var buttons = ownerInstance.selectAllComponents('.u-swipe-action-item__right__button') + var len = buttons.length + // 澶勭悊duration鍗曚綅闂 + const duration = getDuration(state.duration) + // 灞曞紑杩囩▼涓紝鏄悜宸︾Щ鍔紝鎵�浠鐨勫亸绉诲簲璇ヤ负璐熷�� + var buttonsWidth = -state.buttonsWidth + var previewButtonsMoveX = 0 + instance.requestAnimationFrame(function() { + // 璁剧疆鑿滃崟涓讳綋鍐呭 + instance.setStyle({ + 'transition': 'transform ' + duration, + 'transform': 'translateX(' + buttonsWidth + 'px)', + '-webkit-transform': 'translateX(' + buttonsWidth + 'px)', + }) + // 璁剧疆鍚勪釜闅愯棌鐨勬寜閽负灞曞紑鐨勭姸鎬� + for (var i = len - 1; i >= 0; i--) { + // 閫氳繃姣斾緥锛屽緱鍑哄厓绱犺嚜韬绉诲姩鐨勮窛绂� + var translateX = state.buttons[i].width / state.buttonsWidth * buttonsWidth + // 鏈�缁堢Щ鍔ㄧ殑璺濈锛屾槸閫氳繃鑷韩姣斾緥绠楀嚭鐨勮窛绂伙紝鍐嶅姞涓婂湪瀹冧箣鍓嶆墍鏈夋寜閽Щ鍔ㄧ殑璺濈涔嬪拰 + var realTranslateX = translateX + previewButtonsMoveX + buttons[i].setStyle({ + // 鍦ㄧЩ鍔ㄦ湡闂达紝闇�瑕佸姞涓婂姩鐢绘晥鏋� + 'transition': 'transform ' + duration, + 'transform': 'translateX(' + realTranslateX + 'px)', + '-webkit-transform': 'translateX(' + realTranslateX + 'px)' + }) + // 璁板綍鏈寜閽箣鍓嶇殑鎵�鏈夋寜閽殑绉诲姩璺濈涔嬪拰 + previewButtonsMoveX += translateX + } + }) + setStatus('open', instance) +} + +// 鏍囪鑿滃崟鐨勫綋鍓嶇姸鎬侊紝open-宸茬粡鎵撳紑锛宑lose-宸茬粡鍏抽棴 +function setStatus(status, instance) { + var state = instance.getState() + state.status = status +} + +// 涓�娆℃�ф敹璧锋粦鍔ㄨ彍鍗� +function closeSwipeAction(instance, ownerInstance) { + var state = instance.getState() + // 鑾峰彇鎵�鏈夋寜閽殑瀹炰緥锛岄渶瑕侀�氳繃瀹冨幓璁剧疆鎸夐挳鐨勪綅绉� + var buttons = ownerInstance.selectAllComponents('.u-swipe-action-item__right__button') + var len = buttons.length + // 澶勭悊duration鍗曚綅闂 + const duration = getDuration(state.duration) + instance.requestAnimationFrame(function() { + // 璁剧疆鑿滃崟涓讳綋鍐呭 + instance.setStyle({ + 'transition': 'transform ' + duration, + 'transform': 'translateX(0px)', + '-webkit-transform': 'translateX(0px)' + }) + // 璁剧疆鍚勪釜闅愯棌鐨勬寜閽负鏀惰捣鐨勭姸鎬� + for (var i = len - 1; i >= 0; i--) { + buttons[i].setStyle({ + 'transition': 'transform ' + duration, + 'transform': 'translateX(0px)', + '-webkit-transform': 'translateX(0px)' + }) + } + }) + setStatus('close', instance) +} + +// show鐨勭姸鎬佸彂鐢熷彉鍖� +function showChange(newValue, oldValue, ownerInstance, instance) { + var state = instance.getState() + if (state.disabled) return + // 鎵撳紑鎴栧叧闂崟鍏冩牸 + if (newValue) { + openSwipeAction(instance, ownerInstance) + } else { + closeSwipeAction(instance, ownerInstance) + } +} + +// 鑿滃崟灏哄鍙戠敓鍙樺寲 +function sizeChange(newValue, oldValue, ownerInstance, instance) { + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓� + var state = instance.getState() + state.disabled = newValue.disabled + state.duration = newValue.duration + state.show = newValue.show + state.threshold = newValue.threshold + state.buttons = newValue.buttons + + var len = state.buttons.length + if (len) { + var buttonsWidth = 0 + var buttons = newValue.buttons + for (var i = 0; i < len; i++) { + buttonsWidth += buttons[i].width + } + } + state.buttonsWidth = buttonsWidth +} + +module.exports = { + touchstart: touchstart, + touchmove: touchmove, + touchend: touchend, + sizeChange: sizeChange +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index.wxs b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index.wxs new file mode 100644 index 0000000..728275f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/index.wxs @@ -0,0 +1,225 @@ +/** + * 姝や负wxs妯″潡锛屽彧鏀寔APP-VUE锛屽井淇″拰QQ灏忕▼搴忎互鍙奌5骞冲彴 + * wxs鍐呴儴涓嶆敮鎸乪s6璇硶锛屽彉閲忓彧鑳戒娇鐢╲ar瀹氫箟锛屾棤娉曚娇鐢ㄨВ鏋勶紝绠ご鍑芥暟绛夌壒鎬� + */ + +// 寮�濮嬭Е鎽� +function touchstart(event, ownerInstance) { + // 瑙﹀彂浜嬩欢鐨勭粍浠剁殑ComponentDescriptor瀹炰緥 + var instance = event.instance + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓э紝姝ゅ揩鐓ф槸灞炰簬鏁翠釜缁勪欢鐨勶紝鍦╰ouchstart鍜宼ouchmove浜嬩欢涓兘鑳借幏鍙栧埌鐩稿悓鐨勭粨鏋� + var state = instance.getState() + if (state.disabled) return + var touches = event.touches + // 濡傛灉杩涜鐨勬槸澶氭寚瑙︽帶锛屼笉鍏佽杩涜鎿嶄綔 + if (touches && touches.length > 1) return + // 鏍囪瘑褰撳墠涓烘粦鍔ㄤ腑鐘舵�� + state.moving = true + // 璁板綍瑙︽懜寮�濮嬬偣鐨勫潗鏍囧�� + state.startX = touches[0].pageX + state.startY = touches[0].pageY + + ownerInstance.callMethod('closeOther') +} + +// 瑙︽懜婊戝姩 +function touchmove(event, ownerInstance) { + // 瑙﹀彂浜嬩欢鐨勭粍浠剁殑ComponentDescriptor瀹炰緥 + var instance = event.instance + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓� + var state = instance.getState() + if (state.disabled || !state.moving) return + var touches = event.touches + var pageX = touches[0].pageX + var pageY = touches[0].pageY + var moveX = pageX - state.startX + var moveY = pageY - state.startY + var buttonsWidth = state.buttonsWidth + + // 绉诲姩鐨刋杞磋窛绂诲ぇ浜嶻杞磋窛绂伙紝涔熷嵆缁堢偣涓庤捣鐐逛綅缃繛绾匡紝涓嶺杞村す瑙掑皬浜�45搴︽椂锛岀姝㈤〉闈㈡粴鍔� + if (Math.abs(moveX) > Math.abs(moveY) || Math.abs(moveX) > state.threshold) { + event.preventDefault && event.preventDefault() + event.stopPropagation && event.stopPropagation() + } + // 濡傛灉绉诲姩鐨刋杞磋窛绂诲皬浜嶻杞磋窛绂伙紝涔熷嵆缁堢偣浣嶇疆涓庤捣鐐逛綅缃繛绾匡紝涓嶻杞村す瑙掑皬浜�45搴︽椂锛岃涓烘槸椤甸潰涓婁笅婊戝姩锛岃�屼笉鏄乏鍙虫粦鍔ㄥ崟鍏冩牸 + if (Math.abs(moveX) < Math.abs(moveY)) return + + // 闄愬埗鍙虫粦鐨勮窛绂伙紝涓嶅厑璁稿唴瀹归儴鍒嗗線鍙冲亸绉伙紝鍙虫粦浼氬鑷碭杞村亸绉诲�煎ぇ浜�0锛屼互姝ゅ仛鍒ゆ柇 + // 姝ゅ涓嶈兘鐩存帴return锛屽洜涓烘粦鍔ㄨ繃绋嬩腑浼氱己澶辨煇浜涘叧閿偣鍧愭爣锛屼細瀵艰嚧閿欎贡锛屾渶濂界殑鍔炴硶灏辨槸 + // 鍦ㄨ秴鍑哄悗锛岃缃负0 + if (state.status === 'open') { + // 鍦ㄥ紑鍚姸鎬佷笅锛屽悜宸︽粦鍔紝闇�蹇界暐 + if (moveX < 0) moveX = 0 + // 鎯宠鏀惰捣鑿滃崟锛屾渶澶ц兘绉诲姩鐨勮窛绂讳负鎸夐挳鐨勬�诲搴� + if (moveX > buttonsWidth) moveX = buttonsWidth + // 濡傛灉鏄凡缁忔墦寮�浜嗙殑鐘舵�侊紝鍚戝乏婊戝姩鏃讹紝绉诲姩鏀惰捣鑿滃崟 + moveSwipeAction(-buttonsWidth + moveX, instance, ownerInstance) + } else { + // 鍏抽棴鐘舵�佷笅锛屽彸婊戝姩闇�蹇界暐 + if (moveX > 0) moveX = 0 + // 婊戝姩鐨勮窛绂讳笉鍏佽瓒呰繃鎵�鏈夋寜閽殑鎬诲搴︼紝姝ゆ椂鍙兘鏄乏婊戯紝鏈�缁堣缃寜閽殑鎬诲搴︼紝鍚屾椂涓鸿礋鏁� + if (Math.abs(moveX) > buttonsWidth) moveX = -buttonsWidth + // 鍙鏄湪婊戣繃绋嬩腑锛屽氨涓嶆柇绉诲姩鍗曞厓鏍煎唴瀹归儴鍒嗭紝浠庤�屼娇闅愯棌鐨勮彍鍗曟樉绀哄嚭鏉� + moveSwipeAction(moveX, instance, ownerInstance) + } +} + +// 瑙︽懜缁撴潫 +function touchend(event, ownerInstance) { + // 瑙﹀彂浜嬩欢鐨勭粍浠剁殑ComponentDescriptor瀹炰緥 + var instance = event.instance + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓� + var state = instance.getState() + if (!state.moving || state.disabled) return + var touches = event.changedTouches ? event.changedTouches[0] : {} + var pageX = touches.pageX + var pageY = touches.pageY + var moveX = pageX - state.startX + if (state.status === 'open') { + // 鍦ㄥ睍寮�鐨勭姸鎬佷笅锛岀户缁乏婊戯紝鏃犻渶鎿嶄綔 + if (moveX < 0) return + // 鍦ㄥ紑鍚姸鎬佷笅锛岀偣鍑讳竴涓嬪唴瀹瑰尯鍩燂紝moveX涓�0锛屼篃鍗虫病鏈夎繘琛岀Щ鍔紝杩欐椂鎵ц鏀惰捣鑿滃崟閫昏緫 + if (moveX === 0) { + return closeSwipeAction(instance, ownerInstance) + } + // 鍦ㄥ紑鍚姸鎬佷笅锛屾粦鍔ㄨ窛绂诲皬浜庨槇鍊硷紝鍒欓粯璁や负涓嶅叧闂紝鍚屾椂鎭㈠鍘熸潵鐨勬墦寮�鐘舵�� + if (Math.abs(moveX) < state.threshold) { + openSwipeAction(instance, ownerInstance) + } else { + // 濡傛灉婊戝姩璺濈澶т簬闃堝�硷紝鍒欐墽琛屾敹璧烽�昏緫 + closeSwipeAction(instance, ownerInstance) + } + } else { + // 鍦ㄥ叧闂殑鐘舵�佷笅锛屽彸婊戯紝鏃犻渶鎿嶄綔 + if (moveX > 0) return + // 鐞嗙敱鍚屼笂 + if (Math.abs(moveX) < state.threshold) { + closeSwipeAction(instance, ownerInstance) + } else { + openSwipeAction(instance, ownerInstance) + } + } +} + +// 鑾峰彇杩囨浮鏃堕棿 +function getDuration(value) { + if (value.toString().indexOf('s') >= 0) return value + return value > 30 ? value + 'ms' : value + 's' +} + +// 婊戝姩缁撴潫鏃跺垽鏂粦鍔ㄧ殑鏂瑰悜 +function getMoveDirection(instance, ownerInstance) { + var state = instance.getState() +} + +// 绉诲姩婊戝姩閫夋嫨鍣ㄥ唴瀹瑰尯鍩燂紝鍚屾椂鏄剧ず鍑哄叾闅愯棌鐨勮彍鍗� +function moveSwipeAction(moveX, instance, ownerInstance) { + var state = instance.getState() + // 鑾峰彇鎵�鏈夋寜閽殑瀹炰緥锛岄渶瑕侀�氳繃瀹冨幓璁剧疆鎸夐挳鐨勪綅绉� + var buttons = ownerInstance.selectAllComponents('.u-swipe-action-item__right__button') + + // 璁剧疆鑿滃崟鍐呭閮ㄥ垎鐨勫亸绉� + instance.requestAnimationFrame(function() { + instance.setStyle({ + // 璁剧疆translateX鐨勫�� + 'transition': 'none', + transform: 'translateX(' + moveX + 'px)', + '-webkit-transform': 'translateX(' + moveX + 'px)' + }) + }) +} + +// 涓�娆℃�у睍寮�婊戝姩鑿滃崟 +function openSwipeAction(instance, ownerInstance) { + var state = instance.getState() + // 鑾峰彇鎵�鏈夋寜閽殑瀹炰緥锛岄渶瑕侀�氳繃瀹冨幓璁剧疆鎸夐挳鐨勪綅绉� + var buttons = ownerInstance.selectAllComponents('.u-swipe-action-item__right__button') + // 澶勭悊duration鍗曚綅闂 + var duration = getDuration(state.duration) + // 灞曞紑杩囩▼涓紝鏄悜宸︾Щ鍔紝鎵�浠鐨勫亸绉诲簲璇ヤ负璐熷�� + var buttonsWidth = -state.buttonsWidth + instance.requestAnimationFrame(function() { + // 璁剧疆鑿滃崟涓讳綋鍐呭 + instance.setStyle({ + 'transition': 'transform ' + duration, + 'transform': 'translateX(' + buttonsWidth + 'px)', + '-webkit-transform': 'translateX(' + buttonsWidth + 'px)', + }) + }) + setStatus('open', instance, ownerInstance) +} + +// 鏍囪鑿滃崟鐨勫綋鍓嶇姸鎬侊紝open-宸茬粡鎵撳紑锛宑lose-宸茬粡鍏抽棴 +function setStatus(status, instance, ownerInstance) { + var state = instance.getState() + state.status = status + ownerInstance.callMethod('setState', status) +} + +// 涓�娆℃�ф敹璧锋粦鍔ㄨ彍鍗� +function closeSwipeAction(instance, ownerInstance) { + var state = instance.getState() + // 鑾峰彇鎵�鏈夋寜閽殑瀹炰緥锛岄渶瑕侀�氳繃瀹冨幓璁剧疆鎸夐挳鐨勪綅绉� + var buttons = ownerInstance.selectAllComponents('.u-swipe-action-item__right__button') + var len = buttons.length + // 澶勭悊duration鍗曚綅闂 + var duration = getDuration(state.duration) + instance.requestAnimationFrame(function() { + // 璁剧疆鑿滃崟涓讳綋鍐呭 + instance.setStyle({ + 'transition': 'transform ' + duration, + 'transform': 'translateX(0px)', + '-webkit-transform': 'translateX(0px)' + }) + // 璁剧疆鍚勪釜闅愯棌鐨勬寜閽负鏀惰捣鐨勭姸鎬� + for (var i = len - 1; i >= 0; i--) { + buttons[i].setStyle({ + 'transition': 'transform ' + duration, + 'transform': 'translateX(0px)', + '-webkit-transform': 'translateX(0px)' + }) + } + }) + setStatus('close', instance, ownerInstance) +} + +// status鐨勭姸鎬佸彂鐢熷彉鍖� +function statusChange(newValue, oldValue, ownerInstance, instance) { + var state = instance.getState() + if (state.disabled) return + // 鎵撳紑鎴栧叧闂崟鍏冩牸 + if (newValue === 'close' && state.status === 'open') { + closeSwipeAction(instance, ownerInstance) + } else if(newValue === 'open' && state.status === 'close') { + openSwipeAction(instance, ownerInstance) + } +} + +// 鑿滃崟灏哄鍙戠敓鍙樺寲 +function sizeChange(newValue, oldValue, ownerInstance, instance) { + // wxs鍐呯殑灞�閮ㄥ彉閲忓揩鐓� + var state = instance.getState() + state.disabled = newValue.disabled + state.duration = newValue.duration + state.show = newValue.show + state.threshold = newValue.threshold + state.buttons = newValue.buttons + + if (state.buttons) { + var len = state.buttons.length + var buttonsWidth = 0 + var buttons = newValue.buttons + for (var i = 0; i < len; i++) { + buttonsWidth += buttons[i].width + } + } + state.buttonsWidth = buttonsWidth +} + +module.exports = { + touchstart: touchstart, + touchmove: touchmove, + touchend: touchend, + sizeChange: sizeChange, + statusChange: statusChange +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue - backup.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue - backup.js new file mode 100644 index 0000000..6b9f116 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue - backup.js @@ -0,0 +1,270 @@ +// nvue鎿嶄綔dom鐨勫簱锛岀敤浜庤幏鍙杁om鐨勫昂瀵镐俊鎭� +const dom = uni.requireNativePlugin('dom') +// nvue涓敤浜庢搷浣滃厓绱犲姩鐢荤殑搴擄紝绫讳技浜巙ni.animation锛屽彧涓嶈繃uni.animation涓嶈兘鐢ㄤ簬nvue +const animation = uni.requireNativePlugin('animation') + +export default { + data() { + return { + // 鏄惁婊戝姩涓� + moving: false, + // 鐘舵�侊紝open-鎵撳紑鐘舵�侊紝close-鍏抽棴鐘舵�� + status: 'close', + // 寮�濮嬭Е鎽哥偣鐨刋鍜孻杞村潗鏍� + startX: 0, + startY: 0, + // 鎵�鏈夐殣钘忔寜閽殑灏哄淇℃伅鏁扮粍 + buttons: [], + // 鎵�鏈夋寜閽殑鎬诲搴� + buttonsWidth: 0, + // 璁板綍涓婁竴娆$Щ鍔ㄧ殑浣嶇疆鍊� + moveX: 0, + // 璁板綍涓婁竴娆℃粦鍔ㄧ殑浣嶇疆锛岀敤浜庡墠鍚庝袱娆″仛瀵规瘮锛屽鏋滅Щ鍔ㄧ殑璺濈灏忎簬鏌愪竴闃堝�硷紝鍒欒涓哄墠鍚庝箣闂存病鏈夌Щ鍔紝涓轰簡瑙e喅鍙兘瀛樺湪鐨勯�氫俊闃诲闂 + lastX: 0 + } + }, + computed: { + // 鑾峰彇杩囨浮鏃堕棿 + getDuratin() { + let duration = String(this.duration) + // 濡傛灉ms涓哄崟浣嶏紝杩斿洖ms鐨勬暟鍊奸儴鍒� + if (duration.indexOf('ms') >= 0) return parseInt(duration) + // 濡傛灉s涓哄崟浣嶏紝涓轰簡寰楀埌ms鐨勬暟鍊硷紝闇�瑕佷箻浠�1000 + if (duration.indexOf('s') >= 0) return parseInt(duration) * 1000 + // 濡傛灉鍊间紶浜嗘暟鍊硷紝涓斿皬浜�30锛岃涓烘槸s鍗曚綅 + duration = Number(duration) + return duration < 30 ? duration * 1000 : duration + } + }, + watch: { + show: { + immediate: true, + handler(n) { + // if(n === true) { + // uni.$u.sleep(50).then(() => { + // this.openSwipeAction() + // }) + // } else { + // this.closeSwipeAction() + // } + } + } + }, + mounted() { + uni.$u.sleep(20).then(() => { + this.queryRect() + }) + }, + methods: { + close() { + this.closeSwipeAction() + }, + // 瑙︽懜鍗曞厓鏍� + touchstart(event) { + if (this.disabled) return + this.closeOther() + const { touches } = event + // 璁板綍瑙︽懜寮�濮嬬偣鐨勫潗鏍囧�� + this.startX = touches[0].pageX + this.startY = touches[0].pageY + }, + // // 瑙︽懜婊戝姩 + touchmove(event) { + if (this.disabled) return + const { touches } = event + const { pageX } = touches[0] + const { pageY } = touches[0] + let moveX = pageX - this.startX + const moveY = pageY - this.startY + const { buttonsWidth } = this + const len = this.buttons.length + + // 鍒ゆ柇鍓嶅悗涓ゆ鐨勭Щ鍔ㄨ窛绂伙紝濡傛灉灏忎簬涓�瀹氬�硷紝鍒欎笉杩涜绉诲姩澶勭悊 + if (Math.abs(pageX - this.lastX) < 0.3) return + this.lastX = pageX + + // 绉诲姩鐨刋杞磋窛绂诲ぇ浜嶻杞磋窛绂伙紝涔熷嵆缁堢偣涓庤捣鐐逛綅缃繛绾匡紝涓嶺杞村す瑙掑皬浜�45搴︽椂锛岀姝㈤〉闈㈡粴鍔� + if (Math.abs(moveX) > Math.abs(moveY) || Math.abs(moveX) > this.threshold) { + event.stopPropagation() + } + // 濡傛灉绉诲姩鐨刋杞磋窛绂诲皬浜嶻杞磋窛绂伙紝涔熷嵆缁堢偣浣嶇疆涓庤捣鐐逛綅缃繛绾匡紝涓嶻杞村す瑙掑皬浜�45搴︽椂锛岃涓烘槸椤甸潰涓婁笅婊戝姩锛岃�屼笉鏄乏鍙虫粦鍔ㄥ崟鍏冩牸 + if (Math.abs(moveX) < Math.abs(moveY)) return + + // 闄愬埗鍙虫粦鐨勮窛绂伙紝涓嶅厑璁稿唴瀹归儴鍒嗗線鍙冲亸绉伙紝鍙虫粦浼氬鑷碭杞村亸绉诲�煎ぇ浜�0锛屼互姝ゅ仛鍒ゆ柇 + // 姝ゅ涓嶈兘鐩存帴return锛屽洜涓烘粦鍔ㄨ繃绋嬩腑浼氱己澶辨煇浜涘叧閿偣鍧愭爣锛屼細瀵艰嚧閿欎贡锛屾渶濂界殑鍔炴硶灏辨槸 + // 鍦ㄨ秴鍑哄悗锛岃缃负0 + if (this.status === 'open') { + // 鍦ㄥ紑鍚姸鎬佷笅锛屽悜宸︽粦鍔紝闇�蹇界暐 + if (moveX < 0) moveX = 0 + // 鎯宠鏀惰捣鑿滃崟锛屾渶澶ц兘绉诲姩鐨勮窛绂讳负鎸夐挳鐨勬�诲搴� + if (moveX > buttonsWidth) moveX = buttonsWidth + // 濡傛灉鏄凡缁忔墦寮�浜嗙殑鐘舵�侊紝鍚戝乏婊戝姩鏃讹紝绉诲姩鏀惰捣鑿滃崟 + this.moveSwipeAction(-buttonsWidth + moveX) + } else { + // 鍏抽棴鐘舵�佷笅锛屽彸婊戝姩闇�蹇界暐 + if (moveX > 0) moveX = 0 + // 婊戝姩鐨勮窛绂讳笉鍏佽瓒呰繃鎵�鏈夋寜閽殑鎬诲搴︼紝姝ゆ椂鍙兘鏄乏婊戯紝鏈�缁堣缃寜閽殑鎬诲搴︼紝鍚屾椂涓鸿礋鏁� + if (Math.abs(moveX) > buttonsWidth) moveX = -buttonsWidth + // 鍙鏄湪婊戣繃绋嬩腑锛屽氨涓嶆柇绉诲姩鑿滃崟鐨勫唴瀹归儴鍒嗭紝浠庤�屼娇闅愯棌鐨勮彍鍗曟樉绀哄嚭鏉� + this.moveSwipeAction(moveX) + } + }, + // 鍗曞厓鏍肩粨鏉熻Е鎽� + touchend(event) { + if (this.disabled) return + const touches = event.changedTouches ? event.changedTouches[0] : {} + const { pageX } = touches + const { pageY } = touches + const { buttonsWidth } = this + this.moveX = pageX - this.startX + if (this.status === 'open') { + // 鍦ㄥ睍寮�鐨勭姸鎬佷笅锛岀户缁乏婊戯紝鏃犻渶鎿嶄綔 + if (this.moveX < 0) this.moveX = 0 + if (this.moveX > buttonsWidth) this.moveX = buttonsWidth + // 鍦ㄥ紑鍚姸鎬佷笅锛岀偣鍑讳竴涓嬪唴瀹瑰尯鍩燂紝moveX涓�0锛屼篃鍗虫病鏈夎繘琛岀Щ鍔紝杩欐椂鎵ц鏀惰捣鑿滃崟閫昏緫 + if (this.moveX === 0) { + return this.closeSwipeAction() + } + // 鍦ㄥ紑鍚姸鎬佷笅锛屾粦鍔ㄨ窛绂诲皬浜庨槇鍊硷紝鍒欓粯璁や负涓嶅叧闂紝鍚屾椂鎭㈠鍘熸潵鐨勬墦寮�鐘舵�� + if (Math.abs(this.moveX) < this.threshold) { + this.openSwipeAction() + } else { + // 濡傛灉婊戝姩璺濈澶т簬闃堝�硷紝鍒欐墽琛屾敹璧烽�昏緫 + this.closeSwipeAction() + } + } else { + // 鍦ㄥ叧闂殑鐘舵�佷笅锛屽彸婊戯紝鏃犻渶鎿嶄綔 + if (this.moveX >= 0) this.moveX = 0 + if (this.moveX <= -buttonsWidth) this.moveX = -buttonsWidth + // 鐞嗙敱鍚屼笂 + if (Math.abs(this.moveX) < this.threshold) { + this.closeSwipeAction() + } else { + this.openSwipeAction() + } + } + }, + // 绉诲姩婊戝姩閫夋嫨鍣ㄥ唴瀹瑰尯鍩燂紝鍚屾椂鏄剧ず鍑哄叾闅愯棌鐨勮彍鍗� + moveSwipeAction(moveX) { + if (this.moving) return + this.moving = true + + let previewButtonsMoveX = 0 + const len = this.buttons.length + animation.transition(this.$refs['u-swipe-action-item__content'].ref, { + styles: { + transform: `translateX(${moveX}px)` + }, + timingFunction: 'linear' + }, () => { + this.moving = false + }) + // 鎸夐挳鐨勭粍鐨勯暱搴� + for (let i = len - 1; i >= 0; i--) { + const buttonRef = this.$refs[`u-swipe-action-item__right__button-${i}`][0].ref + // 閫氳繃姣斾緥锛屽緱鍑哄厓绱犺嚜韬绉诲姩鐨勮窛绂� + const translateX = this.buttons[i].width / this.buttonsWidth * moveX + // 鏈�缁堢Щ鍔ㄧ殑璺濈锛屾槸閫氳繃鑷韩姣斾緥绠楀嚭鐨勮窛绂伙紝鍐嶅姞涓婂湪瀹冧箣鍓嶆墍鏈夋寜閽Щ鍔ㄧ殑璺濈涔嬪拰 + const realTranslateX = translateX + previewButtonsMoveX + animation.transition(buttonRef, { + styles: { + transform: `translateX(${realTranslateX}px)` + }, + duration: 0, + delay: 0, + timingFunction: 'linear' + }, () => {}) + // 璁板綍鏈寜閽箣鍓嶇殑鎵�鏈夋寜閽殑绉诲姩璺濈涔嬪拰 + previewButtonsMoveX += translateX + } + }, + // 鍏抽棴鑿滃崟 + closeSwipeAction() { + if (this.status === 'close') return + this.moving = true + const { buttonsWidth } = this + animation.transition(this.$refs['u-swipe-action-item__content'].ref, { + styles: { + transform: 'translateX(0px)' + }, + duration: this.getDuratin, + timingFunction: 'ease-in-out' + }, () => { + this.status = 'close' + this.moving = false + this.closeHandler() + }) + // 鎸夐挳鐨勭粍鐨勯暱搴� + const len = this.buttons.length + for (let i = len - 1; i >= 0; i--) { + const buttonRef = this.$refs[`u-swipe-action-item__right__button-${i}`][0].ref + // 濡傛灉涓嶆弧瓒宠竟鐣屾潯浠讹紝杩斿洖 + if (this.buttons.length === 0 || !this.buttons[i] || !this.buttons[i].width) return + + animation.transition(buttonRef, { + styles: { + transform: 'translateX(0px)' + }, + duration: this.getDuratin, + timingFunction: 'ease-in-out' + }, () => {}) + } + }, + // 鎵撳紑鑿滃崟 + openSwipeAction() { + if (this.status === 'open') return + this.moving = true + const buttonsWidth = -this.buttonsWidth + let previewButtonsMoveX = 0 + animation.transition(this.$refs['u-swipe-action-item__content'].ref, { + styles: { + transform: `translateX(${buttonsWidth}px)` + }, + duration: this.getDuratin, + timingFunction: 'ease-in-out' + }, () => { + this.status = 'open' + this.moving = false + this.openHandler() + }) + // 鎸夐挳鐨勭粍鐨勯暱搴� + const len = this.buttons.length + for (let i = len - 1; i >= 0; i--) { + const buttonRef = this.$refs[`u-swipe-action-item__right__button-${i}`][0].ref + // 濡傛灉涓嶆弧瓒宠竟鐣屾潯浠讹紝杩斿洖 + if (this.buttons.length === 0 || !this.buttons[i] || !this.buttons[i].width) return + // 閫氳繃姣斾緥锛屽緱鍑哄厓绱犺嚜韬绉诲姩鐨勮窛绂� + const translateX = this.buttons[i].width / this.buttonsWidth * buttonsWidth + // 鏈�缁堢Щ鍔ㄧ殑璺濈锛屾槸閫氳繃鑷韩姣斾緥绠楀嚭鐨勮窛绂伙紝鍐嶅姞涓婂湪瀹冧箣鍓嶆墍鏈夋寜閽Щ鍔ㄧ殑璺濈涔嬪拰 + const realTranslateX = translateX + previewButtonsMoveX + animation.transition(buttonRef, { + styles: { + transform: `translateX(${realTranslateX}px)` + }, + duration: this.getDuratin, + timingFunction: 'ease-in-out' + }, () => {}) + previewButtonsMoveX += translateX + } + }, + // 鏌ヨ鎸夐挳鑺傜偣淇℃伅 + queryRect() { + // 鍘嗛亶鎵�鏈夋寜閽暟缁勶紝閫氳繃getRectByDom杩斿洖涓�涓猵romise + const promiseAll = this.rightOptions.map((item, index) => this.getRectByDom(this.$refs[`u-swipe-action-item__right__button-${index}`][0])) + // 閫氳繃promise.all鏂规硶锛岃鎵�鏈夋寜閽殑鏌ヨ缁撴灉杩斿洖涓�涓暟缁勭殑褰㈠紡 + Promise.all(promiseAll).then((sizes) => { + this.buttons = sizes + // 璁$畻鎵�鏈夋寜閽�诲搴� + this.buttonsWidth = sizes.reduce((sum, cur) => sum + cur.width, 0) + }) + }, + // 閫氳繃nvue鐨刣om妯″潡锛屾煡璇㈣妭鐐逛俊鎭� + getRectByDom(ref) { + return new Promise((resolve) => { + dom.getComponentRect(ref, (res) => { + resolve(res.size) + }) + }) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue.js new file mode 100644 index 0000000..118e4cf --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/nvue.js @@ -0,0 +1,174 @@ +// nvue鎿嶄綔dom鐨勫簱锛岀敤浜庤幏鍙杁om鐨勫昂瀵镐俊鎭� +const dom = uni.requireNativePlugin('dom'); +const bindingX = uni.requireNativePlugin('bindingx'); +const animation = uni.requireNativePlugin('animation'); + +export default { + data() { + return { + // 鎵�鏈夋寜閽殑鎬诲搴� + buttonsWidth: 0, + // 鏄惁姝e湪绉诲姩涓� + moving: false + } + }, + computed: { + // 鑾峰彇杩囨浮鏃堕棿 + getDuratin() { + let duration = String(this.duration) + // 濡傛灉ms涓哄崟浣嶏紝杩斿洖ms鐨勬暟鍊奸儴鍒� + if (duration.indexOf('ms') >= 0) return parseInt(duration) + // 濡傛灉s涓哄崟浣嶏紝涓轰簡寰楀埌ms鐨勬暟鍊硷紝闇�瑕佷箻浠�1000 + if (duration.indexOf('s') >= 0) return parseInt(duration) * 1000 + // 濡傛灉鍊间紶浜嗘暟鍊硷紝涓斿皬浜�30锛岃涓烘槸s鍗曚綅 + duration = Number(duration) + return duration < 30 ? duration * 1000 : duration + } + }, + watch: { + show(n) { + if(n) { + this.moveCellByAnimation('open') + } else { + this.moveCellByAnimation('close') + } + } + }, + mounted() { + this.initialize() + }, + methods: { + initialize() { + this.queryRect() + }, + // 鍏抽棴鍗曞厓鏍硷紝鐢ㄤ簬鎵撳紑涓�涓紝鑷姩鍏抽棴鍏朵粬鍗曞厓鏍肩殑鍦烘櫙 + closeHandler() { + if(this.status === 'open') { + // 濡傛灉鍦ㄦ墦寮�鐘舵�佷笅锛岃繘琛岀偣鍑荤殑璇濓紝鐩存帴鍏抽棴鍗曞厓鏍� + return this.moveCellByAnimation('close') && this.unbindBindingX() + } + }, + // 鐐瑰嚮鍗曞厓鏍� + clickHandler() { + // 濡傛灉鍦ㄧЩ鍔ㄤ腑琚偣鍑伙紝杩涜蹇界暐 + if(this.moving) return + // 灏濊瘯鍏抽棴鍏朵粬鎵撳紑鐨勫崟鍏冩牸 + this.parent && this.parent.closeOther(this) + if(this.status === 'open') { + // 濡傛灉鍦ㄦ墦寮�鐘舵�佷笅锛岃繘琛岀偣鍑荤殑璇濓紝鐩存帴鍏抽棴鍗曞厓鏍� + return this.moveCellByAnimation('close') && this.unbindBindingX() + } + }, + // 婊戝姩鍗曞厓鏍� + onTouchstart(e) { + // 濡傛灉褰撳墠姝e湪绉诲姩涓紝鎴栬�卍isabled鐘舵�侊紝鍒欒繑鍥� + if(this.moving || this.disabled) { + return this.unbindBindingX() + } + if(this.status === 'open') { + // 濡傛灉鍦ㄦ墦寮�鐘舵�佷笅锛岃繘琛岀偣鍑荤殑璇濓紝鐩存帴鍏抽棴鍗曞厓鏍� + return this.moveCellByAnimation('close') && this.unbindBindingX() + } + // 鐗规畩鎯呭喌涓嬶紝e鍙兘涓嶄负涓�涓璞� + e?.stopPropagation && e.stopPropagation() + e?.preventDefault && e.preventDefault() + this.moving = true + // 鑾峰彇鍏冪礌ref + const content = this.getContentRef() + let expression = `min(max(${-this.buttonsWidth}, x), 0)` + // 灏濊瘯鍏抽棴鍏朵粬鎵撳紑鐨勫崟鍏冩牸 + this.parent && this.parent.closeOther(this) + + // 闃块噷涓轰簡KPI鑰屽紑婧愮殑BindingX + this.panEvent = bindingX.bind({ + anchor: content, + eventType: 'pan', + props: [{ + element: content, + // 缁戝畾width灞炴�э紝璁剧疆鍏跺搴﹀�� + property: 'transform.translateX', + expression + }] + }, (res) => { + this.moving = false + if (res.state === 'end' || res.state === 'exit') { + const deltaX = res.deltaX + if(deltaX <= -this.buttonsWidth || deltaX >= 0) { + // 濡傛灉瑙︽懜婊戝姩鐨勮繃绋嬩腑锛屽ぇ浜庡崟鍏冩牸鐨勬�诲搴︼紝鎴栬�呭ぇ浜�0锛屾剰鍛崇潃宸茬粡鍔ㄨ繃婊戝姩杈惧埌浜嗘墦寮�鎴栬�呭叧闂殑鐘舵�� + // 杩欓噷鐩存帴杩涜鐘舵�佺殑鏍囪 + this.$nextTick(() => { + this.status = deltaX <= -this.buttonsWidth ? 'open' : 'close' + }) + } else if(Math.abs(deltaX) > uni.$u.getPx(this.threshold)) { + // 鍦ㄧЩ鍔ㄥぇ浜庨槇鍊笺�佸苟涓斿皬浜庢�绘寜閽搴︽椂锛岃繘琛岃嚜鍔ㄦ墦寮�鎴栬�呭叧闂� + // 绉诲姩璺濈澶т簬0鏃讹紝鎰忓懗鐫�闇�瑕佸叧闂姸鎬� + if(Math.abs(deltaX) < this.buttonsWidth) { + this.moveCellByAnimation(deltaX > 0 ? 'close' : 'open') + } + } else { + // 鍦ㄥ皬浜庨槇鍊兼椂锛岃繘琛屽叧闂搷浣�(濡傛灉鍦ㄦ墦寮�鐘舵�佷笅锛屽皢涓嶄細鎵цbindingX) + this.moveCellByAnimation('close') + } + } + }) + }, + // 閲婃斁bindingX + unbindBindingX() { + // 閲婃斁涓婁竴娆$殑璧勬簮 + if (this?.panEvent?.token != 0) { + bindingX.unbind({ + token: this.panEvent?.token, + // pan涓烘墜鍔夸簨浠� + eventType: 'pan' + }) + } + }, + // 鏌ヨ鎸夐挳鑺傜偣淇℃伅 + queryRect() { + // 鍘嗛亶鎵�鏈夋寜閽暟缁勶紝閫氳繃getRectByDom杩斿洖涓�涓猵romise + const promiseAll = this.options.map((item, index) => { + return this.getRectByDom(this.$refs[`u-swipe-action-item__right__button-${index}`][0]) + }) + // 閫氳繃promise.all鏂规硶锛岃鎵�鏈夋寜閽殑鏌ヨ缁撴灉杩斿洖涓�涓暟缁勭殑褰㈠紡 + Promise.all(promiseAll).then(sizes => { + this.buttons = sizes + // 璁$畻鎵�鏈夋寜閽�诲搴� + this.buttonsWidth = sizes.reduce((sum, cur) => sum + cur.width, 0) + }) + }, + // 閫氳繃nvue鐨刣om妯″潡锛屾煡璇㈣妭鐐逛俊鎭� + getRectByDom(ref) { + return new Promise(resolve => { + dom.getComponentRect(ref, res => { + resolve(res.size) + }) + }) + }, + // 绉诲姩鍗曞厓鏍煎埌宸﹁竟鎴栬�呭彸杈瑰敖澶� + moveCellByAnimation(status = 'open') { + if(this.moving) return + // 鏍囪瘑褰撳墠鐘舵�� + this.moveing = true + const content = this.getContentRef() + const x = status === 'open' ? -this.buttonsWidth : 0 + animation.transition(content, { + styles: { + transform: `translateX(${x}px)`, + }, + duration: uni.$u.getDuration(this.duration, false), + timingFunction: 'ease-in-out' + }, () => { + this.moving = false + this.status = status + this.unbindBindingX() + }) + }, + // 鑾峰彇鍏冪礌ref + getContentRef() { + return this.$refs['u-swipe-action-item__content'].ref + }, + beforeDestroy() { + this.unbindBindingX() + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/props.js new file mode 100644 index 0000000..ed82a42 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/props.js @@ -0,0 +1,41 @@ +export default { + props: { + // 鎺у埗鎵撳紑鎴栬�呭叧闂� + show: { + type: Boolean, + default: uni.$u.props.swipeActionItem.show + }, + // 鏍囪瘑绗︼紝濡傛灉鏄痸-for锛屽彲鐢╥ndex绱㈠紩鍊� + name: { + type: [String, Number], + default: uni.$u.props.swipeActionItem.name + }, + // 鏄惁绂佺敤 + disabled: { + type: Boolean, + default: uni.$u.props.swipeActionItem.disabled + }, + // 鏄惁鑷姩鍏抽棴鍏朵粬swipe鎸夐挳缁� + autoClose: { + type: Boolean, + default: uni.$u.props.swipeActionItem.autoClose + }, + // 婊戝姩璺濈闃堝�硷紝鍙湁澶т簬姝ゅ�硷紝鎵嶈璁や负鏄鎵撳紑鑿滃崟 + threshold: { + type: Number, + default: uni.$u.props.swipeActionItem.threshold + }, + // 鍙充晶鎸夐挳鍐呭 + options: { + type: Array, + default() { + return uni.$u.props.swipeActionItem.rightOptions + } + }, + // 鍔ㄧ敾杩囨浮鏃堕棿锛屽崟浣峬s + duration: { + type: [String, Number], + default: uni.$u.props.swipeActionItem.duration + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue new file mode 100644 index 0000000..1fab304 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue @@ -0,0 +1,190 @@ +<template> + <view class="u-swipe-action-item" ref="u-swipe-action-item"> + <view class="u-swipe-action-item__right"> + <slot name="button"> + <view v-for="(item,index) in options" :key="index" class="u-swipe-action-item__right__button" + :ref="`u-swipe-action-item__right__button-${index}`" :style="[{ + alignItems: item.style && item.style.borderRadius ? 'center' : 'stretch' + }]" @tap="buttonClickHandler(item, index)"> + <view class="u-swipe-action-item__right__button__wrapper" :style="[{ + backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD', + borderRadius: item.style && item.style.borderRadius ? item.style.borderRadius : '0', + padding: item.style && item.style.borderRadius ? '0' : '0 15px', + }, item.style]"> + <u-icon v-if="item.icon" :name="item.icon" + :color="item.style && item.style.color ? item.style.color : '#ffffff'" + :size="item.iconSize ? $u.addUnit(item.iconSize) : item.style && item.style.fontSize ? $u.getPx(item.style.fontSize) * 1.2 : 17" + :customStyle="{ + marginRight: item.text ? '2px' : 0 + }"></u-icon> + <text v-if="item.text" class="u-swipe-action-item__right__button__wrapper__text u-line-1" + :style="[{ + color: item.style && item.style.color ? item.style.color : '#ffffff', + fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px', + lineHeight: item.style && item.style.fontSize ? item.style.fontSize : '16px', + }]">{{ item.text }}</text> + </view> + </view> + </slot> + </view> + <!-- #ifdef APP-VUE || MP-WEIXIN || H5 || MP-QQ --> + <view class="u-swipe-action-item__content" @touchstart="wxs.touchstart" @touchmove="wxs.touchmove" + @touchend="wxs.touchend" :status="status" :change:status="wxs.statusChange" :size="size" + :change:size="wxs.sizeChange"> + <!-- #endif --> + <!-- #ifdef APP-NVUE --> + <view class="u-swipe-action-item__content" ref="u-swipe-action-item__content" @panstart="onTouchstart" + @tap="clickHandler"> + <!-- #endif --> + <slot /> + </view> + </view> +</template> +<!-- #ifdef APP-VUE || MP-WEIXIN || H5 || MP-QQ --> +<script src="./index.wxs" module="wxs" lang="wxs"></script> +<!-- #endif --> +<script> + import touch from '../../libs/mixin/touch.js' + import props from './props.js'; + // #ifdef APP-NVUE + import nvue from './nvue.js'; + // #endif + // #ifdef APP-VUE || MP-WEIXIN || H5 || MP-QQ + import wxs from './wxs.js'; + // #endif + /** + * SwipeActionItem 婊戝姩鍗曞厓鏍煎瓙缁勪欢 + * @description 璇ョ粍浠朵竴鑸敤浜庡乏婊戝敜鍑烘搷浣滆彍鍗曠殑鍦烘櫙锛岀敤鐨勬渶澶氱殑鏄乏婊戝垹闄ゆ搷浣� + * @tutorial https://www.uviewui.com/components/swipeAction.html + * @property {Boolean} show 鎺у埗鎵撳紑鎴栬�呭叧闂紙榛樿 false 锛� + * @property {String | Number} index 鏍囪瘑绗︼紝濡傛灉鏄痸-for锛屽彲鐢╥ndex绱㈠紩 + * @property {Boolean} disabled 鏄惁绂佺敤锛堥粯璁� false 锛� + * @property {Boolean} autoClose 鏄惁鑷姩鍏抽棴鍏朵粬swipe鎸夐挳缁勶紙榛樿 true 锛� + * @property {Number} threshold 婊戝姩璺濈闃堝�硷紝鍙湁澶т簬姝ゅ�硷紝鎵嶈璁や负鏄鎵撳紑鑿滃崟锛堥粯璁� 30 锛� + * @property {Array} options 鍙充晶鎸夐挳鍐呭 + * @property {String | Number} duration 鍔ㄧ敾杩囨浮鏃堕棿锛屽崟浣峬s锛堥粯璁� 350 锛� + * @event {Function(index)} open 缁勪欢鎵撳紑鏃惰Е鍙� + * @event {Function(index)} close 缁勪欢鍏抽棴鏃惰Е鍙� + * @example <u-swipe-action><u-swipe-action-item :options="options1" ></u-swipe-action-item></u-swipe-action> + */ + export default { + name: 'u-swipe-action-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props, touch], + // #ifdef APP-NVUE + mixins: [uni.$u.mpMixin, uni.$u.mixin, props, nvue, touch], + // #endif + // #ifdef APP-VUE || MP-WEIXIN || H5 || MP-QQ + mixins: [uni.$u.mpMixin, uni.$u.mixin, props, touch, wxs], + // #endif + data() { + return { + // 鎸夐挳鐨勫昂瀵镐俊鎭� + size: {}, + // 鐖剁粍浠秛-swipe-action鐨勫弬鏁� + parentData: { + autoClose: true, + }, + // 褰撳墠鐘舵�侊紝open-鎵撳紑锛宑lose-鍏抽棴 + status: 'close', + } + }, + watch: { + // 鐢变簬wxs鏃犳硶鐩存帴璇诲彇澶栭儴鐨勫�硷紝闇�瑕佸湪澶栭儴鍊煎彉鍖栨椂锛岄噸鏂版墽琛岃祴鍊奸�昏緫 + wxsInit(newValue, oldValue) { + this.queryRect() + } + }, + computed: { + wxsInit() { + return [this.disabled, this.autoClose, this.threshold, this.options, this.duration] + } + }, + mounted() { + this.init() + }, + methods: { + init() { + // 鍒濆鍖栫埗缁勪欢鏁版嵁 + this.updateParentData() + // #ifndef APP-NVUE + uni.$u.sleep().then(() => { + this.queryRect() + }) + // #endif + }, + updateParentData() { + // 姝ゆ柟娉曞湪mixin涓� + this.getParentData('u-swipe-action') + }, + // #ifndef APP-NVUE + // 鏌ヨ鑺傜偣 + queryRect() { + this.$uGetRect('.u-swipe-action-item__right__button', true).then(buttons => { + this.size = { + buttons, + show: this.show, + disabled: this.disabled, + threshold: this.threshold, + duration: this.duration + } + }) + }, + // #endif + // 鎸夐挳琚偣鍑� + buttonClickHandler(item, index) { + this.$emit('click', { + index, + name: this.name + }) + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-swipe-action-item { + position: relative; + overflow: hidden; + /* #ifndef APP-NVUE || MP-WEIXIN */ + touch-action: pan-y; + /* #endif */ + + &__content { + background-color: #FFFFFF; + z-index: 10; + } + + &__right { + position: absolute; + top: 0; + bottom: 0; + right: 0; + @include flex; + + &__button { + @include flex; + justify-content: center; + overflow: hidden; + align-items: center; + + &__wrapper { + @include flex; + align-items: center; + justify-content: center; + padding: 0 15px; + + &__text { + @include flex; + align-items: center; + color: #FFFFFF; + font-size: 15px; + text-align: center; + justify-content: center; + } + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/wxs.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/wxs.js new file mode 100644 index 0000000..ee49c10 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action-item/wxs.js @@ -0,0 +1,15 @@ +export default { + methods: { + // 鍏抽棴鏃舵墽琛� + closeHandler() { + this.status = 'close' + }, + setState(status) { + this.status = status + }, + closeOther() { + // 灏濊瘯鍏抽棴鍏朵粬鎵撳紑鐨勫崟鍏冩牸 + this.parent && this.parent.closeOther(this) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/props.js new file mode 100644 index 0000000..3a84536 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/props.js @@ -0,0 +1,9 @@ +export default { + props: { + // 鏄惁鑷姩鍏抽棴鍏朵粬swipe鎸夐挳缁� + autoClose: { + type: Boolean, + default: uni.$u.props.swipeAction.autoClose + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/u-swipe-action.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/u-swipe-action.vue new file mode 100644 index 0000000..ad8f019 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swipe-action/u-swipe-action.vue @@ -0,0 +1,67 @@ +<template> + <view class="u-swipe-action"> + <slot></slot> + </view> +</template> + +<script> + import props from './props.js'; + /** + * SwipeAction 婊戝姩鍗曞厓鏍� + * @description 璇ョ粍浠朵竴鑸敤浜庡乏婊戝敜鍑烘搷浣滆彍鍗曠殑鍦烘櫙锛岀敤鐨勬渶澶氱殑鏄乏婊戝垹闄ゆ搷浣� + * @tutorial https://www.uviewui.com/components/swipeAction.html + * @property {Boolean} autoClose 鏄惁鑷姩鍏抽棴鍏朵粬swipe鎸夐挳缁� + * @event {Function(index)} click 鐐瑰嚮缁勪欢鏃惰Е鍙� + * @example <u-swipe-action><u-swipe-action-item :rightOptions="options1" ></u-swipe-action-item></u-swipe-action> + */ + export default { + name: 'u-swipe-action', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return {} + }, + provide() { + return { + swipeAction: this + } + }, + computed: { + // 杩欓噷computed鐨勫彉閲忥紝閮芥槸瀛愮粍浠秛-swipe-action-item闇�瑕佺敤鍒扮殑锛岀敱浜庡ご鏉″皬绋嬪簭鐨勫吋瀹规�у樊寮傦紝瀛愮粍浠舵棤娉曞疄鏃剁洃鍚埗缁勪欢鍙傛暟鐨勫彉鍖� + // 鎵�浠ラ渶瑕佹墜鍔ㄩ�氱煡瀛愮粍浠讹紝杩欓噷杩斿洖涓�涓猵arentData鍙橀噺锛屼緵watch鐩戝惉锛屽湪鍏朵腑鍘婚�氱煡姣忎竴涓瓙缁勪欢閲嶆柊浠庣埗缁勪欢(u-swipe-action-item) + // 鎷夊彇鐖剁粍浠舵柊鐨勫彉鍖栧悗鐨勫弬鏁� + parentData() { + return [this.autoClose] + } + }, + watch: { + // 褰撶埗缁勪欢闇�瑕佸瓙缁勪欢闇�瑕佸叡浜殑鍙傛暟鍙戠敓浜嗗彉鍖栵紝鎵嬪姩閫氱煡瀛愮粍浠� + parentData() { + if (this.children.length) { + this.children.map(child => { + // 鍒ゆ柇瀛愮粍浠�(u-swipe-action-item)濡傛灉鏈塽pdateParentData鏂规硶鐨勮瘽锛屽氨灏辨墽琛�(鎵ц鐨勭粨鏋滄槸瀛愮粍浠堕噸鏂颁粠鐖剁粍浠舵媺鍙栦簡鏈�鏂扮殑鍊�) + typeof(child.updateParentData) === 'function' && child.updateParentData() + }) + } + }, + }, + created() { + this.children = [] + }, + methods: { + closeOther(child) { + if (this.autoClose) { + // 鍘嗛亶鎵�鏈夌殑鍗曞厓鏍硷紝鎵惧嚭闈炲綋鍓嶆搷浣滀腑鐨勫崟鍏冩牸锛岃繘琛屽叧闂� + this.children.map((item, index) => { + if (child !== item) { + item.closeHandler() + } + }) + } + } + } + } +</script> + +<style lang="scss" scoped> + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/props.js new file mode 100644 index 0000000..302aca7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/props.js @@ -0,0 +1,29 @@ +export default { + props: { + // 杞挱鐨勯暱搴� + length: { + type: [String, Number], + default: uni.$u.props.swiperIndicator.length + }, + // 褰撳墠澶勪簬娲诲姩鐘舵�佺殑杞挱鐨勭储寮� + current: { + type: [String, Number], + default: uni.$u.props.swiperIndicator.current + }, + // 鎸囩ず鍣ㄩ潪婵�娲婚鑹� + indicatorActiveColor: { + type: String, + default: uni.$u.props.swiperIndicator.indicatorActiveColor + }, + // 鎸囩ず鍣ㄧ殑婵�娲婚鑹� + indicatorInactiveColor: { + type: String, + default: uni.$u.props.swiperIndicator.indicatorInactiveColor + }, + // 鎸囩ず鍣ㄦā寮忥紝line-绾垮瀷锛宒ot-鐐瑰瀷 + indicatorMode: { + type: String, + default: uni.$u.props.swiperIndicator.indicatorMode + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/u-swiper-indicator.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/u-swiper-indicator.vue new file mode 100644 index 0000000..8923e13 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper-indicator/u-swiper-indicator.vue @@ -0,0 +1,110 @@ +<template> + <view class="u-swiper-indicator"> + <view + class="u-swiper-indicator__wrapper" + v-if="indicatorMode === 'line'" + :class="[`u-swiper-indicator__wrapper--${indicatorMode}`]" + :style="{ + width: $u.addUnit(lineWidth * length), + backgroundColor: indicatorInactiveColor + }" + > + <view + class="u-swiper-indicator__wrapper--line__bar" + :style="[lineStyle]" + ></view> + </view> + <view + class="u-swiper-indicator__wrapper" + v-if="indicatorMode === 'dot'" + > + <view + class="u-swiper-indicator__wrapper__dot" + v-for="(item, index) in length" + :key="index" + :class="[index === current && 'u-swiper-indicator__wrapper__dot--active']" + :style="[dotStyle(index)]" + > + + </view> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * SwiperIndicator 杞挱鍥炬寚绀哄櫒 + * @description 璇ョ粍浠朵竴鑸敤浜庡鑸疆鎾紝骞垮憡灞曠ず绛夊満鏅�,鍙紑绠卞嵆鐢紝 + * @tutorial https://www.uviewui.com/components/swiper.html + * @property {String | Number} length 杞挱鐨勯暱搴︼紙榛樿 0 锛� + * @property {String | Number} current 褰撳墠澶勪簬娲诲姩鐘舵�佺殑杞挱鐨勭储寮曪紙榛樿 0 锛� + * @property {String} indicatorActiveColor 鎸囩ず鍣ㄩ潪婵�娲婚鑹� + * @property {String} indicatorInactiveColor 鎸囩ず鍣ㄧ殑婵�娲婚鑹� + * @property {String} indicatorMode 鎸囩ず鍣ㄦā寮忥紙榛樿 'line' 锛� + * @example <u-swiper :list="list4" indicator keyName="url" :autoplay="false"></u-swiper> + */ + export default { + name: 'u-swiper-indicator', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + lineWidth: 22 + } + }, + computed: { + // 鎸囩ず鍣ㄤ负绾垮瀷鐨勬牱寮� + lineStyle() { + let style = {} + style.width = uni.$u.addUnit(this.lineWidth) + style.transform = `translateX(${ uni.$u.addUnit(this.current * this.lineWidth) })` + style.backgroundColor = this.indicatorActiveColor + return style + }, + // 鎸囩ず鍣ㄤ负鐐瑰瀷鐨勬牱寮� + dotStyle() { + return index => { + let style = {} + style.backgroundColor = index === this.current ? this.indicatorActiveColor : this.indicatorInactiveColor + return style + } + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-swiper-indicator { + + &__wrapper { + @include flex; + + &--line { + border-radius: 100px; + height: 4px; + + &__bar { + width: 22px; + height: 4px; + border-radius: 100px; + background-color: #FFFFFF; + transition: transform 0.3s; + } + } + + &__dot { + width: 5px; + height: 5px; + border-radius: 100px; + margin: 0 4px; + + &--active { + width: 12px; + } + } + + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/props.js new file mode 100644 index 0000000..bac6d31 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/props.js @@ -0,0 +1,125 @@ +export default { + props: { + // 鍒楄〃鏁扮粍锛屽厓绱犲彲涓哄瓧绗︿覆锛屽涓哄璞″彲閫氳繃keyName鎸囧畾鐩爣灞炴�у悕 + list: { + type: Array, + default: uni.$u.props.swiper.list + }, + // 鏄惁鏄剧ず闈㈡澘鎸囩ず鍣� + indicator: { + type: Boolean, + default: uni.$u.props.swiper.indicator + }, + // 鎸囩ず鍣ㄩ潪婵�娲婚鑹� + indicatorActiveColor: { + type: String, + default: uni.$u.props.swiper.indicatorActiveColor + }, + // 鎸囩ず鍣ㄧ殑婵�娲婚鑹� + indicatorInactiveColor: { + type: String, + default: uni.$u.props.swiper.indicatorInactiveColor + }, + // 鎸囩ず鍣ㄦ牱寮忥紝鍙�氳繃bottom锛宭eft锛宺ight杩涜瀹氫綅 + indicatorStyle: { + type: [String, Object], + default: uni.$u.props.swiper.indicatorStyle + }, + // 鎸囩ず鍣ㄦā寮忥紝line-绾垮瀷锛宒ot-鐐瑰瀷 + indicatorMode: { + type: String, + default: uni.$u.props.swiper.indicatorMode + }, + // 鏄惁鑷姩鍒囨崲 + autoplay: { + type: Boolean, + default: uni.$u.props.swiper.autoplay + }, + // 褰撳墠鎵�鍦ㄦ粦鍧楃殑 index + current: { + type: [String, Number], + default: uni.$u.props.swiper.current + }, + // 褰撳墠鎵�鍦ㄦ粦鍧楃殑 item-id 锛屼笉鑳戒笌 current 琚悓鏃舵寚瀹� + currentItemId: { + type: String, + default: uni.$u.props.swiper.currentItemId + }, + // 婊戝潡鑷姩鍒囨崲鏃堕棿闂撮殧 + interval: { + type: [String, Number], + default: uni.$u.props.swiper.interval + }, + // 婊戝潡鍒囨崲杩囩▼鎵�闇�鏃堕棿 + duration: { + type: [String, Number], + default: uni.$u.props.swiper.duration + }, + // 鎾斁鍒版湯灏惧悗鏄惁閲嶆柊鍥炲埌寮�澶� + circular: { + type: Boolean, + default: uni.$u.props.swiper.circular + }, + // 鍓嶈竟璺濓紝鍙敤浜庨湶鍑哄墠涓�椤圭殑涓�灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸� + previousMargin: { + type: [String, Number], + default: uni.$u.props.swiper.previousMargin + }, + // 鍚庤竟璺濓紝鍙敤浜庨湶鍑哄悗涓�椤圭殑涓�灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸� + nextMargin: { + type: [String, Number], + default: uni.$u.props.swiper.nextMargin + }, + // 褰撳紑鍚椂锛屼細鏍规嵁婊戝姩閫熷害锛岃繛缁粦鍔ㄥ灞忥紝鏀粯瀹濅笉鏀寔 + acceleration: { + type: Boolean, + default: uni.$u.props.swiper.acceleration + }, + // 鍚屾椂鏄剧ず鐨勬粦鍧楁暟閲忥紝nvue銆佹敮浠樺疂灏忕▼搴忎笉鏀寔 + displayMultipleItems: { + type: Number, + default: uni.$u.props.swiper.displayMultipleItems + }, + // 鎸囧畾swiper鍒囨崲缂撳姩鍔ㄧ敾绫诲瀷锛屾湁鏁堝�硷細default銆乴inear銆乪aseInCubic銆乪aseOutCubic銆乪aseInOutCubic + // 鍙寰俊灏忕▼搴忔湁鏁� + easingFunction: { + type: String, + default: uni.$u.props.swiper.easingFunction + }, + // list鏁扮粍涓寚瀹氬璞$殑鐩爣灞炴�у悕 + keyName: { + type: String, + default: uni.$u.props.swiper.keyName + }, + // 鍥剧墖鐨勮鍓ā寮� + imgMode: { + type: String, + default: uni.$u.props.swiper.imgMode + }, + // 缁勪欢楂樺害 + height: { + type: [String, Number], + default: uni.$u.props.swiper.height + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.swiper.bgColor + }, + // 缁勪欢鍦嗚锛屾暟鍊兼垨甯﹀崟浣嶇殑瀛楃涓� + radius: { + type: [String, Number], + default: uni.$u.props.swiper.radius + }, + // 鏄惁鍔犺浇涓� + loading: { + type: Boolean, + default: uni.$u.props.swiper.loading + }, + // 鏄惁鏄剧ず鏍囬锛岃姹傛暟缁勫璞′腑鏈塼itle灞炴�� + showTitle: { + type: Boolean, + default: uni.$u.props.swiper.showTitle + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/u-swiper.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/u-swiper.vue new file mode 100644 index 0000000..0cfb229 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-swiper/u-swiper.vue @@ -0,0 +1,255 @@ +<template> + <view + class="u-swiper" + :style="{ + backgroundColor: bgColor, + height: $u.addUnit(height), + borderRadius: $u.addUnit(radius) + }" + > + <view + class="u-swiper__loading" + v-if="loading" + > + <u-loading-icon mode="circle"></u-loading-icon> + </view> + <swiper + v-else + class="u-swiper__wrapper" + :style="{ + height: $u.addUnit(height), + }" + @change="change" + :circular="circular" + :interval="interval" + :duration="duration" + :autoplay="autoplay" + :current="current" + :currentItemId="currentItemId" + :previousMargin="$u.addUnit(previousMargin)" + :nextMargin="$u.addUnit(nextMargin)" + :acceleration="acceleration" + :displayMultipleItems="displayMultipleItems" + :easingFunction="easingFunction" + > + <swiper-item + class="u-swiper__wrapper__item" + v-for="(item, index) in list" + :key="index" + > + <view + class="u-swiper__wrapper__item__wrapper" + :style="[itemStyle(index)]" + > + <!-- 鍦╪vue涓紝image鍥剧墖鐨勫搴﹂粯璁や负灞忓箷瀹藉害锛岄渶瑕侀�氳繃flex:1鎾戝紑锛屽彟澶栧繀椤昏缃珮搴︽墠鑳芥樉绀哄浘鐗� --> + <image + class="u-swiper__wrapper__item__wrapper__image" + v-if="getItemType(item) === 'image'" + :src="getSource(item)" + :mode="imgMode" + @tap="clickHandler(index)" + :style="{ + height: $u.addUnit(height), + borderRadius: $u.addUnit(radius) + }" + ></image> + <video + class="u-swiper__wrapper__item__wrapper__video" + v-if="getItemType(item) === 'video'" + :id="`video-${index}`" + :enable-progress-gesture="false" + :src="getSource(item)" + :poster="getPoster(item)" + :title="showTitle && $u.test.object(item) && item.title ? item.title : ''" + :style="{ + height: $u.addUnit(height) + }" + controls + @tap="clickHandler(index)" + ></video> + <text + v-if="showTitle && $u.test.object(item) && item.title && $u.test.image(getSource(item))" + class="u-swiper__wrapper__item__wrapper__title u-line-1" + >{{ item.title }}</text> + </view> + </swiper-item> + </swiper> + <view class="u-swiper__indicator" :style="[$u.addStyle(indicatorStyle)]"> + <slot name="indicator"> + <u-swiper-indicator + v-if="!loading && indicator && !showTitle" + :indicatorActiveColor="indicatorActiveColor" + :indicatorInactiveColor="indicatorInactiveColor" + :length="list.length" + :current="currentIndex" + :indicatorMode="indicatorMode" + ></u-swiper-indicator> + </slot> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * Swiper 杞挱鍥� + * @description 璇ョ粍浠朵竴鑸敤浜庡鑸疆鎾紝骞垮憡灞曠ず绛夊満鏅�,鍙紑绠卞嵆鐢紝 + * @tutorial https://www.uviewui.com/components/swiper.html + * @property {Array} list 杞挱鍥炬暟鎹� + * @property {Boolean} indicator 鏄惁鏄剧ず闈㈡澘鎸囩ず鍣紙榛樿 false 锛� + * @property {String} indicatorActiveColor 鎸囩ず鍣ㄩ潪婵�娲婚鑹诧紙榛樿 '#FFFFFF' 锛� + * @property {String} indicatorInactiveColor 鎸囩ず鍣ㄧ殑婵�娲婚鑹诧紙榛樿 'rgba(255, 255, 255, 0.35)' 锛� + * @property {String | Object} indicatorStyle 鎸囩ず鍣ㄦ牱寮忥紝鍙�氳繃bottom锛宭eft锛宺ight杩涜瀹氫綅 + * @property {String} indicatorMode 鎸囩ず鍣ㄦā寮忥紙榛樿 'line' 锛� + * @property {Boolean} autoplay 鏄惁鑷姩鍒囨崲锛堥粯璁� true 锛� + * @property {String | Number} current 褰撳墠鎵�鍦ㄦ粦鍧楃殑 index锛堥粯璁� 0 锛� + * @property {String} currentItemId 褰撳墠鎵�鍦ㄦ粦鍧楃殑 item-id 锛屼笉鑳戒笌 current 琚悓鏃舵寚瀹� + * @property {String | Number} interval 婊戝潡鑷姩鍒囨崲鏃堕棿闂撮殧锛坢s锛夛紙榛樿 3000 锛� + * @property {String | Number} duration 婊戝潡鍒囨崲杩囩▼鎵�闇�鏃堕棿锛坢s锛夛紙榛樿 300 锛� + * @property {Boolean} circular 鎾斁鍒版湯灏惧悗鏄惁閲嶆柊鍥炲埌寮�澶达紙榛樿 false 锛� + * @property {String | Number} previousMargin 鍓嶈竟璺濓紝鍙敤浜庨湶鍑哄墠涓�椤圭殑涓�灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸侊紙榛樿 0 锛� + * @property {String | Number} nextMargin 鍚庤竟璺濓紝鍙敤浜庨湶鍑哄悗涓�椤圭殑涓�灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸侊紙榛樿 0 锛� + * @property {Boolean} acceleration 褰撳紑鍚椂锛屼細鏍规嵁婊戝姩閫熷害锛岃繛缁粦鍔ㄥ灞忥紝鏀粯瀹濅笉鏀寔锛堥粯璁� false 锛� + * @property {Number} displayMultipleItems 鍚屾椂鏄剧ず鐨勬粦鍧楁暟閲忥紝nvue銆佹敮浠樺疂灏忕▼搴忎笉鏀寔锛堥粯璁� 1 锛� + * @property {String} easingFunction 鎸囧畾swiper鍒囨崲缂撳姩鍔ㄧ敾绫诲瀷锛� 鍙寰俊灏忕▼搴忔湁鏁堬紙榛樿 'default' 锛� + * @property {String} keyName list鏁扮粍涓寚瀹氬璞$殑鐩爣灞炴�у悕锛堥粯璁� 'url' 锛� + * @property {String} imgMode 鍥剧墖鐨勮鍓ā寮忥紙榛樿 'aspectFill' 锛� + * @property {String | Number} height 缁勪欢楂樺害锛堥粯璁� 130 锛� + * @property {String} bgColor 鑳屾櫙棰滆壊锛堥粯璁� '#f3f4f6' 锛� + * @property {String | Number} radius 缁勪欢鍦嗚锛屾暟鍊兼垨甯﹀崟浣嶇殑瀛楃涓诧紙榛樿 4 锛� + * @property {Boolean} loading 鏄惁鍔犺浇涓紙榛樿 false 锛� + * @property {Boolean} showTitle 鏄惁鏄剧ず鏍囬锛岃姹傛暟缁勫璞′腑鏈塼itle灞炴�э紙榛樿 false 锛� + * @event {Function(index)} click 鐐瑰嚮杞挱鍥炬椂瑙﹀彂 index锛氱偣鍑讳簡绗嚑寮犲浘鐗囷紝浠�0寮�濮� + * @event {Function(index)} change 杞挱鍥惧垏鎹㈡椂瑙﹀彂(鑷姩鎴栬�呮墜鍔ㄥ垏鎹�) index锛氬垏鎹㈠埌浜嗙鍑犲紶鍥剧墖锛屼粠0寮�濮� + * @example <u-swiper :list="list4" keyName="url" :autoplay="false"></u-swiper> + */ + export default { + name: 'u-swiper', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + currentIndex: 0 + } + }, + watch: { + current(val, preVal) { + if(val === preVal) return; + this.currentIndex = val; // 鍜屼笂娓告暟鎹叧鑱斾笂 + } + }, + computed: { + itemStyle() { + return index => { + const style = {} + // #ifndef APP-NVUE || MP-TOUTIAO + // 宸﹀彸娴佸嚭绌洪棿鐨勫啓娉曚笉鏀寔nvue鍜屽ご鏉� + // 鍙湁閰嶇疆浜嗘浜屽�硷紝鎵嶅姞涓婂搴旂殑鍦嗚锛屼互鍙婄缉鏀� + if (this.nextMargin && this.previousMargin) { + style.borderRadius = uni.$u.addUnit(this.radius) + if (index !== this.currentIndex) style.transform = 'scale(0.92)' + } + // #endif + return style + } + } + }, + methods: { + getItemType(item) { + if (typeof item === 'string') return uni.$u.test.video(this.getSource(item)) ? 'video' : 'image' + if (typeof item === 'object' && this.keyName) { + if (!item.type) return uni.$u.test.video(this.getSource(item)) ? 'video' : 'image' + if (item.type === 'image') return 'image' + if (item.type === 'video') return 'video' + return 'image' + } + }, + // 鑾峰彇鐩爣璺緞锛屽彲鑳芥暟缁勪腑涓哄瓧绗︿覆锛屽璞$殑褰㈠紡锛岄澶栧彲鎸囧畾瀵硅薄鐨勭洰鏍囧睘鎬у悕keyName + getSource(item) { + if (typeof item === 'string') return item + if (typeof item === 'object' && this.keyName) return item[this.keyName] + else uni.$u.error('璇锋寜鏍煎紡浼犻�掑垪琛ㄥ弬鏁�') + return '' + }, + // 杞挱鍒囨崲浜嬩欢 + change(e) { + // 褰撳墠鐨勬縺娲荤储寮� + const { + current + } = e.detail + this.pauseVideo(this.currentIndex) + this.currentIndex = current + this.$emit('change', e.detail) + }, + // 鍒囨崲杞挱鏃讹紝鏆傚仠瑙嗛鎾斁 + pauseVideo(index) { + const lastItem = this.getSource(this.list[index]) + if (uni.$u.test.video(lastItem)) { + // 褰撹棰戦殣钘忔椂锛屾殏鍋滄挱鏀� + const video = uni.createVideoContext(`video-${index}`, this) + video.pause() + } + }, + // 褰撲竴涓疆鎾璱tem涓鸿棰戞椂锛岃幏鍙栧畠鐨勮棰戞捣鎶� + getPoster(item) { + return typeof item === 'object' && item.poster ? item.poster : '' + }, + // 鐐瑰嚮鏌愪釜item + clickHandler(index) { + this.$emit('click', index) + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-swiper { + @include flex; + justify-content: center; + align-items: center; + position: relative; + overflow: hidden; + + &__wrapper { + flex: 1; + + &__item { + flex: 1; + + &__wrapper { + @include flex; + position: relative; + overflow: hidden; + transition: transform 0.3s; + flex: 1; + + &__image { + flex: 1; + } + + &__video { + flex: 1; + } + + &__title { + position: absolute; + background-color: rgba(0, 0, 0, 0.3); + bottom: 0; + left: 0; + right: 0; + font-size: 28rpx; + padding: 12rpx 24rpx; + color: #FFFFFF; + flex: 1; + } + } + } + } + + &__indicator { + position: absolute; + bottom: 10px; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/props.js new file mode 100644 index 0000000..4eef963 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/props.js @@ -0,0 +1,54 @@ +export default { + props: { + // 鏄惁涓哄姞杞戒腑鐘舵�� + loading: { + type: Boolean, + default: uni.$u.props.switch.loading + }, + // 鏄惁涓虹鐢ㄨ濉� + disabled: { + type: Boolean, + default: uni.$u.props.switch.disabled + }, + // 寮�鍏冲昂瀵革紝鍗曚綅px + size: { + type: [String, Number], + default: uni.$u.props.switch.size + }, + // 鎵撳紑鏃剁殑鑳屾櫙棰滆壊 + activeColor: { + type: String, + default: uni.$u.props.switch.activeColor + }, + // 鍏抽棴鏃剁殑鑳屾櫙棰滆壊 + inactiveColor: { + type: String, + default: uni.$u.props.switch.inactiveColor + }, + // 閫氳繃v-model鍙屽悜缁戝畾鐨勫�� + value: { + type: [Boolean, String, Number], + default: uni.$u.props.switch.value + }, + // switch鎵撳紑鏃剁殑鍊� + activeValue: { + type: [String, Number, Boolean], + default: uni.$u.props.switch.activeValue + }, + // switch鍏抽棴鏃剁殑鍊� + inactiveValue: { + type: [String, Number, Boolean], + default: uni.$u.props.switch.inactiveValue + }, + // 鏄惁寮�鍚紓姝ュ彉鏇达紝寮�鍚悗闇�瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ�� + asyncChange: { + type: Boolean, + default: uni.$u.props.switch.asyncChange + }, + // 鍦嗙偣涓庡杈规鐨勮窛绂� + space: { + type: [String, Number], + default: uni.$u.props.switch.space + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/u-switch.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/u-switch.vue new file mode 100644 index 0000000..6f8577b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-switch/u-switch.vue @@ -0,0 +1,177 @@ +<template> + <view + class="u-switch" + :class="[disabled && 'u-switch--disabled']" + :style="[switchStyle, $u.addStyle(customStyle)]" + @tap="clickHandler" + > + <view + class="u-switch__bg" + :style="[bgStyle]" + > + </view> + <view + class="u-switch__node" + :class="[value && 'u-switch__node--on']" + :style="[nodeStyle]" + ref="u-switch__node" + > + <u-loading-icon + :show="loading" + mode="circle" + timingFunction='linear' + :color="value ? activeColor : '#AAABAD'" + :size="size * 0.6" + /> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * switch 寮�鍏抽�夋嫨鍣� + * @description 閫夋嫨寮�鍏充竴鑸敤浜庡彧鏈変袱涓�夋嫨锛屼笖鍙兘閫夊叾涓�鐨勫満鏅�� + * @tutorial https://www.uviewui.com/components/switch.html + * @property {Boolean} loading 鏄惁澶勪簬鍔犺浇涓紙榛樿 false 锛� + * @property {Boolean} disabled 鏄惁绂佺敤锛堥粯璁� false 锛� + * @property {String | Number} size 寮�鍏冲昂瀵革紝鍗曚綅px 锛堥粯璁� 25 锛� + * @property {String} activeColor 鎵撳紑鏃剁殑鑳屾櫙鑹� 锛堥粯璁� '#2979ff' 锛� + * @property {String} inactiveColor 鍏抽棴鏃剁殑鑳屾櫙鑹� 锛堥粯璁� '#ffffff' 锛� + * @property {Boolean | String | Number} value 閫氳繃v-model鍙屽悜缁戝畾鐨勫�� 锛堥粯璁� false 锛� + * @property {Boolean | String | Number} activeValue 鎵撳紑閫夋嫨鍣ㄦ椂閫氳繃change浜嬩欢鍙戝嚭鐨勫�� 锛堥粯璁� true 锛� + * @property {Boolean | String | Number} inactiveValue 鍏抽棴閫夋嫨鍣ㄦ椂閫氳繃change浜嬩欢鍙戝嚭鐨勫�� 锛堥粯璁� false 锛� + * @property {Boolean} asyncChange 鏄惁寮�鍚紓姝ュ彉鏇达紝寮�鍚悗闇�瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ�� 锛堥粯璁� false 锛� + * @property {String | Number} space 鍦嗙偣涓庡杈规鐨勮窛绂� 锛堥粯璁� 0 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} change 鍦╯witch鎵撳紑鎴栧叧闂椂瑙﹀彂 + * @example <u-switch v-model="checked" active-color="red" inactive-color="#eee"></u-switch> + */ + export default { + name: "u-switch", + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + watch: { + value: { + immediate: true, + handler(n) { + if(n !== this.inactiveValue && n !== this.activeValue) { + uni.$u.error('v-model缁戝畾鐨勫�煎繀椤讳负inactiveValue銆乤ctiveValue浜岃�呬箣涓�') + } + } + } + }, + data() { + return { + bgColor: '#ffffff' + } + }, + computed: { + isActive(){ + return this.value === this.activeValue; + }, + switchStyle() { + let style = {} + // 杩欓噷闇�瑕佸姞2锛屾槸涓轰簡鑵惧嚭杈规鐨勮窛绂伙紝鍚﹀垯鍦嗙偣node浼氬拰澶栬竟妗嗙揣璐村湪涓�璧� + style.width = uni.$u.addUnit(this.size * 2 + 2) + style.height = uni.$u.addUnit(Number(this.size) + 2) + // style.borderColor = this.value ? 'rgba(0, 0, 0, 0)' : 'rgba(0, 0, 0, 0.12)' + // 濡傛灉鑷畾涔変簡鈥滈潪婵�娲烩�濇紨绀猴紝name杈规棰滆壊璁剧疆涓洪�忔槑(璺熼潪婵�娲婚鑹蹭竴鑷�) + // 杩欓噷涓嶈兘绠�鍗曠殑璁剧疆涓洪潪婵�娲荤殑棰滆壊锛屽惁鍒欐墦寮�鐘舵�佹椂锛屼細鏈夎竟妗嗭紝鎵�浠ラ渶瑕侀�忔槑 + if(this.customInactiveColor) { + style.borderColor = 'rgba(0, 0, 0, 0)' + } + style.backgroundColor = this.isActive ? this.activeColor : this.inactiveColor + return style; + }, + nodeStyle() { + let style = {} + // 濡傛灉鑷畾涔夐潪婵�娲婚鑹诧紝灏唍ode鍦嗙偣鐨勫昂瀵稿噺灏戜袱涓儚绱狅紝璁╁叾涓庡杈规璺濈鏇村ぇ涓�鐐� + style.width = uni.$u.addUnit(this.size - this.space) + style.height = uni.$u.addUnit(this.size - this.space) + const translateX = this.isActive ? uni.$u.addUnit(this.space) : uni.$u.addUnit(this.size); + style.transform = `translateX(-${translateX})` + return style + }, + bgStyle() { + let style = {} + // 杩欓噷閰嶇疆涓�涓浣欑殑鍏冪礌鍦℉TML涓紝鏄负浜嗚switch鍒囨崲鏃讹紝鏈夋洿鑹ソ鐨勮儗鏅壊鎵╁厖浣撻獙(瑙佸疄闄呮晥鏋�) + style.width = uni.$u.addUnit(Number(this.size) * 2 - this.size / 2) + style.height = uni.$u.addUnit(this.size) + style.backgroundColor = this.inactiveColor + // 鎵撳紑鏃讹紝璁╂鍏冪礌鏀剁缉锛屽惁鍒欏弽涔� + style.transform = `scale(${this.isActive ? 0 : 1})` + return style + }, + customInactiveColor() { + // 涔嬫墍浠ラ渶瑕佸垽鏂槸鍚﹁嚜瀹氫箟浜嗏�滈潪婵�娲烩�濋鑹诧紝鏄负浜嗚node鍦嗙偣绂诲杈规鏇村涓�鐐圭殑璺濈 + return this.inactiveColor !== '#fff' && this.inactiveColor !== '#ffffff' + } + }, + methods: { + clickHandler() { + if (!this.disabled && !this.loading) { + const oldValue = this.isActive ? this.inactiveValue : this.activeValue + if(!this.asyncChange) { + this.$emit('input', oldValue) + } + // 鏀惧埌涓嬩竴涓敓鍛藉懆鏈燂紝鍥犱负鍙屽悜缁戝畾鐨剉alue淇敼鐖剁粍浠剁姸鎬侀渶瑕佹椂闂达紝涓旀槸寮傛鐨� + this.$nextTick(() => { + this.$emit('change', oldValue) + }) + } + } + } + }; +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-switch { + @include flex(row); + /* #ifndef APP-NVUE */ + box-sizing: border-box; + /* #endif */ + position: relative; + background-color: #fff; + border-width: 1px; + border-radius: 100px; + transition: background-color 0.4s; + border-color: rgba(0, 0, 0, 0.12); + border-style: solid; + justify-content: flex-end; + align-items: center; + // 鐢变簬weex涓洪樋閲岄�楃潃鐜╃殑KPI椤圭洰锛屽鑷碽ug濂囧锛岃繖蹇呴』瑕佸啓杩欎竴琛岋紝 + // 鍚﹀垯鍦╥OS涓婏紝鐐瑰嚮椤甸潰浠绘剰鍦版柟锛岄兘浼氳Е鍙憇witch鐨勭偣鍑讳簨浠� + overflow: hidden; + + &__node { + @include flex(row); + align-items: center; + justify-content: center; + border-radius: 100px; + background-color: #fff; + border-radius: 100px; + box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.25); + transition-property: transform; + transition-duration: 0.4s; + transition-timing-function: cubic-bezier(0.3, 1.05, 0.4, 1.05); + } + + &__bg { + position: absolute; + border-radius: 100px; + background-color: #FFFFFF; + transition-property: transform; + transition-duration: 0.4s; + border-top-left-radius: 0; + border-bottom-left-radius: 0; + transition-timing-function: ease; + } + + &--disabled { + opacity: 0.6; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/props.js new file mode 100644 index 0000000..a2e6a24 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/props.js @@ -0,0 +1,35 @@ +export default { + props: { + // item鏍囩鐨勫悕绉帮紝浣滀负涓巙-tabbar鐨剉alue鍙傛暟鍖归厤鐨勬爣璇嗙 + name: { + type: [String, Number, null], + default: uni.$u.props.tabbarItem.name + }, + // uView鍐呯疆鍥炬爣鎴栬�呯粷瀵硅矾寰勭殑鍥剧墖 + icon: { + icon: String, + default: uni.$u.props.tabbarItem.icon + }, + // 鍙充笂瑙掔殑瑙掓爣鎻愮ず淇℃伅 + badge: { + type: [String, Number, null], + default: uni.$u.props.tabbarItem.badge + }, + // 鏄惁鏄剧ず鍦嗙偣锛屽皢浼氳鐩朾adge鍙傛暟 + dot: { + type: Boolean, + default: uni.$u.props.tabbarItem.dot + }, + // 鎻忚堪鏂囨湰 + text: { + type: String, + default: uni.$u.props.tabbarItem.text + }, + // 鎺у埗寰芥爣鐨勪綅缃紝瀵硅薄鎴栬�呭瓧绗︿覆褰㈠紡锛屽彲浠ヨ缃畉op鍜宺ight灞炴�� + badgeStyle: { + type: [Object, String], + default: uni.$u.props.tabbarItem.badgeStyle + } + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item.vue new file mode 100644 index 0000000..8ee00cf --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item.vue @@ -0,0 +1,142 @@ +<template> + <view + class="u-tabbar-item" + :style="[$u.addStyle(customStyle)]" + @tap="clickHandler" + > + <view class="u-tabbar-item__icon"> + <u-icon + v-if="icon" + :name="icon" + :color="isActive? parentData.activeColor : parentData.inactiveColor" + :size="20" + ></u-icon> + <template v-else> + <slot + v-if="isActive" + name="active-icon" + /> + <slot + v-else + name="inactive-icon" + /> + </template> + <u-badge + absolute + :offset="[0, dot ? '34rpx' : badge > 9 ? '14rpx' : '20rpx']" + :customStyle="badgeStyle" + :isDot="dot" + :value="badge || (dot ? 1 : null)" + :show="dot || badge > 0" + ></u-badge> + </view> + + <slot name="text"> + <text + class="u-tabbar-item__text" + :style="{ + color: isActive? parentData.activeColor : parentData.inactiveColor + }" + >{{ text }}</text> + </slot> + </view> +</template> + +<script> + import props from './props.js'; + /** + * TabbarItem 搴曢儴瀵艰埅鏍忓瓙缁勪欢 + * @description 姝ょ粍浠舵彁渚涗簡鑷畾涔塼abbar鐨勮兘鍔涖�� + * @tutorial https://www.uviewui.com/components/tabbar.html + * @property {String | Number} name item鏍囩鐨勫悕绉帮紝浣滀负涓巙-tabbar鐨剉alue鍙傛暟鍖归厤鐨勬爣璇嗙 + * @property {String} icon uView鍐呯疆鍥炬爣鎴栬�呯粷瀵硅矾寰勭殑鍥剧墖 + * @property {String | Number} badge 鍙充笂瑙掔殑瑙掓爣鎻愮ず淇℃伅 + * @property {Boolean} dot 鏄惁鏄剧ず鍦嗙偣锛屽皢浼氳鐩朾adge鍙傛暟锛堥粯璁� false 锛� + * @property {String} text 鎻忚堪鏂囨湰 + * @property {Object | String} badgeStyle 鎺у埗寰芥爣鐨勪綅缃紝瀵硅薄鎴栬�呭瓧绗︿覆褰㈠紡锛屽彲浠ヨ缃畉op鍜宺ight灞炴�э紙榛樿 'top: 6px;right:2px;' 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @example <u-tabbar :value="value2" :placeholder="false" @change="name => value2 = name" :fixed="false" :safeAreaInsetBottom="false"><u-tabbar-item text="棣栭〉" icon="home" dot ></u-tabbar-item></u-tabbar> + */ + export default { + name: 'u-tabbar-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + isActive: false, // 鏄惁澶勪簬婵�娲荤姸鎬� + parentData: { + value: null, + activeColor: '', + inactiveColor: '' + } + } + }, + created() { + this.init() + }, + methods: { + init() { + // 鏀粯瀹濆皬绋嬪簭涓嶆敮鎸乸rovide/inject锛屾墍浠ヤ娇鐢ㄨ繖涓柟娉曡幏鍙栨暣涓埗缁勪欢锛屽湪created瀹氫箟锛岄伩鍏嶅惊鐜紩鐢� + this.updateParentData() + if (!this.parent) { + uni.$u.error('u-tabbar-item蹇呴』鎼厤u-tabbar缁勪欢浣跨敤') + } + // 鏈瓙缁勪欢鍦╱-tabbar鐨刢hildren鏁扮粍涓殑绱㈠紩 + const index = this.parent.children.indexOf(this) + // 鍒ゆ柇鏈粍浠剁殑name(濡傛灉娌℃湁瀹氫箟name锛屽氨鐢╥ndex绱㈠紩)鏄惁绛変簬鐖剁粍浠剁殑value鍙傛暟 + this.isActive = (this.name || index) === this.parentData.value + }, + updateParentData() { + // 姝ゆ柟娉曞湪mixin涓� + this.getParentData('u-tabbar') + }, + // 姝ゆ柟娉曞皢浼氳鐖剁粍浠秛-tabbar璋冪敤 + updateFromParent() { + // 閲嶆柊鍒濆鍖� + this.init() + }, + clickHandler() { + this.$nextTick(() => { + const index = this.parent.children.indexOf(this) + const name = this.name || index + // 鐐瑰嚮鐨刬tem涓洪潪婵�娲荤殑item鎵嶅彂鍑篶hange浜嬩欢 + if (name !== this.parent.value) { + this.parent.$emit('change', name) + } + this.$emit('click', name) + }) + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-tabbar-item { + @include flex(column); + align-items: center; + justify-content: center; + flex: 1; + + &__icon { + @include flex; + position: relative; + width: 150rpx; + justify-content: center; + } + + &__text { + margin-top: 2px; + font-size: 12px; + color: $u-content-color; + } + } + + /* #ifdef MP */ + // 鐢变簬灏忕▼搴忛兘浣跨敤shadow DOM褰㈠紡瀹炵幇锛岄渶瑕佺粰褰卞瓙瀹夸富璁剧疆flex: 1鎵嶈兘璁╁叾鎾戝紑 + :host { + flex: 1 + } + /* #endif */ +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/props.js new file mode 100644 index 0000000..7f8171c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/props.js @@ -0,0 +1,44 @@ +export default { + props: { + // 褰撳墠鍖归厤椤圭殑name + value: { + type: [String, Number, null], + default: uni.$u.props.tabbar.value + }, + // 鏄惁涓篿PhoneX鐣欏嚭搴曢儴瀹夊叏璺濈 + safeAreaInsetBottom: { + type: Boolean, + default: uni.$u.props.tabbar.safeAreaInsetBottom + }, + // 鏄惁鏄剧ず涓婃柟杈规 + border: { + type: Boolean, + default: uni.$u.props.tabbar.border + }, + // 鍏冪礌灞傜骇z-index + zIndex: { + type: [String, Number], + default: uni.$u.props.tabbar.zIndex + }, + // 閫変腑鏍囩鐨勯鑹� + activeColor: { + type: String, + default: uni.$u.props.tabbar.activeColor + }, + // 鏈�変腑鏍囩鐨勯鑹� + inactiveColor: { + type: String, + default: uni.$u.props.tabbar.inactiveColor + }, + // 鏄惁鍥哄畾鍦ㄥ簳閮� + fixed: { + type: Boolean, + default: uni.$u.props.tabbar.fixed + }, + // fixed瀹氫綅鍥哄畾鍦ㄥ簳閮ㄦ椂锛屾槸鍚︾敓鎴愪竴涓瓑楂樺厓绱犻槻姝㈠闄� + placeholder: { + type: Boolean, + default: uni.$u.props.tabbar.placeholder + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/u-tabbar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/u-tabbar.vue new file mode 100644 index 0000000..953f33a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabbar/u-tabbar.vue @@ -0,0 +1,141 @@ +<template> + <view class="u-tabbar"> + <view + class="u-tabbar__content" + ref="u-tabbar__content" + @touchmove.stop.prevent="noop" + :class="[border && 'u-border-top', fixed && 'u-tabbar--fixed']" + :style="[tabbarStyle]" + > + <view class="u-tabbar__content__item-wrapper"> + <slot /> + </view> + <u-safe-bottom v-if="safeAreaInsetBottom"></u-safe-bottom> + </view> + <view + class="u-tabbar__placeholder" + v-if="placeholder" + :style="{ + height: placeholderHeight + 'px', + }" + ></view> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + /** + * Tabbar 搴曢儴瀵艰埅鏍� + * @description 姝ょ粍浠舵彁渚涗簡鑷畾涔塼abbar鐨勮兘鍔涖�� + * @tutorial https://www.uviewui.com/components/tabbar.html + * @property {String | Number} value 褰撳墠鍖归厤椤圭殑name + * @property {Boolean} safeAreaInsetBottom 鏄惁涓篿PhoneX鐣欏嚭搴曢儴瀹夊叏璺濈锛堥粯璁� true 锛� + * @property {Boolean} border 鏄惁鏄剧ず涓婃柟杈规锛堥粯璁� true 锛� + * @property {String | Number} zIndex 鍏冪礌灞傜骇z-index锛堥粯璁� 1 锛� + * @property {String} activeColor 閫変腑鏍囩鐨勯鑹诧紙榛樿 '#1989fa' 锛� + * @property {String} inactiveColor 鏈�変腑鏍囩鐨勯鑹诧紙榛樿 '#7d7e80' 锛� + * @property {Boolean} fixed 鏄惁鍥哄畾鍦ㄥ簳閮紙榛樿 true 锛� + * @property {Boolean} placeholder fixed瀹氫綅鍥哄畾鍦ㄥ簳閮ㄦ椂锛屾槸鍚︾敓鎴愪竴涓瓑楂樺厓绱犻槻姝㈠闄凤紙榛樿 true 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @example <u-tabbar :value="value2" :placeholder="false" @change="name => value2 = name" :fixed="false" :safeAreaInsetBottom="false"><u-tabbar-item text="棣栭〉" icon="home" dot ></u-tabbar-item></u-tabbar> + */ + export default { + name: 'u-tabbar', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + placeholderHeight: 0 + } + }, + computed: { + tabbarStyle() { + const style = { + zIndex: this.zIndex + } + // 鍚堝苟鏉ヨ嚜鐖剁粍浠剁殑customStyle鏍峰紡 + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + }, + // 鐩戝惉澶氫釜鍙傛暟鐨勫彉鍖栵紝閫氳繃鍦╟omputed鎵ц瀵瑰簲鐨勬搷浣� + updateChild() { + return [this.value, this.activeColor, this.inactiveColor] + }, + updatePlaceholder() { + return [this.fixed, this.placeholder] + } + }, + watch: { + updateChild() { + // 濡傛灉updateChildren涓殑鍏冪礌鍙戠敓浜嗗彉鍖栵紝鍒欐墽琛屽瓙鍏冪礌鍒濆鍖栨搷浣� + this.updateChildren() + }, + updatePlaceholder() { + // 濡傛灉fixed锛宲laceholder绛夊弬鏁板彂鐢熷彉鍖栵紝閲嶆柊璁$畻鍗犱綅鍏冪礌鐨勯珮搴� + this.setPlaceholderHeight() + } + }, + created() { + this.children = [] + }, + mounted() { + this.setPlaceholderHeight() + }, + methods: { + updateChildren() { + // 濡傛灉瀛樺湪瀛愬厓绱狅紝鍒欐墽琛屽瓙鍏冪礌鐨剈pdateFromParent杩涜鏇存柊鏁版嵁 + this.children.length && this.children.map(child => child.updateFromParent()) + }, + // 璁剧疆鐢ㄤ簬闃叉濉岄櫡鍏冪礌鐨勯珮搴� + async setPlaceholderHeight() { + if (!this.fixed || !this.placeholder) return + // 寤舵椂涓�瀹氭椂闂� + await uni.$u.sleep(20) + // #ifndef APP-NVUE + this.$uGetRect('.u-tabbar__content').then(({height = 50}) => { + // 淇IOS safearea bottom 鏈~鍏呴珮搴� + this.placeholderHeight = height + }) + // #endif + + // #ifdef APP-NVUE + dom.getComponentRect(this.$refs['u-tabbar__content'], (res) => { + const { + size + } = res + this.placeholderHeight = size.height + }) + // #endif + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-tabbar { + @include flex(column); + flex: 1; + justify-content: center; + + &__content { + @include flex(column); + background-color: #fff; + + &__item-wrapper { + height: 50px; + @include flex(row); + } + } + + &--fixed { + position: fixed; + bottom: 0; + left: 0; + right: 0; + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/u-table.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/u-table.vue new file mode 100644 index 0000000..b64ce69 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-table/u-table.vue @@ -0,0 +1,29 @@ +<template> + <view class="u-table"> + + </view> +</template> + +<script> + import props from './props.js'; + /** + * Table 琛ㄦ牸 + * @description 琛ㄦ牸缁勪欢涓�鑸敤浜庡睍绀哄ぇ閲忕粨鏋勫寲鏁版嵁鐨勫満鏅� 鏈粍浠舵爣绛剧被浼糎TML鐨則able琛ㄦ牸锛岀敱table銆乼r銆乼h銆乼d鍥涗釜缁勪欢缁勬垚 + * @tutorial https://www.uviewui.com/components/table.html + * @example <u-table><u-tr><u-th>瀛︽牎</u-th </u-tr> <u-tr><u-td>娴欐睙澶у</u-td> </u-tr> <u-tr><u-td>娓呭崕澶у</u-td> </u-tr></u-table> + */ + export default { + name: 'u-table', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/u-tabs-item.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/u-tabs-item.vue new file mode 100644 index 0000000..effb796 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs-item/u-tabs-item.vue @@ -0,0 +1,29 @@ +<template> + <swiper-item> + <slot /> + </swiper-item> +</template> + +<script> + import props from './props.js'; + /** + * TabsItem tabs鏍囩缁勪欢鐨勮嚜缁勪欢 + * @description tabs鏍囩缁勪欢锛屽湪鏍囩澶氱殑鏃跺�欙紝鍙互閰嶇疆涓哄乏鍙虫粦鍔紝鏍囩灏戠殑鏃跺�欙紝鍙互绂佹婊戝姩銆� 璇ョ粍浠剁殑涓�涓壒鐐规槸閰嶇疆涓烘粴鍔ㄦā寮忔椂锛屾縺娲荤殑tab浼氳嚜鍔ㄧЩ鍔ㄥ埌缁勪欢鐨勪腑闂翠綅缃�� + * @tutorial https://www.uviewui.com/components/tabs.html + * @property {type} prop_name + * @event {Function()} + * @example + */ + export default { + name: 'u-tabs-item', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + + } + } + } +</script> + +<style> +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/props.js new file mode 100644 index 0000000..2cfa41f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/props.js @@ -0,0 +1,64 @@ +export default { + props: { + // 婊戝潡鐨勭Щ鍔ㄨ繃娓℃椂闂达紝鍗曚綅ms + duration: { + type: Number, + default: uni.$u.props.tabs.duration + }, + // tabs鏍囩鏁扮粍 + list: { + type: Array, + default: uni.$u.props.tabs.list + }, + // 婊戝潡棰滆壊 + lineColor: { + type: String, + default: uni.$u.props.tabs.lineColor + }, + // 鑿滃崟閫夋嫨涓椂鐨勬牱寮� + activeStyle: { + type: [String, Object], + default: uni.$u.props.tabs.activeStyle + }, + // 鑿滃崟闈為�変腑鏃剁殑鏍峰紡 + inactiveStyle: { + type: [String, Object], + default: uni.$u.props.tabs.inactiveStyle + }, + // 婊戝潡闀垮害 + lineWidth: { + type: [String, Number], + default: uni.$u.props.tabs.lineWidth + }, + // 婊戝潡楂樺害 + lineHeight: { + type: [String, Number], + default: uni.$u.props.tabs.lineHeight + }, + // 婊戝潡鑳屾櫙鏄剧ず澶у皬锛屽綋婊戝潡鑳屾櫙璁剧疆涓哄浘鐗囨椂浣跨敤 + lineBgSize: { + type: String, + default: uni.$u.props.tabs.lineBgSize + }, + // 鑿滃崟item鐨勬牱寮� + itemStyle: { + type: [String, Object], + default: uni.$u.props.tabs.itemStyle + }, + // 鑿滃崟鏄惁鍙粴鍔� + scrollable: { + type: Boolean, + default: uni.$u.props.tabs.scrollable + }, + // 褰撳墠閫変腑鏍囩鐨勭储寮� + current: { + type: [Number, String], + default: uni.$u.props.tabs.current + }, + // 榛樿璇诲彇鐨勯敭鍚� + keyName: { + type: String, + default: uni.$u.props.tabs.keyName + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/u-tabs.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/u-tabs.vue new file mode 100644 index 0000000..9c54cc1 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tabs/u-tabs.vue @@ -0,0 +1,354 @@ +<template> + <view class="u-tabs"> + <view class="u-tabs__wrapper"> + <slot name="left" /> + <view class="u-tabs__wrapper__scroll-view-wrapper"> + <scroll-view + :scroll-x="scrollable" + :scroll-left="scrollLeft" + scroll-with-animation + class="u-tabs__wrapper__scroll-view" + :show-scrollbar="false" + ref="u-tabs__wrapper__scroll-view" + > + <view + class="u-tabs__wrapper__nav" + ref="u-tabs__wrapper__nav" + > + <view + class="u-tabs__wrapper__nav__item" + v-for="(item, index) in list" + :key="index" + @tap="clickHandler(item, index)" + :ref="`u-tabs__wrapper__nav__item-${index}`" + :style="[$u.addStyle(itemStyle), {flex: scrollable ? '' : 1}]" + :class="[`u-tabs__wrapper__nav__item-${index}`, item.disabled && 'u-tabs__wrapper__nav__item--disabled']" + > + <text + :class="[item.disabled && 'u-tabs__wrapper__nav__item__text--disabled']" + class="u-tabs__wrapper__nav__item__text" + :style="[textStyle(index)]" + >{{ item[keyName] }}</text> + <u-badge + :show="!!(item.badge && (item.badge.show || item.badge.isDot || item.badge.value))" + :isDot="item.badge && item.badge.isDot || propsBadge.isDot" + :value="item.badge && item.badge.value || propsBadge.value" + :max="item.badge && item.badge.max || propsBadge.max" + :type="item.badge && item.badge.type || propsBadge.type" + :showZero="item.badge && item.badge.showZero || propsBadge.showZero" + :bgColor="item.badge && item.badge.bgColor || propsBadge.bgColor" + :color="item.badge && item.badge.color || propsBadge.color" + :shape="item.badge && item.badge.shape || propsBadge.shape" + :numberType="item.badge && item.badge.numberType || propsBadge.numberType" + :inverted="item.badge && item.badge.inverted || propsBadge.inverted" + customStyle="margin-left: 4px;" + ></u-badge> + </view> + <!-- #ifdef APP-NVUE --> + <view + class="u-tabs__wrapper__nav__line" + ref="u-tabs__wrapper__nav__line" + :style="[{ + width: $u.addUnit(lineWidth), + height: $u.addUnit(lineHeight), + background: lineColor, + backgroundSize: lineBgSize, + }]" + > + <!-- #endif --> + <!-- #ifndef APP-NVUE --> + <view + class="u-tabs__wrapper__nav__line" + ref="u-tabs__wrapper__nav__line" + :style="[{ + width: $u.addUnit(lineWidth), + transform: `translate(${lineOffsetLeft}px)`, + transitionDuration: `${firstTime ? 0 : duration}ms`, + height: $u.addUnit(lineHeight), + background: lineColor, + backgroundSize: lineBgSize, + }]" + > + <!-- #endif --> + </view> + </view> + </scroll-view> + </view> + <slot name="right" /> + </view> + </view> +</template> + +<script> + // #ifdef APP-NVUE + const animation = uni.requireNativePlugin('animation') + const dom = uni.requireNativePlugin('dom') + // #endif + import props from './props.js'; + /** + * Tabs 鏍囩 + * @description tabs鏍囩缁勪欢锛屽湪鏍囩澶氱殑鏃跺�欙紝鍙互閰嶇疆涓哄乏鍙虫粦鍔紝鏍囩灏戠殑鏃跺�欙紝鍙互绂佹婊戝姩銆� 璇ョ粍浠剁殑涓�涓壒鐐规槸閰嶇疆涓烘粴鍔ㄦā寮忔椂锛屾縺娲荤殑tab浼氳嚜鍔ㄧЩ鍔ㄥ埌缁勪欢鐨勪腑闂翠綅缃�� + * @tutorial https://www.uviewui.com/components/tabs.html + * @property {String | Number} duration 婊戝潡绉诲姩涓�娆℃墍闇�鐨勬椂闂达紝鍗曚綅绉掞紙榛樿 200 锛� + * @property {String | Number} swierWidth swiper鐨勫搴︼紙榛樿 '750rpx' 锛� + * @property {String} keyName 浠巂list`鍏冪礌瀵硅薄涓鍙栫殑閿悕锛堥粯璁� 'name' 锛� + * @event {Function(index)} change 鏍囩鏀瑰彉鏃惰Е鍙� index: 鐐瑰嚮浜嗙鍑犱釜tab锛岀储寮曚粠0寮�濮� + * @event {Function(index)} click 鐐瑰嚮鏍囩鏃惰Е鍙� index: 鐐瑰嚮浜嗙鍑犱釜tab锛岀储寮曚粠0寮�濮� + * @example <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> + */ + export default { + name: 'u-tabs', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + firstTime: true, + scrollLeft: 0, + scrollViewWidth: 0, + lineOffsetLeft: 0, + tabsRect: { + left: 0 + }, + innerCurrent: 0, + moving: false, + } + }, + watch: { + current: { + immediate: true, + handler (newValue, oldValue) { + // 鍐呭閮ㄥ�间笉鐩哥瓑鏃讹紝鎵嶅皾璇曠Щ鍔ㄦ粦鍧� + if (newValue !== this.innerCurrent) { + this.innerCurrent = newValue + this.$nextTick(() => { + this.resize() + }) + } + } + }, + // list鍙樺寲鏃讹紝閲嶆柊娓叉煋list鍚勯」淇℃伅 + list() { + this.$nextTick(() => { + this.resize() + }) + } + }, + computed: { + textStyle() { + return index => { + const style = {} + // 鍙栧綋鏈熸槸鍚︽縺娲荤殑鏍峰紡 + const customeStyle = index === this.innerCurrent ? uni.$u.addStyle(this.activeStyle) : uni.$u + .addStyle( + this.inactiveStyle) + // 濡傛灉褰撳墠鑿滃崟琚鐢紝鍒欏姞涓婂搴旈鑹诧紝闇�瑕佸湪姝ゅ仛澶勭悊锛屾槸鍥犱负nvue涓嬶紝鏃犳硶鍦╯tyle鏍峰紡涓�氳繃!import瑕嗙洊鏍囩鐨勫唴鑱旀牱寮� + if (this.list[index].disabled) { + style.color = '#c8c9cc' + } + return uni.$u.deepMerge(customeStyle, style) + } + }, + propsBadge() { + return uni.$u.props.badge + } + }, + async mounted() { + this.init() + }, + methods: { + setLineLeft() { + const tabItem = this.list[this.innerCurrent]; + if (!tabItem) { + return; + } + // 鑾峰彇婊戝潡璇ョЩ鍔ㄧ殑浣嶇疆 + let lineOffsetLeft = this.list + .slice(0, this.innerCurrent) + .reduce((total, curr) => total + curr.rect.width, 0); + // 鑾峰彇涓嬪垝绾跨殑鏁板�紁x琛ㄧず娉� + const lineWidth = uni.$u.getPx(this.lineWidth); + this.lineOffsetLeft = lineOffsetLeft + (tabItem.rect.width - lineWidth) / 2 + // #ifdef APP-NVUE + // 绗竴娆$Щ鍔ㄦ粦鍧楋紝鏃犻渶杩囨浮鏃堕棿 + this.animation(this.lineOffsetLeft, this.firstTime ? 0 : parseInt(this.duration)) + // #endif + + // 濡傛灉鏄涓�娆℃墽琛屾鏂规硶锛岃婊戝潡鍦ㄥ垵濮嬪寲鏃讹紝鐬棿婊戝姩鍒扮涓�涓猼ab item鐨勪腑闂� + // 杩欓噷闇�瑕佷竴涓畾鏃跺櫒锛屽洜涓哄湪闈瀗vue涓嬶紝鏄洿鎺ラ�氳繃style缁戝畾杩囨浮鏃堕棿锛岄渶瑕佺瓑鍏惰繃娓″畬鎴愬悗锛屽啀璁剧疆涓篺alse(闈炵涓�娆$Щ鍔ㄦ粦鍧�) + if (this.firstTime) { + setTimeout(() => { + this.firstTime = false + }, 10); + } + }, + // nvue涓嬭缃粦鍧楃殑浣嶇疆 + animation(x, duration = 0) { + // #ifdef APP-NVUE + const ref = this.$refs['u-tabs__wrapper__nav__line'] + animation.transition(ref, { + styles: { + transform: `translateX(${x}px)` + }, + duration + }) + // #endif + }, + // 鐐瑰嚮鏌愪竴涓爣绛� + clickHandler(item, index) { + // 鍥犱负鏍囩鍙兘涓篸isabled鐘舵�侊紝鎵�浠lick鏄竴瀹氫細鍙戝嚭鐨勶紝浣嗘槸change浜嬩欢鏄渶瑕佸彲鐢ㄧ殑鐘舵�佹墠鍙戝嚭 + this.$emit('click', { + ...item, + index + }) + // 濡傛灉disabled鐘舵�侊紝杩斿洖 + if (item.disabled) return + this.innerCurrent = index + this.resize() + this.$emit('change', { + ...item, + index + }) + }, + init() { + uni.$u.sleep().then(() => { + this.resize() + }) + }, + setScrollLeft() { + // 褰撳墠娲诲姩tab鐨勫竷灞�淇℃伅锛屾湁tab鑿滃崟鐨剋idth鍜宭eft(涓哄厓绱犲乏杈圭晫鍒扮埗鍏冪礌宸﹁竟鐣岀殑璺濈)绛変俊鎭� + const tabRect = this.list[this.innerCurrent] + // 绱姞寰楀埌褰撳墠item鍒板乏杈圭殑璺濈 + const offsetLeft = this.list + .slice(0, this.innerCurrent) + .reduce((total, curr) => { + return total + curr.rect.width + }, 0) + // 姝ゅ涓哄睆骞曞搴� + const windowWidth = uni.$u.sys().windowWidth + // 灏嗘椿鍔ㄧ殑tabs-item绉诲姩鍒板睆骞曟涓棿锛屽疄闄呬笂鏄scroll-view鐨勭Щ鍔� + let scrollLeft = offsetLeft - (this.tabsRect.width - tabRect.rect.width) / 2 - (windowWidth - this.tabsRect + .right) / 2 + this.tabsRect.left / 2 + // 杩欓噷鍋氫竴涓檺鍒讹紝闄愬埗scrollLeft鐨勬渶澶у�间负鏁翠釜scroll-view瀹藉害鍑忓幓tabs缁勪欢鐨勫搴� + scrollLeft = Math.min(scrollLeft, this.scrollViewWidth - this.tabsRect.width) + this.scrollLeft = Math.max(0, scrollLeft) + }, + // 鑾峰彇鎵�鏈夋爣绛剧殑灏哄 + resize() { + // 濡傛灉涓嶅瓨鍦╨ist锛屽垯涓嶅鐞� + if(this.list.length === 0) { + return + } + Promise.all([this.getTabsRect(), this.getAllItemRect()]).then(([tabsRect, itemRect = []]) => { + this.tabsRect = tabsRect + this.scrollViewWidth = 0 + itemRect.map((item, index) => { + // 璁$畻scroll-view鐨勫搴︼紝杩欓噷 + this.scrollViewWidth += item.width + // 鍙﹀璁$畻姣忎竴涓猧tem鐨勪腑蹇冪偣X杞村潗鏍� + this.list[index].rect = item + }) + // 鑾峰彇浜唗abs鐨勫昂瀵镐箣鍚庯紝璁剧疆婊戝潡鐨勪綅缃� + this.setLineLeft() + this.setScrollLeft() + }) + }, + // 鑾峰彇瀵艰埅鑿滃崟鐨勫昂瀵� + getTabsRect() { + return new Promise(resolve => { + this.queryRect('u-tabs__wrapper__scroll-view').then(size => resolve(size)) + }) + }, + // 鑾峰彇鎵�鏈夋爣绛剧殑灏哄 + getAllItemRect() { + return new Promise(resolve => { + const promiseAllArr = this.list.map((item, index) => this.queryRect( + `u-tabs__wrapper__nav__item-${index}`, true)) + Promise.all(promiseAllArr).then(sizes => resolve(sizes)) + }) + }, + // 鑾峰彇鍚勪釜鏍囩鐨勫昂瀵� + queryRect(el, item) { + // #ifndef APP-NVUE + // $uGetRect涓簎View鑷甫鐨勮妭鐐规煡璇㈢畝鍖栨柟娉曪紝璇﹁鏂囨。浠嬬粛锛歨ttps://www.uviewui.com/js/getRect.html + // 缁勪欢鍐呴儴涓�鑸敤this.$uGetRect锛屽澶栫殑涓簎ni.$u.getRect锛屼簩鑰呭姛鑳戒竴鑷达紝鍚嶇О涓嶅悓 + return new Promise(resolve => { + this.$uGetRect(`.${el}`).then(size => { + resolve(size) + }) + }) + // #endif + + // #ifdef APP-NVUE + // nvue涓嬶紝浣跨敤dom妯″潡鏌ヨ鍏冪礌楂樺害 + // 杩斿洖涓�涓猵romise锛岃璋冪敤姝ゆ柟娉曠殑涓讳綋鑳戒娇鐢╰hen鍥炶皟 + return new Promise(resolve => { + dom.getComponentRect(item ? this.$refs[el][0] : this.$refs[el], res => { + resolve(res.size) + }) + }) + // #endif + }, + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-tabs { + + &__wrapper { + @include flex; + align-items: center; + + &__scroll-view-wrapper { + flex: 1; + /* #ifndef APP-NVUE */ + overflow: auto hidden; + /* #endif */ + } + + &__scroll-view { + @include flex; + flex: 1; + } + + &__nav { + @include flex; + position: relative; + + &__item { + padding: 0 11px; + @include flex; + align-items: center; + justify-content: center; + + &--disabled { + /* #ifndef APP-NVUE */ + cursor: not-allowed; + /* #endif */ + } + + &__text { + font-size: 15px; + color: $u-content-color; + + &--disabled { + color: $u-disabled-color !important; + } + } + } + + &__line { + height: 3px; + background: $u-primary; + width: 30px; + position: absolute; + bottom: 2px; + border-radius: 100px; + transition-property: transform; + transition-duration: 300ms; + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/props.js new file mode 100644 index 0000000..6bffaa2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/props.js @@ -0,0 +1,84 @@ +export default { + props: { + // 鏍囩绫诲瀷info銆乸rimary銆乻uccess銆亀arning銆乪rror + type: { + type: String, + default: uni.$u.props.tag.type + }, + // 涓嶅彲鐢� + disabled: { + type: [Boolean, String], + default: uni.$u.props.tag.disabled + }, + // 鏍囩鐨勫ぇ灏忥紝large锛宮edium锛宮ini + size: { + type: String, + default: uni.$u.props.tag.size + }, + // tag鐨勫舰鐘讹紝circle锛堜袱杈瑰崐鍦嗗舰锛�, square锛堟柟褰紝甯﹀渾瑙掞級 + shape: { + type: String, + default: uni.$u.props.tag.shape + }, + // 鏍囩鏂囧瓧 + text: { + type: [String, Number], + default: uni.$u.props.tag.text + }, + // 鑳屾櫙棰滆壊锛岄粯璁や负绌哄瓧绗︿覆锛屽嵆涓嶅鐞� + bgColor: { + type: String, + default: uni.$u.props.tag.bgColor + }, + // 鏍囩瀛椾綋棰滆壊锛岄粯璁や负绌哄瓧绗︿覆锛屽嵆涓嶅鐞� + color: { + type: String, + default: uni.$u.props.tag.color + }, + // 鏍囩鐨勮竟妗嗛鑹� + borderColor: { + type: String, + default: uni.$u.props.tag.borderColor + }, + // 鍏抽棴鎸夐挳鍥炬爣鐨勯鑹� + closeColor: { + type: String, + default: uni.$u.props.tag.closeColor + }, + // 鐐瑰嚮鏃惰繑鍥炵殑绱㈠紩鍊硷紝鐢ㄤ簬鍖哄垎渚嬮亶鐨勬暟缁勫摢涓厓绱犺鐐瑰嚮浜� + name: { + type: [String, Number], + default: uni.$u.props.tag.name + }, + // // 妯″紡閫夋嫨锛宒ark|light|plain + // mode: { + // type: String, + // default: 'light' + // }, + // 闀傜┖鏃舵槸鍚﹀~鍏呰儗鏅壊 + plainFill: { + type: Boolean, + default: uni.$u.props.tag.plainFill + }, + // 鏄惁闀傜┖ + plain: { + type: Boolean, + default: uni.$u.props.tag.plain + }, + // 鏄惁鍙叧闂� + closable: { + type: Boolean, + default: uni.$u.props.tag.closable + }, + // 鏄惁鏄剧ず + show: { + type: Boolean, + default: uni.$u.props.tag.show + }, + // 鍐呯疆鍥炬爣锛屾垨缁濆璺緞鐨勫浘鐗� + icon: { + type: String, + default: uni.$u.props.tag.icon + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/u-tag.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/u-tag.vue new file mode 100644 index 0000000..95f33c4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tag/u-tag.vue @@ -0,0 +1,358 @@ +<template> + <u-transition + mode="fade" + :show="show" + > + <view class="u-tag-wrapper"> + <view + class="u-tag" + :class="[`u-tag--${shape}`, !plain && `u-tag--${type}`, plain && `u-tag--${type}--plain`, `u-tag--${size}`, plain && plainFill && `u-tag--${type}--plain--fill`]" + @tap.stop="clickHandler" + :style="[{ + marginRight: closable ? '10px' : 0, + marginTop: closable ? '10px' : 0, + }, style]" + > + <slot name="icon"> + <view + class="u-tag__icon" + v-if="icon" + > + <image + v-if="$u.test.image(icon)" + :src="icon" + :style="[imgStyle]" + ></image> + <u-icon + v-else + :color="elIconColor" + :name="icon" + :size="iconSize" + ></u-icon> + </view> + </slot> + <text + class="u-tag__text" + :style="[textColor]" + :class="[`u-tag__text--${type}`, plain && `u-tag__text--${type}--plain`, `u-tag__text--${size}`]" + >{{ text }}</text> + </view> + <view + class="u-tag__close" + :class="[`u-tag__close--${size}`]" + v-if="closable" + @tap.stop="closeHandler" + :style="{backgroundColor: closeColor}" + > + <u-icon + name="close" + :size="closeSize" + color="#ffffff" + ></u-icon> + </view> + </view> + </u-transition> +</template> + +<script> + import props from './props.js'; + /** + * Tag 鏍囩 + * @description tag缁勪欢涓�鑸敤浜庢爣璁板拰閫夋嫨锛屾垜浠彁渚涗簡鏇村姞涓板瘜鐨勮〃鐜板舰寮忥紝鑳藉杈冨叏闈㈢殑娑电洊鎮ㄧ殑浣跨敤鍦烘櫙 + * @tutorial https://www.uviewui.com/components/tag.html + * @property {String} type 鏍囩绫诲瀷info銆乸rimary銆乻uccess銆亀arning銆乪rror 锛堥粯璁� 'primary' 锛� + * @property {Boolean | String} disabled 涓嶅彲鐢紙榛樿 false 锛� + * @property {String} size 鏍囩鐨勫ぇ灏忥紝large锛宮edium锛宮ini 锛堥粯璁� 'medium' 锛� + * @property {String} shape tag鐨勫舰鐘讹紝circle锛堜袱杈瑰崐鍦嗗舰锛�, square锛堟柟褰紝甯﹀渾瑙掞級锛堥粯璁� 'square' 锛� + * @property {String | Number} text 鏍囩鐨勬枃瀛楀唴瀹� + * @property {String} bgColor 鑳屾櫙棰滆壊锛岄粯璁や负绌哄瓧绗︿覆锛屽嵆涓嶅鐞� + * @property {String} color 鏍囩瀛椾綋棰滆壊锛岄粯璁や负绌哄瓧绗︿覆锛屽嵆涓嶅鐞� + * @property {String} borderColor 闀傜┖褰㈠紡鏍囩鐨勮竟妗嗛鑹� + * @property {String} closeColor 鍏抽棴鎸夐挳鍥炬爣鐨勯鑹诧紙榛樿 #C6C7CB锛� + * @property {String | Number} name 鐐瑰嚮鏃惰繑鍥炵殑绱㈠紩鍊硷紝鐢ㄤ簬鍖哄垎渚嬮亶鐨勬暟缁勫摢涓厓绱犺鐐瑰嚮浜� + * @property {Boolean} plainFill 闀傜┖鏃舵槸鍚﹀~鍏呰儗鏅壊锛堥粯璁� false 锛� + * @property {Boolean} plain 鏄惁闀傜┖锛堥粯璁� false 锛� + * @property {Boolean} closable 鏄惁鍙叧闂紝璁剧疆涓簍rue锛屾枃瀛楀彸杈逛細鍑虹幇涓�涓叧闂浘鏍囷紙榛樿 false 锛� + * @property {Boolean} show 鏍囩鏄剧ず涓庡惁锛堥粯璁� true 锛� + * @property {String} icon 鍐呯疆鍥炬爣锛屾垨缁濆璺緞鐨勫浘鐗� + * @event {Function(index)} click 鐐瑰嚮鏍囩鏃惰Е鍙� index: 浼犻�掔殑index鍙傛暟鍊� + * @event {Function(index)} close closable涓簍rue鏃讹紝鐐瑰嚮鏍囩鍏抽棴鎸夐挳瑙﹀彂 index: 浼犻�掔殑index鍙傛暟鍊� + * @example <u-tag text="鏍囩" type="error" plain plainFill></u-tag> + */ + export default { + name: 'u-tag', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + + } + }, + computed: { + style() { + const style = {} + if (this.bgColor) { + style.backgroundColor = this.bgColor + } + if (this.color) { + style.color = this.color + } + if(this.borderColor) { + style.borderColor = this.borderColor + } + return style + }, + // nvue涓嬶紝鏂囨湰棰滆壊鏃犳硶缁ф壙鐖跺厓绱� + textColor() { + const style = {} + if (this.color) { + style.color = this.color + } + return style + }, + imgStyle() { + const width = this.size === 'large' ? '17px' : this.size === 'medium' ? '15px' : '13px' + return { + width, + height: width + } + }, + // 鏂囨湰鐨勬牱寮� + closeSize() { + const size = this.size === 'large' ? 15 : this.size === 'medium' ? 13 : 12 + return size + }, + // 鍥炬爣澶у皬 + iconSize() { + const size = this.size === 'large' ? 21 : this.size === 'medium' ? 19 : 16 + return size + }, + // 鍥炬爣棰滆壊 + elIconColor() { + return this.iconColor ? this.iconColor : this.plain ? this.type : '#ffffff' + } + }, + methods: { + // 鐐瑰嚮鍏抽棴鎸夐挳 + closeHandler() { + this.$emit('close', this.name) + }, + // 鐐瑰嚮鏍囩 + clickHandler() { + this.$emit('click', this.name) + } + } + } +</script> + +<style + lang="scss" + scoped +> + @import "../../libs/css/components.scss"; + + .u-tag-wrapper { + position: relative; + } + + .u-tag { + @include flex; + align-items: center; + border-style: solid; + + &--circle { + border-radius: 100px; + } + + &--square { + border-radius: 3px; + } + + &__icon { + margin-right: 4px; + } + + &__text { + &--mini { + font-size: 12px; + line-height: 12px; + } + + &--medium { + font-size: 13px; + line-height: 13px; + } + + &--large { + font-size: 15px; + line-height: 15px; + } + } + + &--mini { + height: 22px; + line-height: 22px; + padding: 0 5px; + } + + &--medium { + height: 26px; + line-height: 22px; + padding: 0 10px; + } + + &--large { + height: 32px; + line-height: 32px; + padding: 0 15px; + } + + &--primary { + background-color: $u-primary; + border-width: 1px; + border-color: $u-primary; + } + + &--primary--plain { + border-width: 1px; + border-color: $u-primary; + } + + &--primary--plain--fill { + background-color: #ecf5ff; + } + + &__text--primary { + color: #FFFFFF; + } + + &__text--primary--plain { + color: $u-primary; + } + + &--error { + background-color: $u-error; + border-width: 1px; + border-color: $u-error; + } + + &--error--plain { + border-width: 1px; + border-color: $u-error; + } + + &--error--plain--fill { + background-color: #fef0f0; + } + + &__text--error { + color: #FFFFFF; + } + + &__text--error--plain { + color: $u-error; + } + + &--warning { + background-color: $u-warning; + border-width: 1px; + border-color: $u-warning; + } + + &--warning--plain { + border-width: 1px; + border-color: $u-warning; + } + + &--warning--plain--fill { + background-color: #fdf6ec; + } + + &__text--warning { + color: #FFFFFF; + } + + &__text--warning--plain { + color: $u-warning; + } + + &--success { + background-color: $u-success; + border-width: 1px; + border-color: $u-success; + } + + &--success--plain { + border-width: 1px; + border-color: $u-success; + } + + &--success--plain--fill { + background-color: #f5fff0; + } + + &__text--success { + color: #FFFFFF; + } + + &__text--success--plain { + color: $u-success; + } + + &--info { + background-color: $u-info; + border-width: 1px; + border-color: $u-info; + } + + &--info--plain { + border-width: 1px; + border-color: $u-info; + } + + &--info--plain--fill { + background-color: #f4f4f5; + } + + &__text--info { + color: #FFFFFF; + } + + &__text--info--plain { + color: $u-info; + } + + &__close { + position: absolute; + z-index: 999; + top: 10px; + right: 10px; + border-radius: 100px; + background-color: #C6C7CB; + @include flex(row); + align-items: center; + justify-content: center; + /* #ifndef APP-NVUE */ + transform: scale(0.6) translate(80%, -80%); + /* #endif */ + /* #ifdef APP-NVUE */ + transform: scale(0.6) translate(50%, -50%); + /* #endif */ + + &--mini { + width: 18px; + height: 18px; + } + + &--medium { + width: 22px; + height: 22px; + } + + &--large { + width: 25px; + height: 25px; + } + } + + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/u-td.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/u-td.vue new file mode 100644 index 0000000..600dce5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-td/u-td.vue @@ -0,0 +1,31 @@ +<template> + <view class="u-td"> + + </view> +</template> + +<script> + import props from './props.js'; + /** + * Td 琛ㄦ牸涓殑鍗曞厓鏍� + * @description + * @tutorial url + * @property {String | Number} + * @event {Function} + * @example + */ + export default { + name: 'u-td', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/props.js new file mode 100644 index 0000000..85a0836 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/props.js @@ -0,0 +1,110 @@ +export default { + props: { + // 涓婚棰滆壊 + type: { + type: String, + default: uni.$u.props.text.type + }, + // 鏄惁鏄剧ず + show: { + type: Boolean, + default: uni.$u.props.text.show + }, + // 鏄剧ず鐨勫�� + text: { + type: [String, Number], + default: uni.$u.props.text.text + }, + // 鍓嶇疆鍥炬爣 + prefixIcon: { + type: String, + default: uni.$u.props.text.prefixIcon + }, + // 鍚庣疆鍥炬爣 + suffixIcon: { + type: String, + default: uni.$u.props.text.suffixIcon + }, + // 鏂囨湰澶勭悊鐨勫尮閰嶆ā寮� + // text-鏅�氭枃鏈紝price-浠锋牸锛宲hone-鎵嬫満鍙凤紝name-濮撳悕锛宒ate-鏃ユ湡锛宭ink-瓒呴摼鎺� + mode: { + type: String, + default: uni.$u.props.text.mode + }, + // mode=link涓嬶紝閰嶇疆鐨勯摼鎺� + href: { + type: String, + default: uni.$u.props.text.href + }, + // 鏍煎紡鍖栬鍒� + format: { + type: [String, Function], + default: uni.$u.props.text.format + }, + // mode=phone鏃讹紝鐐瑰嚮鏂囨湰鏄惁鎷ㄦ墦鐢佃瘽 + call: { + type: Boolean, + default: uni.$u.props.text.call + }, + // 灏忕▼搴忕殑鎵撳紑鏂瑰紡 + openType: { + type: String, + default: uni.$u.props.text.openType + }, + // 鏄惁绮椾綋锛岄粯璁ormal + bold: { + type: Boolean, + default: uni.$u.props.text.bold + }, + // 鏄惁鍧楃姸 + block: { + type: Boolean, + default: uni.$u.props.text.block + }, + // 鏂囨湰鏄剧ず鐨勮鏁帮紝濡傛灉璁剧疆锛岃秴鍑烘琛屾暟锛屽皢浼氭樉绀虹渷鐣ュ彿 + lines: { + type: [String, Number], + default: uni.$u.props.text.lines + }, + // 鏂囨湰棰滆壊 + color: { + type: String, + default: uni.$u.props.text.color + }, + // 瀛椾綋澶у皬 + size: { + type: [String, Number], + default: uni.$u.props.text.size + }, + // 鍥炬爣鐨勬牱寮� + iconStyle: { + type: [Object, String], + default: uni.$u.props.text.iconStyle + }, + // 鏂囧瓧瑁呴グ锛屼笅鍒掔嚎锛屼腑鍒掔嚎绛夛紝鍙�夊�� none|underline|line-through + decoration: { + tepe: String, + default: uni.$u.props.text.decoration + }, + // 澶栬竟璺濓紝瀵硅薄銆佸瓧绗︿覆锛屾暟鍊煎舰寮忓潎鍙� + margin: { + type: [Object, String, Number], + default: uni.$u.props.text.margin + }, + // 鏂囨湰琛岄珮 + lineHeight: { + type: [String, Number], + default: uni.$u.props.text.lineHeight + }, + // 鏂囨湰瀵归綈鏂瑰紡锛屽彲閫夊�糽eft|center|right + align: { + type: String, + default: uni.$u.props.text.align + }, + // 鏂囧瓧鎹㈣锛屽彲閫夊�糱reak-word|normal|anywhere + wordWrap: { + type: String, + default: uni.$u.props.text.wordWrap + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/u-text.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/u-text.vue new file mode 100644 index 0000000..99d0809 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/u-text.vue @@ -0,0 +1,223 @@ +<template> + <view + class="u-text" + :class="[]" + v-if="show" + :style="{ + margin: margin, + justifyContent: align === 'left' ? 'flex-start' : align === 'center' ? 'center' : 'flex-end' + }" + @tap="clickHandler" + > + <text + :class="['u-text__price', type && `u-text__value--${type}`]" + v-if="mode === 'price'" + :style="[valueStyle]" + >锟�</text + > + <view class="u-text__prefix-icon" v-if="prefixIcon"> + <u-icon + :name="prefixIcon" + :customStyle="$u.addStyle(iconStyle)" + ></u-icon> + </view> + <u-link + v-if="mode === 'link'" + :text="value" + :href="href" + underLine + ></u-link> + <template v-else-if="openType && isMp"> + <button + class="u-reset-button u-text__value" + :style="[valueStyle]" + :data-index="index" + :openType="openType" + @getuserinfo="onGetUserInfo" + @contact="onContact" + @getphonenumber="onGetPhoneNumber" + @error="onError" + @launchapp="onLaunchApp" + @opensetting="onOpenSetting" + :lang="lang" + :session-from="sessionFrom" + :send-message-title="sendMessageTitle" + :send-message-path="sendMessagePath" + :send-message-img="sendMessageImg" + :show-message-card="showMessageCard" + :app-parameter="appParameter" + > + {{ value }} + </button> + </template> + <text + v-else + class="u-text__value" + :style="[valueStyle]" + :class="[ + type && `u-text__value--${type}`, + lines && `u-line-${lines}` + ]" + >{{ value }}</text + > + <view class="u-text__suffix-icon" v-if="suffixIcon"> + <u-icon + :name="suffixIcon" + :customStyle="$u.addStyle(iconStyle)" + ></u-icon> + </view> + </view> +</template> + +<script> +import value from './value.js' +import button from '../../libs/mixin/button.js' +import openType from '../../libs/mixin/openType.js' +import props from './props.js' +/** + * Text 鏂囨湰 + * @description 姝ょ粍浠堕泦鎴愪簡鏂囨湰绫诲湪椤圭洰涓殑甯哥敤鍔熻兘锛屽寘鎷姸鎬侊紝鎷ㄦ墦鐢佃瘽锛屾牸寮忓寲鏃ユ湡锛�*鏇挎崲锛岃秴閾炬帴...绛夊姛鑳姐�� 鎮ㄥぇ鍙笉蹇呭湪浣跨敤鐗规畩鏂囨湰鏃惰嚜宸卞畾涔夛紝text缁勪欢鍑犱箮娑电洊鎮ㄨ兘浣跨敤鐨勫ぇ閮ㄥ垎鍦烘櫙銆� + * @tutorial https://www.uviewui.com/components/loading.html + * @property {String} type 涓婚棰滆壊 + * @property {Boolean} show 鏄惁鏄剧ず锛堥粯璁� true 锛� + * @property {String | Number} text 鏄剧ず鐨勫�� + * @property {String} prefixIcon 鍓嶇疆鍥炬爣 + * @property {String} suffixIcon 鍚庣疆鍥炬爣 + * @property {String} mode 鏂囨湰澶勭悊鐨勫尮閰嶆ā寮� text-鏅�氭枃鏈紝price-浠锋牸锛宲hone-鎵嬫満鍙凤紝name-濮撳悕锛宒ate-鏃ユ湡锛宭ink-瓒呴摼鎺� + * @property {String} href mode=link涓嬶紝閰嶇疆鐨勯摼鎺� + * @property {String | Function} format 鏍煎紡鍖栬鍒� + * @property {Boolean} call mode=phone鏃讹紝鐐瑰嚮鏂囨湰鏄惁鎷ㄦ墦鐢佃瘽锛堥粯璁� false 锛� + * @property {String} openType 灏忕▼搴忕殑鎵撳紑鏂瑰紡 + * @property {Boolean} bold 鏄惁绮椾綋锛岄粯璁ormal锛堥粯璁� false 锛� + * @property {Boolean} block 鏄惁鍧楃姸锛堥粯璁� false 锛� + * @property {String | Number} lines 鏂囨湰鏄剧ず鐨勮鏁帮紝濡傛灉璁剧疆锛岃秴鍑烘琛屾暟锛屽皢浼氭樉绀虹渷鐣ュ彿 + * @property {String} color 鏂囨湰棰滆壊锛堥粯璁� '#303133' 锛� + * @property {String | Number} size 瀛椾綋澶у皬锛堥粯璁� 15 锛� + * @property {Object | String} iconStyle 鍥炬爣鐨勬牱寮� 锛堥粯璁� {fontSize: '15px'} 锛� + * @property {String} decoration 鏂囧瓧瑁呴グ锛屼笅鍒掔嚎锛屼腑鍒掔嚎绛夛紝鍙�夊�� none|underline|line-through锛堥粯璁� 'none' 锛� + * @property {Object | String | Number} margin 澶栬竟璺濓紝瀵硅薄銆佸瓧绗︿覆锛屾暟鍊煎舰寮忓潎鍙紙榛樿 0 锛� + * @property {String | Number} lineHeight 鏂囨湰琛岄珮 + * @property {String} align 鏂囨湰瀵归綈鏂瑰紡锛屽彲閫夊�糽eft|center|right锛堥粯璁� 'left' 锛� + * @property {String} wordWrap 鏂囧瓧鎹㈣锛屽彲閫夊�糱reak-word|normal|anywhere锛堥粯璁� 'normal' 锛� + * @event {Function} click 鐐瑰嚮瑙﹀彂浜嬩欢 + * @example <u--text text="鎴戠敤鍗佸勾闈掓槬,璧翠綘鏈�鍚庝箣绾�"></u--text> + */ +export default { + name: 'u--text', + // #ifdef MP + mixins: [uni.$u.mpMixin, uni.$u.mixin, value, button, openType, props], + // #endif + // #ifndef MP + mixins: [uni.$u.mpMixin, uni.$u.mixin, value, props], + // #endif + computed: { + valueStyle() { + const style = { + textDecoration: this.decoration, + fontWeight: this.bold ? 'bold' : 'normal', + wordWrap: this.wordWrap, + fontSize: uni.$u.addUnit(this.size) + } + !this.type && (style.color = this.color) + this.isNvue && this.lines && (style.lines = this.lines) + this.lineHeight && + (style.lineHeight = uni.$u.addUnit(this.lineHeight)) + !this.isNvue && this.block && (style.display = 'block') + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + }, + isNvue() { + let nvue = false + // #ifdef APP-NVUE + nvue = true + // #endif + return nvue + }, + isMp() { + let mp = false + // #ifdef MP + mp = true + // #endif + return mp + } + }, + data() { + return {} + }, + methods: { + clickHandler() { + // 濡傛灉涓烘墜鏈哄彿妯″紡锛屾嫧鎵撶數璇� + if (this.call && this.mode === 'phone') { + uni.makePhoneCall({ + phoneNumber: this.text + }) + } + this.$emit('click') + } + } +} +</script> + +<style lang="scss" scoped> +@import '../../libs/css/components.scss'; + +.u-text { + @include flex(row); + align-items: center; + flex-wrap: nowrap; + flex: 1; + /* #ifndef APP-NVUE */ + width: 100%; + /* #endif */ + + &__price { + font-size: 14px; + color: $u-content-color; + } + + &__value { + font-size: 14px; + @include flex; + color: $u-content-color; + flex-wrap: wrap; + // flex: 1; + text-overflow: ellipsis; + align-items: center; + + &--primary { + color: $u-primary; + } + + &--warning { + color: $u-warning; + } + + &--success { + color: $u-success; + } + + &--info { + color: $u-info; + } + + &--error { + color: $u-error; + } + + &--main { + color: $u-main-color; + } + + &--content { + color: $u-content-color; + } + + &--tips { + color: $u-tips-color; + } + + &--light { + color: $u-light-color; + } + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/value.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/value.js new file mode 100644 index 0000000..9859bbb --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-text/value.js @@ -0,0 +1,85 @@ +export default { + computed: { + // 缁忓鐞嗗悗闇�瑕佹樉绀虹殑鍊� + value() { + const { + text, + mode, + format, + href + } = this + // 浠锋牸绫诲瀷 + if (mode === 'price') { + // 濡傛灉text涓嶄负閲戦杩涜鎻愮ず + if (!/^\d+(\.\d+)?$/.test(text)) { + uni.$u.error('閲戦妯″紡涓嬶紝text鍙傛暟闇�瑕佷负閲戦鏍煎紡'); + } + // 杩涜鏍煎紡鍖栵紝鍒ゆ柇鐢ㄦ埛浼犲叆鐨刦ormat鍙傛暟涓烘鍒欙紝鎴栬�呭嚱鏁帮紝濡傛灉娌℃湁浼犲叆format锛屽垯浣跨敤榛樿鐨勯噾棰濇牸寮忓寲澶勭悊 + if (uni.$u.test.func(format)) { + // 濡傛灉鐢ㄦ埛浼犲叆鐨勬槸鍑芥暟锛屼娇鐢ㄥ嚱鏁版牸寮忓寲 + return format(text) + } + // 濡傛灉format闈炴鍒欙紝闈炲嚱鏁帮紝鍒欎娇鐢ㄩ粯璁ょ殑閲戦鏍煎紡鍖栨柟娉曡繘琛屾搷浣� + return uni.$u.priceFormat(text, 2) + } if (mode === 'date') { + // 鍒ゆ柇鏄惁鍚堟硶鐨勬棩鏈熸垨鑰呮椂闂存埑 + !uni.$u.test.date(text) && uni.$u.error('鏃ユ湡妯″紡涓嬶紝text鍙傛暟闇�瑕佷负鏃ユ湡鎴栨椂闂存埑鏍煎紡') + // 杩涜鏍煎紡鍖栵紝鍒ゆ柇鐢ㄦ埛浼犲叆鐨刦ormat鍙傛暟涓烘鍒欙紝鎴栬�呭嚱鏁帮紝濡傛灉娌℃湁浼犲叆format锛屽垯浣跨敤榛樿鐨勬牸寮忓寲澶勭悊 + if (uni.$u.test.func(format)) { + // 濡傛灉鐢ㄦ埛浼犲叆鐨勬槸鍑芥暟锛屼娇鐢ㄥ嚱鏁版牸寮忓寲 + return format(text) + } if (format) { + // 濡傛灉format闈炴鍒欙紝闈炲嚱鏁帮紝鍒欎娇鐢ㄩ粯璁ょ殑鏃堕棿鏍煎紡鍖栨柟娉曡繘琛屾搷浣� + return uni.$u.timeFormat(text, format) + } + // 濡傛灉娌℃湁璁剧疆format锛屽垯璁剧疆涓洪粯璁ょ殑鏃堕棿鏍煎紡鍖栧舰寮� + return uni.$u.timeFormat(text, 'yyyy-mm-dd') + } if (mode === 'phone') { + // 鍒ゆ柇鏄惁鍚堟硶鐨勬墜鏈哄彿 + // !uni.$u.test.mobile(text) && uni.$u.error('鎵嬫満鍙锋ā寮忎笅锛宼ext鍙傛暟闇�瑕佷负鎵嬫満鍙风爜鏍煎紡') + if (uni.$u.test.func(format)) { + // 濡傛灉鐢ㄦ埛浼犲叆鐨勬槸鍑芥暟锛屼娇鐢ㄥ嚱鏁版牸寮忓寲 + return format(text) + } if (format === 'encrypt') { + // 濡傛灉format涓篹ncrypt锛屽垯灏嗘墜鏈哄彿杩涜鏄熷彿鍔犲瘑澶勭悊 + return `${text.substr(0, 3)}****${text.substr(7)}` + } + return text + } if (mode === 'name') { + // 鍒ゆ柇鏄惁鍚堟硶鐨勫瓧绗︾矖 + !(typeof (text) === 'string') && uni.$u.error('濮撳悕妯″紡涓嬶紝text鍙傛暟闇�瑕佷负瀛楃涓叉牸寮�') + if (uni.$u.test.func(format)) { + // 濡傛灉鐢ㄦ埛浼犲叆鐨勬槸鍑芥暟锛屼娇鐢ㄥ嚱鏁版牸寮忓寲 + return format(text) + } if (format === 'encrypt') { + // 濡傛灉format涓篹ncrypt锛屽垯灏嗗鍚嶈繘琛屾槦鍙峰姞瀵嗗鐞� + return this.formatName(text) + } + return text + } if (mode === 'link') { + // 鍒ゆ柇鏄惁鍚堟硶鐨勫瓧绗︾矖 + !uni.$u.test.url(href) && uni.$u.error('瓒呴摼鎺ユā寮忎笅锛宧ref鍙傛暟闇�瑕佷负URL鏍煎紡') + return text + } + return text + } + }, + methods: { + // 榛樿鐨勫鍚嶈劚鏁忚鍒� + formatName(name) { + let value = '' + if (name.length === 2) { + value = name.substr(0, 1) + '*' + } else if (name.length > 2) { + let char = '' + for (let i = 0, len = name.length - 2; i < len; i++) { + char += '*' + } + value = name.substr(0, 1) + char + name.substr(-1, 1) + } else { + value = name + } + return value + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/props.js new file mode 100644 index 0000000..d0e16d5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/props.js @@ -0,0 +1,119 @@ +export default { + props: { + // 杈撳叆妗嗙殑鍐呭 + value: { + type: [String, Number], + default: uni.$u.props.textarea.value + }, + // 杈撳叆妗嗕负绌烘椂鍗犱綅绗� + placeholder: { + type: [String, Number], + default: uni.$u.props.textarea.placeholder + }, + // 鎸囧畾placeholder鐨勬牱寮忕被锛屾敞鎰忛〉闈㈡垨缁勪欢鐨剆tyle涓啓浜唖coped鏃讹紝闇�瑕佸湪绫诲悕鍓嶅啓/deep/ + placeholderClass: { + type: String, + default: uni.$u.props.input.placeholderClass + }, + // 鎸囧畾placeholder鐨勬牱寮� + placeholderStyle: { + type: [String, Object], + default: uni.$u.props.input.placeholderStyle + }, + // 杈撳叆妗嗛珮搴� + height: { + type: [String, Number], + default: uni.$u.props.textarea.height + }, + // 璁剧疆閿洏鍙充笅瑙掓寜閽殑鏂囧瓧锛屼粎寰俊灏忕▼搴忥紝App-vue鍜孒5鏈夋晥 + confirmType: { + type: String, + default: uni.$u.props.textarea.confirmType + }, + // 鏄惁绂佺敤 + disabled: { + type: Boolean, + default: uni.$u.props.textarea.disabled + }, + // 鏄惁鏄剧ず缁熻瀛楁暟 + count: { + type: Boolean, + default: uni.$u.props.textarea.count + }, + // 鏄惁鑷姩鑾峰彇鐒︾偣锛宯vue涓嶆敮鎸侊紝H5鍙栧喅浜庢祻瑙堝櫒鐨勫疄鐜� + focus: { + type: Boolean, + default: uni.$u.props.textarea.focus + }, + // 鏄惁鑷姩澧炲姞楂樺害 + autoHeight: { + type: Boolean, + default: uni.$u.props.textarea.autoHeight + }, + // 濡傛灉textarea鏄湪涓�涓猵osition:fixed鐨勫尯鍩燂紝闇�瑕佹樉绀烘寚瀹氬睘鎬ixed涓簍rue + fixed: { + type: Boolean, + default: uni.$u.props.textarea.fixed + }, + // 鎸囧畾鍏夋爣涓庨敭鐩樼殑璺濈 + cursorSpacing: { + type: Number, + default: uni.$u.props.textarea.cursorSpacing + }, + // 鎸囧畾focus鏃剁殑鍏夋爣浣嶇疆 + cursor: { + type: [String, Number], + default: uni.$u.props.textarea.cursor + }, + // 鏄惁鏄剧ず閿洏涓婃柟甯︽湁鈥濆畬鎴愨�滄寜閽偅涓�鏍忥紝 + showConfirmBar: { + type: Boolean, + default: uni.$u.props.textarea.showConfirmBar + }, + // 鍏夋爣璧峰浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-end鎼厤浣跨敤 + selectionStart: { + type: Number, + default: uni.$u.props.textarea.selectionStart + }, + // 鍏夋爣缁撴潫浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-start鎼厤浣跨敤 + selectionEnd: { + type: Number, + default: uni.$u.props.textarea.selectionEnd + }, + // 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰 + adjustPosition: { + type: Boolean, + default: uni.$u.props.textarea.adjustPosition + }, + // 鏄惁鍘绘帀 iOS 涓嬬殑榛樿鍐呰竟璺濓紝鍙井淇″皬绋嬪簭鏈夋晥 + disableDefaultPadding: { + type: Boolean, + default: uni.$u.props.textarea.disableDefaultPadding + }, + // focus鏃讹紝鐐瑰嚮椤甸潰鐨勬椂鍊欎笉鏀惰捣閿洏锛屽彧寰俊灏忕▼搴忔湁鏁� + holdKeyboard: { + type: Boolean, + default: uni.$u.props.textarea.holdKeyboard + }, + // 鏈�澶ц緭鍏ラ暱搴︼紝璁剧疆涓� -1 鐨勬椂鍊欎笉闄愬埗鏈�澶ч暱搴� + maxlength: { + type: [String, Number], + default: uni.$u.props.textarea.maxlength + }, + // 杈规绫诲瀷锛宻urround-鍥涘懆杈规锛宐ottom-搴曢儴杈规 + border: { + type: String, + default: uni.$u.props.textarea.border + }, + // 鐢ㄤ簬澶勭悊鎴栬�呰繃婊よ緭鍏ユ鍐呭鐨勬柟娉� + formatter: { + type: [Function, null], + default: uni.$u.props.textarea.formatter + }, + // 鏄惁蹇界暐缁勪欢鍐呭鏂囨湰鍚堟垚绯荤粺浜嬩欢鐨勫鐞� + ignoreCompositionEvent: { + type: Boolean, + default: true + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/u-textarea.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/u-textarea.vue new file mode 100644 index 0000000..2cd5fdc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-textarea/u-textarea.vue @@ -0,0 +1,239 @@ +<template> + <view class="u-textarea" :class="textareaClass" :style="[textareaStyle]"> + <textarea + class="u-textarea__field" + :value="innerValue" + :style="{ height: $u.addUnit(height) }" + :placeholder="placeholder" + :placeholder-style="$u.addStyle(placeholderStyle, 'string')" + :placeholder-class="placeholderClass" + :disabled="disabled" + :focus="focus" + :autoHeight="autoHeight" + :fixed="fixed" + :cursorSpacing="cursorSpacing" + :cursor="cursor" + :showConfirmBar="showConfirmBar" + :selectionStart="selectionStart" + :selectionEnd="selectionEnd" + :adjustPosition="adjustPosition" + :disableDefaultPadding="disableDefaultPadding" + :holdKeyboard="holdKeyboard" + :maxlength="maxlength" + :confirmType="confirmType" + :ignoreCompositionEvent="ignoreCompositionEvent" + @focus="onFocus" + @blur="onBlur" + @linechange="onLinechange" + @input="onInput" + @confirm="onConfirm" + @keyboardheightchange="onKeyboardheightchange" + ></textarea> + <text + class="u-textarea__count" + :style="{ + 'background-color': disabled ? 'transparent' : '#fff', + }" + v-if="count" + >{{ innerValue.length }}/{{ maxlength }}</text + > + </view> +</template> + +<script> +import props from "./props.js"; +/** + * Textarea 鏂囨湰鍩� + * @description 鏂囨湰鍩熸缁勪欢婊¤冻浜嗗彲鑳藉嚭鐜扮殑琛ㄥ崟淇℃伅琛ュ厖锛岀紪杈戠瓑瀹為檯閫昏緫鐨勫姛鑳斤紝鍐呯疆浜嗗瓧鏁版牎楠岀瓑 + * @tutorial https://www.uviewui.com/components/textarea.html + * + * @property {String | Number} value 杈撳叆妗嗙殑鍐呭 + * @property {String | Number} placeholder 杈撳叆妗嗕负绌烘椂鍗犱綅绗� + * @property {String} placeholderClass 鎸囧畾placeholder鐨勬牱寮忕被锛屾敞鎰忛〉闈㈡垨缁勪欢鐨剆tyle涓啓浜唖coped鏃讹紝闇�瑕佸湪绫诲悕鍓嶅啓/deep/ 锛� 榛樿 'input-placeholder' 锛� + * @property {String | Object} placeholderStyle 鎸囧畾placeholder鐨勬牱寮忥紝瀛楃涓�/瀵硅薄褰㈠紡锛屽"color: red;" + * @property {String | Number} height 杈撳叆妗嗛珮搴︼紙榛樿 70 锛� + * @property {String} confirmType 璁剧疆閿洏鍙充笅瑙掓寜閽殑鏂囧瓧锛屼粎寰俊灏忕▼搴忥紝App-vue鍜孒5鏈夋晥锛堥粯璁� 'done' 锛� + * @property {Boolean} disabled 鏄惁绂佺敤锛堥粯璁� false 锛� + * @property {Boolean} count 鏄惁鏄剧ず缁熻瀛楁暟锛堥粯璁� false 锛� + * @property {Boolean} focus 鏄惁鑷姩鑾峰彇鐒︾偣锛宯vue涓嶆敮鎸侊紝H5鍙栧喅浜庢祻瑙堝櫒鐨勫疄鐜帮紙榛樿 false 锛� + * @property {Boolean | Function} autoHeight 鏄惁鑷姩澧炲姞楂樺害锛堥粯璁� false 锛� + * @property {Boolean} fixed 濡傛灉textarea鏄湪涓�涓猵osition:fixed鐨勫尯鍩燂紝闇�瑕佹樉绀烘寚瀹氬睘鎬ixed涓簍rue锛堥粯璁� false 锛� + * @property {Number} cursorSpacing 鎸囧畾鍏夋爣涓庨敭鐩樼殑璺濈锛堥粯璁� 0 锛� + * @property {String | Number} cursor 鎸囧畾focus鏃剁殑鍏夋爣浣嶇疆 + * @property {Function} formatter 鍐呭寮忓寲鍑芥暟 + * @property {Boolean} showConfirmBar 鏄惁鏄剧ず閿洏涓婃柟甯︽湁鈥濆畬鎴愨�滄寜閽偅涓�鏍忥紝锛堥粯璁� true 锛� + * @property {Number} selectionStart 鍏夋爣璧峰浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-end鎼厤浣跨敤锛岋紙榛樿 -1 锛� + * @property {Number | Number} selectionEnd 鍏夋爣缁撴潫浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-start鎼厤浣跨敤锛堥粯璁� -1 锛� + * @property {Boolean} adjustPosition 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰锛堥粯璁� true 锛� + * @property {Boolean | Number} disableDefaultPadding 鏄惁鍘绘帀 iOS 涓嬬殑榛樿鍐呰竟璺濓紝鍙井淇″皬绋嬪簭鏈夋晥锛堥粯璁� false 锛� + * @property {Boolean} holdKeyboard focus鏃讹紝鐐瑰嚮椤甸潰鐨勬椂鍊欎笉鏀惰捣閿洏锛屽彧寰俊灏忕▼搴忔湁鏁堬紙榛樿 false 锛� + * @property {String | Number} maxlength 鏈�澶ц緭鍏ラ暱搴︼紝璁剧疆涓� -1 鐨勬椂鍊欎笉闄愬埗鏈�澶ч暱搴︼紙榛樿 140 锛� + * @property {String} border 杈规绫诲瀷锛宻urround-鍥涘懆杈规锛宯one-鏃犺竟妗嗭紝bottom-搴曢儴杈规锛堥粯璁� 'surround' 锛� + * @property {Boolean} ignoreCompositionEvent 鏄惁蹇界暐缁勪欢鍐呭鏂囨湰鍚堟垚绯荤粺浜嬩欢鐨勫鐞� + * + * @event {Function(e)} focus 杈撳叆妗嗚仛鐒︽椂瑙﹀彂锛宔vent.detail = { value, height }锛宧eight 涓洪敭鐩橀珮搴� + * @event {Function(e)} blur 杈撳叆妗嗗け鍘荤劍鐐规椂瑙﹀彂锛宔vent.detail = {value, cursor} + * @event {Function(e)} linechange 杈撳叆妗嗚鏁板彉鍖栨椂璋冪敤锛宔vent.detail = {height: 0, heightRpx: 0, lineCount: 0} + * @event {Function(e)} input 褰撻敭鐩樿緭鍏ユ椂锛岃Е鍙� input 浜嬩欢 + * @event {Function(e)} confirm 鐐瑰嚮瀹屾垚鏃讹紝 瑙﹀彂 confirm 浜嬩欢 + * @event {Function(e)} keyboardheightchange 閿洏楂樺害鍙戠敓鍙樺寲鐨勬椂鍊欒Е鍙戞浜嬩欢 + * @example <u--textarea v-model="value1" placeholder="璇疯緭鍏ュ唴瀹�" ></u--textarea> + */ +export default { + name: "u-textarea", + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 杈撳叆妗嗙殑鍊� + innerValue: "", + // 鏄惁澶勪簬鑾峰緱鐒︾偣鐘舵�� + focused: false, + // value鏄惁绗竴娆″彉鍖栵紝鍦╳atch涓紝鐢变簬鍔犲叆immediate灞炴�э紝浼氬湪绗竴娆¤Е鍙戯紝姝ゆ椂涓嶅簲璇ヨ涓簐alue鍙戠敓浜嗗彉鍖� + firstChange: true, + // value缁戝畾鍊肩殑鍙樺寲鏄敱鍐呴儴杩樻槸澶栭儴寮曡捣鐨� + changeFromInner: false, + // 杩囨护澶勭悊鏂规硶 + innerFormatter: value => value + } + }, + watch: { + value: { + immediate: true, + handler(newVal, oldVal) { + this.innerValue = newVal; + /* #ifdef H5 */ + // 鍦℉5涓紝澶栭儴value鍙樺寲鍚庯紝淇敼input涓殑鍊硷紝涓嶄細瑙﹀彂@input浜嬩欢锛屾鏃舵墜鍔ㄨ皟鐢ㄥ�煎彉鍖栨柟娉� + if ( + this.firstChange === false && + this.changeFromInner === false + ) { + this.valueChange(); + } + /* #endif */ + this.firstChange = false; + // 閲嶇疆changeFromInner鐨勫�间负false锛屾爣璇嗕笅涓�娆″紩璧烽粯璁や负澶栭儴寮曡捣鐨� + this.changeFromInner = false; + }, + }, + }, + computed: { + // 缁勪欢鐨勭被鍚� + textareaClass() { + let classes = [], + { border, disabled, shape } = this; + border === "surround" && + (classes = classes.concat(["u-border", "u-textarea--radius"])); + border === "bottom" && + (classes = classes.concat([ + "u-border-bottom", + "u-textarea--no-radius", + ])); + disabled && classes.push("u-textarea--disabled"); + return classes.join(" "); + }, + // 缁勪欢鐨勬牱寮� + textareaStyle() { + const style = {}; + // #ifdef APP-NVUE + // 鐢变簬textarea鍦ㄥ畨鍗搉vue涓婄殑宸紓鎬э紝闇�瑕侀澶栧啀璋冩暣鍏跺唴杈硅窛 + if (uni.$u.os() === "android") { + style.paddingTop = "6px"; + style.paddingLeft = "9px"; + style.paddingBottom = "3px"; + style.paddingRight = "6px"; + } + // #endif + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)); + }, + }, + methods: { + // 鍦ㄥ井淇″皬绋嬪簭涓紝涓嶆敮鎸佸皢鍑芥暟褰撳仛props鍙傛暟锛屾晠鍙兘閫氳繃ref褰㈠紡璋冪敤 + setFormatter(e) { + this.innerFormatter = e + }, + onFocus(e) { + this.$emit("focus", e); + }, + onBlur(e) { + this.$emit("blur", e); + // 灏濊瘯璋冪敤u-form鐨勯獙璇佹柟娉� + uni.$u.formValidate(this, "blur"); + }, + onLinechange(e) { + this.$emit("linechange", e); + }, + onInput(e) { + let { value = "" } = e.detail || {}; + // 鏍煎紡鍖栬繃婊ゆ柟娉� + const formatter = this.formatter || this.innerFormatter + const formatValue = formatter(value) + // 涓轰簡閬垮厤props鐨勫崟鍚戞暟鎹祦鐗规�э紝闇�瑕佸厛灏唅nnerValue鍊艰缃负褰撳墠鍊硷紝鍐嶅湪$nextTick涓噸鏂拌祴浜堣缃悗鐨勫�兼墠鏈夋晥 + this.innerValue = value + this.$nextTick(() => { + this.innerValue = formatValue; + this.valueChange(); + }) + }, + // 鍐呭鍙戠敓鍙樺寲锛岃繘琛屽鐞� + valueChange() { + const value = this.innerValue; + this.$nextTick(() => { + this.$emit("input", value); + // 鏍囪瘑value鍊肩殑鍙樺寲鏄敱鍐呴儴寮曡捣鐨� + this.changeFromInner = true; + this.$emit("change", value); + // 灏濊瘯璋冪敤u-form鐨勯獙璇佹柟娉� + uni.$u.formValidate(this, "change"); + }); + }, + onConfirm(e) { + this.$emit("confirm", e); + }, + onKeyboardheightchange(e) { + this.$emit("keyboardheightchange", e); + }, + }, +}; +</script> + +<style lang="scss" scoped> +@import "../../libs/css/components.scss"; + +.u-textarea { + border-radius: 4px; + background-color: #fff; + position: relative; + @include flex; + flex: 1; + padding: 9px; + + &--radius { + border-radius: 4px; + } + + &--no-radius { + border-radius: 0; + } + + &--disabled { + background-color: #f5f7fa; + } + + &__field { + flex: 1; + font-size: 15px; + color: $u-content-color; + width: 100%; + } + + &__count { + position: absolute; + right: 5px; + bottom: 2px; + font-size: 12px; + color: $u-tips-color; + background-color: #ffffff; + padding: 1px 4px; + } +} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toast/u-toast.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toast/u-toast.vue new file mode 100644 index 0000000..f194830 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toast/u-toast.vue @@ -0,0 +1,291 @@ +<template> + <view class="u-toast"> + <u-overlay + :show="isShow" + :custom-style="overlayStyle" + > + <view + class="u-toast__content" + :style="[contentStyle]" + :class="['u-type-' + tmpConfig.type, (tmpConfig.type === 'loading' || tmpConfig.loading) ? 'u-toast__content--loading' : '']" + > + <u-loading-icon + v-if="tmpConfig.type === 'loading'" + mode="circle" + color="rgb(255, 255, 255)" + inactiveColor="rgb(120, 120, 120)" + size="25" + ></u-loading-icon> + <u-icon + v-else-if="tmpConfig.type !== 'defalut' && iconName" + :name="iconName" + size="17" + :color="tmpConfig.type" + :customStyle="iconStyle" + ></u-icon> + <u-gap + v-if="tmpConfig.type === 'loading' || tmpConfig.loading" + height="12" + bgColor="transparent" + ></u-gap> + <text + class="u-toast__content__text" + :class="['u-toast__content__text--' + tmpConfig.type]" + style="max-width: 400rpx;" + >{{ tmpConfig.message }}</text> + </view> + </u-overlay> + </view> +</template> + +<script> + /** + * toast 娑堟伅鎻愮ず + * @description 姝ょ粍浠惰〃鐜板舰寮忕被浼紆ni鐨剈ni.showToastAPI锛屼絾涔熸湁涓嶅悓鐨勫湴鏂广�� + * @tutorial https://www.uviewui.com/components/toast.html + * @property {String | Number} zIndex toast灞曠ず鏃剁殑zIndex鍊� (榛樿 10090 ) + * @property {Boolean} loading 鏄惁鍔犺浇涓� 锛堥粯璁� false 锛� + * @property {String | Number} message 鏄剧ず鐨勬枃瀛楀唴瀹� + * @property {String} icon 鍥炬爣锛屾垨鑰呯粷瀵硅矾寰勭殑鍥剧墖 + * @property {String} type 涓婚绫诲瀷 锛堥粯璁� default锛� + * @property {Boolean} show 鏄惁鏄剧ず璇ョ粍浠� 锛堥粯璁� false锛� + * @property {Boolean} overlay 鏄惁鏄剧ず閫忔槑閬僵锛岄槻姝㈢偣鍑荤┛閫� 锛堥粯璁� false 锛� + * @property {String} position 浣嶇疆 锛堥粯璁� 'center' 锛� + * @property {Object} params 璺宠浆鐨勫弬鏁� + * @property {String | Number} duration 灞曠ず鏃堕棿锛屽崟浣峬s 锛堥粯璁� 2000 锛� + * @property {Boolean} isTab 鏄惁杩斿洖鐨勪负tab椤甸潰 锛堥粯璁� false 锛� + * @property {String} url toast娑堝け鍚庢槸鍚﹁烦杞〉闈紝鏈夊垯璺宠浆锛屼紭鍏堢骇楂樹簬back鍙傛暟 + * @property {Function} complete 鎵ц瀹屽悗鐨勫洖璋冨嚱鏁� + * @property {Boolean} back 缁撴潫toast鏄惁鑷姩杩斿洖涓婁竴椤� 锛堥粯璁� false 锛� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} show 鏄剧ずtoast锛屽闇�涓�杩涘叆椤甸潰灏辨樉绀簍oast锛岃鍦╫nReady鐢熷懡鍛ㄦ湡璋冪敤 + * @example <u-toast ref="uToast" /> + */ + export default { + name: 'u-toast', + mixins: [uni.$u.mpMixin, uni.$u.mixin], + data() { + return { + isShow: false, + timer: null, // 瀹氭椂鍣� + config: { + message: '', // 鏄剧ず鏂囨湰 + type: '', // 涓婚绫诲瀷锛宲rimary锛宻uccess锛宔rror锛寃arning锛宐lack + duration: 2000, // 鏄剧ず鐨勬椂闂达紝姣 + icon: true, // 鏄剧ず鐨勫浘鏍� + position: 'center', // toast鍑虹幇鐨勪綅缃� + complete: null, // 鎵ц瀹屽悗鐨勫洖璋冨嚱鏁� + overlay: false, // 鏄惁闃叉瑙︽懜绌块�� + loading: false, // 鏄惁鍔犺浇涓姸鎬� + }, + tmpConfig: {}, // 灏嗙敤鎴烽厤缃拰鍐呯疆閰嶇疆鍚堝苟鍚庣殑涓存椂閰嶇疆鍙橀噺 + } + }, + computed: { + iconName() { + // 鍙湁涓嶄负none锛屽苟涓攖ype涓篹rror|warning|succes|info鏃跺�欙紝鎵嶆樉绀哄浘鏍� + if(!this.tmpConfig.icon || this.tmpConfig.icon == 'none') { + return ''; + } + if (['error', 'warning', 'success', 'primary'].includes(this.tmpConfig.type)) { + return uni.$u.type2icon(this.tmpConfig.type) + } else { + return '' + } + }, + overlayStyle() { + const style = { + justifyContent: 'center', + alignItems: 'center', + display: 'flex' + } + // 灏嗛伄缃╄缃负100%閫忔槑搴︼紝閬垮厤鍑虹幇鐏拌壊鑳屾櫙 + style.backgroundColor = 'rgba(0, 0, 0, 0)' + return style + }, + iconStyle() { + const style = {} + // 鍥炬爣闇�瑕佷竴涓彸杈硅窛锛屼互璺熷彸杈圭殑鏂囧瓧鏈夐殧寮�鐨勮窛绂� + style.marginRight = '4px' + // #ifdef APP-NVUE + // iOSAPP涓嬶紝鍥炬爣鏈�1px鐨勫悜涓嬪亸绉伙紝杩欓噷杩涜淇 + if (uni.$u.os() === 'ios') { + style.marginTop = '-1px' + } + // #endif + return style + }, + loadingIconColor() { + let color = 'rgb(255, 255, 255)' + if (['error', 'warning', 'success', 'primary'].includes(this.tmpConfig.type)) { + // loading-icon缁勪欢鍐呴儴浼氬color鍙傛暟杩涜涓�涓�忔槑搴﹀鐞嗭紝璇ユ柟娉曡姹備紶鍏ョ殑棰滆壊鍊� + // 蹇呴』涓簉gb鏍煎紡鐨勶紝鎵�浠ヨ繖閲屽仛涓�涓鐞� + color = uni.$u.hexToRgb(uni.$u.color[this.tmpConfig.type]) + } + return color + }, + // 鍐呭鐩掑瓙鐨勬牱寮� + contentStyle() { + const windowHeight = uni.$u.sys().windowHeight, style = {} + let value = 0 + // 鏍规嵁top鍜宐ottom锛屽Y杞磋繘琛岀獥浣撻珮搴︾殑鐧惧垎姣斿亸绉� + if(this.tmpConfig.position === 'top') { + value = - windowHeight * 0.25 + } else if(this.tmpConfig.position === 'bottom') { + value = windowHeight * 0.25 + } + style.transform = `translateY(${value}px)` + return style + } + }, + created() { + // 閫氳繃涓婚鐨勫舰寮忚皟鐢╰oast锛屾壒閲忕敓鎴愭柟娉曞嚱鏁� + ['primary', 'success', 'error', 'warning', 'default', 'loading'].map(item => { + this[item] = message => this.show({ + type: item, + message + }) + }) + }, + methods: { + // 鏄剧ずtoast缁勪欢锛岀敱鐖剁粍浠堕�氳繃this.$refs.xxx.show(options)褰㈠紡璋冪敤 + show(options) { + // 涓嶅皢缁撴灉鍚堝苟鍒皌his.config鍙橀噺锛岄伩鍏嶅娆¤皟鐢╱-toast锛屽墠鍚庣殑閰嶇疆閫犳垚娣蜂贡 + this.tmpConfig = uni.$u.deepMerge(this.config, options) + // 娓呴櫎瀹氭椂鍣� + this.clearTimer() + this.isShow = true + this.timer = setTimeout(() => { + // 鍊掕鏃剁粨鏉燂紝娓呴櫎瀹氭椂鍣紝闅愯棌toast缁勪欢 + this.clearTimer() + // 鍒ゆ柇鏄惁瀛樺湪callback鏂规硶锛屽鏋滃瓨鍦ㄥ氨鎵ц + typeof(this.tmpConfig.complete) === 'function' && this.tmpConfig.complete() + }, this.tmpConfig.duration) + }, + // 闅愯棌toast缁勪欢锛岀敱鐖剁粍浠堕�氳繃this.$refs.xxx.hide()褰㈠紡璋冪敤 + hide() { + this.clearTimer() + }, + clearTimer() { + this.isShow = false + // 娓呴櫎瀹氭椂鍣� + clearTimeout(this.timer) + this.timer = null + } + }, + beforeDestroy() { + this.clearTimer() + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + $u-toast-color:#fff !default; + $u-toast-border-radius:4px !default; + $u-toast-border-background-color:#585858 !default; + $u-toast-border-font-size:14px !default; + $u-toast-border-padding:12px 20px !default; + $u-toast-loading-border-padding: 20px 20px !default; + $u-toast-content-text-color:#fff !default; + $u-toast-content-text-font-size:15px !default; + $u-toast-u-icon:10rpx !default; + $u-toast-u-type-primary-color:$u-primary !default; + $u-toast-u-type-primary-background-color:#ecf5ff !default; + $u-toast-u-type-primary-border-color:rgb(215, 234, 254) !default; + $u-toast-u-type-primary-border-width:1px !default; + $u-toast-u-type-success-color: $u-success !default; + $u-toast-u-type-success-background-color: #dbf1e1 !default; + $u-toast-u-type-success-border-color: #BEF5C8 !default; + $u-toast-u-type-success-border-width: 1px !default; + $u-toast-u-type-error-color:$u-error !default; + $u-toast-u-type-error-background-color:#fef0f0 !default; + $u-toast-u-type-error-border-color:#fde2e2 !default; + $u-toast-u-type-error-border-width: 1px !default; + $u-toast-u-type-warning-color:$u-warning !default; + $u-toast-u-type-warning-background-color:#fdf6ec !default; + $u-toast-u-type-warning-border-color:#faecd8 !default; + $u-toast-u-type-warning-border-width: 1px !default; + $u-toast-u-type-default-color:#fff !default; + $u-toast-u-type-default-background-color:#585858 !default; + + .u-toast { + &__content { + @include flex; + padding: $u-toast-border-padding; + border-radius: $u-toast-border-radius; + background-color: $u-toast-border-background-color; + color: $u-toast-color; + align-items: center; + /* #ifndef APP-NVUE */ + max-width: 600rpx; + /* #endif */ + position: relative; + + &--loading { + flex-direction: column; + padding: $u-toast-loading-border-padding; + } + + &__text { + color: $u-toast-content-text-color; + font-size: $u-toast-content-text-font-size; + line-height: $u-toast-content-text-font-size; + + &--default { + color: $u-toast-content-text-color; + } + + &--error { + color: $u-error; + } + + &--primary { + color: $u-primary; + } + + &--success { + color: $u-success; + } + + &--warning { + color: $u-warning; + } + } + } + } + + .u-type-primary { + color: $u-toast-u-type-primary-color; + background-color: $u-toast-u-type-primary-background-color; + border-color: $u-toast-u-type-primary-border-color; + border-width: $u-toast-u-type-primary-border-width; + } + + .u-type-success { + color: $u-toast-u-type-success-color; + background-color: $u-toast-u-type-success-background-color; + border-color: $u-toast-u-type-success-border-color; + border-width: 1px; + } + + .u-type-error { + color: $u-toast-u-type-error-color; + background-color: $u-toast-u-type-error-background-color; + border-color: $u-toast-u-type-error-border-color; + border-width: $u-toast-u-type-error-border-width; + } + + .u-type-warning { + color: $u-toast-u-type-warning-color; + background-color: $u-toast-u-type-warning-background-color; + border-color: $u-toast-u-type-warning-border-color; + border-width: 1px; + } + + .u-type-default { + color: $u-toast-u-type-default-color; + background-color: $u-toast-u-type-default-background-color; + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/props.js new file mode 100644 index 0000000..1b72966 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/props.js @@ -0,0 +1,34 @@ +export default { + props: { + // 鏄惁灞曠ず宸ュ叿鏉� + show: { + type: Boolean, + default: uni.$u.props.toolbar.show + }, + // 鍙栨秷鎸夐挳鐨勬枃瀛� + cancelText: { + type: String, + default: uni.$u.props.toolbar.cancelText + }, + // 纭鎸夐挳鐨勬枃瀛� + confirmText: { + type: String, + default: uni.$u.props.toolbar.confirmText + }, + // 鍙栨秷鎸夐挳鐨勯鑹� + cancelColor: { + type: String, + default: uni.$u.props.toolbar.cancelColor + }, + // 纭鎸夐挳鐨勯鑹� + confirmColor: { + type: String, + default: uni.$u.props.toolbar.confirmColor + }, + // 鏍囬鏂囧瓧 + title: { + type: String, + default: uni.$u.props.toolbar.title + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/u-toolbar.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/u-toolbar.vue new file mode 100644 index 0000000..290b771 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-toolbar/u-toolbar.vue @@ -0,0 +1,102 @@ +<template> + <view + class="u-toolbar" + @touchmove.stop.prevent="noop" + v-if="show" + > + <view + class="u-toolbar__cancel__wrapper" + hover-class="u-hover-class" + > + <text + class="u-toolbar__wrapper__cancel" + @tap="cancel" + :style="{ + color: cancelColor + }" + >{{ cancelText }}</text> + </view> + <text + class="u-toolbar__title u-line-1" + v-if="title" + >{{ title }}</text> + <view + class="u-toolbar__confirm__wrapper" + hover-class="u-hover-class" + > + <text + class="u-toolbar__wrapper__confirm" + @tap="confirm" + :style="{ + color: confirmColor + }" + >{{ confirmText }}</text> + </view> + </view> +</template> + +<script> + import props from './props.js'; + /** + * Toolbar 宸ュ叿鏉� + * @description + * @tutorial https://www.uviewui.com/components/toolbar.html + * @property {Boolean} show 鏄惁灞曠ず宸ュ叿鏉★紙榛樿 true 锛� + * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬枃瀛楋紙榛樿 '鍙栨秷' 锛� + * @property {String} confirmText 纭鎸夐挳鐨勬枃瀛楋紙榛樿 '纭' 锛� + * @property {String} cancelColor 鍙栨秷鎸夐挳鐨勯鑹诧紙榛樿 '#909193' 锛� + * @property {String} confirmColor 纭鎸夐挳鐨勯鑹诧紙榛樿 '#3c9cff' 锛� + * @property {String} title 鏍囬鏂囧瓧 + * @event {Function} + * @example + */ + export default { + name: 'u-toolbar', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + methods: { + // 鐐瑰嚮鍙栨秷鎸夐挳 + cancel() { + this.$emit('cancel') + }, + // 鐐瑰嚮纭畾鎸夐挳 + confirm() { + this.$emit('confirm') + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-toolbar { + height: 42px; + @include flex; + justify-content: space-between; + align-items: center; + + &__wrapper { + &__cancel { + color: $u-tips-color; + font-size: 15px; + padding: 0 15px; + } + } + + &__title { + color: $u-main-color; + padding: 0 60rpx; + font-size: 16px; + flex: 1; + text-align: center; + } + + &__wrapper { + &__confirm { + color: $u-primary; + font-size: 15px; + padding: 0 15px; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/clipboard.min.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/clipboard.min.js new file mode 100644 index 0000000..b7bff12 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/clipboard.min.js @@ -0,0 +1,58 @@ +/*! + * clipboard.js v1.6.1 + * https://zenorocha.github.io/clipboard.js + * + * Licensed MIT 漏 Zeno Rocha + */ +!(function (e) { if (typeof exports === 'object' && typeof module !== 'undefined')module.exports = e(); else if (typeof define === 'function' && define.amd)define([], e); else { let t; t = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this, t.Clipboard = e() } }(() => { + let e; let t; let n; return (function e(t, n, o) { function i(a, c) { if (!n[a]) { if (!t[a]) { const l = typeof require === 'function' && require; if (!c && l) return l(a, !0); if (r) return r(a, !0); const u = new Error(`Cannot find module '${a}'`); throw u.code = 'MODULE_NOT_FOUND', u } const s = n[a] = { exports: {} }; t[a][0].call(s.exports, (e) => { const n = t[a][1][e]; return i(n || e) }, s, s.exports, e, t, n, o) } return n[a].exports } for (var r = typeof require === 'function' && require, a = 0; a < o.length; a++)i(o[a]); return i }({ + 1: [function (e, t, n) { function o(e, t) { for (;e && e.nodeType !== i;) { if (e.matches(t)) return e; e = e.parentNode } } var i = 9; if (typeof Element !== 'undefined' && !Element.prototype.matches) { const r = Element.prototype; r.matches = r.matchesSelector || r.mozMatchesSelector || r.msMatchesSelector || r.oMatchesSelector || r.webkitMatchesSelector }t.exports = o }, {}], + 2: [function (e, t, n) { function o(e, t, n, o, r) { const a = i.apply(this, arguments); return e.addEventListener(n, a, r), { destroy() { e.removeEventListener(n, a, r) } } } function i(e, t, n, o) { return function (n) { n.delegateTarget = r(n.target, t), n.delegateTarget && o.call(e, n) } } var r = e('./closest'); t.exports = o }, { './closest': 1 }], + 3: [function (e, t, n) { n.node = function (e) { return void 0 !== e && e instanceof HTMLElement && e.nodeType === 1 }, n.nodeList = function (e) { const t = Object.prototype.toString.call(e); return void 0 !== e && (t === '[object NodeList]' || t === '[object HTMLCollection]') && 'length' in e && (e.length === 0 || n.node(e[0])) }, n.string = function (e) { return typeof e === 'string' || e instanceof String }, n.fn = function (e) { const t = Object.prototype.toString.call(e); return t === '[object Function]' } }, {}], + 4: [function (e, t, n) { function o(e, t, n) { if (!e && !t && !n) throw new Error('Missing required arguments'); if (!c.string(t)) throw new TypeError('Second argument must be a String'); if (!c.fn(n)) throw new TypeError('Third argument must be a Function'); if (c.node(e)) return i(e, t, n); if (c.nodeList(e)) return r(e, t, n); if (c.string(e)) return a(e, t, n); throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList') } function i(e, t, n) { return e.addEventListener(t, n), { destroy() { e.removeEventListener(t, n) } } } function r(e, t, n) { return Array.prototype.forEach.call(e, (e) => { e.addEventListener(t, n) }), { destroy() { Array.prototype.forEach.call(e, (e) => { e.removeEventListener(t, n) }) } } } function a(e, t, n) { return l(document.body, e, t, n) } var c = e('./is'); var l = e('delegate'); t.exports = o }, { './is': 3, delegate: 2 }], + 5: [function (e, t, n) { function o(e) { let t; if (e.nodeName === 'SELECT')e.focus(), t = e.value; else if (e.nodeName === 'INPUT' || e.nodeName === 'TEXTAREA') { const n = e.hasAttribute('readonly'); n || e.setAttribute('readonly', ''), e.select(), e.setSelectionRange(0, e.value.length), n || e.removeAttribute('readonly'), t = e.value } else { e.hasAttribute('contenteditable') && e.focus(); const o = window.getSelection(); const i = document.createRange(); i.selectNodeContents(e), o.removeAllRanges(), o.addRange(i), t = o.toString() } return t }t.exports = o }, {}], + 6: [function (e, t, n) { + function o() {}o.prototype = { + on(e, t, n) { const o = this.e || (this.e = {}); return (o[e] || (o[e] = [])).push({ fn: t, ctx: n }), this }, once(e, t, n) { function o() { i.off(e, o), t.apply(n, arguments) } var i = this; return o._ = t, this.on(e, o, n) }, emit(e) { const t = [].slice.call(arguments, 1); const n = ((this.e || (this.e = {}))[e] || []).slice(); let o = 0; const i = n.length; for (o; o < i; o++)n[o].fn.apply(n[o].ctx, t); return this }, off(e, t) { const n = this.e || (this.e = {}); const o = n[e]; const i = []; if (o && t) for (let r = 0, a = o.length; r < a; r++)o[r].fn !== t && o[r].fn._ !== t && i.push(o[r]); return i.length ? n[e] = i : delete n[e], this } + }, t.exports = o + }, {}], + 7: [function (t, n, o) { + !(function (i, r) { if (typeof e === 'function' && e.amd)e(['module', 'select'], r); else if (typeof o !== 'undefined')r(n, t('select')); else { const a = { exports: {} }; r(a, i.select), i.clipboardAction = a.exports } }(this, (e, t) => { + 'use strict' + + function n(e) { return e && e.__esModule ? e : { default: e } } function o(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') } const i = n(t); const r = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? function (e) { return typeof e } : function (e) { return e && typeof Symbol === 'function' && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e }; const a = (function () { function e(e, t) { for (let n = 0; n < t.length; n++) { const o = t[n]; o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), Object.defineProperty(e, o.key, o) } } return function (t, n, o) { return n && e(t.prototype, n), o && e(t, o), t } }()); const c = (function () { + function e(t) { o(this, e), this.resolveOptions(t), this.initSelection() } return a(e, [{ key: 'resolveOptions', value: function e() { const t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; this.action = t.action, this.emitter = t.emitter, this.target = t.target, this.text = t.text, this.trigger = t.trigger, this.selectedText = '' } }, { key: 'initSelection', value: function e() { this.text ? this.selectFake() : this.target && this.selectTarget() } }, { key: 'selectFake', value: function e() { const t = this; const n = document.documentElement.getAttribute('dir') == 'rtl'; this.removeFake(), this.fakeHandlerCallback = function () { return t.removeFake() }, this.fakeHandler = document.body.addEventListener('click', this.fakeHandlerCallback) || !0, this.fakeElem = document.createElement('textarea'), this.fakeElem.style.fontSize = '12pt', this.fakeElem.style.border = '0', this.fakeElem.style.padding = '0', this.fakeElem.style.margin = '0', this.fakeElem.style.position = 'absolute', this.fakeElem.style[n ? 'right' : 'left'] = '-9999px'; const o = window.pageYOffset || document.documentElement.scrollTop; this.fakeElem.style.top = `${o}px`, this.fakeElem.setAttribute('readonly', ''), this.fakeElem.value = this.text, document.body.appendChild(this.fakeElem), this.selectedText = (0, i.default)(this.fakeElem), this.copyText() } }, { key: 'removeFake', value: function e() { this.fakeHandler && (document.body.removeEventListener('click', this.fakeHandlerCallback), this.fakeHandler = null, this.fakeHandlerCallback = null), this.fakeElem && (document.body.removeChild(this.fakeElem), this.fakeElem = null) } }, { key: 'selectTarget', value: function e() { this.selectedText = (0, i.default)(this.target), this.copyText() } }, { key: 'copyText', value: function e() { let t = void 0; try { t = document.execCommand(this.action) } catch (e) { t = !1 } this.handleResult(t) } }, { + key: 'handleResult', + value: function e(t) { + this.emitter.emit(t ? 'success' : 'error', { + action: this.action, text: this.selectedText, trigger: this.trigger, clearSelection: this.clearSelection.bind(this) + }) + } + }, { key: 'clearSelection', value: function e() { this.target && this.target.blur(), window.getSelection().removeAllRanges() } }, { key: 'destroy', value: function e() { this.removeFake() } }, { key: 'action', set: function e() { const t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 'copy'; if (this._action = t, this._action !== 'copy' && this._action !== 'cut') throw new Error('Invalid "action" value, use either "copy" or "cut"') }, get: function e() { return this._action } }, { key: 'target', set: function e(t) { if (void 0 !== t) { if (!t || (typeof t === 'undefined' ? 'undefined' : r(t)) !== 'object' || t.nodeType !== 1) throw new Error('Invalid "target" value, use a valid Element'); if (this.action === 'copy' && t.hasAttribute('disabled')) throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute'); if (this.action === 'cut' && (t.hasAttribute('readonly') || t.hasAttribute('disabled'))) throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes'); this._target = t } }, get: function e() { return this._target } }]), e + }()); e.exports = c + })) + }, { select: 5 }], + 8: [function (t, n, o) { + !(function (i, r) { if (typeof e === 'function' && e.amd)e(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], r); else if (typeof o !== 'undefined')r(n, t('./clipboard-action'), t('tiny-emitter'), t('good-listener')); else { const a = { exports: {} }; r(a, i.clipboardAction, i.tinyEmitter, i.goodListener), i.clipboard = a.exports } }(this, (e, t, n, o) => { + 'use strict' + + function i(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') } function a(e, t) { if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !t || typeof t !== 'object' && typeof t !== 'function' ? e : t } function c(e, t) { + if (typeof t !== 'function' && t !== null) throw new TypeError(`Super expression must either be null or a function, not ${typeof t}`); e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, enumerable: !1, writable: !0, configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } function l(e, t) { const n = `data-clipboard-${e}`; if (t.hasAttribute(n)) return t.getAttribute(n) } const u = i(t); const s = i(n); const f = i(o); const d = (function () { function e(e, t) { for (let n = 0; n < t.length; n++) { const o = t[n]; o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), Object.defineProperty(e, o.key, o) } } return function (t, n, o) { return n && e(t.prototype, n), o && e(t, o), t } }()); const h = (function (e) { + function t(e, n) { r(this, t); const o = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); return o.resolveOptions(n), o.listenClick(e), o } return c(t, e), d(t, [{ key: 'resolveOptions', value: function e() { const t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; this.action = typeof t.action === 'function' ? t.action : this.defaultAction, this.target = typeof t.target === 'function' ? t.target : this.defaultTarget, this.text = typeof t.text === 'function' ? t.text : this.defaultText } }, { key: 'listenClick', value: function e(t) { const n = this; this.listener = (0, f.default)(t, 'click', (e) => n.onClick(e)) } }, { + key: 'onClick', + value: function e(t) { + const n = t.delegateTarget || t.currentTarget; this.clipboardAction && (this.clipboardAction = null), this.clipboardAction = new u.default({ + action: this.action(n), target: this.target(n), text: this.text(n), trigger: n, emitter: this + }) + } + }, { key: 'defaultAction', value: function e(t) { return l('action', t) } }, { key: 'defaultTarget', value: function e(t) { const n = l('target', t); if (n) return document.querySelector(n) } }, { key: 'defaultText', value: function e(t) { return l('text', t) } }, { key: 'destroy', value: function e() { this.listener.destroy(), this.clipboardAction && (this.clipboardAction.destroy(), this.clipboardAction = null) } }], [{ key: 'isSupported', value: function e() { const t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ['copy', 'cut']; const n = typeof t === 'string' ? [t] : t; let o = !!document.queryCommandSupported; return n.forEach((e) => { o = o && !!document.queryCommandSupported(e) }), o } }]), t + }(s.default)); e.exports = h + })) + }, { './clipboard-action': 7, 'good-listener': 4, 'tiny-emitter': 6 }] + }, {}, [8]))(8) +})) diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/props.js new file mode 100644 index 0000000..16aecbc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 闇�瑕佹樉绀虹殑鎻愮ず鏂囧瓧 + text: { + type: [String, Number], + default: uni.$u.props.tooltip.text + }, + // 鐐瑰嚮澶嶅埗鎸夐挳鏃讹紝澶嶅埗鐨勬枃鏈紝涓虹┖鍒欎娇鐢╰ext鍊� + copyText: { + type: [String, Number], + default: uni.$u.props.tooltip.copyText + }, + // 鏂囨湰澶у皬 + size: { + type: [String, Number], + default: uni.$u.props.tooltip.size + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.tooltip.color + }, + // 寮瑰嚭鎻愮ず妗嗘椂锛屾枃鏈殑鑳屾櫙鑹� + bgColor: { + type: String, + default: uni.$u.props.tooltip.bgColor + }, + // 寮瑰嚭鎻愮ず鐨勬柟鍚戯紝top-涓婃柟锛宐ottom-涓嬫柟 + direction: { + type: String, + default: uni.$u.props.tooltip.direction + }, + // 寮瑰嚭鎻愮ず鐨剒-index锛宯vue鏃犳晥 + zIndex: { + type: [String, Number], + default: uni.$u.props.tooltip.zIndex + }, + // 鏄惁鏄剧ず澶嶅埗鎸夐挳 + showCopy: { + type: Boolean, + default: uni.$u.props.tooltip.showCopy + }, + // 鎵╁睍鐨勬寜閽粍 + buttons: { + type: Array, + default: uni.$u.props.tooltip.buttons + }, + // 鏄惁鏄剧ず閫忔槑閬僵浠ラ槻姝㈣Е鎽哥┛閫� + overlay: { + type: Boolean, + default: uni.$u.props.tooltip.overlay + }, + // 鏄惁鏄剧ず澶嶅埗鎴愬姛鎴栬�呭け璐ョ殑toast + showToast: { + type: Boolean, + default: uni.$u.props.tooltip.showToast + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/u-tooltip.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/u-tooltip.vue new file mode 100644 index 0000000..4bd8fc9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tooltip/u-tooltip.vue @@ -0,0 +1,365 @@ +<template> + <view + class="u-tooltip" + :style="[$u.addStyle(customStyle)]" + > + <u-overlay + :show="showTooltip && tooltipTop !== -10000 && overlay" + customStyle="backgroundColor: rgba(0, 0, 0, 0)" + @click="overlayClickHandler" + ></u-overlay> + <view class="u-tooltip__wrapper"> + <text + class="u-tooltip__wrapper__text" + :id="textId" + :ref="textId" + :userSelect="false" + :selectable="false" + @longpress.stop="longpressHandler" + :style="{ + color: color, + backgroundColor: bgColor && showTooltip && tooltipTop !== -10000 ? bgColor : 'transparent' + }" + >{{ text }}</text> + <u-transition + mode="fade" + :show="showTooltip" + duration="300" + :customStyle="{ + position: 'absolute', + top: $u.addUnit(tooltipTop), + zIndex: zIndex, + ...tooltipStyle + }" + > + <view + class="u-tooltip__wrapper__popup" + :id="tooltipId" + :ref="tooltipId" + > + <view + class="u-tooltip__wrapper__popup__indicator" + hover-class="u-tooltip__wrapper__popup__indicator--hover" + v-if="showCopy || buttons.length" + :style="[indicatorStyle, { + width: $u.addUnit(indicatorWidth), + height: $u.addUnit(indicatorWidth), + }]" + > + <!-- 鐢变簬nvue涓嶆敮鎸佷笁瑙掑舰缁樺埗锛岃繖閲屽氨鍋氫竴涓洓鏂瑰舰锛屽啀鏃嬭浆45deg锛屽緱鍒伴湶鍑虹殑涓�涓笁瑙� --> + </view> + <view class="u-tooltip__wrapper__popup__list"> + <view + v-if="showCopy" + class="u-tooltip__wrapper__popup__list__btn" + hover-class="u-tooltip__wrapper__popup__list__btn--hover" + @tap="setClipboardData" + > + <text + class="u-tooltip__wrapper__popup__list__btn__text" + >澶嶅埗</text> + </view> + <u-line + direction="column" + color="#8d8e90" + v-if="showCopy && buttons.length > 0" + length="18" + ></u-line> + <block v-for="(item , index) in buttons" :key="index"> + <view + class="u-tooltip__wrapper__popup__list__btn" + hover-class="u-tooltip__wrapper__popup__list__btn--hover" + > + <text + class="u-tooltip__wrapper__popup__list__btn__text" + @tap="btnClickHandler(index)" + >{{ item }}</text> + </view> + <u-line + direction="column" + color="#8d8e90" + v-if="index < buttons.length - 1" + length="18" + ></u-line> + </block> + </view> + </view> + </u-transition> + </view> + </view> +</template> + +<script> + import props from './props.js'; + // #ifdef APP-NVUE + const dom = uni.requireNativePlugin('dom') + // #endif + // #ifdef H5 + import ClipboardJS from "./clipboard.min.js" + // #endif + /** + * Tooltip + * @description + * @tutorial https://www.uviewui.com/components/tooltip.html + * @property {String | Number} text 闇�瑕佹樉绀虹殑鎻愮ず鏂囧瓧 + * @property {String | Number} copyText 鐐瑰嚮澶嶅埗鎸夐挳鏃讹紝澶嶅埗鐨勬枃鏈紝涓虹┖鍒欎娇鐢╰ext鍊� + * @property {String | Number} size 鏂囨湰澶у皬锛堥粯璁� 14 锛� + * @property {String} color 瀛椾綋棰滆壊锛堥粯璁� '#606266' 锛� + * @property {String} bgColor 寮瑰嚭鎻愮ず妗嗘椂锛屾枃鏈殑鑳屾櫙鑹诧紙榛樿 'transparent' 锛� + * @property {String} direction 寮瑰嚭鎻愮ず鐨勬柟鍚戯紝top-涓婃柟锛宐ottom-涓嬫柟锛堥粯璁� 'top' 锛� + * @property {String | Number} zIndex 寮瑰嚭鎻愮ず鐨剒-index锛宯vue鏃犳晥锛堥粯璁� 10071 锛� + * @property {Boolean} showCopy 鏄惁鏄剧ず澶嶅埗鎸夐挳锛堥粯璁� true 锛� + * @property {Array} buttons 鎵╁睍鐨勬寜閽粍 + * @property {Boolean} overlay 鏄惁鏄剧ず閫忔槑閬僵浠ラ槻姝㈣Е鎽哥┛閫忥紙榛樿 true 锛� + * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 + * + * @event {Function} + * @example + */ + export default { + name: 'u-tooltip', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + data() { + return { + // 鏄惁灞曠ず姘旀场 + showTooltip: true, + // 鐢熸垚鍞竴id锛岄槻姝竴涓〉闈㈠涓粍浠讹紝閫犳垚骞叉壈 + textId: uni.$u.guid(), + tooltipId: uni.$u.guid(), + // 鍒濆鏃剁敋鑷充负寰堝ぇ鐨勫�硷紝璁╁叾绉诲埌灞忓箷澶栭潰锛屼负浜嗚绠楀厓绱犵殑灏哄 + tooltipTop: -10000, + // 姘旀场鐨勪綅缃俊鎭� + tooltipInfo: { + width: 0, + left: 0 + }, + // 鏂囨湰鐨勪綅缃俊鎭� + textInfo: { + width: 0, + left: 0 + }, + // 涓夎褰㈡寚绀哄櫒鐨勬牱寮� + indicatorStyle: {}, + // 姘旀场鍦ㄥ彲鑳借秴鍑哄睆骞曡竟娌胯寖鍥存椂锛岄噸鏂板畾浣嶅悗锛岃窛绂诲睆骞曡竟娌跨殑璺濈 + screenGap: 12, + // 涓夎褰㈡寚绀哄櫒鐨勫楂橈紝鐢变簬瀵瑰厓绱犺繘琛屼簡瑙掑害鏃嬭浆锛岀簿纭绠楁寚绀哄櫒浣嶇疆鏃讹紝闇�瑕佺敤鍒板叾灏哄淇℃伅 + indicatorWidth: 14, + } + }, + watch: { + propsChange() { + this.getElRect() + } + }, + computed: { + // 鐗瑰埆澶勭悊H5鐨勫鍒讹紝鍥犱负H5娴忚鍣ㄦ槸鑷甫绯荤粺澶嶅埗鍔熻兘鐨勶紝鍦℉5鐜 + // 褰撲竴浜涗緷璧栧弬鏁板彉鍖栨椂锛岄渶瑕侀噸鏂拌绠楁皵娉″拰鎸囩ず鍣ㄧ殑浣嶇疆淇℃伅 + propsChange() { + return [this.text, this.buttons] + }, + // 璁$畻姘旀场鍜屾寚绀哄櫒鐨勪綅缃俊鎭� + tooltipStyle() { + const style = { + transform: `translateY(${this.direction === 'top' ? '-100%' : '100%'})`, + }, + sys = uni.$u.sys(), + getPx = uni.$u.getPx, + addUnit = uni.$u.addUnit + if (this.tooltipInfo.width / 2 > this.textInfo.left + this.textInfo.width / 2 - this.screenGap) { + this.indicatorStyle = {} + style.left = `-${addUnit(this.textInfo.left - this.screenGap)}` + this.indicatorStyle.left = addUnit(this.textInfo.width / 2 - getPx(style.left) - this.indicatorWidth / + 2) + } else if (this.tooltipInfo.width / 2 > sys.windowWidth - this.textInfo.right + this.textInfo.width / 2 - + this.screenGap) { + this.indicatorStyle = {} + style.right = `-${addUnit(sys.windowWidth - this.textInfo.right - this.screenGap)}` + this.indicatorStyle.right = addUnit(this.textInfo.width / 2 - getPx(style.right) - this + .indicatorWidth / 2) + } else { + const left = Math.abs(this.textInfo.width / 2 - this.tooltipInfo.width / 2) + style.left = this.textInfo.width > this.tooltipInfo.width ? addUnit(left) : -addUnit(left) + this.indicatorStyle = {} + } + if (this.direction === 'top') { + style.marginTop = '-10px' + this.indicatorStyle.bottom = '-4px' + } else { + style.marginBottom = '-10px' + this.indicatorStyle.top = '-4px' + } + return style + } + }, + mounted() { + this.init() + }, + methods: { + init() { + this.getElRect() + }, + // 闀挎寜瑙﹀彂浜嬩欢 + async longpressHandler() { + this.tooltipTop = 0 + this.showTooltip = true + }, + // 鐐瑰嚮閫忔槑閬僵 + overlayClickHandler() { + this.showTooltip = false + }, + // 鐐瑰嚮寮瑰嚭鎸夐挳 + btnClickHandler(index) { + this.showTooltip = false + // 濡傛灉闇�瑕佸睍绀哄鍒舵寜閽紝姝ゅindex闇�瑕佸姞1锛屽洜涓哄鍒舵寜閽湪绗竴涓綅缃� + this.$emit('click', this.showCopy ? index + 1 : index) + }, + // 鏌ヨ鍐呭楂樺害 + queryRect(ref) { + // #ifndef APP-NVUE + // $uGetRect涓簎View鑷甫鐨勮妭鐐规煡璇㈢畝鍖栨柟娉曪紝璇﹁鏂囨。浠嬬粛锛歨ttps://www.uviewui.com/js/getRect.html + // 缁勪欢鍐呴儴涓�鑸敤this.$uGetRect锛屽澶栫殑涓簎ni.$u.getRect锛屼簩鑰呭姛鑳戒竴鑷达紝鍚嶇О涓嶅悓 + return new Promise(resolve => { + this.$uGetRect(`#${ref}`).then(size => { + resolve(size) + }) + }) + // #endif + + // #ifdef APP-NVUE + // nvue涓嬶紝浣跨敤dom妯″潡鏌ヨ鍏冪礌楂樺害 + // 杩斿洖涓�涓猵romise锛岃璋冪敤姝ゆ柟娉曠殑涓讳綋鑳戒娇鐢╰hen鍥炶皟 + return new Promise(resolve => { + dom.getComponentRect(this.$refs[ref], res => { + resolve(res.size) + }) + }) + // #endif + }, + // 鍏冪礌灏哄 + getElRect() { + // 璋冪敤涔嬪墠锛屽厛灏嗘寚绀哄櫒璋冩暣鍒板睆骞曞锛屾柟渚胯幏鍙栧昂瀵� + this.showTooltip = true + this.tooltipTop = -10000 + uni.$u.sleep(500).then(() => { + this.queryRect(this.tooltipId).then(size => { + this.tooltipInfo = size + // 鑾峰彇姘旀场灏哄涔嬪悗锛屽皢鍏堕殣钘忥紝涓轰簡璁╀笅娆″垏鎹㈡皵娉℃樉绀轰笌闅愯棌鏃讹紝鏈夋贰鍏ユ贰鍑虹殑鏁堟灉 + this.showTooltip = false + }) + this.queryRect(this.textId).then(size => { + this.textInfo = size + }) + }) + }, + // 澶嶅埗鏂囨湰鍒扮矘璐存澘 + setClipboardData() { + // 鍏抽棴缁勪欢 + this.showTooltip = false + this.$emit('click', 0) + // #ifndef H5 + uni.setClipboardData({ + // 浼樺厛浣跨敤copyText瀛楁锛屽鏋滄病鏈夛紝鍒欓粯璁や娇鐢╰ext瀛楁褰撳仛澶嶅埗鐨勫唴瀹� + data: this.copyText || this.text, + success: () => { + this.showToast && uni.$u.toast('澶嶅埗鎴愬姛') + }, + fail: () => { + this.showToast && uni.$u.toast('澶嶅埗澶辫触') + }, + complete: () => { + this.showTooltip = false + } + }) + // #endif + + // #ifdef H5 + let event = window.event || e || {} + let clipboard = new ClipboardJS('', { + text: () => this.copyText || this.text + }) + clipboard.on('success', (e) => { + this.showToast && uni.$u.toast('澶嶅埗鎴愬姛') + clipboard.off('success') + clipboard.off('error') + // 鍦ㄥ崟椤靛簲鐢ㄤ腑锛岄渶瑕侀攢姣丏OM鐨勭洃鍚� + clipboard.destroy() + }) + clipboard.on('error', (e) => { + this.showToast && uni.$u.toast('澶嶅埗澶辫触') + clipboard.off('success') + clipboard.off('error') + // 鍦ㄥ崟椤靛簲鐢ㄤ腑锛岄渶瑕侀攢姣丏OM鐨勭洃鍚� + clipboard.destroy() + }) + clipboard.onClick(event) + // #endif + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + + .u-tooltip { + position: relative; + @include flex; + + &__wrapper { + @include flex; + justify-content: center; + /* #ifndef APP-NVUE */ + white-space: nowrap; + /* #endif */ + + &__text { + font-size: 14px; + } + + &__popup { + @include flex; + justify-content: center; + + &__list { + background-color: #060607; + position: relative; + flex: 1; + border-radius: 5px; + padding: 0px 0; + @include flex(row); + align-items: center; + overflow: hidden; + + &__btn { + padding: 11px 13px; + + &--hover { + background-color: #58595B; + } + + &__text { + line-height: 12px; + font-size: 13px; + color: #FFFFFF; + } + } + } + + &__indicator { + position: absolute; + background-color: #060607; + width: 14px; + height: 14px; + bottom: -4px; + transform: rotate(45deg); + border-radius: 2px; + z-index: -1; + + &--hover { + background-color: #58595B; + } + } + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/props.js new file mode 100644 index 0000000..7c11331 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/props.js @@ -0,0 +1,5 @@ +export default { + props: { + + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/u-tr.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/u-tr.vue new file mode 100644 index 0000000..dbbca08 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-tr/u-tr.vue @@ -0,0 +1,31 @@ +<template> + <view class="u-tr"> + + </view> +</template> + +<script> + import props from './props.js'; + /** + * Tr + * @description + * @tutorial url + * @property {String} + * @event {Function} + * @example + */ + export default { + name: 'u-tr', + mixins: [uni.$u.mpMixin, uni.$u.mixin,props], + data() { + return { + + } + } + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; + +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js new file mode 100644 index 0000000..b86b962 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js @@ -0,0 +1,68 @@ +export default { + fade: { + enter: { opacity: 0 }, + 'enter-to': { opacity: 1 }, + leave: { opacity: 1 }, + 'leave-to': { opacity: 0 } + }, + 'fade-up': { + enter: { opacity: 0, transform: 'translateY(100%)' }, + 'enter-to': { opacity: 1, transform: 'translateY(0)' }, + leave: { opacity: 1, transform: 'translateY(0)' }, + 'leave-to': { opacity: 0, transform: 'translateY(100%)' } + }, + 'fade-down': { + enter: { opacity: 0, transform: 'translateY(-100%)' }, + 'enter-to': { opacity: 1, transform: 'translateY(0)' }, + leave: { opacity: 1, transform: 'translateY(0)' }, + 'leave-to': { opacity: 0, transform: 'translateY(-100%)' } + }, + 'fade-left': { + enter: { opacity: 0, transform: 'translateX(-100%)' }, + 'enter-to': { opacity: 1, transform: 'translateY(0)' }, + leave: { opacity: 1, transform: 'translateY(0)' }, + 'leave-to': { opacity: 0, transform: 'translateX(-100%)' } + }, + 'fade-right': { + enter: { opacity: 0, transform: 'translateX(100%)' }, + 'enter-to': { opacity: 1, transform: 'translateY(0)' }, + leave: { opacity: 1, transform: 'translateY(0)' }, + 'leave-to': { opacity: 0, transform: 'translateX(100%)' } + }, + 'slide-up': { + enter: { transform: 'translateY(100%)' }, + 'enter-to': { transform: 'translateY(0)' }, + leave: { transform: 'translateY(0)' }, + 'leave-to': { transform: 'translateY(100%)' } + }, + 'slide-down': { + enter: { transform: 'translateY(-100%)' }, + 'enter-to': { transform: 'translateY(0)' }, + leave: { transform: 'translateY(0)' }, + 'leave-to': { transform: 'translateY(-100%)' } + }, + 'slide-left': { + enter: { transform: 'translateX(-100%)' }, + 'enter-to': { transform: 'translateY(0)' }, + leave: { transform: 'translateY(0)' }, + 'leave-to': { transform: 'translateX(-100%)' } + }, + 'slide-right': { + enter: { transform: 'translateX(100%)' }, + 'enter-to': { transform: 'translateY(0)' }, + leave: { transform: 'translateY(0)' }, + 'leave-to': { transform: 'translateX(100%)' } + }, + zoom: { + enter: { transform: 'scale(0.95)' }, + 'enter-to': { transform: 'scale(1)' }, + leave: { transform: 'scale(1)' }, + 'leave-to': { transform: 'scale(0.95)' } + }, + 'fade-zoom': { + enter: { opacity: 0, transform: 'scale(0.95)' }, + 'enter-to': { opacity: 1, transform: 'scale(1)' }, + leave: { opacity: 1, transform: 'scale(1)' }, + 'leave-to': { opacity: 0, transform: 'scale(0.95)' } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/props.js new file mode 100644 index 0000000..f7b1c22 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/props.js @@ -0,0 +1,24 @@ +export default { + props: { + // 鏄惁灞曠ず缁勪欢 + show: { + type: Boolean, + default: uni.$u.props.transition.show + }, + // 浣跨敤鐨勫姩鐢绘ā寮� + mode: { + type: String, + default: uni.$u.props.transition.mode + }, + // 鍔ㄧ敾鐨勬墽琛屾椂闂达紝鍗曚綅ms + duration: { + type: [String, Number], + default: uni.$u.props.transition.duration + }, + // 浣跨敤鐨勫姩鐢昏繃娓″嚱鏁� + timingFunction: { + type: String, + default: uni.$u.props.transition.timingFunction + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/transition.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/transition.js new file mode 100644 index 0000000..92e5681 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/transition.js @@ -0,0 +1,157 @@ +// 瀹氫箟涓�涓竴瀹氭椂闂村悗鑷姩鎴愬姛鐨刾romise锛岃璋冪敤nextTick鏂规硶澶勶紝杩涘叆涓嬩竴涓猼hen鏂规硶 +const nextTick = () => new Promise(resolve => setTimeout(resolve, 1000 / 50)) +// nvue鍔ㄧ敾妯″潡瀹炵幇缁嗚妭鎶界鍦ㄥ閮ㄦ枃浠� +import animationMap from './nvue.ani-map.js' + +// #ifndef APP-NVUE +// 瀹氫箟绫诲悕锛岄�氳繃缁欏厓绱犲姩鎬佸垏鎹㈢被鍚嶏紝璧嬩簣鍏冪礌涓�瀹氱殑css鍔ㄧ敾鏍峰紡 +const getClassNames = (name) => ({ + enter: `u-${name}-enter u-${name}-enter-active`, + 'enter-to': `u-${name}-enter-to u-${name}-enter-active`, + leave: `u-${name}-leave u-${name}-leave-active`, + 'leave-to': `u-${name}-leave-to u-${name}-leave-active` +}) +// #endif + +// #ifdef APP-NVUE +// 寮曞叆nvue(weex)鐨刟nimation鍔ㄧ敾妯″潡锛屾枃妗h锛� +// https://weex.apache.org/zh/docs/modules/animation.html#transition +const animation = uni.requireNativePlugin('animation') +const getStyle = (name) => animationMap[name] +// #endif + +export default { + methods: { + // 缁勪欢琚偣鍑诲彂鍑轰簨浠� + clickHandler() { + this.$emit('click') + }, + // #ifndef APP-NVUE + // vue鐗堟湰鐨勭粍浠惰繘鍦哄鐞� + vueEnter() { + // 鍔ㄧ敾杩涘叆鏃剁殑绫诲悕 + const classNames = getClassNames(this.mode) + // 瀹氫箟鐘舵�佸拰鍙戝嚭鍔ㄧ敾杩涘叆鍓嶄簨浠� + this.status = 'enter' + this.$emit('beforeEnter') + this.inited = true + this.display = true + this.classes = classNames.enter + this.$nextTick(async () => { + // #ifdef H5 + await uni.$u.sleep(20) + // #endif + // 鏍囪瘑鍔ㄧ敾灏氭湭缁撴潫 + this.$emit('enter') + this.transitionEnded = false + // 缁勪欢鍔ㄧ敾杩涘叆鍚庤Е鍙戠殑浜嬩欢 + this.$emit('afterEnter') + // 璧嬩簣缁勪欢enter-to绫诲悕 + this.classes = classNames['enter-to'] + }) + }, + // 鍔ㄧ敾绂诲満澶勭悊 + vueLeave() { + // 濡傛灉涓嶆槸灞曠ず鐘舵�侊紝鏃犻渶鎵ц閫昏緫 + if (!this.display) return + const classNames = getClassNames(this.mode) + // 鏍囪绂诲紑鐘舵�佸拰鍙戝嚭浜嬩欢 + this.status = 'leave' + this.$emit('beforeLeave') + // 鑾峰緱绫诲悕 + this.classes = classNames.leave + + this.$nextTick(() => { + // 鍔ㄧ敾姝e湪绂诲満鐨勭姸鎬� + this.transitionEnded = false + this.$emit('leave') + // 缁勪欢鎵ц鍔ㄧ敾锛屽埌浜嗘墽琛岀殑鎵ц鏃堕棿鍚庯紝鎵ц涓�浜涢澶栧鐞� + setTimeout(this.onTransitionEnd, this.duration) + this.classes = classNames['leave-to'] + }) + }, + // #endif + // #ifdef APP-NVUE + // nvue鐗堟湰鍔ㄧ敾杩涘満 + nvueEnter() { + // 鑾峰緱鏍峰紡鐨勫悕绉� + const currentStyle = getStyle(this.mode) + // 缁勪欢鍔ㄧ敾鐘舵�佸拰鍙戝嚭浜嬩欢 + this.status = 'enter' + this.$emit('beforeEnter') + // 灞曠ず鐢熸垚缁勪欢鍏冪礌 + this.inited = true + this.display = true + // 鍦╪vue瀹夊崜涓婏紝鐢变簬娓叉煋閫熷害鎱紝鍦ㄥ脊绐楋紝閿洏锛屾棩鍘嗙瓑缁勪欢涓紝娓叉煋鍏朵腑鐨勫唴瀹归渶瑕佹椂闂� + // 瀵艰嚧鍑虹幇寮圭獥鍗¢】锛岃繖閲岃鍏朵竴寮�濮嬩负閫忔槑鐘舵�侊紝绛変竴瀹氭椂闂存覆鏌撳畬鎴愬悗锛屽啀璁╁叾闅愯棌璧锋潵锛屽啀璁╁叾鎸夋甯搁�昏緫鍑虹幇 + this.viewStyle = { + opacity: 0 + } + // 绛夊緟寮圭獥鍐呭娓叉煋瀹屾垚 + this.$nextTick(() => { + // 鍚堝苟鏍峰紡 + this.viewStyle = currentStyle.enter + Promise.resolve() + .then(nextTick) + .then(() => { + // 缁勪欢寮�濮嬭繘鍏ュ墠鐨勪簨浠� + this.$emit('enter') + // nvue鐨則ransition鍔ㄧ敾妯″潡闇�瑕侀�氳繃ref璋冪敤缁勪欢锛屾敞鎰忔澶勭殑ref涓嶅悓浜巚ue鐨則his.$refs['u-transition']鐢ㄦ硶 + animation.transition(this.$refs['u-transition'].ref, { + styles: currentStyle['enter-to'], + duration: this.duration, + timingFunction: this.timingFunction, + needLayout: false, + delay: 0 + }, () => { + // 鍔ㄧ敾鎵ц瀹屾瘯锛屽彂鍑轰簨浠� + this.$emit('afterEnter') + }) + }) + .catch(() => {}) + }) + }, + nvueLeave() { + if (!this.display) { + return + } + const currentStyle = getStyle(this.mode) + // 瀹氫箟鐘舵�佸拰浜嬩欢 + this.status = 'leave' + this.$emit('beforeLeave') + // 鍚堝苟鏍峰紡 + this.viewStyle = currentStyle.leave + // 鏀惧埌promise涓鐞嗘墽琛岃繃绋� + Promise.resolve() + .then(nextTick) // 绛夊緟鍑犲崄ms + .then(() => { + this.transitionEnded = false + // 鍔ㄧ敾姝e湪绂诲満鐨勭姸鎬� + this.$emit('leave') + animation.transition(this.$refs['u-transition'].ref, { + styles: currentStyle['leave-to'], + duration: this.duration, + timingFunction: this.timingFunction, + needLayout: false, + delay: 0 + }, () => { + this.onTransitionEnd() + }) + }) + .catch(() => {}) + }, + // #endif + // 瀹屾垚杩囨浮鍚庤Е鍙� + onTransitionEnd() { + // 濡傛灉宸茬粡鏄粨鏉熺殑鐘舵�侊紝鏃犻渶鍐嶅鐞� + if (this.transitionEnded) return + this.transitionEnded = true + // 鍙戝嚭缁勪欢鍔ㄧ敾鎵ц鍚庣殑浜嬩欢 + this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter') + if (!this.show && this.display) { + this.display = false + this.inited = false + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/u-transition.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/u-transition.vue new file mode 100644 index 0000000..22831dc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/u-transition.vue @@ -0,0 +1,92 @@ +<template> + <view + v-if="inited" + class="u-transition" + ref="u-transition" + @tap="clickHandler" + :class="classes" + :style="[mergeStyle]" + @touchmove="noop" + > + <slot /> + </view> +</template> + +<script> +import props from './props.js'; +// 缁勪欢鐨刴ethods鏂规硶锛岀敱浜庡唴瀹硅緝闀匡紝鍐欏湪澶栭儴鏂囦欢涓�氳繃mixin寮曞叆 +import transition from "./transition.js"; +/** + * transition 鍔ㄧ敾缁勪欢 + * @description + * @tutorial + * @property {String} show 鏄惁灞曠ず缁勪欢 锛堥粯璁� false 锛� + * @property {String} mode 浣跨敤鐨勫姩鐢绘ā寮� 锛堥粯璁� 'fade' 锛� + * @property {String | Number} duration 鍔ㄧ敾鐨勬墽琛屾椂闂达紝鍗曚綅ms 锛堥粯璁� '300' 锛� + * @property {String} timingFunction 浣跨敤鐨勫姩鐢昏繃娓″嚱鏁� 锛堥粯璁� 'ease-out' 锛� + * @property {Object} customStyle 鑷畾涔夋牱寮� + * @event {Function} before-enter 杩涘叆鍓嶈Е鍙� + * @event {Function} enter 杩涘叆涓Е鍙� + * @event {Function} after-enter 杩涘叆鍚庤Е鍙� + * @event {Function} before-leave 绂诲紑鍓嶈Е鍙� + * @event {Function} leave 绂诲紑涓Е鍙� + * @event {Function} after-leave 绂诲紑鍚庤Е鍙� + * @example + */ +export default { + name: 'u-transition', + data() { + return { + inited: false, // 鏄惁鏄剧ず/闅愯棌缁勪欢 + viewStyle: {}, // 缁勪欢鍐呴儴鐨勬牱寮� + status: '', // 璁板綍缁勪欢鍔ㄧ敾鐨勭姸鎬� + transitionEnded: false, // 缁勪欢鏄惁缁撴潫鐨勬爣璁� + display: false, // 缁勪欢鏄惁灞曠ず + classes: '', // 搴旂敤鐨勭被鍚� + } + }, + computed: { + mergeStyle() { + const { viewStyle, customStyle } = this + return { + // #ifndef APP-NVUE + transitionDuration: `${this.duration}ms`, + // display: `${this.display ? '' : 'none'}`, + transitionTimingFunction: this.timingFunction, + // #endif + // 閬垮厤鑷畾涔夋牱寮忓奖鍝嶅埌鍔ㄧ敾灞炴�э紝鎵�浠ュ啓鍦╲iewStyle鍓嶉潰 + ...uni.$u.addStyle(customStyle), + ...viewStyle + } + } + }, + // 灏唌ixin鎸傚湪鍒扮粍浠朵腑锛寀ni.$u.mixin瀹為檯涓婁负涓�涓獀ue鏍煎紡瀵硅薄 + mixins: [uni.$u.mpMixin, uni.$u.mixin, transition, props], + watch: { + show: { + handler(newVal) { + // vue鍜宯vue鍒嗗埆鎵ц涓嶅悓鐨勬柟娉� + // #ifdef APP-NVUE + newVal ? this.nvueEnter() : this.nvueLeave() + // #endif + // #ifndef APP-NVUE + newVal ? this.vueEnter() : this.vueLeave() + // #endif + }, + // 琛ㄧず鍚屾椂鐩戝惉鍒濆鍖栨椂鐨刾rops鐨剆how鐨勬剰鎬� + immediate: true + } + } +} +</script> + +<style lang="scss" scoped> +@import '../../libs/css/components.scss'; + +/* #ifndef APP-NVUE */ +// vue鐗堟湰鍔ㄧ敾鐩稿叧鐨勬牱寮忔娊绂诲湪澶栭儴鏂囦欢 +@import './vue.ani-style.scss'; +/* #endif */ + +.u-transition {} +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/vue.ani-style.scss b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/vue.ani-style.scss new file mode 100644 index 0000000..a31d88b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-transition/vue.ani-style.scss @@ -0,0 +1,113 @@ +/** + * vue鐗堟湰鍔ㄧ敾鍐呯疆鐨勫姩鐢绘ā寮忔湁濡備笅锛� + * fade锛氭贰鍏� + * zoom锛氱缉鏀� + * fade-zoom锛氱缉鏀炬贰鍏� + * fade-up锛氫笂婊戞贰鍏� + * fade-down锛氫笅婊戞贰鍏� + * fade-left锛氬乏婊戞贰鍏� + * fade-right锛氬彸婊戞贰鍏� + * slide-up锛氫笂婊戣繘鍏� + * slide-down锛氫笅婊戣繘鍏� + * slide-left锛氬乏婊戣繘鍏� + * slide-right锛氬彸婊戣繘鍏� + */ + +$u-zoom-scale: scale(0.95); + +.u-fade-enter-active, +.u-fade-leave-active { + transition-property: opacity; +} + +.u-fade-enter, +.u-fade-leave-to { + opacity: 0 +} + +.u-fade-zoom-enter, +.u-fade-zoom-leave-to { + transform: $u-zoom-scale; + opacity: 0; +} + +.u-fade-zoom-enter-active, +.u-fade-zoom-leave-active { + transition-property: transform, opacity; +} + +.u-fade-down-enter-active, +.u-fade-down-leave-active, +.u-fade-left-enter-active, +.u-fade-left-leave-active, +.u-fade-right-enter-active, +.u-fade-right-leave-active, +.u-fade-up-enter-active, +.u-fade-up-leave-active { + transition-property: opacity, transform; +} + +.u-fade-up-enter, +.u-fade-up-leave-to { + transform: translate3d(0, 100%, 0); + opacity: 0 +} + +.u-fade-down-enter, +.u-fade-down-leave-to { + transform: translate3d(0, -100%, 0); + opacity: 0 +} + +.u-fade-left-enter, +.u-fade-left-leave-to { + transform: translate3d(-100%, 0, 0); + opacity: 0 +} + +.u-fade-right-enter, +.u-fade-right-leave-to { + transform: translate3d(100%, 0, 0); + opacity: 0 +} + +.u-slide-down-enter-active, +.u-slide-down-leave-active, +.u-slide-left-enter-active, +.u-slide-left-leave-active, +.u-slide-right-enter-active, +.u-slide-right-leave-active, +.u-slide-up-enter-active, +.u-slide-up-leave-active { + transition-property: transform; +} + +.u-slide-up-enter, +.u-slide-up-leave-to { + transform: translate3d(0, 100%, 0) +} + +.u-slide-down-enter, +.u-slide-down-leave-to { + transform: translate3d(0, -100%, 0) +} + +.u-slide-left-enter, +.u-slide-left-leave-to { + transform: translate3d(-100%, 0, 0) +} + +.u-slide-right-enter, +.u-slide-right-leave-to { + transform: translate3d(100%, 0, 0) +} + +.u-zoom-enter-active, +.u-zoom-leave-active { + transition-property: transform +} + +.u-zoom-enter, +.u-zoom-leave-to { + transform: $u-zoom-scale +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/mixin.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/mixin.js new file mode 100644 index 0000000..410c775 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/mixin.js @@ -0,0 +1,21 @@ +export default { + watch: { + // 鐩戝惉accept鐨勫彉鍖栵紝鍒ゆ柇鏄惁绗﹀悎涓钩鍙拌姹� + // 鍙湁寰俊灏忕▼搴忔墠鏀寔閫夋嫨濯掍綋锛屾枃浠剁被鍨嬶紝鎵�浠ヨ繖閲屽仛涓�涓垽鏂彁绀� + accept: { + immediate: true, + handler(val) { + // #ifndef MP-WEIXIN + if (val === 'all' || val === 'media') { + uni.$u.error('鍙湁寰俊灏忕▼搴忔墠鏀寔鎶奱ccept閰嶇疆涓篴ll銆乵edia涔嬩竴') + } + // #endif + // #ifndef H5 || MP-WEIXIN + if (val === 'file') { + uni.$u.error('鍙湁寰俊灏忕▼搴忓拰H5(HX2.9.9)鎵嶆敮鎸佹妸accept閰嶇疆涓篺ile') + } + // #endif + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/props.js new file mode 100644 index 0000000..b106ae7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/props.js @@ -0,0 +1,124 @@ +export default { + props: { + // 鎺ュ彈鐨勬枃浠剁被鍨�, 鍙�夊�间负all media image file video + accept: { + type: String, + default: uni.$u.props.upload.accept + }, + // 鍥剧墖鎴栬棰戞嬀鍙栨ā寮忥紝褰揳ccept涓篿mage绫诲瀷鏃惰缃甤apture鍙�夐澶朿amera鍙互鐩存帴璋冭捣鎽勫儚澶� + capture: { + type: [String, Array], + default: uni.$u.props.upload.capture + }, + // 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鏄惁鍘嬬缉瑙嗛锛岄粯璁や负true + compressed: { + type: Boolean, + default: uni.$u.props.upload.compressed + }, + // 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鍙�夊�间负back鎴杅ront + camera: { + type: String, + default: uni.$u.props.upload.camera + }, + // 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鎷嶆憚瑙嗛鏈�闀挎媿鎽勬椂闂达紝鍗曚綅绉� + maxDuration: { + type: Number, + default: uni.$u.props.upload.maxDuration + }, + // 涓婁紶鍖哄煙鐨勫浘鏍囷紝鍙兘鍐呯疆鍥炬爣 + uploadIcon: { + type: String, + default: uni.$u.props.upload.uploadIcon + }, + // 涓婁紶鍖哄煙鐨勫浘鏍囩殑棰滆壊锛岄粯璁� + uploadIconColor: { + type: String, + default: uni.$u.props.upload.uploadIconColor + }, + // 鏄惁寮�鍚枃浠惰鍙栧墠浜嬩欢 + useBeforeRead: { + type: Boolean, + default: uni.$u.props.upload.useBeforeRead + }, + // 璇诲彇鍚庣殑澶勭悊鍑芥暟 + afterRead: { + type: Function, + default: null + }, + // 璇诲彇鍓嶇殑澶勭悊鍑芥暟 + beforeRead: { + type: Function, + default: null + }, + // 鏄惁鏄剧ず缁勪欢鑷甫鐨勫浘鐗囬瑙堝姛鑳� + previewFullImage: { + type: Boolean, + default: uni.$u.props.upload.previewFullImage + }, + // 鏈�澶т笂浼犳暟閲� + maxCount: { + type: [String, Number], + default: uni.$u.props.upload.maxCount + }, + // 鏄惁鍚敤 + disabled: { + type: Boolean, + default: uni.$u.props.upload.disabled + }, + // 棰勮涓婁紶鐨勫浘鐗囨椂鐨勮鍓ā寮忥紝鍜宨mage缁勪欢mode灞炴�т竴鑷� + imageMode: { + type: String, + default: uni.$u.props.upload.imageMode + }, + // 鏍囪瘑绗︼紝鍙互鍦ㄥ洖璋冨嚱鏁扮殑绗簩椤瑰弬鏁颁腑鑾峰彇 + name: { + type: String, + default: uni.$u.props.upload.name + }, + // 鎵�閫夌殑鍥剧墖鐨勫昂瀵�, 鍙�夊�间负original compressed + sizeType: { + type: Array, + default: uni.$u.props.upload.sizeType + }, + // 鏄惁寮�鍚浘鐗囧閫夛紝閮ㄥ垎瀹夊崜鏈哄瀷涓嶆敮鎸� + multiple: { + type: Boolean, + default: uni.$u.props.upload.multiple + }, + // 鏄惁灞曠ず鍒犻櫎鎸夐挳 + deletable: { + type: Boolean, + default: uni.$u.props.upload.deletable + }, + // 鏂囦欢澶у皬闄愬埗锛屽崟浣嶄负byte + maxSize: { + type: [String, Number], + default: uni.$u.props.upload.maxSize + }, + // 鏄剧ず宸蹭笂浼犵殑鏂囦欢鍒楄〃 + fileList: { + type: Array, + default: uni.$u.props.upload.fileList + }, + // 涓婁紶鍖哄煙鐨勬彁绀烘枃瀛� + uploadText: { + type: String, + default: uni.$u.props.upload.uploadText + }, + // 鍐呴儴棰勮鍥剧墖鍖哄煙鍜岄�夋嫨鍥剧墖鎸夐挳鐨勫尯鍩熷搴� + width: { + type: [String, Number], + default: uni.$u.props.upload.width + }, + // 鍐呴儴棰勮鍥剧墖鍖哄煙鍜岄�夋嫨鍥剧墖鎸夐挳鐨勫尯鍩熼珮搴� + height: { + type: [String, Number], + default: uni.$u.props.upload.height + }, + // 鏄惁鍦ㄤ笂浼犲畬鎴愬悗灞曠ず棰勮鍥� + previewImage: { + type: Boolean, + default: uni.$u.props.upload.previewImage + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/u-upload.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/u-upload.vue new file mode 100644 index 0000000..1dac8a7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/u-upload.vue @@ -0,0 +1,558 @@ +<template> + <view class="u-upload" :style="[$u.addStyle(customStyle)]"> + <view class="u-upload__wrap" > + <template v-if="previewImage"> + <view + class="u-upload__wrap__preview" + v-for="(item, index) in lists" + :key="index" + > + <image + v-if="item.isImage || (item.type && item.type === 'image')" + :src="item.thumb || item.url" + :mode="imageMode" + class="u-upload__wrap__preview__image" + @tap="onPreviewImage(item)" + :style="[{ + width: $u.addUnit(width), + height: $u.addUnit(height) + }]" + /> + <view + v-else + class="u-upload__wrap__preview__other" + > + <u-icon + color="#80CBF9" + size="26" + :name="item.isVideo || (item.type && item.type === 'video') ? 'movie' : 'folder'" + ></u-icon> + <text class="u-upload__wrap__preview__other__text">{{item.isVideo || (item.type && item.type === 'video') ? '瑙嗛' : '鏂囦欢'}}</text> + </view> + <view + class="u-upload__status" + v-if="item.status === 'uploading' || item.status === 'failed'" + > + <view class="u-upload__status__icon"> + <u-icon + v-if="item.status === 'failed'" + name="close-circle" + color="#ffffff" + size="25" + /> + <u-loading-icon + size="22" + mode="circle" + color="#ffffff" + v-else + /> + </view> + <text + v-if="item.message" + class="u-upload__status__message" + >{{ item.message }}</text> + </view> + <view + class="u-upload__deletable" + v-if="item.status !== 'uploading' && (deletable || item.deletable)" + @tap.stop="deleteItem(index)" + > + <view class="u-upload__deletable__icon"> + <u-icon + name="close" + color="#ffffff" + size="10" + ></u-icon> + </view> + </view> + <view + class="u-upload__success" + v-if="item.status === 'success'" + > + <!-- #ifdef APP-NVUE --> + <image + :src="successIcon" + class="u-upload__success__icon" + ></image> + <!-- #endif --> + <!-- #ifndef APP-NVUE --> + <view class="u-upload__success__icon"> + <u-icon + name="checkmark" + color="#ffffff" + size="12" + ></u-icon> + </view> + <!-- #endif --> + </view> + </view> + + </template> + + <template v-if="isInCount"> + <view + v-if="$slots.default || $slots.$default" + @tap="chooseFile" + > + <slot /> + </view> + <view + v-else + class="u-upload__button" + :hover-class="!disabled ? 'u-upload__button--hover' : ''" + hover-stay-time="150" + @tap="chooseFile" + :class="[disabled && 'u-upload__button--disabled']" + :style="[{ + width: $u.addUnit(width), + height: $u.addUnit(height) + }]" + > + <u-icon + :name="uploadIcon" + size="26" + :color="uploadIconColor" + ></u-icon> + <text + v-if="uploadText" + class="u-upload__button__text" + >{{ uploadText }}</text> + </view> + </template> + </view> + + </view> +</template> + +<script> + import { + chooseFile + } from './utils'; + import mixin from './mixin.js'; + import props from './props.js'; + + /** + * upload 涓婁紶 + * @description 璇ョ粍浠剁敤浜庝笂浼犲浘鐗囧満鏅� + * @tutorial https://uviewui.com/components/upload.html + * @property {String} accept 鎺ュ彈鐨勬枃浠剁被鍨�, 鍙�夊�间负all media image file video 锛堥粯璁� 'image' 锛� + * @property {String | Array} capture 鍥剧墖鎴栬棰戞嬀鍙栨ā寮忥紝褰揳ccept涓篿mage绫诲瀷鏃惰缃甤apture鍙�夐澶朿amera鍙互鐩存帴璋冭捣鎽勫儚澶达紙榛樿 ['album', 'camera'] 锛� + * @property {Boolean} compressed 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鏄惁鍘嬬缉瑙嗛锛岄粯璁や负true锛堥粯璁� true 锛� + * @property {String} camera 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鍙�夊�间负back鎴杅ront锛堥粯璁� 'back' 锛� + * @property {Number} maxDuration 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鎷嶆憚瑙嗛鏈�闀挎媿鎽勬椂闂达紝鍗曚綅绉掞紙榛樿 60 锛� + * @property {String} uploadIcon 涓婁紶鍖哄煙鐨勫浘鏍囷紝鍙兘鍐呯疆鍥炬爣锛堥粯璁� 'camera-fill' 锛� + * @property {String} uploadIconColor 涓婁紶鍖哄煙鐨勫浘鏍囩殑瀛椾綋棰滆壊锛屽彧鑳藉唴缃浘鏍囷紙榛樿 #D3D4D6 锛� + * @property {Boolean} useBeforeRead 鏄惁寮�鍚枃浠惰鍙栧墠浜嬩欢锛堥粯璁� false 锛� + * @property {Boolean} previewFullImage 鏄惁鏄剧ず缁勪欢鑷甫鐨勫浘鐗囬瑙堝姛鑳斤紙榛樿 true 锛� + * @property {String | Number} maxCount 鏈�澶т笂浼犳暟閲忥紙榛樿 52 锛� + * @property {Boolean} disabled 鏄惁鍚敤锛堥粯璁� false 锛� + * @property {String} imageMode 棰勮涓婁紶鐨勫浘鐗囨椂鐨勮鍓ā寮忥紝鍜宨mage缁勪欢mode灞炴�т竴鑷达紙榛樿 'aspectFill' 锛� + * @property {String} name 鏍囪瘑绗︼紝鍙互鍦ㄥ洖璋冨嚱鏁扮殑绗簩椤瑰弬鏁颁腑鑾峰彇 + * @property {Array} sizeType 鎵�閫夌殑鍥剧墖鐨勫昂瀵�, 鍙�夊�间负original compressed锛堥粯璁� ['original', 'compressed'] 锛� + * @property {Boolean} multiple 鏄惁寮�鍚浘鐗囧閫夛紝閮ㄥ垎瀹夊崜鏈哄瀷涓嶆敮鎸� 锛堥粯璁� false 锛� + * @property {Boolean} deletable 鏄惁灞曠ず鍒犻櫎鎸夐挳锛堥粯璁� true 锛� + * @property {String | Number} maxSize 鏂囦欢澶у皬闄愬埗锛屽崟浣嶄负byte 锛堥粯璁� Number.MAX_VALUE 锛� + * @property {Array} fileList 鏄剧ず宸蹭笂浼犵殑鏂囦欢鍒楄〃 + * @property {String} uploadText 涓婁紶鍖哄煙鐨勬彁绀烘枃瀛� + * @property {String | Number} width 鍐呴儴棰勮鍥剧墖鍖哄煙鍜岄�夋嫨鍥剧墖鎸夐挳鐨勫尯鍩熷搴︼紙榛樿 80 锛� + * @property {String | Number} height 鍐呴儴棰勮鍥剧墖鍖哄煙鍜岄�夋嫨鍥剧墖鎸夐挳鐨勫尯鍩熼珮搴︼紙榛樿 80 锛� + * @property {Object} customStyle 缁勪欢鐨勬牱寮忥紝瀵硅薄褰㈠紡 + * @event {Function} afterRead 璇诲彇鍚庣殑澶勭悊鍑芥暟 + * @event {Function} beforeRead 璇诲彇鍓嶇殑澶勭悊鍑芥暟 + * @event {Function} oversize 鏂囦欢瓒呭嚭澶у皬闄愬埗 + * @event {Function} clickPreview 鐐瑰嚮棰勮鍥剧墖 + * @event {Function} delete 鍒犻櫎鍥剧墖 + * @example <u-upload :action="action" :fileList="fileList" ></u-upload> + */ + export default { + name: "u-upload", + mixins: [uni.$u.mpMixin, uni.$u.mixin, mixin,props], + data() { + return { + // #ifdef APP-NVUE + successIcon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAACP0lEQVRYCc3YXygsURwH8K/dpcWyG3LF5u/6/+dKVylSypuUl6uUPMifKMWL8oKEB1EUT1KeUPdR3uTNUsSLxb2udG/cbvInNuvf2rVnazZ/ZndmZ87snjM1Z+Z3zpzfp9+Z5mEAhlvjRtZgCKs+gnPAOcAkkMOR4jEHfItjDvgRxxSQD8cM0BuOCaAvXNCBQrigAsXgggYUiwsK0B9cwIH+4gIKlIILGFAqLiBAOTjFgXJxigJp4BQD0sIpAqSJow6kjSNAFTnRaHJwLenD6Mud52VQAcrBfTd2oyq+HtGaGGWAcnAVcXWoM3bCZrdi+ncPfaAcXE5UKVpdW/vitGPqqAtn98d0gXJwX7Qp6MmegUYVhvmTIezdmHlxJCjpHRTCFerLkRRu4k0aqdajN3sWOo0BK//msHa+xDuPC/oNFMKRhTtM4xjIX0SCNpXL4+7VIaHuyiWEp2L7ahWLf8fejfPdqPmC3mJicORZUp1CQzm+GiphvljGk+PBvWRbxii+xVTj5M6CiZ/tsDufvaXyxEUDxeLIyvu3m0iOyEFWVAkydcVYdyFrE9tQk9iMq6f/GNlvwt3LjQfh60LUrw9/cFyyMJUW/XkLSNMV4Mi6C5ML+ui4x5ClAX9sB9w0wV6wglJwJCv5fOxcr6EstgbGiEw4XcfUry4cWrcEUW8n+ARKxXEJHhw2WG43UKSvwI/TSZgvl7kh0b3XLZaLEy0QmMgLZAVH7J+ALOE+AVnDvQOyiPMAWcW5gSzjCPAV+78S5WE0GrQAAAAASUVORK5CYII=', + // #endif + lists: [], + isInCount: true, + } + }, + watch: { + // 鐩戝惉鏂囦欢鍒楄〃鐨勫彉鍖栵紝閲嶆柊鏁寸悊鍐呴儴鏁版嵁 + fileList: { + immediate: true, + handler() { + this.formatFileList() + } + }, + }, + methods: { + formatFileList() { + const { + fileList = [], maxCount + } = this; + const lists = fileList.map((item) => + Object.assign(Object.assign({}, item), { + // 濡傛灉item.url涓烘湰鍦伴�夋嫨鐨刡lob鏂囦欢鐨勮瘽锛屾棤娉曞垽鏂叾涓簐ideo杩樻槸image锛屾澶勪紭鍏堥�氳繃accept鍋氬垽鏂鐞� + isImage: this.accept === 'image' || uni.$u.test.image(item.url || item.thumb), + isVideo: this.accept === 'video' || uni.$u.test.video(item.url || item.thumb), + deletable: typeof(item.deletable) === 'boolean' ? item.deletable : this.deletable, + }) + ); + this.lists = lists + this.isInCount = lists.length < maxCount + }, + chooseFile() { + const { + maxCount, + multiple, + lists, + disabled + } = this; + if (disabled) return; + // 濡傛灉鐢ㄦ埛浼犲叆鐨勬槸瀛楃涓诧紝闇�瑕佹牸寮忓寲鎴愭暟缁� + let capture; + try { + capture = uni.$u.test.array(this.capture) ? this.capture : this.capture.split(','); + }catch(e) { + capture = []; + } + chooseFile( + Object.assign({ + accept: this.accept, + multiple: this.multiple, + capture: capture, + compressed: this.compressed, + maxDuration: this.maxDuration, + sizeType: this.sizeType, + camera: this.camera, + }, { + maxCount: maxCount - lists.length, + }) + ) + .then((res) => { + this.onBeforeRead(multiple ? res : res[0]); + }) + .catch((error) => { + this.$emit('error', error); + }); + }, + // 鏂囦欢璇诲彇涔嬪墠 + onBeforeRead(file) { + const { + beforeRead, + useBeforeRead, + } = this; + let res = true + // beforeRead鏄惁涓轰竴涓柟娉� + if (uni.$u.test.func(beforeRead)) { + // 濡傛灉鐢ㄦ埛瀹氫箟浜嗘鏂规硶锛屽垯鍘绘墽琛屾鏂规硶锛屽苟浼犲叆璇诲彇鐨勬枃浠跺洖璋� + res = beforeRead(file, this.getDetail()); + } + if (useBeforeRead) { + res = new Promise((resolve, reject) => { + this.$emit( + 'beforeRead', + Object.assign(Object.assign({ + file + }, this.getDetail()), { + callback: (ok) => { + ok ? resolve() : reject(); + }, + }) + ); + }); + } + if (!res) { + return; + } + if (uni.$u.test.promise(res)) { + res.then((data) => this.onAfterRead(data || file)); + } else { + this.onAfterRead(file); + } + }, + getDetail(index) { + return { + name: this.name, + index: index == null ? this.fileList.length : index, + }; + }, + onAfterRead(file) { + const { + maxSize, + afterRead + } = this; + const oversize = Array.isArray(file) ? + file.some((item) => item.size > maxSize) : + file.size > maxSize; + if (oversize) { + this.$emit('oversize', Object.assign({ + file + }, this.getDetail())); + return; + } + if (typeof afterRead === 'function') { + afterRead(file, this.getDetail()); + } + this.$emit('afterRead', Object.assign({ + file + }, this.getDetail())); + }, + deleteItem(index) { + this.$emit( + 'delete', + Object.assign(Object.assign({}, this.getDetail(index)), { + file: this.fileList[index], + }) + ); + }, + // 棰勮鍥剧墖 + onPreviewImage(item) { + if (!item.isImage || !this.previewFullImage) return + uni.previewImage({ + // 鍏坒ilter鎵惧嚭涓哄浘鐗囩殑item锛屽啀杩斿洖filter缁撴灉涓殑鍥剧墖url + urls: this.lists.filter((item) => this.accept === 'image' || uni.$u.test.image(item.url || item.thumb)).map((item) => item.url || item.thumb), + current: item.url || item.thumb, + fail() { + uni.$u.toast('棰勮鍥剧墖澶辫触') + }, + }); + }, + onPreviewVideo(event) { + if (!this.data.previewFullImage) return; + const { + index + } = event.currentTarget.dataset; + const { + lists + } = this.data; + wx.previewMedia({ + sources: lists + .filter((item) => isVideoFile(item)) + .map((item) => + Object.assign(Object.assign({}, item), { + type: 'video' + }) + ), + current: index, + fail() { + uni.$u.toast('棰勮瑙嗛澶辫触') + }, + }); + }, + onClickPreview(event) { + const { + index + } = event.currentTarget.dataset; + const item = this.data.lists[index]; + this.$emit( + 'clickPreview', + Object.assign(Object.assign({}, item), this.getDetail(index)) + ); + } + } + } +</script> + +<style lang="scss" scoped> + @import '../../libs/css/components.scss'; + $u-upload-preview-border-radius: 2px !default; + $u-upload-preview-margin: 0 8px 8px 0 !default; + $u-upload-image-width:80px !default; + $u-upload-image-height:$u-upload-image-width; + $u-upload-other-bgColor: rgb(242, 242, 242) !default; + $u-upload-other-flex:1 !default; + $u-upload-text-font-size:11px !default; + $u-upload-text-color:$u-tips-color !default; + $u-upload-text-margin-top:2px !default; + $u-upload-deletable-right:0 !default; + $u-upload-deletable-top:0 !default; + $u-upload-deletable-bgColor:rgb(55, 55, 55) !default; + $u-upload-deletable-height:14px !default; + $u-upload-deletable-width:$u-upload-deletable-height; + $u-upload-deletable-boder-bottom-left-radius:100px !default; + $u-upload-deletable-zIndex:3 !default; + $u-upload-success-bottom:0 !default; + $u-upload-success-right:0 !default; + $u-upload-success-border-style:solid !default; + $u-upload-success-border-top-color:transparent !default; + $u-upload-success-border-left-color:transparent !default; + $u-upload-success-border-bottom-color: $u-success !default; + $u-upload-success-border-right-color:$u-upload-success-border-bottom-color; + $u-upload-success-border-width:9px !default; + $u-upload-icon-top:0px !default; + $u-upload-icon-right:0px !default; + $u-upload-icon-h5-top:1px !default; + $u-upload-icon-h5-right:0 !default; + $u-upload-icon-width:16px !default; + $u-upload-icon-height:$u-upload-icon-width; + $u-upload-success-icon-bottom:-10px !default; + $u-upload-success-icon-right:-10px !default; + $u-upload-status-right:0 !default; + $u-upload-status-left:0 !default; + $u-upload-status-bottom:0 !default; + $u-upload-status-top:0 !default; + $u-upload-status-bgColor:rgba(0, 0, 0, 0.5) !default; + $u-upload-status-icon-Zindex:1 !default; + $u-upload-message-font-size:12px !default; + $u-upload-message-color:#FFFFFF !default; + $u-upload-message-margin-top:5px !default; + $u-upload-button-width:80px !default; + $u-upload-button-height:$u-upload-button-width; + $u-upload-button-bgColor:rgb(244, 245, 247) !default; + $u-upload-button-border-radius:2px !default; + $u-upload-botton-margin: 0 8px 8px 0 !default; + $u-upload-text-font-size:11px !default; + $u-upload-text-color:$u-tips-color !default; + $u-upload-text-margin-top: 2px !default; + $u-upload-hover-bgColor:rgb(230, 231, 233) !default; + $u-upload-disabled-opacity:.5 !default; + + .u-upload { + @include flex(column); + flex: 1; + + &__wrap { + @include flex; + flex-wrap: wrap; + flex: 1; + + &__preview { + border-radius: $u-upload-preview-border-radius; + margin: $u-upload-preview-margin; + position: relative; + overflow: hidden; + @include flex; + + &__image { + width: $u-upload-image-width; + height: $u-upload-image-height; + } + + &__other { + width: $u-upload-image-width; + height: $u-upload-image-height; + background-color: $u-upload-other-bgColor; + flex: $u-upload-other-flex; + @include flex(column); + justify-content: center; + align-items: center; + + &__text { + font-size: $u-upload-text-font-size; + color: $u-upload-text-color; + margin-top: $u-upload-text-margin-top; + } + } + } + } + + &__deletable { + position: absolute; + top: $u-upload-deletable-top; + right: $u-upload-deletable-right; + background-color: $u-upload-deletable-bgColor; + height: $u-upload-deletable-height; + width: $u-upload-deletable-width; + @include flex; + border-bottom-left-radius: $u-upload-deletable-boder-bottom-left-radius; + align-items: center; + justify-content: center; + z-index: $u-upload-deletable-zIndex; + + &__icon { + position: absolute; + transform: scale(0.7); + top: $u-upload-icon-top; + right: $u-upload-icon-right; + /* #ifdef H5 */ + top: $u-upload-icon-h5-top; + right: $u-upload-icon-h5-right; + /* #endif */ + } + } + + &__success { + position: absolute; + bottom: $u-upload-success-bottom; + right: $u-upload-success-right; + @include flex; + // 鐢变簬weex(nvue)涓洪樋閲屽反宸寸殑KPI(閮ㄩ棬涓氱哗鑰冩牳)鐨刲aji浜х墿锛屼笉鏀寔css缁樺埗涓夎褰� + // 鎵�浠ュ湪nvue涓嬩娇鐢ㄥ浘鐗囷紝闈瀗vue涓嬩娇鐢╟ss瀹炵幇 + /* #ifndef APP-NVUE */ + border-style: $u-upload-success-border-style; + border-top-color: $u-upload-success-border-top-color; + border-left-color: $u-upload-success-border-left-color; + border-bottom-color: $u-upload-success-border-bottom-color; + border-right-color: $u-upload-success-border-right-color; + border-width: $u-upload-success-border-width; + align-items: center; + justify-content: center; + /* #endif */ + + &__icon { + /* #ifndef APP-NVUE */ + position: absolute; + transform: scale(0.7); + bottom: $u-upload-success-icon-bottom; + right: $u-upload-success-icon-right; + /* #endif */ + /* #ifdef APP-NVUE */ + width: $u-upload-icon-width; + height: $u-upload-icon-height; + /* #endif */ + } + } + + &__status { + position: absolute; + top: $u-upload-status-top; + bottom: $u-upload-status-bottom; + left: $u-upload-status-left; + right: $u-upload-status-right; + background-color: $u-upload-status-bgColor; + @include flex(column); + align-items: center; + justify-content: center; + + &__icon { + position: relative; + z-index: $u-upload-status-icon-Zindex; + } + + &__message { + font-size: $u-upload-message-font-size; + color: $u-upload-message-color; + margin-top: $u-upload-message-margin-top; + } + } + + &__button { + @include flex(column); + align-items: center; + justify-content: center; + width: $u-upload-button-width; + height: $u-upload-button-height; + background-color: $u-upload-button-bgColor; + border-radius: $u-upload-button-border-radius; + margin: $u-upload-botton-margin; + /* #ifndef APP-NVUE */ + box-sizing: border-box; + /* #endif */ + + &__text { + font-size: $u-upload-text-font-size; + color: $u-upload-text-color; + margin-top: $u-upload-text-margin-top; + } + + &--hover { + background-color: $u-upload-hover-bgColor; + } + + &--disabled { + opacity: $u-upload-disabled-opacity; + } + } + } +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/utils.js b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/utils.js new file mode 100644 index 0000000..88cb602 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/u-upload/utils.js @@ -0,0 +1,151 @@ +function pickExclude(obj, keys) { + // 鏌愪簺鎯呭喌涓嬶紝type鍙兘浼氫负 + if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) { + return {} + } + return Object.keys(obj).reduce((prev, key) => { + if (!keys.includes(key)) { + prev[key] = obj[key] + } + return prev + }, {}) +} + +function formatImage(res) { + return res.tempFiles.map((item) => ({ + ...pickExclude(item, ['path']), + type: 'image', + url: item.path, + thumb: item.path, + size: item.size, + // #ifdef H5 + name: item.name + // #endif + })) +} + +function formatVideo(res) { + return [ + { + ...pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg']), + type: 'video', + url: res.tempFilePath, + thumb: res.thumbTempFilePath, + size: res.size, + // #ifdef H5 + name: res.name + // #endif + } + ] +} + +function formatMedia(res) { + return res.tempFiles.map((item) => ({ + ...pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath']), + type: res.type, + url: item.tempFilePath, + thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath, + size: item.size + })) +} + +function formatFile(res) { + return res.tempFiles.map((item) => ({ + ...pickExclude(item, ['path']), + url: item.path, + size:item.size, + // #ifdef H5 + name: item.name, + type: item.type + // #endif + })) +} +export function chooseFile({ + accept, + multiple, + capture, + compressed, + maxDuration, + sizeType, + camera, + maxCount +}) { + return new Promise((resolve, reject) => { + switch (accept) { + case 'image': + uni.chooseImage({ + count: multiple ? Math.min(maxCount, 9) : 1, + sourceType: capture, + sizeType, + success: (res) => resolve(formatImage(res)), + fail: reject + }) + break + // #ifdef MP-WEIXIN + // 鍙湁寰俊灏忕▼搴忔墠鏀寔chooseMedia鎺ュ彛 + case 'media': + wx.chooseMedia({ + count: multiple ? Math.min(maxCount, 9) : 1, + sourceType: capture, + maxDuration, + sizeType, + camera, + success: (res) => resolve(formatMedia(res)), + fail: reject + }) + break + // #endif + case 'video': + uni.chooseVideo({ + sourceType: capture, + compressed, + maxDuration, + camera, + success: (res) => resolve(formatVideo(res)), + fail: reject + }) + break + // #ifdef MP-WEIXIN || H5 + // 鍙湁寰俊灏忕▼搴忔墠鏀寔chooseMessageFile鎺ュ彛 + case 'file': + // #ifdef MP-WEIXIN + wx.chooseMessageFile({ + count: multiple ? maxCount : 1, + type: accept, + success: (res) => resolve(formatFile(res)), + fail: reject + }) + // #endif + // #ifdef H5 + // 闇�瑕乭x2.9.9浠ヤ笂鎵嶆敮鎸乽ni.chooseFile + uni.chooseFile({ + count: multiple ? maxCount : 1, + type: accept, + success: (res) => resolve(formatFile(res)), + fail: reject + }) + // #endif + break + // #endif + default: + // 姝や负淇濆簳閫夐」锛屽湪accept涓嶄负涓婇潰浠绘剰涓�椤圭殑鏃跺�欓�夊彇鍏ㄩ儴鏂囦欢 + // #ifdef MP-WEIXIN + wx.chooseMessageFile({ + count: multiple ? maxCount : 1, + type: 'all', + success: (res) => resolve(formatFile(res)), + fail: reject + }) + // #endif + // #ifdef H5 + // 闇�瑕乭x2.9.9浠ヤ笂鎵嶆敮鎸乽ni.chooseFile + uni.chooseFile({ + count: multiple ? maxCount : 1, + type: 'all', + success: (res) => resolve(formatFile(res)), + fail: reject + }) + // #endif + } + }) +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/components/uview-ui/uview-ui.vue b/PipeLineLems.PDA/uni_modules/uview-ui/components/uview-ui/uview-ui.vue new file mode 100644 index 0000000..bcd3662 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/components/uview-ui/uview-ui.vue @@ -0,0 +1,15 @@ +<template> +</template> + +<template> + <view></view> +</template> + +<script> + export default { + + } +</script> + +<style> +</style> diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/index.js b/PipeLineLems.PDA/uni_modules/uview-ui/index.js new file mode 100644 index 0000000..651c090 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/index.js @@ -0,0 +1,79 @@ +// 鐪嬪埌姝ゆ姤閿欙紝鏄洜涓烘病鏈夐厤缃畍ue.config.js鐨勩�恡ranspileDependencies銆戯紝璇﹁锛歨ttps://www.uviewui.com/components/npmSetting.html#_5-cli妯″紡棰濆閰嶇疆 +const pleaseSetTranspileDependencies = {}, babelTest = pleaseSetTranspileDependencies?.test + + + +// 寮曞叆鍏ㄥ眬mixin +import mixin from './libs/mixin/mixin.js' +// 灏忕▼搴忕壒鏈夌殑mixin +import mpMixin from './libs/mixin/mpMixin.js' +// 鍏ㄥ眬鎸傝浇寮曞叆http鐩稿叧璇锋眰鎷︽埅鎻掍欢 +import Request from './libs/luch-request' + +// 璺敱灏佽 +import route from './libs/util/route.js' +// 棰滆壊娓愬彉鐩稿叧,colorGradient-棰滆壊娓愬彉,hexToRgb-鍗佸叚杩涘埗棰滆壊杞瑀gb棰滆壊,rgbToHex-rgb杞崄鍏繘鍒� +import colorGradient from './libs/function/colorGradient.js' + +// 瑙勫垯妫�楠� +import test from './libs/function/test.js' +// 闃叉姈鏂规硶 +import debounce from './libs/function/debounce.js' +// 鑺傛祦鏂规硶 +import throttle from './libs/function/throttle.js' +// 鍏叡鏂囦欢鍐欏叆鐨勬柟娉� +import index from './libs/function/index.js' + +// 閰嶇疆淇℃伅 +import config from './libs/config/config.js' +// props閰嶇疆淇℃伅 +import props from './libs/config/props.js' +// 鍚勪釜闇�瑕乫ixed鐨勫湴鏂圭殑z-index閰嶇疆鏂囦欢 +import zIndex from './libs/config/zIndex.js' +// 鍏充簬棰滆壊鐨勯厤缃紝鐗规畩鍦烘櫙浣跨敤 +import color from './libs/config/color.js' +// 骞冲彴 +import platform from './libs/function/platform' + +const $u = { + route, + date: index.timeFormat, // 鍙﹀悕date + colorGradient: colorGradient.colorGradient, + hexToRgb: colorGradient.hexToRgb, + rgbToHex: colorGradient.rgbToHex, + colorToRgba: colorGradient.colorToRgba, + test, + type: ['primary', 'success', 'error', 'warning', 'info'], + http: new Request(), + config, // uView閰嶇疆淇℃伅鐩稿叧锛屾瘮濡傜増鏈彿 + zIndex, + debounce, + throttle, + mixin, + mpMixin, + props, + ...index, + color, + platform +} + +// $u鎸傝浇鍒皍ni瀵硅薄涓� +uni.$u = $u + +const install = (Vue) => { + // 鏃堕棿鏍煎紡鍖栵紝鍚屾椂涓や釜鍚嶇О锛宒ate鍜宼imeFormat + Vue.filter('timeFormat', (timestamp, format) => uni.$u.timeFormat(timestamp, format)) + Vue.filter('date', (timestamp, format) => uni.$u.timeFormat(timestamp, format)) + // 灏嗗涔呬互鍓嶇殑鏂规硶锛屾敞鍏ュ埌鍏ㄥ眬杩囨护鍣� + Vue.filter('timeFrom', (timestamp, format) => uni.$u.timeFrom(timestamp, format)) + // 鍚屾椂鎸傝浇鍒皍ni鍜孷ue.prototype涓� + // #ifndef APP-NVUE + // 鍙湁vue锛屾寕杞藉埌Vue.prototype鎵嶆湁鎰忎箟锛屽洜涓簄vue涓叏灞�Vue.prototype鍜孷ue.mixin鏄棤鏁堢殑 + Vue.prototype.$u = $u + Vue.mixin(mixin) + // #endif +} + +export default { + install +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/index.scss b/PipeLineLems.PDA/uni_modules/uview-ui/index.scss new file mode 100644 index 0000000..8fcfa83 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/index.scss @@ -0,0 +1,23 @@ +// 寮曞叆鍏叡鍩虹绫� +@import "./libs/css/common.scss"; +@import "./libs/css/color.scss"; + +// 闈瀗vue鐨勬牱寮� +/* #ifndef APP-NVUE */ +@import "./libs/css/vue.scss"; +/* #endif */ + +// nvue鐨勭壒鏈夋牱寮� +/* #ifdef APP-NVUE */ +@import "./libs/css/nvue.scss"; +/* #endif */ + +// 灏忕▼搴忕壒鏈夌殑鏍峰紡 +/* #ifdef MP */ +@import "./libs/css/mp.scss"; +/* #endif */ + +// H5鐗规湁鐨勬牱寮� +/* #ifdef H5 */ +@import "./libs/css/h5.scss"; +/* #endif */ \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/color.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/color.js new file mode 100644 index 0000000..56b4187 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/color.js @@ -0,0 +1,17 @@ +// 涓轰簡璁╃敤鎴疯兘澶熻嚜瀹氫箟涓婚锛屼細閫愭寮冪敤姝ゆ枃浠讹紝鍚勯鑹查�氳繃css鎻愪緵 +// 涓轰簡缁欐煇浜涚壒娈婂満鏅娇鐢ㄥ拰鍚戝悗鍏煎锛屾棤闇�鍒犻櫎姝ゆ枃浠�(2020-06-20) +const color = { + primary: '#3c9cff', + info: '#909399', + default: '#909399', + warning: '#f9ae3d', + error: '#f56c6c', + success: '#5ac725', + mainColor: '#303133', + contentColor: '#606266', + tipsColor: '#909399', + lightColor: '#c0c4cc', + borderColor: '#e4e7ed' +} + +export default color diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/config.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/config.js new file mode 100644 index 0000000..8389666 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/config.js @@ -0,0 +1,34 @@ +// 姝ょ増鏈彂甯冧簬2022-00-24 +const version = '2.0.34' + +// 寮�鍙戠幆澧冩墠鎻愮ず锛岀敓浜х幆澧冧笉浼氭彁绀� +if (process.env.NODE_ENV === 'development') { + console.log(`\n %c uView V${version} %c https://uviewui.com/ \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;'); +} + +export default { + v: version, + version, + // 涓婚鍚嶇О + type: [ + 'primary', + 'success', + 'info', + 'error', + 'warning' + ], + // 棰滆壊閮ㄥ垎锛屾湰鏉ュ彲浠ラ�氳繃scss鐨�:export瀵煎嚭渚沯s浣跨敤锛屼絾鏄浣昻vue涓嶆敮鎸� + color: { + 'u-primary': '#2979ff', + 'u-warning': '#ff9900', + 'u-success': '#19be6b', + 'u-error': '#fa3534', + 'u-info': '#909399', + 'u-main-color': '#303133', + 'u-content-color': '#606266', + 'u-tips-color': '#909399', + 'u-light-color': '#c0c4cc' + }, + // 榛樿鍗曚綅锛屽彲浠ラ�氳繃閰嶇疆涓簉px锛岄偅涔堝湪鐢ㄤ簬浼犲叆缁勪欢澶у皬鍙傛暟涓烘暟鍊兼椂锛屽氨榛樿涓簉px + unit: 'px' +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props.js new file mode 100644 index 0000000..6930d48 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props.js @@ -0,0 +1,190 @@ +/** + * 姝ゆ枃浠剁殑浣滅敤涓虹粺涓�閰嶇疆鎵�鏈夌粍浠剁殑props鍙傛暟 + * 鍊熸鐢ㄦ埛鍙互鍏ㄥ眬瑕嗙洊缁勪欢鐨刾rops榛樿鍊� + * 鏃犻渶鍦ㄦ瘡涓紩鍏ョ粍浠剁殑椤甸潰涓兘閰嶇疆涓�娆� + */ +import config from './config' + +import actionSheet from './props/actionSheet.js' +import album from './props/album.js' +import alert from './props/alert.js' +import avatar from './props/avatar' +import avatarGroup from './props/avatarGroup' +import backtop from './props/backtop' +import badge from './props/badge' +import button from './props/button' +import calendar from './props/calendar' +import carKeyboard from './props/carKeyboard' +import cell from './props/cell' +import cellGroup from './props/cellGroup' +import checkbox from './props/checkbox' +import checkboxGroup from './props/checkboxGroup' +import circleProgress from './props/circleProgress' +import code from './props/code' +import codeInput from './props/codeInput' +import col from './props/col' +import collapse from './props/collapse' +import collapseItem from './props/collapseItem' +import columnNotice from './props/columnNotice' +import countDown from './props/countDown' +import countTo from './props/countTo' +import datetimePicker from './props/datetimePicker' +import divider from './props/divider' +import empty from './props/empty' +import form from './props/form' +import formItem from './props/formItem' +import gap from './props/gap' +import grid from './props/grid' +import gridItem from './props/gridItem' +import icon from './props/icon' +import image from './props/image' +import indexAnchor from './props/indexAnchor' +import indexList from './props/indexList' +import input from './props/input' +import keyboard from './props/keyboard' +import line from './props/line' +import lineProgress from './props/lineProgress' +import link from './props/link' +import list from './props/list' +import listItem from './props/listItem' +import loadingIcon from './props/loadingIcon' +import loadingPage from './props/loadingPage' +import loadmore from './props/loadmore' +import modal from './props/modal' +import navbar from './props/navbar' +import noNetwork from './props/noNetwork' +import noticeBar from './props/noticeBar' +import notify from './props/notify' +import numberBox from './props/numberBox' +import numberKeyboard from './props/numberKeyboard' +import overlay from './props/overlay' +import parse from './props/parse' +import picker from './props/picker' +import popup from './props/popup' +import radio from './props/radio' +import radioGroup from './props/radioGroup' +import rate from './props/rate' +import readMore from './props/readMore' +import row from './props/row' +import rowNotice from './props/rowNotice' +import scrollList from './props/scrollList' +import search from './props/search' +import section from './props/section' +import skeleton from './props/skeleton' +import slider from './props/slider' +import statusBar from './props/statusBar' +import steps from './props/steps' +import stepsItem from './props/stepsItem' +import sticky from './props/sticky' +import subsection from './props/subsection' +import swipeAction from './props/swipeAction' +import swipeActionItem from './props/swipeActionItem' +import swiper from './props/swiper' +import swipterIndicator from './props/swipterIndicator' +import _switch from './props/switch' +import tabbar from './props/tabbar' +import tabbarItem from './props/tabbarItem' +import tabs from './props/tabs' +import tag from './props/tag' +import text from './props/text' +import textarea from './props/textarea' +import toast from './props/toast' +import toolbar from './props/toolbar' +import tooltip from './props/tooltip' +import transition from './props/transition' +import upload from './props/upload' + +const { + color +} = config + +export default { + ...actionSheet, + ...album, + ...alert, + ...avatar, + ...avatarGroup, + ...backtop, + ...badge, + ...button, + ...calendar, + ...carKeyboard, + ...cell, + ...cellGroup, + ...checkbox, + ...checkboxGroup, + ...circleProgress, + ...code, + ...codeInput, + ...col, + ...collapse, + ...collapseItem, + ...columnNotice, + ...countDown, + ...countTo, + ...datetimePicker, + ...divider, + ...empty, + ...form, + ...formItem, + ...gap, + ...grid, + ...gridItem, + ...icon, + ...image, + ...indexAnchor, + ...indexList, + ...input, + ...keyboard, + ...line, + ...lineProgress, + ...link, + ...list, + ...listItem, + ...loadingIcon, + ...loadingPage, + ...loadmore, + ...modal, + ...navbar, + ...noNetwork, + ...noticeBar, + ...notify, + ...numberBox, + ...numberKeyboard, + ...overlay, + ...parse, + ...picker, + ...popup, + ...radio, + ...radioGroup, + ...rate, + ...readMore, + ...row, + ...rowNotice, + ...scrollList, + ...search, + ...section, + ...skeleton, + ...slider, + ...statusBar, + ...steps, + ...stepsItem, + ...sticky, + ...subsection, + ...swipeAction, + ...swipeActionItem, + ...swiper, + ...swipterIndicator, + ..._switch, + ...tabbar, + ...tabbarItem, + ...tabs, + ...tag, + ...text, + ...textarea, + ...toast, + ...toolbar, + ...tooltip, + ...transition, + ...upload +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/actionSheet.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/actionSheet.js new file mode 100644 index 0000000..d8061a7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/actionSheet.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:44:35 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js + */ +export default { + // action-sheet缁勪欢 + actionSheet: { + show: false, + title: '', + description: '', + actions: () => [], + index: '', + cancelText: '', + closeOnClickAction: true, + safeAreaInsetBottom: true, + openType: '', + closeOnClickOverlay: true, + round: 0 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/album.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/album.js new file mode 100644 index 0000000..8877326 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/album.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:47:24 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js + */ +export default { + // album 缁勪欢 + album: { + urls: () => [], + keyName: '', + singleSize: 180, + multipleSize: 70, + space: 6, + singleMode: 'scaleToFill', + multipleMode: 'aspectFill', + maxCount: 9, + previewFullImage: true, + rowCount: 3, + showMore: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/alert.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/alert.js new file mode 100644 index 0000000..8f8182c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/alert.js @@ -0,0 +1,22 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:48:53 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js + */ +export default { + // alert璀﹀憡缁勪欢 + alert: { + title: '', + type: 'warning', + description: '', + closable: false, + showIcon: false, + effect: 'light', + center: false, + fontSize: 14 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatar.js new file mode 100644 index 0000000..c097d4e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatar.js @@ -0,0 +1,28 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:49:22 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js + */ +export default { + // avatar 缁勪欢 + avatar: { + src: '', + shape: 'circle', + size: 40, + mode: 'scaleToFill', + text: '', + bgColor: '#c0c4cc', + color: '#ffffff', + fontSize: 18, + icon: '', + mpAvatar: false, + randomBgColor: false, + defaultUrl: '', + colorIndex: '', + name: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatarGroup.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatarGroup.js new file mode 100644 index 0000000..f4a66c3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/avatarGroup.js @@ -0,0 +1,23 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:49:55 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js + */ +export default { + // avatarGroup 缁勪欢 + avatarGroup: { + urls: () => [], + maxCount: 5, + shape: 'circle', + mode: 'scaleToFill', + showMore: true, + size: 40, + keyName: '', + gap: 0.5, + extraValue: 0 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/backtop.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/backtop.js new file mode 100644 index 0000000..80f17d0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/backtop.js @@ -0,0 +1,27 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:50:18 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js + */ +export default { + // backtop缁勪欢 + backtop: { + mode: 'circle', + icon: 'arrow-upward', + text: '', + duration: 100, + scrollTop: 0, + top: 400, + bottom: 100, + right: 20, + zIndex: 9, + iconStyle: () => ({ + color: '#909399', + fontSize: '19px' + }) + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/badge.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/badge.js new file mode 100644 index 0000000..44ee7cc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/badge.js @@ -0,0 +1,27 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-23 19:51:50 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js + */ +export default { + // 寰芥爣鏁扮粍浠� + badge: { + isDot: false, + value: '', + show: true, + max: 999, + type: 'error', + showZero: false, + bgColor: null, + color: null, + shape: 'circle', + numberType: 'overflow', + offset: () => [], + inverted: false, + absolute: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/button.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/button.js new file mode 100644 index 0000000..acd65fc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/button.js @@ -0,0 +1,42 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:51:27 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js + */ +export default { + // button缁勪欢 + button: { + hairline: false, + type: 'info', + size: 'normal', + shape: 'square', + plain: false, + disabled: false, + loading: false, + loadingText: '', + loadingMode: 'spinner', + loadingSize: 15, + openType: '', + formType: '', + appParameter: '', + hoverStopPropagation: true, + lang: 'en', + sessionFrom: '', + sendMessageTitle: '', + sendMessagePath: '', + sendMessageImg: '', + showMessageCard: false, + dataName: '', + throttleTime: 0, + hoverStartTime: 0, + hoverStayTime: 200, + text: '', + icon: '', + iconColor: '', + color: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/calendar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/calendar.js new file mode 100644 index 0000000..bfd2bd6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/calendar.js @@ -0,0 +1,42 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:52:43 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js + */ +export default { + // calendar 缁勪欢 + calendar: { + title: '鏃ユ湡閫夋嫨', + showTitle: true, + showSubtitle: true, + mode: 'single', + startText: '寮�濮�', + endText: '缁撴潫', + customList: () => [], + color: '#3c9cff', + minDate: 0, + maxDate: 0, + defaultDate: null, + maxCount: Number.MAX_SAFE_INTEGER, // Infinity + rowHeight: 56, + formatter: null, + showLunar: false, + showMark: true, + confirmText: '纭畾', + confirmDisabledText: '纭畾', + show: false, + closeOnClickOverlay: false, + readonly: false, + showConfirm: true, + maxRange: Number.MAX_SAFE_INTEGER, // Infinity + rangePrompt: '', + showRangePrompt: true, + allowSameDay: false, + round: 0, + monthNum: 3 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/carKeyboard.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/carKeyboard.js new file mode 100644 index 0000000..af1baa0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/carKeyboard.js @@ -0,0 +1,15 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:53:20 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js + */ +export default { + // 杞︾墝鍙烽敭鐩� + carKeyboard: { + random: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cell.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cell.js new file mode 100644 index 0000000..425ea3f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cell.js @@ -0,0 +1,35 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-23 20:53:09 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js + */ +export default { + // cell缁勪欢鐨刾rops + cell: { + customClass: '', + title: '', + label: '', + value: '', + icon: '', + disabled: false, + border: true, + center: false, + url: '', + linkType: 'navigateTo', + clickable: false, + isLink: false, + required: false, + arrowDirection: '', + iconStyle: {}, + rightIconStyle: {}, + rightIcon: 'arrow-right', + titleStyle: {}, + size: '', + stop: true, + name: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cellGroup.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cellGroup.js new file mode 100644 index 0000000..d48a9cd --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/cellGroup.js @@ -0,0 +1,17 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:54:16 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js + */ +export default { + // cell-group缁勪欢鐨刾rops + cellGroup: { + title: '', + border: true, + customStyle: {} + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkbox.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkbox.js new file mode 100644 index 0000000..2310901 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkbox.js @@ -0,0 +1,27 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-23 21:06:59 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js + */ +export default { + // checkbox缁勪欢 + checkbox: { + name: '', + shape: '', + size: '', + checkbox: false, + disabled: '', + activeColor: '', + inactiveColor: '', + iconSize: '', + iconColor: '', + label: '', + labelSize: '', + labelColor: '', + labelDisabled: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkboxGroup.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkboxGroup.js new file mode 100644 index 0000000..8798fa4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/checkboxGroup.js @@ -0,0 +1,29 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:54:47 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js + */ +export default { + // checkbox-group缁勪欢 + checkboxGroup: { + name: '', + value: () => [], + shape: 'square', + disabled: false, + activeColor: '#2979ff', + inactiveColor: '#c8c9cc', + size: 18, + placement: 'row', + labelSize: 14, + labelColor: '#303133', + labelDisabled: false, + iconColor: '#ffffff', + iconSize: 12, + iconPlacement: 'left', + borderBottom: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/circleProgress.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/circleProgress.js new file mode 100644 index 0000000..b3a9b43 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/circleProgress.js @@ -0,0 +1,15 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:55:02 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js + */ +export default { + // circleProgress 缁勪欢 + circleProgress: { + percentage: 30 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/code.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/code.js new file mode 100644 index 0000000..693417a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/code.js @@ -0,0 +1,21 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:55:27 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js + */ + +export default { + // code 缁勪欢 + code: { + seconds: 60, + startText: '鑾峰彇楠岃瘉鐮�', + changeText: 'X绉掗噸鏂拌幏鍙�', + endText: '閲嶆柊鑾峰彇', + keepRunning: false, + uniqueKey: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/codeInput.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/codeInput.js new file mode 100644 index 0000000..cac9265 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/codeInput.js @@ -0,0 +1,29 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:55:58 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js + */ +export default { + // codeInput 缁勪欢 + codeInput: { + adjustPosition: true, + maxlength: 6, + dot: false, + mode: 'box', + hairline: false, + space: 10, + value: '', + focus: false, + bold: false, + color: '#606266', + fontSize: 18, + size: 35, + disabledKeyboard: false, + borderColor: '#c9cacc', + disabledDot: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/col.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/col.js new file mode 100644 index 0000000..7621653 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/col.js @@ -0,0 +1,19 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:56:12 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js + */ +export default { + // col 缁勪欢 + col: { + span: 12, + offset: 0, + justify: 'start', + align: 'stretch', + textAlign: 'left' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapse.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapse.js new file mode 100644 index 0000000..c2b9fdd --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapse.js @@ -0,0 +1,17 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:56:30 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js + */ +export default { + // collapse 缁勪欢 + collapse: { + value: null, + accordion: false, + border: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapseItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapseItem.js new file mode 100644 index 0000000..74ce682 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/collapseItem.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:56:42 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js + */ +export default { + // collapseItem 缁勪欢 + collapseItem: { + title: '', + value: '', + label: '', + disabled: false, + isLink: true, + clickable: true, + border: true, + align: 'left', + name: '', + icon: '', + duration: 300 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/columnNotice.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/columnNotice.js new file mode 100644 index 0000000..147c0aa --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/columnNotice.js @@ -0,0 +1,24 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:57:16 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js + */ +export default { + // columnNotice 缁勪欢 + columnNotice: { + text: '', + icon: 'volume', + mode: '', + color: '#f9ae3d', + bgColor: '#fdf6ec', + fontSize: 14, + speed: 80, + step: false, + duration: 1500, + disableTouch: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countDown.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countDown.js new file mode 100644 index 0000000..81e33b1 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countDown.js @@ -0,0 +1,18 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:11:29 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js + */ +export default { + // u-count-down 璁℃椂鍣ㄧ粍浠� + countDown: { + time: 0, + format: 'HH:mm:ss', + autoStart: true, + millisecond: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countTo.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countTo.js new file mode 100644 index 0000000..a536cde --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/countTo.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:57:32 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js + */ +export default { + // countTo 缁勪欢 + countTo: { + startVal: 0, + endVal: 0, + duration: 2000, + autoplay: true, + decimals: 0, + useEasing: true, + decimal: '.', + color: '#606266', + fontSize: 22, + bold: false, + separator: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/datetimePicker.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/datetimePicker.js new file mode 100644 index 0000000..4f90966 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/datetimePicker.js @@ -0,0 +1,36 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:57:48 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js + */ +export default { + // datetimePicker 缁勪欢 + datetimePicker: { + show: false, + showToolbar: true, + value: '', + title: '', + mode: 'datetime', + maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(), + minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(), + minHour: 0, + maxHour: 23, + minMinute: 0, + maxMinute: 59, + filter: null, + formatter: null, + loading: false, + itemHeight: 44, + cancelText: '鍙栨秷', + confirmText: '纭', + cancelColor: '#909193', + confirmColor: '#3c9cff', + visibleItemCount: 5, + closeOnClickOverlay: false, + defaultIndex: () => [] + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/divider.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/divider.js new file mode 100644 index 0000000..55a8ce4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/divider.js @@ -0,0 +1,23 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:58:03 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js + */ +export default { + // divider缁勪欢 + divider: { + dashed: false, + hairline: true, + dot: false, + textPosition: 'center', + text: '', + textSize: 14, + textColor: '#909399', + lineColor: '#dcdfe6' + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/empty.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/empty.js new file mode 100644 index 0000000..fe20445 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/empty.js @@ -0,0 +1,26 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:03:27 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js + */ +export default { + // empty缁勪欢 + empty: { + icon: '', + text: '', + textColor: '#c0c4cc', + textSize: 14, + iconColor: '#c0c4cc', + iconSize: 90, + mode: 'data', + width: 160, + height: 160, + show: true, + marginTop: 0 + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/form.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/form.js new file mode 100644 index 0000000..41b122e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/form.js @@ -0,0 +1,22 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:03:49 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js + */ +export default { + // form 缁勪欢 + form: { + model: () => ({}), + rules: () => ({}), + errorType: 'message', + borderBottom: true, + labelPosition: 'left', + labelWidth: 45, + labelAlign: 'left', + labelStyle: () => ({}) + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/formItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/formItem.js new file mode 100644 index 0000000..4b7c90a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/formItem.js @@ -0,0 +1,23 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:04:32 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js + */ +export default { + // formItem 缁勪欢 + formItem: { + label: '', + prop: '', + borderBottom: '', + labelPosition: '', + labelWidth: '', + rightIcon: '', + leftIcon: '', + required: false, + leftIconStyle: '', + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gap.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gap.js new file mode 100644 index 0000000..60a21af --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gap.js @@ -0,0 +1,19 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:05:25 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js + */ +export default { + // gap缁勪欢 + gap: { + bgColor: 'transparent', + height: 20, + marginTop: 0, + marginBottom: 0, + customStyle: {} + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/grid.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/grid.js new file mode 100644 index 0000000..60abeb7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/grid.js @@ -0,0 +1,17 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:05:57 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js + */ +export default { + // grid缁勪欢 + grid: { + col: 3, + border: false, + align: 'left' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gridItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gridItem.js new file mode 100644 index 0000000..1b747f4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/gridItem.js @@ -0,0 +1,16 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:06:13 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js + */ +export default { + // grid-item缁勪欢 + gridItem: { + name: null, + bgColor: 'transparent' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/icon.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/icon.js new file mode 100644 index 0000000..1d81d2d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/icon.js @@ -0,0 +1,36 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 18:00:14 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js + */ +import config from '../config' + +const { + color +} = config +export default { + // icon缁勪欢 + icon: { + name: '', + color: color['u-content-color'], + size: '16px', + bold: false, + index: '', + hoverClass: '', + customPrefix: 'uicon', + label: '', + labelPos: 'right', + labelSize: '15px', + labelColor: color['u-content-color'], + space: '3px', + imgMode: '', + width: '', + height: '', + top: 0, + stop: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/image.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/image.js new file mode 100644 index 0000000..2552db6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/image.js @@ -0,0 +1,30 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:01:51 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js + */ +export default { + // image缁勪欢 + image: { + src: '', + mode: 'aspectFill', + width: '300', + height: '225', + shape: 'square', + radius: 0, + lazyLoad: true, + showMenuByLongpress: true, + loadingIcon: 'photo', + errorIcon: 'error-circle', + showLoading: true, + showError: true, + fade: true, + webp: false, + duration: 500, + bgColor: '#f3f4f6' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexAnchor.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexAnchor.js new file mode 100644 index 0000000..bb20d46 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexAnchor.js @@ -0,0 +1,19 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:13:15 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js + */ +export default { + // indexAnchor 缁勪欢 + indexAnchor: { + text: '', + color: '#606266', + size: 14, + bgColor: '#dedede', + height: 32 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexList.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexList.js new file mode 100644 index 0000000..dc6ce94 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/indexList.js @@ -0,0 +1,19 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:13:35 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js + */ +export default { + // indexList 缁勪欢 + indexList: { + inactiveColor: '#606266', + activeColor: '#5677fc', + indexList: () => [], + sticky: true, + customNavHeight: 0 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/input.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/input.js new file mode 100644 index 0000000..4f0edc6 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/input.js @@ -0,0 +1,48 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:13:55 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js + */ +export default { + // index 缁勪欢 + input: { + value: '', + type: 'text', + fixed: false, + disabled: false, + disabledColor: '#f5f7fa', + clearable: false, + password: false, + maxlength: -1, + placeholder: null, + placeholderClass: 'input-placeholder', + placeholderStyle: 'color: #c0c4cc', + showWordLimit: false, + confirmType: 'done', + confirmHold: false, + holdKeyboard: false, + focus: false, + autoBlur: false, + disableDefaultPadding: false, + cursor: -1, + cursorSpacing: 30, + selectionStart: -1, + selectionEnd: -1, + adjustPosition: true, + inputAlign: 'left', + fontSize: '15px', + color: '#303133', + prefixIcon: '', + prefixIconStyle: '', + suffixIcon: '', + suffixIconStyle: '', + border: 'surround', + readonly: false, + shape: 'square', + formatter: null + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/keyboard.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/keyboard.js new file mode 100644 index 0000000..57182bd --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/keyboard.js @@ -0,0 +1,30 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:07:49 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js + */ +export default { + // 閿洏缁勪欢 + keyboard: { + mode: 'number', + dotDisabled: false, + tooltip: true, + showTips: true, + tips: '', + showCancel: true, + showConfirm: true, + random: false, + safeAreaInsetBottom: true, + closeOnClickOverlay: true, + show: false, + overlay: true, + zIndex: 10075, + cancelText: '鍙栨秷', + confirmText: '纭畾', + autoChange: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/line.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/line.js new file mode 100644 index 0000000..2c87af2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/line.js @@ -0,0 +1,20 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:04:49 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js + */ +export default { + // line缁勪欢 + line: { + color: '#d6d7d9', + length: '100%', + direction: 'row', + hairline: true, + margin: 0, + dashed: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/lineProgress.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/lineProgress.js new file mode 100644 index 0000000..cdfcb0e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/lineProgress.js @@ -0,0 +1,19 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:14:11 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js + */ +export default { + // lineProgress 缁勪欢 + lineProgress: { + activeColor: '#19be6b', + inactiveColor: '#ececec', + percentage: 0, + showText: true, + height: 12 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/link.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/link.js new file mode 100644 index 0000000..6c4c883 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/link.js @@ -0,0 +1,26 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:45:36 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js + */ +import config from '../config' + +const { + color +} = config +export default { + // link瓒呴摼鎺ョ粍浠秔rops鍙傛暟 + link: { + color: color['u-primary'], + fontSize: 15, + underLine: false, + href: '', + mpTips: '閾炬帴宸插鍒讹紝璇峰湪娴忚鍣ㄦ墦寮�', + lineColor: '', + text: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/list.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/list.js new file mode 100644 index 0000000..a830c32 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/list.js @@ -0,0 +1,28 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:14:53 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js + */ +export default { + // list 缁勪欢 + list: { + showScrollbar: false, + lowerThreshold: 50, + upperThreshold: 0, + scrollTop: 0, + offsetAccuracy: 10, + enableFlex: false, + pagingEnabled: false, + scrollable: true, + scrollIntoView: '', + scrollWithAnimation: false, + enableBackToTop: false, + height: 0, + width: 0, + preLoadScreen: 1 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/listItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/listItem.js new file mode 100644 index 0000000..7fe2166 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/listItem.js @@ -0,0 +1,15 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:15:40 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js + */ +export default { + // listItem 缁勪欢 + listItem: { + anchor: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingIcon.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingIcon.js new file mode 100644 index 0000000..f4739c4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingIcon.js @@ -0,0 +1,30 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:45:47 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js + */ +import config from '../config' + +const { + color +} = config +export default { + // loading-icon鍔犺浇涓浘鏍囩粍浠� + loadingIcon: { + show: true, + color: color['u-tips-color'], + textColor: color['u-tips-color'], + vertical: false, + mode: 'spinner', + size: 24, + textSize: 15, + text: '', + timingFunction: 'ease-in-out', + duration: 1200, + inactiveColor: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingPage.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingPage.js new file mode 100644 index 0000000..dc53109 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadingPage.js @@ -0,0 +1,23 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:00:23 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js + */ +export default { + // loading-page缁勪欢 + loadingPage: { + loadingText: '姝e湪鍔犺浇', + image: '', + loadingMode: 'circle', + loading: false, + bgColor: '#ffffff', + color: '#C8C8C8', + fontSize: 19, + iconSize: 28, + loadingColor: '#C8C8C8' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadmore.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadmore.js new file mode 100644 index 0000000..67c1160 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/loadmore.js @@ -0,0 +1,32 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:15:26 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js + */ +export default { + // loadmore 缁勪欢 + loadmore: { + status: 'loadmore', + bgColor: 'transparent', + icon: true, + fontSize: 14, + iconSize: 17, + color: '#606266', + loadingIcon: 'spinner', + loadmoreText: '鍔犺浇鏇村', + loadingText: '姝e湪鍔犺浇...', + nomoreText: '娌℃湁鏇村浜�', + isDot: false, + iconColor: '#b7b7b7', + marginTop: 10, + marginBottom: 10, + height: 'auto', + line: false, + lineColor: '#E6E8EB', + dashed: false, + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/modal.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/modal.js new file mode 100644 index 0000000..2ae3fff --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/modal.js @@ -0,0 +1,30 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:15:59 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js + */ +export default { + // modal 缁勪欢 + modal: { + show: false, + title: '', + content: '', + confirmText: '纭', + cancelText: '鍙栨秷', + showConfirmButton: true, + showCancelButton: false, + confirmColor: '#2979ff', + cancelColor: '#606266', + buttonReverse: false, + zoom: true, + asyncClose: false, + closeOnClickOverlay: false, + negativeTop: 0, + width: '650rpx', + confirmButtonShape: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/navbar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/navbar.js new file mode 100644 index 0000000..614a99d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/navbar.js @@ -0,0 +1,32 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:16:18 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js + */ +import color from '../color' +export default { + // navbar 缁勪欢 + navbar: { + safeAreaInsetTop: true, + placeholder: false, + fixed: true, + border: false, + leftIcon: 'arrow-left', + leftText: '', + rightText: '', + rightIcon: '', + title: '', + bgColor: '#ffffff', + titleWidth: '400rpx', + height: '44px', + leftIconSize: 20, + leftIconColor: color.mainColor, + autoBack: false, + titleStyle: '' + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noNetwork.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noNetwork.js new file mode 100644 index 0000000..74dba1b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noNetwork.js @@ -0,0 +1,18 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:16:39 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js + */ +export default { + // noNetwork + noNetwork: { + tips: '鍝庡憖锛岀綉缁滀俊鍙蜂涪澶�', + zIndex: '', + image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC' + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noticeBar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noticeBar.js new file mode 100644 index 0000000..02c660a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/noticeBar.js @@ -0,0 +1,27 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:17:13 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js + */ +export default { + // noticeBar + noticeBar: { + text: () => [], + direction: 'row', + step: false, + icon: 'volume', + mode: '', + color: '#f9ae3d', + bgColor: '#fdf6ec', + speed: 80, + fontSize: 14, + duration: 2000, + disableTouch: true, + url: '', + linkType: 'navigateTo' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/notify.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/notify.js new file mode 100644 index 0000000..1042d2a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/notify.js @@ -0,0 +1,22 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:10:21 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js + */ +export default { + // notify缁勪欢 + notify: { + top: 0, + type: 'primary', + color: '#ffffff', + bgColor: '', + message: '', + duration: 3000, + fontSize: 15, + safeAreaInsetTop: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberBox.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberBox.js new file mode 100644 index 0000000..424f0ca --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberBox.js @@ -0,0 +1,35 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:11:46 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js + */ +export default { + // 姝ヨ繘鍣ㄧ粍浠� + numberBox: { + name: '', + value: 0, + min: 1, + max: Number.MAX_SAFE_INTEGER, + step: 1, + integer: false, + disabled: false, + disabledInput: false, + asyncChange: false, + inputWidth: 35, + showMinus: true, + showPlus: true, + decimalLength: null, + longPress: true, + color: '#323233', + buttonSize: 30, + bgColor: '#EBECEE', + cursorSpacing: 100, + disableMinus: false, + disablePlus: false, + iconStyle: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberKeyboard.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberKeyboard.js new file mode 100644 index 0000000..7b45065 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/numberKeyboard.js @@ -0,0 +1,17 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:08:05 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js + */ +export default { + // 鏁板瓧閿洏 + numberKeyboard: { + mode: 'number', + dotDisabled: false, + random: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/overlay.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/overlay.js new file mode 100644 index 0000000..c26d068 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/overlay.js @@ -0,0 +1,18 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:06:50 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js + */ +export default { + // overlay缁勪欢 + overlay: { + show: false, + zIndex: 10070, + duration: 300, + opacity: 0.5 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/parse.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/parse.js new file mode 100644 index 0000000..feb22b9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/parse.js @@ -0,0 +1,22 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:17:33 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js + */ +export default { + // parse + parse: { + copyLink: true, + errorImg: '', + lazyLoad: false, + loadingImg: '', + pauseVideo: true, + previewImg: true, + setTitle: true, + showImgMenu: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/picker.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/picker.js new file mode 100644 index 0000000..f06b321 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/picker.js @@ -0,0 +1,29 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:18:20 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js + */ +export default { + // picker + picker: { + show: false, + showToolbar: true, + title: '', + columns: () => [], + loading: false, + itemHeight: 44, + cancelText: '鍙栨秷', + confirmText: '纭畾', + cancelColor: '#909193', + confirmColor: '#3c9cff', + visibleItemCount: 5, + keyName: 'text', + closeOnClickOverlay: false, + defaultIndex: () => [], + immediateChange: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/popup.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/popup.js new file mode 100644 index 0000000..0cc1bc0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/popup.js @@ -0,0 +1,29 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:06:33 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js + */ +export default { + // popup缁勪欢 + popup: { + show: false, + overlay: true, + mode: 'bottom', + duration: 300, + closeable: false, + overlayStyle: () => {}, + closeOnClickOverlay: true, + zIndex: 10075, + safeAreaInsetBottom: true, + safeAreaInsetTop: false, + closeIconPos: 'top-right', + round: 0, + zoom: true, + bgColor: '', + overlayOpacity: 0.5 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radio.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radio.js new file mode 100644 index 0000000..4df200f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radio.js @@ -0,0 +1,27 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:02:34 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js + */ +export default { + // radio缁勪欢 + radio: { + name: '', + shape: '', + disabled: '', + labelDisabled: '', + activeColor: '', + inactiveColor: '', + iconSize: '', + labelSize: '', + label: '', + labelColor: '', + size: '', + iconColor: '', + placement: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radioGroup.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radioGroup.js new file mode 100644 index 0000000..728e9db --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/radioGroup.js @@ -0,0 +1,30 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:03:12 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js + */ +export default { + // radio-group缁勪欢 + radioGroup: { + value: '', + disabled: false, + shape: 'circle', + activeColor: '#2979ff', + inactiveColor: '#c8c9cc', + name: '', + size: 18, + placement: 'row', + label: '', + labelColor: '#303133', + labelSize: 14, + labelDisabled: false, + iconColor: '#ffffff', + iconSize: 12, + borderBottom: false, + iconPlacement: 'left' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rate.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rate.js new file mode 100644 index 0000000..d31c61a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rate.js @@ -0,0 +1,26 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:05:09 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js + */ +export default { + // rate缁勪欢 + rate: { + value: 1, + count: 5, + disabled: false, + size: 18, + inactiveColor: '#b2b2b2', + activeColor: '#FA3534', + gutter: 4, + minCount: 1, + allowHalf: false, + activeIcon: 'star-fill', + inactiveIcon: 'star', + touchable: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/readMore.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/readMore.js new file mode 100644 index 0000000..09b11cc --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/readMore.js @@ -0,0 +1,22 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:18:41 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js + */ +export default { + // readMore + readMore: { + showHeight: 400, + toggle: false, + closeText: '灞曞紑闃呰鍏ㄦ枃', + openText: '鏀惰捣', + color: '#2979ff', + fontSize: 14, + textIndent: '2em', + name: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/row.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/row.js new file mode 100644 index 0000000..573a431 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/row.js @@ -0,0 +1,17 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:18:58 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js + */ +export default { + // row + row: { + gutter: 0, + justify: 'start', + align: 'center' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rowNotice.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rowNotice.js new file mode 100644 index 0000000..cd9d0a0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/rowNotice.js @@ -0,0 +1,21 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:19:13 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js + */ +export default { + // rowNotice + rowNotice: { + text: '', + icon: 'volume', + mode: '', + color: '#f9ae3d', + bgColor: '#fdf6ec', + fontSize: 14, + speed: 80 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/scrollList.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/scrollList.js new file mode 100644 index 0000000..441e63a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/scrollList.js @@ -0,0 +1,20 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:19:28 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js + */ +export default { + // scrollList + scrollList: { + indicatorWidth: 50, + indicatorBarWidth: 20, + indicator: true, + indicatorColor: '#f2f2f2', + indicatorActiveColor: '#3c9cff', + indicatorStyle: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/search.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/search.js new file mode 100644 index 0000000..2699954 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/search.js @@ -0,0 +1,37 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:19:45 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js + */ +export default { + // search + search: { + shape: 'round', + bgColor: '#f2f2f2', + placeholder: '璇疯緭鍏ュ叧閿瓧', + clearabled: true, + focus: false, + showAction: true, + actionStyle: () => ({}), + actionText: '鎼滅储', + inputAlign: 'left', + inputStyle: () => ({}), + disabled: false, + borderColor: 'transparent', + searchIconColor: '#909399', + searchIconSize: 22, + color: '#606266', + placeholderColor: '#909399', + searchIcon: 'search', + margin: '0', + animation: false, + value: '', + maxlength: '-1', + height: 32, + label: null + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/section.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/section.js new file mode 100644 index 0000000..f432648 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/section.js @@ -0,0 +1,24 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:07:33 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js + */ +export default { + // u-section缁勪欢 + section: { + title: '', + subTitle: '鏇村', + right: true, + fontSize: 15, + bold: true, + color: '#303133', + subColor: '#909399', + showLine: true, + lineColor: '', + arrow: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/skeleton.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/skeleton.js new file mode 100644 index 0000000..83b777d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/skeleton.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:20:14 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js + */ +export default { + // skeleton + skeleton: { + loading: true, + animate: true, + rows: 0, + rowsWidth: '100%', + rowsHeight: 18, + title: true, + titleWidth: '50%', + titleHeight: 18, + avatar: false, + avatarSize: 32, + avatarShape: 'circle' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/slider.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/slider.js new file mode 100644 index 0000000..50cc37f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/slider.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:08:25 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js + */ +export default { + // slider缁勪欢 + slider: { + value: 0, + blockSize: 18, + min: 0, + max: 100, + step: 1, + activeColor: '#2979ff', + inactiveColor: '#c0c4cc', + blockColor: '#ffffff', + showValue: false, + disabled:false, + blockStyle: () => {} + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/statusBar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/statusBar.js new file mode 100644 index 0000000..d237a83 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/statusBar.js @@ -0,0 +1,15 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:20:39 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js + */ +export default { + // statusBar + statusBar: { + bgColor: 'transparent' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/steps.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/steps.js new file mode 100644 index 0000000..881c39e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/steps.js @@ -0,0 +1,21 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:12:37 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js + */ +export default { + // steps缁勪欢 + steps: { + direction: 'row', + current: 0, + activeColor: '#3c9cff', + inactiveColor: '#969799', + activeIcon: '', + inactiveIcon: '', + dot: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/stepsItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/stepsItem.js new file mode 100644 index 0000000..5dba8f4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/stepsItem.js @@ -0,0 +1,18 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:12:55 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js + */ +export default { + // steps-item缁勪欢 + stepsItem: { + title: '', + desc: '', + iconSize: 17, + error: false + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/sticky.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/sticky.js new file mode 100644 index 0000000..b034604 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/sticky.js @@ -0,0 +1,20 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:01:30 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js + */ +export default { + // sticky缁勪欢 + sticky: { + offsetTop: 0, + customNavHeight: 0, + disabled: false, + bgColor: 'transparent', + zIndex: '', + index: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/subsection.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/subsection.js new file mode 100644 index 0000000..9a165ff --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/subsection.js @@ -0,0 +1,23 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:12:20 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js + */ +export default { + // subsection缁勪欢 + subsection: { + list: [], + current: 0, + activeColor: '#3c9cff', + inactiveColor: '#303133', + mode: 'button', + fontSize: 12, + bold: true, + bgColor: '#eeeeef', + keyName: 'name' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeAction.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeAction.js new file mode 100644 index 0000000..25051b8 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeAction.js @@ -0,0 +1,15 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:00:42 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js + */ +export default { + // swipe-action缁勪欢 + swipeAction: { + autoClose: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeActionItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeActionItem.js new file mode 100644 index 0000000..40ef27c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipeActionItem.js @@ -0,0 +1,21 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:01:13 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js + */ +export default { + // swipeActionItem 缁勪欢 + swipeActionItem: { + show: false, + name: '', + disabled: false, + threshold: 20, + autoClose: true, + options: [], + duration: 300 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swiper.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swiper.js new file mode 100644 index 0000000..0e6a3b7 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swiper.js @@ -0,0 +1,39 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:21:38 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js + */ +export default { + // swiper 缁勪欢 + swiper: { + list: () => [], + indicator: false, + indicatorActiveColor: '#FFFFFF', + indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)', + indicatorStyle: '', + indicatorMode: 'line', + autoplay: true, + current: 0, + currentItemId: '', + interval: 3000, + duration: 300, + circular: false, + previousMargin: 0, + nextMargin: 0, + acceleration: false, + displayMultipleItems: 1, + easingFunction: 'default', + keyName: 'url', + imgMode: 'aspectFill', + height: 130, + bgColor: '#f3f4f6', + radius: 4, + loading: false, + showTitle: false + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipterIndicator.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipterIndicator.js new file mode 100644 index 0000000..4b59e6e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/swipterIndicator.js @@ -0,0 +1,19 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:22:07 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js + */ +export default { + // swiperIndicator 缁勪欢 + swiperIndicator: { + length: 0, + current: 0, + indicatorActiveColor: '', + indicatorInactiveColor: '', + indicatorMode: 'line' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/switch.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/switch.js new file mode 100644 index 0000000..e6400b4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/switch.js @@ -0,0 +1,24 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:22:24 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js + */ +export default { + // switch + switch: { + loading: false, + disabled: false, + size: 25, + activeColor: '#2979ff', + inactiveColor: '#ffffff', + value: false, + activeValue: true, + inactiveValue: false, + asyncChange: false, + space: 0 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbar.js new file mode 100644 index 0000000..187112d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbar.js @@ -0,0 +1,22 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:22:40 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js + */ +export default { + // tabbar + tabbar: { + value: null, + safeAreaInsetBottom: true, + border: true, + zIndex: 1, + activeColor: '#1989fa', + inactiveColor: '#7d7e80', + fixed: true, + placeholder: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbarItem.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbarItem.js new file mode 100644 index 0000000..d036ce5 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabbarItem.js @@ -0,0 +1,20 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:22:55 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js + */ +export default { + // + tabbarItem: { + name: null, + icon: '', + badge: null, + dot: false, + text: '', + badgeStyle: 'top: 6px;right:2px;' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabs.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabs.js new file mode 100644 index 0000000..81c794a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tabs.js @@ -0,0 +1,32 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:23:14 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js + */ +export default { + // + tabs: { + duration: 300, + list: () => [], + lineColor: '#3c9cff', + activeStyle: () => ({ + color: '#303133' + }), + inactiveStyle: () => ({ + color: '#606266' + }), + lineWidth: 20, + lineHeight: 3, + lineBgSize: 'cover', + itemStyle: () => ({ + height: '44px' + }), + scrollable: true, + current: 0, + keyName: 'name' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tag.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tag.js new file mode 100644 index 0000000..125ce94 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tag.js @@ -0,0 +1,29 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:23:37 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js + */ +export default { + // tag 缁勪欢 + tag: { + type: 'primary', + disabled: false, + size: 'medium', + shape: 'square', + text: '', + bgColor: '', + color: '', + borderColor: '', + closeColor: '#C6C7CB', + name: '', + plainFill: false, + plain: false, + closable: false, + show: true, + icon: '' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/text.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/text.js new file mode 100644 index 0000000..7e73606 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/text.js @@ -0,0 +1,38 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:23:58 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js + */ +export default { + // text 缁勪欢 + text: { + type: '', + show: true, + text: '', + prefixIcon: '', + suffixIcon: '', + mode: '', + href: '', + format: '', + call: false, + openType: '', + bold: false, + block: false, + lines: '', + color: '#303133', + size: 15, + iconStyle: () => ({ + fontSize: '15px' + }), + decoration: 'none', + margin: 0, + lineHeight: '', + align: 'left', + wordWrap: 'normal' + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/textarea.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/textarea.js new file mode 100644 index 0000000..44519f9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/textarea.js @@ -0,0 +1,36 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:24:32 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js + */ +export default { + // textarea 缁勪欢 + textarea: { + value: '', + placeholder: '', + placeholderClass: 'textarea-placeholder', + placeholderStyle: 'color: #c0c4cc', + height: 70, + confirmType: 'done', + disabled: false, + count: false, + focus: false, + autoHeight: false, + fixed: false, + cursorSpacing: 0, + cursor: '', + showConfirmBar: true, + selectionStart: -1, + selectionEnd: -1, + adjustPosition: true, + disableDefaultPadding: false, + holdKeyboard: false, + maxlength: 140, + border: 'surround', + formatter: null + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toast.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toast.js new file mode 100644 index 0000000..a50134b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toast.js @@ -0,0 +1,30 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:07:07 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js + */ +export default { + // toast缁勪欢 + toast: { + zIndex: 10090, + loading: false, + text: '', + icon: '', + type: '', + loadingMode: '', + show: '', + overlay: false, + position: 'center', + params: () => {}, + duration: 2000, + isTab: false, + url: '', + callback: null, + back: false + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toolbar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toolbar.js new file mode 100644 index 0000000..3289967 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/toolbar.js @@ -0,0 +1,21 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:24:55 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js + */ +export default { + // toolbar 缁勪欢 + toolbar: { + show: true, + cancelText: '鍙栨秷', + confirmText: '纭', + cancelColor: '#909193', + confirmColor: '#3c9cff', + title: '' + } + +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tooltip.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tooltip.js new file mode 100644 index 0000000..115e030 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/tooltip.js @@ -0,0 +1,25 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:25:14 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js + */ +export default { + // tooltip 缁勪欢 + tooltip: { + text: '', + copyText: '', + size: 14, + color: '#606266', + bgColor: 'transparent', + direction: 'top', + zIndex: 10071, + showCopy: true, + buttons: () => [], + overlay: true, + showToast: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/transition.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/transition.js new file mode 100644 index 0000000..0fad118 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/transition.js @@ -0,0 +1,18 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 16:59:00 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js + */ +export default { + // transition鍔ㄧ敾缁勪欢鐨刾rops + transition: { + show: false, + mode: 'fade', + duration: '300', + timingFunction: 'ease-out' + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/upload.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/upload.js new file mode 100644 index 0000000..fc7ca92 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/props/upload.js @@ -0,0 +1,36 @@ +/* + * @Author : LQ + * @Description : + * @version : 1.0 + * @Date : 2021-08-20 16:44:21 + * @LastAuthor : LQ + * @lastTime : 2021-08-20 17:09:50 + * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js + */ +export default { + // upload缁勪欢 + upload: { + accept: 'image', + capture: () => ['album', 'camera'], + compressed: true, + camera: 'back', + maxDuration: 60, + uploadIcon: 'camera-fill', + uploadIconColor: '#D3D4D6', + useBeforeRead: false, + previewFullImage: true, + maxCount: 52, + disabled: false, + imageMode: 'aspectFill', + name: '', + sizeType: () => ['original', 'compressed'], + multiple: false, + deletable: true, + maxSize: Number.MAX_VALUE, + fileList: () => [], + uploadText: '', + width: 80, + height: 80, + previewImage: true + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/zIndex.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/zIndex.js new file mode 100644 index 0000000..5fc3682 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/config/zIndex.js @@ -0,0 +1,20 @@ +// uniapp鍦℉5涓悇API鐨剒-index鍊煎涓嬶細 +/** + * actionsheet: 999 + * modal: 999 + * navigate: 998 + * tabbar: 998 + * toast: 999 + */ + +export default { + toast: 10090, + noNetwork: 10080, + // popup鍖呭惈popup锛宎ctionsheet锛宬eyboard锛宲icker鐨勫�� + popup: 10075, + mask: 10070, + navbar: 980, + topTips: 975, + sticky: 970, + indexListSticky: 965 +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/color.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/color.scss new file mode 100644 index 0000000..3237ba4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/color.scss @@ -0,0 +1,155 @@ +.u-primary-light { + color: $u-primary-light; +} + +.u-warning-light { + color: $u-warning-light; +} + +.u-success-light { + color: $u-success-light; +} + +.u-error-light { + color: $u-error-light; +} + +.u-info-light { + color: $u-info-light; +} + +.u-primary-light-bg { + background-color: $u-primary-light; +} + +.u-warning-light-bg { + background-color: $u-warning-light; +} + +.u-success-light-bg { + background-color: $u-success-light; +} + +.u-error-light-bg { + background-color: $u-error-light; +} + +.u-info-light-bg { + background-color: $u-info-light; +} + +.u-primary-dark { + color: $u-primary-dark; +} + +.u-warning-dark { + color: $u-warning-dark; +} + +.u-success-dark { + color: $u-success-dark; +} + +.u-error-dark { + color: $u-error-dark; +} + +.u-info-dark { + color: $u-info-dark; +} + +.u-primary-dark-bg { + background-color: $u-primary-dark; +} + +.u-warning-dark-bg { + background-color: $u-warning-dark; +} + +.u-success-dark-bg { + background-color: $u-success-dark; +} + +.u-error-dark-bg { + background-color: $u-error-dark; +} + +.u-info-dark-bg { + background-color: $u-info-dark; +} + +.u-primary-disabled { + color: $u-primary-disabled; +} + +.u-warning-disabled { + color: $u-warning-disabled; +} + +.u-success-disabled { + color: $u-success-disabled; +} + +.u-error-disabled { + color: $u-error-disabled; +} + +.u-info-disabled { + color: $u-info-disabled; +} + +.u-primary { + color: $u-primary; +} + +.u-warning { + color: $u-warning; +} + +.u-success { + color: $u-success; +} + +.u-error { + color: $u-error; +} + +.u-info { + color: $u-info; +} + +.u-primary-bg { + background-color: $u-primary; +} + +.u-warning-bg { + background-color: $u-warning; +} + +.u-success-bg { + background-color: $u-success; +} + +.u-error-bg { + background-color: $u-error; +} + +.u-info-bg { + background-color: $u-info; +} + +.u-main-color { + color: $u-main-color; +} + +.u-content-color { + color: $u-content-color; +} + +.u-tips-color { + color: $u-tips-color; +} + +.u-light-color { + color: $u-light-color; +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/common.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/common.scss new file mode 100644 index 0000000..11f1e53 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/common.scss @@ -0,0 +1,97 @@ +// 瓒呭嚭琛屾暟锛岃嚜鍔ㄦ樉绀鸿灏剧渷鐣ュ彿锛屾渶澶�5琛� +// 鏉ヨ嚜uView鐨勬俯棣ㄦ彁绀猴細褰撴偍鍦ㄦ帶鍒跺彴鐪嬪埌姝ゆ姤閿欙紝璇存槑闇�瑕佸湪App.vue鐨剆tyle鏍囩鍔犱笂銆恖ang="scss"銆� +@for $i from 1 through 5 { + .u-line-#{$i} { + /* #ifdef APP-NVUE */ + // nvue涓嬶紝鍙互鐩存帴浣跨敤lines灞炴�э紝杩欐槸weex鐗规湁鏍峰紡 + lines: $i; + text-overflow: ellipsis; + overflow: hidden; + flex: 1; + /* #endif */ + + /* #ifndef APP-NVUE */ + // vue涓嬶紝鍗曡鍜屽琛屾樉绀虹渷鐣ュ彿闇�瑕佸崟鐙鐞� + @if $i == '1' { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } @else { + display: -webkit-box!important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: $i; + -webkit-box-orient: vertical!important; + } + /* #endif */ + } +} + + +// 姝ゅ鍔犱笂!important骞堕潪闅忔剰涔辩敤锛岃�屾槸鍥犱负鐩墠*.nvue椤甸潰缂栬瘧鍒癏5鏃讹紝 +// App.vue鐨勬牱寮忎細琚玼ni-app鐨剉iew鍏冪礌鐨勮嚜甯order灞炴�ц鐩栵紝瀵艰嚧鏃犳晥 +// 缁间笂锛岃繖鏄痷ni-app鐨勭己闄峰鑷存垜浠负浜嗗绔吋瀹癸紝鑰屽繀椤昏鍔犱笂!important +// 绉诲姩绔吋瀹规�ц緝濂斤紝鐩存帴浣跨敤0.5px鍘诲疄鐜扮粏杈规锛屼笉浣跨敤浼厓绱犲舰寮忓疄鐜� +.u-border { + border-width: 0.5px!important; + border-color: $u-border-color!important; + border-style: solid; +} + +.u-border-top { + border-top-width: 0.5px!important; + border-color: $u-border-color!important; + border-top-style: solid; +} + +.u-border-left { + border-left-width: 0.5px!important; + border-color: $u-border-color!important; + border-left-style: solid; +} + +.u-border-right { + border-right-width: 0.5px!important; + border-color: $u-border-color!important; + border-right-style: solid; +} + +.u-border-bottom { + border-bottom-width: 0.5px!important; + border-color: $u-border-color!important; + border-bottom-style: solid; +} + +.u-border-top-bottom { + border-top-width: 0.5px!important; + border-bottom-width: 0.5px!important; + border-color: $u-border-color!important; + border-top-style: solid; + border-bottom-style: solid; +} + +// 鍘婚櫎button鐨勬墍鏈夐粯璁ゆ牱寮忥紝璁╁叾琛ㄧ幇璺熸櫘閫氱殑view銆乼ext鍏冪礌涓�鏍� +.u-reset-button { + padding: 0; + background-color: transparent; + /* #ifndef APP-PLUS */ + font-size: inherit; + line-height: inherit; + color: inherit; + /* #endif */ + /* #ifdef APP-NVUE */ + border-width: 0; + /* #endif */ +} + +/* #ifndef APP-NVUE */ +.u-reset-button::after { + border: none; +} +/* #endif */ + +.u-hover-class { + opacity: 0.7; +} + diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/components.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/components.scss new file mode 100644 index 0000000..766679e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/components.scss @@ -0,0 +1,15 @@ +@import "./mixin.scss"; + +/* #ifndef APP-NVUE */ +// 鐢变簬uView鏄熀浜巒vue鐜杩涜寮�鍙戠殑锛屾鐜涓櫘閫氬厓绱犻粯璁や负flex-direction: column; +// 鎵�浠ュ湪闈瀗vue涓紝闇�瑕佸鍏冪礌杩涜閲嶇疆涓篺lex-direction: column; 鍚﹀垯鍙兘浼氳〃鐜板紓甯� +view, scroll-view, swiper-item { + display: flex; + flex-direction: column; + flex-shrink: 0; + flex-grow: 0; + flex-basis: auto; + align-items: stretch; + align-content: flex-start; +} +/* #endif */ diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/flex.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/flex.scss new file mode 100644 index 0000000..6d61be9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/flex.scss @@ -0,0 +1,257 @@ +// .u-flex { +// @include vue-flex(row); +// } + +// .u-flex-x { +// @include vue-flex(row); +// } + +// .u-flex-y { +// @include vue-flex(column); +// } + +// .u-flex-xy-center { +// @include vue-flex(row); +// justify-content: center; +// align-items: center; +// } + +// .u-flex-x-center { +// @include vue-flex(row); +// justify-content: center; +// } + +// .u-flex-y-center { +// @include vue-flex(column); +// justify-content: center; +// } + + +// flex甯冨眬 +.u-flex, +.u-flex-row, +.u-flex-x { + @include flex; +} + +.u-flex-y, +.u-flex-column { + @include flex(column); +} + +.u-flex-x-center { + @include flex; + justify-content: center; +} + +.u-flex-xy-center { + @include flex; + justify-content: center; + align-items: center; +} + +.u-flex-y-center { + @include flex; + align-items: center; +} + +.u-flex-x-left { + @include flex; +} + +.u-flex-x-reverse, +.u-flex-row-reverse { + flex-direction: row-reverse; +} + +.u-flex-y-reverse, +.u-flex-column-reverse { + flex-direction: column-reverse; +} + +/* #ifndef APP-NVUE */ +// 姝ゅ涓簐ue鐗堟湰鐨勭畝鍐欙紝鍥犱负nvue涓嶆敮鎸佸悓鏃朵綔鐢ㄤ簬涓や釜绫诲悕鐨勬牱寮忓啓娉� +// nvue涓嬪彧鑳藉啓鎴恈lass="u-flex-x u-flex-x-reverse鐨勫舰寮�" +.u-flex.u-flex-reverse, +.u-flex-row.u-flex-reverse, +.u-flex-x.u-flex-reverse { + flex-direction: row-reverse; +} + +.u-flex-column.u-flex-reverse, +.u-flex-y.u-flex-reverse { + flex-direction: column-reverse; +} + +// 鑷姩浼哥缉 +.u-flex-fill { + flex: 1 1 auto +} + +// 杈圭晫鑷姩浼哥缉 +.u-margin-top-auto, +.u-m-t-auto { + margin-top: auto !important +} + +.u-margin-right-auto, +.u-m-r-auto { + margin-right: auto !important +} + +.u-margin-bottom-auto, +.u-m-b-auto { + margin-bottom: auto !important +} + +.u-margin-left-auto, +.u-m-l-auto { + margin-left: auto !important +} + +.u-margin-center-auto, +.u-m-c-auto { + margin-left: auto !important; + margin-right: auto !important +} + +.u-margin-middle-auto, +.u-m-m-auto { + margin-top: auto !important; + margin-bottom: auto !important +} +/* #endif */ + +// 鎹㈣ +.u-flex-wrap { + flex-wrap: wrap; +} + +// 鍙嶅悜鎹㈣ +.u-flex-wrap-reverse { + flex-wrap: wrap-reverse; +} + +// 涓昏酱璧风偣瀵归綈 +.u-flex-start { + justify-content: flex-start +} + +// 涓昏酱涓棿瀵归綈 +.u-flex-center { + justify-content: center +} + +// 涓昏酱缁堢偣瀵归綈 +.u-flex-end { + justify-content: flex-end +} + +// 涓昏酱绛夋瘮闂磋窛 +.u-flex-between { + justify-content: space-between +} + +// 涓昏酱鍧囧垎闂磋窛 +.u-flex-around { + justify-content: space-around +} + +// 浜ゅ弶杞磋捣鐐瑰榻� +.u-flex-items-start { + align-items: flex-start +} + +// 浜ゅ弶杞翠腑闂村榻� +.u-flex-items-center { + align-items: center +} + +// 浜ゅ弶杞寸粓鐐瑰榻� +.u-flex-items-end { + align-items: flex-end +} + +// 浜ゅ弶杞寸涓�琛屾枃瀛楀熀绾垮榻� +.u-flex-items-baseline { + align-items: baseline +} + +// 浜ゅ弶杞存柟鍚戞媺浼稿榻� +.u-flex-items-stretch { + align-items: stretch +} + + +// 浠ヤ笅灞炰簬椤圭洰(瀛愬厓绱�)鐨勭被 + +// 瀛愬厓绱犱氦鍙夎酱璧风偣瀵归綈 +.u-flex-self-start { + align-self: flex-start +} + +// 瀛愬厓绱犱氦鍙夎酱灞呬腑瀵归綈 +.u-flex-self-center { + align-self: center +} + +// 瀛愬厓绱犱氦鍙夎酱缁堢偣瀵归綈 +.u-flex-self-end { + align-self: flex-end +} + +// 瀛愬厓绱犱氦鍙夎酱绗竴琛屾枃瀛楀熀绾垮榻� +.u-flex-self-baseline { + align-self: baseline +} + +// 瀛愬厓绱犱氦鍙夎酱鏂瑰悜鎷変几瀵归綈 +.u-flex-self-stretch { + align-self: stretch +} + +// 澶氳酱浜ゅ弶鏃剁殑瀵归綈鏂瑰紡 + +// 璧风偣瀵归綈 +.u-flex-content-start { + align-content: flex-start +} + +// 灞呬腑瀵归綈 +.u-flex-content-center { + align-content: center +} + +// 缁堢偣瀵归綈 +.u-flex-content-end { + align-content: flex-end +} + +// 涓ょ瀵归綈 +.u-flex-content-between { + align-content: space-between +} + +// 鍧囧垎闂磋窛 +.u-flex-content-around { + align-content: space-around +} + +// 鍏ㄩ儴灞呬腑瀵归綈 +.u-flex-middle { + justify-content: center; + align-items: center; + align-self: center; + align-content: center +} + +// 鏄惁鍙互鏀惧ぇ +.u-flex-grow { + flex-grow: 1 +} + +// 鏄惁鍙互缂╁皬 +.u-flex-shrink { + flex-shrink: 1 +} + diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/h5.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/h5.scss new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/h5.scss diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mixin.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mixin.scss new file mode 100644 index 0000000..7e35b3b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mixin.scss @@ -0,0 +1,8 @@ +// 閫氳繃scss鐨刴ixin鍔熻兘锛屾妸鍘熸潵闇�瑕佸啓4琛岀殑css锛屽彉鎴愪竴琛� +// 鐩殑鏄繚鎸佷唬鐮佸共鍑�鏁存磥锛屼笉鑷充簬鍦╪vue涓嬶紝鍒板閮借鍐檇isplay:flex鐨勬潯浠剁紪璇� +@mixin flex($direction: row) { + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + flex-direction: $direction; +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mp.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mp.scss new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/mp.scss diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/nvue.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/nvue.scss new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/nvue.scss diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/vue.scss b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/vue.scss new file mode 100644 index 0000000..3ae4d29 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/css/vue.scss @@ -0,0 +1,27 @@ +// 鍘嗛亶鐢熸垚4涓柟鍚戠殑搴曢儴瀹夊叏鍖� +@each $d in top, right, bottom, left { + .u-safe-area-inset-#{$d} { + padding-#{$d}: 0; + padding-#{$d}: constant(safe-area-inset-#{$d}); + padding-#{$d}: env(safe-area-inset-#{$d}); + } +} + +//鎻愬崌H5绔痷ni.toast()鐨勫眰绾э紝閬垮厤琚玼View鐨刴odal绛夐伄鐩� +/* #ifdef H5 */ +uni-toast { + z-index: 10090; +} +uni-toast .uni-toast { + z-index: 10090; +} +/* #endif */ + +// 闅愯棌scroll-view鐨勬粴鍔ㄦ潯 +::-webkit-scrollbar { + display: none; + width: 0 !important; + height: 0 !important; + -webkit-appearance: none; + background: transparent; +} \ No newline at end of file diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/colorGradient.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/colorGradient.js new file mode 100644 index 0000000..9727732 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/colorGradient.js @@ -0,0 +1,134 @@ +/** + * 姹備袱涓鑹蹭箣闂寸殑娓愬彉鍊� + * @param {string} startColor 寮�濮嬬殑棰滆壊 + * @param {string} endColor 缁撴潫鐨勯鑹� + * @param {number} step 棰滆壊绛夊垎鐨勪唤棰� + * */ +function colorGradient(startColor = 'rgb(0, 0, 0)', endColor = 'rgb(255, 255, 255)', step = 10) { + const startRGB = hexToRgb(startColor, false) // 杞崲涓簉gb鏁扮粍妯″紡 + const startR = startRGB[0] + const startG = startRGB[1] + const startB = startRGB[2] + + const endRGB = hexToRgb(endColor, false) + const endR = endRGB[0] + const endG = endRGB[1] + const endB = endRGB[2] + + const sR = (endR - startR) / step // 鎬诲樊鍊� + const sG = (endG - startG) / step + const sB = (endB - startB) / step + const colorArr = [] + for (let i = 0; i < step; i++) { + // 璁$畻姣忎竴姝ョ殑hex鍊� + let hex = rgbToHex(`rgb(${Math.round((sR * i + startR))},${Math.round((sG * i + startG))},${Math.round((sB + * i + startB))})`) + // 纭繚绗竴涓鑹插�间负startColor鐨勫�� + if (i === 0) hex = rgbToHex(startColor) + // 纭繚鏈�鍚庝竴涓鑹插�间负endColor鐨勫�� + if (i === step - 1) hex = rgbToHex(endColor) + colorArr.push(hex) + } + return colorArr +} + +// 灏唄ex琛ㄧず鏂瑰紡杞崲涓簉gb琛ㄧず鏂瑰紡(杩欓噷杩斿洖rgb鏁扮粍妯″紡) +function hexToRgb(sColor, str = true) { + const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/ + sColor = String(sColor).toLowerCase() + if (sColor && reg.test(sColor)) { + if (sColor.length === 4) { + let sColorNew = '#' + for (let i = 1; i < 4; i += 1) { + sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1)) + } + sColor = sColorNew + } + // 澶勭悊鍏綅鐨勯鑹插�� + const sColorChange = [] + for (let i = 1; i < 7; i += 2) { + sColorChange.push(parseInt(`0x${sColor.slice(i, i + 2)}`)) + } + if (!str) { + return sColorChange + } + return `rgb(${sColorChange[0]},${sColorChange[1]},${sColorChange[2]})` + } if (/^(rgb|RGB)/.test(sColor)) { + const arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',') + return arr.map((val) => Number(val)) + } + return sColor +} + +// 灏唕gb琛ㄧず鏂瑰紡杞崲涓篽ex琛ㄧず鏂瑰紡 +function rgbToHex(rgb) { + const _this = rgb + const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/ + if (/^(rgb|RGB)/.test(_this)) { + const aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',') + let strHex = '#' + for (let i = 0; i < aColor.length; i++) { + let hex = Number(aColor[i]).toString(16) + hex = String(hex).length == 1 ? `${0}${hex}` : hex // 淇濊瘉姣忎釜rgb鐨勫�间负2浣� + if (hex === '0') { + hex += hex + } + strHex += hex + } + if (strHex.length !== 7) { + strHex = _this + } + return strHex + } if (reg.test(_this)) { + const aNum = _this.replace(/#/, '').split('') + if (aNum.length === 6) { + return _this + } if (aNum.length === 3) { + let numHex = '#' + for (let i = 0; i < aNum.length; i += 1) { + numHex += (aNum[i] + aNum[i]) + } + return numHex + } + } else { + return _this + } +} + +/** +* JS棰滆壊鍗佸叚杩涘埗杞崲涓簉gb鎴杛gba,杩斿洖鐨勬牸寮忎负 rgba锛�255锛�255锛�255锛�0.5锛夊瓧绗︿覆 +* sHex涓轰紶鍏ョ殑鍗佸叚杩涘埗鐨勮壊鍊� +* alpha涓簉gba鐨勯�忔槑搴� +*/ +function colorToRgba(color, alpha) { + color = rgbToHex(color) + // 鍗佸叚杩涘埗棰滆壊鍊肩殑姝e垯琛ㄨ揪寮� + const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/ + /* 16杩涘埗棰滆壊杞负RGB鏍煎紡 */ + let sColor = String(color).toLowerCase() + if (sColor && reg.test(sColor)) { + if (sColor.length === 4) { + let sColorNew = '#' + for (let i = 1; i < 4; i += 1) { + sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1)) + } + sColor = sColorNew + } + // 澶勭悊鍏綅鐨勯鑹插�� + const sColorChange = [] + for (let i = 1; i < 7; i += 2) { + sColorChange.push(parseInt(`0x${sColor.slice(i, i + 2)}`)) + } + // return sColorChange.join(',') + return `rgba(${sColorChange.join(',')},${alpha})` + } + + return sColor +} + +export default { + colorGradient, + hexToRgb, + rgbToHex, + colorToRgba +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/debounce.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/debounce.js new file mode 100644 index 0000000..ad3996b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/debounce.js @@ -0,0 +1,29 @@ +let timeout = null + +/** + * 闃叉姈鍘熺悊锛氫竴瀹氭椂闂村唴锛屽彧鏈夋渶鍚庝竴娆℃搷浣滐紝鍐嶈繃wait姣鍚庢墠鎵ц鍑芥暟 + * + * @param {Function} func 瑕佹墽琛岀殑鍥炶皟鍑芥暟 + * @param {Number} wait 寤舵椂鐨勬椂闂� + * @param {Boolean} immediate 鏄惁绔嬪嵆鎵ц + * @return null + */ +function debounce(func, wait = 500, immediate = false) { + // 娓呴櫎瀹氭椂鍣� + if (timeout !== null) clearTimeout(timeout) + // 绔嬪嵆鎵ц锛屾绫绘儏鍐典竴鑸敤涓嶅埌 + if (immediate) { + const callNow = !timeout + timeout = setTimeout(() => { + timeout = null + }, wait) + if (callNow) typeof func === 'function' && func() + } else { + // 璁剧疆瀹氭椂鍣紝褰撴渶鍚庝竴娆℃搷浣滃悗锛宼imeout涓嶄細鍐嶈娓呴櫎锛屾墍浠ュ湪寤舵椂wait姣鍚庢墽琛宖unc鍥炶皟鏂规硶 + timeout = setTimeout(() => { + typeof func === 'function' && func() + }, wait) + } +} + +export default debounce diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/digit.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/digit.js new file mode 100644 index 0000000..c8260a0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/digit.js @@ -0,0 +1,167 @@ +let _boundaryCheckingState = true; // 鏄惁杩涜瓒婄晫妫�鏌ョ殑鍏ㄥ眬寮�鍏� + +/** + * 鎶婇敊璇殑鏁版嵁杞 + * @private + * @example strip(0.09999999999999998)=0.1 + */ +function strip(num, precision = 15) { + return +parseFloat(Number(num).toPrecision(precision)); +} + +/** + * Return digits length of a number + * @private + * @param {*number} num Input number + */ +function digitLength(num) { + // Get digit length of e + const eSplit = num.toString().split(/[eE]/); + const len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0); + return len > 0 ? len : 0; +} + +/** + * 鎶婂皬鏁拌浆鎴愭暣鏁�,濡傛灉鏄皬鏁板垯鏀惧ぇ鎴愭暣鏁� + * @private + * @param {*number} num 杈撳叆鏁� + */ +function float2Fixed(num) { + if (num.toString().indexOf('e') === -1) { + return Number(num.toString().replace('.', '')); + } + const dLen = digitLength(num); + return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num); +} + +/** + * 妫�娴嬫暟瀛楁槸鍚﹁秺鐣岋紝濡傛灉瓒婄晫缁欏嚭鎻愮ず + * @private + * @param {*number} num 杈撳叆鏁� + */ +function checkBoundary(num) { + if (_boundaryCheckingState) { + if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) { + console.warn(`${num} 瓒呭嚭浜嗙簿搴﹂檺鍒讹紝缁撴灉鍙兘涓嶆纭甡); + } + } +} + +/** + * 鎶婇�掑綊鎿嶄綔鎵佸钩杩唬鍖� + * @param {number[]} arr 瑕佹搷浣滅殑鏁板瓧鏁扮粍 + * @param {function} operation 杩唬鎿嶄綔 + * @private + */ +function iteratorOperation(arr, operation) { + const [num1, num2, ...others] = arr; + let res = operation(num1, num2); + + others.forEach((num) => { + res = operation(res, num); + }); + + return res; +} + +/** + * 楂樼簿搴︿箻娉� + * @export + */ +export function times(...nums) { + if (nums.length > 2) { + return iteratorOperation(nums, times); + } + + const [num1, num2] = nums; + const num1Changed = float2Fixed(num1); + const num2Changed = float2Fixed(num2); + const baseNum = digitLength(num1) + digitLength(num2); + const leftValue = num1Changed * num2Changed; + + checkBoundary(leftValue); + + return leftValue / Math.pow(10, baseNum); +} + +/** + * 楂樼簿搴﹀姞娉� + * @export + */ +export function plus(...nums) { + if (nums.length > 2) { + return iteratorOperation(nums, plus); + } + + const [num1, num2] = nums; + // 鍙栨渶澶х殑灏忔暟浣� + const baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2))); + // 鎶婂皬鏁伴兘杞负鏁存暟鐒跺悗鍐嶈绠� + return (times(num1, baseNum) + times(num2, baseNum)) / baseNum; +} + +/** + * 楂樼簿搴﹀噺娉� + * @export + */ +export function minus(...nums) { + if (nums.length > 2) { + return iteratorOperation(nums, minus); + } + + const [num1, num2] = nums; + const baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2))); + return (times(num1, baseNum) - times(num2, baseNum)) / baseNum; +} + +/** + * 楂樼簿搴﹂櫎娉� + * @export + */ +export function divide(...nums) { + if (nums.length > 2) { + return iteratorOperation(nums, divide); + } + + const [num1, num2] = nums; + const num1Changed = float2Fixed(num1); + const num2Changed = float2Fixed(num2); + checkBoundary(num1Changed); + checkBoundary(num2Changed); + // 閲嶈锛岃繖閲屽繀椤荤敤strip杩涜淇 + return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1)))); +} + +/** + * 鍥涜垗浜斿叆 + * @export + */ +export function round(num, ratio) { + const base = Math.pow(10, ratio); + let result = divide(Math.round(Math.abs(times(num, base))), base); + if (num < 0 && result !== 0) { + result = times(result, -1); + } + // 浣嶆暟涓嶈冻鍒欒ˉ0 + return result; +} + +/** + * 鏄惁杩涜杈圭晫妫�鏌ワ紝榛樿寮�鍚� + * @param flag 鏍囪寮�鍏筹紝true 涓哄紑鍚紝false 涓哄叧闂紝榛樿涓� true + * @export + */ +export function enableBoundaryChecking(flag = true) { + _boundaryCheckingState = flag; +} + + +export default { + times, + plus, + minus, + divide, + round, + enableBoundaryChecking, +}; + diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/index.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/index.js new file mode 100644 index 0000000..7235129 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/index.js @@ -0,0 +1,705 @@ +import test from './test.js' +import { round } from './digit.js' +/** + * @description 濡傛灉value灏忎簬min锛屽彇min锛涘鏋渧alue澶т簬max锛屽彇max + * @param {number} min + * @param {number} max + * @param {number} value + */ +function range(min = 0, max = 0, value = 0) { + return Math.max(min, Math.min(max, Number(value))) +} + +/** + * @description 鐢ㄤ簬鑾峰彇鐢ㄦ埛浼犻�掑�肩殑px鍊� 濡傛灉鐢ㄦ埛浼犻�掍簡"xxpx"鎴栬��"xxrpx"锛屽彇鍑哄叾鏁板�奸儴鍒嗭紝濡傛灉鏄�"xxxrpx"杩橀渶瑕佺敤杩噓ni.upx2px杩涜杞崲 + * @param {number|string} value 鐢ㄦ埛浼犻�掑�肩殑px鍊� + * @param {boolean} unit + * @returns {number|string} + */ +function getPx(value, unit = false) { + if (test.number(value)) { + return unit ? `${value}px` : Number(value) + } + // 濡傛灉甯︽湁rpx锛屽厛鍙栧嚭鍏舵暟鍊奸儴鍒嗭紝鍐嶈浆涓簆x鍊� + if (/(rpx|upx)$/.test(value)) { + return unit ? `${uni.upx2px(parseInt(value))}px` : Number(uni.upx2px(parseInt(value))) + } + return unit ? `${parseInt(value)}px` : parseInt(value) +} + +/** + * @description 杩涜寤舵椂锛屼互杈惧埌鍙互绠�鍐欎唬鐮佺殑鐩殑 姣斿: await uni.$u.sleep(20)灏嗕細闃诲20ms + * @param {number} value 鍫靛鏃堕棿 鍗曚綅ms 姣 + * @returns {Promise} 杩斿洖promise + */ +function sleep(value = 30) { + return new Promise((resolve) => { + setTimeout(() => { + resolve() + }, value) + }) +} +/** + * @description 杩愯鏈熷垽鏂钩鍙� + * @returns {string} 杩斿洖鎵�鍦ㄥ钩鍙�(灏忓啓) + * @link 杩愯鏈熷垽鏂钩鍙� https://uniapp.dcloud.io/frame?id=鍒ゆ柇骞冲彴 + */ +function os() { + return uni.getSystemInfoSync().platform.toLowerCase() +} +/** + * @description 鑾峰彇绯荤粺淇℃伅鍚屾鎺ュ彛 + * @link 鑾峰彇绯荤粺淇℃伅鍚屾鎺ュ彛 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync + */ +function sys() { + return uni.getSystemInfoSync() +} + +/** + * @description 鍙栦竴涓尯闂存暟 + * @param {Number} min 鏈�灏忓�� + * @param {Number} max 鏈�澶у�� + */ +function random(min, max) { + if (min >= 0 && max > 0 && max >= min) { + const gab = max - min + 1 + return Math.floor(Math.random() * gab + min) + } + return 0 +} + +/** + * @param {Number} len uuid鐨勯暱搴� + * @param {Boolean} firstU 灏嗚繑鍥炵殑棣栧瓧姣嶇疆涓�"u" + * @param {Nubmer} radix 鐢熸垚uuid鐨勫熀鏁�(鎰忓懗鐫�杩斿洖鐨勫瓧绗︿覆閮芥槸杩欎釜鍩烘暟),2-浜岃繘鍒�,8-鍏繘鍒�,10-鍗佽繘鍒�,16-鍗佸叚杩涘埗 + */ +function guid(len = 32, firstU = true, radix = null) { + const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('') + const uuid = [] + radix = radix || chars.length + + if (len) { + // 濡傛灉鎸囧畾uuid闀垮害,鍙槸鍙栭殢鏈虹殑瀛楃,0|x涓轰綅杩愮畻,鑳藉幓鎺墄鐨勫皬鏁颁綅,杩斿洖鏁存暟浣� + for (let i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix] + } else { + let r + // rfc4122鏍囧噯瑕佹眰杩斿洖鐨剈uid涓�,鏌愪簺浣嶄负鍥哄畾鐨勫瓧绗� + uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-' + uuid[14] = '4' + + for (let i = 0; i < 36; i++) { + if (!uuid[i]) { + r = 0 | Math.random() * 16 + uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r] + } + } + } + // 绉婚櫎绗竴涓瓧绗�,骞剁敤u鏇夸唬,鍥犱负绗竴涓瓧绗︿负鏁板�兼椂,璇uuid涓嶈兘鐢ㄤ綔id鎴栬�卌lass + if (firstU) { + uuid.shift() + return `u${uuid.join('')}` + } + return uuid.join('') +} + +/** +* @description 鑾峰彇鐖剁粍浠剁殑鍙傛暟锛屽洜涓烘敮浠樺疂灏忕▼搴忎笉鏀寔provide/inject鐨勫啓娉� + this.$parent鍦ㄩ潪H5涓紝鍙互鍑嗙‘鑾峰彇鍒扮埗缁勪欢锛屼絾鏄湪H5涓紝闇�瑕佸娆his.$parent.$parent.xxx + 杩欓噷榛樿鍊肩瓑浜巙ndefined鏈夊畠鐨勫惈涔夛紝鍥犱负鏈�椤跺眰鍏冪礌(缁勪欢)鐨�$parent灏辨槸undefined锛屾剰鍛崇潃涓嶄紶name + 鍊�(榛樿涓簎ndefined)锛屽氨鏄煡鎵炬渶椤跺眰鐨�$parent +* @param {string|undefined} name 鐖剁粍浠剁殑鍙傛暟鍚� +*/ +function $parent(name = undefined) { + let parent = this.$parent + // 閫氳繃while鍘嗛亶锛岃繖閲屼富瑕佹槸涓轰簡H5闇�瑕佸灞傝В鏋愮殑闂 + while (parent) { + // 鐖剁粍浠� + if (parent.$options && parent.$options.name !== name) { + // 濡傛灉缁勪欢鐨刵ame涓嶇浉绛夛紝缁х画涓婁竴绾у鎵� + parent = parent.$parent + } else { + return parent + } + } + return false +} + +/** + * @description 鏍峰紡杞崲 + * 瀵硅薄杞瓧绗︿覆锛屾垨鑰呭瓧绗︿覆杞璞� + * @param {object | string} customStyle 闇�瑕佽浆鎹㈢殑鐩爣 + * @param {String} target 杞崲鐨勭洰鐨勶紝object-杞负瀵硅薄锛宻tring-杞负瀛楃涓� + * @returns {object|string} + */ +function addStyle(customStyle, target = 'object') { + // 瀛楃涓茶浆瀛楃涓诧紝瀵硅薄杞璞℃儏褰紝鐩存帴杩斿洖 + if (test.empty(customStyle) || typeof(customStyle) === 'object' && target === 'object' || target === 'string' && + typeof(customStyle) === 'string') { + return customStyle + } + // 瀛楃涓茶浆瀵硅薄 + if (target === 'object') { + // 鍘婚櫎瀛楃涓叉牱寮忎腑鐨勪袱绔┖鏍�(涓棿鐨勭┖鏍间笉鑳藉幓鎺夛紝姣斿padding: 20px 0濡傛灉鍘绘帀浜嗗氨閿欎簡)锛岀┖鏍兼槸鏃犵敤鐨� + customStyle = trim(customStyle) + // 鏍规嵁";"灏嗗瓧绗︿覆杞负鏁扮粍褰㈠紡 + const styleArray = customStyle.split(';') + const style = {} + // 鍘嗛亶鏁扮粍锛屾嫾鎺ユ垚瀵硅薄 + for (let i = 0; i < styleArray.length; i++) { + // 'font-size:20px;color:red;'锛屽姝ゆ渶鍚庡瓧绗︿覆鏈�";"鐨勮瘽锛屼細瀵艰嚧styleArray鏈�鍚庝竴涓厓绱犱负绌哄瓧绗︿覆锛岃繖閲岄渶瑕佽繃婊� + if (styleArray[i]) { + const item = styleArray[i].split(':') + style[trim(item[0])] = trim(item[1]) + } + } + return style + } + // 杩欓噷涓哄璞¤浆瀛楃涓插舰寮� + let string = '' + for (const i in customStyle) { + // 椹煎嘲杞负涓垝绾跨殑褰㈠紡锛屽惁鍒檆ss鍐呰仈鏍峰紡锛屾棤娉曡瘑鍒┘宄版牱寮忓睘鎬у悕 + const key = i.replace(/([A-Z])/g, '-$1').toLowerCase() + string += `${key}:${customStyle[i]};` + } + // 鍘婚櫎涓ょ绌烘牸 + return trim(string) +} + +/** + * @description 娣诲姞鍗曚綅锛屽鏋滄湁rpx锛寀px锛�%锛宲x绛夊崟浣嶇粨灏炬垨鑰呭�间负auto锛岀洿鎺ヨ繑鍥烇紝鍚﹀垯鍔犱笂px鍗曚綅缁撳熬 + * @param {string|number} value 闇�瑕佹坊鍔犲崟浣嶇殑鍊� + * @param {string} unit 娣诲姞鐨勫崟浣嶅悕 姣斿px + */ +function addUnit(value = 'auto', unit = uni?.$u?.config?.unit ?? 'px') { + value = String(value) + // 鐢╱View鍐呯疆楠岃瘉瑙勫垯涓殑number鍒ゆ柇鏄惁涓烘暟鍊� + return test.number(value) ? `${value}${unit}` : value +} + +/** + * @description 娣卞害鍏嬮殕 + * @param {object} obj 闇�瑕佹繁搴﹀厠闅嗙殑瀵硅薄 + * @returns {*} 鍏嬮殕鍚庣殑瀵硅薄鎴栬�呭師鍊硷紙涓嶆槸瀵硅薄锛� + */ +function deepClone(obj) { + // 瀵瑰父瑙佺殑鈥滈潪鈥濆�硷紝鐩存帴杩斿洖鍘熸潵鍊� + if ([null, undefined, NaN, false].includes(obj)) return obj + if (typeof obj !== 'object' && typeof obj !== 'function') { + // 鍘熷绫诲瀷鐩存帴杩斿洖 + return obj + } + const o = test.array(obj) ? [] : {} + for (const i in obj) { + if (obj.hasOwnProperty(i)) { + o[i] = typeof obj[i] === 'object' ? deepClone(obj[i]) : obj[i] + } + } + return o +} + +/** + * @description JS瀵硅薄娣卞害鍚堝苟 + * @param {object} target 闇�瑕佹嫹璐濈殑瀵硅薄 + * @param {object} source 鎷疯礉鐨勬潵婧愬璞� + * @returns {object|boolean} 娣卞害鍚堝苟鍚庣殑瀵硅薄鎴栬�協alse锛堝叆鍙傛湁涓嶆槸瀵硅薄锛� + */ +function deepMerge(target = {}, source = {}) { + target = deepClone(target) + if (typeof target !== 'object' || typeof source !== 'object') return false + for (const prop in source) { + if (!source.hasOwnProperty(prop)) continue + if (prop in target) { + if (typeof target[prop] !== 'object') { + target[prop] = source[prop] + } else if (typeof source[prop] !== 'object') { + target[prop] = source[prop] + } else if (target[prop].concat && source[prop].concat) { + target[prop] = target[prop].concat(source[prop]) + } else { + target[prop] = deepMerge(target[prop], source[prop]) + } + } else { + target[prop] = source[prop] + } + } + return target +} + +/** + * @description error鎻愮ず + * @param {*} err 閿欒鍐呭 + */ +function error(err) { + // 寮�鍙戠幆澧冩墠鎻愮ず锛岀敓浜х幆澧冧笉浼氭彁绀� + if (process.env.NODE_ENV === 'development') { + console.error(`uView鎻愮ず锛�${err}`) + } +} + +/** + * @description 鎵撲贡鏁扮粍 + * @param {array} array 闇�瑕佹墦涔辩殑鏁扮粍 + * @returns {array} 鎵撲贡鍚庣殑鏁扮粍 + */ +function randomArray(array = []) { + // 鍘熺悊鏄痵ort鎺掑簭,Math.random()浜х敓0<= x < 1涔嬮棿鐨勬暟,浼氬鑷磝-0.05澶т簬鎴栬�呭皬浜�0 + return array.sort(() => Math.random() - 0.5) +} + +// padStart 鐨� polyfill锛屽洜涓烘煇浜涙満鍨嬫垨鎯呭喌锛岃繕鏃犳硶鏀寔es7鐨刾adStart锛屾瘮濡傜數鑴戠増鐨勫井淇″皬绋嬪簭 +// 鎵�浠ヨ繖閲屽仛涓�涓吋瀹筽olyfill鐨勫吋瀹瑰鐞� +if (!String.prototype.padStart) { + // 涓轰簡鏂逛究琛ㄧず杩欓噷 fillString 鐢ㄤ簡ES6 鐨勯粯璁ゅ弬鏁帮紝涓嶅奖鍝嶇悊瑙� + String.prototype.padStart = function(maxLength, fillString = ' ') { + if (Object.prototype.toString.call(fillString) !== '[object String]') { + throw new TypeError( + 'fillString must be String' + ) + } + const str = this + // 杩斿洖 String(str) 杩欓噷鏄负浜嗕娇杩斿洖鐨勫�兼槸瀛楃涓插瓧闈㈤噺锛屽湪鎺у埗鍙颁腑鏇寸鍚堢洿瑙� + if (str.length >= maxLength) return String(str) + + const fillLength = maxLength - str.length + let times = Math.ceil(fillLength / fillString.length) + while (times >>= 1) { + fillString += fillString + if (times === 1) { + fillString += fillString + } + } + return fillString.slice(0, fillLength) + str + } +} + +/** + * @description 鏍煎紡鍖栨椂闂� + * @param {String|Number} dateTime 闇�瑕佹牸寮忓寲鐨勬椂闂存埑 + * @param {String} fmt 鏍煎紡鍖栬鍒� yyyy:mm:dd|yyyy:mm|yyyy骞磎m鏈坉d鏃yyyy骞磎m鏈坉d鏃� hh鏃禡M鍒嗙瓑,鍙嚜瀹氫箟缁勫悎 榛樿yyyy-mm-dd + * @returns {string} 杩斿洖鏍煎紡鍖栧悗鐨勫瓧绗︿覆 + */ + function timeFormat(dateTime = null, formatStr = 'yyyy-mm-dd') { + let date + // 鑻ヤ紶鍏ユ椂闂翠负鍋囧�硷紝鍒欏彇褰撳墠鏃堕棿 + if (!dateTime) { + date = new Date() + } + // 鑻ヤ负unix绉掓椂闂存埑锛屽垯杞负姣鏃堕棿鎴筹紙閫昏緫鏈夌偣濂囨�紝浣嗕笉鏁㈡敼锛屼互淇濊瘉鍘嗗彶鍏煎锛� + else if (/^\d{10}$/.test(dateTime?.toString().trim())) { + date = new Date(dateTime * 1000) + } + // 鑻ョ敤鎴蜂紶鍏ュ瓧绗︿覆鏍煎紡鏃堕棿鎴筹紝new Date鏃犳硶瑙f瀽锛岄渶鍋氬吋瀹� + else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) { + date = new Date(Number(dateTime)) + } + // 澶勭悊骞冲彴鎬у樊寮傦紝鍦⊿afari/Webkit涓紝new Date浠呮敮鎸�/浣滀负鍒嗗壊绗︾殑瀛楃涓叉椂闂� + // 澶勭悊 '2022-07-10 01:02:03'锛岃烦杩� '2022-07-10T01:02:03' + else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) { + date = new Date(dateTime.replace(/-/g, '/')) + } + // 鍏朵粬閮借涓虹鍚� RFC 2822 瑙勮寖 + else { + date = new Date(dateTime) + } + + const timeSource = { + 'y': date.getFullYear().toString(), // 骞� + 'm': (date.getMonth() + 1).toString().padStart(2, '0'), // 鏈� + 'd': date.getDate().toString().padStart(2, '0'), // 鏃� + 'h': date.getHours().toString().padStart(2, '0'), // 鏃� + 'M': date.getMinutes().toString().padStart(2, '0'), // 鍒� + 's': date.getSeconds().toString().padStart(2, '0') // 绉� + // 鏈夊叾浠栨牸寮忓寲瀛楃闇�姹傚彲浠ョ户缁坊鍔狅紝蹇呴』杞寲鎴愬瓧绗︿覆 + } + + for (const key in timeSource) { + const [ret] = new RegExp(`${key}+`).exec(formatStr) || [] + if (ret) { + // 骞村彲鑳藉彧闇�灞曠ず涓や綅 + const beginIndex = key === 'y' && ret.length === 2 ? 2 : 0 + formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex)) + } + } + + return formatStr +} + +/** + * @description 鏃堕棿鎴宠浆涓哄涔呬箣鍓� + * @param {String|Number} timestamp 鏃堕棿鎴� + * @param {String|Boolean} format + * 鏍煎紡鍖栬鍒欏鏋滀负鏃堕棿鏍煎紡瀛楃涓诧紝瓒呭嚭涓�瀹氭椂闂磋寖鍥达紝杩斿洖鍥哄畾鐨勬椂闂存牸寮忥紱 + * 濡傛灉涓哄竷灏斿�糵alse锛屾棤璁轰粈涔堟椂闂达紝閮借繑鍥炲涔呬互鍓嶇殑鏍煎紡 + * @returns {string} 杞寲鍚庣殑鍐呭 + */ +function timeFrom(timestamp = null, format = 'yyyy-mm-dd') { + if (timestamp == null) timestamp = Number(new Date()) + timestamp = parseInt(timestamp) + // 鍒ゆ柇鐢ㄦ埛杈撳叆鐨勬椂闂存埑鏄杩樻槸姣,涓�鑸墠绔痡s鑾峰彇鐨勬椂闂存埑鏄绉�(13浣�),鍚庣浼犺繃鏉ョ殑涓虹(10浣�) + if (timestamp.toString().length == 10) timestamp *= 1000 + let timer = (new Date()).getTime() - timestamp + timer = parseInt(timer / 1000) + // 濡傛灉灏忎簬5鍒嗛挓,鍒欒繑鍥�"鍒氬垰",鍏朵粬浠ユ绫绘帹 + let tips = '' + switch (true) { + case timer < 300: + tips = '鍒氬垰' + break + case timer >= 300 && timer < 3600: + tips = `${parseInt(timer / 60)}鍒嗛挓鍓峘 + break + case timer >= 3600 && timer < 86400: + tips = `${parseInt(timer / 3600)}灏忔椂鍓峘 + break + case timer >= 86400 && timer < 2592000: + tips = `${parseInt(timer / 86400)}澶╁墠` + break + default: + // 濡傛灉format涓篺alse锛屽垯鏃犺浠�涔堟椂闂存埑锛岄兘鏄剧ずxx涔嬪墠 + if (format === false) { + if (timer >= 2592000 && timer < 365 * 86400) { + tips = `${parseInt(timer / (86400 * 30))}涓湀鍓峘 + } else { + tips = `${parseInt(timer / (86400 * 365))}骞村墠` + } + } else { + tips = timeFormat(timestamp, format) + } + } + return tips +} + +/** + * @description 鍘婚櫎绌烘牸 + * @param String str 闇�瑕佸幓闄ょ┖鏍肩殑瀛楃涓� + * @param String pos both(宸﹀彸)|left|right|all 榛樿both + */ +function trim(str, pos = 'both') { + str = String(str) + if (pos == 'both') { + return str.replace(/^\s+|\s+$/g, '') + } + if (pos == 'left') { + return str.replace(/^\s*/, '') + } + if (pos == 'right') { + return str.replace(/(\s*$)/g, '') + } + if (pos == 'all') { + return str.replace(/\s+/g, '') + } + return str +} + +/** + * @description 瀵硅薄杞瑄rl鍙傛暟 + * @param {object} data,瀵硅薄 + * @param {Boolean} isPrefix,鏄惁鑷姩鍔犱笂"?" + * @param {string} arrayFormat 瑙勫垯 indices|brackets|repeat|comma + */ +function queryParams(data = {}, isPrefix = true, arrayFormat = 'brackets') { + const prefix = isPrefix ? '?' : '' + const _result = [] + if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets' + for (const key in data) { + const value = data[key] + // 鍘绘帀涓虹┖鐨勫弬鏁� + if (['', undefined, null].indexOf(value) >= 0) { + continue + } + // 濡傛灉鍊间负鏁扮粍锛屽彟琛屽鐞� + if (value.constructor === Array) { + // e.g. {ids: [1, 2, 3]} + switch (arrayFormat) { + case 'indices': + // 缁撴灉: ids[0]=1&ids[1]=2&ids[2]=3 + for (let i = 0; i < value.length; i++) { + _result.push(`${key}[${i}]=${value[i]}`) + } + break + case 'brackets': + // 缁撴灉: ids[]=1&ids[]=2&ids[]=3 + value.forEach((_value) => { + _result.push(`${key}[]=${_value}`) + }) + break + case 'repeat': + // 缁撴灉: ids=1&ids=2&ids=3 + value.forEach((_value) => { + _result.push(`${key}=${_value}`) + }) + break + case 'comma': + // 缁撴灉: ids=1,2,3 + let commaStr = '' + value.forEach((_value) => { + commaStr += (commaStr ? ',' : '') + _value + }) + _result.push(`${key}=${commaStr}`) + break + default: + value.forEach((_value) => { + _result.push(`${key}[]=${_value}`) + }) + } + } else { + _result.push(`${key}=${value}`) + } + } + return _result.length ? prefix + _result.join('&') : '' +} + +/** + * 鏄剧ず娑堟伅鎻愮ず妗� + * @param {String} title 鎻愮ず鐨勫唴瀹癸紝闀垮害涓� icon 鍙栧�兼湁鍏炽�� + * @param {Number} duration 鎻愮ず鐨勫欢杩熸椂闂达紝鍗曚綅姣锛岄粯璁わ細2000 + */ +function toast(title, duration = 2000) { + uni.showToast({ + title: String(title), + icon: 'none', + duration + }) +} + +/** + * @description 鏍规嵁涓婚type鍊�,鑾峰彇瀵瑰簲鐨勫浘鏍� + * @param {String} type 涓婚鍚嶇О,primary|info|error|warning|success + * @param {boolean} fill 鏄惁浣跨敤fill濉厖瀹炰綋鐨勫浘鏍� + */ +function type2icon(type = 'success', fill = false) { + // 濡傛灉闈為缃��,榛樿涓簊uccess + if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success' + let iconName = '' + // 鐩墠(2019-12-12),info鍜宲rimary浣跨敤鍚屼竴涓浘鏍� + switch (type) { + case 'primary': + iconName = 'info-circle' + break + case 'info': + iconName = 'info-circle' + break + case 'error': + iconName = 'close-circle' + break + case 'warning': + iconName = 'error-circle' + break + case 'success': + iconName = 'checkmark-circle' + break + default: + iconName = 'checkmark-circle' + } + // 鏄惁鏄疄浣撶被鍨�,鍔犱笂-fill,鍦╥con缁勪欢搴撲腑,瀹炰綋鐨勭被鍚嶆槸鍚庨潰鍔�-fill鐨� + if (fill) iconName += '-fill' + return iconName +} + +/** + * @description 鏁板瓧鏍煎紡鍖� + * @param {number|string} number 瑕佹牸寮忓寲鐨勬暟瀛� + * @param {number} decimals 淇濈暀鍑犱綅灏忔暟 + * @param {string} decimalPoint 灏忔暟鐐圭鍙� + * @param {string} thousandsSeparator 鍗冨垎浣嶇鍙� + * @returns {string} 鏍煎紡鍖栧悗鐨勬暟瀛� + */ +function priceFormat(number, decimals = 0, decimalPoint = '.', thousandsSeparator = ',') { + number = (`${number}`).replace(/[^0-9+-Ee.]/g, '') + const n = !isFinite(+number) ? 0 : +number + const prec = !isFinite(+decimals) ? 0 : Math.abs(decimals) + const sep = (typeof thousandsSeparator === 'undefined') ? ',' : thousandsSeparator + const dec = (typeof decimalPoint === 'undefined') ? '.' : decimalPoint + let s = '' + + s = (prec ? round(n, prec) + '' : `${Math.round(n)}`).split('.') + const re = /(-?\d+)(\d{3})/ + while (re.test(s[0])) { + s[0] = s[0].replace(re, `$1${sep}$2`) + } + + if ((s[1] || '').length < prec) { + s[1] = s[1] || '' + s[1] += new Array(prec - s[1].length + 1).join('0') + } + return s.join(dec) +} + +/** + * @description 鑾峰彇duration鍊� + * 濡傛灉甯︽湁ms鎴栬�卻鐩存帴杩斿洖锛屽鏋滃ぇ浜庝竴瀹氬�硷紝璁や负鏄痬s鍗曚綅锛屽皬浜庝竴瀹氬�硷紝璁や负鏄痵鍗曚綅 + * 姣斿浠�30浣嶉槇鍊硷紝閭d箞300澶т簬30锛屽彲浠ョ悊瑙d负鐢ㄦ埛鎯宠鐨勬槸300ms锛岃�屼笉鏄兂鑺�300s鍘绘墽琛屼竴涓姩鐢� + * @param {String|number} value 姣斿: "1s"|"100ms"|1|100 + * @param {boolean} unit 鎻愮ず: 濡傛灉鏄痜alse 榛樿杩斿洖number + * @return {string|number} + */ +function getDuration(value, unit = true) { + const valueNum = parseInt(value) + if (unit) { + if (/s$/.test(value)) return value + return value > 30 ? `${value}ms` : `${value}s` + } + if (/ms$/.test(value)) return valueNum + if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000 + return valueNum +} + +/** + * @description 鏃ユ湡鐨勬湀鎴栨棩琛ラ浂鎿嶄綔 + * @param {String} value 闇�瑕佽ˉ闆剁殑鍊� + */ +function padZero(value) { + return `00${value}`.slice(-2) +} + +/** + * @description 鍦╱-form鐨勫瓙缁勪欢鍐呭鍙戠敓鍙樺寲锛屾垨鑰呭け鍘荤劍鐐规椂锛屽皾璇曢�氱煡u-form鎵ц鏍¢獙鏂规硶 + * @param {*} instance + * @param {*} event + */ +function formValidate(instance, event) { + const formItem = uni.$u.$parent.call(instance, 'u-form-item') + const form = uni.$u.$parent.call(instance, 'u-form') + // 濡傛灉鍙戠敓鍙樺寲鐨刬nput鎴栬�卼extarea绛夛紝鍏剁埗缁勪欢涓湁u-form-item鎴栬�卽-form绛夛紝灏辨墽琛宖orm鐨剉alidate鏂规硶 + // 鍚屾椂灏唂orm-item鐨刾ros浼犻�掔粰form锛岃鍏惰繘琛岀簿纭璞¢獙璇� + if (formItem && form) { + form.validateField(formItem.prop, () => {}, event) + } +} + +/** + * @description 鑾峰彇鏌愪釜瀵硅薄涓嬬殑灞炴�э紝鐢ㄤ簬閫氳繃绫讳技'a.b.c'鐨勫舰寮忓幓鑾峰彇涓�涓璞$殑鐨勫睘鎬х殑褰㈠紡 + * @param {object} obj 瀵硅薄 + * @param {string} key 闇�瑕佽幏鍙栫殑灞炴�у瓧娈� + * @returns {*} + */ +function getProperty(obj, key) { + if (!obj) { + return + } + if (typeof key !== 'string' || key === '') { + return '' + } + if (key.indexOf('.') !== -1) { + const keys = key.split('.') + let firstObj = obj[keys[0]] || {} + + for (let i = 1; i < keys.length; i++) { + if (firstObj) { + firstObj = firstObj[keys[i]] + } + } + return firstObj + } + return obj[key] +} + +/** + * @description 璁剧疆瀵硅薄鐨勫睘鎬у�硷紝濡傛灉'a.b.c'鐨勫舰寮忚繘琛岃缃� + * @param {object} obj 瀵硅薄 + * @param {string} key 闇�瑕佽缃殑灞炴�� + * @param {string} value 璁剧疆鐨勫�� + */ +function setProperty(obj, key, value) { + if (!obj) { + return + } + // 閫掑綊璧嬪�� + const inFn = function(_obj, keys, v) { + // 鏈�鍚庝竴涓睘鎬ey + if (keys.length === 1) { + _obj[keys[0]] = v + return + } + // 0~length-1涓猭ey + while (keys.length > 1) { + const k = keys[0] + if (!_obj[k] || (typeof _obj[k] !== 'object')) { + _obj[k] = {} + } + const key = keys.shift() + // 鑷皟鐢ㄥ垽鏂槸鍚﹀瓨鍦ㄥ睘鎬э紝涓嶅瓨鍦ㄥ垯鑷姩鍒涘缓瀵硅薄 + inFn(_obj[k], keys, v) + } + } + + if (typeof key !== 'string' || key === '') { + + } else if (key.indexOf('.') !== -1) { // 鏀寔澶氬眰绾ц祴鍊兼搷浣� + const keys = key.split('.') + inFn(obj, keys, value) + } else { + obj[key] = value + } +} + +/** + * @description 鑾峰彇褰撳墠椤甸潰璺緞 + */ +function page() { + const pages = getCurrentPages() + // 鏌愪簺鐗规畩鎯呭喌涓�(姣斿椤甸潰杩涜redirectTo鏃剁殑涓�浜涙椂鏈�)锛宲ages鍙兘涓虹┖鏁扮粍 + return `/${pages[pages.length - 1]?.route ?? ''}` +} + +/** + * @description 鑾峰彇褰撳墠璺敱鏍堝疄渚嬫暟缁� + */ +function pages() { + const pages = getCurrentPages() + return pages +} + +/** + * @description 淇敼uView鍐呯疆灞炴�у�� + * @param {object} props 淇敼鍐呯疆props灞炴�� + * @param {object} config 淇敼鍐呯疆config灞炴�� + * @param {object} color 淇敼鍐呯疆color灞炴�� + * @param {object} zIndex 淇敼鍐呯疆zIndex灞炴�� + */ +function setConfig({ + props = {}, + config = {}, + color = {}, + zIndex = {} +}) { + const { + deepMerge, + } = uni.$u + uni.$u.config = deepMerge(uni.$u.config, config) + uni.$u.props = deepMerge(uni.$u.props, props) + uni.$u.color = deepMerge(uni.$u.color, color) + uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex) +} + +export default { + range, + getPx, + sleep, + os, + sys, + random, + guid, + $parent, + addStyle, + addUnit, + deepClone, + deepMerge, + error, + randomArray, + timeFormat, + timeFrom, + trim, + queryParams, + toast, + type2icon, + priceFormat, + getDuration, + padZero, + formValidate, + getProperty, + setProperty, + page, + pages, + setConfig +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/platform.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/platform.js new file mode 100644 index 0000000..d6b926e --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/platform.js @@ -0,0 +1,75 @@ +/** + * 娉ㄦ剰锛� + * 姝ら儴鍒嗗唴瀹癸紝鍦╲ue-cli妯″紡涓嬶紝闇�瑕佸湪vue.config.js鍔犲叆濡備笅鍐呭鎵嶆湁鏁堬細 + * module.exports = { + * transpileDependencies: ['uview-v2'] + * } + */ + +let platform = 'none' + +// #ifdef VUE3 +platform = 'vue3' +// #endif + +// #ifdef VUE2 +platform = 'vue2' +// #endif + +// #ifdef APP-PLUS +platform = 'plus' +// #endif + +// #ifdef APP-NVUE +platform = 'nvue' +// #endif + +// #ifdef H5 +platform = 'h5' +// #endif + +// #ifdef MP-WEIXIN +platform = 'weixin' +// #endif + +// #ifdef MP-ALIPAY +platform = 'alipay' +// #endif + +// #ifdef MP-BAIDU +platform = 'baidu' +// #endif + +// #ifdef MP-TOUTIAO +platform = 'toutiao' +// #endif + +// #ifdef MP-QQ +platform = 'qq' +// #endif + +// #ifdef MP-KUAISHOU +platform = 'kuaishou' +// #endif + +// #ifdef MP-360 +platform = '360' +// #endif + +// #ifdef MP +platform = 'mp' +// #endif + +// #ifdef QUICKAPP-WEBVIEW +platform = 'quickapp-webview' +// #endif + +// #ifdef QUICKAPP-WEBVIEW-HUAWEI +platform = 'quickapp-webview-huawei' +// #endif + +// #ifdef QUICKAPP-WEBVIEW-UNION +platform = 'quckapp-webview-union' +// #endif + +export default platform diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/test.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/test.js new file mode 100644 index 0000000..c776437 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/test.js @@ -0,0 +1,288 @@ +/** + * 楠岃瘉鐢靛瓙閭鏍煎紡 + */ +function email(value) { + return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value) +} + +/** + * 楠岃瘉鎵嬫満鏍煎紡 + */ +function mobile(value) { + return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value) +} + +/** + * 楠岃瘉URL鏍煎紡 + */ +function url(value) { + return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/ + .test(value) +} + +/** + * 楠岃瘉鏃ユ湡鏍煎紡 + */ +function date(value) { + if (!value) return false + // 鍒ゆ柇鏄惁鏁板�兼垨鑰呭瓧绗︿覆鏁板��(鎰忓懗鐫�涓烘椂闂存埑)锛岃浆涓烘暟鍊硷紝鍚﹀垯new Date鏃犳硶璇嗗埆瀛楃涓叉椂闂存埑 + if (number(value)) value = +value + return !/Invalid|NaN/.test(new Date(value).toString()) +} + +/** + * 楠岃瘉ISO绫诲瀷鐨勬棩鏈熸牸寮� + */ +function dateISO(value) { + return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value) +} + +/** + * 楠岃瘉鍗佽繘鍒舵暟瀛� + */ +function number(value) { + return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value) +} + +/** + * 楠岃瘉瀛楃涓� + */ +function string(value) { + return typeof value === 'string' +} + +/** + * 楠岃瘉鏁存暟 + */ +function digits(value) { + return /^\d+$/.test(value) +} + +/** + * 楠岃瘉韬唤璇佸彿鐮� + */ +function idCard(value) { + return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test( + value + ) +} + +/** + * 鏄惁杞︾墝鍙� + */ +function carNo(value) { + // 鏂拌兘婧愯溅鐗� + const xreg = /^[浜触娌笣鍐�璞簯杈介粦婀樼殩椴佹柊鑻忔禉璧i剛妗傜敇鏅嬭挋闄曞悏闂借吹绮ら潚钘忓窛瀹佺惣浣块A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/ + // 鏃ц溅鐗� + const creg = /^[浜触娌笣鍐�璞簯杈介粦婀樼殩椴佹柊鑻忔禉璧i剛妗傜敇鏅嬭挋闄曞悏闂借吹绮ら潚钘忓窛瀹佺惣浣块A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9鎸傚璀︽腐婢砞{1}$/ + if (value.length === 7) { + return creg.test(value) + } if (value.length === 8) { + return xreg.test(value) + } + return false +} + +/** + * 閲戦,鍙厑璁�2浣嶅皬鏁� + */ +function amount(value) { + // 閲戦锛屽彧鍏佽淇濈暀涓や綅灏忔暟 + return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value) +} + +/** + * 涓枃 + */ +function chinese(value) { + const reg = /^[\u4e00-\u9fa5]+$/gi + return reg.test(value) +} + +/** + * 鍙兘杈撳叆瀛楁瘝 + */ +function letter(value) { + return /^[a-zA-Z]*$/.test(value) +} + +/** + * 鍙兘鏄瓧姣嶆垨鑰呮暟瀛� + */ +function enOrNum(value) { + // 鑻辨枃鎴栬�呮暟瀛� + const reg = /^[0-9a-zA-Z]*$/g + return reg.test(value) +} + +/** + * 楠岃瘉鏄惁鍖呭惈鏌愪釜鍊� + */ +function contains(value, param) { + return value.indexOf(param) >= 0 +} + +/** + * 楠岃瘉涓�涓�艰寖鍥碵min, max] + */ +function range(value, param) { + return value >= param[0] && value <= param[1] +} + +/** + * 楠岃瘉涓�涓暱搴﹁寖鍥碵min, max] + */ +function rangeLength(value, param) { + return value.length >= param[0] && value.length <= param[1] +} + +/** + * 鏄惁鍥哄畾鐢佃瘽 + */ +function landline(value) { + const reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/ + return reg.test(value) +} + +/** + * 鍒ゆ柇鏄惁涓虹┖ + */ +function empty(value) { + switch (typeof value) { + case 'undefined': + return true + case 'string': + if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true + break + case 'boolean': + if (!value) return true + break + case 'number': + if (value === 0 || isNaN(value)) return true + break + case 'object': + if (value === null || value.length === 0) return true + for (const i in value) { + return false + } + return true + } + return false +} + +/** + * 鏄惁json瀛楃涓� + */ +function jsonString(value) { + if (typeof value === 'string') { + try { + const obj = JSON.parse(value) + if (typeof obj === 'object' && obj) { + return true + } + return false + } catch (e) { + return false + } + } + return false +} + +/** + * 鏄惁鏁扮粍 + */ +function array(value) { + if (typeof Array.isArray === 'function') { + return Array.isArray(value) + } + return Object.prototype.toString.call(value) === '[object Array]' +} + +/** + * 鏄惁瀵硅薄 + */ +function object(value) { + return Object.prototype.toString.call(value) === '[object Object]' +} + +/** + * 鏄惁鐭俊楠岃瘉鐮� + */ +function code(value, len = 6) { + return new RegExp(`^\\d{${len}}$`).test(value) +} + +/** + * 鏄惁鍑芥暟鏂规硶 + * @param {Object} value + */ +function func(value) { + return typeof value === 'function' +} + +/** + * 鏄惁promise瀵硅薄 + * @param {Object} value + */ +function promise(value) { + return object(value) && func(value.then) && func(value.catch) +} + +/** 鏄惁鍥剧墖鏍煎紡 + * @param {Object} value + */ +function image(value) { + const newValue = value.split('?')[0] + const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i + return IMAGE_REGEXP.test(newValue) +} + +/** + * 鏄惁瑙嗛鏍煎紡 + * @param {Object} value + */ +function video(value) { + const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i + return VIDEO_REGEXP.test(value) +} + +/** + * 鏄惁涓烘鍒欏璞� + * @param {Object} + * @return {Boolean} + */ +function regExp(o) { + return o && Object.prototype.toString.call(o) === '[object RegExp]' +} + +export default { + email, + mobile, + url, + date, + dateISO, + number, + digits, + idCard, + carNo, + amount, + chinese, + letter, + enOrNum, + contains, + range, + rangeLength, + empty, + isEmpty: empty, + jsonString, + landline, + object, + array, + code, + func, + promise, + video, + image, + regExp, + string +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/throttle.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/throttle.js new file mode 100644 index 0000000..2f33611 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/function/throttle.js @@ -0,0 +1,30 @@ +let timer; let + flag +/** + * 鑺傛祦鍘熺悊锛氬湪涓�瀹氭椂闂村唴锛屽彧鑳借Е鍙戜竴娆� + * + * @param {Function} func 瑕佹墽琛岀殑鍥炶皟鍑芥暟 + * @param {Number} wait 寤舵椂鐨勬椂闂� + * @param {Boolean} immediate 鏄惁绔嬪嵆鎵ц + * @return null + */ +function throttle(func, wait = 500, immediate = true) { + if (immediate) { + if (!flag) { + flag = true + // 濡傛灉鏄珛鍗虫墽琛岋紝鍒欏湪wait姣鍐呭紑濮嬫椂鎵ц + typeof func === 'function' && func() + timer = setTimeout(() => { + flag = false + }, wait) + } + } else if (!flag) { + flag = true + // 濡傛灉鏄潪绔嬪嵆鎵ц锛屽垯鍦╳ait姣鍐呯殑缁撴潫澶勬墽琛� + timer = setTimeout(() => { + flag = false + typeof func === 'function' && func() + }, wait) + } +} +export default throttle diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/adapters/index.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/adapters/index.js new file mode 100644 index 0000000..e03cf5f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/adapters/index.js @@ -0,0 +1,97 @@ +import buildURL from '../helpers/buildURL' +import buildFullPath from '../core/buildFullPath' +import settle from '../core/settle' +import { isUndefined } from '../utils' + +/** + * 杩斿洖鍙�夊�煎瓨鍦ㄧ殑閰嶇疆 + * @param {Array} keys - 鍙�夊�兼暟缁� + * @param {Object} config2 - 閰嶇疆 + * @return {{}} - 瀛樺湪鐨勯厤缃」 + */ +const mergeKeys = (keys, config2) => { + const config = {} + keys.forEach((prop) => { + if (!isUndefined(config2[prop])) { + config[prop] = config2[prop] + } + }) + return config +} +export default (config) => new Promise((resolve, reject) => { + const fullPath = buildURL(buildFullPath(config.baseURL, config.url), config.params) + const _config = { + url: fullPath, + header: config.header, + complete: (response) => { + config.fullPath = fullPath + response.config = config + try { + // 瀵瑰彲鑳藉瓧绗︿覆涓嶆槸json 鐨勬儏鍐靛閿� + if (typeof response.data === 'string') { + response.data = JSON.parse(response.data) + } + // eslint-disable-next-line no-empty + } catch (e) { + } + settle(resolve, reject, response) + } + } + let requestTask + if (config.method === 'UPLOAD') { + delete _config.header['content-type'] + delete _config.header['Content-Type'] + const otherConfig = { + // #ifdef MP-ALIPAY + fileType: config.fileType, + // #endif + filePath: config.filePath, + name: config.name + } + const optionalKeys = [ + // #ifdef APP-PLUS || H5 + 'files', + // #endif + // #ifdef H5 + 'file', + // #endif + // #ifdef H5 || APP-PLUS + 'timeout', + // #endif + 'formData' + ] + requestTask = uni.uploadFile({ ..._config, ...otherConfig, ...mergeKeys(optionalKeys, config) }) + } else if (config.method === 'DOWNLOAD') { + // #ifdef H5 || APP-PLUS + if (!isUndefined(config.timeout)) { + _config.timeout = config.timeout + } + // #endif + requestTask = uni.downloadFile(_config) + } else { + const optionalKeys = [ + 'data', + 'method', + // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN + 'timeout', + // #endif + 'dataType', + // #ifndef MP-ALIPAY + 'responseType', + // #endif + // #ifdef APP-PLUS + 'sslVerify', + // #endif + // #ifdef H5 + 'withCredentials', + // #endif + // #ifdef APP-PLUS + 'firstIpv4' + // #endif + ] + requestTask = uni.request({ ..._config, ...mergeKeys(optionalKeys, config) }) + } + if (config.getTask) { + config.getTask(requestTask, config) + } +}) diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js new file mode 100644 index 0000000..3e8728d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js @@ -0,0 +1,50 @@ +'use strict' + +function InterceptorManager() { + this.handlers = [] +} + +/** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ +InterceptorManager.prototype.use = function use(fulfilled, rejected) { + this.handlers.push({ + fulfilled, + rejected + }) + return this.handlers.length - 1 +} + +/** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + */ +InterceptorManager.prototype.eject = function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null + } +} + +/** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + */ +InterceptorManager.prototype.forEach = function forEach(fn) { + this.handlers.forEach((h) => { + if (h !== null) { + fn(h) + } + }) +} + +export default InterceptorManager diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/Request.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/Request.js new file mode 100644 index 0000000..cc48566 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/Request.js @@ -0,0 +1,198 @@ +/** + * @Class Request + * @description luch-request http璇锋眰鎻掍欢 + * @version 3.0.7 + * @Author lu-ch + * @Date 2021-09-04 + * @Email webwork.s@qq.com + * 鏂囨。: https://www.quanzhan.co/luch-request/ + * github: https://github.com/lei-mu/luch-request + * DCloud: http://ext.dcloud.net.cn/plugin?id=392 + * HBuilderX: beat-3.0.4 alpha-3.0.4 + */ + +import dispatchRequest from './dispatchRequest' +import InterceptorManager from './InterceptorManager' +import mergeConfig from './mergeConfig' +import defaults from './defaults' +import { isPlainObject } from '../utils' +import clone from '../utils/clone' + +export default class Request { + /** + * @param {Object} arg - 鍏ㄥ眬閰嶇疆 + * @param {String} arg.baseURL - 鍏ㄥ眬鏍硅矾寰� + * @param {Object} arg.header - 鍏ㄥ眬header + * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 鍏ㄥ眬榛樿璇锋眰鏂瑰紡 + * @param {String} arg.dataType = [json] - 鍏ㄥ眬榛樿鐨刣ataType + * @param {String} arg.responseType = [text|arraybuffer] - 鍏ㄥ眬榛樿鐨剅esponseType銆傛敮浠樺疂灏忕▼搴忎笉鏀寔 + * @param {Object} arg.custom - 鍏ㄥ眬榛樿鐨勮嚜瀹氫箟鍙傛暟 + * @param {Number} arg.timeout - 鍏ㄥ眬榛樿鐨勮秴鏃舵椂闂达紝鍗曚綅 ms銆傞粯璁�60000銆侶5(HBuilderX 2.9.9+)銆丄PP(HBuilderX 2.9.9+)銆佸井淇″皬绋嬪簭锛�2.10.0锛夈�佹敮浠樺疂灏忕▼搴� + * @param {Boolean} arg.sslVerify - 鍏ㄥ眬榛樿鐨勬槸鍚﹂獙璇� ssl 璇佷功銆傞粯璁rue.浠匒pp瀹夊崜绔敮鎸侊紙HBuilderX 2.3.3+锛� + * @param {Boolean} arg.withCredentials - 鍏ㄥ眬榛樿鐨勮法鍩熻姹傛椂鏄惁鎼哄甫鍑瘉锛坈ookies锛夈�傞粯璁alse銆備粎H5鏀寔锛圚BuilderX 2.6.15+锛� + * @param {Boolean} arg.firstIpv4 - 鍏―NS瑙f瀽鏃朵紭鍏堜娇鐢╥pv4銆傞粯璁alse銆備粎 App-Android 鏀寔 (HBuilderX 2.8.0+) + * @param {Function(statusCode):Boolean} arg.validateStatus - 鍏ㄥ眬榛樿鐨勮嚜瀹氫箟楠岃瘉鍣ㄣ�傞粯璁tatusCode >= 200 && statusCode < 300 + */ + constructor(arg = {}) { + if (!isPlainObject(arg)) { + arg = {} + console.warn('璁剧疆鍏ㄥ眬鍙傛暟蹇呴』鎺ユ敹涓�涓狾bject') + } + this.config = clone({ ...defaults, ...arg }) + this.interceptors = { + request: new InterceptorManager(), + response: new InterceptorManager() + } + } + + /** + * @Function + * @param {Request~setConfigCallback} f - 璁剧疆鍏ㄥ眬榛樿閰嶇疆 + */ + setConfig(f) { + this.config = f(this.config) + } + + middleware(config) { + config = mergeConfig(this.config, config) + const chain = [dispatchRequest, undefined] + let promise = Promise.resolve(config) + + this.interceptors.request.forEach((interceptor) => { + chain.unshift(interceptor.fulfilled, interceptor.rejected) + }) + + this.interceptors.response.forEach((interceptor) => { + chain.push(interceptor.fulfilled, interceptor.rejected) + }) + + while (chain.length) { + promise = promise.then(chain.shift(), chain.shift()) + } + + return promise + } + + /** + * @Function + * @param {Object} config - 璇锋眰閰嶇疆椤� + * @prop {String} options.url - 璇锋眰璺緞 + * @prop {Object} options.data - 璇锋眰鍙傛暟 + * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 鍝嶅簲鐨勬暟鎹被鍨� + * @prop {Object} [options.dataType = config.dataType] - 濡傛灉璁句负 json锛屼細灏濊瘯瀵硅繑鍥炵殑鏁版嵁鍋氫竴娆� JSON.parse + * @prop {Object} [options.header = config.header] - 璇锋眰header + * @prop {Object} [options.method = config.method] - 璇锋眰鏂规硶 + * @returns {Promise<unknown>} + */ + request(config = {}) { + return this.middleware(config) + } + + get(url, options = {}) { + return this.middleware({ + url, + method: 'GET', + ...options + }) + } + + post(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'POST', + ...options + }) + } + + // #ifndef MP-ALIPAY + put(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'PUT', + ...options + }) + } + + // #endif + + // #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-BAIDU + delete(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'DELETE', + ...options + }) + } + + // #endif + + // #ifdef H5 || MP-WEIXIN + connect(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'CONNECT', + ...options + }) + } + + // #endif + + // #ifdef H5 || MP-WEIXIN || MP-BAIDU + head(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'HEAD', + ...options + }) + } + + // #endif + + // #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-BAIDU + options(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'OPTIONS', + ...options + }) + } + + // #endif + + // #ifdef H5 || MP-WEIXIN + trace(url, data, options = {}) { + return this.middleware({ + url, + data, + method: 'TRACE', + ...options + }) + } + + // #endif + + upload(url, config = {}) { + config.url = url + config.method = 'UPLOAD' + return this.middleware(config) + } + + download(url, config = {}) { + config.url = url + config.method = 'DOWNLOAD' + return this.middleware(config) + } +} + +/** + * setConfig鍥炶皟 + * @return {Object} - 杩斿洖鎿嶄綔鍚庣殑config + * @callback Request~setConfigCallback + * @param {Object} config - 鍏ㄥ眬榛樿config + */ diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js new file mode 100644 index 0000000..5eb8a17 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js @@ -0,0 +1,20 @@ +'use strict' + +import isAbsoluteURL from '../helpers/isAbsoluteURL' +import combineURLs from '../helpers/combineURLs' + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * @returns {string} The combined full path + */ +export default function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL) + } + return requestedURL +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/defaults.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/defaults.js new file mode 100644 index 0000000..be375a9 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/defaults.js @@ -0,0 +1,29 @@ +/** + * 榛樿鐨勫叏灞�閰嶇疆 + */ + +export default { + baseURL: '', + header: {}, + method: 'GET', + dataType: 'json', + // #ifndef MP-ALIPAY + responseType: 'text', + // #endif + custom: {}, + // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN + timeout: 60000, + // #endif + // #ifdef APP-PLUS + sslVerify: true, + // #endif + // #ifdef H5 + withCredentials: false, + // #endif + // #ifdef APP-PLUS + firstIpv4: false, + // #endif + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300 + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js new file mode 100644 index 0000000..724545c --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js @@ -0,0 +1,3 @@ +import adapter from '../adapters/index' + +export default (config) => adapter(config) diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js new file mode 100644 index 0000000..08f8b9b --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js @@ -0,0 +1,103 @@ +import { deepMerge, isUndefined } from '../utils' + +/** + * 鍚堝苟灞�閮ㄩ厤缃紭鍏堢殑閰嶇疆锛屽鏋滃眬閮ㄦ湁璇ラ厤缃」鍒欑敤灞�閮紝濡傛灉鍏ㄥ眬鏈夎閰嶇疆椤瑰垯鐢ㄥ叏灞� + * @param {Array} keys - 閰嶇疆椤� + * @param {Object} globalsConfig - 褰撳墠鐨勫叏灞�閰嶇疆 + * @param {Object} config2 - 灞�閮ㄩ厤缃� + * @return {{}} + */ +const mergeKeys = (keys, globalsConfig, config2) => { + const config = {} + keys.forEach((prop) => { + if (!isUndefined(config2[prop])) { + config[prop] = config2[prop] + } else if (!isUndefined(globalsConfig[prop])) { + config[prop] = globalsConfig[prop] + } + }) + return config +} +/** + * + * @param globalsConfig - 褰撳墠瀹炰緥鐨勫叏灞�閰嶇疆 + * @param config2 - 褰撳墠鐨勫眬閮ㄩ厤缃� + * @return - 鍚堝苟鍚庣殑閰嶇疆 + */ +export default (globalsConfig, config2 = {}) => { + const method = config2.method || globalsConfig.method || 'GET' + let config = { + baseURL: globalsConfig.baseURL || '', + method, + url: config2.url || '', + params: config2.params || {}, + custom: { ...(globalsConfig.custom || {}), ...(config2.custom || {}) }, + header: deepMerge(globalsConfig.header || {}, config2.header || {}) + } + const defaultToConfig2Keys = ['getTask', 'validateStatus'] + config = { ...config, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2) } + + // eslint-disable-next-line no-empty + if (method === 'DOWNLOAD') { + // #ifdef H5 || APP-PLUS + if (!isUndefined(config2.timeout)) { + config.timeout = config2.timeout + } else if (!isUndefined(globalsConfig.timeout)) { + config.timeout = globalsConfig.timeout + } + // #endif + } else if (method === 'UPLOAD') { + delete config.header['content-type'] + delete config.header['Content-Type'] + const uploadKeys = [ + // #ifdef APP-PLUS || H5 + 'files', + // #endif + // #ifdef MP-ALIPAY + 'fileType', + // #endif + // #ifdef H5 + 'file', + // #endif + 'filePath', + 'name', + // #ifdef H5 || APP-PLUS + 'timeout', + // #endif + 'formData' + ] + uploadKeys.forEach((prop) => { + if (!isUndefined(config2[prop])) { + config[prop] = config2[prop] + } + }) + // #ifdef H5 || APP-PLUS + if (isUndefined(config.timeout) && !isUndefined(globalsConfig.timeout)) { + config.timeout = globalsConfig.timeout + } + // #endif + } else { + const defaultsKeys = [ + 'data', + // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN + 'timeout', + // #endif + 'dataType', + // #ifndef MP-ALIPAY + 'responseType', + // #endif + // #ifdef APP-PLUS + 'sslVerify', + // #endif + // #ifdef H5 + 'withCredentials', + // #endif + // #ifdef APP-PLUS + 'firstIpv4' + // #endif + ] + config = { ...config, ...mergeKeys(defaultsKeys, globalsConfig, config2) } + } + + return config +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/settle.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/settle.js new file mode 100644 index 0000000..8d3638f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/core/settle.js @@ -0,0 +1,16 @@ +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + */ +export default function settle(resolve, reject, response) { + const { validateStatus } = response.config + const status = response.statusCode + if (status && (!validateStatus || validateStatus(status))) { + resolve(response) + } else { + reject(response) + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js new file mode 100644 index 0000000..472ad6a --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js @@ -0,0 +1,69 @@ +'use strict' + +import * as utils from '../utils' + +function encode(val) { + return encodeURIComponent(val) + .replace(/%40/gi, '@') + .replace(/%3A/gi, ':') + .replace(/%24/g, '$') + .replace(/%2C/gi, ',') + .replace(/%20/g, '+') + .replace(/%5B/gi, '[') + .replace(/%5D/gi, ']') +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @returns {string} The formatted url + */ +export default function buildURL(url, params) { + /* eslint no-param-reassign:0 */ + if (!params) { + return url + } + + let serializedParams + if (utils.isURLSearchParams(params)) { + serializedParams = params.toString() + } else { + const parts = [] + + utils.forEach(params, (val, key) => { + if (val === null || typeof val === 'undefined') { + return + } + + if (utils.isArray(val)) { + key = `${key}[]` + } else { + val = [val] + } + + utils.forEach(val, (v) => { + if (utils.isDate(v)) { + v = v.toISOString() + } else if (utils.isObject(v)) { + v = JSON.stringify(v) + } + parts.push(`${encode(key)}=${encode(v)}`) + }) + }) + + serializedParams = parts.join('&') + } + + if (serializedParams) { + const hashmarkIndex = url.indexOf('#') + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex) + } + + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams + } + + return url +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js new file mode 100644 index 0000000..ac7c124 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js @@ -0,0 +1,14 @@ +'use strict' + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * @returns {string} The combined URL + */ +export default function combineURLs(baseURL, relativeURL) { + return relativeURL + ? `${baseURL.replace(/\/+$/, '')}/${relativeURL.replace(/^\/+/, '')}` + : baseURL +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js new file mode 100644 index 0000000..63c6647 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js @@ -0,0 +1,14 @@ +'use strict' + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +export default function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url) +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.d.ts b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.d.ts new file mode 100644 index 0000000..e939ce1 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.d.ts @@ -0,0 +1,116 @@ +type AnyObject = Record<string | number | symbol, any> +type HttpPromise<T> = Promise<HttpResponse<T>>; +type Tasks = UniApp.RequestTask | UniApp.UploadTask | UniApp.DownloadTask +export interface RequestTask { + abort: () => void; + offHeadersReceived: () => void; + onHeadersReceived: () => void; +} +export interface HttpRequestConfig<T = Tasks> { + /** 璇锋眰鍩哄湴鍧� */ + baseURL?: string; + /** 璇锋眰鏈嶅姟鍣ㄦ帴鍙e湴鍧� */ + url?: string; + + /** 璇锋眰鏌ヨ鍙傛暟锛岃嚜鍔ㄦ嫾鎺ヤ负鏌ヨ瀛楃涓� */ + params?: AnyObject; + /** 璇锋眰浣撳弬鏁� */ + data?: AnyObject; + + /** 鏂囦欢瀵瑰簲鐨� key */ + name?: string; + /** HTTP 璇锋眰涓叾浠栭澶栫殑 form data */ + formData?: AnyObject; + /** 瑕佷笂浼犳枃浠惰祫婧愮殑璺緞銆� */ + filePath?: string; + /** 闇�瑕佷笂浼犵殑鏂囦欢鍒楄〃銆備娇鐢� files 鏃讹紝filePath 鍜� name 涓嶇敓鏁堬紝App銆丠5锛� 2.6.15+锛� */ + files?: Array<{ + name?: string; + file?: File; + uri: string; + }>; + /** 瑕佷笂浼犵殑鏂囦欢瀵硅薄锛屼粎H5锛�2.6.15+锛夋敮鎸� */ + file?: File; + + /** 璇锋眰澶翠俊鎭� */ + header?: AnyObject; + /** 璇锋眰鏂瑰紡 */ + method?: "GET" | "POST" | "PUT" | "DELETE" | "CONNECT" | "HEAD" | "OPTIONS" | "TRACE" | "UPLOAD" | "DOWNLOAD"; + /** 濡傛灉璁句负 json锛屼細灏濊瘯瀵硅繑鍥炵殑鏁版嵁鍋氫竴娆� JSON.parse */ + dataType?: string; + /** 璁剧疆鍝嶅簲鐨勬暟鎹被鍨嬶紝鏀粯瀹濆皬绋嬪簭涓嶆敮鎸� */ + responseType?: "text" | "arraybuffer"; + /** 鑷畾涔夊弬鏁� */ + custom?: AnyObject; + /** 瓒呮椂鏃堕棿锛屼粎寰俊灏忕▼搴忥紙2.10.0锛夈�佹敮浠樺疂灏忕▼搴忔敮鎸� */ + timeout?: number; + /** DNS瑙f瀽鏃朵紭鍏堜娇鐢╥pv4锛屼粎 App-Android 鏀寔 (HBuilderX 2.8.0+) */ + firstIpv4?: boolean; + /** 楠岃瘉 ssl 璇佷功 浠�5+App瀹夊崜绔敮鎸侊紙HBuilderX 2.3.3+锛� */ + sslVerify?: boolean; + /** 璺ㄥ煙璇锋眰鏃舵槸鍚︽惡甯﹀嚟璇侊紙cookies锛変粎H5鏀寔锛圚BuilderX 2.6.15+锛� */ + withCredentials?: boolean; + + /** 杩斿洖褰撳墠璇锋眰鐨則ask, options銆傝鍕垮湪姝ゅ淇敼options銆� */ + getTask?: (task: T, options: HttpRequestConfig<T>) => void; + /** 鍏ㄥ眬鑷畾涔夐獙璇佸櫒 */ + validateStatus?: (statusCode: number) => boolean | void; +} +export interface HttpResponse<T = any> { + config: HttpRequestConfig; + statusCode: number; + cookies: Array<string>; + data: T; + errMsg: string; + header: AnyObject; +} +export interface HttpUploadResponse<T = any> { + config: HttpRequestConfig; + statusCode: number; + data: T; + errMsg: string; +} +export interface HttpDownloadResponse extends HttpResponse { + tempFilePath: string; +} +export interface HttpError { + config: HttpRequestConfig; + statusCode?: number; + cookies?: Array<string>; + data?: any; + errMsg: string; + header?: AnyObject; +} +export interface HttpInterceptorManager<V, E = V> { + use( + onFulfilled?: (config: V) => Promise<V> | V, + onRejected?: (config: E) => Promise<E> | E + ): void; + eject(id: number): void; +} +export abstract class HttpRequestAbstract { + constructor(config?: HttpRequestConfig); + config: HttpRequestConfig; + interceptors: { + request: HttpInterceptorManager<HttpRequestConfig, HttpRequestConfig>; + response: HttpInterceptorManager<HttpResponse, HttpError>; + } + middleware<T = any>(config: HttpRequestConfig): HttpPromise<T>; + request<T = any>(config: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + get<T = any>(url: string, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + upload<T = any>(url: string, config?: HttpRequestConfig<UniApp.UploadTask>): HttpPromise<T>; + delete<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + head<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + post<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + put<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + connect<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + options<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + trace<T = any>(url: string, data?: AnyObject, config?: HttpRequestConfig<UniApp.RequestTask>): HttpPromise<T>; + + download(url: string, config?: HttpRequestConfig<UniApp.DownloadTask>): Promise<HttpDownloadResponse>; + + setConfig(onSend: (config: HttpRequestConfig) => HttpRequestConfig): void; +} + +declare class HttpRequest extends HttpRequestAbstract { } +export default HttpRequest; diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.js new file mode 100644 index 0000000..8fb2b44 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/index.js @@ -0,0 +1,3 @@ +import Request from './core/Request' + +export default Request diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils.js new file mode 100644 index 0000000..847283d --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils.js @@ -0,0 +1,131 @@ +'use strict' + +// utils is a library of generic helper functions non-specific to axios + +const { toString } = Object.prototype + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Array, otherwise false + */ +export function isArray(val) { + return toString.call(val) === '[object Array]' +} + +/** + * Determine if a value is an Object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Object, otherwise false + */ +export function isObject(val) { + return val !== null && typeof val === 'object' +} + +/** + * Determine if a value is a Date + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Date, otherwise false + */ +export function isDate(val) { + return toString.call(val) === '[object Date]' +} + +/** + * Determine if a value is a URLSearchParams object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +export function isURLSearchParams(val) { + return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams +} + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + */ +export function forEach(obj, fn) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return + } + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /* eslint no-param-reassign:0 */ + obj = [obj] + } + + if (isArray(obj)) { + // Iterate over array values + for (let i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj) + } + } else { + // Iterate over object keys + for (const key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + fn.call(null, obj[key], key, obj) + } + } + } +} + +/** + * 鏄惁涓篵oolean 鍊� + * @param val + * @returns {boolean} + */ +export function isBoolean(val) { + return typeof val === 'boolean' +} + +/** + * 鏄惁涓虹湡姝g殑瀵硅薄{} new Object + * @param {any} obj - 妫�娴嬬殑瀵硅薄 + * @returns {boolean} + */ +export function isPlainObject(obj) { + return Object.prototype.toString.call(obj) === '[object Object]' +} + +/** + * Function equal to merge with the difference being that no reference + * to original objects is kept. + * + * @see merge + * @param {Object} obj1 Object to merge + * @returns {Object} Result of all merge properties + */ +export function deepMerge(/* obj1, obj2, obj3, ... */) { + const result = {} + function assignValue(val, key) { + if (typeof result[key] === 'object' && typeof val === 'object') { + result[key] = deepMerge(result[key], val) + } else if (typeof val === 'object') { + result[key] = deepMerge({}, val) + } else { + result[key] = val + } + } + for (let i = 0, l = arguments.length; i < l; i++) { + forEach(arguments[i], assignValue) + } + return result +} + +export function isUndefined(val) { + return typeof val === 'undefined' +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils/clone.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils/clone.js new file mode 100644 index 0000000..2fee704 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/luch-request/utils/clone.js @@ -0,0 +1,264 @@ +/* eslint-disable */ +var clone = (function() { + 'use strict'; + + function _instanceof(obj, type) { + return type != null && obj instanceof type; + } + + var nativeMap; + try { + nativeMap = Map; + } catch(_) { + // maybe a reference error because no `Map`. Give it a dummy value that no + // value will ever be an instanceof. + nativeMap = function() {}; + } + + var nativeSet; + try { + nativeSet = Set; + } catch(_) { + nativeSet = function() {}; + } + + var nativePromise; + try { + nativePromise = Promise; + } catch(_) { + nativePromise = function() {}; + } + + /** + * Clones (copies) an Object using deep copying. + * + * This function supports circular references by default, but if you are certain + * there are no circular references in your object, you can save some CPU time + * by calling clone(obj, false). + * + * Caution: if `circular` is false and `parent` contains circular references, + * your program may enter an infinite loop and crash. + * + * @param `parent` - the object to be cloned + * @param `circular` - set to true if the object to be cloned may contain + * circular references. (optional - true by default) + * @param `depth` - set to a number if the object is only to be cloned to + * a particular depth. (optional - defaults to Infinity) + * @param `prototype` - sets the prototype to be used when cloning an object. + * (optional - defaults to parent prototype). + * @param `includeNonEnumerable` - set to true if the non-enumerable properties + * should be cloned as well. Non-enumerable properties on the prototype + * chain will be ignored. (optional - false by default) + */ + function clone(parent, circular, depth, prototype, includeNonEnumerable) { + if (typeof circular === 'object') { + depth = circular.depth; + prototype = circular.prototype; + includeNonEnumerable = circular.includeNonEnumerable; + circular = circular.circular; + } + // maintain two arrays for circular references, where corresponding parents + // and children have the same index + var allParents = []; + var allChildren = []; + + var useBuffer = typeof Buffer != 'undefined'; + + if (typeof circular == 'undefined') + circular = true; + + if (typeof depth == 'undefined') + depth = Infinity; + + // recurse this function so we don't reset allParents and allChildren + function _clone(parent, depth) { + // cloning null always returns null + if (parent === null) + return null; + + if (depth === 0) + return parent; + + var child; + var proto; + if (typeof parent != 'object') { + return parent; + } + + if (_instanceof(parent, nativeMap)) { + child = new nativeMap(); + } else if (_instanceof(parent, nativeSet)) { + child = new nativeSet(); + } else if (_instanceof(parent, nativePromise)) { + child = new nativePromise(function (resolve, reject) { + parent.then(function(value) { + resolve(_clone(value, depth - 1)); + }, function(err) { + reject(_clone(err, depth - 1)); + }); + }); + } else if (clone.__isArray(parent)) { + child = []; + } else if (clone.__isRegExp(parent)) { + child = new RegExp(parent.source, __getRegExpFlags(parent)); + if (parent.lastIndex) child.lastIndex = parent.lastIndex; + } else if (clone.__isDate(parent)) { + child = new Date(parent.getTime()); + } else if (useBuffer && Buffer.isBuffer(parent)) { + if (Buffer.from) { + // Node.js >= 5.10.0 + child = Buffer.from(parent); + } else { + // Older Node.js versions + child = new Buffer(parent.length); + parent.copy(child); + } + return child; + } else if (_instanceof(parent, Error)) { + child = Object.create(parent); + } else { + if (typeof prototype == 'undefined') { + proto = Object.getPrototypeOf(parent); + child = Object.create(proto); + } + else { + child = Object.create(prototype); + proto = prototype; + } + } + + if (circular) { + var index = allParents.indexOf(parent); + + if (index != -1) { + return allChildren[index]; + } + allParents.push(parent); + allChildren.push(child); + } + + if (_instanceof(parent, nativeMap)) { + parent.forEach(function(value, key) { + var keyChild = _clone(key, depth - 1); + var valueChild = _clone(value, depth - 1); + child.set(keyChild, valueChild); + }); + } + if (_instanceof(parent, nativeSet)) { + parent.forEach(function(value) { + var entryChild = _clone(value, depth - 1); + child.add(entryChild); + }); + } + + for (var i in parent) { + var attrs = Object.getOwnPropertyDescriptor(parent, i); + if (attrs) { + child[i] = _clone(parent[i], depth - 1); + } + + try { + var objProperty = Object.getOwnPropertyDescriptor(parent, i); + if (objProperty.set === 'undefined') { + // no setter defined. Skip cloning this property + continue; + } + child[i] = _clone(parent[i], depth - 1); + } catch(e){ + if (e instanceof TypeError) { + // when in strict mode, TypeError will be thrown if child[i] property only has a getter + // we can't do anything about this, other than inform the user that this property cannot be set. + continue + } else if (e instanceof ReferenceError) { + //this may happen in non strict mode + continue + } + } + + } + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(parent); + for (var i = 0; i < symbols.length; i++) { + // Don't need to worry about cloning a symbol because it is a primitive, + // like a number or string. + var symbol = symbols[i]; + var descriptor = Object.getOwnPropertyDescriptor(parent, symbol); + if (descriptor && !descriptor.enumerable && !includeNonEnumerable) { + continue; + } + child[symbol] = _clone(parent[symbol], depth - 1); + Object.defineProperty(child, symbol, descriptor); + } + } + + if (includeNonEnumerable) { + var allPropertyNames = Object.getOwnPropertyNames(parent); + for (var i = 0; i < allPropertyNames.length; i++) { + var propertyName = allPropertyNames[i]; + var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName); + if (descriptor && descriptor.enumerable) { + continue; + } + child[propertyName] = _clone(parent[propertyName], depth - 1); + Object.defineProperty(child, propertyName, descriptor); + } + } + + return child; + } + + return _clone(parent, depth); + } + + /** + * Simple flat clone using prototype, accepts only objects, usefull for property + * override on FLAT configuration object (no nested props). + * + * USE WITH CAUTION! This may not behave as you wish if you do not know how this + * works. + */ + clone.clonePrototype = function clonePrototype(parent) { + if (parent === null) + return null; + + var c = function () {}; + c.prototype = parent; + return new c(); + }; + +// private utility functions + + function __objToStr(o) { + return Object.prototype.toString.call(o); + } + clone.__objToStr = __objToStr; + + function __isDate(o) { + return typeof o === 'object' && __objToStr(o) === '[object Date]'; + } + clone.__isDate = __isDate; + + function __isArray(o) { + return typeof o === 'object' && __objToStr(o) === '[object Array]'; + } + clone.__isArray = __isArray; + + function __isRegExp(o) { + return typeof o === 'object' && __objToStr(o) === '[object RegExp]'; + } + clone.__isRegExp = __isRegExp; + + function __getRegExpFlags(re) { + var flags = ''; + if (re.global) flags += 'g'; + if (re.ignoreCase) flags += 'i'; + if (re.multiline) flags += 'm'; + return flags; + } + clone.__getRegExpFlags = __getRegExpFlags; + + return clone; +})(); + +export default clone diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/button.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/button.js new file mode 100644 index 0000000..0c019c2 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/button.js @@ -0,0 +1,13 @@ +export default { + props: { + lang: String, + sessionFrom: String, + sendMessageTitle: String, + sendMessagePath: String, + sendMessageImg: String, + showMessageCard: Boolean, + appParameter: String, + formType: String, + openType: String + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mixin.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mixin.js new file mode 100644 index 0000000..f41a178 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mixin.js @@ -0,0 +1,160 @@ +module.exports = { + // 瀹氫箟姣忎釜缁勪欢閮藉彲鑳介渶瑕佺敤鍒扮殑澶栭儴鏍峰紡浠ュ強绫诲悕 + props: { + // 姣忎釜缁勪欢閮芥湁鐨勭埗缁勪欢浼犻�掔殑鏍峰紡锛屽彲浠ヤ负瀛楃涓叉垨鑰呭璞″舰寮� + customStyle: { + type: [Object, String], + default: () => ({}) + }, + customClass: { + type: String, + default: '' + }, + // 璺宠浆鐨勯〉闈㈣矾寰� + url: { + type: String, + default: '' + }, + // 椤甸潰璺宠浆鐨勭被鍨� + linkType: { + type: String, + default: 'navigateTo' + } + }, + data() { + return {} + }, + onLoad() { + // getRect鎸傝浇鍒�$u涓婏紝鍥犱负杩欐柟娉曢渶瑕佷娇鐢╥n(this)锛屾墍浠ユ棤娉曟妸瀹冪嫭绔嬫垚涓�涓崟鐙殑鏂囦欢瀵煎嚭 + this.$u.getRect = this.$uGetRect + }, + created() { + // 缁勪欢褰撲腑锛屽彧鏈塩reated澹版槑鍛ㄦ湡锛屼负浜嗚兘鍦ㄧ粍浠朵娇鐢紝鏁呬篃鍦╟reated涓皢鏂规硶鎸傝浇鍒�$u + this.$u.getRect = this.$uGetRect + }, + computed: { + // 鍦�2.x鐗堟湰涓紝灏嗕細鎶�$u鎸傝浇鍒皍ni瀵硅薄涓嬶紝瀵艰嚧鍦ㄦā鏉夸腑鏃犳硶浣跨敤uni.$u.xxx褰㈠紡 + // 鎵�浠ヨ繖閲岄�氳繃computed璁$畻灞炴�у皢鍏堕檮鍔犲埌this.$u涓婏紝灏卞彲浠ュ湪妯℃澘鎴栬�卝s涓娇鐢╱ni.$u.xxx + // 鍙湪nvue鐜閫氳繃姝ゆ柟寮忓紩鍏ュ畬鏁寸殑$u锛屽叾浠栧钩鍙颁細鍑虹幇鎬ц兘闂锛岄潪nvue鍒欐寜闇�寮曞叆锛堜富瑕佸師鍥犳槸props杩囧ぇ锛� + $u() { + // #ifndef APP-NVUE + // 鍦ㄩ潪nvue绔紝绉婚櫎props锛宧ttp锛宮ixin绛夊璞★紝閬垮厤鍦ㄥ皬绋嬪簭setData鏃舵暟鎹繃澶у奖鍝嶆�ц兘 + return uni.$u.deepMerge(uni.$u, { + props: undefined, + http: undefined, + mixin: undefined + }) + // #endif + // #ifdef APP-NVUE + return uni.$u + // #endif + }, + /** + * 鐢熸垚bem瑙勫垯绫诲悕 + * 鐢变簬寰俊灏忕▼搴忥紝H5锛宯vue涔嬮棿缁戝畾class鐨勫樊寮傦紝鏃犳硶閫氳繃:class="[bem()]"鐨勫舰寮忚繘琛屽悓鐢� + * 鏁呴噰鐢ㄥ涓嬫姌涓仛娉曪紝鏈�鍚庤繑鍥炵殑鏄暟缁勶紙涓�鑸钩鍙帮級鎴栧瓧绗︿覆锛堟敮浠樺疂鍜屽瓧鑺傝烦鍔ㄥ钩鍙帮級锛岀被浼糩'a', 'b', 'c']鎴�'a b c'鐨勫舰寮� + * @param {String} name 缁勪欢鍚嶇О + * @param {Array} fixed 涓�鐩翠細瀛樺湪鐨勭被鍚� + * @param {Array} change 浼氭牴鎹彉閲忓�间负true鎴栬�協alse鑰屽嚭鐜版垨鑰呴殣钘忕殑绫诲悕 + * @returns {Array|string} + */ + bem() { + return function (name, fixed, change) { + // 绫诲悕鍓嶇紑 + const prefix = `u-${name}--` + const classes = {} + if (fixed) { + fixed.map((item) => { + // 杩欓噷鐨勭被鍚嶏紝浼氫竴鐩村瓨鍦� + classes[prefix + this[item]] = true + }) + } + if (change) { + change.map((item) => { + // 杩欓噷鐨勭被鍚嶏紝浼氭牴鎹畉his[item]鐨勫�间负true鎴栬�協alse锛岃�岃繘琛屾坊鍔犳垨鑰呯Щ闄ゆ煇涓�涓被 + this[item] ? (classes[prefix + item] = this[item]) : (delete classes[prefix + item]) + }) + } + return Object.keys(classes) + // 鏀粯瀹濓紝澶存潯灏忕▼搴忔棤娉曞姩鎬佺粦瀹氫竴涓暟缁勭被鍚嶏紝鍚﹀垯瑙f瀽鍑烘潵鐨勭粨鏋滀細甯︽湁","锛岃�屽鑷村け鏁� + // #ifdef MP-ALIPAY || MP-TOUTIAO || MP-LARK + .join(' ') + // #endif + } + } + }, + methods: { + // 璺宠浆鏌愪竴涓〉闈� + openPage(urlKey = 'url') { + const url = this[urlKey] + if (url) { + // 鎵ц绫讳技uni.navigateTo鐨勬柟娉� + uni[this.linkType]({ + url + }) + } + }, + // 鏌ヨ鑺傜偣淇℃伅 + // 鐩墠姝ゆ柟娉曞湪鏀粯瀹濆皬绋嬪簭涓棤娉曡幏鍙栫粍浠惰窡鎺ョ偣鐨勫昂瀵革紝涓烘敮浠樺疂鐨刡ug(2020-07-21) + // 瑙e喅鍔炴硶涓哄湪缁勪欢鏍归儴鍐嶅涓�涓病鏈変换浣曚綔鐢ㄧ殑view鍏冪礌 + $uGetRect(selector, all) { + return new Promise((resolve) => { + uni.createSelectorQuery() + .in(this)[all ? 'selectAll' : 'select'](selector) + .boundingClientRect((rect) => { + if (all && Array.isArray(rect) && rect.length) { + resolve(rect) + } + if (!all && rect) { + resolve(rect) + } + }) + .exec() + }) + }, + getParentData(parentName = '') { + // 閬垮厤鍦╟reated涓幓瀹氫箟parent鍙橀噺 + if (!this.parent) this.parent = {} + // 杩欓噷鐨勬湰璐ㄥ師鐞嗘槸锛岄�氳繃鑾峰彇鐖剁粍浠跺疄渚�(涔熷嵆绫讳技u-radio鐨勭埗缁勪欢u-radio-group鐨則his) + // 灏嗙埗缁勪欢this涓搴旂殑鍙傛暟锛岃祴鍊肩粰鏈粍浠�(u-radio鐨則his)鐨刾arentData瀵硅薄涓搴旂殑灞炴�� + // 涔嬫墍浠ラ渶瑕佽繖涔堝仛锛屾槸鍥犱负鎵�鏈夌涓紝澶存潯灏忕▼搴忎笉鏀寔閫氳繃this.parent.xxx鍘荤洃鍚埗缁勪欢鍙傛暟鐨勫彉鍖� + // 姝ゅ骞朵笉浼氳嚜鍔ㄦ洿鏂板瓙缁勪欢鐨勬暟鎹紝鑰屾槸渚濊禆鐖剁粍浠秛-radio-group鍘荤洃鍚琩ata鐨勫彉鍖栵紝鎵嬪姩璋冪敤鏇存柊瀛愮粍浠剁殑鏂规硶鍘婚噸鏂拌幏鍙� + this.parent = uni.$u.$parent.call(this, parentName) + if (this.parent.children) { + // 濡傛灉鐖剁粍浠剁殑children涓嶅瓨鍦ㄦ湰缁勪欢鐨勫疄渚嬶紝鎵嶅皢鏈疄渚嬫坊鍔犲埌鐖剁粍浠剁殑children涓� + this.parent.children.indexOf(this) === -1 && this.parent.children.push(this) + } + if (this.parent && this.parentData) { + // 鍘嗛亶parentData涓殑灞炴�э紝灏唒arent涓殑鍚屽悕灞炴�ц祴鍊肩粰parentData + Object.keys(this.parentData).map((key) => { + this.parentData[key] = this.parent[key] + }) + } + }, + // 闃绘浜嬩欢鍐掓场 + preventEvent(e) { + e && typeof (e.stopPropagation) === 'function' && e.stopPropagation() + }, + // 绌烘搷浣� + noop(e) { + this.preventEvent(e) + } + }, + onReachBottom() { + uni.$emit('uOnReachBottom') + }, + beforeDestroy() { + // 鍒ゆ柇褰撳墠椤甸潰鏄惁瀛樺湪parent鍜宑hldren锛屼竴鑸湪checkbox鍜宑heckbox-group鐖跺瓙鑱斿姩鐨勫満鏅細鏈夋鎯呭喌 + // 缁勪欢閿�姣佹椂锛岀Щ闄ゅ瓙缁勪欢鍦ㄧ埗缁勪欢children鏁扮粍涓殑瀹炰緥锛岄噴鏀捐祫婧愶紝閬垮厤鏁版嵁娣蜂贡 + if (this.parent && uni.$u.test.array(this.parent.children)) { + // 缁勪欢閿�姣佹椂锛岀Щ闄ょ埗缁勪欢涓殑children鏁扮粍涓搴旂殑瀹炰緥 + const childrenList = this.parent.children + childrenList.map((child, index) => { + // 濡傛灉鐩哥瓑锛屽垯绉婚櫎 + if (child === this) { + childrenList.splice(index, 1) + } + }) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpMixin.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpMixin.js new file mode 100644 index 0000000..29e7e65 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpMixin.js @@ -0,0 +1,8 @@ +export default { + // #ifdef MP-WEIXIN + // 灏嗚嚜瀹氫箟鑺傜偣璁剧疆鎴愯櫄鎷熺殑锛屾洿鍔犳帴杩慥ue缁勪欢鐨勮〃鐜帮紝鑳芥洿濂界殑浣跨敤flex灞炴�� + options: { + virtualHost: true + } + // #endif +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpShare.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpShare.js new file mode 100644 index 0000000..b07bbd3 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/mpShare.js @@ -0,0 +1,13 @@ +module.exports = { + onLoad() { + // 璁剧疆榛樿鐨勮浆鍙戝弬鏁� + uni.$u.mpShare = { + title: '', // 榛樿涓哄皬绋嬪簭鍚嶇О + path: '', // 榛樿涓哄綋鍓嶉〉闈㈣矾寰� + imageUrl: '' // 榛樿涓哄綋鍓嶉〉闈㈢殑鎴浘 + } + }, + onShareAppMessage() { + return uni.$u.mpShare + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/openType.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/openType.js new file mode 100644 index 0000000..1216181 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/openType.js @@ -0,0 +1,25 @@ +export default { + props: { + openType: String + }, + methods: { + onGetUserInfo(event) { + this.$emit('getuserinfo', event.detail) + }, + onContact(event) { + this.$emit('contact', event.detail) + }, + onGetPhoneNumber(event) { + this.$emit('getphonenumber', event.detail) + }, + onError(event) { + this.$emit('error', event.detail) + }, + onLaunchApp(event) { + this.$emit('launchapp', event.detail) + }, + onOpenSetting(event) { + this.$emit('opensetting', event.detail) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/style.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/style.js new file mode 100644 index 0000000..2660180 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/style.js @@ -0,0 +1,228 @@ +export default { + props: { + // flex鎺掑垪鏂瑰紡 + flexDirection: { + type: String, + default: '' + }, + // flex-direction鐨勭畝鍐� + fd: { + type: String, + default: '' + }, + // 灞曠ず绫诲瀷 + display: { + type: String, + default: '' + }, + // display绠�鍐� + d: { + type: String, + default: '' + }, + // 涓昏酱鎺掑垪鏂瑰紡 + justifyContent: { + type: String, + default: '' + }, + // justifyContent鐨勭畝鍐� + jc: { + type: String, + default: '' + }, + // 绾佃酱鎺掑垪鏂瑰紡 + alignItems: { + type: String, + default: '' + }, + // align-items鐨勭畝鍐� + ai: { + type: String, + default: '' + }, + color: { + type: String, + default: '' + }, + // color绠�鍐� + c: { + type: String, + default: '' + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: 0 + }, + // font-size绠�鍐� + fs: { + type: [String, Number], + default: '' + }, + margin: { + type: [String, Number], + default: 0 + }, + // margin绠�鍐� + m: { + type: [String, Number], + default: 0 + }, + // margin-top + marginTop: { + type: [String, Number], + default: 0 + }, + // margin-top绠�鍐� + mt: { + type: [String, Number], + default: 0 + }, + // margin-right + marginRight: { + type: [String, Number], + default: 0 + }, + // margin-right绠�鍐� + mr: { + type: [String, Number], + default: 0 + }, + // margin-bottom + marginBottom: { + type: [String, Number], + default: 0 + }, + // margin-bottom绠�鍐� + mb: { + type: [String, Number], + default: 0 + }, + // margin-left + marginLeft: { + type: [String, Number], + default: 0 + }, + // margin-left绠�鍐� + ml: { + type: [String, Number], + default: 0 + }, + // padding-left + paddingLeft: { + type: [String, Number], + default: 0 + }, + // padding-left绠�鍐� + pl: { + type: [String, Number], + default: 0 + }, + // padding-top + paddingTop: { + type: [String, Number], + default: 0 + }, + // padding-top绠�鍐� + pt: { + type: [String, Number], + default: 0 + }, + // padding-right + paddingRight: { + type: [String, Number], + default: 0 + }, + // padding-right绠�鍐� + pr: { + type: [String, Number], + default: 0 + }, + // padding-bottom + paddingBottom: { + type: [String, Number], + default: 0 + }, + // padding-bottom绠�鍐� + pb: { + type: [String, Number], + default: 0 + }, + // border-radius + borderRadius: { + type: [String, Number], + default: 0 + }, + // border-radius绠�鍐� + radius: { + type: [String, Number], + default: 0 + }, + // transform + transform: { + type: String, + default: '' + }, + // 瀹氫綅 + position: { + type: String, + default: '' + }, + // position绠�鍐� + pos: { + type: String, + default: '' + }, + // 瀹藉害 + width: { + type: [String, Number], + default: null + }, + // width绠�鍐� + w: { + type: [String, Number], + default: null + }, + // 楂樺害 + height: { + type: [String, Number], + default: null + }, + // height绠�鍐� + h: { + type: [String, Number], + default: null + }, + top: { + type: [String, Number], + default: 0 + }, + right: { + type: [String, Number], + default: 0 + }, + bottom: { + type: [String, Number], + default: 0 + }, + left: { + type: [String, Number], + default: 0 + } + }, + computed: { + viewStyle() { + const style = {} + const addStyle = uni.$u.addStyle(this.width || this.w) && (style.width = addStyle(this.width || this.w))(this.height || this.h) && (style.height = addStyle(this.height || this.h))(this.margin || this.m) && (style.margin = addStyle(this.margin || this.m))(this.marginTop || this.mt) && (style.marginTop = addStyle(this.marginTop || this.mt))(this.marginRight || this.mr) && (style.marginRight = addStyle(this.marginRight || this.mr))(this.marginBottom || this.mb) && (style.marginBottom = addStyle(this.marginBottom || this.mb))(this.marginLeft || this.ml) && (style.marginLeft = addStyle(this.marginLeft || this.ml))(this.padding || this.p) && (style.padding = addStyle(this.padding || this.p))(this.paddingTop || this.pt) && (style.paddingTop = addStyle(this.paddingTop || this.pt))(this.paddingRight || this.pr) && (style.paddingRight = addStyle(this.paddingRight || this.pr))(this.paddingBottom || this.pb) && (style.paddingBottom = addStyle(this.paddingBottom || this.pb))(this.paddingLeft || this.pl) && (style.paddingLeft = addStyle(this.paddingLeft || this.pl))(this.color || this.c) && (style.color = this.color || this.c)(this.fontSize || this.fs) && (style.fontSize = this.fontSize || this.fs)(this.borderRadius || this.radius) && (style.borderRadius = this.borderRadius || this.radius)(this.position || this.pos) && (this.position = this.position || this.pos)(this.flexDirection || this.fd) && (this.flexDirection = this.flexDirection || this.fd)(this.justifyContent || jc) && (this.justifyContent = this.justifyContent || jc)(this.alignItems || ai) && (this.alignItems = this.alignItems || ai) + + return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle)) + } + }, + methods: { + // 鑾峰彇margin鎴栬�卲adding鐨勫崟浣嶏紝姣斿padding: 0 20杞负padding: 0 20px + getUnit(unit = '') { + // 鍙栧嚭涓ょ绌烘牸锛屽垎闅旀垚鏁扮粍锛屽啀瀵规暟缁勭殑姣忎釜鍏冪礌娣诲姞鍗曚綅锛屾渶鍚庡啀鍚堝苟鎴愬瓧绗︿覆 + return uni.$u.trim(unit).split(' ').map((item) => uni.$u.addUnit(item)).join(' ') + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/touch.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/touch.js new file mode 100644 index 0000000..0ecbd88 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/mixin/touch.js @@ -0,0 +1,59 @@ +const MIN_DISTANCE = 10 + +function getDirection(x, y) { + if (x > y && x > MIN_DISTANCE) { + return 'horizontal' + } + if (y > x && y > MIN_DISTANCE) { + return 'vertical' + } + return '' +} + +export default { + methods: { + getTouchPoint(e) { + if (!e) { + return { + x: 0, + y: 0 + } + } if (e.touches && e.touches[0]) { + return { + x: e.touches[0].pageX, + y: e.touches[0].pageY + } + } if (e.changedTouches && e.changedTouches[0]) { + return { + x: e.changedTouches[0].pageX, + y: e.changedTouches[0].pageY + } + } + return { + x: e.clientX || 0, + y: e.clientY || 0 + } + }, + resetTouchStatus() { + this.direction = '' + this.deltaX = 0 + this.deltaY = 0 + this.offsetX = 0 + this.offsetY = 0 + }, + touchStart(event) { + this.resetTouchStatus() + const touch = this.getTouchPoint(event) + this.startX = touch.x + this.startY = touch.y + }, + touchMove(event) { + const touch = this.getTouchPoint(event) + this.deltaX = touch.x - this.startX + this.deltaY = touch.y - this.startY + this.offsetX = Math.abs(this.deltaX) + this.offsetY = Math.abs(this.deltaY) + this.direction = this.direction || getDirection(this.offsetX, this.offsetY) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/async-validator.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/async-validator.js new file mode 100644 index 0000000..9e114df --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/async-validator.js @@ -0,0 +1,1343 @@ +function _extends() { + _extends = Object.assign || function (target) { + for (let i = 1; i < arguments.length; i++) { + const source = arguments[i] + + for (const key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key] + } + } + } + + return target + } + + return _extends.apply(this, arguments) +} + +/* eslint no-console:0 */ +const formatRegExp = /%[sdj%]/g +let warning = function warning() {} // don't print warning message when in production env or node runtime + +if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV !== 'production' && typeof window + !== 'undefined' && typeof document !== 'undefined') { + warning = function warning(type, errors) { + if (typeof console !== 'undefined' && console.warn) { + if (errors.every((e) => typeof e === 'string')) { + console.warn(type, errors) + } + } + } +} + +function convertFieldsError(errors) { + if (!errors || !errors.length) return null + const fields = {} + errors.forEach((error) => { + const { field } = error + fields[field] = fields[field] || [] + fields[field].push(error) + }) + return fields +} + +function format() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key] + } + + let i = 1 + const f = args[0] + const len = args.length + + if (typeof f === 'function') { + return f.apply(null, args.slice(1)) + } + + if (typeof f === 'string') { + let str = String(f).replace(formatRegExp, (x) => { + if (x === '%%') { + return '%' + } + + if (i >= len) { + return x + } + + switch (x) { + case '%s': + return String(args[i++]) + + case '%d': + return Number(args[i++]) + + case '%j': + try { + return JSON.stringify(args[i++]) + } catch (_) { + return '[Circular]' + } + + break + + default: + return x + } + }) + + for (let arg = args[i]; i < len; arg = args[++i]) { + str += ` ${arg}` + } + + return str + } + + return f +} + +function isNativeStringType(type) { + return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern' +} + +function isEmptyValue(value, type) { + if (value === undefined || value === null) { + return true + } + + if (type === 'array' && Array.isArray(value) && !value.length) { + return true + } + + if (isNativeStringType(type) && typeof value === 'string' && !value) { + return true + } + + return false +} + +function asyncParallelArray(arr, func, callback) { + const results = [] + let total = 0 + const arrLength = arr.length + + function count(errors) { + results.push.apply(results, errors) + total++ + + if (total === arrLength) { + callback(results) + } + } + + arr.forEach((a) => { + func(a, count) + }) +} + +function asyncSerialArray(arr, func, callback) { + let index = 0 + const arrLength = arr.length + + function next(errors) { + if (errors && errors.length) { + callback(errors) + return + } + + const original = index + index += 1 + + if (original < arrLength) { + func(arr[original], next) + } else { + callback([]) + } + } + + next([]) +} + +function flattenObjArr(objArr) { + const ret = [] + Object.keys(objArr).forEach((k) => { + ret.push.apply(ret, objArr[k]) + }) + return ret +} + +function asyncMap(objArr, option, func, callback) { + if (option.first) { + const _pending = new Promise((resolve, reject) => { + const next = function next(errors) { + callback(errors) + return errors.length ? reject({ + errors, + fields: convertFieldsError(errors) + }) : resolve() + } + + const flattenArr = flattenObjArr(objArr) + asyncSerialArray(flattenArr, func, next) + }) + + _pending.catch((e) => e) + + return _pending + } + + let firstFields = option.firstFields || [] + + if (firstFields === true) { + firstFields = Object.keys(objArr) + } + + const objArrKeys = Object.keys(objArr) + const objArrLength = objArrKeys.length + let total = 0 + const results = [] + const pending = new Promise((resolve, reject) => { + const next = function next(errors) { + results.push.apply(results, errors) + total++ + + if (total === objArrLength) { + callback(results) + return results.length ? reject({ + errors: results, + fields: convertFieldsError(results) + }) : resolve() + } + } + + if (!objArrKeys.length) { + callback(results) + resolve() + } + + objArrKeys.forEach((key) => { + const arr = objArr[key] + + if (firstFields.indexOf(key) !== -1) { + asyncSerialArray(arr, func, next) + } else { + asyncParallelArray(arr, func, next) + } + }) + }) + pending.catch((e) => e) + return pending +} + +function complementError(rule) { + return function (oe) { + if (oe && oe.message) { + oe.field = oe.field || rule.fullField + return oe + } + + return { + message: typeof oe === 'function' ? oe() : oe, + field: oe.field || rule.fullField + } + } +} + +function deepMerge(target, source) { + if (source) { + for (const s in source) { + if (source.hasOwnProperty(s)) { + const value = source[s] + + if (typeof value === 'object' && typeof target[s] === 'object') { + target[s] = { ...target[s], ...value } + } else { + target[s] = value + } + } + } + } + + return target +} + +/** + * Rule for validating required fields. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function required(rule, value, source, errors, options, type) { + if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) { + errors.push(format(options.messages.required, rule.fullField)) + } +} + +/** + * Rule for validating whitespace. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function whitespace(rule, value, source, errors, options) { + if (/^\s+$/.test(value) || value === '') { + errors.push(format(options.messages.whitespace, rule.fullField)) + } +} + +/* eslint max-len:0 */ + +const pattern = { + // http://emailregex.com/ + email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, + 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' + ), + hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i +} +var types = { + integer: function integer(value) { + return /^(-)?\d+$/.test(value); + }, + float: function float(value) { + return /^(-)?\d+(\.\d+)?$/.test(value); + }, + array: function array(value) { + return Array.isArray(value) + }, + regexp: function regexp(value) { + if (value instanceof RegExp) { + return true + } + + try { + return !!new RegExp(value) + } catch (e) { + return false + } + }, + date: function date(value) { + return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear + === 'function' + }, + number: function number(value) { + if (isNaN(value)) { + return false + } + + // 淇敼婧愮爜锛屽皢瀛楃涓叉暟鍊煎厛杞负鏁板�� + return typeof +value === 'number' + }, + object: function object(value) { + return typeof value === 'object' && !types.array(value) + }, + method: function method(value) { + return typeof value === 'function' + }, + email: function email(value) { + return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255 + }, + url: function url(value) { + return typeof value === 'string' && !!value.match(pattern.url) + }, + hex: function hex(value) { + return typeof value === 'string' && !!value.match(pattern.hex) + } +} +/** + * Rule for validating the type of a value. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function type(rule, value, source, errors, options) { + if (rule.required && value === undefined) { + required(rule, value, source, errors, options) + return + } + + const custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'] + const ruleType = rule.type + + if (custom.indexOf(ruleType) > -1) { + if (!types[ruleType](value)) { + errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type)) + } // straight typeof check + } else if (ruleType && typeof value !== rule.type) { + errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type)) + } +} + +/** + * Rule for validating minimum and maximum allowed values. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function range(rule, value, source, errors, options) { + const len = typeof rule.len === 'number' + const min = typeof rule.min === 'number' + const max = typeof rule.max === 'number' // 姝e垯鍖归厤鐮佺偣鑼冨洿浠嶶+010000涓�鐩村埌U+10FFFF鐨勬枃瀛楋紙琛ュ厖骞抽潰Supplementary Plane锛� + + const spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g + let val = value + let key = null + const num = typeof value === 'number' + const str = typeof value === 'string' + const arr = Array.isArray(value) + + if (num) { + key = 'number' + } else if (str) { + key = 'string' + } else if (arr) { + key = 'array' + } // if the value is not of a supported type for range validation + // the validation rule rule should use the + // type property to also test for a particular type + + if (!key) { + return false + } + + if (arr) { + val = value.length + } + + if (str) { + // 澶勭悊鐮佺偣澶т簬U+010000鐨勬枃瀛條ength灞炴�т笉鍑嗙‘鐨刡ug锛屽"馉馉馉".lenght !== 3 + val = value.replace(spRegexp, '_').length + } + + if (len) { + if (val !== rule.len) { + errors.push(format(options.messages[key].len, rule.fullField, rule.len)) + } + } else if (min && !max && val < rule.min) { + errors.push(format(options.messages[key].min, rule.fullField, rule.min)) + } else if (max && !min && val > rule.max) { + errors.push(format(options.messages[key].max, rule.fullField, rule.max)) + } else if (min && max && (val < rule.min || val > rule.max)) { + errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max)) + } +} + +const ENUM = 'enum' +/** + * Rule for validating a value exists in an enumerable list. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function enumerable(rule, value, source, errors, options) { + rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [] + + if (rule[ENUM].indexOf(value) === -1) { + errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))) + } +} + +/** + * Rule for validating a regular expression pattern. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function pattern$1(rule, value, source, errors, options) { + if (rule.pattern) { + if (rule.pattern instanceof RegExp) { + // if a RegExp instance is passed, reset `lastIndex` in case its `global` + // flag is accidentally set to `true`, which in a validation scenario + // is not necessary and the result might be misleading + rule.pattern.lastIndex = 0 + + if (!rule.pattern.test(value)) { + errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)) + } + } else if (typeof rule.pattern === 'string') { + const _pattern = new RegExp(rule.pattern) + + if (!_pattern.test(value)) { + errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)) + } + } + } +} + +const rules = { + required, + whitespace, + type, + range, + enum: enumerable, + pattern: pattern$1 +} + +/** + * Performs validation for string types. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function string(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value, 'string') && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options, 'string') + + if (!isEmptyValue(value, 'string')) { + rules.type(rule, value, source, errors, options) + rules.range(rule, value, source, errors, options) + rules.pattern(rule, value, source, errors, options) + + if (rule.whitespace === true) { + rules.whitespace(rule, value, source, errors, options) + } + } + } + + callback(errors) +} + +/** + * Validates a function. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function method(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules.type(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates a number. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function number(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (value === '') { + value = undefined + } + + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules.type(rule, value, source, errors, options) + rules.range(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates a boolean. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function _boolean(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules.type(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates the regular expression type. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function regexp(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (!isEmptyValue(value)) { + rules.type(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates a number is an integer. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function integer(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules.type(rule, value, source, errors, options) + rules.range(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates a number is a floating point number. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function floatFn(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules.type(rule, value, source, errors, options) + rules.range(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates an array. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function array(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value, 'array') && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options, 'array') + + if (!isEmptyValue(value, 'array')) { + rules.type(rule, value, source, errors, options) + rules.range(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates an object. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function object(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules.type(rule, value, source, errors, options) + } + } + + callback(errors) +} + +const ENUM$1 = 'enum' +/** + * Validates an enumerable list. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function enumerable$1(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (value !== undefined) { + rules[ENUM$1](rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Validates a regular expression pattern. + * + * Performs validation when a rule only contains + * a pattern property but is not declared as a string type. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function pattern$2(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value, 'string') && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (!isEmptyValue(value, 'string')) { + rules.pattern(rule, value, source, errors, options) + } + } + + callback(errors) +} + +function date(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + + if (!isEmptyValue(value)) { + let dateObject + + if (typeof value === 'number') { + dateObject = new Date(value) + } else { + dateObject = value + } + + rules.type(rule, dateObject, source, errors, options) + + if (dateObject) { + rules.range(rule, dateObject.getTime(), source, errors, options) + } + } + } + + callback(errors) +} + +function required$1(rule, value, callback, source, options) { + const errors = [] + const type = Array.isArray(value) ? 'array' : typeof value + rules.required(rule, value, source, errors, options, type) + callback(errors) +} + +function type$1(rule, value, callback, source, options) { + const ruleType = rule.type + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value, ruleType) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options, ruleType) + + if (!isEmptyValue(value, ruleType)) { + rules.type(rule, value, source, errors, options) + } + } + + callback(errors) +} + +/** + * Performs validation for any type. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function any(rule, value, callback, source, options) { + const errors = [] + const validate = rule.required || !rule.required && source.hasOwnProperty(rule.field) + + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback() + } + + rules.required(rule, value, source, errors, options) + } + + callback(errors) +} + +const validators = { + string, + method, + number, + boolean: _boolean, + regexp, + integer, + float: floatFn, + array, + object, + enum: enumerable$1, + pattern: pattern$2, + date, + url: type$1, + hex: type$1, + email: type$1, + required: required$1, + any +} + +function newMessages() { + return { + default: 'Validation error on field %s', + required: '%s is required', + enum: '%s must be one of %s', + whitespace: '%s cannot be empty', + date: { + format: '%s date %s is invalid for format %s', + parse: '%s date could not be parsed, %s is invalid ', + invalid: '%s date %s is invalid' + }, + types: { + string: '%s is not a %s', + method: '%s is not a %s (function)', + array: '%s is not an %s', + object: '%s is not an %s', + number: '%s is not a %s', + date: '%s is not a %s', + boolean: '%s is not a %s', + integer: '%s is not an %s', + float: '%s is not a %s', + regexp: '%s is not a valid %s', + email: '%s is not a valid %s', + url: '%s is not a valid %s', + hex: '%s is not a valid %s' + }, + string: { + len: '%s must be exactly %s characters', + min: '%s must be at least %s characters', + max: '%s cannot be longer than %s characters', + range: '%s must be between %s and %s characters' + }, + number: { + len: '%s must equal %s', + min: '%s cannot be less than %s', + max: '%s cannot be greater than %s', + range: '%s must be between %s and %s' + }, + array: { + len: '%s must be exactly %s in length', + min: '%s cannot be less than %s in length', + max: '%s cannot be greater than %s in length', + range: '%s must be between %s and %s in length' + }, + pattern: { + mismatch: '%s value %s does not match pattern %s' + }, + clone: function clone() { + const cloned = JSON.parse(JSON.stringify(this)) + cloned.clone = this.clone + return cloned + } + } +} +const messages = newMessages() + +/** + * Encapsulates a validation schema. + * + * @param descriptor An object declaring validation rules + * for this schema. + */ + +function Schema(descriptor) { + this.rules = null + this._messages = messages + this.define(descriptor) +} + +Schema.prototype = { + messages: function messages(_messages) { + if (_messages) { + this._messages = deepMerge(newMessages(), _messages) + } + + return this._messages + }, + define: function define(rules) { + if (!rules) { + throw new Error('Cannot configure a schema with no rules') + } + + if (typeof rules !== 'object' || Array.isArray(rules)) { + throw new Error('Rules must be an object') + } + + this.rules = {} + let z + let item + + for (z in rules) { + if (rules.hasOwnProperty(z)) { + item = rules[z] + this.rules[z] = Array.isArray(item) ? item : [item] + } + } + }, + validate: function validate(source_, o, oc) { + const _this = this + + if (o === void 0) { + o = {} + } + + if (oc === void 0) { + oc = function oc() {} + } + + let source = source_ + let options = o + let callback = oc + + if (typeof options === 'function') { + callback = options + options = {} + } + + if (!this.rules || Object.keys(this.rules).length === 0) { + if (callback) { + callback() + } + + return Promise.resolve() + } + + function complete(results) { + let i + let errors = [] + let fields = {} + + function add(e) { + if (Array.isArray(e)) { + let _errors + + errors = (_errors = errors).concat.apply(_errors, e) + } else { + errors.push(e) + } + } + + for (i = 0; i < results.length; i++) { + add(results[i]) + } + + if (!errors.length) { + errors = null + fields = null + } else { + fields = convertFieldsError(errors) + } + + callback(errors, fields) + } + + if (options.messages) { + let messages$1 = this.messages() + + if (messages$1 === messages) { + messages$1 = newMessages() + } + + deepMerge(messages$1, options.messages) + options.messages = messages$1 + } else { + options.messages = this.messages() + } + + let arr + let value + const series = {} + const keys = options.keys || Object.keys(this.rules) + keys.forEach((z) => { + arr = _this.rules[z] + value = source[z] + arr.forEach((r) => { + let rule = r + + if (typeof rule.transform === 'function') { + if (source === source_) { + source = { ...source } + } + + value = source[z] = rule.transform(value) + } + + if (typeof rule === 'function') { + rule = { + validator: rule + } + } else { + rule = { ...rule } + } + + rule.validator = _this.getValidationMethod(rule) + rule.field = z + rule.fullField = rule.fullField || z + rule.type = _this.getType(rule) + + if (!rule.validator) { + return + } + + series[z] = series[z] || [] + series[z].push({ + rule, + value, + source, + field: z + }) + }) + }) + const errorFields = {} + return asyncMap(series, options, (data, doIt) => { + const { rule } = data + let deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField + === 'object') + deep = deep && (rule.required || !rule.required && data.value) + rule.field = data.field + + function addFullfield(key, schema) { + return { ...schema, fullField: `${rule.fullField}.${key}` } + } + + function cb(e) { + if (e === void 0) { + e = [] + } + + let errors = e + + if (!Array.isArray(errors)) { + errors = [errors] + } + + if (!options.suppressWarning && errors.length) { + Schema.warning('async-validator:', errors) + } + + if (errors.length && rule.message) { + errors = [].concat(rule.message) + } + + errors = errors.map(complementError(rule)) + + if (options.first && errors.length) { + errorFields[rule.field] = 1 + return doIt(errors) + } + + if (!deep) { + doIt(errors) + } else { + // if rule is required but the target object + // does not exist fail at the rule level and don't + // go deeper + if (rule.required && !data.value) { + if (rule.message) { + errors = [].concat(rule.message).map(complementError(rule)) + } else if (options.error) { + errors = [options.error(rule, format(options.messages.required, rule.field))] + } else { + errors = [] + } + + return doIt(errors) + } + + let fieldsSchema = {} + + if (rule.defaultField) { + for (const k in data.value) { + if (data.value.hasOwnProperty(k)) { + fieldsSchema[k] = rule.defaultField + } + } + } + + fieldsSchema = { ...fieldsSchema, ...data.rule.fields } + + for (const f in fieldsSchema) { + if (fieldsSchema.hasOwnProperty(f)) { + const fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]] + fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)) + } + } + + const schema = new Schema(fieldsSchema) + schema.messages(options.messages) + + if (data.rule.options) { + data.rule.options.messages = options.messages + data.rule.options.error = options.error + } + + schema.validate(data.value, data.rule.options || options, (errs) => { + const finalErrors = [] + + if (errors && errors.length) { + finalErrors.push.apply(finalErrors, errors) + } + + if (errs && errs.length) { + finalErrors.push.apply(finalErrors, errs) + } + + doIt(finalErrors.length ? finalErrors : null) + }) + } + } + + let res + + if (rule.asyncValidator) { + res = rule.asyncValidator(rule, data.value, cb, data.source, options) + } else if (rule.validator) { + res = rule.validator(rule, data.value, cb, data.source, options) + + if (res === true) { + cb() + } else if (res === false) { + cb(rule.message || `${rule.field} fails`) + } else if (res instanceof Array) { + cb(res) + } else if (res instanceof Error) { + cb(res.message) + } + } + + if (res && res.then) { + res.then(() => cb(), (e) => cb(e)) + } + }, (results) => { + complete(results) + }) + }, + getType: function getType(rule) { + if (rule.type === undefined && rule.pattern instanceof RegExp) { + rule.type = 'pattern' + } + + if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) { + throw new Error(format('Unknown rule type %s', rule.type)) + } + + return rule.type || 'string' + }, + getValidationMethod: function getValidationMethod(rule) { + if (typeof rule.validator === 'function') { + return rule.validator + } + + const keys = Object.keys(rule) + const messageIndex = keys.indexOf('message') + + if (messageIndex !== -1) { + keys.splice(messageIndex, 1) + } + + if (keys.length === 1 && keys[0] === 'required') { + return validators.required + } + + return validators[this.getType(rule)] || false + } +} + +Schema.register = function register(type, validator) { + if (typeof validator !== 'function') { + throw new Error('Cannot register a validator by type, validator is not a function') + } + + validators[type] = validator +} + +Schema.warning = warning +Schema.messages = messages + +export default Schema +// # sourceMappingURL=index.js.map diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/calendar.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/calendar.js new file mode 100644 index 0000000..e006dea --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/calendar.js @@ -0,0 +1,546 @@ +/** +* @1900-2100鍖洪棿鍐呯殑鍏巻銆佸啘鍘嗕簰杞� +* @charset UTF-8 +* @github https://github.com/jjonline/calendar.js +* @Author Jea鏉�(JJonline@JJonline.Cn) +* @Time 2014-7-21 +* @Time 2016-8-13 Fixed 2033hex銆丄ttribution Annals +* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug +* @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year +* @Version 1.0.3 +* @鍏巻杞啘鍘嗭細calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0] +* @鍐滃巻杞叕鍘嗭細calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0] +*/ +/* eslint-disable */ +var calendar = { + + /** + * 鍐滃巻1900-2100鐨勬鼎澶у皬淇℃伅琛� + * @Array Of Property + * @return Hex + */ + lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909 + 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919 + 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929 + 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939 + 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949 + 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959 + 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969 + 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979 + 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989 + 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999 + 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009 + 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019 + 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029 + 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039 + 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049 + /** Add By JJonline@JJonline.Cn**/ + 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059 + 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069 + 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079 + 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089 + 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099 + 0x0d520], // 2100 + + /** + * 鍏巻姣忎釜鏈堜唤鐨勫ぉ鏁版櫘閫氳〃 + * @Array Of Property + * @return Number + */ + solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], + + /** + * 澶╁共鍦版敮涔嬪ぉ骞查�熸煡琛� + * @Array Of Property trans["鐢�","涔�","涓�","涓�","鎴�","宸�","搴�","杈�","澹�","鐧�"] + * @return Cn string + */ + Gan: ['\u7532', '\u4e59', '\u4e19', '\u4e01', '\u620a', '\u5df1', '\u5e9a', '\u8f9b', '\u58ec', '\u7678'], + + /** + * 澶╁共鍦版敮涔嬪湴鏀�熸煡琛� + * @Array Of Property + * @trans["瀛�","涓�","瀵�","鍗�","杈�","宸�","鍗�","鏈�","鐢�","閰�","鎴�","浜�"] + * @return Cn string + */ + Zhi: ['\u5b50', '\u4e11', '\u5bc5', '\u536f', '\u8fb0', '\u5df3', '\u5348', '\u672a', '\u7533', '\u9149', '\u620c', '\u4ea5'], + + /** + * 澶╁共鍦版敮涔嬪湴鏀�熸煡琛�<=>鐢熻倴 + * @Array Of Property + * @trans["榧�","鐗�","铏�","鍏�","榫�","铔�","椹�","缇�","鐚�","楦�","鐙�","鐚�"] + * @return Cn string + */ + Animals: ['\u9f20', '\u725b', '\u864e', '\u5154', '\u9f99', '\u86c7', '\u9a6c', '\u7f8a', '\u7334', '\u9e21', '\u72d7', '\u732a'], + + /** + * 24鑺傛皵閫熸煡琛� + * @Array Of Property + * @trans["灏忓瘨","澶у瘨","绔嬫槬","闆ㄦ按","鎯婅洶","鏄ュ垎","娓呮槑","璋烽洦","绔嬪","灏忔弧","鑺掔","澶忚嚦","灏忔殤","澶ф殤","绔嬬","澶勬殤","鐧介湶","绉嬪垎","瀵掗湶","闇滈檷","绔嬪啲","灏忛洩","澶ч洩","鍐嚦"] + * @return Cn string + */ + solarTerm: ['\u5c0f\u5bd2', '\u5927\u5bd2', '\u7acb\u6625', '\u96e8\u6c34', '\u60ca\u86f0', '\u6625\u5206', '\u6e05\u660e', '\u8c37\u96e8', '\u7acb\u590f', '\u5c0f\u6ee1', '\u8292\u79cd', '\u590f\u81f3', '\u5c0f\u6691', '\u5927\u6691', '\u7acb\u79cb', '\u5904\u6691', '\u767d\u9732', '\u79cb\u5206', '\u5bd2\u9732', '\u971c\u964d', '\u7acb\u51ac', '\u5c0f\u96ea', '\u5927\u96ea', '\u51ac\u81f3'], + + /** + * 1900-2100鍚勫勾鐨�24鑺傛皵鏃ユ湡閫熸煡琛� + * @Array Of Property + * @return 0x string For splice + */ + 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'], + + /** + * 鏁板瓧杞腑鏂囬�熸煡琛� + * @Array Of Property + * @trans ['鏃�','涓�','浜�','涓�','鍥�','浜�','鍏�','涓�','鍏�','涔�','鍗�'] + * @return Cn string + */ + nStr1: ['\u65e5', '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'], + + /** + * 鏃ユ湡杞啘鍘嗙О鍛奸�熸煡琛� + * @Array Of Property + * @trans ['鍒�','鍗�','寤�','鍗�'] + * @return Cn string + */ + nStr2: ['\u521d', '\u5341', '\u5eff', '\u5345'], + + /** + * 鏈堜唤杞啘鍘嗙О鍛奸�熸煡琛� + * @Array Of Property + * @trans ['姝�','涓�','浜�','涓�','鍥�','浜�','鍏�','涓�','鍏�','涔�','鍗�','鍐�','鑵�'] + * @return Cn string + */ + nStr3: ['\u6b63', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341', '\u51ac', '\u814a'], + + /** + * 杩斿洖鍐滃巻y骞翠竴鏁村勾鐨勬�诲ぉ鏁� + * @param lunar Year + * @return Number + * @eg:var count = calendar.lYearDays(1987) ;//count=387 + */ + lYearDays: function (y) { + var i; var sum = 348 + for (i = 0x8000; i > 0x8; i >>= 1) { sum += (this.lunarInfo[y - 1900] & i) ? 1 : 0 } + return (sum + this.leapDays(y)) + }, + + /** + * 杩斿洖鍐滃巻y骞撮棸鏈堟槸鍝釜鏈堬紱鑻骞存病鏈夐棸鏈� 鍒欒繑鍥�0 + * @param lunar Year + * @return Number (0-12) + * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6 + */ + leapMonth: function (y) { // 闂板瓧缂栫爜 \u95f0 + return (this.lunarInfo[y - 1900] & 0xf) + }, + + /** + * 杩斿洖鍐滃巻y骞撮棸鏈堢殑澶╂暟 鑻ヨ骞存病鏈夐棸鏈堝垯杩斿洖0 + * @param lunar Year + * @return Number (0銆�29銆�30) + * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29 + */ + leapDays: function (y) { + if (this.leapMonth(y)) { + return ((this.lunarInfo[y - 1900] & 0x10000) ? 30 : 29) + } + return (0) + }, + + /** + * 杩斿洖鍐滃巻y骞磎鏈堬紙闈為棸鏈堬級鐨勬�诲ぉ鏁帮紝璁$畻m涓洪棸鏈堟椂鐨勫ぉ鏁拌浣跨敤leapDays鏂规硶 + * @param lunar Year + * @return Number (-1銆�29銆�30) + * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29 + */ + monthDays: function (y, m) { + if (m > 12 || m < 1) { return -1 }// 鏈堜唤鍙傛暟浠�1鑷�12锛屽弬鏁伴敊璇繑鍥�-1 + return ((this.lunarInfo[y - 1900] & (0x10000 >> m)) ? 30 : 29) + }, + + /** + * 杩斿洖鍏巻(!)y骞磎鏈堢殑澶╂暟 + * @param solar Year + * @return Number (-1銆�28銆�29銆�30銆�31) + * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30 + */ + solarDays: function (y, m) { + if (m > 12 || m < 1) { return -1 } // 鑻ュ弬鏁伴敊璇� 杩斿洖-1 + var ms = m - 1 + if (ms == 1) { // 2鏈堜唤鐨勯棸骞宠寰嬫祴绠楀悗纭杩斿洖28鎴�29 + return (((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0)) ? 29 : 28) + } else { + return (this.solarMonth[ms]) + } + }, + + /** + * 鍐滃巻骞翠唤杞崲涓哄共鏀邯骞� + * @param lYear 鍐滃巻骞寸殑骞翠唤鏁� + * @return Cn string + */ + toGanZhiYear: function (lYear) { + var ganKey = (lYear - 3) % 10 + var zhiKey = (lYear - 3) % 12 + if (ganKey == 0) ganKey = 10// 濡傛灉浣欐暟涓�0鍒欎负鏈�鍚庝竴涓ぉ骞� + if (zhiKey == 0) zhiKey = 12// 濡傛灉浣欐暟涓�0鍒欎负鏈�鍚庝竴涓湴鏀� + return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1] + }, + + /** + * 鍏巻鏈堛�佹棩鍒ゆ柇鎵�灞炴槦搴� + * @param cMonth [description] + * @param cDay [description] + * @return Cn string + */ + toAstro: function (cMonth, cDay) { + var s = '\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf' + var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22] + return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + '\u5ea7'// 搴� + }, + + /** + * 浼犲叆offset鍋忕Щ閲忚繑鍥炲共鏀� + * @param offset 鐩稿鐢插瓙鐨勫亸绉婚噺 + * @return Cn string + */ + toGanZhi: function (offset) { + return this.Gan[offset % 10] + this.Zhi[offset % 12] + }, + + /** + * 浼犲叆鍏巻(!)y骞磋幏寰楄骞寸n涓妭姘旂殑鍏巻鏃ユ湡 + * @param y鍏巻骞�(1900-2100)锛沶浜屽崄鍥涜妭姘斾腑鐨勭鍑犱釜鑺傛皵(1~24)锛涗粠n=1(灏忓瘨)绠楄捣 + * @return day Number + * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;鎰忓嵆1987骞�2鏈�4鏃ョ珛鏄� + */ + getTerm: function (y, n) { + if (y < 1900 || y > 2100) { return -1 } + if (n < 1 || n > 24) { return -1 } + var _table = this.sTermInfo[y - 1900] + var _info = [ + parseInt('0x' + _table.substr(0, 5)).toString(), + parseInt('0x' + _table.substr(5, 5)).toString(), + parseInt('0x' + _table.substr(10, 5)).toString(), + parseInt('0x' + _table.substr(15, 5)).toString(), + parseInt('0x' + _table.substr(20, 5)).toString(), + parseInt('0x' + _table.substr(25, 5)).toString() + ] + var _calday = [ + _info[0].substr(0, 1), + _info[0].substr(1, 2), + _info[0].substr(3, 1), + _info[0].substr(4, 2), + + _info[1].substr(0, 1), + _info[1].substr(1, 2), + _info[1].substr(3, 1), + _info[1].substr(4, 2), + + _info[2].substr(0, 1), + _info[2].substr(1, 2), + _info[2].substr(3, 1), + _info[2].substr(4, 2), + + _info[3].substr(0, 1), + _info[3].substr(1, 2), + _info[3].substr(3, 1), + _info[3].substr(4, 2), + + _info[4].substr(0, 1), + _info[4].substr(1, 2), + _info[4].substr(3, 1), + _info[4].substr(4, 2), + + _info[5].substr(0, 1), + _info[5].substr(1, 2), + _info[5].substr(3, 1), + _info[5].substr(4, 2) + ] + return parseInt(_calday[n - 1]) + }, + + /** + * 浼犲叆鍐滃巻鏁板瓧鏈堜唤杩斿洖姹夎閫氫織琛ㄧず娉� + * @param lunar month + * @return Cn string + * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='鑵婃湀' + */ + toChinaMonth: function (m) { // 鏈� => \u6708 + if (m > 12 || m < 1) { return -1 } // 鑻ュ弬鏁伴敊璇� 杩斿洖-1 + var s = this.nStr3[m - 1] + s += '\u6708'// 鍔犱笂鏈堝瓧 + return s + }, + + /** + * 浼犲叆鍐滃巻鏃ユ湡鏁板瓧杩斿洖姹夊瓧琛ㄧず娉� + * @param lunar day + * @return Cn string + * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='寤夸竴' + */ + toChinaDay: function (d) { // 鏃� => \u65e5 + var s + switch (d) { + case 10: + s = '\u521d\u5341'; break + case 20: + s = '\u4e8c\u5341'; break + break + case 30: + s = '\u4e09\u5341'; break + break + default: + s = this.nStr2[Math.floor(d / 10)] + s += this.nStr1[d % 10] + } + return (s) + }, + + /** + * 骞翠唤杞敓鑲朳!浠呰兘澶ц嚧杞崲] => 绮剧‘鍒掑垎鐢熻倴鍒嗙晫绾挎槸鈥滅珛鏄モ�� + * @param y year + * @return Cn string + * @eg:var animal = calendar.getAnimal(1987) ;//animal='鍏�' + */ + getAnimal: function (y) { + return this.Animals[(y - 4) % 12] + }, + + /** + * 浼犲叆闃冲巻骞存湀鏃ヨ幏寰楄缁嗙殑鍏巻銆佸啘鍘唎bject淇℃伅 <=>JSON + * @param y solar year + * @param m solar month + * @param d solar day + * @return JSON object + * @eg:console.log(calendar.solar2lunar(1987,11,01)); + */ + solar2lunar: function (y, m, d) { // 鍙傛暟鍖洪棿1900.1.31~2100.12.31 + // 骞翠唤闄愬畾銆佷笂闄� + if (y < 1900 || y > 2100) { + return -1// undefined杞崲涓烘暟瀛楀彉涓篘aN + } + // 鍏巻浼犲弬鏈�涓嬮檺 + if (y == 1900 && m == 1 && d < 31) { + return -1 + } + // 鏈紶鍙� 鑾峰緱褰撳ぉ + if (!y) { + var objDate = new Date() + } else { + var objDate = new Date(y, parseInt(m) - 1, d) + } + var i; var leap = 0; var temp = 0 + // 淇ymd鍙傛暟 + var y = objDate.getFullYear() + var m = objDate.getMonth() + 1 + var d = objDate.getDate() + var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000 + for (i = 1900; i < 2101 && offset > 0; i++) { + temp = this.lYearDays(i) + offset -= temp + } + if (offset < 0) { + offset += temp; i-- + } + + // 鏄惁浠婂ぉ + var isTodayObj = new Date() + var isToday = false + if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) { + isToday = true + } + // 鏄熸湡鍑� + var nWeek = objDate.getDay() + var cWeek = this.nStr1[nWeek] + // 鏁板瓧琛ㄧず鍛ㄥ嚑椤哄簲澶╂湞鍛ㄤ竴寮�濮嬬殑鎯緥 + if (nWeek == 0) { + nWeek = 7 + } + // 鍐滃巻骞� + var year = i + var leap = this.leapMonth(i) // 闂板摢涓湀 + var isLeap = false + + // 鏁堥獙闂版湀 + for (i = 1; i < 13 && offset > 0; i++) { + // 闂版湀 + if (leap > 0 && i == (leap + 1) && isLeap == false) { + --i + isLeap = true; temp = this.leapDays(year) // 璁$畻鍐滃巻闂版湀澶╂暟 + } else { + temp = this.monthDays(year, i)// 璁$畻鍐滃巻鏅�氭湀澶╂暟 + } + // 瑙i櫎闂版湀 + if (isLeap == true && i == (leap + 1)) { isLeap = false } + offset -= temp + } + // 闂版湀瀵艰嚧鏁扮粍涓嬫爣閲嶅彔鍙栧弽 + if (offset == 0 && leap > 0 && i == leap + 1) { + if (isLeap) { + isLeap = false + } else { + isLeap = true; --i + } + } + if (offset < 0) { + offset += temp; --i + } + // 鍐滃巻鏈� + var month = i + // 鍐滃巻鏃� + var day = offset + 1 + // 澶╁共鍦版敮澶勭悊 + var sm = m - 1 + var gzY = this.toGanZhiYear(year) + + // 褰撴湀鐨勪袱涓妭姘� + // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year` + var firstNode = this.getTerm(y, (m * 2 - 1))// 杩斿洖褰撴湀銆岃妭銆嶄负鍑犳棩寮�濮� + var secondNode = this.getTerm(y, (m * 2))// 杩斿洖褰撴湀銆岃妭銆嶄负鍑犳棩寮�濮� + + // 渚濇嵁12鑺傛皵淇骞叉敮鏈� + var gzM = this.toGanZhi((y - 1900) * 12 + m + 11) + if (d >= firstNode) { + gzM = this.toGanZhi((y - 1900) * 12 + m + 12) + } + + // 浼犲叆鐨勬棩鏈熺殑鑺傛皵涓庡惁 + var isTerm = false + var Term = null + if (firstNode == d) { + isTerm = true + Term = this.solarTerm[m * 2 - 2] + } + if (secondNode == d) { + isTerm = true + Term = this.solarTerm[m * 2 - 1] + } + // 鏃ユ煴 褰撴湀涓�鏃ヤ笌 1900/1/1 鐩稿樊澶╂暟 + var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10 + var gzD = this.toGanZhi(dayCyclical + d - 1) + // 璇ユ棩鏈熸墍灞炵殑鏄熷骇 + var astro = this.toAstro(m, d) + + return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? '\u95f0' : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': '\u661f\u671f' + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro } + }, + + /** + * 浼犲叆鍐滃巻骞存湀鏃ヤ互鍙婁紶鍏ョ殑鏈堜唤鏄惁闂版湀鑾峰緱璇︾粏鐨勫叕鍘嗐�佸啘鍘唎bject淇℃伅 <=>JSON + * @param y lunar year + * @param m lunar month + * @param d lunar day + * @param isLeapMonth lunar month is leap or not.[濡傛灉鏄啘鍘嗛棸鏈堢鍥涗釜鍙傛暟璧嬪�紅rue鍗冲彲] + * @return JSON object + * @eg:console.log(calendar.lunar2solar(1987,9,10)); + */ + lunar2solar: function (y, m, d, isLeapMonth) { // 鍙傛暟鍖洪棿1900.1.31~2100.12.1 + var isLeapMonth = !!isLeapMonth + var leapOffset = 0 + var leapMonth = this.leapMonth(y) + var leapDay = this.leapDays(y) + if (isLeapMonth && (leapMonth != m)) { return -1 }// 浼犲弬瑕佹眰璁$畻璇ラ棸鏈堝叕鍘� 浣嗚骞村緱鍑虹殑闂版湀涓庝紶鍙傜殑鏈堜唤骞朵笉鍚� + if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { return -1 }// 瓒呭嚭浜嗘渶澶ф瀬闄愬�� + var day = this.monthDays(y, m) + var _day = day + // bugFix 2016-9-25 + // if month is leap, _day use leapDays method + if (isLeapMonth) { + _day = this.leapDays(y, m) + } + if (y < 1900 || y > 2100 || d > _day) { return -1 }// 鍙傛暟鍚堟硶鎬ф晥楠� + + // 璁$畻鍐滃巻鐨勬椂闂村樊 + var offset = 0 + for (var i = 1900; i < y; i++) { + offset += this.lYearDays(i) + } + var leap = 0; var isAdd = false + for (var i = 1; i < m; i++) { + leap = this.leapMonth(y) + if (!isAdd) { // 澶勭悊闂版湀 + if (leap <= i && leap > 0) { + offset += this.leapDays(y); isAdd = true + } + } + offset += this.monthDays(y, i) + } + // 杞崲闂版湀鍐滃巻 闇�琛ュ厖璇ュ勾闂版湀鐨勫墠涓�涓湀鐨勬椂宸� + if (isLeapMonth) { offset += day } + // 1900骞村啘鍘嗘鏈堜竴鏃ョ殑鍏巻鏃堕棿涓�1900骞�1鏈�30鏃�0鏃�0鍒�0绉�(璇ユ椂闂翠篃鏄湰鍐滃巻鐨勬渶寮�濮嬭捣濮嬬偣) + var stmap = Date.UTC(1900, 1, 30, 0, 0, 0) + var calObj = new Date((offset + d - 31) * 86400000 + stmap) + var cY = calObj.getUTCFullYear() + var cM = calObj.getUTCMonth() + 1 + var cD = calObj.getUTCDate() + + return this.solar2lunar(cY, cM, cD) + } +} + +export default calendar diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/dayjs.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/dayjs.js new file mode 100644 index 0000000..c4efea0 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/dayjs.js @@ -0,0 +1,308 @@ +!(function (t, e) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = e() : typeof define === 'function' + && define.amd ? define(e) : t.dayjs = e() +}(this, () => { + 'use strict' + + const t = 'millisecond' + const e = 'second' + const n = 'minute' + const r = 'hour' + const i = 'day' + const s = 'week' + const u = 'month' + const a = 'quarter' + const o = 'year' + const f = 'date' + const h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/ + const c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g + const d = { + name: 'en', + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_') + } + const $ = function (t, e, n) { + const r = String(t) + return !r || r.length >= e ? t : `${Array(e + 1 - r.length).join(n)}${t}` + } + const l = { + s: $, + z(t) { + const e = -t.utcOffset() + const n = Math.abs(e) + const r = Math.floor(n / 60) + const i = n % 60 + return `${(e <= 0 ? '+' : '-') + $(r, 2, '0')}:${$(i, 2, '0')}` + }, + m: function t(e, n) { + if (e.date() < n.date()) return -t(n, e) + const r = 12 * (n.year() - e.year()) + (n.month() - e.month()) + const i = e.clone().add(r, u) + const s = n - i < 0 + const a = e.clone().add(r + (s ? -1 : 1), u) + return +(-(r + (n - i) / (s ? i - a : a - i)) || 0) + }, + a(t) { + return t < 0 ? Math.ceil(t) || 0 : Math.floor(t) + }, + p(h) { + return { + M: u, + y: o, + w: s, + d: i, + D: f, + h: r, + m: n, + s: e, + ms: t, + Q: a + }[h] || String(h || '').toLowerCase().replace(/s$/, '') + }, + u(t) { + return void 0 === t + } + } + let y = 'en' + const M = {} + M[y] = d + const m = function (t) { + return t instanceof S + } + const D = function (t, e, n) { + let r + if (!t) return y + if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t) + else { + const i = t.name + M[i] = t, r = i + } + return !n && r && (y = r), r || !n && y + } + const v = function (t, e) { + if (m(t)) return t.clone() + const n = typeof e === 'object' ? e : {} + return n.date = t, n.args = arguments, new S(n) + } + const g = l + g.l = D, g.i = m, g.w = function (t, e) { + return v(t, { + locale: e.$L, + utc: e.$u, + x: e.$x, + $offset: e.$offset + }) + } + var S = (function () { + function d(t) { + this.$L = D(t.locale, null, !0), this.parse(t) + } + const $ = d.prototype + return $.parse = function (t) { + this.$d = (function (t) { + const e = t.date + const n = t.utc + if (e === null) return new Date(NaN) + if (g.u(e)) return new Date() + if (e instanceof Date) return new Date(e) + if (typeof e === 'string' && !/Z$/i.test(e)) { + const r = e.match(h) + if (r) { + const i = r[2] - 1 || 0 + const s = (r[7] || '0').substring(0, 3) + return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] + || 1, r[4] || 0, r[5] || 0, r[6] || 0, s) + } + } + return new Date(e) + }(t)), this.$x = t.x || {}, this.init() + }, $.init = function () { + const t = this.$d + this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), + this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds() + }, $.$utils = function () { + return g + }, $.isValid = function () { + return !(this.$d.toString() === 'Invalid Date') + }, $.isSame = function (t, e) { + const n = v(t) + return this.startOf(e) <= n && n <= this.endOf(e) + }, $.isAfter = function (t, e) { + return v(t) < this.startOf(e) + }, $.isBefore = function (t, e) { + return this.endOf(e) < v(t) + }, $.$g = function (t, e, n) { + return g.u(t) ? this[e] : this.set(n, t) + }, $.unix = function () { + return Math.floor(this.valueOf() / 1e3) + }, $.valueOf = function () { + return this.$d.getTime() + }, $.startOf = function (t, a) { + const h = this + const c = !!g.u(a) || a + const d = g.p(t) + const $ = function (t, e) { + const n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h) + return c ? n : n.endOf(i) + } + const l = function (t, e) { + return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h) + } + const y = this.$W + const M = this.$M + const m = this.$D + const D = `set${this.$u ? 'UTC' : ''}` + switch (d) { + case o: + return c ? $(1, 0) : $(31, 11) + case u: + return c ? $(1, M) : $(0, M + 1) + case s: + var v = this.$locale().weekStart || 0 + var S = (y < v ? y + 7 : y) - v + return $(c ? m - S : m + (6 - S), M) + case i: + case f: + return l(`${D}Hours`, 0) + case r: + return l(`${D}Minutes`, 1) + case n: + return l(`${D}Seconds`, 2) + case e: + return l(`${D}Milliseconds`, 3) + default: + return this.clone() + } + }, $.endOf = function (t) { + return this.startOf(t, !1) + }, $.$set = function (s, a) { + let h; const c = g.p(s) + const d = `set${this.$u ? 'UTC' : ''}` + const $ = (h = {}, h[i] = `${d}Date`, h[f] = `${d}Date`, h[u] = `${d}Month`, h[o] = `${d}FullYear`, h[r] = `${d}Hours`, + h[n] = `${d}Minutes`, h[e] = `${d}Seconds`, h[t] = `${d}Milliseconds`, h)[c] + const l = c === i ? this.$D + (a - this.$W) : a + if (c === u || c === o) { + const y = this.clone().set(f, 1) + y.$d[$](l), y.init(), this.$d = y.set(f, Math.min(this.$D, y.daysInMonth())).$d + } else $ && this.$d[$](l) + return this.init(), this + }, $.set = function (t, e) { + return this.clone().$set(t, e) + }, $.get = function (t) { + return this[g.p(t)]() + }, $.add = function (t, a) { + let f; const + h = this + t = Number(t) + const c = g.p(a) + const d = function (e) { + const n = v(h) + return g.w(n.date(n.date() + Math.round(e * t)), h) + } + if (c === u) return this.set(u, this.$M + t) + if (c === o) return this.set(o, this.$y + t) + if (c === i) return d(1) + if (c === s) return d(7) + const $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1 + const l = this.$d.getTime() + t * $ + return g.w(l, this) + }, $.subtract = function (t, e) { + return this.add(-1 * t, e) + }, $.format = function (t) { + const e = this + if (!this.isValid()) return 'Invalid Date' + const n = t || 'YYYY-MM-DDTHH:mm:ssZ' + const r = g.z(this) + const i = this.$locale() + const s = this.$H + const u = this.$m + const a = this.$M + const o = i.weekdays + const f = i.months + const h = function (t, r, i, s) { + return t && (t[r] || t(e, n)) || i[r].substr(0, s) + } + const d = function (t) { + return g.s(s % 12 || 12, t, '0') + } + const $ = i.meridiem || function (t, e, n) { + const r = t < 12 ? 'AM' : 'PM' + return n ? r.toLowerCase() : r + } + const l = { + YY: String(this.$y).slice(-2), + YYYY: this.$y, + M: a + 1, + MM: g.s(a + 1, 2, '0'), + MMM: h(i.monthsShort, a, f, 3), + MMMM: h(f, a), + D: this.$D, + DD: g.s(this.$D, 2, '0'), + d: String(this.$W), + dd: h(i.weekdaysMin, this.$W, o, 2), + ddd: h(i.weekdaysShort, this.$W, o, 3), + dddd: o[this.$W], + H: String(s), + HH: g.s(s, 2, '0'), + h: d(1), + hh: d(2), + a: $(s, u, !0), + A: $(s, u, !1), + m: String(u), + mm: g.s(u, 2, '0'), + s: String(this.$s), + ss: g.s(this.$s, 2, '0'), + SSS: g.s(this.$ms, 3, '0'), + Z: r + } + return n.replace(c, (t, e) => e || l[t] || r.replace(':', '')) + }, $.utcOffset = function () { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15) + }, $.diff = function (t, f, h) { + let c; const d = g.p(f) + const $ = v(t) + const l = 6e4 * ($.utcOffset() - this.utcOffset()) + const y = this - $ + let M = g.m(this, $) + return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M) + }, $.daysInMonth = function () { + return this.endOf(u).$D + }, $.$locale = function () { + return M[this.$L] + }, $.locale = function (t, e) { + if (!t) return this.$L + const n = this.clone() + const r = D(t, e, !0) + return r && (n.$L = r), n + }, $.clone = function () { + return g.w(this.$d, this) + }, $.toDate = function () { + return new Date(this.valueOf()) + }, $.toJSON = function () { + return this.isValid() ? this.toISOString() : null + }, $.toISOString = function () { + return this.$d.toISOString() + }, $.toString = function () { + return this.$d.toUTCString() + }, d + }()) + const p = S.prototype + return v.prototype = p, [ + ['$ms', t], + ['$s', e], + ['$m', n], + ['$H', r], + ['$W', i], + ['$M', u], + ['$y', o], + ['$D', f] + ].forEach((t) => { + p[t[1]] = function (e) { + return this.$g(e, t[0], t[1]) + } + }), v.extend = function (t, e) { + return t.$i || (t(e, S, v), t.$i = !0), v + }, v.locale = D, v.isDayjs = m, v.unix = function (t) { + return v(1e3 * t) + }, v.en = M[y], v.Ls = M, v.p = {}, v +})) diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/emitter.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/emitter.js new file mode 100644 index 0000000..1e64044 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/emitter.js @@ -0,0 +1,51 @@ +/** + * 閫掑綊浣跨敤 call 鏂瑰紡this鎸囧悜 + * @param componentName // 闇�瑕佹壘鐨勭粍浠剁殑鍚嶇О + * @param eventName // 浜嬩欢鍚嶇О + * @param params // 闇�瑕佷紶閫掔殑鍙傛暟 + */ +function broadcast(componentName, eventName, params) { + // 寰幆瀛愯妭鐐规壘鍒板悕绉颁竴鏍风殑瀛愯妭鐐� 鍚﹀垯 閫掑綊 褰撳墠瀛愯妭鐐� + this.$children.map((child) => { + if (componentName === child.$options.name) { + child.$emit.apply(child, [eventName].concat(params)) + } else { + broadcast.apply(child, [componentName, eventName].concat(params)) + } + }) +} +export default { + methods: { + /** + * 娲惧彂 (鍚戜笂鏌ユ壘) (涓�涓�) + * @param componentName // 闇�瑕佹壘鐨勭粍浠剁殑鍚嶇О + * @param eventName // 浜嬩欢鍚嶇О + * @param params // 闇�瑕佷紶閫掔殑鍙傛暟 + */ + dispatch(componentName, eventName, params) { + let parent = this.$parent || this.$root// $parent 鎵惧埌鏈�杩戠殑鐖惰妭鐐� $root 鏍硅妭鐐� + let { name } = parent.$options // 鑾峰彇褰撳墠缁勪欢瀹炰緥鐨刵ame + // 濡傛灉褰撳墠鏈夎妭鐐� && 褰撳墠娌″悕绉� 涓� 褰撳墠鍚嶇О绛変簬闇�瑕佷紶杩涙潵鐨勫悕绉扮殑鏃跺�欏氨鍘绘煡鎵惧綋鍓嶇殑鑺傜偣 + // 寰幆鍑哄綋鍓嶅悕绉扮殑涓�鏍风殑缁勪欢瀹炰緥 + while (parent && (!name || name !== componentName)) { + parent = parent.$parent + if (parent) { + name = parent.$options.name + } + } + // 鏈夎妭鐐硅〃绀哄綋鍓嶆壘鍒颁簡name涓�鏍风殑瀹炰緥 + if (parent) { + parent.$emit.apply(parent, [eventName].concat(params)) + } + }, + /** + * 骞挎挱 (鍚戜笅鏌ユ壘) (骞挎挱澶氫釜) + * @param componentName // 闇�瑕佹壘鐨勭粍浠剁殑鍚嶇О + * @param eventName // 浜嬩欢鍚嶇О + * @param params // 闇�瑕佷紶閫掔殑鍙傛暟 + */ + broadcast(componentName, eventName, params) { + broadcast.call(this, componentName, eventName, params) + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/route.js b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/route.js new file mode 100644 index 0000000..70b8ca4 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/libs/util/route.js @@ -0,0 +1,124 @@ +/** + * 璺敱璺宠浆鏂规硶锛岃鏂规硶鐩稿浜庣洿鎺ヤ娇鐢╱ni.xxx鐨勫ソ澶勬槸浣跨敤鏇村姞绠�鍗曞揩鎹� + * 骞朵笖甯︽湁璺敱鎷︽埅鍔熻兘 + */ + +class Router { + constructor() { + // 鍘熷灞炴�у畾涔� + this.config = { + type: 'navigateTo', + url: '', + delta: 1, // navigateBack椤甸潰鍚庨��鏃�,鍥為��鐨勫眰鏁� + params: {}, // 浼犻�掔殑鍙傛暟 + animationType: 'pop-in', // 绐楀彛鍔ㄧ敾,鍙湪APP鏈夋晥 + animationDuration: 300, // 绐楀彛鍔ㄧ敾鎸佺画鏃堕棿,鍗曚綅姣,鍙湪APP鏈夋晥 + intercept: false // 鏄惁闇�瑕佹嫤鎴� + } + // 鍥犱负route鏂规硶鏄渶瑕佸澶栬祴鍊肩粰鍙﹀鐨勫璞′娇鐢紝鍚屾椂route鍐呴儴鏈変娇鐢╰his锛屼細瀵艰嚧route澶卞幓涓婁笅鏂� + // 杩欓噷鍦ㄦ瀯閫犲嚱鏁颁腑杩涜this缁戝畾 + this.route = this.route.bind(this) + } + + // 鍒ゆ柇url鍓嶉潰鏄惁鏈�"/"锛屽鏋滄病鏈夊垯鍔犱笂锛屽惁鍒欐棤娉曡烦杞� + addRootPath(url) { + return url[0] === '/' ? url : `/${url}` + } + + // 鏁村悎璺敱鍙傛暟 + mixinParam(url, params) { + url = url && this.addRootPath(url) + + // 浣跨敤姝e垯鍖归厤锛屼富瑕佷緷鎹槸鍒ゆ柇鏄惁鏈�"/","?","="绛夛紝濡傗��/page/index/index?name=mary" + // 濡傛灉鏈塽rl涓湁get鍙傛暟锛岃浆鎹㈠悗鏃犻渶甯︿笂"?" + let query = '' + if (/.*\/.*\?.*=.*/.test(url)) { + // object瀵硅薄杞负get绫诲瀷鐨勫弬鏁� + query = uni.$u.queryParams(params, false) + // 鍥犱负宸叉湁get鍙傛暟,鎵�浠ュ悗闈㈡嫾鎺ョ殑鍙傛暟闇�瑕佸甫涓�"&"闅斿紑 + return url += `&${query}` + } + // 鐩存帴鎷兼帴鍙傛暟锛屽洜涓烘澶剈rl涓病鏈夊悗闈㈢殑query鍙傛暟锛屼篃灏辨病鏈�"?/&"涔嬬被鐨勭鍙� + query = uni.$u.queryParams(params) + return url += query + } + + // 瀵瑰鐨勬柟娉曞悕绉� + async route(options = {}, params = {}) { + // 鍚堝苟鐢ㄦ埛鐨勯厤缃拰鍐呴儴鐨勯粯璁ら厤缃� + let mergeConfig = {} + + if (typeof options === 'string') { + // 濡傛灉options涓哄瓧绗︿覆锛屽垯涓簉oute(url, params)鐨勫舰寮� + mergeConfig.url = this.mixinParam(options, params) + mergeConfig.type = 'navigateTo' + } else { + mergeConfig = uni.$u.deepMerge(options, this.config) + // 鍚﹀垯姝e父浣跨敤mergeConfig涓殑url鍜宲arams杩涜鎷兼帴 + mergeConfig.url = this.mixinParam(options.url, options.params) + } + + // 濡傛灉鏈璺宠浆鐨勮矾寰勫拰鏈〉闈㈣矾寰勪竴鑷达紝涓嶆墽琛岃烦杞紝闃叉鐢ㄦ埛蹇�熺偣鍑昏烦杞寜閽紝閫犳垚澶氭璺宠浆鍚屼竴涓〉闈㈢殑闂 + if (mergeConfig.url === uni.$u.page()) return + + if (params.intercept) { + this.config.intercept = params.intercept + } + // params鍙傛暟涔熷甫缁欐嫤鎴櫒 + mergeConfig.params = params + // 鍚堝苟鍐呭閮ㄥ弬鏁� + mergeConfig = uni.$u.deepMerge(this.config, mergeConfig) + // 鍒ゆ柇鐢ㄦ埛鏄惁瀹氫箟浜嗘嫤鎴櫒 + if (typeof uni.$u.routeIntercept === 'function') { + // 瀹氫竴涓猵romise锛屾牴鎹敤鎴锋墽琛宺esolve(true)鎴栬�卹esolve(false)鏉ュ喅瀹氭槸鍚﹁繘琛岃矾鐢辫烦杞� + const isNext = await new Promise((resolve, reject) => { + uni.$u.routeIntercept(mergeConfig, resolve) + }) + // 濡傛灉isNext涓簍rue锛屽垯鎵ц璺敱璺宠浆 + isNext && this.openPage(mergeConfig) + } else { + this.openPage(mergeConfig) + } + } + + // 鎵ц璺敱璺宠浆 + openPage(config) { + // 瑙f瀯鍙傛暟 + const { + url, + type, + delta, + animationType, + animationDuration + } = config + if (config.type == 'navigateTo' || config.type == 'to') { + uni.navigateTo({ + url, + animationType, + animationDuration + }) + } + if (config.type == 'redirectTo' || config.type == 'redirect') { + uni.redirectTo({ + url + }) + } + if (config.type == 'switchTab' || config.type == 'tab') { + uni.switchTab({ + url + }) + } + if (config.type == 'reLaunch' || config.type == 'launch') { + uni.reLaunch({ + url + }) + } + if (config.type == 'navigateBack' || config.type == 'back') { + uni.navigateBack({ + delta + }) + } + } +} + +export default (new Router()).route diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/package.json b/PipeLineLems.PDA/uni_modules/uview-ui/package.json new file mode 100644 index 0000000..0472b31 --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/package.json @@ -0,0 +1,84 @@ +{ + "id": "uview-ui", + "name": "uview-ui", + "displayName": "uView2.0閲嶇鍙戝竷锛屽埄鍓戝嚭闉橈紝涓�缁熸睙婀�", + "version": "2.0.34", + "description": "uView UI宸插畬缇庡吋瀹筺vue锛屽叏闈㈢殑缁勪欢鍜屼究鎹风殑宸ュ叿浼氳鎮ㄤ俊鎵嬫媹鏉ワ紝濡傞奔寰楁按", + "keywords": [ + "uview", + "uview", + "ui", + "ui", + "uni-app", + "uni-app", + "ui" + ], + "repository": "https://github.com/umicro/uView2.0", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "1416956117" + }, + "declaration": { + "ads": "鏃�", + "data": "鏃�", + "permissions": "鏃�" + }, + "npmurl": "https://www.npmjs.com/package/uview-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "n" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "寰俊娴忚鍣�(Android)": "y", + "QQ娴忚鍣�(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "灏忕▼搴�": { + "寰俊": "y", + "闃块噷": "y", + "鐧惧害": "y", + "瀛楄妭璺冲姩": "y", + "QQ": "y" + }, + "蹇簲鐢�": { + "鍗庝负": "y", + "鑱旂洘": "y" + } + } + } + } +} diff --git a/PipeLineLems.PDA/uni_modules/uview-ui/theme.scss b/PipeLineLems.PDA/uni_modules/uview-ui/theme.scss new file mode 100644 index 0000000..331b30f --- /dev/null +++ b/PipeLineLems.PDA/uni_modules/uview-ui/theme.scss @@ -0,0 +1,44 @@ +// 姝ゆ枃浠朵负uView鐨勪富棰樺彉閲忥紝杩欎簺鍙橀噺鐩墠鍙兘閫氳繃uni.scss寮曞叆鎵嶆湁鏁堬紝鍙﹀鐢变簬 +// uni.scss涓紩鍏ョ殑鏍峰紡浼氬悓鏃舵贩鍏ュ埌鍏ㄥ眬鏍峰紡鏂囦欢鍜屽崟鐙瘡涓�涓〉闈㈢殑鏍峰紡涓紝閫犳垚寰俊绋嬪簭鍖呭お澶э紝 +// 鏁卽ni.scss鍙缓璁斁scss鍙橀噺鍚嶇浉鍏虫牱寮忥紝鍏朵粬鐨勬牱寮忓彲浠ラ�氳繃main.js鎴栬�匒pp.vue寮曞叆 + +$u-main-color: #303133; +$u-content-color: #606266; +$u-tips-color: #909193; +$u-light-color: #c0c4cc; +$u-border-color: #dadbde; +$u-bg-color: #f3f4f6; +$u-disabled-color: #c8c9cc; + +$u-primary: #3c9cff; +$u-primary-dark: #398ade; +$u-primary-disabled: #9acafc; +$u-primary-light: #ecf5ff; + +$u-warning: #f9ae3d; +$u-warning-dark: #f1a532; +$u-warning-disabled: #f9d39b; +$u-warning-light: #fdf6ec; + +$u-success: #5ac725; +$u-success-dark: #53c21d; +$u-success-disabled: #a9e08f; +$u-success-light: #f5fff0; + +$u-error: #f56c6c; +$u-error-dark: #e45656; +$u-error-disabled: #f7b2b2; +$u-error-light: #fef0f0; + +$u-info: #909399; +$u-info-dark: #767a82; +$u-info-disabled: #c4c6c9; +$u-info-light: #f4f4f5; + +// scss娣峰叆锛屼负浜嗗皯鍐欏嚑琛�#ifndef +@mixin flex($direction: row) { + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + flex-direction: $direction; +} diff --git a/PipeLineLems.PDA/unpackage/res/icons/1024x1024.png b/PipeLineLems.PDA/unpackage/res/icons/1024x1024.png new file mode 100644 index 0000000..afa5c2f --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/1024x1024.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/120x120.png b/PipeLineLems.PDA/unpackage/res/icons/120x120.png new file mode 100644 index 0000000..3264fad --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/120x120.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/144x144.png b/PipeLineLems.PDA/unpackage/res/icons/144x144.png new file mode 100644 index 0000000..526f79e --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/144x144.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/152x152.png b/PipeLineLems.PDA/unpackage/res/icons/152x152.png new file mode 100644 index 0000000..18ad8d3 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/152x152.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/167x167.png b/PipeLineLems.PDA/unpackage/res/icons/167x167.png new file mode 100644 index 0000000..71576dc --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/167x167.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/180x180.png b/PipeLineLems.PDA/unpackage/res/icons/180x180.png new file mode 100644 index 0000000..86dd0a6 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/180x180.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/192x192.png b/PipeLineLems.PDA/unpackage/res/icons/192x192.png new file mode 100644 index 0000000..a001510 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/192x192.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/20x20.png b/PipeLineLems.PDA/unpackage/res/icons/20x20.png new file mode 100644 index 0000000..c61c13b --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/20x20.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/29x29.png b/PipeLineLems.PDA/unpackage/res/icons/29x29.png new file mode 100644 index 0000000..3d62b96 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/29x29.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/40x40.png b/PipeLineLems.PDA/unpackage/res/icons/40x40.png new file mode 100644 index 0000000..46856a5 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/40x40.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/58x58.png b/PipeLineLems.PDA/unpackage/res/icons/58x58.png new file mode 100644 index 0000000..eb23383 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/58x58.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/60x60.png b/PipeLineLems.PDA/unpackage/res/icons/60x60.png new file mode 100644 index 0000000..ba73d6f --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/60x60.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/72x72.png b/PipeLineLems.PDA/unpackage/res/icons/72x72.png new file mode 100644 index 0000000..8e3685e --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/72x72.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/76x76.png b/PipeLineLems.PDA/unpackage/res/icons/76x76.png new file mode 100644 index 0000000..54aee0a --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/76x76.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/80x80.png b/PipeLineLems.PDA/unpackage/res/icons/80x80.png new file mode 100644 index 0000000..d5db155 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/80x80.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/87x87.png b/PipeLineLems.PDA/unpackage/res/icons/87x87.png new file mode 100644 index 0000000..78316cf --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/87x87.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/res/icons/96x96.png b/PipeLineLems.PDA/unpackage/res/icons/96x96.png new file mode 100644 index 0000000..7f59083 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/res/icons/96x96.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappchooselocation.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappchooselocation.js new file mode 100644 index 0000000..bd11f4b --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappchooselocation.js @@ -0,0 +1 @@ +!function(e){var t={};function A(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}A.m=e,A.c=t,A.d=function(e,t,a){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(A.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)A.d(a,i,function(t){return e[t]}.bind(null,i));return a},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s=41)}([function(e,t){e.exports={}},function(e,t,A){"use strict";function a(e,t,A,a,i,n,o,s,r,c){var l,u="function"==typeof e?e.options:e;if(r){u.components||(u.components={});var d=Object.prototype.hasOwnProperty;for(var h in r)d.call(r,h)&&!d.call(u.components,h)&&(u.components[h]=r[h])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(u.mixins||(u.mixins=[])).push(c)),t&&(u.render=t,u.staticRenderFns=A,u._compiled=!0),a&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(e,t){return l.call(t),f(e,t)}}else{var g=u.beforeCreate;u.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:u}}A.d(t,"a",(function(){return a}))},function(e,t,A){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,a="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))},A=/^\$|^on|^create|Sync$|Manager$|^pause/,a=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],n=function(e){return(!A.test(e)||"createBLEConnection"===e)&&!~a.indexOf(e)},o=function(A){return function(){for(var a=arguments.length,i=Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(o.success)||e(o.fail)||e(o.complete)?A.apply(void 0,[o].concat(i)):t(new Promise((function(e,t){A.apply(void 0,[Object.assign({},o,{success:e,fail:t})].concat(i)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(A){return t.resolve(e()).then((function(){return A}))}),(function(A){return t.resolve(e()).then((function(){throw A}))}))}})))}},s=[],r=void 0;function c(e){s.forEach((function(t){return t({origin:r,data:e})}))}var l=i.webview.currentWebview().id,u=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){var t=i.webview.getWebviewById(e);return t&&!t.$processed&&function(e){e.$processed=!0;var t=i.webview.currentWebview().id===e.id,A="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,a=e.id;if(e.postMessage=function(e){A?u.postMessage({data:e,to:t?A:a}):w({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){s.push(e)},e.__uniapp_mask_id){r=e.__uniapp_host;var n=e.__uniapp_mask,o=i.webview.getWebviewById(e.__uniapp_mask_id);o=o.parent()||o;var c=e.show,l=e.hide,d=e.close,h=function(){o.setStyle({mask:n})},f=function(){o.setStyle({mask:"none"})};e.show=function(){h();for(var t=arguments.length,A=Array(t),a=0;a<t;a++)A[a]=arguments[a];return c.apply(e,A)},e.hide=function(){f();for(var t=arguments.length,A=Array(t),a=0;a<t;a++)A[a]=arguments[a];return l.apply(e,A)},e.close=function(){f();for(var t=arguments.length,A=Array(t),a=0;a<t;a++)A[a]=arguments[a];return d.apply(e,A)}}}(t),t}u.onmessage=function(e){e.data.to===l&&c(e.data.data)};var h=weex.requireModule("plus"),f=weex.requireModule("globalEvent"),g=0,p={};f.addEventListener("plusMessage",(function(e){"UniAppJsApi"===e.data.type?v(e.data.id,e.data.data):"UniAppSubNVue"===e.data.type?c(e.data.data,e.data.options):"onNavigationBarButtonTap"===e.data.type?"function"==typeof _&&_(e.data.data):"onNavigationBarSearchInputChanged"===e.data.type?"function"==typeof y&&y(e.data.data):"onNavigationBarSearchInputConfirmed"===e.data.type?"function"==typeof B&&B(e.data.data):"onNavigationBarSearchInputClicked"===e.data.type&&"function"==typeof x&&x(e.data.data)}));var v=function(e,t){var A=p[e];A?(A(t),A.keepAlive||delete p[e]):console.error("callback["+e+"] is undefined")},m=function(t){var A,a,i=t.id,n=t.type,o=t.params;p[i]=(a=function(t){e(A)?A(t):A&&(~t.errMsg.indexOf(":ok")?e(A.success)&&A.success(t):~t.errMsg.indexOf(":fail")&&e(A.fail)&&A.fail(t),e(A.complete)&&A.complete(t))},(e(A=o)||A&&e(A.callback))&&(a.keepAlive=!0),a),h.postMessage({id:i,type:n,params:o},"__uniapp__service")};function w(e){h.postMessage(e,"__uniapp__service")}var b=function(e){return function(t){m({id:g++,type:e,params:t})}},_=void 0,y=void 0,B=void 0,x=void 0;function S(e){_=e}function C(e){y=e}function D(e){B=e}function L(e){x=e}function I(e){return weex.requireModule(e)}var E=weex.requireModule("dom"),k=weex.requireModule("globalEvent"),M=[];function N(e){"function"==typeof e&&(this.isUniAppReady?e():M.push(e))}k.addEventListener("plusMessage",(function(e){"UniAppReady"===e.data.type&&(N.isUniAppReady=!0,M.length&&(M.forEach((function(e){return e()})),M=[]))}));var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=weex.requireModule("stream"),P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":j(e))?"POST"===t.toUpperCase()&&"application/json"===A.toLowerCase()?JSON.stringify(e):Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"):e},G=weex.requireModule("plusstorage"),T=weex.requireModule("clipboard"),Q=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function U(e,t,A){return e[t].apply(e,A)}var F=Object.freeze({loadFontFace:function(t){var A=t.family,a=t.source,i=(t.desc,t.success),n=(t.fail,t.complete);E.addRule("fontFace",{fontFamily:A,src:a.replace(/"/g,"'")});var o={errMsg:"loadFontFace:ok",status:"loaded"};e(i)&&i(o),e(n)&&n(o)},ready:N,request:function(t){var A=t.url,a=t.data,i=t.header,n=t.method,o=void 0===n?"GET":n,s=t.dataType,r=void 0===s?"json":s,c=(t.responseType,t.success),l=t.fail,u=t.complete,d=!1,h=!1,f={};if(i)for(var g in i)h||"content-type"!==g.toLowerCase()?f[g]=i[g]:(h=!0,f["Content-Type"]=i[g]);return"GET"===o&&a&&(A=A+(~A.indexOf("?")?"&"===A.substr(-1)||"?"===A.substr(-1)?"":"&":"?")+P(a)),O.fetch({url:A,method:o,headers:f,type:"json"===r?"json":"text",body:"GET"!==o?P(a,o,f["Content-Type"]):""},(function(t){var A=t.status,a=(t.ok,t.statusText,t.data),i=t.headers,n={};!A||-1===A||d?(n.errMsg="request:fail",e(l)&&l(n)):(n.data=a,n.statusCode=A,n.header=i,e(c)&&c(n)),e(u)&&u(n)})),{abort:function(){d=!0}}},getStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.getItem(A+"__TYPE",(function(t){if("success"===t.result){var o=t.data;G.getItem(A,(function(t){if("success"===t.result){var A=t.data;o&&A?("String"!==o&&(A=JSON.parse(A)),e(a)&&a({errMsg:"getStorage:ok",data:A})):(t.errMsg="setStorage:fail",e(i)&&i(t))}else t.errMsg="setStorage:fail",e(i)&&i(t);e(n)&&n(t)}))}else t.errMsg="setStorage:fail",e(i)&&i(t),e(n)&&n(t)}))},setStorage:function(t){var A=t.key,a=t.data,i=t.success,n=t.fail,o=t.complete,s="String";"object"===(void 0===a?"undefined":j(a))&&(s="Object",a=JSON.stringify(a)),G.setItem(A,a,(function(t){"success"===t.result?G.setItem(A+"__TYPE",s,(function(t){"success"===t.result?e(i)&&i({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(n)&&n(t))})):(t.errMsg="setStorage:fail",e(n)&&n(t)),e(o)&&o(t)}))},removeStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.removeItem(A,(function(t){"success"===t.result?e(a)&&a({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(i)&&i(t)),e(n)&&n(t)})),G.removeItem(A+"__TYPE")},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var A=t.success,a=(t.fail,t.complete);T.getString((function(t){var i={errMsg:"getClipboardData:ok",data:t.data};e(A)&&A(i),e(a)&&a(i)}))},setClipboardData:function(t){var A=t.data,a=t.success,i=(t.fail,t.complete),n={errMsg:"setClipboardData:ok"};T.setString(A),e(a)&&a(n),e(i)&&i(n)},onSubNVueMessage:c,getSubNVueById:d,getCurrentSubNVue:function(){return d(i.webview.currentWebview().id)},$on:function(){return U(Q(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return U(Q(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return U(Q(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return U(Q(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),R={os:{nvue:!0}},V={};return"undefined"!=typeof Proxy?V=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return w;if("requireNativePlugin"===t)return I;if("onNavigationBarButtonTap"===t)return S;if("onNavigationBarSearchInputChanged"===t)return C;if("onNavigationBarSearchInputConfirmed"===t)return D;if("onNavigationBarSearchInputClicked"===t)return L;var A=F[t];return A||(A=b(t)),n(t)?o(A):A}}):(Object.keys(R).forEach((function(e){V[e]=R[e]})),V.postMessage=w,V.requireNativePlugin=I,V.onNavigationBarButtonTap=S,V.onNavigationBarSearchInputChanged=C,V.onNavigationBarSearchInputConfirmed=D,V.onNavigationBarSearchInputClicked=L,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach((function(e){var t=F[e];t||(t=b(e)),n(e)?V[e]=o(t):V[e]=t}))),V};var i=new WeexPlus(weex);t.weexPlus=i;var n=a(weex,i,BroadcastChannel);t.default=n},function(e,t,A){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(A(4).default,Vue.prototype.__$appStyle__)},function(e,t,A){"use strict";A.r(t);var a=A(0),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,(function(){return a[e]}))}(n);t.default=i.a},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var t=this,A=e.webview.currentWebview().extras||{},a=A.from,i=(A.callback,A.runtime),n=A.data,o=void 0===n?{}:n,s=A.useGlobalEvent;this.__from=a,this.__runtime=i,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(o)),e.key.addEventListener("backbutton",(function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")}));var r=this,c=function(e){var t=e.data&&e.data.__message;t&&r.__onMessageCallback&&r.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",c):new BroadcastChannel(this.__page).onmessage=c},postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:t,keep:A}})),i=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)e.webview.postMessageToUniNView(a,i);else{var n=new BroadcastChannel(i);n.postMessage(a)}else{var o=e.webview.getWebviewById(i);o&&o.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:a}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"瀹屾垚",cancel:"鍙栨秷"},"zh-hans":{},"zh-hant":{},messages:{}}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var t=(e.webview.currentWebview().extras||{}).data||{};if(t.messages&&(this.localization.messages=t.messages),t.locale)this.locale=t.locale.toLowerCase();else{var A=e.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),a=A[1];a&&(A[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[a]||a),A.length=A.length>2?2:A.length,this.locale=A.join("-")}}},localize:function(e){var t=this.locale,A=t.split("-")[0],a=this.fallbackLocale,i=this.localization;function n(e){return i[e]||{}}return n("messages")[e]||n(t)[e]||n(A)[e]||n(a)[e]||e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";var a=A(29),i=A(12),n=A(1);var o=Object(n.a)(i.default,a.b,a.c,!1,null,null,"14d2bcf2",!1,a.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(A(36).default,this.options.style):Object.assign(this.options.style,A(36).default)}).call(o),t.default=o.exports},,,,,function(e,t,A){"use strict";var a=A(13),i=A.n(a);t.default=i.a},function(e,t,A){"use strict";(function(e,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(A(5)),n=o(A(6));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,a)}return A}function r(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}weex.requireModule("dom").addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8gE4kAAABfAAAAFZjbWFw4nGd6QAAAegAAAGyZ2x5Zn61L/EAAAOoAAACJGhlYWQXJ/zZAAAA4AAAADZoaGVhB94DhgAAALwAAAAkaG10eBQAAAAAAAHUAAAAFGxvY2EBUAGyAAADnAAAAAxtYXhwARMAZgAAARgAAAAgbmFtZWs+cdAAAAXMAAAC2XBvc3SV1XYLAAAIqAAAAE4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUAAQAAAAEAAFP+qyxfDzz1AAsEAAAAAADaBFxuAAAAANoEXG4AAP+gBAADYAAAAAgAAgAAAAAAAAABAAAABQBaAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5grsMgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABcgABAAAAAABsAAMAAQAAACwAAwAKAAABcgAEAEAAAAAKAAgAAgAC5grmHOZR7DL//wAA5grmHOZR7DL//wAAAAAAAAAAAAEACgAKAAoACgAAAAQAAwACAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAEAAAAAAAAAABAAA5goAAOYKAAAABAAA5hwAAOYcAAAAAwAA5lEAAOZRAAAAAgAA7DIAAOwyAAAAAQAAAAAAAAB+AKAA0gESAAQAAP+gA+ADYAAAAAkAMQBZAAABIx4BMjY0JiIGBSMuASc1NCYiBh0BDgEHIyIGFBY7AR4BFxUUFjI2PQE+ATczMjY0JgE1NCYiBh0BLgEnMzI2NCYrAT4BNxUUFjI2PQEeARcjIgYUFjsBDgECAFABLUQtLUQtAg8iD9OcEhwSnNMPIg4SEg4iD9OcEhwSnNMPIg4SEv5SEhwSga8OPg4SEg4+Dq+BEhwSga8OPg4SEg4+Dq8BgCItLUQtLQKc0w8iDhISDiIP05wSHBKc0w8iDhISDiIP05wSHBL+gj4OEhIOPg6vgRIcEoGvDj4OEhIOPg6vgRIcEoGvAAEAAAAAA4ECgQAQAAABPgEeAQcBDgEvASY0NhYfAQM2DCIbAgz+TA0kDfcMGiIN1wJyDQIZIg3+IQ4BDf4NIhoBDd0AAQAAAAADAgKCAB0AAAE3PgEuAgYPAScmIgYUHwEHBhQWMj8BFxYyNjQnAjy4CAYGEBcWCLe3DSIaDLi4DBkjDbe3DSMZDAGAtwgWFxAGBgi4uAwaIg23tw0jGQy4uAwZIw0AAAIAAP/fA6EDHgAVACYAACUnPgE3LgEnDgEHHgEXMjY3FxYyNjQlBiIuAjQ+AjIeAhQOAQOX2CcsAQTCkpLCAwPCkj5uLdkJGRH+ijV0Z08rK09ndGdPLCxPE9MtckGSwgQEwpKSwgMoJdQIEhi3FixOaHNnTywsT2dzaE4AAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQARABUAAQAAAAAAAgAHACYAAQAAAAAAAwARAC0AAQAAAAAABAARAD4AAQAAAAAABQALAE8AAQAAAAAABgARAFoAAQAAAAAACgArAGsAAQAAAAAACwATAJYAAwABBAkAAAAqAKkAAwABBAkAAQAiANMAAwABBAkAAgAOAPUAAwABBAkAAwAiAQMAAwABBAkABAAiASUAAwABBAkABQAWAUcAAwABBAkABgAiAV0AAwABBAkACgBWAX8AAwABBAkACwAmAdUKQ3JlYXRlZCBieSBpY29uZm9udAp1bmljaG9vc2Vsb2NhdGlvblJlZ3VsYXJ1bmljaG9vc2Vsb2NhdGlvbnVuaWNob29zZWxvY2F0aW9uVmVyc2lvbiAxLjB1bmljaG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"});var c=weex.requireModule("mapSearch"),l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC";var u={mixins:[i.default,n.default],data:function(){return{positionIcon:l,mapScale:16,userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:l,width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1,localization:{en:{search_tips:"Search for a place",no_found:"No results found",nearby:"Nearby",more:"More"},zh:{search_tips:"鎼滅储鍦扮偣",no_found:"瀵逛笉璧凤紝娌℃湁鎼滅储鍒扮浉鍏虫暟鎹�",nearby:"闄勮繎",more:"鏇村"}},searchNearFlag:!0,searchMethod:"poiSearchNearBy"}},computed:{disableOK:function(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0},searchMethods:function(){return[{title:this.localize("nearby"),method:"poiSearchNearBy"},{title:this.localize("more"),method:"poiKeywordsSearch"}]}},filters:{distance:function(e){return e>100?"".concat(e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0),"m | "):e>0?"100m鍐� | ":""}},watch:{searchMethod:function(){this._searchPageIndex=1,this.searchEnd=!1,this.searchList=[],this._searchKeyword&&this.search()}},onLoad:function(){this.statusBarHeight=e.navigator.getStatusbarHeight(),this.mapHeight=e.screen.resolutionHeight/2;var t=this.data;this.userKeyword=t.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady:function(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload:function(){this.clearSearchTimer()},methods:{cancelClick:function(){this.postMessage({event:"cancel"})},doneClick:function(){if(!this.disableOK){var e=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:e.name,address:e.address,latitude:e.location.latitude,longitude:e.location.longitude};this.postMessage({event:"selected",detail:t})}},getUserLocation:function(){var t=this;e.geolocation.getCurrentPosition((function(e){var A=e.coordsType,a=e.coords;"wgs84"===A.toLowerCase()?t.wgs84togcjo2(a,(function(e){t.getUserLocationSuccess(e)})):t.getUserLocationSuccess(a)}),(function(e){t._hasUserLocation=!0,a("log","Gelocation Error: code - "+e.code+"; message - "+e.message," at template/__uniappchooselocation.nvue:292")}),{geocode:!1})},getUserLocationSuccess:function(e){this._userLatitude=e.latitude,this._userLongitude=e.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:e.latitude,longitude:e.longitude})},searchclick:function(t){this.showSearch=t,!1===t&&e.key.hideSoftKeybord()},showSearchView:function(){this.searchList=[],this.showSearch=!0},hideSearchView:function(){this.showSearch=!1,e.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1,this._searchKeyword=""},onregionchange:function(e){var t=this,A=e.detail,a=A.type||e.type;"drag"===(A.causedBy||e.causedBy)&&"end"===a&&this.mapContext.getCenterLocation((function(e){t.searchNearFlag?t.moveToCenter({latitude:e.latitude,longitude:e.longitude}):t.searchNearFlag=!t.searchNearFlag}))},onItemClick:function(e,t){this.searchNearFlag=!1,t.stopPropagation&&t.stopPropagation(),this.nearSelectedIndex!==e&&(this.nearSelectedIndex=e),this.moveToLocation(this.nearList[e]&&this.nearList[e].location)},moveToCenter:function(e){this.latitude===e.latitude&&this.longitude===e.longitude||(this.latitude=e.latitude,this.longitude=e.longitude,this.updateCenter(e),this.moveToLocation(e),this.isUserLocation=this._userLatitude===e.latitude&&this._userLongitude===e.longitude)},updateCenter:function(e){var t=this;this.nearSelectedIndex=-1,this.nearList=[],this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(e),this.searchNearByPoint(e),this.onItemClick(0,{stopPropagation:function(){t.searchNearFlag=!0}}),this.$refs.nearListLoadmore.resetLoadmore())},searchNear:function(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint:function(e){var t=this;this.noNearData=!1,this.nearLoading=!0,c.poiSearchNearBy({point:{latitude:e.latitude,longitude:e.longitude},key:this.userKeyword,sortrule:1,index:this._nearPageIndex,radius:1e3},(function(e){t.nearLoading=!1,t._nearPageIndex=e.pageIndex+1,t.nearLoadingEnd=e.pageIndex===e.pageNumber,e.poiList&&e.poiList.length?(t.fixPois(e.poiList),t.nearList=t.nearList.concat(e.poiList),t.fixNearList()):t.noNearData=0===t.nearList.length}))},moveToLocation:function(e){e&&this.mapContext.moveToLocation(function(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?s(Object(A),!0).forEach((function(t){r(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}({},e,{fail:function(e){a("error","chooseLocation_moveToLocation",e," at template/__uniappchooselocation.nvue:419")}}))},reverseGeocode:function(e){var t=this;c.reverseGeocode({point:e},(function(A){"success"===A.type&&t._nearPageIndex<=2&&(t.nearList.splice(0,0,{code:A.code,location:e,name:"鍦板浘浣嶇疆",address:A.address||""}),t.fixNearList())}))},fixNearList:function(){var e=this.nearList;if(e.length>=2&&"鍦板浘浣嶇疆"===e[0].name){var t=this.getAddressStart(e[1]),A=e[0].address;A.startsWith(t)&&(e[0].name=A.substring(t.length))}},onsearchinput:function(e){var t=this,A=e.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout((function(){clearTimeout(t._searchInputTimer),t._searchPageIndex=1,t.searchEnd=!1,t._searchKeyword=A,t.searchList=[],t.search()}),300)},clearSearchTimer:function(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search:function(){var e=this;0===this._searchKeyword.length||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,c[this.searchMethod]({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,sortrule:1,index:this._searchPageIndex,radius:5e4},(function(t){e.searchLoading=!1,e._searchPageIndex=t.pageIndex+1,e.searchEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(e.fixPois(t.poiList),e.searchList=e.searchList.concat(t.poiList)):e.noSearchData=0===e.searchList.length})))},onSearchListTouchStart:function(){e.key.hideSoftKeybord()},onSearchItemClick:function(e,t){t.stopPropagation(),this.searchSelectedIndex!==e&&(this.searchSelectedIndex=e),this.moveToLocation(this.searchList[e]&&this.searchList[e].location)},getAddressStart:function(e){var t=e.addressOrigin||e.address;return e.province+(e.province===e.city?"":e.city)+(/^\d+$/.test(e.district)?"":t.startsWith(e.district)?"":e.district)},fixPois:function(e){for(var t=0;t<e.length;t++){var A=e[t];A.name=A.name.replace(/\\/g,""),A.addressOrigin=A.address.replace(/\\/g,""),A.address=this.getAddressStart(A)+A.addressOrigin}},wgs84togcjo2:function(e,t){var A=weex.requireModule("stream"),a="https://apis.map.qq.com/jsapi?qt=translate&type=1&points=".concat(e.longitude,",").concat(e.latitude,"&key=MAP_KEY&output=json&pf=jsapi&ref=jsapi");A.fetch({method:"GET",url:a,type:"json"},(function(e){if(e.ok){var A=e.data.detail.points[0];t({latitude:A.lat,longitude:A.lng})}}))}}};t.default=u}).call(this,A(2).weexPlus,A(35).default)},function(e,t){e.exports={map_center_marker_container:{alignItems:"flex-start",width:"22",height:"70"},map_center_marker:{width:"22",height:"35"},"unichooselocation-icons":{fontFamily:"unichooselocation",textDecoration:"none",textAlign:"center"},page:{flex:1,position:"relative"},"flex-r":{flexDirection:"row",flexWrap:"nowrap"},"flex-c":{flexDirection:"column",flexWrap:"nowrap"},"flex-fill":{flex:1},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"nav-cover":{position:"absolute",left:0,top:0,right:0,height:"100",backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0))"},statusbar:{height:"22"},"title-view":{paddingTop:"5",paddingRight:"15",paddingBottom:"5",paddingLeft:"15"},"btn-cancel":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},"btn-cancel-text":{fontSize:"30",color:"#ffffff"},"btn-done":{backgroundColor:"#007AFF",borderRadius:"3",paddingTop:"5",paddingRight:"12",paddingBottom:"5",paddingLeft:"12"},"btn-done-disabled":{backgroundColor:"#62abfb"},"text-done":{color:"#ffffff",fontSize:"15",fontWeight:"bold",lineHeight:"15",height:"15"},"text-done-disabled":{color:"#c0ddfe"},"map-view":{flex:2,position:"relative"},map:{width:"750rpx",justifyContent:"center",alignItems:"center"},"map-location":{position:"absolute",right:"20",bottom:"25",width:"44",height:"44",backgroundColor:"#ffffff",borderRadius:"40",boxShadow:"0 2px 4px rgba(100, 100, 100, 0.2)"},"map-location-text":{fontSize:"20"},"map-location-text-active":{color:"#007AFF"},"result-area":{flex:2,position:"relative"},"search-bar":{paddingTop:"12",paddingRight:"15",paddingBottom:"12",paddingLeft:"15",backgroundColor:"#ffffff"},"search-area":{backgroundColor:"#ebebeb",borderRadius:"5",height:"30",paddingLeft:"8"},"search-text":{fontSize:"14",lineHeight:"16",color:"#b4b4b4"},"search-icon":{fontSize:"16",color:"#b4b4b4",marginRight:"4"},"search-tab":{flexDirection:"row",paddingTop:"2",paddingRight:"16",paddingBottom:"2",paddingLeft:"16",marginTop:"-10",backgroundColor:"#FFFFFF"},"search-tab-item":{marginTop:0,marginRight:"5",marginBottom:0,marginLeft:"5",textAlign:"center",fontSize:"14",lineHeight:"32",color:"#333333",borderBottomStyle:"solid",borderBottomWidth:"2",borderBottomColor:"rgba(0,0,0,0)"},"search-tab-item-active":{borderBottomColor:"#0079FF"},"no-data":{color:"#808080"},"no-data-search":{marginTop:"50"},"list-item":{position:"relative",paddingTop:"12",paddingRight:"15",paddingBottom:"12",paddingLeft:"15"},"list-line":{position:"absolute",left:"15",right:0,bottom:0,height:".5",backgroundColor:"#d3d3d3"},"list-name":{fontSize:"14",lines:1,textOverflow:"ellipsis"},"list-address":{fontSize:"12",color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:"5"},"list-icon-area":{paddingLeft:"10",paddingRight:"10"},"list-selected-icon":{fontSize:"20",color:"#007AFF"},"search-view":{position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"#f6f6f6"},"searching-area":{flex:5},"search-input":{fontSize:"14",height:"30",paddingLeft:"6"},"search-cancel":{color:"#0079FF",marginLeft:"10"},"loading-view":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15"},"loading-icon":{width:"28",height:"28",color:"#808080"}}},,,,,,,,,,,,,,,function(e,t,A){"use strict";var a=function(){var e=this,t=e.$createElement,A=e._self._c||t;return A("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,enableBackToTop:!0,bubble:"true"}},[A("view",{staticClass:["page","flex-c"]},[A("view",{staticClass:["flex-r","map-view"]},[A("map",{ref:"map1",staticClass:["map","flex-fill"],style:"height:"+e.mapHeight+"px",attrs:{scale:e.mapScale,showLocation:e.showLocation,longitude:e.longitude,latitude:e.latitude},on:{regionchange:e.onregionchange}},[A("div",{staticClass:["map_center_marker_container"]},[A("u-image",{staticClass:["map_center_marker"],attrs:{src:e.positionIcon}})],1)]),A("view",{staticClass:["map-location","flex-c","a-i-c","j-c-c"],on:{click:function(t){e.getUserLocation()}}},[A("u-text",{staticClass:["unichooselocation-icons","map-location-text"],class:{"map-location-text-active":e.isUserLocation}},[e._v("畎�")])]),A("view",{staticClass:["nav-cover"]},[A("view",{staticClass:["statusbar"],style:"height:"+e.statusBarHeight+"px"}),A("view",{staticClass:["title-view","flex-r"]},[A("view",{staticClass:["btn-cancel"],on:{click:e.cancelClick}},[A("u-text",{staticClass:["unichooselocation-icons","btn-cancel-text"]},[e._v("顦�")])]),A("view",{staticClass:["flex-fill"]}),A("view",{staticClass:["btn-done","flex-r","a-i-c","j-c-c"],class:{"btn-done-disabled":e.disableOK},on:{click:e.doneClick}},[A("u-text",{staticClass:["text-done"],class:{"text-done-disabled":e.disableOK}},[e._v(e._s(e.localize("done")))])])])])],1),A("view",{staticClass:["flex-c","result-area"],class:{"searching-area":e.showSearch}},[A("view",{staticClass:["search-bar"]},[A("view",{staticClass:["search-area","flex-r","a-i-c"],on:{click:e.showSearchView}},[A("u-text",{staticClass:["search-icon","unichooselocation-icons"]},[e._v("顦�")]),A("u-text",{staticClass:["search-text"]},[e._v(e._s(e.localize("search_tips")))])])]),e.noNearData?e._e():A("list",{ref:"nearListLoadmore",staticClass:["flex-fill","list-view"],attrs:{loadmoreoffset:"5",scrollY:!0},on:{loadmore:function(t){e.searchNear()}}},[e._l(e.nearList,(function(t,a){return A("cell",{key:t.uid,appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["list-item"],on:{click:function(t){e.onItemClick(a,t)}}},[A("view",{staticClass:["flex-r"]},[A("view",{staticClass:["list-text-area","flex-fill","flex-c"]},[A("u-text",{staticClass:["list-name"]},[e._v(e._s(t.name))]),A("u-text",{staticClass:["list-address"]},[e._v(e._s(e._f("distance")(t.distance))+e._s(t.address))])]),a===e.nearSelectedIndex?A("view",{staticClass:["list-icon-area","flex-r","a-i-c","j-c-c"]},[A("u-text",{staticClass:["unichooselocation-icons","list-selected-icon"]},[e._v("顧�")])]):e._e()]),A("view",{staticClass:["list-line"]})])])})),e.nearLoading?A("cell",{appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["loading-view","flex-c","a-i-c","j-c-c"]},[A("loading-indicator",{staticClass:["loading-icon"],attrs:{animating:!0,arrow:"false"}})])]):e._e()],2),e.noNearData?A("view",{staticClass:["flex-fill","flex-r","a-i-c","j-c-c"]},[A("u-text",{staticClass:["no-data"]},[e._v(e._s(e.localize("no_found")))])]):e._e(),e.showSearch?A("view",{staticClass:["search-view","flex-c"]},[A("view",{staticClass:["search-bar","flex-r","a-i-c"]},[A("view",{staticClass:["search-area","flex-fill","flex-r"]},[A("u-input",{staticClass:["search-input","flex-fill"],attrs:{focus:!0,placeholder:e.localize("search_tips")},on:{input:e.onsearchinput}})],1),A("u-text",{staticClass:["search-cancel"],on:{click:e.hideSearchView}},[e._v(e._s(e.localize("cancel")))])]),A("view",{staticClass:["search-tab"]},e._l(e.searchMethods,(function(t,a){return A("u-text",{key:a,staticClass:["search-tab-item"],class:{"search-tab-item-active":t.method===e.searchMethod},on:{click:function(A){e.searchMethod=e.searchLoading?e.searchMethod:t.method}}},[e._v(e._s(t.title))])})),0),e.noSearchData?e._e():A("list",{staticClass:["flex-fill","list-view"],attrs:{enableBackToTop:!0,scrollY:!0},on:{loadmore:function(t){e.search()},touchstart:e.onSearchListTouchStart}},[e._l(e.searchList,(function(t,a){return A("cell",{key:t.uid,appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["list-item"],on:{click:function(t){e.onSearchItemClick(a,t)}}},[A("view",{staticClass:["flex-r"]},[A("view",{staticClass:["list-text-area","flex-fill","flex-c"]},[A("u-text",{staticClass:["list-name"]},[e._v(e._s(t.name))]),A("u-text",{staticClass:["list-address"]},[e._v(e._s(e._f("distance")(t.distance))+e._s(t.address))])]),a===e.searchSelectedIndex?A("view",{staticClass:["list-icon-area","flex-r","a-i-c","j-c-c"]},[A("u-text",{staticClass:["unichooselocation-icons","list-selected-icon"]},[e._v("顧�")])]):e._e()]),A("view",{staticClass:["list-line"]})])])})),e.searchLoading?A("cell",{appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["loading-view","flex-c","a-i-c","j-c-c"]},[A("loading-indicator",{staticClass:["loading-icon"],attrs:{animating:!0}})])]):e._e()],2),e.noSearchData?A("view",{staticClass:["flex-fill","flex-r","j-c-c"]},[A("u-text",{staticClass:["no-data","no-data-search"]},[e._v(e._s(e.localize("no_found")))])]):e._e()]):e._e()])])])},i=[];A.d(t,"b",(function(){return a})),A.d(t,"c",(function(){return i})),A.d(t,"a",(function(){}))},,,,,,function(e,t,A){"use strict";function a(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(e){for(var t=arguments.length,A=new Array(t>1?t-1:0),a=1;a<t;a++)A[a-1]=arguments[a];console[e].apply(console,A)},t.default=function(){for(var e=arguments.length,t=new Array(e),A=0;A<e;A++)t[A]=arguments[A];var n=t.shift();if(i())return t.push(t.pop().replace("at ","uni-app:///")),console[n].apply(console,t);var o=t.map((function(e){var t=Object.prototype.toString.call(e).toLowerCase();if("[object object]"===t||"[object array]"===t)try{e="---BEGIN:JSON---"+JSON.stringify(e)+"---END:JSON---"}catch(t){e="[object object]"}else if(null===e)e="---NULL---";else if(void 0===e)e="---UNDEFINED---";else{var A=a(e).toUpperCase();e="NUMBER"===A||"BOOLEAN"===A?"---BEGIN:"+A+"---"+e+"---END:"+A+"---":String(e)}return e})),s="";if(o.length>1){var r=o.pop();s=o.join("---COMMA---"),0===r.indexOf(" at ")?s+=r:s+="---COMMA---"+r}else s=o[0];console[n](s)}},function(e,t,A){"use strict";A.r(t);var a=A(14),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,(function(){return a[e]}))}(n);t.default=i.a},,,,,function(e,t,A){"use strict";A.r(t);A(3);var a=A(7);a.default.mpType="page",a.default.route="template/__uniappchooselocation",a.default.el="#root",new Vue(a.default)}]); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapperror.png b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapperror.png new file mode 100644 index 0000000..4743b25 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapperror.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappes6.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappes6.js new file mode 100644 index 0000000..d4018e8 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappes6.js @@ -0,0 +1 @@ +!function(t){"use strict";!function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=0)}([function(t,r,n){n(1),n(54),n(61),n(66),n(68),n(69),n(70),n(71),n(73),n(74),n(76),n(84),n(85),n(86),n(95),n(96),n(98),n(99),n(100),n(102),n(103),n(104),n(105),n(106),n(107),n(109),n(110),n(111),n(112),n(121),n(124),n(125),n(127),n(129),n(130),n(131),n(132),n(133),n(135),n(137),n(140),n(141),n(143),n(145),n(146),n(147),n(148),n(150),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(171),n(172),n(174),n(178),n(179),n(180),n(181),n(187),n(189),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(201),n(202),n(203),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),t.exports=n(217)},function(r,n,e){var o=e(2),i=e(6),u=e(45),c=e(14),a=e(46),f=e(39),s=e(47),l=e(48),p=e(51),g=e(49),v=e(52),h=g("isConcatSpreadable"),d=v>=51||!i(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),x=p("concat"),y=function(r){if(!c(r))return!1;var n=r[h];return n!==t?!!n:u(r)};o({target:"Array",proto:!0,forced:!d||!x},{concat:function(t){var r,n,e,o,i,u=a(this),c=l(u,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(i=-1===r?u:arguments[r],y(i)){if(p+(o=f(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(c,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(c,p++,i)}return c.length=p,c}})},function(r,n,e){var o=e(3),i=e(4).f,u=e(18),c=e(21),a=e(25),f=e(32),s=e(44);r.exports=function(r,n){var e,l,p,g,v,h=r.target,d=r.global,x=r.stat;if(e=d?o:x?o[h]||a(h,{}):(o[h]||{}).prototype)for(l in n){if(g=n[l],p=r.noTargetGet?(v=i(e,l))&&v.value:e[l],!s(d?l:h+(x?".":"#")+l,r.forced)&&p!==t){if(typeof g==typeof p)continue;f(g,p)}(r.sham||p&&p.sham)&&u(g,"sham",!0),c(e,l,g,r)}}},function(t,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,r,n){var e=n(5),o=n(7),i=n(8),u=n(9),c=n(13),a=n(15),f=n(16),s=Object.getOwnPropertyDescriptor;r.f=e?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,n){var e=n(6);t.exports=!e(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(10),o=n(12);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(6),o=n(11),i="".split;t.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(r,n){r.exports=function(r){if(r==t)throw TypeError("Can't call method on "+r);return r}},function(t,r,n){var e=n(14);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(5),o=n(6),i=n(17);t.exports=!e&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,r,n){var e=n(3),o=n(14),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(5),o=n(19),i=n(8);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(5),o=n(16),i=n(20),u=n(13),c=Object.defineProperty;r.f=e?c:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return c(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(14);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(3),o=n(22),i=n(18),u=n(15),c=n(25),a=n(26),f=n(27),s=f.get,l=f.enforce,p=String(a).split("toString");o("inspectSource",function(t){return a.call(t)}),(t.exports=function(t,r,n,o){var a=!!o&&!!o.unsafe,f=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof r||u(n,"name")||i(n,"name",r),l(n).source=p.join("string"==typeof r?r:"")),t!==e?(a?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=n:i(t,r,n)):f?t[r]=n:c(r,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||a.call(this)})},function(r,n,e){var o=e(23),i=e(24);(r.exports=function(r,n){return i[r]||(i[r]=n!==t?n:{})})("versions",[]).push({version:"3.3.6",mode:o?"pure":"global",copyright:"漏 2019 Denis Pushkarev (zloirock.ru)"})},function(t,r){t.exports=!1},function(t,r,n){var e=n(3),o=n(25),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(3),o=n(18);t.exports=function(t,r){try{o(e,t,r)}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(22);t.exports=e("native-function-to-string",Function.toString)},function(t,r,n){var e,o,i,u=n(28),c=n(3),a=n(14),f=n(18),s=n(15),l=n(29),p=n(31),g=c.WeakMap;if(u){var v=new g,h=v.get,d=v.has,x=v.set;e=function(t,r){return x.call(v,t,r),r},o=function(t){return h.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var y=l("state");p[y]=!0,e=function(t,r){return f(t,y,r),r},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(3),o=n(26),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,r,n){var e=n(22),o=n(30),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(r,n){var e=0,o=Math.random();r.exports=function(r){return"Symbol("+String(r===t?"":r)+")_"+(++e+o).toString(36)}},function(t,r){t.exports={}},function(t,r,n){var e=n(15),o=n(33),i=n(4),u=n(19);t.exports=function(t,r){for(var n=o(r),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];e(t,s)||c(t,s,a(r,s))}}},function(t,r,n){var e=n(34),o=n(36),i=n(43),u=n(20);t.exports=e("Reflect","ownKeys")||function(t){var r=o.f(u(t)),n=i.f;return n?r.concat(n(t)):r}},function(r,n,e){var o=e(35),i=e(3),u=function(r){return"function"==typeof r?r:t};r.exports=function(t,r){return arguments.length<2?u(o[t])||u(i[t]):o[t]&&o[t][r]||i[t]&&i[t][r]}},function(t,r,n){t.exports=n(3)},function(t,r,n){var e=n(37),o=n(42).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,r,n){var e=n(15),o=n(9),i=n(38).indexOf,u=n(31);t.exports=function(t,r){var n,c=o(t),a=0,f=[];for(n in c)!e(u,n)&&e(c,n)&&f.push(n);for(;r.length>a;)e(c,n=r[a++])&&(~i(f,n)||f.push(n));return f}},function(t,r,n){var e=n(9),o=n(39),i=n(41),u=function(t){return function(r,n,u){var c,a=e(r),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){var e=n(40),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:n)(t)}},function(t,r,n){var e=n(40),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(6),o=/#|\.prototype\./,i=function(t,r){var n=c[u(t)];return n==f||n!=a&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(11);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(12);t.exports=function(t){return Object(e(t))}},function(t,r,n){var e=n(13),o=n(19),i=n(8);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(r,n,e){var o=e(14),i=e(45),u=e(49)("species");r.exports=function(r,n){var e;return i(r)&&("function"!=typeof(e=r.constructor)||e!==Array&&!i(e.prototype)?o(e)&&null===(e=e[u])&&(e=t):e=t),new(e===t?Array:e)(0===n?0:n)}},function(t,r,n){var e=n(3),o=n(22),i=n(30),u=n(50),c=e.Symbol,a=o("wks");t.exports=function(t){return a[t]||(a[t]=u&&c[t]||(u?c:i)("Symbol."+t))}},function(t,r,n){var e=n(6);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(t,r,n){var e=n(6),o=n(49),i=n(52),u=o("species");t.exports=function(t){return i>=51||!e(function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo})}},function(t,r,n){var e,o,i=n(3),u=n(53),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(e=f.split("."))[0]+e[1]:u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},function(t,r,n){var e=n(34);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(2),o=n(55),i=n(56);e({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(r,n,e){var o=e(46),i=e(41),u=e(39),c=Math.min;r.exports=[].copyWithin||function(r,n){var e=o(this),a=u(e.length),f=i(r,a),s=i(n,a),l=arguments.length>2?arguments[2]:t,p=c((l===t?a:i(l,a))-s,a-f),g=1;for(s<f&&f<s+p&&(g=-1,s+=p-1,f+=p-1);p-- >0;)s in e?e[f]=e[s]:delete e[f],f+=g,s+=g;return e}},function(r,n,e){var o=e(49),i=e(57),u=e(18),c=o("unscopables"),a=Array.prototype;a[c]==t&&u(a,c,i(null)),r.exports=function(t){a[c][t]=!0}},function(r,n,e){var o=e(20),i=e(58),u=e(42),c=e(31),a=e(60),f=e(17),s=e(29)("IE_PROTO"),l=function(){},p=function(){var t,r=f("iframe"),n=u.length;for(r.style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),p=t.F;n--;)delete p.prototype[u[n]];return p()};r.exports=Object.create||function(r,n){var e;return null!==r?(l.prototype=o(r),e=new l,l.prototype=null,e[s]=r):e=p(),n===t?e:i(e,n)},c[s]=!0},function(t,r,n){var e=n(5),o=n(19),i=n(20),u=n(59);t.exports=e?Object.defineProperties:function(t,r){i(t);for(var n,e=u(r),c=e.length,a=0;c>a;)o.f(t,n=e[a++],r[n]);return t}},function(t,r,n){var e=n(37),o=n(42);t.exports=Object.keys||function(t){return e(t,o)}},function(t,r,n){var e=n(34);t.exports=e("document","documentElement")},function(r,n,e){var o=e(2),i=e(62).every;o({target:"Array",proto:!0,forced:e(65)("every")},{every:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}})},function(r,n,e){var o=e(63),i=e(10),u=e(46),c=e(39),a=e(48),f=[].push,s=function(r){var n=1==r,e=2==r,s=3==r,l=4==r,p=6==r,g=5==r||p;return function(v,h,d,x){for(var y,b,m=u(v),S=i(m),O=o(h,d,3),E=c(S.length),w=0,j=x||a,A=n?j(v,E):e?j(v,0):t;E>w;w++)if((g||w in S)&&(b=O(y=S[w],w,m),r))if(n)A[w]=b;else if(b)switch(r){case 3:return!0;case 5:return y;case 6:return w;case 2:f.call(A,y)}else if(l)return!1;return p?-1:s||l?l:A}};r.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(r,n,e){var o=e(64);r.exports=function(r,n,e){if(o(r),n===t)return r;switch(e){case 0:return function(){return r.call(n)};case 1:return function(t){return r.call(n,t)};case 2:return function(t,e){return r.call(n,t,e)};case 3:return function(t,e,o){return r.call(n,t,e,o)}}return function(){return r.apply(n,arguments)}}},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,r,n){var e=n(6);t.exports=function(t,r){var n=[][t];return!n||!e(function(){n.call(null,r||function(){throw 1},1)})}},function(t,r,n){var e=n(2),o=n(67),i=n(56);e({target:"Array",proto:!0},{fill:o}),i("fill")},function(r,n,e){var o=e(46),i=e(41),u=e(39);r.exports=function(r){for(var n=o(this),e=u(n.length),c=arguments.length,a=i(c>1?arguments[1]:t,e),f=c>2?arguments[2]:t,s=f===t?e:i(f,e);s>a;)n[a++]=r;return n}},function(r,n,e){var o=e(2),i=e(62).filter;o({target:"Array",proto:!0,forced:!e(51)("filter")},{filter:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}})},function(r,n,e){var o=e(2),i=e(62).find,u=e(56),c=!0;"find"in[]&&Array(1).find(function(){c=!1}),o({target:"Array",proto:!0,forced:c},{find:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}}),u("find")},function(r,n,e){var o=e(2),i=e(62).findIndex,u=e(56),c=!0;"findIndex"in[]&&Array(1).findIndex(function(){c=!1}),o({target:"Array",proto:!0,forced:c},{findIndex:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}}),u("findIndex")},function(r,n,e){var o=e(2),i=e(72),u=e(46),c=e(39),a=e(40),f=e(48);o({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:t,n=u(this),e=c(n.length),o=f(n,0);return o.length=i(o,n,n,e,0,r===t?1:a(r)),o}})},function(t,r,n){var e=n(45),o=n(39),i=n(63),u=function(t,r,n,c,a,f,s,l){for(var p,g=a,v=0,h=!!s&&i(s,l,3);v<c;){if(v in n){if(p=h?h(n[v],v,r):n[v],f>0&&e(p))g=u(t,r,p,o(p.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[g]=p}g++}v++}return g};t.exports=u},function(r,n,e){var o=e(2),i=e(72),u=e(46),c=e(39),a=e(64),f=e(48);o({target:"Array",proto:!0},{flatMap:function(r){var n,e=u(this),o=c(e.length);return a(r),(n=f(e,0)).length=i(n,e,e,o,0,1,r,arguments.length>1?arguments[1]:t),n}})},function(t,r,n){var e=n(2),o=n(75);e({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(r,n,e){var o=e(62).forEach,i=e(65);r.exports=i("forEach")?function(r){return o(this,r,arguments.length>1?arguments[1]:t)}:[].forEach},function(t,r,n){var e=n(2),o=n(77);e({target:"Array",stat:!0,forced:!n(83)(function(t){Array.from(t)})},{from:o})},function(r,n,e){var o=e(63),i=e(46),u=e(78),c=e(79),a=e(39),f=e(47),s=e(81);r.exports=function(r){var n,e,l,p,g,v=i(r),h="function"==typeof this?this:Array,d=arguments.length,x=d>1?arguments[1]:t,y=x!==t,b=0,m=s(v);if(y&&(x=o(x,d>2?arguments[2]:t,2)),m==t||h==Array&&c(m))for(e=new h(n=a(v.length));n>b;b++)f(e,b,y?x(v[b],b):v[b]);else for(g=(p=m.call(v)).next,e=new h;!(l=g.call(p)).done;b++)f(e,b,y?u(p,x,[l.value,b],!0):l.value);return e.length=b,e}},function(r,n,e){var o=e(20);r.exports=function(r,n,e,i){try{return i?n(o(e)[0],e[1]):n(e)}catch(n){var u=r.return;throw u!==t&&o(u.call(r)),n}}},function(r,n,e){var o=e(49),i=e(80),u=o("iterator"),c=Array.prototype;r.exports=function(r){return r!==t&&(i.Array===r||c[u]===r)}},function(t,r){t.exports={}},function(r,n,e){var o=e(82),i=e(80),u=e(49)("iterator");r.exports=function(r){if(r!=t)return r[u]||r["@@iterator"]||i[o(r)]}},function(r,n,e){var o=e(11),i=e(49)("toStringTag"),u="Arguments"==o(function(){return arguments}());r.exports=function(r){var n,e,c;return r===t?"Undefined":null===r?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(n=Object(r),i))?e:u?o(n):"Object"==(c=o(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,r,n){var e=n(49)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,function(){throw 2})}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(r,n,e){var o=e(2),i=e(38).includes,u=e(56);o({target:"Array",proto:!0},{includes:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}}),u("includes")},function(r,n,e){var o=e(2),i=e(38).indexOf,u=e(65),c=[].indexOf,a=!!c&&1/[1].indexOf(1,-0)<0,f=u("indexOf");o({target:"Array",proto:!0,forced:a||f},{indexOf:function(r){return a?c.apply(this,arguments)||0:i(this,r,arguments.length>1?arguments[1]:t)}})},function(r,n,e){var o=e(9),i=e(56),u=e(80),c=e(27),a=e(87),f=c.set,s=c.getterFor("Array Iterator");r.exports=a(Array,"Array",function(t,r){f(this,{type:"Array Iterator",target:o(t),index:0,kind:r})},function(){var r=s(this),n=r.target,e=r.kind,o=r.index++;return!n||o>=n.length?(r.target=t,{value:t,done:!0}):"keys"==e?{value:o,done:!1}:"values"==e?{value:n[o],done:!1}:{value:[o,n[o]],done:!1}},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(t,r,n){var e=n(2),o=n(88),i=n(90),u=n(93),c=n(92),a=n(18),f=n(21),s=n(49),l=n(23),p=n(80),g=n(89),v=g.IteratorPrototype,h=g.BUGGY_SAFARI_ITERATORS,d=s("iterator"),x=function(){return this};t.exports=function(t,r,n,s,g,y,b){o(n,r,s);var m,S,O,E=function(t){if(t===g&&_)return _;if(!h&&t in A)return A[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},w=r+" Iterator",j=!1,A=t.prototype,I=A[d]||A["@@iterator"]||g&&A[g],_=!h&&I||E(g),N="Array"==r&&A.entries||I;if(N&&(m=i(N.call(new t)),v!==Object.prototype&&m.next&&(l||i(m)===v||(u?u(m,v):"function"!=typeof m[d]&&a(m,d,x)),c(m,w,!0,!0),l&&(p[w]=x))),"values"==g&&I&&"values"!==I.name&&(j=!0,_=function(){return I.call(this)}),l&&!b||A[d]===_||a(A,d,_),p[r]=_,g)if(S={values:E("values"),keys:y?_:E("keys"),entries:E("entries")},b)for(O in S)!h&&!j&&O in A||f(A,O,S[O]);else e({target:r,proto:!0,forced:h||j},S);return S}},function(t,r,n){var e=n(89).IteratorPrototype,o=n(57),i=n(8),u=n(92),c=n(80),a=function(){return this};t.exports=function(t,r,n){var f=r+" Iterator";return t.prototype=o(e,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(r,n,e){var o,i,u,c=e(90),a=e(18),f=e(15),s=e(49),l=e(23),p=s("iterator"),g=!1;[].keys&&("next"in(u=[].keys())?(i=c(c(u)))!==Object.prototype&&(o=i):g=!0),o==t&&(o={}),l||f(o,p)||a(o,p,function(){return this}),r.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:g}},function(t,r,n){var e=n(15),o=n(46),i=n(29),u=n(91),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),e(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,r,n){var e=n(6);t.exports=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,r,n){var e=n(19).f,o=n(15),i=n(49)("toStringTag");t.exports=function(t,r,n){t&&!o(t=n?t:t.prototype,i)&&e(t,i,{configurable:!0,value:r})}},function(r,n,e){var o=e(20),i=e(94);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),r=n instanceof Array}catch(t){}return function(n,e){return o(n),i(e),r?t.call(n,e):n.__proto__=e,n}}():t)},function(t,r,n){var e=n(14);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(r,n,e){var o=e(2),i=e(10),u=e(9),c=e(65),a=[].join,f=i!=Object,s=c("join",",");o({target:"Array",proto:!0,forced:f||s},{join:function(r){return a.call(u(this),r===t?",":r)}})},function(t,r,n){var e=n(2),o=n(97);e({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(t,r,n){var e=n(9),o=n(40),i=n(39),u=n(65),c=Math.min,a=[].lastIndexOf,f=!!a&&1/[1].lastIndexOf(1,-0)<0,s=u("lastIndexOf");t.exports=f||s?function(t){if(f)return a.apply(this,arguments)||0;var r=e(this),n=i(r.length),u=n-1;for(arguments.length>1&&(u=c(u,o(arguments[1]))),u<0&&(u=n+u);u>=0;u--)if(u in r&&r[u]===t)return u||0;return-1}:a},function(r,n,e){var o=e(2),i=e(62).map;o({target:"Array",proto:!0,forced:!e(51)("map")},{map:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}})},function(t,r,n){var e=n(2),o=n(6),i=n(47);e({target:"Array",stat:!0,forced:o(function(){function t(){}return!(Array.of.call(t)instanceof t)})},{of:function(){for(var t=0,r=arguments.length,n=new("function"==typeof this?this:Array)(r);r>t;)i(n,t,arguments[t++]);return n.length=r,n}})},function(r,n,e){var o=e(2),i=e(101).left;o({target:"Array",proto:!0,forced:e(65)("reduce")},{reduce:function(r){return i(this,r,arguments.length,arguments.length>1?arguments[1]:t)}})},function(t,r,n){var e=n(64),o=n(46),i=n(10),u=n(39),c=function(t){return function(r,n,c,a){e(n);var f=o(r),s=i(f),l=u(f.length),p=t?l-1:0,g=t?-1:1;if(c<2)for(;;){if(p in s){a=s[p],p+=g;break}if(p+=g,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=g)p in s&&(a=n(a,s[p],p,f));return a}};t.exports={left:c(!1),right:c(!0)}},function(r,n,e){var o=e(2),i=e(101).right;o({target:"Array",proto:!0,forced:e(65)("reduceRight")},{reduceRight:function(r){return i(this,r,arguments.length,arguments.length>1?arguments[1]:t)}})},function(t,r,n){var e=n(2),o=n(45),i=[].reverse,u=[1,2];e({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},function(r,n,e){var o=e(2),i=e(14),u=e(45),c=e(41),a=e(39),f=e(9),s=e(47),l=e(51),p=e(49)("species"),g=[].slice,v=Math.max;o({target:"Array",proto:!0,forced:!l("slice")},{slice:function(r,n){var e,o,l,h=f(this),d=a(h.length),x=c(r,d),y=c(n===t?d:n,d);if(u(h)&&("function"!=typeof(e=h.constructor)||e!==Array&&!u(e.prototype)?i(e)&&null===(e=e[p])&&(e=t):e=t,e===Array||e===t))return g.call(h,x,y);for(o=new(e===t?Array:e)(v(y-x,0)),l=0;x<y;x++,l++)x in h&&s(o,l,h[x]);return o.length=l,o}})},function(r,n,e){var o=e(2),i=e(62).some;o({target:"Array",proto:!0,forced:e(65)("some")},{some:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}})},function(r,n,e){var o=e(2),i=e(64),u=e(46),c=e(6),a=e(65),f=[].sort,s=[1,2,3],l=c(function(){s.sort(t)}),p=c(function(){s.sort(null)}),g=a("sort");o({target:"Array",proto:!0,forced:l||!p||g},{sort:function(r){return r===t?f.call(u(this)):f.call(u(this),i(r))}})},function(t,r,n){n(108)("Array")},function(t,r,n){var e=n(34),o=n(19),i=n(49),u=n(5),c=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[c]&&n(r,c,{configurable:!0,get:function(){return this}})}},function(t,r,n){var e=n(2),o=n(41),i=n(40),u=n(39),c=n(46),a=n(48),f=n(47),s=n(51),l=Math.max,p=Math.min;e({target:"Array",proto:!0,forced:!s("splice")},{splice:function(t,r){var n,e,s,g,v,h,d=c(this),x=u(d.length),y=o(t,x),b=arguments.length;if(0===b?n=e=0:1===b?(n=0,e=x-y):(n=b-2,e=p(l(i(r),0),x-y)),x+n-e>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=a(d,e),g=0;g<e;g++)(v=y+g)in d&&f(s,g,d[v]);if(s.length=e,n<e){for(g=y;g<x-e;g++)h=g+n,(v=g+e)in d?d[h]=d[v]:delete d[h];for(g=x;g>x-e+n;g--)delete d[g-1]}else if(n>e)for(g=x-e;g>y;g--)h=g+n-1,(v=g+e-1)in d?d[h]=d[v]:delete d[h];for(g=0;g<n;g++)d[g+y]=arguments[g+2];return d.length=x-e+n,s}})},function(t,r,n){n(56)("flat")},function(t,r,n){n(56)("flatMap")},function(r,n,e){var o=e(113),i=e(119);r.exports=o("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:t)}},i,!0)},function(r,n,e){var o=e(2),i=e(3),u=e(44),c=e(21),a=e(114),f=e(116),s=e(117),l=e(14),p=e(6),g=e(83),v=e(92),h=e(118);r.exports=function(r,n,e,d,x){var y=i[r],b=y&&y.prototype,m=y,S=d?"set":"add",O={},E=function(r){var n=b[r];c(b,r,"add"==r?function(t){return n.call(this,0===t?0:t),this}:"delete"==r?function(t){return!(x&&!l(t))&&n.call(this,0===t?0:t)}:"get"==r?function(r){return x&&!l(r)?t:n.call(this,0===r?0:r)}:"has"==r?function(t){return!(x&&!l(t))&&n.call(this,0===t?0:t)}:function(t,r){return n.call(this,0===t?0:t,r),this})};if(u(r,"function"!=typeof y||!(x||b.forEach&&!p(function(){(new y).entries().next()}))))m=e.getConstructor(n,r,d,S),a.REQUIRED=!0;else if(u(r,!0)){var w=new m,j=w[S](x?{}:-0,1)!=w,A=p(function(){w.has(1)}),I=g(function(t){new y(t)}),_=!x&&p(function(){for(var t=new y,r=5;r--;)t[S](r,r);return!t.has(-0)});I||((m=n(function(n,e){s(n,m,r);var o=h(new y,n,m);return e!=t&&f(e,o[S],o,d),o})).prototype=b,b.constructor=m),(A||_)&&(E("delete"),E("has"),d&&E("get")),(_||j)&&E(S),x&&b.clear&&delete b.clear}return O[r]=m,o({global:!0,forced:m!=y},O),v(m,r),x||e.setStrong(m,r,d),m}},function(t,r,n){var e=n(31),o=n(14),i=n(15),u=n(19).f,c=n(30),a=n(115),f=c("meta"),s=0,l=Object.isExtensible||function(){return!0},p=function(t){u(t,f,{value:{objectID:"O"+ ++s,weakData:{}}})},g=t.exports={REQUIRED:!1,fastKey:function(t,r){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,f)){if(!l(t))return"F";if(!r)return"E";p(t)}return t[f].objectID},getWeakData:function(t,r){if(!i(t,f)){if(!l(t))return!0;if(!r)return!1;p(t)}return t[f].weakData},onFreeze:function(t){return a&&g.REQUIRED&&l(t)&&!i(t,f)&&p(t),t}};e[f]=!0},function(t,r,n){var e=n(6);t.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,r,n){var e=n(20),o=n(79),i=n(39),u=n(63),c=n(81),a=n(78),f=function(t,r){this.stopped=t,this.result=r};(t.exports=function(t,r,n,s,l){var p,g,v,h,d,x,y,b=u(r,n,s?2:1);if(l)p=t;else{if("function"!=typeof(g=c(t)))throw TypeError("Target is not iterable");if(o(g)){for(v=0,h=i(t.length);h>v;v++)if((d=s?b(e(y=t[v])[0],y[1]):b(t[v]))&&d instanceof f)return d;return new f(!1)}p=g.call(t)}for(x=p.next;!(y=x.call(p)).done;)if("object"==typeof(d=a(p,b,y.value,s))&&d&&d instanceof f)return d;return new f(!1)}).stop=function(t){return new f(!0,t)}},function(t,r){t.exports=function(t,r,n){if(!(t instanceof r))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,r,n){var e=n(14),o=n(93);t.exports=function(t,r,n){var i,u;return o&&"function"==typeof(i=r.constructor)&&i!==n&&e(u=i.prototype)&&u!==n.prototype&&o(t,u),t}},function(r,n,e){var o=e(19).f,i=e(57),u=e(120),c=e(63),a=e(117),f=e(116),s=e(87),l=e(108),p=e(5),g=e(114).fastKey,v=e(27),h=v.set,d=v.getterFor;r.exports={getConstructor:function(r,n,e,s){var l=r(function(r,o){a(r,l,n),h(r,{type:n,index:i(null),first:t,last:t,size:0}),p||(r.size=0),o!=t&&f(o,r[s],r,e)}),v=d(n),x=function(r,n,e){var o,i,u=v(r),c=y(r,n);return c?c.value=e:(u.last=c={index:i=g(n,!0),key:n,value:e,previous:o=u.last,next:t,removed:!1},u.first||(u.first=c),o&&(o.next=c),p?u.size++:r.size++,"F"!==i&&(u.index[i]=c)),r},y=function(t,r){var n,e=v(t),o=g(r);if("F"!==o)return e.index[o];for(n=e.first;n;n=n.next)if(n.key==r)return n};return u(l.prototype,{clear:function(){for(var r=v(this),n=r.index,e=r.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=t),delete n[e.index],e=e.next;r.first=r.last=t,p?r.size=0:this.size=0},delete:function(t){var r=v(this),n=y(this,t);if(n){var e=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=e),e&&(e.previous=o),r.first==n&&(r.first=e),r.last==n&&(r.last=o),p?r.size--:this.size--}return!!n},forEach:function(r){for(var n,e=v(this),o=c(r,arguments.length>1?arguments[1]:t,3);n=n?n.next:e.first;)for(o(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!y(this,t)}}),u(l.prototype,e?{get:function(t){var r=y(this,t);return r&&r.value},set:function(t,r){return x(this,0===t?0:t,r)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),p&&o(l.prototype,"size",{get:function(){return v(this).size}}),l},setStrong:function(r,n,e){var o=n+" Iterator",i=d(n),u=d(o);s(r,n,function(r,n){h(this,{type:o,target:r,state:i(r),kind:n,last:t})},function(){for(var r=u(this),n=r.kind,e=r.last;e&&e.removed;)e=e.previous;return r.target&&(r.last=e=e?e.next:r.state.first)?"keys"==n?{value:e.key,done:!1}:"values"==n?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(r.target=t,{value:t,done:!0})},e?"entries":"values",!e,!0),l(n)}}},function(t,r,n){var e=n(21);t.exports=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t}},function(t,r,n){var e=n(5),o=n(3),i=n(44),u=n(21),c=n(15),a=n(11),f=n(118),s=n(13),l=n(6),p=n(57),g=n(36).f,v=n(4).f,h=n(19).f,d=n(122).trim,x=o.Number,y=x.prototype,b="Number"==a(p(y)),m=function(t){var r,n,e,o,i,u,c,a,f=s(t,!1);if("string"==typeof f&&f.length>2)if(43===(r=(f=d(f)).charCodeAt(0))||45===r){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===r){switch(f.charCodeAt(1)){case 66:case 98:e=2,o=49;break;case 79:case 111:e=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,e)}return+f};if(i("Number",!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var S,O=function(t){var r=arguments.length<1?0:t,n=this;return n instanceof O&&(b?l(function(){y.valueOf.call(n)}):"Number"!=a(n))?f(new x(m(r)),n,O):m(r)},E=e?g(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;E.length>w;w++)c(x,S=E[w])&&!c(O,S)&&h(O,S,v(x,S));O.prototype=y,y.constructor=O,u(o,"Number",O)}},function(t,r,n){var e=n(12),o="["+n(123)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),c=function(t){return function(r){var n=String(e(r));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,r){t.exports="\t\n\v\f\r 聽釟�鈥�鈥佲�傗�冣�勨�呪�嗏�団�堚�夆�娾�仧銆�\u2028\u2029\ufeff"},function(t,r,n){n(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,r,n){n(2)({target:"Number",stat:!0},{isFinite:n(126)})},function(t,r,n){var e=n(3).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&e(t)}},function(t,r,n){n(2)({target:"Number",stat:!0},{isInteger:n(128)})},function(t,r,n){var e=n(14),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,r,n){n(2)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,r,n){var e=n(2),o=n(128),i=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,r,n){n(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,r,n){n(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,r,n){var e=n(2),o=n(134);e({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(t,r,n){var e=n(3),o=n(122).trim,i=n(123),u=e.parseFloat,c=1/u(i+"-0")!=-1/0;t.exports=c?function(t){var r=o(String(t)),n=u(r);return 0===n&&"-"==r.charAt(0)?-0:n}:u},function(t,r,n){var e=n(2),o=n(136);e({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(t,r,n){var e=n(3),o=n(122).trim,i=n(123),u=e.parseInt,c=/^[+-]?0[Xx]/,a=8!==u(i+"08")||22!==u(i+"0x16");t.exports=a?function(t,r){var n=o(String(t));return u(n,r>>>0||(c.test(n)?16:10))}:u},function(t,r,n){var e=n(2),o=n(40),i=n(138),u=n(139),c=n(6),a=1..toFixed,f=Math.floor,s=function(t,r,n){return 0===r?n:r%2==1?s(t,r-1,n*t):s(t*t,r/2,n)};e({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c(function(){a.call({})})},{toFixed:function(t){var r,n,e,c,a=i(this),l=o(t),p=[0,0,0,0,0,0],g="",v="0",h=function(t,r){for(var n=-1,e=r;++n<6;)e+=t*p[n],p[n]=e%1e7,e=f(e/1e7)},d=function(t){for(var r=6,n=0;--r>=0;)n+=p[r],p[r]=f(n/t),n=n%t*1e7},x=function(){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==p[t]){var n=String(p[t]);r=""===r?n:r+u.call("0",7-n.length)+n}return r};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(g="-",a=-a),a>1e-21)if(n=(r=function(t){for(var r=0,n=t;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r}(a*s(2,69,1))-69)<0?a*s(2,-r,1):a/s(2,r,1),n*=4503599627370496,(r=52-r)>0){for(h(0,n),e=l;e>=7;)h(1e7,0),e-=7;for(h(s(10,e,1),0),e=r-1;e>=23;)d(1<<23),e-=23;d(1<<e),h(1,1),d(2),v=x()}else h(0,n),h(1<<-r,0),v=x()+u.call("0",l);return v=l>0?g+((c=v.length)<=l?"0."+u.call("0",l-c)+v:v.slice(0,c-l)+"."+v.slice(c-l)):g+v}})},function(t,r,n){var e=n(11);t.exports=function(t){if("number"!=typeof t&&"Number"!=e(t))throw TypeError("Incorrect invocation");return+t}},function(t,r,n){var e=n(40),o=n(12);t.exports="".repeat||function(t){var r=String(o(this)),n="",i=e(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(r+=r))1&i&&(n+=r);return n}},function(r,n,e){var o=e(2),i=e(6),u=e(138),c=1..toPrecision;o({target:"Number",proto:!0,forced:i(function(){return"1"!==c.call(1,t)})||!i(function(){c.call({})})},{toPrecision:function(r){return r===t?c.call(u(this)):c.call(u(this),r)}})},function(t,r,n){var e=n(2),o=n(142);e({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,r,n){var e=n(5),o=n(6),i=n(59),u=n(43),c=n(7),a=n(46),f=n(10),s=Object.assign;t.exports=!s||o(function(){var t={},r={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),7!=s({},t)[n]||"abcdefghijklmnopqrst"!=i(s({},r)).join("")})?function(t,r){for(var n=a(t),o=arguments.length,s=1,l=u.f,p=c.f;o>s;)for(var g,v=f(arguments[s++]),h=l?i(v).concat(l(v)):i(v),d=h.length,x=0;d>x;)g=h[x++],e&&!p.call(v,g)||(n[g]=v[g]);return n}:s},function(t,r,n){var e=n(2),o=n(5),i=n(144),u=n(46),c=n(64),a=n(19);o&&e({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,r){a.f(u(this),t,{get:c(r),enumerable:!0,configurable:!0})}})},function(t,r,n){var e=n(23),o=n(3),i=n(6);t.exports=e||!i(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete o[t]})},function(t,r,n){var e=n(2),o=n(5);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(58)})},function(t,r,n){var e=n(2),o=n(5);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(19).f})},function(t,r,n){var e=n(2),o=n(5),i=n(144),u=n(46),c=n(64),a=n(19);o&&e({target:"Object",proto:!0,forced:i},{__defineSetter__:function(t,r){a.f(u(this),t,{set:c(r),enumerable:!0,configurable:!0})}})},function(t,r,n){var e=n(2),o=n(149).entries;e({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,r,n){var e=n(5),o=n(59),i=n(9),u=n(7).f,c=function(t){return function(r){for(var n,c=i(r),a=o(c),f=a.length,s=0,l=[];f>s;)n=a[s++],e&&!u.call(c,n)||l.push(t?[n,c[n]]:c[n]);return l}};t.exports={entries:c(!0),values:c(!1)}},function(t,r,n){var e=n(2),o=n(115),i=n(6),u=n(14),c=n(114).onFreeze,a=Object.freeze;e({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!o},{freeze:function(t){return a&&u(t)?a(c(t)):t}})},function(r,n,e){var o=e(2),i=e(116),u=e(47);o({target:"Object",stat:!0},{fromEntries:function(r){var n={};return i(r,function(t,r){u(n,t,r)},t,!0),n}})},function(t,r,n){var e=n(2),o=n(6),i=n(9),u=n(4).f,c=n(5),a=o(function(){u(1)});e({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,r){return u(i(t),r)}})},function(r,n,e){var o=e(2),i=e(5),u=e(33),c=e(9),a=e(4),f=e(47);o({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(r){for(var n,e,o=c(r),i=a.f,s=u(o),l={},p=0;s.length>p;)(e=i(o,n=s[p++]))!==t&&f(l,n,e);return l}})},function(t,r,n){var e=n(2),o=n(6),i=n(155).f;e({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},function(t,r,n){var e=n(9),o=n(36).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},function(t,r,n){var e=n(2),o=n(6),i=n(46),u=n(90),c=n(91);e({target:"Object",stat:!0,forced:o(function(){u(1)}),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,r,n){n(2)({target:"Object",stat:!0},{is:n(158)})},function(t,r){t.exports=Object.is||function(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}},function(t,r,n){var e=n(2),o=n(6),i=n(14),u=Object.isExtensible;e({target:"Object",stat:!0,forced:o(function(){u(1)})},{isExtensible:function(t){return!!i(t)&&(!u||u(t))}})},function(t,r,n){var e=n(2),o=n(6),i=n(14),u=Object.isFrozen;e({target:"Object",stat:!0,forced:o(function(){u(1)})},{isFrozen:function(t){return!i(t)||!!u&&u(t)}})},function(t,r,n){var e=n(2),o=n(6),i=n(14),u=Object.isSealed;e({target:"Object",stat:!0,forced:o(function(){u(1)})},{isSealed:function(t){return!i(t)||!!u&&u(t)}})},function(t,r,n){var e=n(2),o=n(46),i=n(59);e({target:"Object",stat:!0,forced:n(6)(function(){i(1)})},{keys:function(t){return i(o(t))}})},function(t,r,n){var e=n(2),o=n(5),i=n(144),u=n(46),c=n(13),a=n(90),f=n(4).f;o&&e({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(t){var r,n=u(this),e=c(t,!0);do{if(r=f(n,e))return r.get}while(n=a(n))}})},function(t,r,n){var e=n(2),o=n(5),i=n(144),u=n(46),c=n(13),a=n(90),f=n(4).f;o&&e({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(t){var r,n=u(this),e=c(t,!0);do{if(r=f(n,e))return r.set}while(n=a(n))}})},function(t,r,n){var e=n(2),o=n(14),i=n(114).onFreeze,u=n(115),c=n(6),a=Object.preventExtensions;e({target:"Object",stat:!0,forced:c(function(){a(1)}),sham:!u},{preventExtensions:function(t){return a&&o(t)?a(i(t)):t}})},function(t,r,n){var e=n(2),o=n(14),i=n(114).onFreeze,u=n(115),c=n(6),a=Object.seal;e({target:"Object",stat:!0,forced:c(function(){a(1)}),sham:!u},{seal:function(t){return a&&o(t)?a(i(t)):t}})},function(t,r,n){n(2)({target:"Object",stat:!0},{setPrototypeOf:n(93)})},function(t,r,n){var e=n(21),o=n(169),i=Object.prototype;o!==i.toString&&e(i,"toString",o,{unsafe:!0})},function(t,r,n){var e=n(82),o={};o[n(49)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+e(this)+"]"}:o.toString},function(t,r,n){var e=n(2),o=n(149).values;e({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(r,n,e){var o=e(113),i=e(119);r.exports=o("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:t)}},i)},function(t,r,n){var e=n(2),o=n(173).codeAt;e({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},function(r,n,e){var o=e(40),i=e(12),u=function(r){return function(n,e){var u,c,a=String(i(n)),f=o(e),s=a.length;return f<0||f>=s?r?"":t:(u=a.charCodeAt(f))<55296||u>56319||f+1===s||(c=a.charCodeAt(f+1))<56320||c>57343?r?a.charAt(f):u:r?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};r.exports={codeAt:u(!1),charAt:u(!0)}},function(r,n,e){var o=e(2),i=e(39),u=e(175),c=e(12),a=e(177),f="".endsWith,s=Math.min;o({target:"String",proto:!0,forced:!a("endsWith")},{endsWith:function(r){var n=String(c(this));u(r);var e=arguments.length>1?arguments[1]:t,o=i(n.length),a=e===t?o:s(i(e),o),l=String(r);return f?f.call(n,l,a):n.slice(a-l.length,a)===l}})},function(t,r,n){var e=n(176);t.exports=function(t){if(e(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(r,n,e){var o=e(14),i=e(11),u=e(49)("match");r.exports=function(r){var n;return o(r)&&((n=r[u])!==t?!!n:"RegExp"==i(r))}},function(t,r,n){var e=n(49)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(n){try{return r[e]=!1,"/./"[t](r)}catch(t){}}return!1}},function(t,r,n){var e=n(2),o=n(41),i=String.fromCharCode,u=String.fromCodePoint;e({target:"String",stat:!0,forced:!!u&&1!=u.length},{fromCodePoint:function(t){for(var r,n=[],e=arguments.length,u=0;e>u;){if(r=+arguments[u++],o(r,1114111)!==r)throw RangeError(r+" is not a valid code point");n.push(r<65536?i(r):i(55296+((r-=65536)>>10),r%1024+56320))}return n.join("")}})},function(r,n,e){var o=e(2),i=e(175),u=e(12);o({target:"String",proto:!0,forced:!e(177)("includes")},{includes:function(r){return!!~String(u(this)).indexOf(i(r),arguments.length>1?arguments[1]:t)}})},function(r,n,e){var o=e(173).charAt,i=e(27),u=e(87),c=i.set,a=i.getterFor("String Iterator");u(String,"String",function(t){c(this,{type:"String Iterator",string:String(t),index:0})},function(){var r,n=a(this),e=n.string,i=n.index;return i>=e.length?{value:t,done:!0}:(r=o(e,i),n.index+=r.length,{value:r,done:!1})})},function(r,n,e){var o=e(182),i=e(20),u=e(39),c=e(12),a=e(185),f=e(186);o("match",1,function(r,n,e){return[function(n){var e=c(this),o=n==t?t:n[r];return o!==t?o.call(n,e):new RegExp(n)[r](String(e))},function(t){var r=e(n,t,this);if(r.done)return r.value;var o=i(t),c=String(this);if(!o.global)return f(o,c);var s=o.unicode;o.lastIndex=0;for(var l,p=[],g=0;null!==(l=f(o,c));){var v=String(l[0]);p[g]=v,""===v&&(o.lastIndex=a(c,u(o.lastIndex),s)),g++}return 0===g?null:p}]})},function(t,r,n){var e=n(18),o=n(21),i=n(6),u=n(49),c=n(183),a=u("species"),f=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),s=!i(function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(t,r,n,l){var p=u(t),g=!i(function(){var r={};return r[p]=function(){return 7},7!=""[t](r)}),v=g&&!i(function(){var r=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[a]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return r=!0,null},n[p](""),!r});if(!g||!v||"replace"===t&&!f||"split"===t&&!s){var h=/./[p],d=n(p,""[t],function(t,r,n,e,o){return r.exec===c?g&&!o?{done:!0,value:h.call(r,n,e)}:{done:!0,value:t.call(n,r,e)}:{done:!1}}),x=d[0],y=d[1];o(String.prototype,t,x),o(RegExp.prototype,p,2==r?function(t,r){return y.call(t,this,r)}:function(t){return y.call(t,this)}),l&&e(RegExp.prototype[p],"sham",!0)}}},function(r,n,e){var o,i,u=e(184),c=RegExp.prototype.exec,a=String.prototype.replace,f=c,s=(o=/a/,i=/b*/g,c.call(o,"a"),c.call(i,"a"),0!==o.lastIndex||0!==i.lastIndex),l=/()??/.exec("")[1]!==t;(s||l)&&(f=function(r){var n,e,o,i,f=this;return l&&(e=new RegExp("^"+f.source+"$(?!\\s)",u.call(f))),s&&(n=f.lastIndex),o=c.call(f,r),s&&o&&(f.lastIndex=f.global?o.index+o[0].length:n),l&&o&&o.length>1&&a.call(o[0],e,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===t&&(o[i]=t)}),o}),r.exports=f},function(t,r,n){var e=n(20);t.exports=function(){var t=e(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r}},function(t,r,n){var e=n(173).charAt;t.exports=function(t,r,n){return r+(n?e(t,r).length:1)}},function(t,r,n){var e=n(11),o=n(183);t.exports=function(t,r){var n=t.exec;if("function"==typeof n){var i=n.call(t,r);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,r)}},function(r,n,e){var o=e(2),i=e(88),u=e(12),c=e(39),a=e(64),f=e(20),s=e(82),l=e(176),p=e(184),g=e(18),v=e(6),h=e(49),d=e(188),x=e(185),y=e(27),b=e(23),m=h("matchAll"),S=y.set,O=y.getterFor("RegExp String Iterator"),E=RegExp.prototype,w=E.exec,j="".matchAll,A=!!j&&!v(function(){"a".matchAll(/./)}),I=i(function(t,r,n,e){S(this,{type:"RegExp String Iterator",regexp:t,string:r,global:n,unicode:e,done:!1})},"RegExp String",function(){var r=O(this);if(r.done)return{value:t,done:!0};var n=r.regexp,e=r.string,o=function(t,r){var n,e=t.exec;if("function"==typeof e){if("object"!=typeof(n=e.call(t,r)))throw TypeError("Incorrect exec result");return n}return w.call(t,r)}(n,e);return null===o?{value:t,done:r.done=!0}:r.global?(""==String(o[0])&&(n.lastIndex=x(e,c(n.lastIndex),r.unicode)),{value:o,done:!1}):(r.done=!0,{value:o,done:!1})}),_=function(r){var n,e,o,i,u,a,s=f(this),l=String(r);return n=d(s,RegExp),(e=s.flags)===t&&s instanceof RegExp&&!("flags"in E)&&(e=p.call(s)),o=e===t?"":String(e),i=new n(n===RegExp?s.source:s,o),u=!!~o.indexOf("g"),a=!!~o.indexOf("u"),i.lastIndex=c(s.lastIndex),new I(i,l,u,a)};o({target:"String",proto:!0,forced:A},{matchAll:function(r){var n,e,o,i=u(this);if(null!=r){if(l(r)&&!~String(u("flags"in E?r.flags:p.call(r))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(A)return j.apply(i,arguments);if((e=r[m])===t&&b&&"RegExp"==s(r)&&(e=_),null!=e)return a(e).call(r,i)}else if(A)return j.apply(i,arguments);return n=String(i),o=new RegExp(r,"g"),b?_.call(o,n):o[m](n)}}),b||m in E||g(E,m,_)},function(r,n,e){var o=e(20),i=e(64),u=e(49)("species");r.exports=function(r,n){var e,c=o(r).constructor;return c===t||(e=o(c)[u])==t?n:i(e)}},function(r,n,e){var o=e(2),i=e(190).end;o({target:"String",proto:!0,forced:e(191)},{padEnd:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}})},function(r,n,e){var o=e(39),i=e(139),u=e(12),c=Math.ceil,a=function(r){return function(n,e,a){var f,s,l=String(u(n)),p=l.length,g=a===t?" ":String(a),v=o(e);return v<=p||""==g?l:(f=v-p,(s=i.call(g,c(f/g.length))).length>f&&(s=s.slice(0,f)),r?l+s:s+l)}};r.exports={start:a(!1),end:a(!0)}},function(t,r,n){var e=n(53);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(e)},function(r,n,e){var o=e(2),i=e(190).start;o({target:"String",proto:!0,forced:e(191)},{padStart:function(r){return i(this,r,arguments.length>1?arguments[1]:t)}})},function(t,r,n){var e=n(2),o=n(9),i=n(39);e({target:"String",stat:!0},{raw:function(t){for(var r=o(t.raw),n=i(r.length),e=arguments.length,u=[],c=0;n>c;)u.push(String(r[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,r,n){n(2)({target:"String",proto:!0},{repeat:n(139)})},function(r,n,e){var o=e(182),i=e(20),u=e(46),c=e(39),a=e(40),f=e(12),s=e(185),l=e(186),p=Math.max,g=Math.min,v=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;o("replace",2,function(r,n,e){return[function(e,o){var i=f(this),u=e==t?t:e[r];return u!==t?u.call(e,i,o):n.call(String(i),e,o)},function(r,u){var f=e(n,r,this,u);if(f.done)return f.value;var v=i(r),h=String(this),d="function"==typeof u;d||(u=String(u));var x=v.global;if(x){var y=v.unicode;v.lastIndex=0}for(var b=[];;){var m=l(v,h);if(null===m)break;if(b.push(m),!x)break;""===String(m[0])&&(v.lastIndex=s(h,c(v.lastIndex),y))}for(var S,O="",E=0,w=0;w<b.length;w++){m=b[w];for(var j=String(m[0]),A=p(g(a(m.index),h.length),0),I=[],_=1;_<m.length;_++)I.push((S=m[_])===t?S:String(S));var N=m.groups;if(d){var R=[j].concat(I,A,h);N!==t&&R.push(N);var k=String(u.apply(t,R))}else k=o(j,h,A,I,N,u);A>=E&&(O+=h.slice(E,A)+k,E=A+j.length)}return O+h.slice(E)}];function o(r,e,o,i,c,a){var f=o+r.length,s=i.length,l=d;return c!==t&&(c=u(c),l=h),n.call(a,l,function(n,u){var a;switch(u.charAt(0)){case"$":return"$";case"&":return r;case"`":return e.slice(0,o);case"'":return e.slice(f);case"<":a=c[u.slice(1,-1)];break;default:var l=+u;if(0===l)return n;if(l>s){var p=v(l/10);return 0===p?n:p<=s?i[p-1]===t?u.charAt(1):i[p-1]+u.charAt(1):n}a=i[l-1]}return a===t?"":a})}})},function(r,n,e){var o=e(182),i=e(20),u=e(12),c=e(158),a=e(186);o("search",1,function(r,n,e){return[function(n){var e=u(this),o=n==t?t:n[r];return o!==t?o.call(n,e):new RegExp(n)[r](String(e))},function(t){var r=e(n,t,this);if(r.done)return r.value;var o=i(t),u=String(this),f=o.lastIndex;c(f,0)||(o.lastIndex=0);var s=a(o,u);return c(o.lastIndex,f)||(o.lastIndex=f),null===s?-1:s.index}]})},function(r,n,e){var o=e(182),i=e(176),u=e(20),c=e(12),a=e(188),f=e(185),s=e(39),l=e(186),p=e(183),g=e(6),v=[].push,h=Math.min,d=!g(function(){return!RegExp(4294967295,"y")});o("split",2,function(r,n,e){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(r,e){var o=String(c(this)),u=e===t?4294967295:e>>>0;if(0===u)return[];if(r===t)return[o];if(!i(r))return n.call(o,r,u);for(var a,f,s,l=[],g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),h=0,d=new RegExp(r.source,g+"g");(a=p.call(d,o))&&!((f=d.lastIndex)>h&&(l.push(o.slice(h,a.index)),a.length>1&&a.index<o.length&&v.apply(l,a.slice(1)),s=a[0].length,h=f,l.length>=u));)d.lastIndex===a.index&&d.lastIndex++;return h===o.length?!s&&d.test("")||l.push(""):l.push(o.slice(h)),l.length>u?l.slice(0,u):l}:"0".split(t,0).length?function(r,e){return r===t&&0===e?[]:n.call(this,r,e)}:n,[function(n,e){var i=c(this),u=n==t?t:n[r];return u!==t?u.call(n,i,e):o.call(String(i),n,e)},function(r,i){var c=e(o,r,this,i,o!==n);if(c.done)return c.value;var p=u(r),g=String(this),v=a(p,RegExp),x=p.unicode,y=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(d?"y":"g"),b=new v(d?p:"^(?:"+p.source+")",y),m=i===t?4294967295:i>>>0;if(0===m)return[];if(0===g.length)return null===l(b,g)?[g]:[];for(var S=0,O=0,E=[];O<g.length;){b.lastIndex=d?O:0;var w,j=l(b,d?g:g.slice(O));if(null===j||(w=h(s(b.lastIndex+(d?0:O)),g.length))===S)O=f(g,O,x);else{if(E.push(g.slice(S,O)),E.length===m)return E;for(var A=1;A<=j.length-1;A++)if(E.push(j[A]),E.length===m)return E;O=S=w}}return E.push(g.slice(S)),E}]},!d)},function(r,n,e){var o=e(2),i=e(39),u=e(175),c=e(12),a=e(177),f="".startsWith,s=Math.min;o({target:"String",proto:!0,forced:!a("startsWith")},{startsWith:function(r){var n=String(c(this));u(r);var e=i(s(arguments.length>1?arguments[1]:t,n.length)),o=String(r);return f?f.call(n,o,e):n.slice(e,e+o.length)===o}})},function(t,r,n){var e=n(2),o=n(122).trim;e({target:"String",proto:!0,forced:n(200)("trim")},{trim:function(){return o(this)}})},function(t,r,n){var e=n(6),o=n(123);t.exports=function(t){return e(function(){return!!o[t]()||"鈥嬄呩爭"!="鈥嬄呩爭"[t]()||o[t].name!==t})}},function(t,r,n){var e=n(2),o=n(122).end,i=n(200)("trimEnd"),u=i?function(){return o(this)}:"".trimEnd;e({target:"String",proto:!0,forced:i},{trimEnd:u,trimRight:u})},function(t,r,n){var e=n(2),o=n(122).start,i=n(200)("trimStart"),u=i?function(){return o(this)}:"".trimStart;e({target:"String",proto:!0,forced:i},{trimStart:u,trimLeft:u})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},function(t,r,n){var e=n(12),o=/"/g;t.exports=function(t,r,n,i){var u=String(e(t)),c="<"+r;return""!==n&&(c+=" "+n+'="'+String(i).replace(o,""")+'"'),c+">"+u+"</"+r+">"}},function(t,r,n){var e=n(6);t.exports=function(t){return e(function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("big")},{big:function(){return o(this,"big","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("blink")},{blink:function(){return o(this,"blink","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("bold")},{bold:function(){return o(this,"b","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("italics")},{italics:function(){return o(this,"i","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("link")},{link:function(t){return o(this,"a","href",t)}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("small")},{small:function(){return o(this,"small","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("strike")},{strike:function(){return o(this,"strike","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("sub")},{sub:function(){return o(this,"sub","","")}})},function(t,r,n){var e=n(2),o=n(204);e({target:"String",proto:!0,forced:n(205)("sup")},{sup:function(){return o(this,"sup","","")}})}])}(); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappopenlocation.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappopenlocation.js new file mode 100644 index 0000000..0e67a37 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappopenlocation.js @@ -0,0 +1 @@ +!function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}([function(e,t){e.exports={}},function(e,t,n){"use strict";function o(e,t,n,o,a,i,r,s,c,u){var l,A="function"==typeof e?e.options:e;if(c){A.components||(A.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(A.components,p)&&(A.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(A.mixins||(A.mixins=[])).push(u)),t&&(A.render=t,A.staticRenderFns=n,A._compiled=!0),o&&(A.functional=!0),i&&(A._scopeId="data-v-"+i),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},A._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(A.functional){A._injectStyles=l;var f=A.render;A.render=function(e,t){return l.call(t),f(e,t)}}else{var g=A.beforeCreate;A.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:A}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,o="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))},n=/^\$|^on|^create|Sync$|Manager$|^pause/,o=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],i=function(e){return(!n.test(e)||"createBLEConnection"===e)&&!~o.indexOf(e)},r=function(n){return function(){for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(r.success)||e(r.fail)||e(r.complete)?n.apply(void 0,[r].concat(a)):t(new Promise((function(e,t){n.apply(void 0,[Object.assign({},r,{success:e,fail:t})].concat(a)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}})))}},s=[],c=void 0;function u(e){s.forEach((function(t){return t({origin:c,data:e})}))}var l=a.webview.currentWebview().id,A=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){var t=a.webview.getWebviewById(e);return t&&!t.$processed&&function(e){e.$processed=!0;var t=a.webview.currentWebview().id===e.id,n="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,o=e.id;if(e.postMessage=function(e){n?A.postMessage({data:e,to:t?n:o}):y({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){s.push(e)},e.__uniapp_mask_id){c=e.__uniapp_host;var i=e.__uniapp_mask,r=a.webview.getWebviewById(e.__uniapp_mask_id);r=r.parent()||r;var u=e.show,l=e.hide,d=e.close,p=function(){r.setStyle({mask:i})},f=function(){r.setStyle({mask:"none"})};e.show=function(){p();for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return u.apply(e,n)},e.hide=function(){f();for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return l.apply(e,n)},e.close=function(){f();for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return d.apply(e,n)}}}(t),t}A.onmessage=function(e){e.data.to===l&&u(e.data.data)};var p=weex.requireModule("plus"),f=weex.requireModule("globalEvent"),g=0,v={};f.addEventListener("plusMessage",(function(e){"UniAppJsApi"===e.data.type?m(e.data.id,e.data.data):"UniAppSubNVue"===e.data.type?u(e.data.data,e.data.options):"onNavigationBarButtonTap"===e.data.type?"function"==typeof b&&b(e.data.data):"onNavigationBarSearchInputChanged"===e.data.type?"function"==typeof B&&B(e.data.data):"onNavigationBarSearchInputConfirmed"===e.data.type?"function"==typeof w&&w(e.data.data):"onNavigationBarSearchInputClicked"===e.data.type&&"function"==typeof P&&P(e.data.data)}));var m=function(e,t){var n=v[e];n?(n(t),n.keepAlive||delete v[e]):console.error("callback["+e+"] is undefined")},h=function(t){var n,o,a=t.id,i=t.type,r=t.params;v[a]=(o=function(t){e(n)?n(t):n&&(~t.errMsg.indexOf(":ok")?e(n.success)&&n.success(t):~t.errMsg.indexOf(":fail")&&e(n.fail)&&n.fail(t),e(n.complete)&&n.complete(t))},(e(n=r)||n&&e(n.callback))&&(o.keepAlive=!0),o),p.postMessage({id:a,type:i,params:r},"__uniapp__service")};function y(e){p.postMessage(e,"__uniapp__service")}var C=function(e){return function(t){h({id:g++,type:e,params:t})}},b=void 0,B=void 0,w=void 0,P=void 0;function S(e){b=e}function I(e){B=e}function O(e){w=e}function x(e){P=e}function E(e){return weex.requireModule(e)}var M=weex.requireModule("dom"),k=weex.requireModule("globalEvent"),Q=[];function j(e){"function"==typeof e&&(this.isUniAppReady?e():Q.push(e))}k.addEventListener("plusMessage",(function(e){"UniAppReady"===e.data.type&&(j.isUniAppReady=!0,Q.length&&(Q.forEach((function(e){return e()})),Q=[]))}));var V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R=weex.requireModule("stream"),T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":V(e))?"POST"===t.toUpperCase()&&"application/json"===n.toLowerCase()?JSON.stringify(e):Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"):e},U=weex.requireModule("plusstorage"),_=weex.requireModule("clipboard"),L=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function z(e,t,n){return e[t].apply(e,n)}var q=Object.freeze({loadFontFace:function(t){var n=t.family,o=t.source,a=(t.desc,t.success),i=(t.fail,t.complete);M.addRule("fontFace",{fontFamily:n,src:o.replace(/"/g,"'")});var r={errMsg:"loadFontFace:ok",status:"loaded"};e(a)&&a(r),e(i)&&i(r)},ready:j,request:function(t){var n=t.url,o=t.data,a=t.header,i=t.method,r=void 0===i?"GET":i,s=t.dataType,c=void 0===s?"json":s,u=(t.responseType,t.success),l=t.fail,A=t.complete,d=!1,p=!1,f={};if(a)for(var g in a)p||"content-type"!==g.toLowerCase()?f[g]=a[g]:(p=!0,f["Content-Type"]=a[g]);return"GET"===r&&o&&(n=n+(~n.indexOf("?")?"&"===n.substr(-1)||"?"===n.substr(-1)?"":"&":"?")+T(o)),R.fetch({url:n,method:r,headers:f,type:"json"===c?"json":"text",body:"GET"!==r?T(o,r,f["Content-Type"]):""},(function(t){var n=t.status,o=(t.ok,t.statusText,t.data),a=t.headers,i={};!n||-1===n||d?(i.errMsg="request:fail",e(l)&&l(i)):(i.data=o,i.statusCode=n,i.header=a,e(u)&&u(i)),e(A)&&A(i)})),{abort:function(){d=!0}}},getStorage:function(t){var n=t.key,o=(t.data,t.success),a=t.fail,i=t.complete;U.getItem(n+"__TYPE",(function(t){if("success"===t.result){var r=t.data;U.getItem(n,(function(t){if("success"===t.result){var n=t.data;r&&n?("String"!==r&&(n=JSON.parse(n)),e(o)&&o({errMsg:"getStorage:ok",data:n})):(t.errMsg="setStorage:fail",e(a)&&a(t))}else t.errMsg="setStorage:fail",e(a)&&a(t);e(i)&&i(t)}))}else t.errMsg="setStorage:fail",e(a)&&a(t),e(i)&&i(t)}))},setStorage:function(t){var n=t.key,o=t.data,a=t.success,i=t.fail,r=t.complete,s="String";"object"===(void 0===o?"undefined":V(o))&&(s="Object",o=JSON.stringify(o)),U.setItem(n,o,(function(t){"success"===t.result?U.setItem(n+"__TYPE",s,(function(t){"success"===t.result?e(a)&&a({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(i)&&i(t))})):(t.errMsg="setStorage:fail",e(i)&&i(t)),e(r)&&r(t)}))},removeStorage:function(t){var n=t.key,o=(t.data,t.success),a=t.fail,i=t.complete;U.removeItem(n,(function(t){"success"===t.result?e(o)&&o({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(a)&&a(t)),e(i)&&i(t)})),U.removeItem(n+"__TYPE")},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var n=t.success,o=(t.fail,t.complete);_.getString((function(t){var a={errMsg:"getClipboardData:ok",data:t.data};e(n)&&n(a),e(o)&&o(a)}))},setClipboardData:function(t){var n=t.data,o=t.success,a=(t.fail,t.complete),i={errMsg:"setClipboardData:ok"};_.setString(n),e(o)&&o(i),e(a)&&a(i)},onSubNVueMessage:u,getSubNVueById:d,getCurrentSubNVue:function(){return d(a.webview.currentWebview().id)},$on:function(){return z(L(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return z(L(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return z(L(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return z(L(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),D={os:{nvue:!0}},N={};return"undefined"!=typeof Proxy?N=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return y;if("requireNativePlugin"===t)return E;if("onNavigationBarButtonTap"===t)return S;if("onNavigationBarSearchInputChanged"===t)return I;if("onNavigationBarSearchInputConfirmed"===t)return O;if("onNavigationBarSearchInputClicked"===t)return x;var n=q[t];return n||(n=C(t)),i(t)?r(n):n}}):(Object.keys(D).forEach((function(e){N[e]=D[e]})),N.postMessage=y,N.requireNativePlugin=E,N.onNavigationBarButtonTap=S,N.onNavigationBarSearchInputChanged=I,N.onNavigationBarSearchInputConfirmed=O,N.onNavigationBarSearchInputClicked=x,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach((function(e){var t=q[e];t||(t=C(e)),i(e)?N[e]=r(t):N[e]=t}))),N};var a=new WeexPlus(weex);t.weexPlus=a;var i=o(weex,a,BroadcastChannel);t.default=i},function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(4).default,Vue.prototype.__$appStyle__)},function(e,t,n){"use strict";n.r(t);var o=n(0),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t.default=a.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var t=this,n=e.webview.currentWebview().extras||{},o=n.from,a=(n.callback,n.runtime),i=n.data,r=void 0===i?{}:i,s=n.useGlobalEvent;this.__from=o,this.__runtime=a,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(r)),e.key.addEventListener("backbutton",(function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")}));var c=this,u=function(e){var t=e.data&&e.data.__message;t&&c.__onMessageCallback&&c.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",u):new BroadcastChannel(this.__page).onmessage=u},postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:t,keep:n}})),a=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)e.webview.postMessageToUniNView(o,a);else{var i=new BroadcastChannel(a);i.postMessage(o)}else{var r=e.webview.getWebviewById(a);r&&r.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:o}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=n}).call(this,n(2).weexPlus)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"瀹屾垚",cancel:"鍙栨秷"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var t=(e.webview.currentWebview().extras||{}).data||{};if(t.messages&&(this.localization.messages=t.messages),t.locale)this.locale=t.locale.toLowerCase();else{var n=e.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=n[1];o&&(n[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[o]||o),n.length=n.length>2?2:n.length,this.locale=n.join("-")}}},localize:function(e){var t=this,n=this.locale,o=n.split("-")[0],a=this.fallbackLocale,i=function(e){return Object.assign({},t.localization[e],(t.localizationTemplate||{})[e])};return i("messages")[e]||i(n)[e]||i(o)[e]||i(a)[e]||e}}};t.default=n}).call(this,n(2).weexPlus)},,function(e,t,n){"use strict";var o=n(30),a=n(15),i=n(1);var r=Object(i.a)(a.default,o.b,o.c,!1,null,null,"58c3f92f",!1,o.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(37).default,this.options.style):Object.assign(this.options.style,n(37).default)}).call(r),t.default=r.exports},,,,,,,function(e,t,n){"use strict";var o=n(16),a=n.n(o);t.default=a.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(5)),a=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[o.default,a.default],data:function(){return{bottom:"0px",longitude:"",latitude:"",markers:[],name:"",address:"",localizationTemplate:{en:{"map.title.amap":"AutoNavi Maps","map.title.baidu":"Baidu Maps","map.title.tencent":"Tencent Maps","map.title.apple":"Apple Maps","map.title.google":"Google Maps","location.title":"My Location","select.cancel":"Cancel"},zh:{"map.title.amap":"楂樺痉鍦板浘","map.title.baidu":"鐧惧害鍦板浘","map.title.tencent":"鑵捐鍦板浘","map.title.apple":"鑻规灉鍦板浘","map.title.google":"璋锋瓕鍦板浘","location.title":"鎴戠殑浣嶇疆","select.cancel":"鍙栨秷"}},android:"android"===weex.config.env.platform.toLowerCase()}},onLoad:function(){var t=this.data;if(this.latitude=t.latitude,this.longitude=t.longitude,this.name=t.name||"",this.address=t.address||"",!this.android){var n=e.webview.currentWebview().getSafeAreaInsets();this.bottom=n.bottom+"px"}},onReady:function(){this.mapContext=this.$refs.map1,this.markers=[{id:"location",latitude:this.latitude,longitude:this.longitude,title:this.name,zIndex:"1",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABICAMAAACORiZjAAAByFBMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PiL/PyL8PiP/PyL4OyP/PyL3OyX9Pyb0RUP0RkPzOiXsPj3YLi7TKSnQJiX0RkTgMCj0QjvkNC3vPDPwOy/9PyXsNSTyRUTgNDPdMjHrPTzuQD7iNTTxQ0HTJyTZKyf1RULlNjDZKyTfLSLeLSX0Qzz3Qzv8PSTMJCTmOjnPJSXLIiLzRkXWLCvgNDPZLyzVKijRJSTtPzvcMS7jNjPZLCnyREHpOzjiNDDtPzvzQz/VKSXkNTDsPDXyQjz2RT7pMyTxOinjMST5QjTmOjnPJSLdLyr0RD//YF7/////R0b/Tk3/XVv/WFb/VVP/S0v/Pz//W1n/UVD/REP/Xlz/Ojr/QUH/Skn/U1L/ODf7VlX5UU/oOzrqNzf/+/v5UlHvQUD2TEv0SUj3Tk3/2dn8W1r6TEv7R0b7REPvPTzzPDvwNjXkMjLnMDDjLS3dKir/xcX/vr7/qqn/pqX/mZn/fn7/ZWT/8PD/4eH/3t3/zs7/ra3/kpL/iIj/e3r5PDz4NjbxMTHsMTDlLCz/9vb/6ej/ubjhOGVRAAAAWXRSTlMABQ4TFgoIHhApI0RAGhgzJi89Ozg2LVEg4s5c/v366tmZiYl2X0pE/vn08eTe1sWvqqiOgXVlUE399/b08u3n4tzZ1dTKyMTDvLmzqqKal35taFxH6sC3oms+ongAAAOtSURBVEjHjZV3W9pQGMXJzQACQRARxVF3HdVW26od7q111NqhdbRSbQVElnvvbV1tv25Jgpr3kpCcP+/7/J5z8p57QScr4l46jSJohEhKEGlANKGBYBA1NFDpyklPz3FV5tWwHKnGEbShprIuFPAujEW14A2E6nqqWYshEcYYqnNC3mEgbyh9wMgZGCUbZHZFFobjtODLKWQpRMgyhrxiiQtwK/6SqpczY/QdvqlhJflcZpZk4hiryzecQIH0IitFY0xaBWDkqCEr9CLIDsDIJqywswbpNlB/ZEpVkZ4kPZKEqwmOTakrXGCk6IdwFYExDfI+SX4ISBeExjQp0m/jUMyIeuLVBo2Xma0kIRpVhyc1Kpxn42hxdd2BuOnv3Z2d3YO4Y29LCitcQiItcxxH5kcEncRhmc5UiofowuJxqPO5kZjm9rFROC9JWAXqC8HBgciI1AWcRbqj+fgX0emDg+MRif5OglmgJdlIEvzCJ8D5xQjQORhOlJlTKR4qmwD6B6FtOJ012yyMjrHMwuNTCM1jUG2SHDQPoWMMciZxdBR6PQOOtyF0ikEmEfrom5FqH0J7YOh+LUAE1bbolmrqj5SZOwTDxXJTdBFRqCrsBtoHRnAW7hRXThYE3VA7koVjo2CfUK4O2WdHodx7c7FsZ25sNDtotxp4SF++OIrpcHf+6Ojk7BA/X2wwOfRIeLj5wVGNClYJF4K/sY4SrVBJhj323hHXG/ymScEu091PH0HaS5e0MEslGeLuBCt9fqYWKLNXNIpZGcuXfqlqqaHWLhrFrLpWvqpqpU1ixFs9Ll1WY5ZLo19ECUb3X+VXg/y5wEj4qtYVlXCtRdIvErtyZi0nDJc1aLZxCPtrZ3P9PxLIX2Vy8P8zQAxla1xVZlYba6NbYAAi7KIwSxnKKjDHtoAHfOb/qSD/Z1OKEA4XbXHUr8ozq/XOZKOFxgkx4Mv177Jaz4fhQFnWdr8c4283pVhBRSDg4+zLeOYyu9CcCsIBK5T2fF0mXK7JkYaAEaAoY9Mazqw1FdnBRcWFuA/ZGDOd/R7eH7my3m1MA208k60I3ibHozUps/bICe+PQllbUmjrBaxIqaynG5JwT5UrgmW9ubpjrt5kJMOKlMvavIM2o08cVqRcVvONyNw0Y088YVmvPIJeqVUEy9rkmU31imBZ1x7PNV6RelkeD16Relmfbm81VQTLevs2A74iDWXpXzznwwEj9YCszcbCcOqiSY4jYTh1Jx1B04o+/wH6/wOSPFj1xgAAAABJRU5ErkJggg==",width:26,height:36}],this.updateMarker()},methods:{goto:function(){var e="iOS"===weex.config.env.platform;this.openSysMap(this.latitude,this.longitude,this.name,e)},updateMarker:function(){this.mapContext.moveToLocation(),this.mapContext.translateMarker({markerId:"location",destination:{latitude:this.latitude,longitude:this.longitude},duration:0},(function(e){}))},openSysMap:function(t,n,o,a){var i=this,r=weex.requireModule("mapSearch"),s=[{title:this.localize("map.title.tencent"),getUrl:function(){return"https://apis.map.qq.com/uri/v1/routeplan?type=drive&to="+encodeURIComponent(o)+"&tocoord="+encodeURIComponent(t+","+n)+"&referer=APP"}},{title:this.localize("map.title.google"),getUrl:function(){return"https://www.google.com/maps/?daddr="+encodeURIComponent(o)+"&sll="+encodeURIComponent(t+","+n)}}],c=[{title:this.localize("map.title.amap"),pname:"com.autonavi.minimap",action:a?"iosamap://":"amapuri://",getUrl:function(){var e;return e=a?"iosamap://path":"amapuri://route/plan/",e+="?sourceApplication=APP&dname="+encodeURIComponent(o)+"&dlat="+t+"&dlon="+n+"&dev=0"}},{title:this.localize("map.title.baidu"),pname:"com.baidu.BaiduMap",action:"baidumap://",getUrl:function(){return"baidumap://map/direction?destination="+encodeURIComponent("latlng:"+t+","+n+"|name:"+o)+"&mode=driving&src=APP&coord_type=gcj02"}},{title:this.localize("map.title.tencent"),pname:"com.tencent.map",action:"qqmap://",getUrl:function(){return"qqmap://map/routeplan?type=drive"+(a?"&from="+encodeURIComponent(i.localize("location.title")):"")+"&to="+encodeURIComponent(o)+"&tocoord="+encodeURIComponent(t+","+n)+"&referer=APP"}},{title:this.localize("map.title.google"),pname:"com.google.android.apps.maps",action:"comgooglemapsurl://",getUrl:function(){var e;return e=a?"comgooglemapsurl://maps.google.com/":"https://www.google.com/maps/",e+="?daddr="+encodeURIComponent(o)+"&sll="+encodeURIComponent(t+","+n)}}],u=[];c.forEach((function(t){e.runtime.isApplicationExist({pname:t.pname,action:t.action})&&u.push(t)})),a&&u.unshift({title:this.localize("map.title.apple"),navigateTo:function(){r.openSystemMapNavigation({longitude:n,latitude:t,name:o})}}),0===u.length&&(u=u.concat(s)),e.nativeUI.actionSheet({cancel:this.localize("select.cancel"),buttons:u},(function(t){var n,o=t.index;o>0&&((n=u[o-1]).navigateTo?n.navigateTo():e.runtime.openURL(n.getUrl(),(function(){}),n.pname))}))}}};t.default=r}).call(this,n(2).weexPlus)},function(e,t){e.exports={page:{flex:1},"flex-r":{flexDirection:"row",flexWrap:"nowrap"},"flex-c":{flexDirection:"column",flexWrap:"nowrap"},"flex-fill":{flex:1},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},target:{paddingTop:"10",paddingBottom:"10"},"text-area":{paddingLeft:"10",paddingRight:"10",flex:1},name:{fontSize:"16",lines:1,textOverflow:"ellipsis"},address:{fontSize:"14",color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:"2"},"goto-area":{width:"50",height:"50",paddingTop:"8",paddingRight:"8",paddingBottom:"8",paddingLeft:"8",backgroundColor:"#007aff",borderRadius:50,marginRight:"10"},"goto-icon":{width:"34",height:"34"},"goto-text":{fontSize:"14",color:"#FFFFFF"}}},,,,,,,,,,,,,function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["page","flex-c"],style:{paddingBottom:e.bottom}},[n("map",{ref:"map1",staticClass:["flex-fill","map"],attrs:{longitude:e.longitude,latitude:e.latitude,markers:e.markers}}),n("view",{staticClass:["flex-r","a-i-c","target"]},[n("view",{staticClass:["text-area"]},[n("u-text",{staticClass:["name"]},[e._v(e._s(e.name))]),n("u-text",{staticClass:["address"]},[e._v(e._s(e.address))])]),n("view",{staticClass:["goto-area"],on:{click:e.goto}},[n("u-image",{staticClass:["goto-icon"],attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAYAAAD9yHLdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAADzVJREFUeNrt3WmMFMUfxvGqRREjEhXxIAooUQTFGPGIeLAcshoxRhM1Eu+YjZGIJh4vTIzHC1GJiiCeiUckEkWDVzxQxHgRvNB4LYiigshyxFXYg4Bb/xfPv1YbFpjtnZmq7v5+3vxSs8vOr4vpfqZ6pmeMAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMKwoRtAtjnnnHN77KHR2LGqhx327y8YZ9zSpcYaa+z8+dZaa21LS+i+AQCBKDgmTVJdv96VZN06/+9C9w8AqBId+K1Vfeih0gJjZ/zfsayEASBvksExbVp5gmNrjz5KkABATlQnOAgSAMiNMMFBkABAZsURHAQJAGRGnMFBkABAtLIRHAQJAEQjm8FBkABAMPkIDoIEAKomn8FBkABAxRQjOAgSACibYgYHQQIAqREcnSFIAGC7/AFSleDoHEECAB38AVGV4CgNQQKgwPwBUJXgSIcgAVAg/oCnSnCUB0ECIMf8AU6V4KgMggRAjvgDmirBUR0ECYAM8wcw1ViCY/PmfN3Pzvh5J0gAZIA/YCUPYKE1NqpOmlSd+6uvV/3999BbLqxIAETMH6BUYwuOI49Ura2tzv36+xkyRJUgAYBt+AOSanzBkeyzegGSvF+CBAA6+AOQarzBkey3+gGSvH+CBECB+QOOavzBkew7XIAk+yBIABSIP8CoZic4kv2HD5BkPwQJgBzzBxTV7AVHcjviCZBkXwQJgBzxBxDV7AZHcnviC5BkfwQJgAzzBwzV7AdHcrviDZBknwQJgAzxBwjV/ARHcvviD5BkvwQJgIj5A4Jq/oIjuZ3ZCZBk3wQJgIj4A4BqfoMjub3ZC5Bk/wQJgID8Dq+a/+BIbnd2AyS5HQQJgCryO7hqcYIjuf3ZD5Dk9hAkACrI79CqxQuO5DzkJ0CS20WQACgjvwOrFjc4kvORvwBJbh9BAqAb/A6rSnAk5yW/AZLcToIEQBf4HVSV4Oh8fvIfIMntJUgA7IDfIVUJjh3PU3ECJLndBAmA//A7oCrBUdp8FS9AkttPkACF5nc4VYKja/NW3ABJzgNBAhSK38FUCY5080eAJOeDIAFyze9QqgRH9+aRAOl8XggSIFf8DqRKcJRnPgmQHc8PQQJkmt9hVAmO8s4rAVLaPBEkQKb4HUSV4KjM/BIgXZsvggSImt8hVAmOys4zAZJu3ggSICp+B1AlOKoz3wRI9+aPIAGC8g94VYKjuvNOgJRnHgkSoKr8A1yV4Agz/wRIeeeTIAGqQg/su+8OvYvJH3+oDh0ael6qO/8ESGXmdejQ5OMqtClTQs8LUBau3bW79rPPDr1LSfGCo+P/wTlHgFR6fiMKknbX7tonTAg9L8iGmtANbJc11tjbbw/bxOrVqmPGWGuttT/8EHpakC/Jx9WYMar+cRfKbbeFvX9kRXQBoqdB/ftrdOyxYbogOFBd0QSJNdbYESO0Hx5wQOh5QdyiCxAZMCDM/RIcCCuOIPEvpg8aFHo+ELf4AsQZZ1xra3XvlOBAXIIHiTPOuObm0POAuMUXIMYYYxoaVDdsqOz9rFmjOm4cwYEYJR+X/k0Gq1ZV9l43blRdujT09iNu0QWIrbE1tmbTJo1mz67MvfhncrW12kG/+y70dgM7osfpkiUajRunWqkVyaxZyf0QyBj/Ip7qypXleY9icd+Om5Z/e2113kNavLfxpuUfx8nHdXetXKm38e6/f+jtQzZEtwLx9IzLP8Oqq1NdvrzLf8gZZ1xDg+ppp3GqCnnQ8Tj+/+Nat/oVShc444z7+WcN6uq08mhsDL19QFnpmVHv3nqmdPPNGn/2merGjbp9wwbVTz5Rve461d13D91/VrECyQb/OFe9/nrtFwsXduwXif1k0SKNb7pJ4z32CN0/gBwiQABsT7SnsAAAcSNAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkMouoRsAgFBcu2t37b17a9S3r7HGGtu3r3HGGbfvvsnxf35ujDFmn31Ue/VK/tU+ffT7PXro963VeK+9On7FGmtsW5tub2jQjc8/b2tsja35/PPQ81IqAgRAZjnnnHN7760D8eDBunXQIB2gBw7U2NdDDun4eeL2Pffc5g9bY43dwXhnSv331lhjJ0zQ4MYbtT3PPadxfb211lrb3Bx6nreHAAEQDa0IevbUgXXYMAXDUUdpPHy4xsOHa3zUUfpXBx/c5QN81CZOVD3wQM1HXZ1WJps3h+5sawQIgKrRM+zBgxUEI0fqwD9ypH7q67Bhqrvs0u2VQKaNHq3tnTxZ4/vuC93R1ggQAN2mYKipUTCMGKFbR43SAfDkkzU+6STV/fcvVhB01/XXa37vv1+ntJwL3ZFHgAAomU6p9OunABg/Xreeeabq+PG6vV+/0H3my0EHJV/jWbYsdEceAQJgG3rGe8wxGp13nuoZZ6j6FUYNlwFUSyKYCRAAEVBQHHmkRhdcoHrhhapDhoTuD/+1Zk3oDrZGgAAF0PHitTHm33f5+MDw72ZCnFasUP3559CdbI0AAXJEQdGjh86Zjx6tW+vrVf2pqB49QveJrnjggdhePPcIECDDFBiHHqrAuOoq3XrFFTpnfsABoftDSs444957T4MZM0K3sz0ECJAhCozaWh1gbr5Zt9bVKTB4UTvb/Apj1iz9f159tVYeW7aE7mx7CBAgQh3XVRhjjDn3XFUfGCecwHUUgTnjjGtu1v9Dc7PGGzdq/Oefnf++D4imJv1ea6vG33+vOmeOAuOLL0JvXqkIECACur5it900uvRS1RtvVD388ND9ZVtbm+qvv3ZUZ5xxv/2mA/mKFRqvWqXx2rX6vbVrdfu6dcnbm5r00SLxvSZRbQQIEEDHi93GGGMuu0z19ttVDz44dH9xa2xU/fpr1R9+UF2ypKM644xbulQH+pUrQ3ecVwQIUEUKjnPO0eiuu1T9Zz8Vnb/OYeFC1U8/VV28WPWrr3SK548/QncKIUCACtKpqVNP1SmQe+7Rrf4zoQrEGWfcTz9pHubP1/ijj/TDhQu1UojnCmuUhgABykgrjP79Nbr/flV/ZXfeNTWpzpungHjnHR8YCojly0N3iPIiQIBu0ArDf+z4pEm69c47Vfv0Cd1fZSxbpoB47TVt9+uva/zhh7F+bwUqgwABUtBKw3+o4COPqB5/fOi+yst/hMbcuQqIOXMUEP7UE4qOAAFKoMDYfXeN7r1X9ZprVLN+Ad9ff6nOnq36zDOqixbF+hEaiAMBAuxAcqXx7LOqQ4eG7ivt1qi+/75WFE8+qVNQL72koPAXtgGlIUCA/0heAX7ttap+xdGzZ+j+usZfQDdnjgJj6lSdgvrmm9CdIR8IEMD4F8MHDtRo1izVU04J3VfXrFqloJg2TSuLJ57QysK/OwooLwIEhaYVx6hRGr3wgup++4XuqzT+bbEPPqj6+ONaYXAqCtVBgKBQFBjW6pn6DTfo1rvvVo34ezKcccb5LxS67TatMGbP1grjn39Ct4diIkBQCAqOXr00euwxHYD9hxbGyn943333qU6bphXGpk2hOwOMIUCQc3ptw3844euvqx59dOi+OudPPU2dqnrPPVphtLSE7gzoDAGCXNKK44gjNHr7bdUBA0L31TkfbJMnKzD4yA9kAwGCXNGK47jjNHrjDdV+/UL3lbR8uV7TuPpqnZKaNy90R0AaGb+CFhCtOMaM0Wsb/rukYwkO/5Wk06crOI4+muBAHrACQaYpOM47TyP/URyxXPC3dKkC45JLFBj++y2AfGAFgkzSqarTT9fouedUYwmOZ59VcIwYQXAgz1iBIFO04qit1eiVV1T9d4mH8uefCozLLlNgvPZa2H6A6iBAkAlacZx4okavvqrqPx03REPGGbd4sV5zOf98BcdPP4WeJ6CaOIWFqCk4hg/XgfrNN3XrnnuG7eqpp9TPyJF62y3BgWIiQBAlnarq21ejuXNV9947VDeqd9yhwLjySlX/abdAMXEKC1HRimPXXXWK6MUX9Ux/8ODqN2Kccc3Nuv+LL1ZgvPxy6PkBYkKAIC7WWGP9p8v6F8urralJfUyYoOD4+OPQ0wLEiABBROrrVS+6KMz9r1mjWlen4Pjqq9AzAsSMAEFEQgVHY6Nqba2Co6Eh9EwAWcCL6Cgw/019Z55JcABdR4CggHxwjB2r4Fi8OHRHQBYRICiQzZv17qrzz1dwfPll6I6ALCNAUCD19bpi/N13Q3cC5AEBgnxzxhk3ZYpWHE8/HbodIE8IEOTYggW6nuPWW0N3AuQRAYIcWr1adeJErTz++Sd0R0AeESDIkfZ21YsuUnD4IAFQCQQIcmTGDAXH+++H7gQoAgIEOfDjj6q33BK6E6BICBDkwOTJWnm0tITuBCgSAgQZ9uKLCo633grdCVBEBAgyqLVV13fccEPoToAiI0CQLc4442bO1BXlv/0Wuh2gyAgQZIP/hkBjjDFTp4ZuBwABgkx5+GGtPPwXPwEIiQBBBmzZojp9euhOAPyLAEHcnHHGzZ2rlcfKlaHbAfAvAgRxs8YaO3Nm6DYAbIsAQcRWrFD94IPQnQDYFgGCiM2erQsFnQvdCYBtESCIkzPOuDlzQrcBYPsIEMTFGWfcunV67YPvLAdiRoAgLtZYY+fN06kr//0eAGJEgCBC8+eH7gDAzhEgiNCiRaE7ALBzBAgi0tam10CWLAndCYCdI0AQB2eccd9+qyvO/UeXAIgZAYI4WGON9V9NCyALCBBExF95DiALCBDEwRlnHAECZAkBgjhYY41dvz50GwBKR4AgIi0toTsAUDoCBHFwxhnX2hq6DQClI0BQgk2bKn4X1lhj//479JYCKB0BghL8+mtl/77/uPZffgm9pQCAMnPOOec+/9yVW7trd+2ffRZ6+wAAFaID/dlnlz1AnHPOnXVW6O0DAFSYDvhTppRn5XHXXaG3BwBQZUqBK65QbWwsLTVWr1a9/PLQ/QPoPhu6AWSbAqFXL43GjFEdMiT5Ww0NqgsW6Iui2tpC9w0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyK7/ATO6t9N2I5PTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAzLTAxVDExOjQ1OjU1KzA4OjAw5vcxUwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMy0wMVQxMTo0NTo1NSswODowMJeqie8AAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2lnaGV6d2JubWhiL25hdmlnYXRpb25fbGluZS5zdmc29Ka/AAAAAElFTkSuQmCC"}})],1)])],1)])},a=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}))},,,,,,,function(e,t,n){"use strict";n.r(t);var o=n(17),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t.default=a.a},,,,,function(e,t,n){"use strict";n.r(t);n(3);var o=n(8);o.default.mpType="page",o.default.route="template/__uniappopenlocation",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapppicker.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapppicker.js new file mode 100644 index 0000000..840b0da --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniapppicker.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}([function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e,t,n,r,a,i,o,s,u,c){var l,f="function"==typeof e?e.options:e;if(u){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var h in u)d.call(u,h)&&!d.call(f.components,h)&&(f.components[h]=u[h])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},f._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(e,t){return l.call(t),p(e,t)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,l):[l]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var e=this,t=plus.webview.currentWebview().extras||{},n=t.from,r=(t.callback,t.runtime),a=t.data,i=void 0===a?{}:a,o=t.useGlobalEvent;this.__from=n,this.__runtime=r,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=o,this.data=JSON.parse(JSON.stringify(i)),plus.key.addEventListener("backbutton",(function(){"function"==typeof e.onClose?e.onClose():plus.webview.currentWebview().close("auto")}));var s=this,u=function(e){var t=e.data&&e.data.__message;t&&s.__onMessageCallback&&s.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",u):new BroadcastChannel(this.__page).onmessage=u},postMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),r=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)plus.webview.postMessageToUniNView(n,r);else{var a=new BroadcastChannel(r);a.postMessage(n)}else{var i=plus.webview.getWebviewById(r);i&&i.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:n}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"瀹屾垚",cancel:"鍙栨秷"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale)this.locale=e.locale.toLowerCase();else{var t=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),n=t[1];n&&(t[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[n]||n),t.length=t.length>2?2:t.length,this.locale=t.join("-")}}},localize:function(e){var t=this,n=this.locale,r=n.split("-")[0],a=this.fallbackLocale,i=function(e){return Object.assign({},t.localization[e],(t.localizationTemplate||{})[e])};return i("messages")[e]||i(n)[e]||i(r)[e]||i(a)[e]||e}}};t.default=r},,,,function(e,t,n){"use strict";var r=n(30),a=n(20),i=n(1);var o=Object(i.a)(a.default,r.b,r.c,!1,null,null,"9abad300",!1,r.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(39).default,this.options.style):Object.assign(this.options.style,n(39).default)}).call(o),t.default=o.exports},,,,,,,,,,,function(e,t,n){"use strict";var r=n(21),a=n.n(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var i={mixins:[a(n(4)).default],components:{picker:r.default},data:function(){return{range:[],rangeKey:"",value:0,mode:"selector",fields:"day",start:"",end:"",disabled:!1,visible:!1}},onLoad:function(){var e=this;null===this.data?this.postMessage({event:"created"},!0):this.showPicker(this.data),this.onMessage((function(t){e.showPicker(t)}))},onReady:function(){var e=this;this.$nextTick((function(){e.visible=!0}))},methods:{showPicker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.column;for(var n in e)"column"!==n&&("number"==typeof t?this.$set(this.$data[n],t,e[n]):this.$data[n]=e[n])},close:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.value,a=void 0===r?-1:r;this.visible=!1,setTimeout((function(){t.postMessage({event:e,value:a})}),210)},onClose:function(){this.close("cancel")},columnchange:function(e){var t=e.column,n=e.value;this.$set(this.value,t,n),this.postMessage({event:"columnchange",column:t,value:n},!0)}}};t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(23),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(45),a=s(n(5)),i=s(n(46)),o=s(n(47));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(){if(this.mode===d.TIME)return"00:00";if(this.mode===d.DATE){var e=(new Date).getFullYear()-61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function l(){if(this.mode===d.TIME)return"23:59";if(this.mode===d.DATE){var e=(new Date).getFullYear()+61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-12";default:return e+"-12-31"}}return""}var f=weex.requireModule("animation"),d={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date",REGION:"region"},h={YEAR:"year",MONTH:"month",DAY:"day"},p=!1,v={name:"Picker",mixins:[a.default,o.default,i.default],props:{pageId:{type:Number,default:0},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:d.SELECTOR},fields:{type:String,default:h.DAY},start:{type:String,default:c},end:{type:String,default:l},disabled:{type:[Boolean,String],default:!1},visible:{type:Boolean,default:!1}},data:function(){return{valueSync:null,timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],fontSize:16,height:261,android:"android"===weex.config.env.platform.toLowerCase()}},computed:{rangeArray:function(){var e=this.range;switch(this.mode){case d.SELECTOR:return[e];case d.MULTISELECTOR:return e;case d.TIME:return this.timeArray;case d.DATE:var t=this.dateArray;switch(this.fields){case h.YEAR:return[t[0]];case h.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}return[]},startArray:function(){return this._getDateValueArray(this.start,c.bind(this)())},endArray:function(){return this._getDateValueArray(this.end,l.bind(this)())},textMaxLength:function(){return Math.floor(Math.min(weex.config.env.deviceWidth,weex.config.env.deviceHeight)/(this.fontSize*weex.config.env.scale+1)/this.rangeArray.length)},maskStyle:function(){return{opacity:this.visible?1:0,"background-color":this.android?"rgba(0, 0, 0, 0.6)":"rgba(0, 0, 0, 0.4)"}},pickerViewIndicatorStyle:function(){return"height: 34px;border-color:".concat(this.isDark?"rgba(255, 255, 255, 0.05)":"#C8C9C9",";border-top-width:0.5px;border-bottom-width:0.5px;")},pickerViewColumnTextStyle:function(){return{fontSize:this.fontSize+"px","line-height":"34px","text-align":"center",color:this.isDark?"rgba(255, 255, 255, 0.8)":"#000"}},pickerViewMaskTopStyle:function(){return this.isDark?"background-image: linear-gradient(to bottom, rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""},pickerViewMaskBottomStyle:function(){return this.isDark?"background-image: linear-gradient(to top,rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""}},watch:{value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray(),p=!0},valueArray:function(e){var t=this;if(this.mode===d.TIME||this.mode===d.DATE){var n=this.mode===d.TIME?this._getTimeValue:this._getDateValue,r=this.valueArray,a=this.startArray,i=this.endArray;if(this.mode===d.DATE){var o=this.dateArray,s=o[2].length,u=Number(o[2][r[2]])||1,c=new Date("".concat(o[0][r[0]],"/").concat(o[1][r[1]],"/").concat(u)).getDate();c<u&&(r[2]-=c+s-u)}n(r)<n(a)?this._cloneArray(r,a):n(r)>n(i)&&this._cloneArray(r,i)}e.forEach((function(e,n){e!==t.oldValueArray[n]&&(t.oldValueArray[n]=e,t.mode===d.MULTISELECTOR&&t.$emit("columnchange",{column:n,value:e}))}))},visible:function(e){var t=this;e?setTimeout((function(){f.transition(t.$refs.picker,{styles:{transform:"translateY(0)"},duration:200})}),20):f.transition(this.$refs.picker,{styles:{transform:"translateY(".concat(283+this.safeAreaInsets.bottom,"px)")},duration:200})}},created:function(){this._createTime(),this._createDate(),this._setValueSync()},methods:{getTexts:function(e,t){var n=this,r=this.textMaxLength;return e.map((function(e){var a=String("object"==typeof e?e[n.rangeKey]||"":n._l10nItem(e,t));if(r>0&&a.length>r)for(var i=0,o=0,s=0;s<a.length;s++){var u=a.charCodeAt(s);if((i+=u>127||94===u?1:.65)<=r-1&&(o=s),i>=r)return s===a.length-1?a:a.substr(0,o+1)+"鈥�"}return a||" "})).join("\n")},_createTime:function(){var e=[],t=[];e.splice(0,e.length);for(var n=0;n<24;n++)e.push((n<10?"0":"")+n);t.splice(0,t.length);for(var r=0;r<60;r++)t.push((r<10?"0":"")+r);this.timeArray.push(e,t)},_createDate:function(){for(var e=[],t=function(e){var t=(new Date).getFullYear(),n=t-61,r=t+61;if(e.start){var a=new Date(e.start).getFullYear();!isNaN(a)&&a<n&&(n=a)}if(e.end){var i=new Date(e.start).getFullYear();!isNaN(i)&&i>r&&(r=i)}return{start:n,end:r}}(this),n=t.start,r=t.end;n<=r;n++)e.push(String(n));for(var a=[],i=1;i<=12;i++)a.push((i<10?"0":"")+i);for(var o=[],s=1;s<=31;s++)o.push((s<10?"0":"")+s);this.dateArray.push(e,a,o)},_getTimeValue:function(e){return 60*e[0]+e[1]},_getDateValue:function(e){return 31*e[0]*12+31*(e[1]||0)+(e[2]||0)},_cloneArray:function(e,t){for(var n=0;n<e.length&&n<t.length;n++)e[n]=t[n]},_setValueSync:function(){var e=this,t=this.value;switch(p=!1,this.mode){case d.MULTISELECTOR:Array.isArray(t)||(t=[]),Array.isArray(this.valueSync)||(this.valueSync=[]);for(var n=this.valueSync.length=Math.max(t.length,this.range.length),r=0;r<n;r++){var a=Number(t[r]),i=Number(this.valueSync[r]),o=isNaN(a)?isNaN(i)?0:i:a,s=this.range[r]?this.range[r].length-1:0;this.valueSync.splice(r,1,o<0||o>s?0:o)}break;case d.TIME:case d.DATE:this.valueSync=String(t);break;default:var u=Number(t);this.valueSync=u<0?0:u}this.$nextTick((function(){!p&&e._setValueArray()}))},_setValueArray:function(){p=!0;var e,t=this.valueSync;switch(this.mode){case d.MULTISELECTOR:e=u(t);break;case d.TIME:e=this._getDateValueArray(t,(0,r.formatDateTime)({mode:d.TIME}));break;case d.DATE:e=this._getDateValueArray(t,(0,r.formatDateTime)({mode:d.DATE}));break;default:e=[t]}this.oldValueArray=u(e),this.valueArray=u(e)},_getValue:function(){var e=this,t=this.valueArray;switch(this.mode){case d.SELECTOR:return t[0];case d.MULTISELECTOR:return t.map((function(e){return e}));case d.TIME:return this.valueArray.map((function(t,n){return e.timeArray[n][t]})).join(":");case d.DATE:return this.valueArray.map((function(t,n){return e.dateArray[n][t]})).join("-")}},_getDateValueArray:function(e,t){var n=this.mode===d.DATE?"-":":",r=this.mode===d.DATE?this.dateArray:this.timeArray,a=3;switch(this.fields){case h.YEAR:a=1;break;case h.MONTH:a=2}for(var i=String(e).split(n),o=[],s=0;s<a;s++){var u=i[s];o.push(r[s].indexOf(u))}return o.indexOf(-1)>=0&&(o=t?this._getDateValueArray(t):o.map((function(){return 0}))),o},_change:function(){this.$emit("change",{value:this._getValue()})},_cancel:function(){this.$emit("cancel")},_pickerViewChange:function(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn:function(e,t){if(this.mode===d.DATE){var n=this.locale;if(!n.startsWith("zh"))switch(this.fields){case h.YEAR:return e;case h.MONTH:return[e[1],e[0]];default:switch(n){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem:function(e,t){if(this.mode===d.DATE){var n=this.locale;if(n.startsWith("zh")){return e+["骞�","鏈�","鏃�"][t]}if(this.fields!==h.YEAR&&t===(this.fields===h.MONTH||"es"!==n&&"fr"!==n?0:1)){var r;switch(n){case"es":r=["enero","febrero","marzo","abril","mayo","junio","鈥嬧�媕ulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":r=["janvier","f茅vrier","mars","avril","mai","juin","juillet","ao没t","septembre","octobre","novembre","d茅cembre"];break;default:r=["January","February","March","April","May","June","July","August","September","October","November","December"]}return r[Number(e)-1]}}return e}}};t.default=v},function(e,t){e.exports={content:{position:"absolute",top:0,left:0,bottom:0,right:0},"uni-mask":{position:"absolute",top:0,left:0,bottom:0,right:0,backgroundColor:"rgba(0,0,0,0.4)",opacity:0,transitionProperty:"opacity",transitionDuration:200,transitionTimingFunction:"linear"},"@TRANSITION":{"uni-mask":{property:"opacity",duration:200,timingFunction:"linear"}},"uni-mask-visible":{opacity:1},"uni-picker":{position:"absolute",left:0,bottom:0,right:0,backgroundColor:"#ffffff",color:"#000000",flexDirection:"column",transform:"translateY(295px)"},"uni-picker-header":{height:"45",borderBottomWidth:"0.5",borderBottomColor:"#C8C9C9",backgroundColor:"#FFFFFF",fontSize:"20"},"uni-picker-action":{position:"absolute",textAlign:"center",top:0,height:"45",paddingTop:0,paddingRight:"14",paddingBottom:0,paddingLeft:"14",fontSize:"17",lineHeight:"45"},"uni-picker-action-cancel":{left:0,color:"#888888"},"uni-picker-action-confirm":{right:0,color:"#007aff"},"uni-picker-content":{flex:1},"uni-picker-dark":{backgroundColor:"#232323"},"uni-picker-header-dark":{backgroundColor:"#232323",borderBottomColor:"rgba(255,255,255,0.05)"},"uni-picker-action-cancel-dark":{color:"rgba(255,255,255,0.8)"}}},function(e,t){e.exports={page:{flex:1}}},,,,,function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["page"]},[n("picker",{attrs:{range:e.range,rangeKey:e.rangeKey,value:e.value,mode:e.mode,fields:e.fields,start:e.start,end:e.end,disabled:e.disabled,visible:e.visible},on:{change:function(t){e.close("change",t)},cancel:function(t){e.close("cancel",t)},columnchange:e.columnchange}})],1)])},a=[];n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}))},,,function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:["content"],class:{dark:e.isDark}},[n("div",{ref:"mask",staticClass:["uni-mask"],style:e.maskStyle,on:{click:e._cancel}}),n("div",{ref:"picker",staticClass:["uni-picker"],class:{"uni-picker-dark":e.isDark},style:"padding-bottom:"+e.safeAreaInsets.bottom+"px;height:"+(e.height+e.safeAreaInsets.bottom)+"px;"},[n("div",{staticClass:["uni-picker-header"],class:{"uni-picker-header-dark":e.isDark}},[n("u-text",{staticClass:["uni-picker-action","uni-picker-action-cancel"],class:{"uni-picker-action-cancel-dark":e.isDark},style:"left:"+e.safeAreaInsets.left+"px",on:{click:e._cancel}},[e._v(e._s(e.localize("cancel")))]),n("u-text",{staticClass:["uni-picker-action","uni-picker-action-confirm"],style:"right:"+e.safeAreaInsets.right+"px",on:{click:e._change}},[e._v(e._s(e.localize("done")))])]),e.visible?n("picker-view",{staticClass:["uni-picker-content"],style:"margin-left:"+e.safeAreaInsets.left+"px",attrs:{height:"216",indicatorStyle:e.pickerViewIndicatorStyle,maskTopStyle:e.pickerViewMaskTopStyle,maskBottomStyle:e.pickerViewMaskBottomStyle,value:e._l10nColumn(e.valueArray)},on:{change:e._pickerViewChange}},e._l(e._l10nColumn(e.rangeArray),(function(t,r){return n("picker-view-column",{key:r,attrs:{length:t.length}},[n("u-text",{staticClass:["uni-picker-item"],style:e.pickerViewColumnTextStyle},[e._v(e._s(e.getTexts(t,r)))])])})),1):e._e()],1)])},a=[];n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}))},,,,,function(e,t,n){"use strict";n.r(t);var r=n(24),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=a.a},function(e,t,n){"use strict";n.r(t);var r=n(25),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=a.a},,,,function(e,t,n){"use strict";n.r(t);n(2);var r=n(9);r.default.mpType="page",r.default.route="template/__uniapppicker",r.default.el="#root",new Vue(r.default)},function(e,t,n){"use strict";n.r(t);var r=n(33),a=n(22);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);var o=n(1);var s=Object(o.a)(a.default,r.b,r.c,!1,null,null,"1f8b5a47",!1,r.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(38).default,this.options.style):Object.assign(this.options.style,n(38).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDateTime=function(e){var t=e.date,n=void 0===t?new Date:t,a=e.mode;return"time"===(void 0===a?"date":a)?r(n.getHours())+":"+r(n.getMinutes()):n.getFullYear()+"-"+r(n.getMonth()+1)+"-"+r(n.getDate())};var r=function(e){return e>9?e:"0"+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{darkmode:!1,theme:"light"}},onLoad:function(){this.initDarkmode()},created:function(){this.initDarkmode()},computed:{isDark:function(){return"dark"===this.theme}},methods:{initDarkmode:function(){if(!this.__init){this.__init=!0;var e=(plus.webview.currentWebview().extras||{}).data||{};this.darkmode=e.darkmode||!1,this.darkmode&&(this.theme=e.theme||"light")}}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{safeAreaInsets:{left:0,right:0,top:0,bottom:0}}},onLoad:function(){this.initSafeAreaInsets()},created:function(){this.initSafeAreaInsets()},methods:{initSafeAreaInsets:function(){var e=this;if(!this.__initSafeAreaInsets){this.__initSafeAreaInsets=!0;var t=plus.webview.currentWebview();t.addEventListener("resize",(function(){setTimeout((function(){e.updateSafeAreaInsets(t)}),20)})),this.updateSafeAreaInsets(t)}},updateSafeAreaInsets:function(e){var t=e.getSafeAreaInsets(),n=this.safeAreaInsets;Object.keys(n).forEach((function(e){n[e]=t[e]}))}}};t.default=r}]); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquill.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquill.js new file mode 100644 index 0000000..01cd2f0 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquill.js @@ -0,0 +1,8 @@ +/*! + * Quill Editor v1.3.7 + * https://quilljs.com/ + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(48),a=n(49),s=n(50),u=n(51),c=n(52),f=n(11),h=n(29),p=n(30),d=n(28),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new s("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=p.ANY);var n;if("string"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof t)t&p.LEVEL&p.BLOCK?n=h.block:t&p.LEVEL&p.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&p.LEVEL&n.scope&&e&p.TYPE&n.scope?n:null}function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map(function(t){return l(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)u[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return a(e,t),e}(Error);e.ParchmentError=s;var u={},c={},f={},h={};e.DATA_KEY="__blot";var p;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(p=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return void 0===i||n.call(t,i)},s=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h<p;++h)if(null!=(e=arguments[h]))for(n in e)r=u(f,n),o=u(e,n),f!==o&&(d&&o&&(a(o)||(i=l(o)))?(i?(i=!1,c=r&&l(r)?r:[]):c=r&&a(r)?r:{},s(f,{name:n,newValue:t(d,c,o)})):void 0!==o&&s(f,{name:n,newValue:o}));return f}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:a(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(2),f=r(c),h=n(4),p=r(h),d=n(0),y=r(d),v=n(14),b=r(v),g=n(5),m=r(g),_=n(8),O=r(_),w=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),s(e,[{key:"attach",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new y.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new p.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=y.default.query(t,y.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=y.default.create(x.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(y.default.Embed);w.scope=y.default.Scope.BLOCK_BLOT;var x=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return l(e,t),s(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(y.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),a(e))},new p.default).insert("\n",a(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(y.default.query(r,y.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),i=o.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var l=this;o.reduce(function(t,e){return l=l.split(t,!0),l.insertAt(0,e),e.length},t+i.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof b.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(y.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[m.default,y.default.Embed,O.default],e.bubbleFormats=a,e.BlockEmbed=w,e.default=x},function(t,e,n){var r=n(54),o=n(12),i=n(2),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+l.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<e&&r.hasNext();){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=l.length(i)}return new s(n)},s.prototype.compose=function(t){var e=l.iterator(this.ops),n=l.iterator(t.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===e.peekType()&&e.peekLength()<=a;)a-=e.peekLength(),r.push(e.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}}),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(8),c=r(u),f=n(0),h=r(f),p=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&h.default.query(r,h.default.Scope.BLOT)){var i=this.isolate(t,n);o&&i.wrap(r,o)}else s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(h.default.Inline);p.allowedChildren=[p,h.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(e=(0,N.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==S.DEFAULTS.theme){if(e.theme=S.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=T.default;var n=(0,N.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach(function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach(function(e){!0===t.modules[e]&&(t.modules[e]={})})});var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce(function(t,e){var n=S.import("modules/"+e);return null==n?P.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t},{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,N.default)(!0,{},S.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce(function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t},{}),e}function a(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===g.default.sources.USER)return new d.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=u(o,l,e):0!==r&&(o=u(o,n,r,e)),this.setSelection(o,g.default.sources.SILENT)),l.length()>0){var a,s=[g.default.events.TEXT_CHANGE,l,i,e];if((a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,s)}}return l}function s(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function u(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof d.default){var l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),a=f(l,2);o=a[0],i=a[1]}else{var s=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&r===g.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),u=f(s,2);o=u[0],i=u[1]}return new x.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(53);var p=n(4),d=r(p),y=n(57),v=r(y),b=n(9),g=r(b),m=n(7),_=r(m),O=n(0),w=r(O),x=n(22),k=r(x),E=n(2),N=r(E),j=n(10),A=r(j),q=n(32),T=r(q),P=(0,A.default)("quill"),S=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=l(e,r),this.container=this.options.container,null==this.container)return P.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container["inner"+"HTML"].trim();this.container.classList.add("ql-container"),this.container["inner"+"HTML"]="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=w.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new v.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,e,o)},t)});var s=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||w.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&P.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||P.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?w.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),h(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),i=new d.default;if(null==r)return i;if(w.default.query(t,w.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatLine(t,e,l)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatText(t,e,l)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return a.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,0,n,r,o),c=f(u,4);return t=c[0],l=c[2],o=c[3],a.call(this,function(){return i.editor.insertText(t,e,l)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){t=new d.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=s(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new x.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new d.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){return t=new d.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.7",S.imports={delta:d.default,parchment:w.default,"core/module":_.default,"core/theme":T.default},e.expandConfig=l,e.overload=s,e.default=S},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(58),c=r(u),f=n(10),h=r(f),p=(0,h.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var d=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",p.error),t}return l(e,t),a(e,[{key:"emit",value:function(){p.log.apply(p,arguments),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(c.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},e.default=d},function(t,e,n){"use strict";function r(t){if(i.indexOf(t)<=i.indexOf(l)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=console)[t].apply(e,r)}}function o(t){return i.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],l="warn";r.level=o.level=function(t){l=t},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),u(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var f=a(t),h=a(e)}catch(t){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),i=f.length-1;i>=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var l=Array.prototype.slice,a=n(55),s=n(56),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(4),f=r(c),h=n(0),p=r(h),d=n(3),y=r(d),v=n(5),b=r(v),g=n(8),m=r(g),_=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(b.default);_.blotName="code",_.tagName="CODE";var O=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),s(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(m.default,this.length()-1),o=a(r,1),i=o[0];null!=i&&i.deleteAt(i.length()-1,1),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=p.default.query(r,p.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var l=this.newlineIndex(t,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof e&&u.formatAt(0,t-l+n-a,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n")),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=p.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof p.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(y.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",e.Code=_,e.default=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"insertInto",value:function(t,n){0===t.children.length?a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(u.default.Embed);c.blotName="break",c.tagName="BR",e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(5),c=function(t){return t&&t.__esModule?t:{default:t}}(u),f=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),a(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return l(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(c.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}Object.defineProperty(e,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(25),u=r(s),c=n(106),f=r(c),h=0,p=function(){function t(e){var n=this;o(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(t){switch(t.keyCode){case u.default.keys.ENTER:n.togglePicker();break;case u.default.keys.ESCAPE:n.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return a(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),i(this.label,"aria-expanded"),i(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n.addEventListener("keydown",function(t){switch(t.keyCode){case u.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case u.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t["inner"+"HTML"]=f.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout(function(){return t.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":l(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(47),l=n(27),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))})},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(28),l=n(17),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(27),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(12),i=n(2),l={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=l},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(n,r,o,i,c){function f(n,o){if(null===n)return null;if(0===o)return n;var y,v;if("object"!=typeof n)return n;if(t(n,a))y=new a;else if(t(n,s))y=new s;else if(t(n,u))y=new u(function(t,e){n.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(e.__isArray(n))y=[];else if(e.__isRegExp(n))y=new RegExp(n.source,l(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(e.__isDate(n))y=new Date(n.getTime());else{if(d&&Buffer.isBuffer(n))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(n.length):new Buffer(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===i?(v=Object.getPrototypeOf(n),y=Object.create(v)):(y=Object.create(i),v=i)}if(r){var b=h.indexOf(n);if(-1!=b)return p[b];h.push(n),p.push(y)}t(n,a)&&n.forEach(function(t,e){var n=f(e,o-1),r=f(t,o-1);y.set(n,r)}),t(n,s)&&n.forEach(function(t){var e=f(t,o-1);y.add(e)});for(var g in n){var m;v&&(m=Object.getOwnPropertyDescriptor(v,g)),m&&null==m.set||(y[g]=f(n[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(n),g=0;g<_.length;g++){var O=_[g],w=Object.getOwnPropertyDescriptor(n,O);(!w||w.enumerable||c)&&(y[O]=f(n[O],o-1),w.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(c)for(var x=Object.getOwnPropertyNames(n),g=0;g<x.length;g++){var k=x[g],w=Object.getOwnPropertyDescriptor(n,k);w&&w.enumerable||(y[k]=f(n[k],o-1),Object.defineProperty(y,k,{enumerable:!1}))}return y}"object"==typeof r&&(o=r.depth,i=r.prototype,c=r.includeNonEnumerable,r=r.circular);var h=[],p=[],d="undefined"!=typeof Buffer;return void 0===r&&(r=!0),void 0===o&&(o=1/0),f(n,o)}function n(t){return Object.prototype.toString.call(t)}function r(t){return"object"==typeof t&&"[object Date]"===n(t)}function o(t){return"object"==typeof t&&"[object Array]"===n(t)}function i(t){return"object"==typeof t&&"[object RegExp]"===n(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var a;try{a=Map}catch(t){a=function(){}}var s;try{s=Set}catch(t){s=function(){}}var u;try{u=Promise}catch(t){u=function(){}}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=n,e.__isDate=r,e.__isArray=o,e.__isRegExp=i,e.__getRegExpFlags=l,e}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(0),c=r(u),f=n(21),h=r(f),p=n(12),d=r(p),y=n(9),v=r(y),b=n(10),g=r(b),m=(0,g.default)("quill:selection"),_=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(t,e){t===v.default.events.TEXT_CHANGE&&e.length()>0&&r.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}}),this.update(v.default.sources.SILENT)}return s(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(r,s);var h=this.scroll.leaf(t+e),p=a(h,2);if(l=p[0],s=p[1],null==l)return null;var d=l.position(s,!0),y=a(d,2);return r=y[0],s=y[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",b=void 0;return r instanceof Text?(s<r.data.length?(f.setStart(r,s),f.setEnd(r,s+1)):(f.setStart(r,s-1),f.setEnd(r,s),v="right"),b=f.getBoundingClientRect()):(b=l.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(o(r)));return new _(l,i-l)}},{key:"normalizeNative",value:function(t){if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,l=e.scroll.leaf(t),s=a(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=a(f,2);i=h[0],c=h[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=a(o,1),l=i[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r));s=a(u,1)[0]}if(null!=l&&null!=s){var c=t.getBoundingClientRect();n.top<c.top?t.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,e=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(e,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[v.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((l=this.emitter).emit.apply(l,[v.default.events.EDITOR_CHANGE].concat(s)),t!==v.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),t}();e.Range=_,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=r(a),u=n(3),c=r(u),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(s.default.Container);f.allowedChildren=[c.default,u.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"value",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(u.default.Attributor.Style),f=new u.default.Attributor.Class("color","ql-color",{scope:u.default.Scope.INLINE}),h=new c("color","color",{scope:u.default.Scope.INLINE});e.ColorAttributor=c,e.ColorClass=f,e.ColorStyle=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){var n,r=t===D.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},o(n,r,/^$/),o(n,"handler",function(n){var r=n.index;t===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(b(o,1)[0]instanceof T.default.Embed)||(t===D.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,S.default.sources.USER):this.quill.setSelection(n.index-1,S.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,S.default.sources.USER):this.quill.setSelection(n.index+n.length+1,S.default.sources.USER),!1)}),n}function u(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=b(n,1),o=r[0],i={};if(0===e.offset){var l=this.quill.getLine(t.index-1),a=b(l,1),s=a[0];if(null!=s&&s.length()>1){var u=o.formats(),c=this.quill.getFormat(t.index-1,1);i=A.default.attributes.diff(u,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,S.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),l=b(i,1),a=l[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=b(s,1),c=u[0];if(c){var f=a.formats(),h=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,S.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,S.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=A.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,S.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,S.default.sources.USER),this.quill.setSelection(t.index,S.default.sources.SILENT),this.quill.focus()}function h(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],S.default.sources.USER))})}function p(t){return{key:D.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),l=b(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,f=a.newlineIndex(u+s+o),h=a.domNode.textContent.slice(c,f).split("\n");s=0,h.forEach(function(e,i){t?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=e.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function d(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],S.default.sources.USER)}}}function y(t){if("string"==typeof t||"number"==typeof t)return y({key:t});if("object"===(void 0===t?"undefined":v(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=D.keys[t.key.toUpperCase()])t.key=D.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[B]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=n(21),_=r(m),O=n(12),w=r(O),x=n(2),k=r(x),E=n(4),N=r(E),j=n(20),A=r(j),q=n(0),T=r(q),P=n(6),S=r(P),C=n(10),L=r(C),M=n(7),R=r(M),I=(0,L.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",D=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},h),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},u),r.addBinding({key:e.keys.DELETE},{collapsed:!0},c)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},u),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},c)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},u),r.listen(),r}return a(e,t),g(e,null,[{key:"match",value:function(t,e){return e=y(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),g(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(null==r||null==r.key)return I.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,k.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var l=t.quill.getLine(i.index),a=b(l,2),s=a[0],u=a[1],c=t.quill.getLeaf(i.index),f=b(c,2),h=f[0],p=f[1],d=0===i.length?[h,p]:t.quill.getLeaf(i.index+i.length),y=b(d,2),g=y[0],m=y[1],_=h instanceof T.default.Text?h.value().slice(0,p):"",O=g instanceof T.default.Text?g.value().slice(m):"",x={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:t.quill.getFormat(i),offset:u,prefix:_,suffix:O};o.some(function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==x.format[t]}))return!1}else if("object"===v(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,w.default)(e.format[t],x.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,i,x))})&&n.preventDefault()}}}})}}]),e}(R.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:d("bold"),italic:d("italic"),underline:d("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,S.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new N.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,S.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,S.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(0,k.default)({},r.formats(),{list:"checked"}),l=(new N.default).retain(t.index).insert("\n",i).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=b(n,2),o=r[0],i=r[1],l=(new N.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=b(r,2),i=o[0],l=o[1];if(l>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",S.default.sources.USER),this.quill.history.cutoff();var s=(new N.default).retain(t.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:a});this.quill.updateContents(s,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,S.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(new N.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,S.default.sources.USER)}},"embed left":s(D.keys.LEFT,!1),"embed left shift":s(D.keys.LEFT,!0),"embed right":s(D.keys.RIGHT,!1),"embed right shift":s(D.keys.RIGHT,!0)}},e.default=D,e.SHORTKEY=B},function(t,e,n){"use strict";t.exports={align:{"":n(75),center:n(76),right:n(77),justify:n(78)},background:n(79),blockquote:n(80),bold:n(81),clean:n(82),code:n(40),"code-block":n(40),color:n(83),direction:{"":n(84),rtl:n(85)},float:{center:n(86),full:n(87),left:n(88),right:n(89)},formula:n(90),header:{1:n(91),2:n(92)},italic:n(93),image:n(94),indent:{"+1":n(95),"-1":n(96)},link:n(97),list:{ordered:n(98),bullet:n(99),check:n(100)},script:{sub:n(101),super:n(102)},strike:n(103),underline:n(104),video:n(105)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=n(29),i=n(30),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=a},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),h=n(8),p=r(h),d=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return l(e,t),u(e,null,[{key:"value",value:function(){}}]),u(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,i=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];r=l[0],o=l[1],i=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var s=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof p.default?(r=this.next.domNode,this.next.insertAt(0,s),this.textNode.data=e.CONTENTS):(this.textNode.data=s,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var u=[o,i].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),c=a(u,2);return o=c[0],i=c[1],{startNode:r,startOffset:o,endNode:r,endOffset:i}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return o(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(0),c=r(u),f=n(8),h=r(f),p="\ufeff",d=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(p),n.rightGuard=document.createTextNode(p),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return l(e,t),a(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(p).join("");if(t===this.leftGuard)if(this.prev instanceof h.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=p,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(c.default.Embed);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);e.AlignAttribute=l,e.AlignClass=a,e.AlignStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=n(24),l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=l,e.BackgroundStyle=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);e.DirectionAttribute=l,e.DirectionClass=a,e.DirectionStyle=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c={scope:u.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new u.default.Attributor.Class("font","ql-font",c),h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"value",value:function(t){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(u.default.Attributor.Style),p=new h("font","font-family",c);e.FontStyle=p,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=i,e.SizeStyle=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"optimize",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(u.default);c.blotName="bold",c.tagName=["STRONG","B"],e.default=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(16),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(t,n){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.label["inner"+"HTML"]=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),i}return i(e,t),l(e,[{key:"buildItem",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(u.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(16),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(t,n){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(t){t["inner"+"HTML"]=n[t.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return i(e,t),l(e,[{key:"selectItem",value:function(t,n){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label["inner"+"HTML"]=t["inner"+"HTML"]}}]),e}(u.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var o=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root["inner"+"HTML"]=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return o(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},f=n(2),h=r(f),p=n(4),d=r(p),y=n(9),v=r(y),b=n(25),g=r(b),m=n(32),_=r(m),O=n(41),w=r(O),x=n(42),k=r(x),E=n(16),N=r(E),j=n(43),A=r(j),q=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],P=[!1,"serif","monospace"],S=["1","2","3",!1],C=["small",!1,"large","huge"],L=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),l=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,l),r}return l(e,t),u(e,[{key:"addModule",value:function(t){var n=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t["inner"+"HTML"]=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t["inner"+"HTML"]=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t["inner"+"HTML"]=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&s(t,q),new k.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&s(t,T,"background"===n?"#ffffff":"#000000"),new w.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?s(t,P):t.classList.contains("ql-header")?s(t,S):t.classList.contains("ql-size")&&s(t,C)),new N.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(v.default.events.EDITOR_CHANGE,r)}}]),e}(_.default);L.DEFAULTS=(0,h.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new d.default).retain(r.index).delete(r.length).insert({image:n.target.result}),v.default.sources.USER),t.quill.setSelection(r.index+1,v.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return l(e,t),u(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){g.default.match(e,"enter")?(t.save(),e.preventDefault()):g.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,v.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=a(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",v.default.sources.USER),this.quill.setSelection(r+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=M,e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(46),i=r(o),l=n(34),a=n(36),s=n(62),u=n(63),c=r(u),f=n(64),h=r(f),p=n(65),d=r(p),y=n(35),v=n(24),b=n(37),g=n(38),m=n(39),_=r(m),O=n(66),w=r(O),x=n(15),k=r(x),E=n(67),N=r(E),j=n(68),A=r(j),q=n(69),T=r(q),P=n(70),S=r(P),C=n(71),L=r(C),M=n(13),R=r(M),I=n(72),B=r(I),D=n(73),U=r(D),F=n(74),H=r(F),K=n(26),z=r(K),V=n(16),Z=r(V),W=n(41),G=r(W),Y=n(42),X=r(Y),$=n(43),Q=r($),J=n(107),tt=r(J),et=n(108),nt=r(et);i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":M.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":N.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":S.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":H.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":z.default,"ui/picker":Z.default,"ui/icon-picker":X.default,"ui/color-picker":G.default,"ui/tooltip":Q.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(6),a=r(l),s=n(3),u=r(s),c=n(14),f=r(c),h=n(23),p=r(h),d=n(31),y=r(d),v=n(33),b=r(v),g=n(5),m=r(g),_=n(59),O=r(_),w=n(8),x=r(w),k=n(60),E=r(k),N=n(61),j=r(N),A=n(25),q=r(A);a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":j.default,"modules/keyboard":q.default}),i.default.register(u.default,f.default,y.default,m.default,O.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),i=o[0],l=o[1],a=t-l,s=this.iterator(i);(r=s())&&a<t+e;){var u=r.length();t>a?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,l),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(s),u=[].slice.call(this.observer.takeRecords()),l=u.slice();l.length>0;)e.push(l.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=i.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[v,t]]:[];(n<0||t.length<n)&&(n=null);var o=l(t,e),i=t.substring(0,o);t=t.substring(o),e=e.substring(o),o=a(t,e);var s=t.substring(t.length-o);t=t.substring(0,t.length-o),e=e.substring(0,e.length-o);var c=r(t,e);return i&&c.unshift([v,i]),s&&c.push([v,s]),u(c),null!=n&&(c=f(c,n)),c=h(c)}function r(t,e){var r;if(!t)return[[y,e]];if(!e)return[[d,t]];var i=t.length>e.length?t:e,l=t.length>e.length?e:t,a=i.indexOf(l);if(-1!=a)return r=[[y,i.substring(0,a)],[v,l],[y,i.substring(a+l.length)]],t.length>e.length&&(r[0][0]=r[2][0]=d),r;if(1==l.length)return[[d,t],[y,e]];var u=s(t,e);if(u){var c=u[0],f=u[1],h=u[2],p=u[3],b=u[4],g=n(c,h),m=n(f,p);return g.concat([[v,b]],m)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;c<a;c++)s[c]=-1,u[c]=-1;s[l+1]=0,u[l+1]=0;for(var f=n-r,h=f%2!=0,p=0,v=0,b=0,g=0,m=0;m<o;m++){for(var _=-m+p;_<=m-v;_+=2){var O,w=l+_;O=_==-m||_!=m&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1;for(var x=O-_;O<n&&x<r&&t.charAt(O)==e.charAt(x);)O++,x++;if(s[w]=O,O>n)v+=2;else if(x>r)p+=2;else if(h){var k=l+f-_;if(k>=0&&k<a&&-1!=u[k]){var E=n-u[k];if(O>=E)return i(t,e,O,x)}}}for(var N=-m+b;N<=m-g;N+=2){var E,k=l+N;E=N==-m||N!=m&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1;for(var j=E-N;E<n&&j<r&&t.charAt(n-E-1)==e.charAt(r-j-1);)E++,j++;if(u[k]=E,E>n)g+=2;else if(j>r)b+=2;else if(!h){var w=l+f-N;if(w>=0&&w<a&&-1!=s[w]){var O=s[w],x=l+O-w;if(E=n-E,O>=E)return i(t,e,O,x)}}}}return[[d,t],[y,e]]}function i(t,e,r,o){var i=t.substring(0,r),l=e.substring(0,o),a=t.substring(r),s=e.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function a(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function s(t,e){function n(t,e,n){for(var r,o,i,s,u=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(u,c+1));){var h=l(t.substring(n),e.substring(c)),p=a(t.substring(0,n),e.substring(0,c));f.length<p+h&&(f=e.substring(c-p,c)+e.substring(c,c+h),r=t.substring(0,n-p),o=t.substring(n+h),i=e.substring(0,c-p),s=e.substring(c+h))}return 2*f.length>=t.length?[r,o,i,s,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.length<r.length)return null;var i,s=n(r,o,Math.ceil(r.length/4)),u=n(r,o,Math.ceil(r.length/2));if(!s&&!u)return null;i=u?s&&s[4].length>u[4].length?s:u:s;var c,f,h,p;return t.length>e.length?(c=i[0],f=i[1],h=i[2],p=i[3]):(h=i[0],p=i[1],c=i[2],f=i[3]),[c,f,h,p,i[4]]}function u(t){t.push([v,""]);for(var e,n=0,r=0,o=0,i="",s="";n<t.length;)switch(t[n][0]){case y:o++,s+=t[n][1],n++;break;case d:r++,i+=t[n][1],n++;break;case v:r+o>1?(0!==r&&0!==o&&(e=l(s,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==v?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,[v,s.substring(0,e)]),n++),s=s.substring(e),i=i.substring(e)),0!==(e=a(s,i))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[y,s]):0===o?t.splice(n-r,r+o,[d,i]):t.splice(n-r-o,r+o,[d,i],[y,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==v?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==v&&t[n+1][0]==v&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&u(t)}function c(t,e){if(0===e)return[v,t];for(var n=0,r=0;r<t.length;r++){var o=t[r];if(o[0]===d||o[0]===v){var i=n+o[1].length;if(e===i)return[r+1,t];if(e<i){t=t.slice();var l=e-n,a=[o[0],o[1].slice(0,l)],s=[o[0],o[1].slice(l)];return t.splice(r,1,a,s),[r+1,t]}n=i}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=c(t,e),r=n[1],o=n[0],i=r[o],l=r[o+1];if(null==i)return t;if(i[0]!==v)return t;if(null!=l&&i[1]+l[1]===l[1]+i[1])return r.splice(o,2,l,i),p(r,o,2);if(null!=l&&0===l[1].indexOf(i[1])){r.splice(o,2,[l[0],i[1]],[0,i[1]]);var a=l[1].slice(i[1].length);return a.length>0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return t}function h(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r<t.length;r+=1)t[r-2][0]===v&&function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===d&&n(t[r-1][1])&&t[r][0]===y&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var o=[],r=0;r<t.length;r+=1)t[r][1].length>0&&o.push(t[r]);return o}function p(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}var d=-1,y=1,v=0,b=n;b.INSERT=y,b.DELETE=d,b.EQUAL=v,t.exports=b},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=o?n:r,e.supported=n,e.unsupported=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)},{})}function a(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,N.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,N.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new h.default)}Object.defineProperty(e,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(4),h=r(f),p=n(20),d=r(p),y=n(0),v=r(y),b=n(13),g=r(b),m=n(31),_=r(m),O=n(3),w=r(O),x=n(14),k=r(x),E=n(21),N=r(E),j=n(12),A=r(j),q=n(2),T=r(q),P=/^[ -~]*$/,S=function(){function t(e){i(this,t),this.scroll=e,this.delta=this.getDelta()}return c(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=a(t),t.reduce(function(t,o){var i=o.retain||o.delete||o.insert.length||1,l=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var a=o.insert;a.endsWith("\n")&&n&&(n=!1,a=a.slice(0,-1)),t>=r&&!a.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,a);var c=e.scroll.line(t),f=u(c,2),h=f[0],p=f[1],y=(0,T.default)({},(0,O.bubbleFormats)(h));if(h instanceof w.default){var b=h.descendant(v.default.Leaf,p),g=u(b,1),m=g[0];y=(0,T.default)(y,(0,O.bubbleFormats)(m))}l=d.default.attributes.diff(y,l)||{}}else if("object"===s(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(l).forEach(function(n){e.scroll.formatAt(t,i,n,l[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i})}}),this.scroll.optimize(),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=u(t,1),o=e[0];o instanceof w.default?n.push(o):o instanceof v.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(v.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,O.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=l((0,O.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new h.default).retain(t).insert(e,(0,N.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===w.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof k.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=u(r,2),i=o[0],l=o[1],a=0,s=new h.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(t,e+a),f=c.diff((new h.default).insert(n).concat(s)),p=(new h.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&v.default.find(e[0].target)){var o=v.default.find(e[0].target),i=(0,O.bubbleFormats)(o),l=o.offset(this.scroll),a=e[0].oldValue.replace(_.default.CONTENTS,""),s=(new h.default).insert(a),u=(new h.default).insert(o.value());t=(new h.default).retain(l).concat(s.diff(u,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new h.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=S},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(l?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=l?l+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},o.prototype.emit=function(t,e,n,r,o,i){var a=l?l+t:t;if(!this._events[a])return!1;var s,u,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,i),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,r);break;default:if(!s)for(h=1,s=new Array(f-1);h<f;h++)s[h-1]=arguments[h];c[u].fn.apply(c[u].context,s)}}return!0},o.prototype.on=function(t,e,n){var o=new r(e,n||this),i=l?l+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.once=function(t,e,n){var o=new r(e,n||this,!0),i=l?l+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.removeListener=function(t,e,r,o){var i=l?l+t:t;if(!this._events[i])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[i],this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||r&&a.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[i]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==e||o&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[i]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new n:delete this._events[i]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=l?l+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=l,o.EventEmitter=o,void 0!==t&&(t.exports=o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return t instanceof v.default||t instanceof y.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},f=n(0),h=r(f),p=n(9),d=r(p),y=n(3),v=r(y),b=n(14),g=r(b),m=n(13),_=r(m),O=n(23),w=r(O),x=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return l(e,t),u(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),o=s(r,2),i=o[0],l=o[1],a=this.line(t+n),u=s(a,1),f=u[0];if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&i!==f&&l>0){if(i instanceof y.BlockEmbed||f instanceof y.BlockEmbed)return void this.optimize();if(i instanceof _.default){var h=i.newlineIndex(i.length(),!0);if(h>-1&&(i=i.split(h+1))===f)return void this.optimize()}else if(f instanceof _.default){var p=f.newlineIndex(0);p>-1&&f.split(p+1)}var d=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,d),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==h.default.query(n,h.default.Scope.BLOCK)){var o=h.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=h.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===h.default.Scope.INLINE_BLOT){var r=h.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(a,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){a(e)?o.push(e):e instanceof h.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=d.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,n,t)}}}]),e}(h.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[v.default,y.BlockEmbed,w.default],e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return"object"===(void 0===e?"undefined":x(e))?Object.keys(e).reduce(function(t,n){return s(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},o({},e,n),r.attributes))},new q.default)}function u(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(u(t).display)>-1}function h(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new q.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=h(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[W]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new q.default):new q.default}function p(t,e,n){return s(n,t,!0)}function d(t,e){var n=P.default.Attributor.Attribute.keys(t),r=P.default.Attributor.Class.keys(t),o=P.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=P.default.query(e,P.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=Y[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=s(e,i)),e}function y(t,e){var n=P.default.query(t);if(null==n)return e;if(n.prototype instanceof P.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new q.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=s(e,n.blotName,n.formats(t)));return e}function v(t,e){return c(e,"\n")||e.insert("\n"),e}function b(){return new q.default}function g(t,e){var n=P.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(P.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new q.default).retain(e.length()-1).retain(1,{indent:r}))}function m(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(u(t).marginTop)+parseFloat(u(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function O(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===u(t).fontStyle&&(n.italic=!0),r.fontWeight&&(u(t).fontWeight.startsWith("bold")||parseInt(u(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=s(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new q.default).insert("\t").concat(e)),e}function w(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!u(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),N=n(2),j=r(N),A=n(4),q=r(A),T=n(0),P=r(T),S=n(6),C=r(S),L=n(10),M=r(L),R=n(7),I=r(R),B=n(34),D=n(35),U=n(13),F=r(U),H=n(24),K=n(36),z=n(37),V=n(38),Z=(0,M.default)("quill:clipboard"),W="__ql-matcher",G=[[Node.TEXT_NODE,w],[Node.TEXT_NODE,m],["br",v],[Node.ELEMENT_NODE,m],[Node.ELEMENT_NODE,y],[Node.ELEMENT_NODE,_],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,O],["li",g],["b",p.bind(p,"bold")],["i",p.bind(p,"italic")],["style",b]],Y=[B.AlignAttribute,K.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),X=[B.AlignStyle,D.BackgroundStyle,H.ColorStyle,K.DirectionStyle,z.FontStyle,V.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),$=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],G.concat(r.options.matchers).forEach(function(t){var e=k(t,2),o=e[0],i=e[1];(n.matchVisual||i!==_)&&r.addMatcher(o,i)}),r}return a(e,t),E(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container["inner"+"HTML"]=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[F.default.blotName]){var n=this.container.innerText;return this.container["inner"+"HTML"]="",(new q.default).insert(n,o({},F.default.blotName,e[F.default.blotName]))}var r=this.prepareMatching(),i=k(r,2),l=i[0],a=i[1],s=h(this.container,l,a);return c(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new q.default).retain(s.length()-1).delete(1))),Z.log("convert",this.container["inner"+"HTML"],s),this.container["inner"+"HTML"]="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,C.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new q.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),C.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new q.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(C.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,C.default.sources.USER),e.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=k(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[W]=t[W]||[],t[W].push(l)})}}),[e,n]}}]),e}(I.default);$.DEFAULTS={matchers:[],matchVisual:!0},e.default=$,e.matchAttributor=d,e.matchBlot=y,e.matchNewline=m,e.matchSpacing=_,e.matchText=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return a(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),h=n(6),p=r(h),d=n(7),y=r(d),v=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(p.default.events.EDITOR_CHANGE,function(t,e,n,o){t!==p.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==p.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return l(e,t),u(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],p.default.sources.USER),this.ignoreChange=!1;var r=s(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(y.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=v,e.getLastChangeIndex=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(u.default.Attributor.Class),f=new c("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(0),f=r(c),h=n(3),p=r(h),d=n(23),y=r(d),v=function(t){function e(){return i(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"format",value:function(t,n){t!==b.blotName||n?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:u(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(p.default);v.blotName="list-item",v.tagName="LI";var b=function(t){function e(t){i(this,e);var n=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=f.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return a(e,t),s(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),s(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(y.default);b.blotName="list",b.scope=f.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[v],e.ListItem=v,e.default=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(39),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(u.default);c.blotName="script",c.tagName=["SUB","SUP"],e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=n(15),f=["alt","height","width"],h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(3),u=n(15),c=function(t){return t&&t.__esModule?t:{default:t}}(u),f=["height","width"],h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(33),c=r(u),f=n(6),h=r(f),p=n(7),d=r(p),y=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,null,[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(c.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var v=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(y,!0)}}]),e}(d.default);e.FormulaBlot=y,e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(0),c=r(u),f=n(6),h=r(f),p=n(7),d=r(p),y=n(13),v=r(y),b=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode["inner"+"HTML"]=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(v.default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),m=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){r.highlight(),l=null},r.options.interval)}),r.highlight(),r}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(g,!0),h.default.register(b,!0)}}]),a(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(d.default);m.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=b,e.CodeToken=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function u(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)s(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):s(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(4),d=r(p),y=n(0),v=r(y),b=n(6),g=r(b),m=n(10),_=r(m),O=n(7),w=r(O),x=(0,_.default)("quill:toolbar"),k=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var o=document.createElement("div");u(o,r.options.container),t.container.parentNode.insertBefore(o,t.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var a;return a=x.error("Container required for toolbar",r.options),l(r,a)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(g.default.events.EDITOR_CHANGE,function(t,e){t===g.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return a(e,t),h(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void x.warn("ignoring attaching to disabled format",n,t);if(null==v.default.query(n))return void x.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];i=!l.hasAttribute("selected")&&(l.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var a=e.quill.selection.getRange(),s=f(a,1),u=s[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(v.default.query(n).prototype instanceof v.default.Embed){if(!(i=prompt("Enter "+n)))return;e.quill.updateContents((new d.default).retain(u.index).delete(u.length).insert(o({},n,i)),g.default.sources.USER)}else e.quill.format(n,i,g.default.sources.USER);e.update(u)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),o=r[0],i=r[1];if("SELECT"===i.tagName){var l=void 0;if(null==t)l=null;else if(null==e[o])l=i.querySelector("option[selected]");else if(!Array.isArray(e[o])){var a=e[o];"string"==typeof a&&(a=a.replace(/\"/g,'\\"')),l=i.querySelector('option[value="'+a+'"]')}null==l?(i.value="",i.selectedIndex=-1):l.selected=!0}else if(null==t)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var s=e[o]===i.getAttribute("value")||null!=e[o]&&e[o].toString()===i.getAttribute("value")||null==e[o]&&!i.getAttribute("value");i.classList.toggle("ql-active",s)}else i.classList.toggle("ql-active",null!=e[o])})}}]),e}(w.default);k.DEFAULTS={},k.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=v.default.query(e,v.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,g.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",g.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,g.default.sources.USER),this.quill.format("direction",t,g.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,g.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,g.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,g.default.sources.USER):this.quill.format("list","unchecked",g.default.sources.USER):this.quill.format("list",t,g.default.sources.USER)}}},e.default=k,e.addControls=u},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(2),c=r(u),f=n(9),h=r(f),p=n(44),d=r(p),y=n(22),v=n(26),b=r(v),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return l(e,t),s(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),b.default)}}]),e}(d.default);m.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,o){if(t===h.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===h.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,e.index+e.length-a),u=r.quill.getBounds(new y.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return l(e,t),s(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(p.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(2),f=r(c),h=n(9),p=r(h),d=n(44),y=r(d),v=n(15),b=r(v),g=n(22),m=n(26),_=r(m),O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=O);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return l(e,t),u(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),_.default),this.tooltip=new x(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(y.default);w.DEFAULTS=(0,f.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var x=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return l(e,t),u(e,[{key:"listen",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,p.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===p.default.sources.USER){var o=t.quill.scroll.descendant(b.default,e.index),i=a(o,2),l=i[0],s=i[1];if(null!=l){t.linkRange=new g.Range(e.index-s,l.length());var u=b.default.formats(l.domNode);return t.preview.textContent=u,t.preview.setAttribute("href",u),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(d.BaseTooltip);x.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=w}]).default}); +//# sourceMappingURL=quill.min.js.map \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquillimageresize.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquillimageresize.js new file mode 100644 index 0000000..2829c6c --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappquillimageresize.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ImageResize=e():t.ImageResize=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=39)}([function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var o=n(22),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}var r=n(76),i=n(77),u=n(78),c=n(79),a=n(80);o.prototype.clear=r,o.prototype.delete=i,o.prototype.get=u,o.prototype.has=c,o.prototype.set=a,t.exports=o},function(t,e,n){function o(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}var r=n(8);t.exports=o},function(t,e,n){function o(t){return null==t?void 0===t?a:c:s&&s in Object(t)?i(t):u(t)}var r=n(16),i=n(65),u=n(88),c="[object Null]",a="[object Undefined]",s=r?r.toStringTag:void 0;t.exports=o},function(t,e,n){function o(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}var r=n(74);t.exports=o},function(t,e,n){var o=n(11),r=o(Object,"create");t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r});var r=function t(e){o(this,t),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=e.overlay,this.img=e.img,this.options=e.options,this.requestUpdate=e.onUpdate}},function(t,e,n){function o(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var r=n(21);t.exports=o},function(t,e,n){function o(t,e){var n=i(t,e);return r(n)?n:void 0}var r=n(49),i=n(66);t.exports=o},function(t,e,n){function o(t){return null!=t&&i(t.length)&&!r(t)}var r=n(13),i=n(31);t.exports=o},function(t,e,n){function o(t){if(!i(t))return!1;var e=r(t);return e==c||e==a||e==u||e==s}var r=n(5),i=n(0),u="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";t.exports=o},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var o=n(11),r=n(1),i=o(r,"Map");t.exports=i},function(t,e,n){var o=n(1),r=o.Symbol;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){function o(t,e,n){(void 0===n||i(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}var r=n(10),i=n(8);t.exports=o},function(t,e,n){function o(t,e,n,p,l){t!==e&&u(e,function(u,s){if(l||(l=new r),a(u))c(t,e,s,n,o,p,l);else{var d=p?p(f(t,s),u,s+"",t,e,l):void 0;void 0===d&&(d=u),i(t,s,d)}},s)}var r=n(42),i=n(18),u=n(47),c=n(52),a=n(0),s=n(33),f=n(26);t.exports=o},function(t,e,n){function o(t,e){return u(i(t,e,r),t+"")}var r=n(27),i=n(90),u=n(91);t.exports=o},function(t,e,n){var o=n(11),r=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(105))},function(t,e,n){var o=n(89),r=o(Object.getPrototypeOf,Object);t.exports=r},function(t,e){function n(t,e){var n=typeof t;return!!(e=null==e?o:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}var o=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||o)}var o=Object.prototype;t.exports=n},function(t,e){function n(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){var o=n(48),r=n(2),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable,a=o(function(){return arguments}())?o:function(t){return r(t)&&u.call(t,"callee")&&!c.call(t,"callee")};t.exports=a},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(t){var o=n(1),r=n(103),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===i,a=c?o.Buffer:void 0,s=a?a.isBuffer:void 0,f=s||r;t.exports=f}).call(e,n(14)(t))},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e,n){var o=n(50),r=n(55),i=n(87),u=i&&i.isTypedArray,c=u?r(u):o;t.exports=c},function(t,e,n){function o(t){return u(t)?r(t,!0):i(t)}var r=n(44),i=n(51),u=n(12);t.exports=o},function(t,e,n){"use strict";e.a={modules:["DisplaySize","Toolbar","Resize"]}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.d(e,"a",function(){return c});var u=n(9),c=function(t){function e(){var t,n,i,u;o(this,e);for(var c=arguments.length,a=Array(c),s=0;s<c;s++)a[s]=arguments[s];return n=i=r(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),i.onCreate=function(){i.display=document.createElement("div"),i.display.classList.add("ql-image-size"),i.overlay.appendChild(i.display)},i.onDestroy=function(){},i.onUpdate=function(){if(i.display&&i.img){var t=i.getCurrentSize();i.display["inner"+"HTML"]=t.join(" × "),Object.assign(i.display.style,{right:"4px",top:"4px",left:"auto"})}},i.getCurrentSize=function(){return[i.img.width,Math.round(i.img.width/i.img.naturalWidth*i.img.naturalHeight)]},u=n,r(i,u)}return i(e,t),e}(u.a)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.d(e,"a",function(){return f});var u=n(9),c=navigator.maxTouchPoints,a=!1;try{var s=Object.defineProperty({},"passive",{get:function(){a={passive:!1}}});window.addEventListener("test",null,s)}catch(t){}var f=function(t){function e(){var t,n,i,u;o(this,e);for(var s=arguments.length,f=Array(s),p=0;p<s;p++)f[p]=arguments[p];return n=i=r(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(f))),i.onCreate=function(){i.boxes=[],i.addBox("nwse-resize"),i.addBox("nesw-resize"),i.addBox("nwse-resize"),i.addBox("nesw-resize"),i.positionBoxes()},i.onDestroy=function(){i.setCursor("")},i.positionBoxes=function(){[{left:"-6px",top:"-6px"},{right:"-6px",top:"-6px"},{right:"-6px",bottom:"-6px"},{left:"-6px",bottom:"-6px"}].forEach(function(t,e){Object.assign(i.boxes[e].style,t)})},i.addBox=function(t){var e=document.createElement("div");e.classList.add("ql-image-handle"),e.style.cursor=t,e.addEventListener(c?"touchstart":"mousedown",i.handleMousedown,!1),i.overlay.appendChild(e),i.boxes.push(e)},i.handleMousedown=function(t){i.dragBox=t.target;var e=c?t.changedTouches[0]:t;i.dragStartX=e.clientX,i.preDragWidth=i.img.width||i.img.naturalWidth,i.setCursor(i.dragBox.style.cursor),document.addEventListener(c?"touchmove":"mousemove",i.handleDrag,a),document.addEventListener(c?"touchend":"mouseup",i.handleMouseup,!1)},i.handleMouseup=function(){i.setCursor(""),document.removeEventListener(c?"touchmove":"mousemove",i.handleDrag),document.removeEventListener(c?"touchend":"mouseup",i.handleMouseup)},i.handleDrag=function(t){if(i.img){var e=c?t.changedTouches[0]:t,n=e.clientX-i.dragStartX;i.dragBox===i.boxes[0]||i.dragBox===i.boxes[3]?i.img.width=Math.round(i.preDragWidth-n):i.img.width=Math.round(i.preDragWidth+n),i.requestUpdate(),t.preventDefault()}},i.setCursor=function(t){[document.body,i.img].forEach(function(e){e.style.cursor=t})},u=n,r(i,u)}return i(e,t),e}(u.a)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.d(e,"a",function(){return c});var u=n(9),c=function(t){function e(){var t,n,i,u;o(this,e);for(var c=arguments.length,a=Array(c),s=0;s<c;s++)a[s]=arguments[s];return n=i=r(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),i.onCreate=function(){i.toolbar=document.createElement("div"),i.toolbar.classList.add("ql-image-toolbar"),i.overlay.appendChild(i.toolbar),i._addToolbarButtons()},i.onDestroy=function(){},i.onUpdate=function(){},i._addToolbarButtons=function(){var t=document.createElement("span");t.classList.add("triangle-up"),i.toolbar.appendChild(t);var e=document.createElement("span");e.innerText="鍒犻櫎",e.addEventListener("click",function(){var t=new CustomEvent("keyup");t.keyCode=46,document.dispatchEvent(t)}),i.toolbar.appendChild(e)},u=n,r(i,u)}return i(e,t),e}(u.a)},function(t,e,n){var o=n(17),r=n(20),i=n(64),u=n(102),c=r(function(t){return t.push(void 0,i),o(u,void 0,t)});t.exports=c},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=n(38),i=n.n(r),u=n(34),c=n(35),a=n(37),s=n(36),f={DisplaySize:c.a,Toolbar:a.a,Resize:s.a},p=function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map(function(t){return new(f[t]||t)(n)}),n.modules.forEach(function(t){t.onCreate()}),n.onUpdate()},this.onUpdate=function(){n.repositionElements(),n.modules.forEach(function(t){t.onUpdate()})},this.removeModules=function(){n.modules.forEach(function(t){t.onDestroy()}),n.modules=[]},this.handleClick=function(t){if(t.target&&t.target.tagName&&"IMG"===t.target.tagName.toUpperCase()){if(n.img===t.target)return;n.img&&n.hide(),n.show(t.target)}else n.img&&n.hide()},this.show=function(t){n.img=t,n.showOverlay(),n.initializeModules()},this.showOverlay=function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),n.overlay.classList.add("ql-image-overlay"),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()},this.hideOverlay=function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))},this.repositionElements=function(){if(n.overlay&&n.img){var t=n.quill.root.parentNode,e=n.img.getBoundingClientRect(),o=t.getBoundingClientRect();Object.assign(n.overlay.style,{left:e.left-o.left-1+t.scrollLeft+"px",top:e.top-o.top+t.scrollTop+"px",width:e.width+"px",height:e.height+"px"})}},this.hide=function(){n.hideOverlay(),n.removeModules(),n.img=void 0},this.setUserSelect=function(t){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(e){n.quill.root.style[e]=t,document.documentElement.style[e]=t})},this.checkImage=function(t){n.img&&(46!=t.keyCode&&8!=t.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())},this.quill=e;var c=!1;r.modules&&(c=r.modules.slice()),this.options=i()({},r,u.a),!1!==c&&(this.options.modules=c),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};e.default=p,window.Quill&&window.Quill.register("modules/imageResize",p)},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}var r=n(67),i=n(68),u=n(69),c=n(70),a=n(71);o.prototype.clear=r,o.prototype.delete=i,o.prototype.get=u,o.prototype.has=c,o.prototype.set=a,t.exports=o},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}var r=n(81),i=n(82),u=n(83),c=n(84),a=n(85);o.prototype.clear=r,o.prototype.delete=i,o.prototype.get=u,o.prototype.has=c,o.prototype.set=a,t.exports=o},function(t,e,n){function o(t){var e=this.__data__=new r(t);this.size=e.size}var r=n(3),i=n(93),u=n(94),c=n(95),a=n(96),s=n(97);o.prototype.clear=i,o.prototype.delete=u,o.prototype.get=c,o.prototype.has=a,o.prototype.set=s,t.exports=o},function(t,e,n){var o=n(1),r=o.Uint8Array;t.exports=r},function(t,e,n){function o(t,e){var n=u(t),o=!n&&i(t),f=!n&&!o&&c(t),l=!n&&!o&&!f&&s(t),d=n||o||f||l,h=d?r(t.length,String):[],v=h.length;for(var y in t)!e&&!p.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,v))||h.push(y);return h}var r=n(54),i=n(28),u=n(29),c=n(30),a=n(24),s=n(32),f=Object.prototype,p=f.hasOwnProperty;t.exports=o},function(t,e,n){function o(t,e,n){var o=t[e];c.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}var r=n(10),i=n(8),u=Object.prototype,c=u.hasOwnProperty;t.exports=o},function(t,e,n){var o=n(0),r=Object.create,i=function(){function t(){}return function(e){if(!o(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var o=n(63),r=o();t.exports=r},function(t,e,n){function o(t){return i(t)&&r(t)==u}var r=n(5),i=n(2),u="[object Arguments]";t.exports=o},function(t,e,n){function o(t){return!(!u(t)||i(t))&&(r(t)?h:s).test(c(t))}var r=n(13),i=n(75),u=n(0),c=n(98),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,l=f.toString,d=p.hasOwnProperty,h=RegExp("^"+l.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,e,n){function o(t){return u(t)&&i(t.length)&&!!c[r(t)]}var r=n(5),i=n(31),u=n(2),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=o},function(t,e,n){function o(t){if(!r(t))return u(t);var e=i(t),n=[];for(var o in t)("constructor"!=o||!e&&a.call(t,o))&&n.push(o);return n}var r=n(0),i=n(25),u=n(86),c=Object.prototype,a=c.hasOwnProperty;t.exports=o},function(t,e,n){function o(t,e,n,o,g,_,m){var j=b(t,n),w=b(e,n),O=m.get(w);if(O)return void r(t,n,O);var E=_?_(j,w,n+"",t,e,m):void 0,z=void 0===E;if(z){var C=f(w),P=!C&&l(w),S=!C&&!P&&y(w);E=w,C||P||S?f(j)?E=j:p(j)?E=c(j):P?(z=!1,E=i(w,!0)):S?(z=!1,E=u(w,!0)):E=[]:v(w)||s(w)?(E=j,s(j)?E=x(j):h(j)&&!d(j)||(E=a(w))):z=!1}z&&(m.set(w,E),g(E,w,o,_,m),m.delete(w)),r(t,n,E)}var r=n(18),i=n(57),u=n(58),c=n(59),a=n(72),s=n(28),f=n(29),p=n(100),l=n(30),d=n(13),h=n(0),v=n(101),y=n(32),b=n(26),x=n(104);t.exports=o},function(t,e,n){var o=n(99),r=n(21),i=n(27),u=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:o(e),writable:!0})}:i;t.exports=u},function(t,e){function n(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){function o(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}var r=n(43);t.exports=o},function(t,e,n){(function(t){function o(t,e){if(e)return t.slice();var n=t.length,o=s?s(n):new t.constructor(n);return t.copy(o),o}var r=n(1),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===i,a=c?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=o}).call(e,n(14)(t))},function(t,e,n){function o(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var r=n(56);t.exports=o},function(t,e){function n(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}t.exports=n},function(t,e,n){function o(t,e,n,o){var u=!n;n||(n={});for(var c=-1,a=e.length;++c<a;){var s=e[c],f=o?o(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),u?i(n,s,f):r(n,s,f)}return n}var r=n(45),i=n(10);t.exports=o},function(t,e,n){var o=n(1),r=o["__core-js_shared__"];t.exports=r},function(t,e,n){function o(t){return r(function(e,n){var o=-1,r=n.length,u=r>1?n[r-1]:void 0,c=r>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(r--,u):void 0,c&&i(n[0],n[1],c)&&(u=r<3?void 0:u,r=1),e=Object(e);++o<r;){var a=n[o];a&&t(e,a,o,u)}return e})}var r=n(20),i=n(73);t.exports=o},function(t,e){function n(t){return function(e,n,o){for(var r=-1,i=Object(e),u=o(e),c=u.length;c--;){var a=u[t?c:++r];if(!1===n(i[a],a,i))break}return e}}t.exports=n},function(t,e,n){function o(t,e,n,u,c,a){return i(t)&&i(e)&&(a.set(e,t),r(t,e,void 0,o,a),a.delete(e)),t}var r=n(19),i=n(0);t.exports=o},function(t,e,n){function o(t){var e=u.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(t){}var r=c.call(t);return o&&(e?t[a]=n:delete t[a]),r}var r=n(16),i=Object.prototype,u=i.hasOwnProperty,c=i.toString,a=r?r.toStringTag:void 0;t.exports=o},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function o(){this.__data__=r?r(null):{},this.size=0}var r=n(7);t.exports=o},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function o(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return c.call(e,t)?e[t]:void 0}var r=n(7),i="__lodash_hash_undefined__",u=Object.prototype,c=u.hasOwnProperty;t.exports=o},function(t,e,n){function o(t){var e=this.__data__;return r?void 0!==e[t]:u.call(e,t)}var r=n(7),i=Object.prototype,u=i.hasOwnProperty;t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}var r=n(7),i="__lodash_hash_undefined__";t.exports=o},function(t,e,n){function o(t){return"function"!=typeof t.constructor||u(t)?{}:r(i(t))}var r=n(46),i=n(23),u=n(25);t.exports=o},function(t,e,n){function o(t,e,n){if(!c(n))return!1;var o=typeof e;return!!("number"==o?i(n)&&u(e,n.length):"string"==o&&e in n)&&r(n[e],t)}var r=n(8),i=n(12),u=n(24),c=n(0);t.exports=o},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function o(t){return!!i&&i in t}var r=n(61),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=o},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function o(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():u.call(e,n,1),--this.size,!0)}var r=n(4),i=Array.prototype,u=i.splice;t.exports=o},function(t,e,n){function o(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}var r=n(4);t.exports=o},function(t,e,n){function o(t){return r(this.__data__,t)>-1}var r=n(4);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(4);t.exports=o},function(t,e,n){function o(){this.size=0,this.__data__={hash:new r,map:new(u||i),string:new r}}var r=n(40),i=n(3),u=n(15);t.exports=o},function(t,e,n){function o(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).get(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).has(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var r=n(6);t.exports=o},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){var o=n(22),r="object"==typeof e&&e&&!e.nodeType&&e,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===r,c=u&&o.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a}).call(e,n(14)(t))},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,c=i(o.length-e,0),a=Array(c);++u<c;)a[u]=o[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=o[u];return s[e]=n(a),r(t,this,s)}}var r=n(17),i=Math.max;t.exports=o},function(t,e,n){var o=n(53),r=n(92),i=r(o);t.exports=i},function(t,e){function n(t){var e=0,n=0;return function(){var u=i(),c=r-(u-n);if(n=u,c>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var o=800,r=16,i=Date.now;t.exports=n},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(3);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<c-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new u(o)}return n.set(t,e),this.size=n.size,this}var r=n(3),i=n(15),u=n(41),c=200;t.exports=o},function(t,e){function n(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,r=o.toString;t.exports=n},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e,n){function o(t){return i(t)&&r(t)}var r=n(12),i=n(2);t.exports=o},function(t,e,n){function o(t){if(!u(t)||r(t)!=c)return!1;var e=i(t);if(null===e)return!0;var n=p.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&f.call(n)==l}var r=n(5),i=n(23),u=n(2),c="[object Object]",a=Function.prototype,s=Object.prototype,f=a.toString,p=s.hasOwnProperty,l=f.call(Object);t.exports=o},function(t,e,n){var o=n(19),r=n(62),i=r(function(t,e,n,r){o(t,e,n,r)});t.exports=i},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function o(t){return r(t,i(t))}var r=n(60),i=n(33);t.exports=o},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])}); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappscan.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappscan.js new file mode 100644 index 0000000..28f7f87 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappscan.js @@ -0,0 +1 @@ +!function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}([function(e,t){e.exports={}},function(e,t,n){"use strict";function a(e,t,n,a,o,r,i,s,c,u){var l,f="function"==typeof e?e.options:e;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(f.components,p)&&(f.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),a&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(f.functional){f._injectStyles=l;var g=f.render;f.render=function(e,t){return l.call(t),g(e,t)}}else{var h=f.beforeCreate;f.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:f}}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,a="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))},n=/^\$|^on|^create|Sync$|Manager$|^pause/,a=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],r=function(e){return(!n.test(e)||"createBLEConnection"===e)&&!~a.indexOf(e)},i=function(n){return function(){for(var a=arguments.length,o=Array(a>1?a-1:0),r=1;r<a;r++)o[r-1]=arguments[r];var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(i.success)||e(i.fail)||e(i.complete)?n.apply(void 0,[i].concat(o)):t(new Promise((function(e,t){n.apply(void 0,[Object.assign({},i,{success:e,fail:t})].concat(o)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}})))}},s=[],c=void 0;function u(e){s.forEach((function(t){return t({origin:c,data:e})}))}var l=o.webview.currentWebview().id,f=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){var t=o.webview.getWebviewById(e);return t&&!t.$processed&&function(e){e.$processed=!0;var t=o.webview.currentWebview().id===e.id,n="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,a=e.id;if(e.postMessage=function(e){n?f.postMessage({data:e,to:t?n:a}):_({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){s.push(e)},e.__uniapp_mask_id){c=e.__uniapp_host;var r=e.__uniapp_mask,i=o.webview.getWebviewById(e.__uniapp_mask_id);i=i.parent()||i;var u=e.show,l=e.hide,d=e.close,p=function(){i.setStyle({mask:r})},g=function(){i.setStyle({mask:"none"})};e.show=function(){p();for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];return u.apply(e,n)},e.hide=function(){g();for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];return l.apply(e,n)},e.close=function(){g();for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];return d.apply(e,n)}}}(t),t}f.onmessage=function(e){e.data.to===l&&u(e.data.data)};var p=weex.requireModule("plus"),g=weex.requireModule("globalEvent"),h=0,v={};g.addEventListener("plusMessage",(function(e){"UniAppJsApi"===e.data.type?m(e.data.id,e.data.data):"UniAppSubNVue"===e.data.type?u(e.data.data,e.data.options):"onNavigationBarButtonTap"===e.data.type?"function"==typeof b&&b(e.data.data):"onNavigationBarSearchInputChanged"===e.data.type?"function"==typeof S&&S(e.data.data):"onNavigationBarSearchInputConfirmed"===e.data.type?"function"==typeof C&&C(e.data.data):"onNavigationBarSearchInputClicked"===e.data.type&&"function"==typeof w&&w(e.data.data)}));var m=function(e,t){var n=v[e];n?(n(t),n.keepAlive||delete v[e]):console.error("callback["+e+"] is undefined")},y=function(t){var n,a,o=t.id,r=t.type,i=t.params;v[o]=(a=function(t){e(n)?n(t):n&&(~t.errMsg.indexOf(":ok")?e(n.success)&&n.success(t):~t.errMsg.indexOf(":fail")&&e(n.fail)&&n.fail(t),e(n.complete)&&n.complete(t))},(e(n=i)||n&&e(n.callback))&&(a.keepAlive=!0),a),p.postMessage({id:o,type:r,params:i},"__uniapp__service")};function _(e){p.postMessage(e,"__uniapp__service")}var A=function(e){return function(t){y({id:h++,type:e,params:t})}},b=void 0,S=void 0,C=void 0,w=void 0;function E(e){b=e}function M(e){S=e}function k(e){C=e}function O(e){w=e}function B(e){return weex.requireModule(e)}var T=weex.requireModule("dom"),I=weex.requireModule("globalEvent"),P=[];function D(e){"function"==typeof e&&(this.isUniAppReady?e():P.push(e))}I.addEventListener("plusMessage",(function(e){"UniAppReady"===e.data.type&&(D.isUniAppReady=!0,P.length&&(P.forEach((function(e){return e()})),P=[]))}));var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x=weex.requireModule("stream"),U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":N(e))?"POST"===t.toUpperCase()&&"application/json"===n.toLowerCase()?JSON.stringify(e):Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"):e},R=weex.requireModule("plusstorage"),V=weex.requireModule("clipboard"),F=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function L(e,t,n){return e[t].apply(e,n)}var j=Object.freeze({loadFontFace:function(t){var n=t.family,a=t.source,o=(t.desc,t.success),r=(t.fail,t.complete);T.addRule("fontFace",{fontFamily:n,src:a.replace(/"/g,"'")});var i={errMsg:"loadFontFace:ok",status:"loaded"};e(o)&&o(i),e(r)&&r(i)},ready:D,request:function(t){var n=t.url,a=t.data,o=t.header,r=t.method,i=void 0===r?"GET":r,s=t.dataType,c=void 0===s?"json":s,u=(t.responseType,t.success),l=t.fail,f=t.complete,d=!1,p=!1,g={};if(o)for(var h in o)p||"content-type"!==h.toLowerCase()?g[h]=o[h]:(p=!0,g["Content-Type"]=o[h]);return"GET"===i&&a&&(n=n+(~n.indexOf("?")?"&"===n.substr(-1)||"?"===n.substr(-1)?"":"&":"?")+U(a)),x.fetch({url:n,method:i,headers:g,type:"json"===c?"json":"text",body:"GET"!==i?U(a,i,g["Content-Type"]):""},(function(t){var n=t.status,a=(t.ok,t.statusText,t.data),o=t.headers,r={};!n||-1===n||d?(r.errMsg="request:fail",e(l)&&l(r)):(r.data=a,r.statusCode=n,r.header=o,e(u)&&u(r)),e(f)&&f(r)})),{abort:function(){d=!0}}},getStorage:function(t){var n=t.key,a=(t.data,t.success),o=t.fail,r=t.complete;R.getItem(n+"__TYPE",(function(t){if("success"===t.result){var i=t.data;R.getItem(n,(function(t){if("success"===t.result){var n=t.data;i&&n?("String"!==i&&(n=JSON.parse(n)),e(a)&&a({errMsg:"getStorage:ok",data:n})):(t.errMsg="setStorage:fail",e(o)&&o(t))}else t.errMsg="setStorage:fail",e(o)&&o(t);e(r)&&r(t)}))}else t.errMsg="setStorage:fail",e(o)&&o(t),e(r)&&r(t)}))},setStorage:function(t){var n=t.key,a=t.data,o=t.success,r=t.fail,i=t.complete,s="String";"object"===(void 0===a?"undefined":N(a))&&(s="Object",a=JSON.stringify(a)),R.setItem(n,a,(function(t){"success"===t.result?R.setItem(n+"__TYPE",s,(function(t){"success"===t.result?e(o)&&o({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(r)&&r(t))})):(t.errMsg="setStorage:fail",e(r)&&r(t)),e(i)&&i(t)}))},removeStorage:function(t){var n=t.key,a=(t.data,t.success),o=t.fail,r=t.complete;R.removeItem(n,(function(t){"success"===t.result?e(a)&&a({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(o)&&o(t)),e(r)&&r(t)})),R.removeItem(n+"__TYPE")},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var n=t.success,a=(t.fail,t.complete);V.getString((function(t){var o={errMsg:"getClipboardData:ok",data:t.data};e(n)&&n(o),e(a)&&a(o)}))},setClipboardData:function(t){var n=t.data,a=t.success,o=(t.fail,t.complete),r={errMsg:"setClipboardData:ok"};V.setString(n),e(a)&&a(r),e(o)&&o(r)},onSubNVueMessage:u,getSubNVueById:d,getCurrentSubNVue:function(){return d(o.webview.currentWebview().id)},$on:function(){return L(F(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return L(F(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return L(F(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return L(F(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),$={os:{nvue:!0}},J={};return"undefined"!=typeof Proxy?J=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return _;if("requireNativePlugin"===t)return B;if("onNavigationBarButtonTap"===t)return E;if("onNavigationBarSearchInputChanged"===t)return M;if("onNavigationBarSearchInputConfirmed"===t)return k;if("onNavigationBarSearchInputClicked"===t)return O;var n=j[t];return n||(n=A(t)),r(t)?i(n):n}}):(Object.keys($).forEach((function(e){J[e]=$[e]})),J.postMessage=_,J.requireNativePlugin=B,J.onNavigationBarButtonTap=E,J.onNavigationBarSearchInputChanged=M,J.onNavigationBarSearchInputConfirmed=k,J.onNavigationBarSearchInputClicked=O,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach((function(e){var t=j[e];t||(t=A(e)),r(e)?J[e]=i(t):J[e]=t}))),J};var o=new WeexPlus(weex);t.weexPlus=o;var r=a(weex,o,BroadcastChannel);t.default=r},function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(4).default,Vue.prototype.__$appStyle__)},function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t.default=o.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var t=this,n=e.webview.currentWebview().extras||{},a=n.from,o=(n.callback,n.runtime),r=n.data,i=void 0===r?{}:r,s=n.useGlobalEvent;this.__from=a,this.__runtime=o,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(i)),e.key.addEventListener("backbutton",(function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")}));var c=this,u=function(e){var t=e.data&&e.data.__message;t&&c.__onMessageCallback&&c.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",u):new BroadcastChannel(this.__page).onmessage=u},postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:t,keep:n}})),o=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)e.webview.postMessageToUniNView(a,o);else{var r=new BroadcastChannel(o);r.postMessage(a)}else{var i=e.webview.getWebviewById(o);i&&i.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:a}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=n}).call(this,n(2).weexPlus)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"瀹屾垚",cancel:"鍙栨秷"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var t=(e.webview.currentWebview().extras||{}).data||{};if(t.messages&&(this.localization.messages=t.messages),t.locale)this.locale=t.locale.toLowerCase();else{var n=e.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),a=n[1];a&&(n[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[a]||a),n.length=n.length>2?2:n.length,this.locale=n.join("-")}}},localize:function(e){var t=this,n=this.locale,a=n.split("-")[0],o=this.fallbackLocale,r=function(e){return Object.assign({},t.localization[e],(t.localizationTemplate||{})[e])};return r("messages")[e]||r(n)[e]||r(a)[e]||r(o)[e]||e}}};t.default=n}).call(this,n(2).weexPlus)},,,function(e,t,n){"use strict";var a=n(33),o=n(18),r=n(1);var i=Object(r.a)(o.default,a.b,a.c,!1,null,null,"24f4db1e",!1,a.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(38).default,this.options.style):Object.assign(this.options.style,n(38).default)}).call(i),t.default=i.exports},,,,,,,,,function(e,t,n){"use strict";var a=n(19),o=n.n(a);t.default=o.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=i(n(5)),r=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=e.barcode,u={qrCode:[c.QR,c.AZTEC,c.MAXICODE],barCode:[c.EAN13,c.EAN8,c.UPCA,c.UPCE,c.CODABAR,c.CODE128,c.CODE39,c.CODE93,c.ITF,c.RSS14,c.RSSEXPANDED],datamatrix:[c.DATAMATRIX],pdf417:[c.PDF417]},l=(s(a={},c.QR,"QR_CODE"),s(a,c.EAN13,"EAN_13"),s(a,c.EAN8,"EAN_8"),s(a,c.DATAMATRIX,"DATA_MATRIX"),s(a,c.UPCA,"UPC_A"),s(a,c.UPCE,"UPC_E"),s(a,c.CODABAR,"CODABAR"),s(a,c.CODE39,"CODE_39"),s(a,c.CODE93,"CODE_93"),s(a,c.CODE128,"CODE_128"),s(a,c.ITF,"CODE_25"),s(a,c.PDF417,"PDF_417"),s(a,c.AZTEC,"AZTEC"),s(a,c.RSS14,"RSS_14"),s(a,c.RSSEXPANDED,"RSSEXPANDED"),a),f={mixins:[o.default,r.default],data:{filters:[0,2,1],backgroud:"#000000",frameColor:"#118ce9",scanbarColor:"#118ce9",enabledFlash:!1,flashImage0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=",flashImage1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==",autoDecodeCharSet:!1,autoZoom:!0,localizationTemplate:{en:{fail:"Recognition failure","flash.on":"Tap to turn light on","flash.off":"Tap to turn light off"},zh:{fail:"璇嗗埆澶辫触","flash.on":"杞昏Е鐓т寒","flash.off":"杞昏Е鍏抽棴"}}},onLoad:function(){var e=this,t=this.data,n=t.scanType;this.autoDecodeCharSet=t.autoDecodeCharSet,this.autoZoom=t.autoZoom;var a=[];Array.isArray(n)&&n.length&&n.forEach((function(e){var t=u[e];t&&(a=a.concat(t))})),a.length||(a=a.concat(u.qrCode).concat(u.barCode).concat(u.datamatrix).concat(u.pdf417)),this.filters=a,this.onMessage((function(t){e.gallery()}))},onUnload:function(){this.cancel()},onReady:function(){var e=this;setTimeout((function(){e.cancel(),e.start()}),50)},methods:{start:function(){this.$refs.barcode.start({sound:this.data.sound})},scan:function(t){var n=this;c.scan(t,(function(e,t,a,o){n.scanSuccess(e,t,a,o)}),(function(){e.nativeUI.toast(n.localize("fail"))}),this.filters,this.autoDecodeCharSet)},cancel:function(){this.$refs.barcode.cancel()},gallery:function(){var t=this;e.gallery.pick((function(e){t.scan(e)}),(function(n){n.code!==("android"===weex.config.env.platform.toLowerCase()?12:-2)&&e.nativeUI.toast(t.localize("fail"))}),{multiple:!1,system:!1,filename:"_doc/uniapp_temp/gallery/",permissionAlert:!0})},onmarked:function(e){var t=e.detail;this.scanSuccess(t.code,t.message,t.file,t.charSet)},scanSuccess:function(e,t,n,a){this.postMessage({event:"marked",detail:{scanType:l[e],result:t,charSet:a||"utf8",path:n||""}})},onerror:function(e){this.postMessage({event:"fail",message:JSON.stringify(e)})},setFlash:function(){this.enabledFlash=!this.enabledFlash,this.$refs.barcode.setFlash(this.enabledFlash)}}};t.default=f}).call(this,n(2).weexPlus)},function(e,t){e.exports={content:{flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#000000"},barcode:{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:1},"set-flash":{alignItems:"center",justifyContent:"center",transform:"translateY(80px)",zIndex:2},"image-flash":{width:"26",height:"26",marginBottom:"2"},"image-flash-text":{fontSize:"10",color:"#FFFFFF"}}},,,,,,,,,,,,,function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["content"]},[n("barcode",{ref:"barcode",staticClass:["barcode"],attrs:{autostart:"false",backgroud:e.backgroud,frameColor:e.frameColor,scanbarColor:e.scanbarColor,filters:e.filters,autoDecodeCharset:e.autoDecodeCharSet,autoZoom:e.autoZoom},on:{marked:e.onmarked,error:e.onerror}}),n("view",{staticClass:["set-flash"],on:{click:e.setFlash}},[n("u-image",{staticClass:["image-flash"],attrs:{src:e.enabledFlash?e.flashImage1:e.flashImage0,resize:"stretch"}}),n("u-text",{staticClass:["image-flash-text"]},[e._v(e._s(e.enabledFlash?e.localize("flash.off"):e.localize("flash.on")))])],1)],1)])},o=[];n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}))},,,,,function(e,t,n){"use strict";n.r(t);var a=n(20),o=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t.default=o.a},,,,,function(e,t,n){"use strict";n.r(t);n(3);var a=n(9);a.default.mpType="page",a.default.route="template/__uniappscan",a.default.el="#root",new Vue(a.default)}]); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappsuccess.png b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappsuccess.png new file mode 100644 index 0000000..c1f5bd7 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappsuccess.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappview.html b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappview.html new file mode 100644 index 0000000..b010c70 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/__uniappview.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html lang="zh-CN"> + + <head> + <meta charset="UTF-8" /> + <script> + var __UniViewStartTime__ = Date.now(); + var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || + CSS.supports('top: constant(a)')) + document.write( + '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + + (coverSupport ? ', viewport-fit=cover' : '') + '" />') + </script> + <title>View</title> + <link rel="stylesheet" href="view.css" /> + </head> + + <body> + <div id="app"></div> + <script src="__uniappes6.js"></script> + <script src="view.umd.min.js"></script> + <script src="app-view.js"></script> + </body> + +</html> diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config-service.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config-service.js new file mode 100644 index 0000000..69bfda7 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config-service.js @@ -0,0 +1,8 @@ + +var isReady=false;var onReadyCallbacks=[]; +var isServiceReady=false;var onServiceReadyCallbacks=[]; +var __uniConfig = {"pages":["pages/start/index","pages/login/index","pages/home/index","pages/setting/host","pages/print/bluetoothConnection","pages/online/index","pages/bind/index","pages/bindContaniner/index","pages/sortingSearch/index","pages/replenishMent/index","pages/inAndOutBound/index","pages/exceptionHandle/index","pages/exceptionHandle/modules/exceptionPlace","pages/exceptionHandle/modules/materialInfo","pages/emptyOut/index","pages/containerHandle/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"闆呭厠LES","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8","navigationStyle":"custom"},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"wc3Pad","compilerVersion":"3.8.7","entryPagePath":"pages/start/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; +var __uniRoutes = [{"path":"/pages/start/index","meta":{"isQuit":true},"window":{}},{"path":"/pages/login/index","meta":{},"window":{}},{"path":"/pages/home/index","meta":{},"window":{}},{"path":"/pages/setting/host","meta":{},"window":{}},{"path":"/pages/print/bluetoothConnection","meta":{},"window":{}},{"path":"/pages/online/index","meta":{},"window":{}},{"path":"/pages/bind/index","meta":{},"window":{}},{"path":"/pages/bindContaniner/index","meta":{},"window":{}},{"path":"/pages/sortingSearch/index","meta":{},"window":{}},{"path":"/pages/replenishMent/index","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/inAndOutBound/index","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/exceptionHandle/index","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/exceptionHandle/modules/exceptionPlace","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/exceptionHandle/modules/materialInfo","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/emptyOut/index","meta":{},"window":{}},{"path":"/pages/containerHandle/index","meta":{},"window":{}}]; +__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:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config.js new file mode 100644 index 0000000..d899cd3 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-config.js @@ -0,0 +1 @@ +(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-service.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-service.js new file mode 100644 index 0000000..a7b5621 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-service.js @@ -0,0 +1,17 @@ +(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{0:function(t,e){},"008c":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","page-header-compontent"),class:t._$s(0,"c",[t.gradient&&"default"===t.gradientValue?"gradient-default":""]),style:t._$s(0,"s",{color:t.color,backgroundColor:t.gradient?"transparent":t.backgroundColor?t.backgroundColor:"transparent",backgroundImage:t.gradient&&"default"!==t.gradientValue?t.gradientValue:"none"}),attrs:{_i:0}},[t._$s(1,"i",t.$scopedSlots.left)?n("view",{staticClass:t._$s(1,"sc","left-action"),attrs:{_i:1},on:{click:function(e){return e.stopPropagation(),t.onAsideClick("left")}}},[t._t("left",null,{_i:2})],2):t._e(),n("view",{staticClass:t._$s(3,"sc","title"),attrs:{_i:3}},[t._t("default",null,{_i:4})],2),t._$s(5,"i",t.$scopedSlots.right)?n("view",{staticClass:t._$s(5,"sc","right-action"),attrs:{_i:5},on:{click:function(e){return e.stopPropagation(),t.onAsideClick("right")}}},[t._t("right",null,{_i:6})],2):t._e()])},i=[]},"00bf":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u7ec4\u6258",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("10-"+i,"sc","bottom-btns-row"),attrs:{_i:"10-"+i}},[[n("div",{staticClass:r._$s("12-"+i,"sc","btn-frame"),attrs:{_i:"12-"+i}},[n("u-button",{attrs:{disabled:t.disabledBind,type:"primary",text:"\u7ec4 \u6258",_i:"13-"+i},on:{click:t.onSubmit}})],1),n("div",{staticClass:r._$s("14-"+i,"sc","btn-frame"),attrs:{_i:"14-"+i}},[n("u-button",{attrs:{disabled:t.disabledBound,type:"primary",text:"\u7ec4\u6258\u5165\u5e93",_i:"15-"+i},on:{click:t.addInBound}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("scan-input-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{label:"\u6258\u76d8\u7f16\u7801",msg:t.msg.containter,"msg-type":t.msgType.containter,_i:4},on:{search:t.onSearchContainter,clear:t.onClearContainter},model:{value:t._$s(4,"v-model",t.form.containterCode),callback:function(e){t.$set(t.form,"containterCode",e)},expression:"form.containterCode"}}),n("scan-input-form-item",{staticClass:t._$s(5,"sc","forma-item"),attrs:{label:"\u7a7a\u6258\u7f16\u7801",msg:t.msg.material,"msg-type":t.msgType.material,d:!0,_i:5},on:{search:t.onSearchMaterial,clear:t.onClearMaterial},model:{value:t._$s(5,"v-model",t.form.materialNo),callback:function(e){t.$set(t.form,"materialNo",e)},expression:"form.materialNo"}}),n("scan-input-form-item",{staticClass:t._$s(6,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u9009\u62e9\u5e93\u4f4d",_i:6},nativeOn:{click:function(e){t.visible=!0}},model:{value:t._$s(6,"v-model",t.form.site),callback:function(e){t.$set(t.form,"site",e)},expression:"form.site"}}),n("EasyPicker",{attrs:{visible:t.visible,list:t.placeList.filter((function(t){return"ZDCR"!=t.placeNo})),labelField:"placeNo",valueField:"placeNo",_i:7},on:{"update:visible":function(e){t.visible=e},select:t.getSiteVal}}),n("materialList",{attrs:{contaninerData:t.contaninerData,_i:8},on:{delContainer:t.delContainer}})],1)],1):t._e()])},a=[]},"00ce":function(t,e,n){"use strict";var r=SyntaxError,i=Function,a=TypeError,o=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(P){s=null}var u=function(){throw new a},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(e){return u}}}():u,l=n("5156")(),f=Object.getPrototypeOf||function(t){return t.__proto__},d={},p="undefined"===typeof Uint8Array?void 0:f(Uint8Array),h={"%AggregateError%":"undefined"===typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"===typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n("0f7c"),g=n("a0d3"),y=m.call(Function.call,Array.prototype.concat),b=m.call(Function.apply,Array.prototype.splice),_=m.call(Function.call,String.prototype.replace),w=m.call(Function.call,String.prototype.slice),x=m.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(t){var e=w(t,0,1),n=w(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return _(t,S,(function(t,e,n,r){i[i.length]=n?_(r,C,"$1"):e||t})),i},O=function(t,e){var n,i=t;if(g(v,i)&&(n=v[i],i="%"+n[0]+"%"),g(h,i)){var s=h[i];if(s===d&&(s=function t(e){var n;if("%AsyncFunction%"===e)n=o("async function () {}");else if("%GeneratorFunction%"===e)n=o("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=o("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=f(i.prototype))}return h[e]=n,n}(i)),"undefined"===typeof s&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(t),i=n.length>0?n[0]:"",o=O("%"+i+"%",e),u=o.name,c=o.value,l=!1,f=o.alias;f&&(i=f[0],b(n,y([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var v=n[d],m=w(v,0,1),_=w(v,-1);if(('"'===m||"'"===m||"`"===m||'"'===_||"'"===_||"`"===_)&&m!==_)throw new r("property names with quotes must have matching quotes");if("constructor"!==v&&p||(l=!0),i+="."+v,u="%"+i+"%",g(h,u))c=h[u];else if(null!=c){if(!(v in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var S=s(c,v);p=!!S,c=p&&"get"in S&&!("originalValue"in S.get)?S.get:c[v]}else p=g(c,v),c=c[v];p&&!l&&(h[u]=c)}}return c}},"024a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{name:{type:String,default:uni.$u.props.icon.name},color:{type:String,default:uni.$u.props.icon.color},size:{type:[String,Number],default:uni.$u.props.icon.size},bold:{type:Boolean,default:uni.$u.props.icon.bold},index:{type:[String,Number],default:uni.$u.props.icon.index},hoverClass:{type:String,default:uni.$u.props.icon.hoverClass},customPrefix:{type:String,default:uni.$u.props.icon.customPrefix},label:{type:[String,Number],default:uni.$u.props.icon.label},labelPos:{type:String,default:uni.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:uni.$u.props.icon.labelSize},labelColor:{type:String,default:uni.$u.props.icon.labelColor},space:{type:[String,Number],default:uni.$u.props.icon.space},imgMode:{type:String,default:uni.$u.props.icon.imgMode},width:{type:[String,Number],default:uni.$u.props.icon.width},height:{type:[String,Number],default:uni.$u.props.icon.height},top:{type:[String,Number],default:uni.$u.props.icon.top},stop:{type:Boolean,default:uni.$u.props.icon.stop}}};e.default=r},"025b":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uTransition:n("b12b").default},i=function(){var t=this.$createElement,e=this._self._c||t;return e("u-transition",{attrs:{show:this.show,"custom-class":"u-overlay",duration:this.duration,"custom-style":this.overlayStyle,_i:0},on:{click:this.clickHandler}},[this._t("default",null,{_i:1})],2)},a=[]},"0289":function(t,e,n){"use strict";n.r(e);var r=n("3130"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"049f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={cellGroup:{title:"",border:!0,customStyle:{}}}},"0504":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","radio-input-form-item-component"),attrs:{_i:0}},[t._$s(1,"i",t.label)?n("view",{staticClass:t._$s(1,"sc","p-form-label"),attrs:{_i:1}},[t._$s(2,"i",t.required)?n("text",{staticClass:t._$s(2,"sc","required-tag"),attrs:{_i:2}}):t._e(),t._v(t._$s(1,"t1-0",t._s(t.label)))]):t._e(),n("view",{staticClass:t._$s(3,"sc","input-row"),attrs:{_i:3}},[t._$s(4,"i",t.disabled)?n("view",{staticClass:t._$s(4,"sc","mask"),attrs:{_i:4},on:{click:function(t){t.stopPropagation()}}}):t._e(),n("view",{staticClass:t._$s(5,"sc","input-view"),attrs:{_i:5}},[n("radio-group",{attrs:{_i:6},on:{change:t.change},model:{value:t._$s(6,"v-model",t.innerValue),callback:function(e){t.innerValue=e},expression:"innerValue"}},t._l(t._$s(7,"f",{forItems:t.options}),(function(e,r,i,a){return n("radio",{key:t._$s(7,"f",{forIndex:i,key:e.value}),attrs:{value:t._$s("7-"+a,"a-value",e.value),shape:t._$s("7-"+a,"a-shape",t.shape),_i:"7-"+a}},[t._v(t._$s("7-"+a,"t0-0",t._s(e.label)))])})),0)])])])},i=[]},"05aa":function(t,e,n){"use strict";n.r(e);var r=n("afa1"),i=n("714d");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"0c766f49",null,!1,r["a"],void 0);e["default"]=s.exports},"05ad":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={gap:{bgColor:"transparent",height:20,marginTop:0,marginBottom:0,customStyle:{}}}},"0676":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"06f1":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("c591")),a={components:{DefaultHeaderPageLayout:i.default},data:function(){return{}},methods:{}};e.default=a},"0799":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("733c")),a={name:"EasySelectFormItemCompontent",components:{EasyPicker:i.default},emits:["input","select","clear"],props:{label:{type:String,default:""},placeholder:{type:String,default:"\u8bf7\u9009\u62e9..."},msg:{type:String,default:""},msgType:{type:String,default:"error"},value:{type:[String,Boolean,Number,null],default:null},list:{type:Array,default:function(){return[]}},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},required:{type:Boolean,default:!1}},data:function(){return{innerValue:"",innerLabel:"",pickerVisible:!1,initFlag:!1}},watch:{value:function(t,e){t!==this.innerValue&&(this.innerValue=t)},innerValue:function(t,e){t!==this.value&&this.$emit("input",t),t!==e&&this.setLabelValue()},list:function(){this.setInitData()}},methods:{onOpenPicker:function(){if(this.list.length<=0)return!1;this.pickerVisible=!0},onPickerSelect:function(t,e,n){if(t===this.innerValue)return!1;this.innerValue=t,this.$emit("select",t,e,n)},setLabelValue:function(){for(var t=!0,e=0;e<this.list.length;e++)if(this.isBaseItem(this.list[e])){if(this.list[e]===this.innerValue){this.innerLabel=this.list[e],t=!1;break}}else if(this.list[e][this.valueField]===this.innerValue){this.innerLabel=this.list[e][this.labelField],t=!1;break}t&&(this.innerLabel=this.innerValue)},isBaseItem:function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||void 0===t||null===t},setInitData:function(){if(this.innerValue=this.value,1===this.list.length){if(!this.initFlag){this.initFlag=!0;var t=null;t=this.isBaseItem(this.list[0])?this.list[0]:this.list[0][this.valueField],this.innerValue||(this.innerValue=t)}}else this.setLabelValue()},onClear:function(){this.innerValue=null,this.$emit("clear")}},created:function(){this.setInitData()}};e.default=a},"07d4":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("d59a")),a=r(n("8ae4")),o={print:function(t,e,n,r){var i=t.getters["print/getBlueInfo"];return i?this.sendBlueToothData(t,e,i,n,r):new Promise((function(t){uni.navigateTo({url:a.default.path.bluetooth}),t()}))},sendBlueToothData:function(t,e,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:576,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:400;return new Promise((function(s,u){uni.showLoading({title:"\u84dd\u7259\u6570\u636e\u4f20\u8f93\u4e2d",mask:!0});var c=new i.default;c.label_set_page(a,o),e.forEach((function(t){switch(t.type){case"line":c.drawLine(t.width,t.x1,t.y1,t.x2,t.y2);break;case"text":c.drawText(t.x,t.y,t.text,t.size,t.rotate,t.bold,t.underline,t.reverse);break;case"qr":c.drawQrCode(t.x,t.y,t.text,0,t.width,t.level);break;case"bar":c.drawBarCode(t.x,t.y,t.text,t.barType,0,t.width,t.height);break;default:break}})),c.label_print(0,1);var l=c.buffer();r.bufferTransmission(l,t,n).then((function(t){s(t)})).catch((function(t){u(t)}))}))},bufferTransmission:function(e,n,r){var i=this;return new Promise((function(a,o){void 0===r&&(r=n.getters["print/getBlueInfo"]);var s=r.deviceId,u=r.serviceId,c=r.characteristicId,l=e.byteLength,f=Math.trunc(l/20);l%20!==0&&(f+=1),t("log","\u5171".concat(l,"\u5b57\u8282\uff0c\u5206").concat(f,"\u5305")," at pages/print/bluePrint.js:76");for(var d=setTimeout((function(){var t="\u84dd\u7259\u6570\u636e\u4f20\u8f93\u8d85\u65f6\uff0c".concat(d/1e3,"\u79d2\u5185\u65e0\u54cd\u5e94\uff01");uni.hideLoading(),i.researchConfirm(t),o(t)}),3e4),p=[],h=function(n,r){var h=e.slice(n,n+20<=l?n+20:l);setTimeout((function(){t("log","\u7b2c".concat(r+1,"\u5206\u5305\u53d1\u9001\uff0c\u5f00\u59cb\u5b57\u8282").concat(n)," at pages/print/bluePrint.js:104"),i._writeBLECharacteristicValue(s,u,c,h,(function(e){if(t("log","\u7b2c".concat(r+1,"\u8fd4\u56de").concat(e)," at pages/print/bluePrint.js:106"),e&&p.push(r+1),r===f-1){uni.hideLoading();var n=p.length,s="\u84dd\u7259\u4f20\u8f93\u5206".concat(f,"\u5305\uff0c\u6210\u529f\u4f20\u8f93").concat(n,"\u4e2a\u5305");s+=n?"\uff0c\u4f9d\u6b21\u4e3a\uff1a".concat(p.join(","),"\u3002"):"\u3002",clearTimeout(d),0!==f&&n===f&&function(t){for(var e=!0,n=0;n<t.length-1;n++)if(t[n]>=t[n+1]){e=!1;break}return e}(p)?(uni.hideLoading(),i.alert(s),a()):(uni.hideLoading(),i.researchConfirm(s),o(s))}}))}),15*r)},v=0,m=0;v<l;v+=20,m++)h(v,m)}))},_writeBLECharacteristicValue:function(t,e,n,r,i){uni.writeBLECharacteristicValue({deviceId:t,serviceId:e,characteristicId:n,value:r,success:function(t){i&&i(!0)},fail:function(t){i&&i(!1)}})},alert:function(t){uni.showModal({title:"\u7cfb\u7edf\u63d0\u793a",content:t,showCancel:!1,confirmText:"\u786e \u5b9a"})},researchConfirm:function(t){uni.showModal({title:"\u7cfb\u7edf\u63d0\u793a",content:t,cancelText:"\u53d6 \u6d88",confirmText:"\u91cd\u7f6e\u84dd\u7259",success:function(t){t.confirm&&uni.navigateTo({url:a.default.path.bluetooth+"?again=1"})}})},getBlueToothes:function(){return new Promise((function(t,e){uni.showLoading({title:"\u542f\u52a8\u84dd\u7259\u529f\u80fd",mask:!0}),uni.getSystemInfo({success:function(n){if("web"!==n.uniPlatform)try{uni.openBluetoothAdapter({success:function(){uni.showLoading({title:"\u5f00\u59cb\u641c\u7d22\u84dd\u7259",mask:!0}),uni.startBluetoothDevicesDiscovery({success:function(){uni.showLoading({title:"\u641c\u7d22\u4e2d...",mask:!0});var n=[];uni.onBluetoothDeviceFound((function(t){t&&t.devices&&t.devices.length>0&&t.devices.forEach((function(t){if(t.name){for(var e=!0,r=0;r<n.length;r++)if(t.deviceId===n[r].deviceId){e=!1;break}e&&n.push(t)}}))})),setTimeout((function(){uni.stopBluetoothDevicesDiscovery({success:function(){uni.hideLoading(),t(n)},fail:function(){uni.hideLoading(),e("\u5173\u95ed\u84dd\u7259\u641c\u7d22\u5931\u8d25")}})}),5e3)},fail:function(){uni.hideLoading(),e("\u5f00\u542f\u84dd\u7259\u641c\u7d22\u5931\u8d25")}})},fail:function(){uni.hideLoading(),e("\u84dd\u7259\u6a21\u5757\u542f\u52a8\u5931\u8d25")}})}catch(r){uni.hideLoading(),e(r)}else uni.hideLoading(),e("Web\u65e0\u6548\uff01")},fail:function(t){uni.hideLoading(),e(t)}})}))},reGetBlueToothes:function(t){var e=this;return new Promise((function(t,n){uni.closeBluetoothAdapter({complete:function(){e.getBlueToothes().then((function(e){t(e)})).catch((function(t){n(t)}))}})}))},connect:function(t,e){return new Promise((function(n,r){uni.showLoading({title:"\u8fde\u63a5\u4e2d...",mask:!0}),uni.closeBLEConnection({deviceId:e,complete:function(){uni.createBLEConnection({deviceId:e,success:function(){t.commit("print/setDeviceId",e),uni.showLoading({title:"\u83b7\u53d6\u84dd\u7259\u670d\u52a1",mask:!0}),setTimeout((function(){uni.getBLEDeviceServices({deviceId:e,success:function(i){for(var a="",o=0;o<i.services.length;o++)if(-1!==i.services[o].uuid.indexOf("FF00")){a=i.services[o].uuid;break}a?(uni.showLoading({title:"\u83b7\u53d6\u670d\u52a1\u7279\u5f81\u503c",mask:!0}),uni.getBLEDeviceCharacteristics({deviceId:e,serviceId:a,success:function(i){for(var o="",s=0;s<i.characteristics.length;s++)if(-1!==i.characteristics[s].uuid.indexOf("FF02")){o=i.characteristics[s].uuid;break}if(o){var u={deviceId:e,serviceId:a,characteristicId:o};t.commit("print/setBlueInfo",u),uni.showToast({title:"\u84dd\u7259\u8fde\u63a5\u6210\u529f",icon:"success"}),uni.hideLoading(),n()}else uni.hideLoading(),r("\u83b7\u53d6\u84dd\u7259\u8bbe\u5907".concat(e,"\u7684\u670d\u52a1\u7279\u5f81\u503c\u4e0d\u6b63\u786e"))},fail:function(){uni.hideLoading(),r("\u83b7\u53d6\u84dd\u7259\u8bbe\u5907".concat(e,"\u7684\u670d\u52a1\u7279\u5f81\u503c\u5931\u8d25"))}})):(uni.hideLoading(),r("\u83b7\u53d6\u84dd\u7259\u8bbe\u5907".concat(e,"\u7684\u670d\u52a1\u4e0d\u6b63\u786e")))},fail:function(){uni.hideLoading(),r("\u83b7\u53d6\u84dd\u7259\u8bbe\u5907".concat(e,"\u7684\u670d\u52a1\u5931\u8d25"))}})}),1200)},fail:function(){uni.hideLoading(),r("\u521b\u5efa\u4e0e\u84dd\u7259\u8bbe\u5907".concat(e,"\u7684\u8fde\u63a5\u5931\u8d25"))}})}})}))}};e.default=o}).call(this,n("0de9")["default"])},"080b":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("6fe2")),a={name:"u-loading-icon",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}},computed:{otherBorderColor:function(){var t=uni.$u.colorGradient(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:t:"transparent"}},watch:{show:function(t){}},mounted:function(){this.init()},methods:{init:function(){var t=this;setTimeout((function(){t.show&&t.addEventListenerToWebview()}),20)},addEventListenerToWebview:function(){var t=this,e=getCurrentPages(),n=e[e.length-1],r=n.$getAppWebview();r.addEventListener("hide",(function(){t.webviewHide=!0})),r.addEventListener("show",(function(){t.webviewHide=!1}))}}};e.default=a},"082c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.addAGVTask=function(t){return(0,i.default)({url:"/api/wcsToWms/addAGVTask",method:"post",data:t})},e.addInBound=function(t){return(0,i.default)({url:"/api/inAndOutOrder/addInBound",method:"post",data:t})},e.addInVirtualPlace=function(t){return(0,i.default)({url:"/api/inAndOutOrder/addInVirtualPlace",method:"post",data:t})},e.bindMaterialContainer=function(t){return(0,i.default)({url:"/api/materialContainer/add",method:"post",data:t})},e.getForContainerCode=function(t){return(0,i.default)({url:"/api/materialContainer/getForContainerNo?".concat(a.default.stringify(t)),method:"get"})},e.getForEmptyContainerNo=function(t){return(0,i.default)({url:"/api/materialContainer/getForEmptyContainerNo?".concat(a.default.stringify(t)),method:"get"})},e.getForMaterialNo=function(t){return(0,i.default)({url:"/api/material/getForMaterialNo?".concat(a.default.stringify(t)),method:"get"})};var i=r(n("98af")),a=r(n("4328"))},"0901":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a47e")),a=r(n("07d4")),o={name:"bluetoothPrintConnectionPage",components:{HeaderPageLayout:i.default},data:function(){return{initAgain:!1,myBluetoothes:[]}},methods:{onHeaderClick:function(t){"left"===t&&uni.redirectTo({url:this.$config.path.login})},search:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n="getBlueToothes";e&&(n="reGetBlueToothes"),a.default[n](this.$store).then((function(e){t.myBluetoothes=e})).catch((function(t){"string"!==typeof t&&(t="\u83b7\u53d6\u84dd\u7259\u8bbe\u5907\u5217\u8868\u5931\u8d25"),a.default.alert(t)}))},research:function(){this.myBluetoothes=[],this.search(!0)},onConnect:function(t){a.default.connect(this.$store,t).then((function(){uni.navigateBack()})).catch((function(t){"string"!==typeof t&&(t="\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\u5931\u8d25"),a.default.alert(t)}))}},onLoad:function(t){"1"===t.again?this.initAgain=!0:this.initAgain=!1},onReady:function(){this.search(this.initAgain)}};e.default=o},"0ad5":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,a=r(n("9523")),o=r(n("25fe")),s=r(n("11ae")),u=r(n("3b67")),c=(i={name:"u-swipe-action-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,s.default,o.default]},(0,a.default)(i,"mixins",[uni.$u.mpMixin,uni.$u.mixin,s.default,o.default,u.default]),(0,a.default)(i,"data",(function(){return{size:{},parentData:{autoClose:!0},status:"close"}})),(0,a.default)(i,"watch",{wxsInit:function(t,e){this.queryRect()}}),(0,a.default)(i,"computed",{wxsInit:function(){return[this.disabled,this.autoClose,this.threshold,this.options,this.duration]}}),(0,a.default)(i,"mounted",(function(){this.init()})),(0,a.default)(i,"methods",{init:function(){var t=this;this.updateParentData(),uni.$u.sleep().then((function(){t.queryRect()}))},updateParentData:function(){this.getParentData("u-swipe-action")},queryRect:function(){var t=this;this.$uGetRect(".u-swipe-action-item__right__button",!0).then((function(e){t.size={buttons:e,show:t.show,disabled:t.disabled,threshold:t.threshold,duration:t.duration}}))},buttonClickHandler:function(t,e){this.$emit("click",{index:e,name:this.name})}}),i);e.default=c},"0ba4":function(t,e,n){"use strict";n.r(e);var r=n("3a22"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"0c3a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{show:{type:Boolean,default:uni.$u.props.overlay.show},zIndex:{type:[String,Number],default:uni.$u.props.overlay.zIndex},duration:{type:[String,Number],default:uni.$u.props.overlay.duration},opacity:{type:[String,Number],default:uni.$u.props.overlay.opacity}}};e.default=r},"0c92":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.inited)?n("view",{ref:"u-transition",staticClass:t._$s(0,"sc","u-transition"),class:t._$s(0,"c",t.classes),style:t._$s(0,"s",[t.mergeStyle]),attrs:{_i:0},on:{touchmove:t.noop,click:t.clickHandler}},[t._t("default",null,{_i:1})],2):t._e()},i=[]},"0c92b":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7037")),a=function(){function e(t,e){return null!=e&&t instanceof e}var n,r,a;try{n=Map}catch(c){n=function(){}}try{r=Set}catch(c){r=function(){}}try{a=Promise}catch(c){a=function(){}}function o(s,c,l,f,d){"object"===(0,i.default)(c)&&(l=c.depth,f=c.prototype,d=c.includeNonEnumerable,c=c.circular);var p=[],h=[],v="undefined"!=typeof t;return"undefined"==typeof c&&(c=!0),"undefined"==typeof l&&(l=1/0),function s(l,m){if(null===l)return null;if(0===m)return l;var g,y;if("object"!=(0,i.default)(l))return l;if(e(l,n))g=new n;else if(e(l,r))g=new r;else if(e(l,a))g=new a((function(t,e){l.then((function(e){t(s(e,m-1))}),(function(t){e(s(t,m-1))}))}));else if(o.__isArray(l))g=[];else if(o.__isRegExp(l))g=new RegExp(l.source,u(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(o.__isDate(l))g=new Date(l.getTime());else{if(v&&t.isBuffer(l))return t.from?g=t.from(l):(g=new t(l.length),l.copy(g)),g;e(l,Error)?g=Object.create(l):"undefined"==typeof f?(y=Object.getPrototypeOf(l),g=Object.create(y)):(g=Object.create(f),y=f)}if(c){var b=p.indexOf(l);if(-1!=b)return h[b];p.push(l),h.push(g)}for(var _ in e(l,n)&&l.forEach((function(t,e){var n=s(e,m-1),r=s(t,m-1);g.set(n,r)})),e(l,r)&&l.forEach((function(t){var e=s(t,m-1);g.add(e)})),l){var w=Object.getOwnPropertyDescriptor(l,_);w&&(g[_]=s(l[_],m-1));try{var x=Object.getOwnPropertyDescriptor(l,_);if("undefined"===x.set)continue;g[_]=s(l[_],m-1)}catch(I){if(I instanceof TypeError)continue;if(I instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(l);for(_=0;_<S.length;_++){var C=S[_],A=Object.getOwnPropertyDescriptor(l,C);(!A||A.enumerable||d)&&(g[C]=s(l[C],m-1),Object.defineProperty(g,C,A))}}if(d){var O=Object.getOwnPropertyNames(l);for(_=0;_<O.length;_++){var P=O[_];A=Object.getOwnPropertyDescriptor(l,P);A&&A.enumerable||(g[P]=s(l[P],m-1),Object.defineProperty(g,P,A))}}return g}(s,l)}function s(t){return Object.prototype.toString.call(t)}function u(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=s,o.__isDate=function(t){return"object"===(0,i.default)(t)&&"[object Date]"===s(t)},o.__isArray=function(t){return"object"===(0,i.default)(t)&&"[object Array]"===s(t)},o.__isRegExp=function(t){return"object"===(0,i.default)(t)&&"[object RegExp]"===s(t)},o.__getRegExpFlags=u,o}(),o=a;e.default=o}).call(this,n("b639").Buffer)},"0cc9":function(t,e,n){"use strict";n.r(e);var r=n("3702"),i=n("0ba4");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"6a43b8ce",null,!1,r["a"],void 0);e["default"]=s.exports},"0cde":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={input:{value:"",type:"text",fixed:!1,disabled:!1,disabledColor:"#f5f7fa",clearable:!1,password:!1,maxlength:-1,placeholder:null,placeholderClass:"input-placeholder",placeholderStyle:"color: #c0c4cc",showWordLimit:!1,confirmType:"done",confirmHold:!1,holdKeyboard:!1,focus:!1,autoBlur:!1,disableDefaultPadding:!1,cursor:-1,cursorSpacing:30,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,inputAlign:"left",fontSize:"15px",color:"#303133",prefixIcon:"",prefixIconStyle:"",suffixIcon:"",suffixIconStyle:"",border:"surround",readonly:!1,shape:"square",formatter:null}}},"0de9":function(t,e,n){"use strict";function r(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(r(e)){case"Function":return"function() { [native code] }";default:return e}}function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t].apply(console,n)}function s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e.shift();if(i())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,a)+"---END:JSON---"}catch(i){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var n=r(t).toUpperCase();t="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+t+"---END:"+n+"---":String(t)}return t})),u="";if(s.length>1){var c=s.pop();u=s.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=s[0];console[o](u)}n.r(e),n.d(e,"log",(function(){return o})),n.d(e,"default",(function(){return s}))},"0f49":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("73e9")),a=r(n("59a2")),o={name:"u--form",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvForm:i.default},created:function(){this.children=[]},methods:{setRules:function(t){this.$refs.uForm.setRules(t)},validate:function(){return this.$refs.uForm.validate()},validateField:function(t,e){return this.$refs.uForm.validateField(t,e)},resetFields:function(){return this.$refs.uForm.resetFields()},clearValidate:function(t){return this.$refs.uForm.clearValidate(t)},setMpData:function(){this.$refs.uForm.children=this.children}}};e.default=o},"0f61":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uPopup:n("b029").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("u-popup",{attrs:{mode:"center",show:t.visible,round:10,safeAreaInsetTop:!0,safeAreaInsetBottom:!0,_i:0},on:{close:t.close}},[n("view",{staticClass:t._$s(1,"sc","picker-box"),style:t._$s(1,"s",{maxHeight:t.maxHeight+"px"}),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","picker-item-group"),attrs:{_i:2}},t._l(t._$s(3,"f",{forItems:t.list}),(function(e,r,i,a){return n("view",{key:t._$s(3,"f",{forIndex:i,key:"picker-item-"+r}),staticClass:t._$s("3-"+a,"sc","picker-item auto-wrap"),attrs:{_i:"3-"+a},on:{click:function(n){return n.stopPropagation(),t.onItemClick(r,e)}}},[t._v(t._$s("3-"+a,"t0-0",t._s("string"===typeof e||"number"===typeof e||"boolean"===typeof e||null===e?e:e[t.labelField])))])})),0)])])},a=[]},"0f7c":function(t,e,n){"use strict";var r=n("688e");t.exports=Function.prototype.bind||r},"10fa":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("165d"));e.default=function(t){return(0,i.default)(t)}},"11ae":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{show:{type:Boolean,default:uni.$u.props.swipeActionItem.show},name:{type:[String,Number],default:uni.$u.props.swipeActionItem.name},disabled:{type:Boolean,default:uni.$u.props.swipeActionItem.disabled},autoClose:{type:Boolean,default:uni.$u.props.swipeActionItem.autoClose},threshold:{type:Number,default:uni.$u.props.swipeActionItem.threshold},options:{type:Array,default:function(){return uni.$u.props.swipeActionItem.rightOptions}},duration:{type:[String,Number],default:uni.$u.props.swipeActionItem.duration}}};e.default=r},"11b0":function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},"147a":function(t,e,n){"use strict";n.r(e);var r=n("d165"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},1499:function(t,e,n){"use strict";n.r(e);var r=n("9162"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"15e2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={indexList:{inactiveColor:"#606266",activeColor:"#5677fc",indexList:function(){return[]},sticky:!0,customNavHeight:0}}},1636:function(t,e,n){"use strict";n.r(e);var r=n("4ea8"),i=n("0289");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3060b6fb",null,!1,r["a"],void 0);e["default"]=s.exports},"163c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={loadmore:{status:"loadmore",bgColor:"transparent",icon:!0,fontSize:14,iconSize:17,color:"#606266",loadingIcon:"spinner",loadmoreText:"\u52a0\u8f7d\u66f4\u591a",loadingText:"\u6b63\u5728\u52a0\u8f7d...",nomoreText:"\u6ca1\u6709\u66f4\u591a\u4e86",isDot:!1,iconColor:"#b7b7b7",marginTop:10,marginBottom:10,height:"auto",line:!1,lineColor:"#E6E8EB",dashed:!1}}},"165d":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("4dbb")),o=r(n("b829")),s=r(n("a0a3")),u=n("c60d");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=function(t,e){var n={};return t.forEach((function(t){(0,u.isUndefined)(e[t])||(n[t]=e[t])})),n};e.default=function(t){return new Promise((function(e,n){var r,i=(0,a.default)((0,o.default)(t.baseURL,t.url),t.params),c={url:i,header:t.header,complete:function(r){t.fullPath=i,r.config=t;try{"string"===typeof r.data&&(r.data=JSON.parse(r.data))}catch(a){}(0,s.default)(e,n,r)}};if("UPLOAD"===t.method){delete c.header["content-type"],delete c.header["Content-Type"];var d={filePath:t.filePath,name:t.name};r=uni.uploadFile(l(l(l({},c),d),f(["files","timeout","formData"],t)))}else if("DOWNLOAD"===t.method)(0,u.isUndefined)(t.timeout)||(c.timeout=t.timeout),r=uni.downloadFile(c);else{r=uni.request(l(l({},c),f(["data","method","timeout","dataType","responseType","sslVerify","firstIpv4"],t)))}t.getTask&&t.getTask(r,t)}))}},1696:function(t,e,n){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},"16e3":function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof t&&t(),setTimeout((function(){r=!1}),e)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof t&&t()}),e))};e.default=i},"16f3":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.palceList=e.orderStatus=void 0;var i=r(n("a34a")),a=r(n("448a")),o=r(n("c973")),s=n("3e34"),u={data:function(){return{OrderStatus:[]}},created:function(){this.getSysEnumData("OrderStatusEnum")},filters:{getStatus:function(t,e){var n=e.filter((function(e){return e.code==t}));return n.length>0?n[0].value:""}},methods:{getSysEnumData:function(e){var n=this;return(0,o.default)(i.default.mark((function r(){var a,o;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,s.getSysEnumData)({enumName:e});case 3:a=r.sent,o=a.data,n.OrderStatus=o,t("log",o," at service/mixins/mixins.js:27"),r.next=12;break;case 9:r.prev=9,r.t0=r["catch"](0),t("log",r.t0," at service/mixins/mixins.js:30");case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))()}}};e.orderStatus=u;var c={data:function(){return{placeList:[]}},methods:{getPalceList:function(e){var n=this;return(0,o.default)(i.default.mark((function r(){var o,u;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,s.getPalceList)(e);case 3:o=r.sent,u=o.result,n.placeList=[].concat((0,a.default)(u),(0,a.default)(n.placeList)),t("log",n.placeList,"result"," at service/mixins/mixins.js:50"),r.next=12;break;case 9:r.prev=9,r.t0=r["catch"](0),t("log",r.t0," at service/mixins/mixins.js:53");case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))()}}};e.palceList=c}).call(this,n("0de9")["default"])},1775:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u5f02\u5e38\u7269\u6599\u5904\u7406",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("8-"+i,"sc","bottom-btns-row"),attrs:{_i:"8-"+i}},[[n("div",{staticClass:r._$s("10-"+i,"sc","btn-frame"),attrs:{_i:"10-"+i}},[n("u-button",{attrs:{disabled:t.disabled,type:"primary",text:"\u81ea\u52a8\u51fa\u5e93",_i:"11-"+i},on:{click:function(e){return t.submint(1)}}})],1),n("div",{staticClass:r._$s("12-"+i,"sc","btn-frame"),attrs:{_i:"12-"+i}},[n("u-button",{attrs:{disabled:t.disabled,type:"primary",text:"\u4eba\u5de5\u51fa\u5e93",_i:"13-"+i},on:{click:function(e){return t.submint(2)}}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("scan-input-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{label:"\u7269\u6599\u552f\u4e00\u7801",msg:t.msg.materialId,"msg-type":t.msgType.materialId,_i:4},on:{search:function(e){return t.onSearchMaterial(t.form.materialId)},clear:t.onClearContainter},model:{value:t._$s(4,"v-model",t.form.materialId),callback:function(e){t.$set(t.form,"materialId",e)},expression:"form.materialId"}}),n("exceptionPlace",{directives:[{name:"show",rawName:"v-show",value:t._$s(5,"v-show",Boolean(t.materialData.materialType)),expression:"_$s(5,'v-show',Boolean(materialData.materialType))"}],attrs:{station:t.form.station,exceptePlace:t.exceptePlace,_i:5},on:{"update:station":function(e){return t.$set(t.form,"station",e)}}}),n("materialInfo",{attrs:{materialData:this.materialData,_i:6}})],1)],1):t._e()])},a=[]},1983:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("6d9d"),a=r(n("733c")),o=r(n("bfc4")),s={props:{exceptePlace:{type:Array,default:function(){return[]}},station:{type:String,default:""}},components:{EasyPicker:a.default,ScanInputFormItem:o.default},data:function(){return{radiolist1:[],radiovalue1:"",visible:!1,options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}]}},methods:{getSiteVal:function(t){this.$emit("update:station",t)},parseDic:i.parseDic,deleteItem:function(){this.$emit("sortInfo",this.sortInfo.materialNo)}}};e.default=s},"1b49":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("f35c")),a={name:"u-status-bar",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},computed:{style:function(){var t={};return t.height=uni.$u.addUnit(uni.$u.sys().statusBarHeight,"px"),t.backgroundColor=this.bgColor,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}};e.default=a},"1c36":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("c1ce")),o=r(n("d21e"));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c={name:"u-transition",data:function(){return{inited:!1,viewStyle:{},status:"",transitionEnded:!1,display:!1,classes:""}},computed:{mergeStyle:function(){var t=this.viewStyle,e=this.customStyle;return u(u({transitionDuration:"".concat(this.duration,"ms"),transitionTimingFunction:this.timingFunction},uni.$u.addStyle(e)),t)}},mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default,a.default],watch:{show:{handler:function(t){t?this.vueEnter():this.vueLeave()},immediate:!0}}};e.default=c},"1c52":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={stepsItem:{title:"",desc:"",iconSize:17,error:!1}}},"1c6a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={flag:!0,headers:n};r.headers.IsDevelopment="false",r.headers.AppVersion=e.getters["system/getVersion"];if(t.needToken){var i=e.getters["user/getToken"];if(i){r.headers.Authorization="Bearer "+i;var a=e.getters["user/getRefreshToken"];a&&(r.headers["X-Authorization"]="Bearer "+a)}else r.flag=!1}return r}},"1fb5":function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),o=r[0],s=r[1],u=new a(function(t,e,n){return 3*(e+n)/4-n}(0,o,s)),l=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(f(t,o,o+16383>s?s:o+16383));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function f(t,e,n){for(var r,i=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(l(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2133:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={subsection:{list:[],current:0,activeColor:"#3c9cff",inactiveColor:"#303133",mode:"button",fontSize:12,bold:!0,bgColor:"#eeeeef",keyName:"name"}}},"21c6":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=n("c60d");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u=function(t,e,n){var r={};return t.forEach((function(t){(0,a.isUndefined)(n[t])?(0,a.isUndefined)(e[t])||(r[t]=e[t]):r[t]=n[t]})),r};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.method||t.method||"GET",r={baseURL:t.baseURL||"",method:n,url:e.url||"",params:e.params||{},custom:s(s({},t.custom||{}),e.custom||{}),header:(0,a.deepMerge)(t.header||{},e.header||{})},i=["getTask","validateStatus"];if(r=s(s({},r),u(i,t,e)),"DOWNLOAD"===n)(0,a.isUndefined)(e.timeout)?(0,a.isUndefined)(t.timeout)||(r.timeout=t.timeout):r.timeout=e.timeout;else if("UPLOAD"===n){delete r.header["content-type"],delete r.header["Content-Type"];var o=["files","filePath","name","timeout","formData"];o.forEach((function(t){(0,a.isUndefined)(e[t])||(r[t]=e[t])})),(0,a.isUndefined)(r.timeout)&&!(0,a.isUndefined)(t.timeout)&&(r.timeout=t.timeout)}else{var c=["data","timeout","dataType","responseType","sslVerify","firstIpv4"];r=s(s({},r),u(c,t,e))}return r}},"21ef":function(t,e,n){"use strict";n.r(e);var r=n("b86d"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},2236:function(t,e,n){var r=n("5a43");t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},"22c8":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("3533")),a=r(n("9eb0")),o={name:"headerPageCompontent",emits:["headerclick"],components:{FullPageLayout:i.default,PageHeader:a.default},props:{gradient:{type:Boolean,default:!1},gradientValue:{type:String,default:"default"},backgroundColor:{type:String,default:""},baseBackgroundColor:{type:String,default:""},safety:{type:Boolean,default:!0},title:{type:String,default:"Title"},headerColor:{type:String,default:"#212121"},headerGradient:{type:Boolean,default:!1},headerGradientValue:{type:String,default:"default"},headerBackgroundColor:{type:String,default:""},full:{type:Boolean,default:!0}},data:function(){return{bodyHeight:0}},methods:{onHeaderAsideClick:function(t){this.$emit("headerclick",t)},getBodyHeight:function(){return this.bodyHeight}},mounted:function(){var t=this,e=uni.createSelectorQuery().in(this);e.select(".header-page-containter-body").boundingClientRect((function(e){t.bodyHeight=e.height})).exec()}};e.default=o},2341:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("448a")),o=r(n("9523")),s=r(n("c973")),u=r(n("59a2")),c=r(n("27d0"));c.default.warning=function(){};var l={name:"u-form",mixins:[uni.$u.mpMixin,uni.$u.mixin,u.default],provide:function(){return{uForm:this}},data:function(){return{formRules:{},validator:{},originalModel:null}},watch:{rules:{immediate:!0,handler:function(t){this.setRules(t)}},propsChange:function(t){var e;null!==(e=this.children)&&void 0!==e&&e.length&&this.children.map((function(t){"function"==typeof t.updateParentData&&t.updateParentData()}))},model:{immediate:!0,handler:function(t){this.originalModel||(this.originalModel=uni.$u.deepClone(t))}}},computed:{propsChange:function(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created:function(){this.children=[]},methods:{setRules:function(t){0!==Object.keys(t).length&&(this.formRules=t,this.validator=new c.default(t))},resetFields:function(){this.resetModel()},resetModel:function(t){var e=this;this.children.map((function(t){var n=null===t||void 0===t?void 0:t.prop,r=uni.$u.getProperty(e.originalModel,n);uni.$u.setProperty(e.model,n,r)}))},clearValidate:function(t){t=[].concat(t),this.children.map((function(e){(void 0===t[0]||t.includes(e.prop))&&(e.message=null)}))},validateField:function(t,e){var n=arguments,r=this;return(0,s.default)(i.default.mark((function s(){var u;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:u=n.length>2&&void 0!==n[2]?n[2]:null,r.$nextTick((function(){var n=[];t=[].concat(t),r.children.map((function(e){var i=[];if(t.includes(e.prop)){var s=uni.$u.getProperty(r.model,e.prop),l=e.prop.split("."),f=l[l.length-1],d=r.formRules[e.prop];if(!d)return;for(var p=[].concat(d),h=0;h<p.length;h++){var v=p[h],m=[].concat(null===v||void 0===v?void 0:v.trigger);if(!u||m.includes(u)){var g=new c.default((0,o.default)({},f,v));g.validate((0,o.default)({},f,s),(function(t,r){var o,s;uni.$u.test.array(t)&&(n.push.apply(n,(0,a.default)(t)),i.push.apply(i,(0,a.default)(t))),e.message=null!==(o=null===(s=i[0])||void 0===s?void 0:s.message)&&void 0!==o?o:null}))}}}})),"function"===typeof e&&e(n)}));case 2:case"end":return i.stop()}}),s)})))()},validate:function(t){var e=this;return new Promise((function(t,n){e.$nextTick((function(){var r=e.children.map((function(t){return t.prop}));e.validateField(r,(function(r){r.length?("toast"===e.errorType&&uni.$u.toast(r[0].message),n(r)):t(!0)}))}))}))}}};e.default=l},2408:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={codeInput:{adjustPosition:!0,maxlength:6,dot:!1,mode:"box",hairline:!1,space:10,value:"",focus:!1,bold:!1,color:"#606266",fontSize:18,size:35,disabledKeyboard:!1,borderColor:"#c9cacc",disabledDot:!0}}},"246a":function(t,e,n){"use strict";n.r(e);var r=n("cfeb"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"24ad":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("b1b5")),a={name:"u-popup",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{overlayDuration:this.duration+50}},watch:{show:function(t,e){}},computed:{transitionStyle:function(){var t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?uni.$u.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?uni.$u.deepMerge(t,{left:0,right:0}):"center"===this.mode?uni.$u.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle:function(){var t={},e=uni.$u.sys();e.safeAreaInsets;if("center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){var n=uni.$u.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=n,t.borderBottomRightRadius=n):"bottom"===this.mode?(t.borderTopLeftRadius=n,t.borderTopRightRadius=n):"center"===this.mode&&(t.borderRadius=n)}return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},position:function(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick:function(){this.closeOnClickOverlay&&this.$emit("close")},close:function(t){this.$emit("close")},afterEnter:function(){this.$emit("open")},clickHandler:function(){"center"===this.mode&&this.overlayClick(),this.$emit("click")}}};e.default=a},"24fe":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header-page-layout",{ref:"page",attrs:{title:t.title,"base-background-color":"#f8f8ff","background-color":"#f2f2f2",_i:0},on:{headerclick:t.onHeaderClick},scopedSlots:t._u([{key:"headerleft",fn:function(t,e,r){return[n("u-icon",{attrs:{name:"arrow-left",_i:"2-"+r}})]}},{key:"headerright",fn:function(t,e,r){return[n("u-icon",{attrs:{name:"list",_i:"4-"+r}})]}},t._$s(6,"i",t.$scopedSlots.footer)?{key:"footer",fn:function(e,n,r){return[t._t("footer",null,{_i:"7-"+r})]}}:null],null,!0)},[t._t("default",null,{_i:5}),n("easy-picker",{attrs:{visible:t.actionVisible,list:t.actionList,_i:8},on:{"update:visible":function(e){t.actionVisible=e},select:t.onActionClick}})],2)},a=[]},"25fe":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={methods:{getTouchPoint:function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX||0,y:t.clientY||0}:{x:0,y:0}},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},touchStart:function(t){this.resetTouchStatus();var e=this.getTouchPoint(t);this.startX=e.x,this.startY=e.y},touchMove:function(t){var e=this.getTouchPoint(t);this.deltaX=e.x-this.startX,this.deltaY=e.y-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||function(t,e){return t>e&&t>10?"horizontal":e>t&&e>10?"vertical":""}(this.offsetX,this.offsetY)}}};e.default=r},"26cb":function(t,e,n){"use strict";(function(e){var n="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=function(t,e){return t.filter(e)[0]}(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=i(t[n],e)})),r}function a(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function o(t){return null!==t&&"object"===typeof t}var s=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(t,e){this._children[t]=e},s.prototype.removeChild=function(t){delete this._children[t]},s.prototype.getChild=function(t){return this._children[t]},s.prototype.hasChild=function(t){return t in this._children},s.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},s.prototype.forEachChild=function(t){a(this._children,t)},s.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},s.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},s.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(s.prototype,u);var c=function(t){this.register([],t,!1)};c.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},c.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},c.prototype.update=function(t){(function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}})([],this.root,t)},c.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new s(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&a(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},c.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},c.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var l;var f=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!==typeof window&&window.Vue&&b(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,s=this.commit;this.dispatch=function(t,e){return o.call(a,t,e)},this.commit=function(t,e,n){return s.call(a,t,e,n)},this.strict=i;var u=this._modules.root.state;m(this,u,[],this._modules.root),v(this,u),n.forEach((function(t){return t(e)}));var f=void 0!==t.devtools?t.devtools:l.config.devtools;f&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;m(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};a(i,(function(e,n){o[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:o}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function m(t,e,n,r,i){var a=!n.length,o=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=r),!a&&!i){var s=g(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){l.set(s,u,r.state)}))}var c=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var a=y(n,r,i),o=a.payload,s=a.options,u=a.type;return s&&s.root||(u=e+u),t.dispatch(u,o)},commit:r?t.commit:function(n,r,i){var a=y(n,r,i),o=a.payload,s=a.options,u=a.type;s&&s.root||(u=e+u),t.commit(u,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return g(t.state,n)}}}),i}(t,o,n);r.forEachMutation((function(e,n){var r=o+n;(function(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))})(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:o+n,i=e.handler||e;(function(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))})(t,r,i,c)})),r.forEachGetter((function(e,n){var r=o+n;(function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}})(t,r,e,c)})),r.forEachChild((function(r,a){m(t,e,n.concat(a),r,i)}))}function g(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function b(t){l&&t===l||(l=t, +/*! + * vuex v3.6.2 + * (c) 2021 Evan You + * @license MIT + */ +function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,i=y(t,e,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),u=this._mutations[a];u&&(this._withCommit((function(){u.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=y(t,e),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(a)}))):s[0](a);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,n.state,t)}))}catch(c){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return p(n,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=g(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=A((function(t,e){var n={};return C(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=O(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),w=A((function(t,e){var n={};return C(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=O(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),x=A((function(t,e){var n={};return C(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),S=A((function(t,e){var n={};return C(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var a=O(this.$store,"mapActions",t);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function C(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function A(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function O(t,e,n){var r=t._modulesNamespaceMap[n];return r}function P(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function I(t){try{t.groupEnd()}catch(e){t.log("\u2014\u2014 log end \u2014\u2014")}}function $(){var t=new Date;return" @ "+j(t.getHours(),2)+":"+j(t.getMinutes(),2)+":"+j(t.getSeconds(),2)+"."+j(t.getMilliseconds(),3)}function j(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var E={Store:f,install:b,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:S,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:x.bind(null,t),mapMutations:w.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var a=t.mutationTransformer;void 0===a&&(a=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var u=t.logMutations;void 0===u&&(u=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=i(t.state);"undefined"!==typeof l&&(u&&t.subscribe((function(t,o){var s=i(o);if(n(t,f,s)){var u=$(),c=a(t),d="mutation "+t.type+u;P(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),I(l)}f=s})),c&&t.subscribeAction((function(t,n){if(o(t,n)){var r=$(),i=s(t),a="action "+t.type+r;P(l,a,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),I(l)}})))}}};t.exports=E}).call(this,n("c8ba"))},"270b":function(t,e,n){"use strict";n.r(e);var r=n("1775"),i=n("5921");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"78fe1574",null,!1,r["a"],void 0);e["default"]=s.exports},2714:function(t,e,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&i&&"function"===typeof i.get?i.get:null,o=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"===typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,h=p?WeakSet.prototype.has:null,v="function"===typeof WeakRef&&WeakRef.prototype,m=v?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,A=RegExp.prototype.test,O=Array.prototype.concat,P=Array.prototype.join,I=Array.prototype.slice,$=Math.floor,j="function"===typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,k="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"===typeof Symbol&&"object"===typeof Symbol.iterator,B="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function F(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var r=t<0?-$(-t):$(t);if(r!==t){var i=String(r),a=w.call(e,i.length+1);return x.call(i,n,"$&_")+"."+x.call(x.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(e,n,"$&_")}var D=n(0),L=D.custom,U=q(L)?L:null;function R(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function V(t){return x.call(String(t),/"/g,""")}function H(t){return"[object Array]"===W(t)&&(!B||!("object"===typeof t&&B in t))}function Q(t){return"[object RegExp]"===W(t)&&(!B||!("object"===typeof t&&B in t))}function q(t){if(T)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!k)return!1;try{return k.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,i){var s=n||{};if(X(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!X(s,"customInspect")||s.customInspect;if("boolean"!==typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=s.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return function t(e,n){if(e.length>n.maxStringLength){var r=e.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return t(w.call(e,0,n.maxStringLength),n)+i}var a=x.call(x.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G);return R(a,"single",n)}(e,s);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var p=String(e);return f?F(e,p):p}if("bigint"===typeof e){var v=String(e)+"n";return f?F(e,v):v}var y="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=y&&y>0&&"object"===typeof e)return H(e)?"[Array]":"[Object]";var S=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=P.call(Array(t.indent+1)," ")}return{base:n,prev:P.call(Array(e+1),n)}}(s,r);if("undefined"===typeof i)i=[];else if(Y(i,e)>=0)return"[Circular]";function A(e,n,a){if(n&&(i=I.call(i),i.push(n)),a){var o={depth:s.depth};return X(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),t(e,o,r+1,i)}return t(e,s,r+1,i)}if("function"===typeof e&&!Q(e)){var $=function(t){if(t.name)return t.name;var e=_.call(b.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),E=et(e,A);return"[Function"+($?": "+$:" (anonymous)")+"]"+(E.length>0?" { "+P.call(E,", ")+" }":"")}if(q(e)){var L=T?x.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!==typeof e||T?L:J(L)}if(function(t){if(!t||"object"!==typeof t)return!1;if("undefined"!==typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"===typeof t.nodeName&&"function"===typeof t.getAttribute}(e)){for(var z="<"+C.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt<nt.length;rt++)z+=" "+nt[rt].name+"="+R(V(nt[rt].value),"double",s);return z+=">",e.childNodes&&e.childNodes.length&&(z+="..."),z+="</"+C.call(String(e.nodeName))+">",z}if(H(e)){if(0===e.length)return"[]";var it=et(e,A);return S&&!function(t){for(var e=0;e<t.length;e++)if(Y(t[e],"\n")>=0)return!1;return!0}(it)?"["+tt(it,S)+"]":"[ "+P.call(it,", ")+" ]"}if(function(t){return"[object Error]"===W(t)&&(!B||!("object"===typeof t&&B in t))}(e)){var at=et(e,A);return"cause"in Error.prototype||!("cause"in e)||M.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(at,", ")+" }":"{ ["+String(e)+"] "+P.call(O.call("[cause]: "+A(e.cause),at),", ")+" }"}if("object"===typeof e&&u){if(U&&"function"===typeof e[U]&&D)return D(e,{depth:y-r});if("symbol"!==u&&"function"===typeof e.inspect)return e.inspect()}if(function(t){if(!a||!t||"object"!==typeof t)return!1;try{a.call(t);try{c.call(t)}catch(z){return!0}return t instanceof Map}catch(e){}return!1}(e)){var ot=[];return o.call(e,(function(t,n){ot.push(A(n,e,!0)+" => "+A(t,e))})),Z("Map",a.call(e),ot,S)}if(function(t){if(!c||!t||"object"!==typeof t)return!1;try{c.call(t);try{a.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var st=[];return l.call(e,(function(t){st.push(A(t,e))})),Z("Set",c.call(e),st,S)}if(function(t){if(!d||!t||"object"!==typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(z){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return K("WeakMap");if(function(t){if(!h||!t||"object"!==typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(z){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return K("WeakSet");if(function(t){if(!m||!t||"object"!==typeof t)return!1;try{return m.call(t),!0}catch(e){}return!1}(e))return K("WeakRef");if(function(t){return"[object Number]"===W(t)&&(!B||!("object"===typeof t&&B in t))}(e))return J(A(Number(e)));if(function(t){if(!t||"object"!==typeof t||!j)return!1;try{return j.call(t),!0}catch(e){}return!1}(e))return J(A(j.call(e)));if(function(t){return"[object Boolean]"===W(t)&&(!B||!("object"===typeof t&&B in t))}(e))return J(g.call(e));if(function(t){return"[object String]"===W(t)&&(!B||!("object"===typeof t&&B in t))}(e))return J(A(String(e)));if(!function(t){return"[object Date]"===W(t)&&(!B||!("object"===typeof t&&B in t))}(e)&&!Q(e)){var ut=et(e,A),ct=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,lt=e instanceof Object?"":"null prototype",ft=!ct&&B&&Object(e)===e&&B in e?w.call(W(e),8,-1):lt?"Object":"",dt=ct||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",pt=dt+(ft||lt?"["+P.call(O.call([],ft||[],lt||[]),": ")+"] ":"");return 0===ut.length?pt+"{}":S?pt+"{"+tt(ut,S)+"}":pt+"{ "+P.call(ut,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function X(t,e){return z.call(t,e)}function W(t){return y.call(t)}function Y(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function G(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+S.call(e.toString(16))}function J(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function Z(t,e,n,r){var i=r?tt(n,r):P.call(n,", ");return t+" ("+e+") {"+i+"}"}function tt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+P.call(t,","+n)+"\n"+e.prev}function et(t,e){var n=H(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=X(t,i)?e(t[i],t):""}var a,o="function"===typeof E?E(t):[];if(T){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var u in t)X(t,u)&&(n&&String(Number(u))===u&&u<t.length||T&&a["$"+u]instanceof Symbol||(A.call(/[^\w$]/,u)?r.push(e(u,t)+": "+e(t[u],t)):r.push(u+": "+e(t[u],t))));if("function"===typeof E)for(var c=0;c<o.length;c++)M.call(t,o[c])&&r.push("["+e(o[c])+"]: "+e(t[o[c]],t));return r}},2759:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("348a")),o=r(n("46d8")),s=r(n("a4c6")),u=r(n("6bff")),c=r(n("c0f1")),l=r(n("e15c")),f=r(n("905e")),d=r(n("16e3")),p=r(n("e037")),h=r(n("f21e")),v=r(n("4d3b")),m=r(n("6337")),g=r(n("5869")),y=r(n("777b"));function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w=_(_({route:u.default,date:p.default.timeFormat,colorGradient:c.default.colorGradient,hexToRgb:c.default.hexToRgb,rgbToHex:c.default.rgbToHex,colorToRgba:c.default.colorToRgba,test:l.default,type:["primary","success","error","warning","info"],http:new s.default,config:h.default,zIndex:m.default,debounce:f.default,throttle:d.default,mixin:a.default,mpMixin:o.default,props:v.default},p.default),{},{color:g.default,platform:y.default});uni.$u=w;var x={install:function(t){t.filter("timeFormat",(function(t,e){return uni.$u.timeFormat(t,e)})),t.filter("date",(function(t,e){return uni.$u.timeFormat(t,e)})),t.filter("timeFrom",(function(t,e){return uni.$u.timeFrom(t,e)})),t.prototype.$u=w,t.mixin(a.default)}};e.default=x},"278c":function(t,e,n){var r=n("c135"),i=n("9b42"),a=n("6613"),o=n("c240");t.exports=function(t,e){return r(t)||i(t,e)||a(t,e)||o()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"27a5":function(t,e,n){"use strict";n.r(e);var r=n("5370"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"27ca":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={carKeyboard:{random:!1}}},"27d0":function(t,e,n){"use strict";(function(t,r){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("9523")),o=i(n("7037"));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=/%[sdj%]/g,l=function(){};function f(t){if(!t||!t.length)return null;var e={};return t.forEach((function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)})),e}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],a=e.length;if("function"===typeof i)return i.apply(null,e.slice(1));if("string"===typeof i){for(var o=String(i).replace(c,(function(t){if("%%"===t)return"%";if(r>=a)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),s=e[r];r<a;s=e[++r])o+=" ".concat(s);return o}return i}function p(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}(e)||"string"!==typeof t||t))}function h(t,e,n){var r=0,i=t.length;(function a(o){if(o&&o.length)n(o);else{var s=r;r+=1,s<i?e(t[s],a):n([])}})([])}function v(t,e,n,r){if(e.first){var i=new Promise((function(e,i){var a=function(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}(t);h(a,n,(function(t){return r(t),t.length?i({errors:t,fields:f(t)}):e()}))}));return i.catch((function(t){return t})),i}var a=e.firstFields||[];!0===a&&(a=Object.keys(t));var o=Object.keys(t),s=o.length,u=0,c=[],l=new Promise((function(e,i){var l=function(t){if(c.push.apply(c,t),u++,u===s)return r(c),c.length?i({errors:c,fields:f(c)}):e()};o.length||(r(c),e()),o.forEach((function(e){var r=t[e];-1!==a.indexOf(e)?h(r,n,l):function(t,e,n){var r=[],i=0,a=t.length;function o(t){r.push.apply(r,t),i++,i===a&&n(r)}t.forEach((function(t){e(t,o)}))}(r,n,l)}))}));return l.catch((function(t){return t})),l}function m(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:"function"===typeof e?e():e,field:e.field||t.fullField}}}function g(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===(0,o.default)(r)&&"object"===(0,o.default)(t[n])?t[n]=u(u({},t[n]),r):t[n]=r}return t}function y(t,e,n,r,i,a){!t.required||n.hasOwnProperty(t.field)&&!p(e,a||t.type)||r.push(d(i.messages.required,t.fullField))}"undefined"!==typeof t&&Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"wc3Pad",VUE_APP_PLATFORM:"app-plus",BASE_URL:"/"});var b={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,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"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},_={integer:function(t){return/^(-)?\d+$/.test(t)},float:function(t){return/^(-)?\d+(\.\d+)?$/.test(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof+t},object:function(t){return"object"===(0,o.default)(t)&&!_.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(b.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(b.url)},hex:function(t){return"string"===typeof t&&!!t.match(b.hex)}};var w={required:y,whitespace:function(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(d(i.messages.whitespace,t.fullField))},type:function(t,e,n,r,i){if(t.required&&void 0===e)y(t,e,n,r,i);else{var a=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?_[a](e)||r.push(d(i.messages.types[a],t.fullField,t.type)):a&&(0,o.default)(e)!==t.type&&r.push(d(i.messages.types[a],t.fullField,t.type))}},range:function(t,e,n,r,i){var a="number"===typeof t.len,o="number"===typeof t.min,s="number"===typeof t.max,u=e,c=null,l="number"===typeof e,f="string"===typeof e,p=Array.isArray(e);if(l?c="number":f?c="string":p&&(c="array"),!c)return!1;p&&(u=e.length),f&&(u=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==t.len&&r.push(d(i.messages[c].len,t.fullField,t.len)):o&&!s&&u<t.min?r.push(d(i.messages[c].min,t.fullField,t.min)):s&&!o&&u>t.max?r.push(d(i.messages[c].max,t.fullField,t.max)):o&&s&&(u<t.min||u>t.max)&&r.push(d(i.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,i){t["enum"]=Array.isArray(t["enum"])?t["enum"]:[],-1===t["enum"].indexOf(e)&&r.push(d(i.messages["enum"],t.fullField,t["enum"].join(", ")))},pattern:function(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(d(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var a=new RegExp(t.pattern);a.test(e)||r.push(d(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}};function x(t,e,n,r,i){var a=t.type,o=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(p(e,a)&&!t.required)return n();w.required(t,e,r,o,i,a),p(e,a)||w.type(t,e,r,o,i)}n(o)}var S={string:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e,"string")&&!t.required)return n();w.required(t,e,r,a,i,"string"),p(e,"string")||(w.type(t,e,r,a,i),w.range(t,e,r,a,i),w.pattern(t,e,r,a,i),!0===t.whitespace&&w.whitespace(t,e,r,a,i))}n(a)},method:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&w.type(t,e,r,a,i)}n(a)},number:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(""===e&&(e=void 0),p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&(w.type(t,e,r,a,i),w.range(t,e,r,a,i))}n(a)},boolean:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&w.type(t,e,r,a,i)}n(a)},regexp:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),p(e)||w.type(t,e,r,a,i)}n(a)},integer:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&(w.type(t,e,r,a,i),w.range(t,e,r,a,i))}n(a)},float:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&(w.type(t,e,r,a,i),w.range(t,e,r,a,i))}n(a)},array:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e,"array")&&!t.required)return n();w.required(t,e,r,a,i,"array"),p(e,"array")||(w.type(t,e,r,a,i),w.range(t,e,r,a,i))}n(a)},object:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&w.type(t,e,r,a,i)}n(a)},enum:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i),void 0!==e&&w["enum"](t,e,r,a,i)}n(a)},pattern:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e,"string")&&!t.required)return n();w.required(t,e,r,a,i),p(e,"string")||w.pattern(t,e,r,a,i)}n(a)},date:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();var s;if(w.required(t,e,r,a,i),!p(e))s="number"===typeof e?new Date(e):e,w.type(t,s,r,a,i),s&&w.range(t,s.getTime(),r,a,i)}n(a)},url:x,hex:x,email:x,required:function(t,e,n,r,i){var a=[],s=Array.isArray(e)?"array":(0,o.default)(e);w.required(t,e,r,a,i,s),n(a)},any:function(t,e,n,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(p(e)&&!t.required)return n();w.required(t,e,r,a,i)}n(a)}};function C(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var A=C();function O(t){this.rules=null,this._messages=A,this.define(t)}O.prototype={messages:function(t){return t&&(this._messages=g(C(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,o.default)(t)||Array.isArray(t))throw new Error("Rules must be an object");var e,n;for(e in this.rules={},t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(){});var i,a,s=t,c=e,l=n;if("function"===typeof c&&(l=c,c={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(c.messages){var p=this.messages();p===A&&(p=C()),g(p,c.messages),c.messages=p}else c.messages=this.messages();var h={},y=c.keys||Object.keys(this.rules);y.forEach((function(e){i=r.rules[e],a=s[e],i.forEach((function(n){var i=n;"function"===typeof i.transform&&(s===t&&(s=u({},s)),a=s[e]=i.transform(a)),i="function"===typeof i?{validator:i}:u({},i),i.validator=r.getValidationMethod(i),i.field=e,i.fullField=i.fullField||e,i.type=r.getType(i),i.validator&&(h[e]=h[e]||[],h[e].push({rule:i,value:a,source:s,field:e}))}))}));var b={};return v(h,c,(function(t,e){var n,r=t.rule,i=("object"===r.type||"array"===r.type)&&("object"===(0,o.default)(r.fields)||"object"===(0,o.default)(r.defaultField));function a(t,e){return u(u({},e),{},{fullField:"".concat(r.fullField,".").concat(t)})}function s(n){void 0===n&&(n=[]);var o=n;if(Array.isArray(o)||(o=[o]),!c.suppressWarning&&o.length&&O.warning("async-validator:",o),o.length&&r.message&&(o=[].concat(r.message)),o=o.map(m(r)),c.first&&o.length)return b[r.field]=1,e(o);if(i){if(r.required&&!t.value)return o=r.message?[].concat(r.message).map(m(r)):c.error?[c.error(r,d(c.messages.required,r.field))]:[],e(o);var s={};if(r.defaultField)for(var l in t.value)t.value.hasOwnProperty(l)&&(s[l]=r.defaultField);for(var f in s=u(u({},s),t.rule.fields),s)if(s.hasOwnProperty(f)){var p=Array.isArray(s[f])?s[f]:[s[f]];s[f]=p.map(a.bind(null,f))}var h=new O(s);h.messages(c.messages),t.rule.options&&(t.rule.options.messages=c.messages,t.rule.options.error=c.error),h.validate(t.value,t.rule.options||c,(function(t){var n=[];o&&o.length&&n.push.apply(n,o),t&&t.length&&n.push.apply(n,t),e(n.length?n:null)}))}else e(o)}i=i&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator?n=r.asyncValidator(r,t.value,s,t.source,c):r.validator&&(n=r.validator(r,t.value,s,t.source,c),!0===n?s():!1===n?s(r.message||"".concat(r.field," fails")):n instanceof Array?s(n):n instanceof Error&&s(n.message)),n&&n.then&&n.then((function(){return s()}),(function(t){return s(t)}))}),(function(t){(function(t){var e,n=[],r={};function i(t){var e;Array.isArray(t)?n=(e=n).concat.apply(e,t):n.push(t)}for(e=0;e<t.length;e++)i(t[e]);n.length?r=f(n):(n=null,r=null),l(n,r)})(t)}))},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!S.hasOwnProperty(t.type))throw new Error(d("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?S.required:S[this.getType(t)]||!1}},O.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");S[t]=e},O.warning=l,O.messages=A;var P=O;e.default=P}).call(this,n("4362"),n("0de9")["default"])},"28ec":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"easyPickerCompontent",emits:["update:visible","select"],props:{visible:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"}},data:function(){return{maxHeight:500}},methods:{close:function(){this.$emit("update:visible",!1)},onItemClick:function(t,e){var n,r=e;if("string"===typeof e||"number"===typeof e||"boolean"===typeof e||null===e)n=e;else try{n=e[this.valueField]}catch(i){n=e}this.close(),this.$emit("select",n,r,t)},setMaxHeight:function(t){t>10&&(t-=10,this.maxHeight=t)}},beforeMount:function(){var t=this,e=this.$store.getters["system/getSafety"];e?this.setMaxHeight(e.height):uni.getSystemInfo({success:function(e){e.safeAreaInsets||(e.safeArea={}),t.setMaxHeight(e.safeArea.height||0)}})}};e.default=r},"296f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={backtop:{mode:"circle",icon:"arrow-upward",text:"",duration:100,scrollTop:0,top:400,bottom:100,right:20,zIndex:9,iconStyle:function(){return{color:"#909399",fontSize:"19px"}}}}},"2b90":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){var t=this;uni.getSystemInfo({success:function(e){e.safeAreaInsets||(e.safeAreaInsets={}),e.safeAreaInsets||(e.safeArea={});var n={top:e.safeAreaInsets.top||0,bottom:e.safeAreaInsets.bottom||0,left:e.safeAreaInsets.left||0,right:e.safeAreaInsets.right||0};n.height=e.safeArea.height||0,t.$store.commit("system/setSafety",n)}});try{plus.runtime.getProperty(plus.runtime.appid,(function(e){t.$store.commit("system/setVersion",e.version)}))}catch(e){}},onShow:function(){t("log","App Show"," at App.vue:28")},onHide:function(){t("log","App Hide"," at App.vue:31")}};e.default=n}).call(this,n("0de9")["default"])},"2bbb":function(t,e,n){"use strict";n.r(e);var r=n("654f"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"2ced":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u7ec4\u76d8",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("12-"+i,"sc","bottom-btns-row"),attrs:{_i:"12-"+i}},[[n("div",{staticClass:r._$s("14-"+i,"sc","btn-frame"),attrs:{_i:"14-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u7ec4 \u76d8",disabled:!t.abled,_i:"15-"+i},on:{click:t.onSubmit}})],1),n("div",{staticClass:r._$s("16-"+i,"sc","btn-frame"),attrs:{_i:"16-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u7ec4\u76d8\u5165\u5e93",disabled:!t.abled,_i:"17-"+i},on:{click:t.addInBound}})],1),n("div",{staticClass:r._$s("18-"+i,"sc","btn-frame"),staticStyle:{"margin-left":"10rpx"},attrs:{_i:"18-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u81ea\u5236\u4ef6\u5165\u5e93",disabled:!t.abled,_i:"19-"+i},on:{click:t.addVirtual}})],1),n("div",{staticClass:r._$s("20-"+i,"sc","btn-frame"),staticStyle:{"margin-left":"10rpx"},attrs:{_i:"20-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u751f\u6210\u4efb\u52a1",disabled:!t.abled,_i:"21-"+i},on:{click:t.addVirtualTask}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("scan-input-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{label:"\u6258\u76d8\u7f16\u7801",msg:t.msg.containter,"msg-type":t.msgType.containter,_i:4},on:{search:t.onSearchContainter,clear:t.onClearContainter},model:{value:t._$s(4,"v-model",t.form.containterCode),callback:function(e){t.$set(t.form,"containterCode",e)},expression:"form.containterCode"}}),t._$s(5,"i",2==t.containerInfo.isExist)?n("scan-input-form-item",{staticClass:t._$s(5,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u6258\u76d8\u7c7b\u578b",_i:5},nativeOn:{click:function(e){t.ctVisible=!0}},model:{value:t._$s(5,"v-model",t.form.containerType),callback:function(e){t.$set(t.form,"containerType",e)},expression:"form.containerType"}}):t._e(),n("EasyPicker",{attrs:{visible:t.ctVisible,list:t.ContainerType,labelField:"value",valueField:"code",_i:6},on:{"update:visible":function(e){t.ctVisible=e},select:t.getTypeVal}}),n("scan-input-form-item",{staticClass:t._$s(7,"sc","forma-item"),attrs:{label:"\u7269\u6599\u552f\u4e00\u7801",msg:t.msg.material,"msg-type":t.msgType.material,d:!0,_i:7},on:{search:t.onSearchMaterial,clear:t.onClearMaterial},model:{value:t._$s(7,"v-model",t.form.materialNo),callback:function(e){t.$set(t.form,"materialNo",e)},expression:"form.materialNo"}}),n("scan-input-form-item",{staticClass:t._$s(8,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u9009\u62e9\u5e93\u4f4d",_i:8},nativeOn:{click:function(e){t.visible=!0}},model:{value:t._$s(8,"v-model",t.form.site),callback:function(e){t.$set(t.form,"site",e)},expression:"form.site"}}),n("EasyPicker",{attrs:{visible:t.visible,list:t.placeList.filter((function(t){return"ZDCR"!=t.placeNo})),labelField:"placeNo",valueField:"placeNo",_i:9},on:{"update:visible":function(e){t.visible=e},select:t.getSiteVal}}),n("materialList",{attrs:{materialData:t.materialData,_i:10},on:{delMaterialData:t.delMaterialData}})],1)],1):t._e()])},a=[]},"2d28":function(t,e,n){"use strict";n.r(e);var r=n("cd5f"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"2db5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={transition:{show:!1,mode:"fade",duration:"300",timingFunction:"ease-out"}}},"2f0e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={row:{gutter:0,justify:"start",align:"center"}}},"2f6b":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"ScanInputFormItemCompontent",emits:["input","search","clear","blur","confirm","change"],props:{type:{type:String,default:"text"},label:{type:String,default:""},placeholder:{type:String,default:"\u8bf7\u8f93\u5165..."},msg:{type:String,default:""},msgType:{type:String,default:"error"},value:{type:[String,Number,null],default:""},hasScan:{type:Boolean,default:!0},hasSearch:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},required:{type:Boolean,default:!1}},data:function(){return{innerValue:""}},watch:{value:function(t,e){t!==this.innerValue&&(this.innerValue=t)},innerValue:function(t,e){t!==this.value&&(this.$emit("input",t),this.$emit("change",t))}},methods:{onScan:function(){var e=this;uni.scanCode({success:function(t){e.innerValue=t.result},fail:function(){t("log","scanCode fail"," at components/ScanInputFormItem.vue:104")}})},onSearch:function(){this.$emit("search",this.innerValue)},onClear:function(){this.innerValue=null,this.$emit("clear")},onBlur:function(){this.$emit("blur",this.innerValue)},onConfirm:function(){this.$emit("search",this.innerValue)}},created:function(){this.innerValue=this.value}};e.default=n}).call(this,n("0de9")["default"])},3084:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={collapseItem:{title:"",value:"",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0,align:"left",name:"",icon:"",duration:300}}},"30d9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={switch:{loading:!1,disabled:!1,size:25,activeColor:"#2979ff",inactiveColor:"#ffffff",value:!1,activeValue:!0,inactiveValue:!1,asyncChange:!1,space:0}}},3130:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("c591")),s=r(n("84c4")),u=r(n("bfc4")),c=r(n("6e05")),l=r(n("733c")),f=n("6d9d"),d=n("cc4c"),p=null,h={components:{DefaultHeaderPageLayout:o.default,ActionUserRow:s.default,ScanInputFormItem:u.default,RadioFormItem:c.default,EasyPicker:l.default},data:function(){return{isSorting:[{label:"\u662f",value:"1"},{label:"\u5426",value:"0"}],pageBodyHeight:0,form:{materialNo:"",materialModel:"",materialType:0,materialNumber:0,orderType:null,sorting:null},materialData:[],visible:!1,visibleSort:!1}},computed:{abled:function(){return!Boolean(this.form.materialNo)}},created:function(){this.getMaterialNoList()},methods:{getParseDic:function(t,e){var n=(0,f.parseDic)(this.$store,t,e);return"\u65e0\u6b64\u5b57\u5178"==n?"":n},getMaterialNoVal:function(t,e){this.form.materialNo=t,this.form.materialModel=e.materialModel,this.form.materialType=e.materialType,this.form.stockNumber=e.stockNumber,this.form.containerNo=e.containerNo,this.form.materialName=e.materialName},numberBlur:function(t){t<1?((0,f.$alert)("\u6570\u91cf\u4e0d\u80fd\u5c0f\u4e8e1"),this.form.materialNumber=0):t>this.form.stockNumber?((0,f.$alert)("\u5f53\u524d\u4ef6\u53f7\u5728\u5e93\u5b58\u91cf\u4e3a"+this.form.stockNumber),this.form.materialNumber=0):this.form.materialNumber=t},getMaterialNoList:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,d.materialStockListNoPage)();case 3:r=n.sent,a=r.result,e.materialData=a,n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t("log",n.t0," at pages/replenishMent/index.vue:150");case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))()},radioChange:function(t,e){this.form.sorting=e.label,this.form.orderType=t},onSubmit:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var n,r,a,o,s,u,c,l,p;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.form,!(n.materialNumber<=0)){e.next=3;break}return e.abrupt("return",(0,f.$alert)("\u8bf7\u8f93\u5165\u7269\u6599\u6570\u91cf\uff01"));case 3:if(Boolean(n.sorting)){e.next=5;break}return e.abrupt("return",(0,f.$alert)("\u8bf7\u9009\u62e9\u662f\u5426\u81ea\u52a8\u5206\u62e3\uff01"));case 5:return r=n.materialNo,a=n.materialModel,o=n.materialNumber,s=n.materialType,u=n.materialName,c=n.orderType,l=n.containerNo,c=1==c?c:3,p={orderType:c,orderSource:2,addInAndOutOrderMaterials:[{materialNo:r,materialModel:a,materialNumber:o,materialType:s,materialName:u,containerNo:l}]},e.prev=8,e.next=11,(0,d.addRange)(p);case 11:(0,f.$alert)("\u63d0\u4ea4\u6210\u529f"),t.form={materialNo:"",materialModel:"",containerNo:"",materialType:0,materialNumber:0,orderType:null,sorting:null},t.getMaterialNoList(),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](8);case 18:case"end":return e.stop()}}),e,null,[[8,16]])})))()},startInitInterval:function(t){var e=this;p=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(p),p=null}catch(t){}}},onReady:function(){this.startInitInterval((0,a.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))))},onUnload:function(){this.clearInitInterval()}};e.default=h}).call(this,n("0de9")["default"])},"315f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("ca7f")),a={name:"u-line",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{lineStyle:function(){var t={};return t.margin=this.margin,"row"===this.direction?(t.borderBottomWidth="1px",t.borderBottomStyle=this.dashed?"dashed":"solid",t.width=uni.$u.addUnit(this.length),this.hairline&&(t.transform="scaleY(0.5)")):(t.borderLeftWidth="1px",t.borderLeftStyle=this.dashed?"dashed":"solid",t.height=uni.$u.addUnit(this.length),this.hairline&&(t.transform="scaleX(0.5)")),t.borderColor=this.color,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}};e.default=a},3196:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("3533")),a=null,o={name:"startPage",components:{FullPageLayout:i.default},onReady:function(){var t=this.$store.getters["user/getToken"],e=this.$config.path.login;t&&(e=this.$config.path.home),a=setTimeout((function(){uni.navigateTo({url:e})}),5e3)},onUnload:function(){try{clearTimeout(a)}catch(t){}}};e.default=o},"324d":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-line"),style:this._$s(0,"s",[this.lineStyle]),attrs:{_i:0}})},i=[]},3336:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("f21e")),a=i.default.color,o={loadingIcon:{show:!0,color:a["u-tips-color"],textColor:a["u-tips-color"],vertical:!1,mode:"spinner",size:24,textSize:15,text:"",timingFunction:"ease-in-out",duration:1200,inactiveColor:""}};e.default=o},"344a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={slider:{value:0,blockSize:18,min:0,max:100,step:1,activeColor:"#2979ff",inactiveColor:"#c0c4cc",blockColor:"#ffffff",showValue:!1,disabled:!1,blockStyle:function(){}}}},"348a":function(t,e){t.exports={props:{customStyle:{type:[Object,String],default:function(){return{}}},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},created:function(){this.$u.getRect=this.$uGetRect},computed:{$u:function(){return uni.$u.deepMerge(uni.$u,{props:void 0,http:void 0,mixin:void 0})},bem:function(){return function(t,e,n){var r=this,i="u-".concat(t,"--"),a={};return e&&e.map((function(t){a[i+r[t]]=!0})),n&&n.map((function(t){r[t]?a[i+t]=r[t]:delete a[i+t]})),Object.keys(a)}}},methods:{openPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",e=this[t];e&&uni[this.linkType]({url:e})},$uGetRect:function(t,e){var n=this;return new Promise((function(r){uni.createSelectorQuery().in(n)[e?"selectAll":"select"](t).boundingClientRect((function(t){e&&Array.isArray(t)&&t.length&&r(t),!e&&t&&r(t)})).exec()}))},getParentData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=uni.$u.$parent.call(this,e),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(e){t.parentData[e]=t.parent[e]}))},preventEvent:function(t){t&&"function"===typeof t.stopPropagation&&t.stopPropagation()},noop:function(t){this.preventEvent(t)}},onReachBottom:function(){uni.$emit("uOnReachBottom")},beforeDestroy:function(){var t=this;if(this.parent&&uni.$u.test.array(this.parent.children)){var e=this.parent.children;e.map((function(n,r){n===t&&e.splice(r,1)}))}}}},3533:function(t,e,n){"use strict";n.r(e);var r=n("3d77"),i=n("cec3");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"68331ccf",null,!1,r["a"],void 0);e["default"]=s.exports},"354d":function(t,e,n){"use strict";n.r(e);var r=n("9a62"),i=n("db01");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3e04118d",null,!1,r["a"],void 0);e["default"]=s.exports},3642:function(t,e,n){"use strict";n.r(e);var r=n("9890"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},3702:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(0,"v-show",Boolean(t.materialData.materialNo)),expression:"_$s(0,'v-show',Boolean(materialData.materialNo))"}],staticClass:t._$s(0,"sc","material-item-group"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","material-list-item"),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","item-row"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","label"),attrs:{_i:3}}),n("view",{staticClass:t._$s(4,"sc","content auto-wrap"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.materialData.alertInfomation)))])]),n("view",{staticClass:t._$s(5,"sc","item-row"),attrs:{_i:5}},[n("view",{staticClass:t._$s(6,"sc","label"),attrs:{_i:6}}),n("view",{staticClass:t._$s(7,"sc","content auto-wrap"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.materialData.materialId)))])]),n("view",{staticClass:t._$s(8,"sc","item-row"),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","label"),attrs:{_i:9}}),n("view",{staticClass:t._$s(10,"sc","content auto-wrap"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.materialData.materialNo)))])]),n("view",{staticClass:t._$s(11,"sc","item-row"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","label"),attrs:{_i:12}}),n("view",{staticClass:t._$s(13,"sc","content auto-wrap"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.materialData.materialName)))])]),n("view",{staticClass:t._$s(14,"sc","item-row"),attrs:{_i:14}},[n("view",{staticClass:t._$s(15,"sc","label"),attrs:{_i:15}}),n("view",{staticClass:t._$s(16,"sc","content auto-wrap"),attrs:{_i:16}},[t._v(t._$s(16,"t0-0",t._s(t.materialData.supplier)))])]),n("view",{staticClass:t._$s(17,"sc","item-row"),attrs:{_i:17}},[n("view",{staticClass:t._$s(18,"sc","label"),attrs:{_i:18}}),n("view",{staticClass:t._$s(19,"sc","content auto-wrap"),attrs:{_i:19}},[t._v(t._$s(19,"t0-0",t._s(t.materialData.materialNo)))])]),n("view",{staticClass:t._$s(20,"sc","item-row"),attrs:{_i:20}},[n("view",{staticClass:t._$s(21,"sc","label"),attrs:{_i:21}}),n("view",{staticClass:t._$s(22,"sc","content auto-wrap"),attrs:{_i:22}},[t._v(t._$s(22,"t0-0",t._s(t.materialData.materialSpec)))])]),n("view",{staticClass:t._$s(23,"sc","item-row"),attrs:{_i:23}},[n("view",{staticClass:t._$s(24,"sc","label"),attrs:{_i:24}}),n("view",{staticClass:t._$s(25,"sc","content auto-wrap"),attrs:{_i:25}},[t._v(t._$s(25,"t0-0",t._s(t.parseDic(t.$store,"material_modal",t.materialData.materialModel))))])]),n("view",{staticClass:t._$s(26,"sc","item-row"),attrs:{_i:26}},[n("view",{staticClass:t._$s(27,"sc","label"),attrs:{_i:27}}),n("view",{staticClass:t._$s(28,"sc","content auto-wrap"),attrs:{_i:28}},[t._v(t._$s(28,"t0-0",t._s(t.materialData.materialBatch)))])])])])},i=[]},3846:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={readMore:{showHeight:400,toggle:!1,closeText:"\u5c55\u5f00\u9605\u8bfb\u5168\u6587",openText:"\u6536\u8d77",color:"#2979ff",fontSize:14,textIndent:"2em",name:""}}},"39a9":function(t,e,n){"use strict";n.r(e);var r=n("64bd"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"39c3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tabbarItem:{name:null,icon:"",badge:null,dot:!1,text:"",badgeStyle:"top: 6px;right:2px;"}}},"3a22":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{materialData:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{parseDic:r.parseDic}};e.default=i},"3a25":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-swipe-action"),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},i=[]},"3b18":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,sslVerify:!0,firstIpv4:!1,validateStatus:function(t){return t>=200&&t<300}}},"3b37":function(t,e,n){"use strict";n.r(e);var r=n("cdff");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var a=n("f0c5"),o=Object(a["a"])(r["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=o.exports},"3b67":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={methods:{closeHandler:function(){this.status="close"},setState:function(t){this.status=t},closeOther:function(){this.parent&&this.parent.closeOther(this)}}}},"3c66":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={scrollList:{indicatorWidth:50,indicatorBarWidth:20,indicator:!0,indicatorColor:"#f2f2f2",indicatorActiveColor:"#3c9cff",indicatorStyle:""}}},"3cf0":function(t,e,n){"use strict";n.r(e);var r=n("315f"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"3cfc":function(t,e,n){"use strict";n.r(e);var r=n("9a1c"),i=n("59ef");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},"3d77":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","full-page-layout app-page"),style:t._$s(0,"s",{paddingTop:t.safetySize.top+"px",paddingBottom:t.safetySize.bottom+"px",paddingLeft:t.safetySize.left+"px",paddingRight:t.safetySize.right+"px",height:t.full?"100vh":"100%",width:t.full?"100vw":"100%",backgroundColor:t.baseBackgroundColor?t.baseBackgroundColor:"transparent"}),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","full-page-layout-containter"),class:t._$s(1,"c",[t.gradient&&"default"===t.gradientValue?"gradient-default":""]),style:t._$s(1,"s",{backgroundColor:t.gradient?"transparent":t.backgroundColor?t.backgroundColor:"transparent",backgroundImage:t.gradient&&"default"!==t.gradientValue?t.gradientValue:"none"}),attrs:{_i:1}},[t._t("default",null,{_i:2})],2)])},i=[]},"3e34":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getAreaInfo=function(t){return(0,i.default)({url:"/api/area/list?".concat(a.default.stringify(t)),method:"get"})},e.getContainerInfo=function(t){return(0,i.default)({url:"/api/container/detail?".concat(a.default.stringify(t)),method:"get"})},e.getPalceList=function(t){return(0,i.default)({url:"/api/place/listNoPage",method:"post",data:t})},e.getSysEnumData=function(t){return(0,i.default)({url:"/api/sysDictType/dataList?".concat(a.default.stringify(t)),method:"get"})};var i=r(n("98af")),a=r(n("4328"))},"3eb1":function(t,e,n){"use strict";var r=n("0f7c"),i=n("00ce"),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}t.exports=function(t){var e=s(r,o,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(r,a,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},"405c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={gridItem:{name:null,bgColor:"transparent"}}},"40f2":function(t,e,n){"use strict";n.r(e);var r=n("e3bc"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},4127:function(t,e,n){"use strict";var r=n("5402"),i=n("d233"),a=n("b313"),o=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=String.prototype.split,l=Array.prototype.push,f=function(t,e){l.apply(t,u(e)?e:[e])},d=Date.prototype.toISOString,p=a["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(t){return d.call(t)},skipNulls:!1,strictNullHandling:!1},v={},m=function t(e,n,a,o,s,l,d,p,m,g,y,b,_,w,x,S){var C=e,A=S,O=0,P=!1;while(void 0!==(A=A.get(v))&&!P){var I=A.get(e);if(O+=1,"undefined"!==typeof I){if(I===O)throw new RangeError("Cyclic object value");P=!0}"undefined"===typeof A.get(v)&&(O=0)}if("function"===typeof p?C=p(n,C):C instanceof Date?C=y(C):"comma"===a&&u(C)&&(C=i.maybeMap(C,(function(t){return t instanceof Date?y(t):t}))),null===C){if(s)return d&&!w?d(n,h.encoder,x,"key",b):n;C=""}if(function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"symbol"===typeof t||"bigint"===typeof t}(C)||i.isBuffer(C)){if(d){var $=w?n:d(n,h.encoder,x,"key",b);if("comma"===a&&w){for(var j=c.call(String(C),","),E="",k=0;k<j.length;++k)E+=(0===k?"":",")+_(d(j[k],h.encoder,x,"value",b));return[_($)+(o&&u(C)&&1===j.length?"[]":"")+"="+E]}return[_($)+"="+_(d(C,h.encoder,x,"value",b))]}return[_(n)+"="+_(String(C))]}var T,B=[];if("undefined"===typeof C)return B;if("comma"===a&&u(C))T=[{value:C.length>0?C.join(",")||null:void 0}];else if(u(p))T=p;else{var M=Object.keys(C);T=m?M.sort(m):M}for(var N=o&&u(C)&&1===C.length?n+"[]":n,F=0;F<T.length;++F){var D=T[F],L="object"===typeof D&&"undefined"!==typeof D.value?D.value:C[D];if(!l||null!==L){var U=u(C)?"function"===typeof a?a(N,D):N:N+(g?"."+D:"["+D+"]");S.set(e,O);var R=r();R.set(v,S),f(B,t(L,U,a,o,s,l,d,p,m,g,y,b,_,w,x,R))}}return B};t.exports=function(t,e){var n,i,c=t,l=function(t){if(!t)return h;if(null!==t.encoder&&"undefined"!==typeof t.encoder&&"function"!==typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a["default"];if("undefined"!==typeof t.format){if(!o.call(a.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=a.formatters[n],i=h.filter;return("function"===typeof t.filter||u(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"===typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof t.delimiter?h.delimiter:t.delimiter,encode:"boolean"===typeof t.encode?t.encode:h.encode,encoder:"function"===typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"===typeof t.sort?t.sort:null,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"===typeof l.filter?(i=l.filter,c=i("",c)):u(l.filter)&&(i=l.filter,n=i);var d,p=[];if("object"!==typeof c||null===c)return"";d=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var v=s[d];if(e&&"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===v&&e&&e.commaRoundTrip;n||(n=Object.keys(c)),l.sort&&n.sort(l.sort);for(var y=r(),b=0;b<n.length;++b){var _=n[b];l.skipNulls&&null===c[_]||f(p,m(c[_],_,v,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var w=p.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},4328:function(t,e,n){"use strict";var r=n("4127"),i=n("9e6a"),a=n("b313");t.exports={formats:a,parse:i,stringify:r}},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},4423:function(t,e,n){"use strict";n.r(e);var r=n("b536"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"448a":function(t,e,n){var r=n("2236"),i=n("11b0"),a=n("6613"),o=n("0676");t.exports=function(t){return r(t)||i(t)||a(t)||o()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"44bb":function(t,e,n){"use strict";n.r(e);var r=n("eac9"),i=n("6603");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"4e46acd2",null,!1,r["a"],void 0);e["default"]=s.exports},"46d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={}},4702:function(t,e,n){"use strict";var r=n("4ea4"),i=r(n("9523"));n("9a2a");var a=r(n("3b37")),o=r(n("8bbf")),s=r(n("2759")),u=r(n("8304")),c=r(n("8ae4")),l=r(n("5a8b"));function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=(0,u.default)(o.default),h=new l.default(p,c.default);o.default.config.productionTip=!1,a.default.mpType="app",o.default.use(s.default),o.default.prototype.$modal=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"\u63d0\u793a";uni.showModal({title:n,content:t,icon:"error",showCancel:!1,success:e})},o.default.prototype.$config=c.default,o.default.prototype.$api=h;var v=new o.default(d(d({},a.default),{},{store:p}));v.$mount()},"480f":function(t,e,n){var r=n("c135"),i=n("11b0"),a=n("6613"),o=n("c240");t.exports=function(t){return r(t)||i(t)||a(t)||o()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"48cd":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={toolbar:{show:!0,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u8ba4",cancelColor:"#909193",confirmColor:"#3c9cff",title:""}}},4958:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-swiper-indicator"),attrs:{_i:0}},[t._$s(1,"i","line"===t.indicatorMode)?n("view",{staticClass:t._$s(1,"sc","u-swiper-indicator__wrapper"),class:t._$s(1,"c",["u-swiper-indicator__wrapper--"+t.indicatorMode]),style:t._$s(1,"s",{width:t.$u.addUnit(t.lineWidth*t.length),backgroundColor:t.indicatorInactiveColor}),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","u-swiper-indicator__wrapper--line__bar"),style:t._$s(2,"s",[t.lineStyle]),attrs:{_i:2}})]):t._e(),t._$s(3,"i","dot"===t.indicatorMode)?n("view",{staticClass:t._$s(3,"sc","u-swiper-indicator__wrapper"),attrs:{_i:3}},t._l(t._$s(4,"f",{forItems:t.length}),(function(e,r,i,a){return n("view",{key:t._$s(4,"f",{forIndex:i,key:r}),staticClass:t._$s("4-"+a,"sc","u-swiper-indicator__wrapper__dot"),class:t._$s("4-"+a,"c",[r===t.current&&"u-swiper-indicator__wrapper__dot--active"]),style:t._$s("4-"+a,"s",[t.dotStyle(r)]),attrs:{_i:"4-"+a}})})),0):t._e()])},i=[]},"49ca":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={circleProgress:{percentage:30}}},"4b6b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swiper:{list:function(){return[]},indicator:!1,indicatorActiveColor:"#FFFFFF",indicatorInactiveColor:"rgba(255, 255, 255, 0.35)",indicatorStyle:"",indicatorMode:"line",autoplay:!0,current:0,currentItemId:"",interval:3e3,duration:300,circular:!1,previousMargin:0,nextMargin:0,acceleration:!1,displayMultipleItems:1,easingFunction:"default",keyName:"url",imgMode:"aspectFill",height:130,bgColor:"#f3f4f6",radius:4,loading:!1,showTitle:!1}}},"4bee":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{hairline:{type:Boolean,default:uni.$u.props.button.hairline},type:{type:String,default:uni.$u.props.button.type},size:{type:String,default:uni.$u.props.button.size},shape:{type:String,default:uni.$u.props.button.shape},plain:{type:Boolean,default:uni.$u.props.button.plain},disabled:{type:Boolean,default:uni.$u.props.button.disabled},loading:{type:Boolean,default:uni.$u.props.button.loading},loadingText:{type:[String,Number],default:uni.$u.props.button.loadingText},loadingMode:{type:String,default:uni.$u.props.button.loadingMode},loadingSize:{type:[String,Number],default:uni.$u.props.button.loadingSize},openType:{type:String,default:uni.$u.props.button.openType},formType:{type:String,default:uni.$u.props.button.formType},appParameter:{type:String,default:uni.$u.props.button.appParameter},hoverStopPropagation:{type:Boolean,default:uni.$u.props.button.hoverStopPropagation},lang:{type:String,default:uni.$u.props.button.lang},sessionFrom:{type:String,default:uni.$u.props.button.sessionFrom},sendMessageTitle:{type:String,default:uni.$u.props.button.sendMessageTitle},sendMessagePath:{type:String,default:uni.$u.props.button.sendMessagePath},sendMessageImg:{type:String,default:uni.$u.props.button.sendMessageImg},showMessageCard:{type:Boolean,default:uni.$u.props.button.showMessageCard},dataName:{type:String,default:uni.$u.props.button.dataName},throttleTime:{type:[String,Number],default:uni.$u.props.button.throttleTime},hoverStartTime:{type:[String,Number],default:uni.$u.props.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:uni.$u.props.button.hoverStayTime},text:{type:[String,Number],default:uni.$u.props.button.text},icon:{type:String,default:uni.$u.props.button.icon},iconColor:{type:String,default:uni.$u.props.button.icon},color:{type:String,default:uni.$u.props.button.color}}};e.default=r},"4d10":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={namespaced:!0,state:function(){return{token:"",account:"",visited:[],userInfo:{},refreshToken:""}},mutations:{setToken:function(t,e){uni.setStorageSync("user_token",e.accessToken),uni.setStorageSync("refresh_token",e.refreshToken),t.token=e.accessToken,t.refreshToken=e.refreshToken},setRefreshToken:function(t,e){uni.setStorageSync("user_refresh_token",e),t.refreshToken=e},setAccount:function(t,e){uni.setStorageSync("user_account",e),t.account=e},setUserInfo:function(t,e){uni.setStorageSync("user_info",JSON.stringify(e)),t.userInfo=e},addVisited:function(e,n){if(n.account){var i=e.visited;if(0===i.length){var a=uni.getStorageSync("user_visited");if(a)try{i=JSON.parse(a)}catch(c){t("log",c," at service/store/modules/user.js:39")}}var o=!1;"array"!==(0,r.getObjectType)(i)&&(i=[],o=!0);for(var s=!1,u=0;u<i.length;u++)if(i[u].account===n.account){s=!0;break}s?o&&(e.visited=i,uni.setStorageSync("user_visited",JSON.stringify(i))):(i.push(n),e.visited=i,uni.setStorageSync("user_visited",JSON.stringify(i)))}},clear:function(t){t.token="",t.refreshToken="",t.userInfo={},t.account="",uni.removeStorageSync("user_token"),uni.removeStorageSync("user_info"),uni.removeStorageSync("user_account"),uni.removeStorageSync("user_refresh_token")}},actions:{},getters:{getToken:function(t){var e=t.token;if(!e){var n=uni.getStorageSync("user_token");n&&(e=n,t.token=e)}return e},getRefreshToken:function(t){var e=t.refreshToken;if(!e){var n=uni.getStorageSync("user_refresh_token");n&&(e=n,t.refreshToken=e)}return e},getUserInfo:function(e){var n=e.userInfo;if(!n||!n.id){var r=uni.getStorageSync("user_info");if(r)try{n=JSON.parse(r),e.userInfo=n}catch(i){t("log","storage user_info err parse to json"," at service/store/modules/user.js:111")}}return n},getAccount:function(t){var e=t.account;if(!e){var n=uni.getStorageSync("user_account");n&&(e=n,t.account=e)}return e},getVisited:function(e){var n=e.visited;if(!n.length){var i=uni.getStorageSync("user_visited");if(i)try{var a=JSON.parse(i);"array"===(0,r.getObjectType)(a)&&(n=a,e.visited=n)}catch(o){t("log",o," at service/store/modules/user.js:140")}}return n}}};e.default=i}).call(this,n("0de9")["default"])},"4d3b":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("f21e")),o=r(n("7141")),s=r(n("d5f2")),u=r(n("8863")),c=r(n("55e1")),l=r(n("b362")),f=r(n("296f")),d=r(n("e464")),p=r(n("e05a")),h=r(n("6e26")),v=r(n("27ca")),m=r(n("6dbe")),g=r(n("049f")),y=r(n("5a434")),b=r(n("f85d")),_=r(n("49ca")),w=r(n("5e0a")),x=r(n("2408")),S=r(n("5215")),C=r(n("eed4")),A=r(n("3084")),O=r(n("cd42")),P=r(n("db6f")),I=r(n("b5ac")),$=r(n("cbbc")),j=r(n("f3d4")),E=r(n("779d")),k=r(n("bbd8")),T=r(n("792e")),B=r(n("05ad")),M=r(n("98fc")),N=r(n("405c")),F=r(n("564b")),D=r(n("99dd")),L=r(n("8638")),U=r(n("15e2")),R=r(n("0cde")),V=r(n("741f")),H=r(n("7e8a")),Q=r(n("a0c0")),q=r(n("553a")),z=r(n("9bc1")),X=r(n("8ab5")),W=r(n("3336")),Y=r(n("a57a")),G=r(n("163c")),J=r(n("85ed")),K=r(n("fbd1")),Z=r(n("9808")),tt=r(n("f13b")),et=r(n("7b78")),nt=r(n("7972")),rt=r(n("5b38")),it=r(n("a0b9")),at=r(n("977f")),ot=r(n("e77b")),st=r(n("c2d9")),ut=r(n("e7c0")),ct=r(n("df04")),lt=r(n("7724")),ft=r(n("3846")),dt=r(n("2f0e")),pt=r(n("65a0")),ht=r(n("3c66")),vt=r(n("ef74")),mt=r(n("b8fc")),gt=r(n("d18f")),yt=r(n("344a")),bt=r(n("8aec")),_t=r(n("4d5c")),wt=r(n("1c52")),xt=r(n("e253")),St=r(n("2133")),Ct=r(n("efda")),At=r(n("8384")),Ot=r(n("4b6b")),Pt=r(n("744f")),It=r(n("30d9")),$t=r(n("955f")),jt=r(n("39c3")),Et=r(n("ba3e")),kt=r(n("abe8")),Tt=r(n("9ec1")),Bt=r(n("618c")),Mt=r(n("744d")),Nt=r(n("48cd")),Ft=r(n("cc61")),Dt=r(n("2db5")),Lt=r(n("5e1a"));function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}a.default.color;var Vt=Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt({},o.default),s.default),u.default),c.default),l.default),f.default),d.default),p.default),h.default),v.default),m.default),g.default),y.default),b.default),_.default),w.default),x.default),S.default),C.default),A.default),O.default),P.default),I.default),$.default),j.default),E.default),k.default),T.default),B.default),M.default),N.default),F.default),D.default),L.default),U.default),R.default),V.default),H.default),Q.default),q.default),z.default),X.default),W.default),Y.default),G.default),J.default),K.default),Z.default),tt.default),et.default),nt.default),rt.default),it.default),at.default),ot.default),st.default),ut.default),ct.default),lt.default),ft.default),dt.default),pt.default),ht.default),vt.default),mt.default),gt.default),yt.default),bt.default),_t.default),wt.default),xt.default),St.default),Ct.default),At.default),Ot.default),Pt.default),It.default),$t.default),jt.default),Et.default),kt.default),Tt.default),Bt.default),Mt.default),Nt.default),Ft.default),Dt.default),Lt.default);e.default=Vt},"4d5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={steps:{direction:"row",current:0,activeColor:"#3c9cff",inactiveColor:"#969799",activeIcon:"",inactiveIcon:"",dot:!1}}},"4dbb":function(t,e,n){"use strict";var r=n("7037");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!e)return t;var n;if(i.isURLSearchParams(e))n=e.toString();else{var r=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e="".concat(e,"[]"):t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),r.push("".concat(o(e),"=").concat(o(t)))})))})),n=r.join("&")}if(n){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=t[s]}i.default=t,n&&n.set(t,i);return i}(n("c60d"));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"4ea8":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u4eba\u5de5\u8865\u6599",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("12-"+i,"sc","bottom-btns-row"),attrs:{_i:"12-"+i}},[[n("div",{staticClass:r._$s("14-"+i,"sc","btn-frame"),attrs:{_i:"14-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u786e \u5b9a",disabled:t.abled,_i:"15-"+i},on:{click:t.onSubmit}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("scan-input-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u4ef6\u53f7",_i:4},nativeOn:{click:function(e){t.visible=!0}},model:{value:t._$s(4,"v-model",t.form.materialNo),callback:function(e){t.$set(t.form,"materialNo",e)},expression:"form.materialNo"}}),n("EasyPicker",{attrs:{visible:t.visible,list:t.materialData,labelField:"materialNo",valueField:"materialNo",_i:5},on:{"update:visible":function(e){t.visible=e},select:t.getMaterialNoVal}}),n("scan-input-form-item",{staticClass:t._$s(6,"sc","forma-item"),attrs:{disabled:!0,placeholder:"",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u7269\u6599\u7c7b\u578b",value:t.getParseDic("material_type",t.form.materialType),_i:6}}),n("scan-input-form-item",{staticClass:t._$s(7,"sc","forma-item"),attrs:{disabled:!0,placeholder:"",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u7269\u6599\u578b\u53f7",value:t.getParseDic("material_modal",t.form.materialModel),_i:7}}),n("scan-input-form-item",{staticClass:t._$s(8,"sc","forma-item"),attrs:{label:"\u6570\u91cf",type:"number",hasScan:!1,hasSearch:!1,_i:8},on:{blur:t.numberBlur},model:{value:t._$s(8,"v-model",t.form.materialNumber),callback:function(e){t.$set(t.form,"materialNumber",e)},expression:"form.materialNumber"}}),n("scan-input-form-item",{staticClass:t._$s(9,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u662f\u5426\u81ea\u52a8\u5206\u62e3",_i:9},nativeOn:{click:function(e){t.visibleSort=!0}},model:{value:t._$s(9,"v-model",t.form.sorting),callback:function(e){t.$set(t.form,"sorting",e)},expression:"form.sorting"}}),n("EasyPicker",{attrs:{visible:t.visibleSort,list:t.isSorting,labelField:"label",valueField:"value",_i:10},on:{"update:visible":function(e){t.visibleSort=e},select:t.radioChange}})],1)],1):t._e()])},a=[]},"514e":function(t,e,n){"use strict";n.r(e);var r=n("025b"),i=n("ade4");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"72cb839f",null,!1,r["a"],void 0);e["default"]=s.exports},5156:function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("1696");t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},5215:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={col:{span:12,offset:0,justify:"start",align:"stretch",textAlign:"left"}}},5230:function(t,e,n){"use strict";n.r(e);var r=n("eb6e"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},5331:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("c591")),s=r(n("84c4")),u=r(n("bfc4")),c=r(n("b62a")),l=n("6d9d"),f=n("16f3"),d=n("3e34"),p=n("979b"),h=null,v={name:"emptyOutPage",components:{DefaultHeaderPageLayout:o.default,ActionUserRow:s.default,EasySelectFormItem:c.default,ScanInputFormItem:u.default},data:function(){return{pageBodyHeight:0,form:{placeNo:"",areaNo:"",areaName:""},areaList:[]}},methods:{selectPlace:function(t,e){var n=this;return(0,a.default)(i.default.mark((function r(){var a;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:n.form.areaNo=e.areaCode,n.form.placeNo=t,a=n.areaList.filter((function(t){return t.areaNo==e.areaCode})),n.form.areaName=a.length>0?a[0].areaName:"";case 4:case"end":return r.stop()}}),r)})))()},getAreaInfo:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,d.getAreaInfo)();case 3:r=n.sent,a=r.result,e.areaList=a,n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t("log",n.t0," at pages/emptyOut/index.vue:85");case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))()},onConfirm:function(){var e=this;return(0,a.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,p.callEmptyContainer)(e.form);case 3:(0,l.$alert)("\u547c\u53eb\u7a7a\u6258\u6210\u529f"),e.form={placeNo:"",areaNo:"",areaName:""},n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](0),t("log",n.t0," at pages/emptyOut/index.vue:99");case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))()},startInitInterval:function(t){var e=this;h=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(h),h=null}catch(t){}}},mixins:[f.palceList],onReady:function(){var t=this;this.startInitInterval((0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getPalceList({areaCode:"GGXX"}),t.getPalceList({areaCode:"JTXX"}),t.getAreaInfo();case 3:case"end":return e.stop()}}),e)}))))},onUnload:function(){this.clearInitInterval()}};e.default=v}).call(this,n("0de9")["default"])},5370:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("c591")),s=r(n("84c4")),u=r(n("bfc4")),c=r(n("b62a")),l=r(n("733c")),f=r(n("9a83")),d=n("6d9d"),p=n("16f3"),h=n("082c"),v=null,m={name:"receiveInPage",components:{DefaultHeaderPageLayout:o.default,ActionUserRow:s.default,ScanInputFormItem:u.default,EasySelectFormItem:c.default,materialList:f.default,EasyPicker:l.default},data:function(){return{pageBodyHeight:0,containter:null,form:{containterCode:"",materialNo:"",site:"",containerTypeCode:0,containerType:""},msg:{containter:"",material:"",site:""},msgType:{containter:"info",material:"error",site:"error"},containerInfo:{},materialData:[],ContainerType:[],visible:!1,ctVisible:!1}},computed:{abled:function(){var t=this.containerInfo.containerStatus;return 0!=t&&3!=t&&this.materialData.length>0}},watch:{"form.containterCode":{handler:function(t,e){this.resetContainerNo()}}},methods:{addVirtualTask:function(){var e=this;return(0,a.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,h.addAGVTask)({containerNo:e.form.containterCode});case 3:(0,d.$alert)("\u751f\u6210\u4efb\u52a1\u6210\u529f"),n.next=9;break;case 6:n.prev=6,n.t0=n["catch"](0),t("log",n.t0," at pages/bind/index.vue:131");case 9:case"end":return n.stop()}}),n,null,[[0,6]])})))()},getSiteVal:function(t,e,n){this.form.site=t},getTypeVal:function(t,e,n){this.form.containerTypeCode=e.code,this.form.containerType=e.value},onSearchContainter:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.form.containterCode){n.next=4;break}return e.msgType.containter="error",e.msg.containter="\u8bf7\u8f93\u5165\u6258\u76d8\u53f7\uff01",n.abrupt("return",!1);case 4:return n.prev=4,n.next=7,(0,h.getForContainerCode)({code:e.form.containterCode});case 7:r=n.sent,a=r.result,e.containerInfo=a,o=(0,d.parseDic)(e.$store,"container_status",null===a||void 0===a?void 0:a.containerStatus),o="\u65e0\u6b64\u5b57\u5178"==o?"":o,e.msg.containter="\u72b6\u6001\uff1a".concat(o,", \u5c3a\u5bf8\uff1a").concat(null===a||void 0===a?void 0:a.specLength,"*").concat(null===a||void 0===a?void 0:a.specWidth,"*").concat(null===a||void 0===a?void 0:a.specHeight),null===a||void 0===a||a.materialContainers.forEach((function(n){t("log",n,e.materialData," at pages/bind/index.vue:165");var r=e.materialData.some((function(t){return t.materialId==n.materialId}));r||e.materialData.push(n)})),n.next=19;break;case 16:n.prev=16,n.t0=n["catch"](4),t("log",n.t0," at pages/bind/index.vue:174");case 19:case"end":return n.stop()}}),n,null,[[4,16]])})))()},onClearContainter:function(){this.form={containterCode:"",materialNo:"",site:"",containerTypeCode:0,containerType:""},this.$set(this.form,"site",""),this.resetContainerNo()},resetContainerNo:function(){this.msg={containter:"",material:"",site:""},this.msgType={containter:"info",material:"error",site:"error"},this.containerStatus=null,this.materialData=[],this.form.materialNo="",this.form.site="",this.form.containerTypeCode=0,this.form.containerType="",this.containerInfo={}},onSearchMaterial:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.form.materialNo){n.next=3;break}return e.msg.material="\u8bf7\u8f93\u5165\u7269\u6599\u7f16\u53f7\uff01",n.abrupt("return",!1);case 3:return e.msg.material="",n.prev=4,n.next=7,(0,h.getForMaterialNo)({code:e.form.materialNo});case 7:r=n.sent,a=r.result,o=e.materialData.some((function(t){return t.materialId==a.materialId})),o||e.materialData.push(a),n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](4),t("log",n.t0," at pages/bind/index.vue:227");case 16:case"end":return n.stop()}}),n,null,[[4,13]])})))()},onClearMaterial:function(){this.form.materialNo=""},delMaterialData:function(t){this.materialData=this.materialData.filter((function(e){return e.materialId!=t}))},onSubmit:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(2!=e.containerInfo.isExist||0!=e.form.containerTypeCode){n.next=2;break}return n.abrupt("return",(0,d.$alert)("\u8bf7\u9009\u62e9\u6258\u76d8\u7c7b\u578b\uff01"));case 2:return r={containerNo:e.form.containterCode,containerType:e.form.containerTypeCode,materialContainerList:e.materialData},n.prev=3,n.next=6,(0,h.bindMaterialContainer)(r);case 6:e.$modal("\u7ec4\u76d8\u6210\u529f"),e.onClearContainter(),n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](3),t("log",n.t0," at pages/bind/index.vue:254");case 13:case"end":return n.stop()}}),n,null,[[3,10]])})))()},addInBound:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(2!=e.containerInfo.isExist||0!=e.form.containerTypeCode){n.next=2;break}return n.abrupt("return",(0,d.$alert)("\u8bf7\u9009\u62e9\u6258\u76d8\u7c7b\u578b\uff01"));case 2:return r={type:1,stationNo:e.form.site,containerNo:e.form.containterCode,containerType:e.form.containerTypeCode,materialContainerList:e.materialData},n.prev=3,n.next=6,(0,h.addInBound)(r);case 6:e.$modal("\u5165\u5e93\u6210\u529f"),e.onClearContainter(),n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](3),t("log",n.t0," at pages/bind/index.vue:276");case 13:case"end":return n.stop()}}),n,null,[[3,10]])})))()},addVirtual:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={containerNo:e.form.containterCode,stationNo:"JTXX1",materialContainerList:e.materialData},n.prev=1,n.next=4,(0,h.addInVirtualPlace)(r);case 4:e.$modal("\u81ea\u5236\u4ef6\u5165\u5e93\u6210\u529f"),e.onClearContainter(),n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](1),t("log",n.t0," at pages/bind/index.vue:292");case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},startInitInterval:function(t){var e=this;v=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(v),v=null}catch(t){}}},mixins:[p.palceList],onReady:function(){var t=this;this.startInitInterval((0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getPalceList({areaCode:"SDCR"}),t.ContainerType=(0,d.getDicList)(t.$store,"container_type").sysDictDatas;case 2:case"end":return e.stop()}}),e)}))))},onUnload:function(){this.clearInitInterval()}};e.default=m}).call(this,n("0de9")["default"])},"53c1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{contaninerData:{type:Array,default:function(){return[]}}},data:function(){return{options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}],materialModalData:[]}},methods:{parseDic:r.parseDic,deleteItem:function(t){var e=t.name;this.$emit("delContainer",e)}}};e.default=i},5402:function(t,e,n){"use strict";var r=n("00ce"),i=n("545e"),a=n("2714"),o=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),v=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new o("Side channel does not contain "+a(t))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return c(t,r)}else if(u){if(e)return d(e,r)}else if(n)return function(t,e){var n=v(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return f(t,r)}else if(u){if(e)return h(e,r)}else if(n)return function(t,e){return!!v(t,e)}(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(t||(t=new s),l(t,r,i)):u?(e||(e=new u),p(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=v(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},"545e":function(t,e,n){"use strict";var r=n("00ce"),i=n("3eb1"),a=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"===typeof n&&a(t,".prototype.")>-1?i(n):n}},"54bd":function(t,e,n){"use strict";n.r(e);var r=n("c439"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"553a":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("f21e")),a=i.default.color,o={link:{color:a["u-primary"],fontSize:15,underLine:!1,href:"",mpTips:"\u94fe\u63a5\u5df2\u590d\u5236\uff0c\u8bf7\u5728\u6d4f\u89c8\u5668\u6253\u5f00",lineColor:"",text:""}};e.default=o},"55e1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={avatar:{src:"",shape:"circle",size:40,mode:"scaleToFill",text:"",bgColor:"#c0c4cc",color:"#ffffff",fontSize:18,icon:"",mpAvatar:!1,randomBgColor:!1,defaultUrl:"",colorIndex:"",name:""}}},"564b":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("f21e")),a=i.default.color,o={icon:{name:"",color:a["u-content-color"],size:"16px",bold:!1,index:"",hoverClass:"",customPrefix:"uicon",label:"",labelPos:"right",labelSize:"15px",labelColor:a["u-content-color"],space:"3px",imgMode:"",width:"",height:"",top:0,stop:!1}};e.default=o},"578b":function(t,e,n){"use strict";n.r(e);var r=n("fa0e"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"579b":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.exceptionInfo=function(t){return(0,i.default)({url:"/api/wmsSortOrder/exceptionInfo?".concat(a.default.stringify(t)),method:"get"})},e.lisNoPage=function(t){return(0,i.default)({url:"/api/place/listNoPage",method:"post",data:t})},e.outBound=function(t){return(0,i.default)({url:"/api/wmsSortOrder/exceptionHandle",method:"post",data:t})};var i=r(n("98af")),a=r(n("4328"))},5869:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={primary:"#3c9cff",info:"#909399",default:"#909399",warning:"#f9ae3d",error:"#f56c6c",success:"#5ac725",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"};e.default=r},5921:function(t,e,n){"use strict";n.r(e);var r=n("cbe2"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"59a2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{model:{type:Object,default:uni.$u.props.form.model},rules:{type:[Object,Function,Array],default:uni.$u.props.form.rules},errorType:{type:String,default:uni.$u.props.form.errorType},borderBottom:{type:Boolean,default:uni.$u.props.form.borderBottom},labelPosition:{type:String,default:uni.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.form.labelWidth},labelAlign:{type:String,default:uni.$u.props.form.labelAlign},labelStyle:{type:Object,default:uni.$u.props.form.labelStyle}}};e.default=r},"59ef":function(t,e,n){"use strict";n.r(e);var r=n("1983"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"5a09":function(t,e,n){"use strict";n.r(e);var r=n("953f"),i=n("f98d");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"076eee30",null,!1,r["a"],void 0);e["default"]=s.exports},"5a43":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports["default"]=t.exports},"5a434":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={checkbox:{name:"",shape:"",size:"",checkbox:!1,disabled:"",activeColor:"",inactiveColor:"",iconSize:"",iconColor:"",label:"",labelSize:"",labelColor:"",labelDisabled:""}}},"5a8b":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("970b")),o=r(n("5bc3")),s=r(n("1c6a")),u=n("6d9d");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=Symbol("parseThirdOptions"),d=Symbol("goLogin"),p=Symbol("api"),h=function(){function e(t,n){(0,a.default)(this,e),this.$store=t,this.$config=n,this.$noTokenMsg="Token\u4e22\u5931\uff01",this.$invalidTokenMsg="\u767b\u5f55\u5df2\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\uff01"}return(0,o.default)(e,[{key:f,value:function(t){var e=l({},{warn:!0,host:"default",block:"default",needToken:!0,fullRes:!1,loading:!0});return t&&("string"===typeof t?e.block=t:"object"===(0,u.getObjectType)(t)&&(e=l(l({},e),t))),e}},{key:d,value:function(){var t=getCurrentPages();"/"+t[0].route!==this.$config.path.login&&uni.redirectTo({url:this.$config.path.login})}},{key:p,value:function(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return new Promise((function(s,c){e=e.toUpperCase();var f=r.getHeaders(a),p={};if(f.flag){p=f.headers;var h=r.getUrl(n,a,!0);if("POST"===e||"PUT"===e||"PATCH"===e){var v="";if("object"===(0,u.getObjectType)(o)){var m=[];for(var g in o)m.push(g+"="+o[g]);v=m.join("&")}v&&(h.indexOf("?")<0?h+="?"+v:h+="&"+v)}else i=l(l({},i),{timekey:(new Date).getTime()});var y={url:h,data:i,method:e,header:p,success:function(e){if(e.header["access-token"]&&"invalid_token"!==e.header["access-token"]&&r.$store.commit("user/setToken",e.header["access-token"]),e.header["x-access-token"]&&r.$store.commit("user/setRefreshToken",e.header["x-access-token"]),200===e.statusCode)if(r.$config.ajax.host[a.host]&&"mock"!==a.host)if(401===e.data.code){r[d]();var n=e.data.message;n||(n=r.$invalidTokenMsg),c(n)}else if(200===e.data.code)a.fullRes?(t("log",e.data,"1"," at service/request/index.js:114"),s(e.data)):s(e.data.data||e.data.result);else{t("log","Ajax backstage Error, return: ",e.data," at service/request/index.js:118");var i=e.data.message;i||(i=r.$config.ajax.errMsg),c(i)}else s(e.data);else t("log","Ajax Error Code: "+e.statusCode," at service/request/index.js:125"),c(r.$config.ajax.errMsg)},fail:function(t){c(r.$config.ajax.errMsg)}};uni.request(y)}else r[d](),c(r.$noTokenMsg)}))}},{key:"getHeaders",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={flag:!0,headers:{}};n||(t=this[f](t)),e&&"object"===(0,u.getObjectType)(e)&&(r.headers=e);var i=(0,s.default)(t,this.$store,r.headers);return i.flag?r.headers=i.headers:r.flag=!1,r}},{key:"getUrl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t;n||(e=this[f](e));var i,a=this.$config.ajax.host[e.host];try{i=this.$store.getters["system/get"+e.host+"Host"]}catch(o){}return i&&(a=i),r=a+this.$config.ajax.block[e.block]+r,r}},{key:"base",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return i=this[f](i),i.loading&&uni.showLoading({title:"\u52a0\u8f7d\u4e2d...",mask:!0}),new Promise((function(o,s){n[p](t,e,r,i,a).then((function(t){i.loading&&uni.hideLoading(),o(t)})).catch((function(t){i.loading&&uni.hideLoading(),"string"!==typeof t&&(t=n.$config.ajax.errMsg),i.warn&&setTimeout((function(){uni.showModal({title:"\u7cfb\u7edf\u63d0\u793a",content:t,showCancel:!1})}),100),s(t)}))}))}}]),e}();h.prototype.get=function(t,e,n){return this.base("GET",t,e,n,{})},h.prototype.post=function(t,e,n,r){return this.base("POST",t,e,n,r)},h.prototype.put=function(t,e,n,r){return this.base("PUT",t,e,n,r)},h.prototype.delete=function(t,e,n){return this.base("DELETE",t,e,n,{})},h.prototype.patch=function(t,e,n,r){return this.base("PATCH",t,e,n,r)};var v=h;e.default=v}).call(this,n("0de9")["default"])},"5b38":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={numberKeyboard:{mode:"number",dotDisabled:!1,random:!1}}},"5bc3":function(t,e,n){var r=n("a395");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"5e0a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={code:{seconds:60,startText:"\u83b7\u53d6\u9a8c\u8bc1\u7801",changeText:"X\u79d2\u91cd\u65b0\u83b7\u53d6",endText:"\u91cd\u65b0\u83b7\u53d6",keepRunning:!1,uniqueKey:""}}},"5e1a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={upload:{accept:"image",capture:function(){return["album","camera"]},compressed:!0,camera:"back",maxDuration:60,uploadIcon:"camera-fill",uploadIconColor:"#D3D4D6",useBeforeRead:!1,previewFullImage:!0,maxCount:52,disabled:!1,imageMode:"aspectFill",name:"",sizeType:function(){return["original","compressed"]},multiple:!1,deletable:!0,maxSize:Number.MAX_VALUE,fileList:function(){return[]},uploadText:"",width:80,height:80,previewImage:!0}};e.default=r},"5fbf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"fullPageCompontent",props:{gradient:{type:Boolean,default:!1},gradientValue:{type:String,default:"default"},backgroundColor:{type:String,default:""},safety:{type:Boolean,default:!0},full:{type:Boolean,default:!0},baseBackgroundColor:{type:String,default:""}},data:function(){return{safetySize:{top:0,bottom:0,left:0,right:0}}},beforeMount:function(){var t=this;if(this.safety){var e=this.$store.getters["system/getSafety"];e?(this.safetySize.top=e.top,this.safetySize.bottom=e.bottom,this.safetySize.left=e.left,this.safetySize.right=e.right):uni.getSystemInfo({success:function(e){e.safeAreaInsets||(e.safeAreaInsets={}),t.safetySize.top=e.safeAreaInsets.top||0,t.safetySize.bottom=e.safeAreaInsets.bottom||0,t.safetySize.left=e.safeAreaInsets.left||0,t.safetySize.right=e.safeAreaInsets.right||0}})}}};e.default=r},"602b":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uLoadingIcon:n("fbfa").default,uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:t._$s(0,"sc","u-button u-reset-button"),class:t._$s(0,"c",t.bemClass),style:t._$s(0,"s",[t.baseColor,t.$u.addStyle(t.customStyle)]),attrs:{"hover-start-time":t._$s(0,"a-hover-start-time",Number(t.hoverStartTime)),"hover-stay-time":t._$s(0,"a-hover-stay-time",Number(t.hoverStayTime)),"form-type":t._$s(0,"a-form-type",t.formType),"open-type":t._$s(0,"a-open-type",t.openType),"app-parameter":t._$s(0,"a-app-parameter",t.appParameter),"hover-stop-propagation":t._$s(0,"a-hover-stop-propagation",t.hoverStopPropagation),"send-message-title":t._$s(0,"a-send-message-title",t.sendMessageTitle),"send-message-path":t._$s(0,"a-send-message-path",t.sendMessagePath),lang:t._$s(0,"a-lang",t.lang),"data-name":t._$s(0,"a-data-name",t.dataName),"session-from":t._$s(0,"a-session-from",t.sessionFrom),"send-message-img":t._$s(0,"a-send-message-img",t.sendMessageImg),"show-message-card":t._$s(0,"a-show-message-card",t.showMessageCard),"hover-class":t._$s(0,"a-hover-class",t.disabled||t.loading?"":"u-button--active"),_i:0},on:{getphonenumber:t.getphonenumber,getuserinfo:t.getuserinfo,error:t.error,opensetting:t.opensetting,launchapp:t.launchapp,click:t.clickHandler}},[t._$s(1,"i",t.loading)?[n("u-loading-icon",{attrs:{mode:t.loadingMode,size:1.15*t.loadingSize,color:t.loadingColor,_i:2}}),n("text",{staticClass:t._$s(3,"sc","u-button__loading-text"),style:t._$s(3,"s",[{fontSize:t.textSize+"px"}]),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.loadingText||t.text)))])]:[t._$s(5,"i",t.icon)?n("u-icon",{attrs:{name:t.icon,color:t.iconColorCom,size:1.35*t.textSize,customStyle:{marginRight:"2px"},_i:5}}):t._e(),t._t("default",[n("text",{staticClass:t._$s(7,"sc","u-button__text"),style:t._$s(7,"s",[{fontSize:t.textSize+"px"}]),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.text)))])],{_i:6})]],2)},a=[]},"610d":function(t,e,n){"use strict";n.r(e);var r=n("a6b3"),i=n("39a9");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"ed671f4a",null,!1,r["a"],void 0);e["default"]=s.exports},"618c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={textarea:{value:"",placeholder:"",placeholderClass:"textarea-placeholder",placeholderStyle:"color: #c0c4cc",height:70,confirmType:"done",disabled:!1,count:!1,focus:!1,autoHeight:!1,fixed:!1,cursorSpacing:0,cursor:"",showConfirmBar:!0,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,disableDefaultPadding:!1,holdKeyboard:!1,maxlength:140,border:"surround",formatter:null}}},6222:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;r(n("dad7")),r(n("f749"));var i=r(n("4bee")),a={name:"u-button",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},computed:{bemClass:function(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor:function(){return this.plain?this.color?this.color:uni.$u.config.color["u-".concat(this.type)]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom:function(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor:function(){var t={};return this.color&&(t.color=this.plain?this.color:"white",this.plain||(t["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(t.borderTopWidth=0,t.borderRightWidth=0,t.borderBottomWidth=0,t.borderLeftWidth=0,this.plain||(t.backgroundImage=this.color)):(t.borderColor=this.color,t.borderWidth="1px",t.borderStyle="solid")),t},nvueTextStyle:function(){var t={};return"info"===this.type&&(t.color="#323233"),this.color&&(t.color=this.plain?this.color:"white"),t.fontSize=this.textSize+"px",t},textSize:function(){var t=14,e=this.size;return"large"===e&&(t=16),"normal"===e&&(t=14),"small"===e&&(t=12),"mini"===e&&(t=10),t}},methods:{clickHandler:function(){var t=this;this.disabled||this.loading||uni.$u.throttle((function(){t.$emit("click")}),this.throttleTime)},getphonenumber:function(t){this.$emit("getphonenumber",t)},getuserinfo:function(t){this.$emit("getuserinfo",t)},error:function(t){this.$emit("error",t)},opensetting:function(t){this.$emit("opensetting",t)},launchapp:function(t){this.$emit("launchapp",t)}}};e.default=a},6337:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965}},"64bd":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7037")),a=r(n("ada8")),o={name:"u-swiper",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],data:function(){return{currentIndex:0}},watch:{current:function(t,e){t!==e&&(this.currentIndex=t)}},computed:{itemStyle:function(){var t=this;return function(e){var n={};return t.nextMargin&&t.previousMargin&&(n.borderRadius=uni.$u.addUnit(t.radius),e!==t.currentIndex&&(n.transform="scale(0.92)")),n}}},methods:{getItemType:function(t){return"string"===typeof t?uni.$u.test.video(this.getSource(t))?"video":"image":"object"===(0,i.default)(t)&&this.keyName?t.type?"image"===t.type?"image":"video"===t.type?"video":"image":uni.$u.test.video(this.getSource(t))?"video":"image":void 0},getSource:function(t){return"string"===typeof t?t:"object"===(0,i.default)(t)&&this.keyName?t[this.keyName]:(uni.$u.error("\u8bf7\u6309\u683c\u5f0f\u4f20\u9012\u5217\u8868\u53c2\u6570"),"")},change:function(t){var e=t.detail.current;this.pauseVideo(this.currentIndex),this.currentIndex=e,this.$emit("change",t.detail)},pauseVideo:function(t){var e=this.getSource(this.list[t]);if(uni.$u.test.video(e)){var n=uni.createVideoContext("video-".concat(t),this);n.pause()}},getPoster:function(t){return"object"===(0,i.default)(t)&&t.poster?t.poster:""},clickHandler:function(t){this.$emit("click",t)}}};e.default=o},"650f":function(t,e,n){"use strict";n.r(e);var r=n("7159"),i=n("2d28");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"01127184",null,!1,r["a"],void 0);e["default"]=s.exports},"651d":function(t,e,n){"use strict";n.r(e);var r=n("c119"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"654f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("3533")),o=r(n("733c")),s=n("6d9d");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={name:"loginPage",components:{FullPageLayout:a.default,EasyPicker:o.default},data:function(){return{form:{account:"",password:""},rules:{account:{trigger:["change"],required:!0,message:"\u8bf7\u8f93\u5165\u8d26\u53f7\uff01"},password:{trigger:["change"],required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801\uff01"}},version:"",userVisited:[],userPickerVisible:!1,settingList:["\u84dd\u7259\u8fde\u63a5","\u63a5\u53e3\u57df\u540d"],settingPickerVisible:!1,pwdVisible:!1,safetyTop:0,pwdKey:0}},methods:{onChangePwdVisible:function(){this.pwdVisible=!this.pwdVisible,this.pwdKey=(new Date).getTime()},onLogin:function(){var t=this;this.$refs.form.validate().then((function(e){uni.showLoading({title:"Loading...",mask:!0});var n=t.$store.getters["user/getAccount"];n&&n===t.form.account?t.getLoginInfo((function(e){e&&uni.navigateTo({url:t.$config.path.home})})):t.doLogin((function(e){e&&t.getLoginInfo((function(e){e&&uni.navigateTo({url:t.$config.path.home})}))}))})).catch((function(t){}))},doLogin:function(t){var e=this,n=c({},this.form);this.$api.post("sysAuth/login",n,{needToken:!1,loading:!1}).then((function(n){e.$store.commit("user/setAccount",e.form.account),e.$store.commit("user/setToken",n),e.$store.commit("user/addVisited",c({},e.form)),t&&t(!0)})).catch((function(){uni.hideLoading(),t&&t(!1)}))},getLoginInfo:function(t){var e=this;Promise.all([this.$api.get("sysMenu/getPdaLoginUser",{},{loading:!1}),this.$api.get("sysDictType/allList",{},{loading:!1})]).then((function(n){var r=c({},n[0]);delete r.loginEmpInfo,delete r.apps,delete r.menus,e.$store.commit("user/setUserInfo",r),e.$store.commit("system/setEnum",n[1]),uni.hideLoading(),t&&t(!0)})).catch((function(){uni.hideLoading(),t&&t(!1)}))},onOpenUserPicker:function(){this.userPickerVisible=!0},onChangeInputUser:function(t,e){this.form.account=e.account,this.form.password=e.password},onOpenSettingPicker:function(){this.settingPickerVisible=!0},onGoSettingPage:function(t){"\u84dd\u7259\u8fde\u63a5"===t?uni.navigateTo({url:this.$config.path.bluetooth}):"\u63a5\u53e3\u57df\u540d"===t?uni.navigateTo({url:this.$config.path.host}):"\u65b0\u7248\u4e0b\u8f7d"===t&&(0,s.downloadApk)(this.$config)},getVersion:function(){this.version=this.$store.getters["system/getVersion"]}},onLoad:function(){this.getVersion(),this.safetyTop=this.$store.getters["system/getSafety"].top,this.settingList.push("\u65b0\u7248\u4e0b\u8f7d")},onReady:function(){this.$store.commit("user/clear"),this.userVisited=this.$store.getters["user/getVisited"],1===this.userVisited.length&&(this.form.account=this.userVisited[0].account,this.form.password=this.userVisited[0].password)}};e.default=l},6573:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pageNo:1,pageSize:10}},"65a0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={rowNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80}}},"65fa":function(t,e,n){"use strict";n.r(e);var r=n("ffe8"),i=n("21ef");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},6603:function(t,e,n){"use strict";n.r(e);var r=n("aef0"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},6613:function(t,e,n){var r=n("5a43");t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"67a6":function(t,e,n){"use strict";n.r(e);var r=n("98e4"),i=n("eaca");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},"67a8":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","scan-input-form-item-compontent"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","p-form-label"),attrs:{_i:1}}),t._$s(2,"i",Boolean(t.placeInfo))?n("view",{staticClass:t._$s(2,"sc","material-item-group"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","material-list-item"),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","item-row"),attrs:{_i:4}},[n("view",{staticClass:t._$s(5,"sc","label"),attrs:{_i:5}}),n("view",{staticClass:t._$s(6,"sc","content auto-wrap"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.placeInfo.placeNo)))])]),n("view",{staticClass:t._$s(7,"sc","item-row"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","label"),attrs:{_i:8}}),n("view",{staticClass:t._$s(9,"sc","content auto-wrap"),attrs:{_i:9}},[t._v(t._$s(9,"t0-0",t._s(t.placeInfo.areaCode)))])])])]):t._e()])},i=[]},"67e2":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"RadioInputFormItemComponent",emits:["input","search","clear","blur","confirm","change"],props:{label:{type:String,default:""},msg:{type:String,default:""},msgType:{type:String,default:"error"},shape:{type:String,denfault:"square"},options:{type:Array,default:function(){return[]}},value:{type:[String,Number,null],default:""},hasScan:{type:Boolean,default:!0},hasSearch:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},data:function(){return{innerValue:""}},watch:{value:function(e,n){e!=this.innerValue&&(this.innerValue=e,t("log",this.innerValue," at components/RadioFormItem.vue:78"))},innerValue:function(t,e){t!==this.value&&(this.$emit("input",t),this.$emit("change",t))}},methods:{change:function(t){var e=t.detail;this.$emit("change",null===e||void 0===e?void 0:e.value)},onScan:function(){var e=this;uni.scanCode({success:function(t){e.innerValue=t.result},fail:function(){t("log","scanCode fail"," at components/RadioFormItem.vue:99")}})},onSearch:function(){this.$emit("search",this.innerValue)},onClear:function(){this.innerValue=null,this.$emit("clear")},onBlur:function(){this.$emit("blur",this.innerValue)},onConfirm:function(){this.$emit("search",this.innerValue)}},created:function(){this.innerValue=this.value}};e.default=n}).call(this,n("0de9")["default"])},"687f":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uvInput",{attrs:{value:t.value,type:t.type,fixed:t.fixed,disabled:t.disabled,disabledColor:t.disabledColor,clearable:t.clearable,password:t.password,maxlength:t.maxlength,placeholder:t.placeholder,placeholderClass:t.placeholderClass,placeholderStyle:t.placeholderStyle,showWordLimit:t.showWordLimit,confirmType:t.confirmType,confirmHold:t.confirmHold,holdKeyboard:t.holdKeyboard,focus:t.focus,autoBlur:t.autoBlur,disableDefaultPadding:t.disableDefaultPadding,cursor:t.cursor,cursorSpacing:t.cursorSpacing,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd,adjustPosition:t.adjustPosition,inputAlign:t.inputAlign,fontSize:t.fontSize,color:t.color,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,suffixIconStyle:t.suffixIconStyle,prefixIconStyle:t.prefixIconStyle,border:t.border,readonly:t.readonly,shape:t.shape,customStyle:t.customStyle,formatter:t.formatter,ignoreCompositionEvent:t.ignoreCompositionEvent,_i:0},on:{focus:function(e){return t.$emit("focus")},blur:function(e){return t.$emit("blur",e)},keyboardheightchange:function(e){return t.$emit("keyboardheightchange")},change:function(e){return t.$emit("change",e)},input:function(e){return t.$emit("input",e)},confirm:function(e){return t.$emit("confirm",e)},clear:function(e){return t.$emit("clear")},click:function(e){return t.$emit("click")}}},[t._t("prefix",null,{slot:"prefix",_i:1}),t._t("suffix",null,{slot:"suffix",_i:2})],2)},i=[]},"688e":function(t,e,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!==typeof e||"[object Function]"!==a.call(e))throw new TypeError(r+e);for(var n,o=i.call(arguments,1),s=function(){if(this instanceof n){var r=e.apply(this,o.concat(i.call(arguments)));return Object(r)===r?r:this}return e.apply(t,o.concat(i.call(arguments)))},u=Math.max(0,e.length-o.length),c=[],l=0;l<u;l++)c.push("$"+l);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var f=function(){};f.prototype=e.prototype,n.prototype=new f,f.prototype=null}return n}},"6a59":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default,"u-Form":n("9d87").default,uFormItem:n("354d").default,"u-Input":n("fa14").default,uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header-page-layout",{ref:"header",attrs:{title:"\u63a5\u53e3\u57df\u540d\u8bbe\u7f6e","base-background-color":"#f8f8ff","background-color":"#ffffff",_i:0},on:{headerclick:t.onHeaderClick},scopedSlots:t._u([{key:"headerleft",fn:function(t,e,r){return[n("u-icon",{attrs:{name:"arrow-left",_i:"2-"+r}})]}},{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("8-"+i,"sc","page-padding page-footer-padding"),attrs:{_i:"8-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u4fdd \u5b58",_i:"9-"+i},on:{click:t.onSave}})],1)]}}])},[n("view",{staticClass:t._$s(3,"sc","setting-host-page page-padding"),attrs:{_i:3}},[n("u--form",{ref:"form",attrs:{model:t.form,rules:t.rules,labelWidth:0,_i:4}},[n("u-form-item",{attrs:{prop:"host",_i:5}},[n("u--input",{attrs:{clearable:!0,placeholder:"\u8bf7\u8f93\u5165\u57df\u540d",_i:6},model:{value:t._$s(6,"v-model",t.form.host),callback:function(e){t.$set(t.form,"host","string"===typeof e?e.trim():e)},expression:"form.host"}})],1)],1)],1)])},a=[]},"6b67":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){var t=function(){var t={decode:function(t){for(var e="",n=0,i=t.length;n<i;n++){var a=255&t[n];if(a>128&&n+1<i){var o=255&t[n+1];o>=64&&(a=r[(a<<8|o)-33088],n++)}e+=String.fromCharCode(a)}return e},encode:function(t){t+="";for(var e=[],n="?".charCodeAt(0),i=0;i<t.length;i++){var a=t.charCodeAt(i);if(a<128)e.push(a);else{var o=r.indexOf(a);~o?(o+=33088,e.push(255&o>>8,255&o)):e.push(n)}}return e}};return t},e=function(t){function e(e){"!'()*-._~".split("").sort();return{encode:function(n){return(n+"").replace(/./g,(function(n){if(function(t){return e.indexOf(t)||/[0-9a-zA-Z]/.test(t)}(n))return n;for(var r=t.encode(n),i=0;i<r.length;i++)r[i]="%"+("0"+r[i].toString(16)).substr(-2).toUpperCase();return r.join("")}))},decode:function(e){e=String(e);for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("%"===i&&r+2<e.length){var a=parseInt(e.substr(r+1,2),16);if(!isNaN(a)){var o=r+2;if(!(a>128)){r+=2,n+=String.fromCharCode(a);continue}var s=void 0;if("%"===e.charAt(o+1)?(s=parseInt(e.substr(o+2,2),16),o+=3):(s=e.charCodeAt(o+1),o+=1),s>=64){r=o,n+=t.decode([a,s]);continue}}}n+=i}return n}}}var n=e("!'()*-._~"),r=e("!'()*-._~#$&+,/:;=?@");return{encodeURI:r.encode,decodeURI:r.decode,encodeURIComponent:n.encode,decodeURIComponent:n.decode}},n=function(){for(var t=0,e=arguments[0],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<38||i>126)return NaN;t+=(i-38)*Math.pow(89,r-n-1)}return t};var r=function(t){for(var e=[],r=129,i=0;r<=254;r++){e.length>0&&(e.length+=65);for(var a=64;a<=254;a++)if(127==a||161<=r&&r<=167&&a<=160||170<=r&&r<=175&&a>=161||248<=r&&a>=161)e.push(void 0);else{var o=t[i++],s=n(o);e.push(s||void 0)}}return e}(function(){return arguments[0].replace(/\x23(\d+)\x24/g,(function(t,e){return Array(+e+4).join("#")})).replace(/[\x26-\x7e]\x25[\x26-\x7e]/g,(function(t){var e=t.substr(0,1).charCodeAt(0),n=t.substr(2).charCodeAt(0),r=String.fromCharCode(e);while(e++<n)r+=String.fromCharCode(e);return r})).replace(/\x23/g,"###").replace(/([\x26-\x7e]{2})\x21([\x26-\x7e\x23]+)(?:\x20|$)/g,(function(t,e,n){return n.replace(/./g,(function(t){return"#"!=t?e+t:t}))})).match(/.../g)}("(T!HJ%LUX]e%gilotuwy{} (U!)-%/137>BDGHO%RTUW%\\_a%jl%rtw} (V!*+-0%27>C%EHJ%MP%R\\`cdfn%ptvz{} (W!()*,/3%579;=%CFGM%QWX\\^cdg%ilnprtvy%} (X!&')%.468CDHJLMOPSTWY%\\_b%dg%ilnprtuwxz%|~ (Y!'(*+-469%=?%GI%KO%RT%V[%_bdikmnptuy{}~ (Z!&')+%-/%;>@ACE%GKMNPR%TW[_%ikmo%rt%vy%{} ([!'(%+-%024%;=%BD%LO%QSTX%[]^`%ce%y{} (\\!()+%/1%7:%LN%SU%WY%cf%im%prt%xz%~ (]!&'%*-%/1%68%EG%cgloqs%uwx|%~ (^!')%-/02356;>FJKOPRSVWZ%]_`dfi%kmor%vyz (_!'+%-124%68;=@ACE%MOQRUVX%]_adegjqwx|~ (`!&)*-%/689;%=?%ADFIKLNOVX^%cehilmoq%uwyz|%~ (a!'),%/124%=?AD%HJ%PRSU%[]e%ho%qu%~ (b!()*,%.024%79;%=?A%FH%KM%WY%`c%ei%loq%tvy%| (c!'*+-.1346%8:%<>%GKLOQSUZ%\\_cghjltwy{| (d!(,/1%4679=>@D%JLMOQRTVWZ]`%ce%km%pr%tvy%} (e!+,-/0279%;>?DQW[%]_bdhqu%wy (f!&().47:;>ACEFHIKMP%SU^a%egikm%tx}~ (g!)*,.02%58<>BCGI%MPY[]`%bdeginpuv (h!(*-2%6=>A%CF%KMPRT%WZ\\%`deg%ln%qswxz{} (i!&+-%/1%469;>@AD%HJ%MP%TV%Y[\\abdh%mrsvx~ (j!&,%.0235%7:;>@%FH%PRTVXZ\\_%cf%hjkn%puw%{~ (k!').04578;=?%CFI%NQRTW%^`acdg%ilmo%ru%wz|~ (l!&(*%,.%9=%ACDHIK%OQS%U[%^`%ce%hk%ru%{~ (m!&')%79%CE%KM%PR%^`%hjkmnqxz%~ (n!&(*+./2%478<%>ACG%WYZ\\%^`%cgmnp%txy{} (o!&'%)+,.5%9;<EFHJOQS%UWX[%]`%dj%mp%tw%} (p!&'%)/2469%;=?%AC%KN%TVWZ[]`aefhk%mo%vxz%} (q!&'(,-/024%69%;=?%AC%EG%IK%NPSTV%Z\\%`b%eg%tv%| (r!&'(*+-%/1%57%<>%BE%UWZ\\^%`b%il%ps%ux%~ (s!&)%:<%?A%CE%OQ%SU%bd%ilnpqstvwy%~ (t!&')+,.%246%9=>ACDF%ILNRVXY[\\ac%fiklprsvxy (u!&(%,.013%?BDG%IK%MRVXY[%^abeg%jl%ostyz}~ (v!'(%,.013%9;%=@%CIJMOR%VXZ[]%_a%lnp%rtv~ (w!&(%+-/%24%689<=?A%CE%KNPR%VX%Z\\%`bcf%oq%tv%|~ (x!&'(*+-%5:;=%@B%SU%[^%km%svxy{%~ (y!&(),%1346%:<>@B%DF%HKMNPQSU%Y[%qs%~ (z!()%ACEFH%OQ%_bfnpqwx{}~ ({!&)+-%023569=ADEG%IKMV^%`c%fhinq%swxz (|!&'%)+%-/2%:>@ADEG%KMO%U[\\^`acefi%lnpquwy|%~ (}!&(+-%02%578:%<HIKLQRW%Y[%]_%bdgil%ruw%} (~!'(%*,/%35%7:;>?AI%MP%TVZ%\\^`be%hjlnoq%vx%} )&!&'%+-%356:<>?ABD%MO%TWX[%`b%fhj%mopr%vx{}~ )'!&)%-/%69%@BCG%QSTVX%bdghj%mo%{}~ )(!&'%9;%=?%WY%eg%mo%{} ))!'(+,2458=>@%DGHLOQ%SUVZ[_f%mp%twxz%~ )*!()-%025%:<%BE%IKLNOR%`dfhmp%rtwx{%} )+!(.137%:>%BD%HJP%SU%^a%fjkm%pr%} ),!&(%02568%:B%DFI%KMOQSVWY%[^%aehikmo%uxz%|~ )-!&'%358=%@B%DGIKLORSVX%Z\\^a%cgjq%suwxz~ ).!&(%+-%2467:%?AC%FI%MRSUVY^%`e%gijmnpqstwz{}~ )/!&()+,.9%;=>BCEIJLPQT%V^%`b%fh%loprv%|~ )0!'(*,-/%1457%:>?GJKMNPWY%[^%acdg%jlnp%ruwz{}~ )1!')*.035%79:=%DG%IL%PR%TVWY[^a%ejqruwx{%~ )2!&)%,.1%37%;=%@B%EHILO%QS%eg%nprtvwy%{}~ )3!&'%*,%/1%47%=?%BDF%XZ[]%ac%jl%txy{%~ )4!&'%+-%24%68%<>A%EHJ%Z\\%ik%su%z|~ )5!/058%:<?B%EGIK%NQRT%X^`%bfklq%suvx%~ )6!'(+4578:;=>@D%FH%KN%SW\\_%afijlmp%su%wy%{} )7!(*+-59;?GHJKNTUZ\\_b%ejm%pt%wyz|%~ )8!&(%*-78:=%?ABD%ILMO%RUXY[b%eg%nqu%wy{%} )9!'(*%-014%79;%>CEIK%MOQ%WY\\^cgijmnqsuw%{} ):!&')%+02%46%<>AC%GJKM%PRTVX%[]bce%ilmpqt%y|~ );!()%+-%/14%9;%?ABDFHIOQ%WY[%]_%ce%lnp%rt%} )<!()%.035%=@ADEG%JL%PR%UWX\\^%acfhj%lnpqs%y|~ )=!'(%*-%13%579;%SU%\\^%eg%km%xz%~ )>!'(+%.2578;%?ABEFHIKM%ORSUWZ%\\_`b%eh%jlnpqs%~ )?!&'(*%,/%146%8:<?@BDEHJLNPS%Z\\]`%bdi%lorsu%wz%~ )@!&'(*,-34;%>ABD%HJMNP%RTVY%[_%ac%egj%mor%uwy{| )A!'(%+-/024%:=>@AHIK%NPRSUWY%]a%cehik%mo%qsuvx%{}~ )B!&')%,/%35%=@%DF%JL%OQ%TV%oqu%|~ )C!&(%-/34689;?%EJLMO%QTV%XZ\\^%ceglnpqt%wyz|} )D!&)*,/0279:<%@BG%IKLPQSVY[]%`beghjkmoq%tv%y{~ )E!'+%-0258:=>@E%LNQ%Za%cgkmopr%tvwyz~ )F!()%/14%79@CEGHK%OQ%SU%[^%dg%imnrz~ )G!'),0%9DF%MOR%Z\\^a%hj%ln%pr%{}~ )H!&*%-/2357%@BD%IKMO%RTUWXZ\\%`bce%nps%uw%y|~ )I!&'(*%,.%2479;%FI%KM%TVWY%[]%`b%dfhik%{}~ )J!'(*+.01346%9;<>?A%EIJL%NPRTY%[]%befhil%uxy{}~ )K!&()+,.%02%68%?ACEG%IK%PR%TW%bd%gi%rtv%~ )L!&(%36%;=?%DFH%KMO%QS%Y\\%`bce%ln%twy%} )M!&'(*%46%<>?A%CE%GI%QSV%Z\\%ce%lnq%~ )N!&'%~ )O!&'%178:%CE%HJM%OQ%TVWZ\\]_%jl%sz{}~ )P!&'%136%9>AEG%JMNP%RU%Y[%bd%koq%wy|} )Q!&'%*,.018:<%@B%IL%NP%RTV%XZ%\\^%dh%lnrw|%~ )R!'*,2%48:=>@%CEFJ%LOR%VX%Z]_%aijl%nr%vxz|~ )S!&(%*-.2589;<?@C%FHJ%LNPVZ]^b%ehn%qt%vy{%} )T!&'-%/1249;<>ABGINTUWXZ[]%_bd%fh%kmqrt%y{}~ )U!()+,02%46;<>@EHLQ%TWY[]^`acdg%il%oqru%wy%} )V!&')*-.02359%=?EHOPSTVWYZ\\%ad%fk%mp%su%xz}~ )W!&),-/1%479:<>%@BDG%NP%SUY\\]_bcefhilp%rtvxz{} )X!&'(*,%36%=@%CFHJKM%OQ%[]^`%nq%suxy{%~ )Y!&)%/1%35689;<>@AC%FHKMPQTV%X[%^`%bd%fhjnpqs%u{ )Z!&)%24%79%@B%DFGI%MO%QU%^`%bd%gkmoqstv%|~ )[!&'%+.%024%=?%ACE%GI%KM%RU%WY[%]_ac%ik%mpqu%~ )\\!&'(*%-/%35%?ABDEG%LNP%UW%]`%jlo%z}~ )]!&'%DF%MP%VX%hj%ln%~ )^!&()+%8:%EIL%ORT%VX\\%_a%cf%hj%lnrsuvy%~ )_!&'%,246%8<@AF%IKM%Y\\^%`b%eglpr%xz|%~ )`!'(%14%8:;=@D%NP%W[%^`%mo%rtvx%~ )a!&'%+-/%359%=?%AD%GIKLN%SU%Y[%^`%ce%gj%nq%wy%{}~ )b!&'%)+-%/1%9;%DF%JM%VX%[]_%df%oq%|~ )c!&'%:<%EGIK%MP%RXZ\\^%dg%il%oq%suvxz|~ )d!()*-/%25689;%=@%BGHJ%NQSUVX%ce%psv%xz )e!&'%,1%35%8;=?%BDFG 'W!,-. &(+&.'&-~&'u'W!/1 ')>.<V')!@PBCFG 'W!@A4%;BC<= &'~&(!Kk '/!J;< '.!~| '/!>= '.u'/!K. '0`'/!94 '1t'0T'/!?Bu`\\Q1t '0!)* '/!xy2IH ';!*( &'}')!\\] '+{.;U&'q.>!&' ')Z&'t',5':!GF '9!eiha`;:ML ')e'-!XVWY 'W?'-!67%?#3$ '6!-.%@ '5!rs%~ '6!&'%, '5!^_%g## ']!67%?## '-!&'%1## .;!RST .>+.;!VW%~ .<!&'%U .>)'W!mn%~ 'X!&'%f#8$t%~ 'Y!&'%p#5$ &0!=>%MO%U#5$]%mo%u#4$ .9!89<=BC@AD%G##>?:;4#67#6$ &1!cd%hTi%~ &2!&'%)#12$*%/K0%I#10$ &.!()7 ')!=?O_ '+}',('-!\\]%_ '/!)37fz{ '0z'8!CD%ft%~ '9!&'%)-%/VW|%~ ':!&J '0P'W!>IJ#8$ &(!uU &+7&(T&).&(]&)6&(\\&)F&(a&+9&(`&)h&(g&+;&(f&*-&(n&+=&(m&+!?ACE &(!p^ &,a-Qc&)!_c -Qd&,q#1$'Z!&'%J#18$ 'W!MN%U '^`'a!@AN%PSv 'b!'*+. .93.>!(*# ',@']G#'):#0$'Yv'X!no 'Y!wx 'W2'X!pq .9!LM%UW%Z\\%ik%n -R!*+%6 'W3#10$'7!LM%~ '8!&'%>#12$ )e!HIKN%SVWabei%lnp%uw%y{%~ )f!'+%-23679%;@BCEFHIM%PS%_abdf%ik%rt%~ )g!(*%79%=?@BDFGIJL%OQ%TV%XZ[]%bdfgkn%prsv%y{}~ )h!&'(,-/3%9;%>@B%EGIK%MO%RT%cehil%or%z}~ )i!&'%)+,/13579:?%CE%HJ%\\^`eh%tvwy%} )j!'(%,.13%57%9;<>@%JLN%UY%hj%~ )k!&')%1357;=%CF%IKN%TV%Y[%bdfhj%mqstv%z|} )l!'+1369:<>%ACDFGJM%PR%UZ%ad%fh%npr%tw%{}~ )m!&()+%.0%2479<?@BFJ%NQZ[^_c%ejopr%uw{}~ )n!'(*%,047%:=>@%CEFHIMOQ%TVX%Z\\%_aeg%ilnrswyz|} )o!()+%-/346%=@%EGI%MOQ%TV%\\^%`b%iklnq%suw{|~ )p!&()+-.013%<>%FHILN%WYZ\\ (iC*r5(pM)89(gy(h[(gk)p*)o>*A;)s|*9E)ui)cO*s5*ux)R/({@(Z*)7s)B.(~d*4~)F{*42)@K)pg(_l)>Q)a|*2'*Jb(\\0(u2)4?)\\@*9t)8])5n(eJ(f+)|s(^7)mH))<)7>*Yr*ua)6M*2O(o@*t|*0J)cV)oo)E[)op);L(XR*W~)7F)z6)?3)hN);2)66*8L*xa)Dd)cf)61)76(Wo)k9(cY(a_*.d*b,))v)G`)Jk*6R*.k)HS)vH*E'*oR([d*U/*:L*4b(bm*L>(a&)p!]`bdelnrsu%wy%} )q!&'%-035%7:;=?@BCEFJLN%X[%^ac%egj%lnp%ty{}~ )r!&)+%-/%69%@C *B**t=(Yf(qR*{F({T)6!th )BK*V+++A)b})DT)um)12(c!`& *^r*4P*Wv*mT(Z=)e4(t-)1k)`B*K0(tz*:])Cj)}<)&|*/8)l*)TJ*[[*`!0t +3')Q4*cF)}()-`)v**@.*A<)Q!596 ))I)*v)nD*q<)>X),G).P*_0(s@*7;*a^*rQ*v?*_J*/W*X,)5](YH(e5(cm*_!9:< *a,)F:)-N*6j*JF+,1)3Y(`E)nu)-P)?.)\\_)Z'({u);N(^!A| )EP(T_)yA*{Q)_5)r!DE%GKNPQT%_a%ch%jm%rvwz%~ )s!&'%,/12469;%=?@BD%HJLN%Z\\%df%hk%or )mi)*e)gu*=C)<Z)7R*mh)T7(ci(b+):n*mu)~O(Wj))c*8V*5A*6\\)Wn)Sx*~=)8f(ck(hL*JC(pj(TS))K)Ow*'H*bn)/H)=:)f/*KF)D5)5i*W{)rS*Zw*eB)-M*=?*@y*z>(dx*E0)PD)1!mh )^Z*:;*8Q(Vg)SU*Bu)<z*)0)Ks)C7*;^(dK)}j(Y0(^X)UG(}G*[b):1(e&*;!AK )Eq)v7);C(|=(~@))6*TK)70)F'*V,):_)9r*G2*{`*T{*/a*nL(V;*q_*y+)@U)f))s!tvx}~ )t!&')*,.%18%=?@C%EHJNPSU%WY]_`cdf%hjkrtv%y{}~ )u!&')+-/04%8:%EK%RT%WY%_ (nv(|{)*'*p'([V*3}(d8)>Y)lB(i*(ZQ*Y,)6G*mQ)C[(ky)[T))*(f9)^m*^P)62)<Q)9[)-_)[n*bz*7\\*_A(|v)AX).|)S7*r>*Y(*JJ)<>)yh(pX)Lv)5,(fL(UE)z*)1i)[j*T>)6B*`V*~U)y\\(e`)n?)7k(c()Rg*_p),X*~:*2q+3k(Xj(}?*Xd*1T)?G)_?(]j(^~*D_)&Z({W)7'*d@)lq*ZZ)z?)2()~4(V[*/9)rl(TW*7f(`7(_m)M5(d^*[|*n^*sl)YY*rZ)J))u!`abdfgklnp%ruyz|~ )v!')+%28%;=%@BCE%GI%KO%RT%VY%[]%jl%np%tvxy{|~ )w!&'%*,%.0%6 )tu(\\&)se):o*N`(t*):B)(~){E)Ie(W[*8Y(j8(Tx)mR){])*!Qy *q>(`5(f=)^e)9.*n~(oe)@n)Ig*d[(hY)W=*.I*IY)5O*/1)mY*;=)vD*si*_/)2o)kM*T1)Ov(`T*XP)O3*3G*>{(n-(bn(Vb(Ta(_D*(G*d_*&i(YL*[t*&C){b);m)&g(\\**51)nL*(i)W6*1o)D6(zh(|V)vN)<[):r)9b)8<*ns);3*_O)}h)nt)5o(tM(fJ)P2([z)5P))n)P?(Vw*X7*Ji)-i*`f)w!78%<>%GI%MO%]_%cgil%oqt%|~ )x!&)*2457:%=?A%GJL%PSTW%Z\\%_a%c )/R*2s)7/(U&(cd*b~)9p*4J)@/)R5(X()1n)W+*TB),v*Ef)-7)82(^&*;v)G=(_s)8t*[=(ZB(~G)xH(|Z(`J)zZ)1<*a2)pp).B)-{)ov*[a)^J)om)}])s8(_f*ar(qU(X0)Z3*_{)>G)}/)e0)VG*1n(yJ)6x)++(nl*?3)}@))e),\\*`J*/U*y')9:)Y_)ut)_;(^D*uF(p5)l2(W~)l5)+-)1f(u-)Vc)Px)ue(eY*sr(_!>t )9A(eg*mF*Tg*Ys)cW)u{*G_*_~*Tq(e=)x!de%jl%wy%~ )y!&'%*,%047:<=?@BDF%HKLNOQ%VX%Z]`bdfi%oqrtvwy|} )z!&'%)+.%24578:; (TG)q/(eK*m<*xV+2S*o.({Q*S_(T!hb (^x*>m)47(ai)F>(Xy)0D(_.)Ts(^()6Y)?9*rW*UQ*`O)m|*c*)rJ)Q2)dO)eX*T_(qf)r`*XL)DA*oA*3w)+<)Wk(u_)|\\)s{*o<)Pn)?O*/O(q7(]v*qn(|W(s((f,*[g)>a*x_(my*mP)q>*`y)9?(gq(t!@` (o~*\\N)Cs*ZH*8U(`[)1p(qF*F@)&;+0<(YM*x}*Sv(w@)0O(d:)6?*a.*c/*{T)0B*2B(]d*2i(|r*{J)U-(Uy)z!<>@AC%QS%UWY]_%df%oq%uw%~ ){!&'%57%9;A%DHKMO%RT%VYZ_%adgh *X0(e.*0B)}c(WK(U<*qO)T*)h1*C6))N)lg*21)L')t3*mE*-4(_T)_h(e**_e*:q*X))dt*{B)T0(o-*9z)?[*4.)5[*r((uu(W:*S|*.T)>9*=U*uI(iZ*ye*4)(c9*Ta(e}*4>)+5)Sf*X9*9s*d.(f-)Q{(_y*.Q(oB)`C)S,*(9(tq(W8)/1)2K*(Z(Tv(|_)E7*FD)&C*ne*yU)mS)`&*`Z(^{*/^*Sz(to(_W(X=(f*(tQ)>r*4(({,)69)7,*^z)*4)R&)}:(WJ(Ya)CK){!ijmo%qt%xz%~ )|!&'%+-%79%BDEG%JNOQT%Y[]%ehikm%ortvy%{} )}!&'*%,.0135%7;=A )Uj)VM)x`*K6),T)l()6]*^o(Yx*eW)?I*5!Z| )+2*5{*Xt(a0*MY*XK(t3([\\(Vl*qk)cT*6K*Wx(|**S`*r:(uT*/[(g;(ld(kU*TI)>4)JQ*mL)po)Xz)*a)kn)D+)E])|l*3z*Xv)2F)y>)>]*Xc(^T(`4*mU*/y*3x*.L(~C)Wy)DE*&;)o}+&I*6a*0|*),):}*oQ)z^(fN(h7)O^):`)4}+04*4w)m=(a3*uT*>e)Fo*F&*qP*s1*nF(Tp(ea*.s)Fl*Z-*2K)C2)+0*1H)}!CDFH%KMOQS%XZ\\^abgikmprsuw%~ )~!&'(*+./13578:<%?A%GIJL%NQS%VY%[^%`i%kmnp%rt%{}~ *&&(pL*2u)Gq))-)>6(a`)0F+4-(X}*\\H(^8({b),P))1)Re)7[*Wz(^=*m\\(bf)SM*:M)eC(p,)Di*X-(tE*_-*=*(g@)~H(Wk)Sk(zt(vE+2X(eA*Ee*~r*UB*3~)>@*x^(n6*sd(`H)k2(`j(|?)7l*L.(UC)7:)/\\)H{(^?({O(^l*N<)~\\*{[*08)1o)^'*X/(]n)*n*`S)ix*N>(ni)tz)-6+42*qI*^R+'T*TE)oj)Fu)Eh*Z8*X5(`W*^t)Yr)HN*n_*bs(n9)E(*K~*_X(gs*&!'*%-/%246%:=>@%BD%FI%KM%OQRT%XZ%]_a%hj%lopr%wy%~ *'!&')%.124%@B%GK +&)(zy)Us)R-(V9({j*~Q*d7)3v*b5*v{(f/)VX(|0(_p(j**0=*2&)<i)8^)@:)43)0f)`3)R!^P (tU)DR*8J(sT(l|*Uu)QK*bc(uJ*2M(eT)Ue(fy(j=*<3*=2)Fk)y6(g7(X7(ee)pk*V;*qQ)Sa)V[*Xk*L<+0[*X:(l-+1o)my)-l)eL)0A(hN(V<)LG*J?)0+*^Z(go)_Z*Dm+06)U&({F),U*.<(j)(Y8)fG(f@(dP(ZI(ek(g'(U;)//)ib(su*>u*4e*G])e<*(z)XG*'!LM%UW%{~ *(!&'%*.%8:%@CDFI%KPQSV%Y[%]_`d%hjk ),d*DB(h~)6g(V&)SX)5S*9x(h)(c])fQ)Yi)l8(`,(b~*TA)KF)-n)/2)W8(o2)O4)gi)G-*_i*/T)8s)0|(hv)n5*Um)`>)VF({])*j*;g)2s+1b)v}*G@*'0)oy(_c)1v)`u)A3)*;)0&*Tr)^K)86*^s).H)0;*Eo(ms)Pz)0m)35(cX)1`)AV*X?)yu(WU)_k)RN*Sp*TV*.r*;y)@X(wu+'Z)UM)WA*UL)U7(WT)^F*<s)52)1Q*tQ*X')xI(_n(nz(q+)Cx)lu)z\\)yg)~P*(!opr%tvy{~ *)!&'%+/12458%>@%EG%NPQS%`b%vxz%} **!&'(*%,.%4 *3i*{:*`1)\\M*Sb+/q(v`*/!*J (ef)Df)HY*^{*'V*sc(e')/W)mb)Ry(d)(y2*.A)85(_S*55))9*@7)6C(^L(zs(WI)x>(`\\)18)UJ({!{y *S!^m )@+).W*r;(u`*/(*.D(kP)EC(t_(XU({m(aa*;o*xj*X>)l/*mq(Zw)z[(W2)EB*~H(y*)P5)pj(o=(|t)}N*qC)`w(^H*4-*97(uE*/E*;<)HA)Ex)v4)uS)7M)8r)~;(Yv(a+(_B*;e)KQ*g=*ZC*X1*N;*o/)~h(W1**!56%km%tv%~ *+!&'%= ([<*8P(`k*{D)WZ)Xv)VJ),7(\\s(vP(|d)UB)Rf)m**?<)GB(t|*So(c/*dE*rC*AH)I:)w+)`O*4z(V8*bP)UC*~N(v{(mQ):d*nJ)sy(Y.*5E)eM*NL*{O*/u*.x(a@)>T*dI*^!im (eH){\\):L)9])ox)yp*J5*r,)5F(al*9I)G.)DU)9/)rR)|Z)TV*.m*N](vD)5.*Bo*9l)lI(ZO(V_)mI*TO(}O))F)}_)?F*eL(V^)Tz*M2*)~*o'(VY*U3*_l*u^)A;)xR*_b)_n)Ut*+!>?%JL%RT%~ *,!&'%F (}B(as*;[(^.*:|)rB)Af++l(V@)1J*(!nc *.i(V)*R|)A_*xh*uD(r[)>g*o])-h)mm*uA)|!LK (_3)_1){^):I){<*.:)gP*w&(U2)^S(UJ*d&(d_)>L)@0*7!u~ (g9(}6)m>*v2)7B)eE)ma(}J*~C*=-(}E(g+)sw(U+)S\\*37)7<)9&))0(^C*Z!+l *o0(Yz(eB)1g)_.(a()8a+0:(w:(ZV)qw(d-*.|)<2)>&)6L)9P(ZD)cS*NC(_&*S}*.w(o**=/*mZ(^g(ex)&N*,!GH%~ *-!&'%-/%35%9;%P (YS)|P)UV*bg*~Y(iy(gA(cp(gZ),=):H)JF(_b)36(_}(q[(b@(o1)tB)qK)+M)3E*)7)5w)6Z(V6)^p*29)7a)_f*uK(oZ*:I)E{)Hv)vX*xw)yI(sr(g^(eL)W~(]p(`U({Y*Tb*43(i<(p0)0L(o4(f1){@)0)(zd)9_)6c(e@)6&({~)E;(h?){e*:T*dK)+)*Ki(t^(p8)7x*Z6*4s(o:)~2(Y2).v({t)OP(c0)}d)e.)Fy)t4)qv)@@(_((U|)pm(~k){k*?&(tt+'Y([W*-!QR%tv%~ *.!&'%46%8HNUVp~ */!-:KQ_xz|%~ *0!&'%)+.%7:; *{])2N)Xt(oG)@O)8W(n,)7V)6,)+i*qc(of)73(j'*Fc*5u*_4(i_*<m)DJ*XV*@5(x,)FB)7P*&P*q`(^<)\\)*U;):\\*NB)4G*/G)_D)Y})hf)Jc)eh)+`*bT)CU)Uf)8o(at)d'*27(XN(vY*d>)_[)V@(b:(U=*t;*on*A})vM**-(]F(ou)<o*3h*(+)T?)Hr)J-(_*(dN)H))dF+1l*&S)ed)y3)ZR)hg)D3*eG++X)wf*<E*;i(el)FJ(U*(d?(ar)ts(d<(`C([_(Xm(YY*0!>AC%FHK%OS%UWX[]%`b%eghj%qsuw%{}~ *1!&'(*+/12457%=@B%FIJMOQ%SU%XZ\\^%befh%mqr )n-)|8*(B)SS*sS(a\\)j2(h;(Yr*31*<n*_o*oq)+_)/N)VB))`)>V*5c*nX)/})_>*.]*(^(_<)G[*(a*96(Tj*^p*eJ)An(VB*Ti)<V*3'(\\X)m;)bE(|C*_N)[L(Us)</*od)+l)?;(`1*KG)_J(ad)ez)i;)D|)vz*tZ(Tz*bA+,9)Vn(_N*XA(ez)78)gl*=T*t:+3p*mv(Wq*1)(_?)^P*rk(~Y*xf(eC(Vx)Y4)hj)K*)uG*{d)lV(`2)no)U=)F&(^9+4,*3((gD)}P)|,*1!svwy%|~ *2!(*%03%58=%@DEGIPQS%UWYZa%fhjoprtvwz{}~ *3!&+%.02%468%EH%MO%Z *r|(og)7L*r=)JK(vx):a*&5)ZN*rA*9m(cq*xe)+&)^d)9k(cs*DC++5+11)uh*tv*Z=*XB+0v)[D)xU)-9*r<)5J*~>(er*n7(Y,)?g(}!jf */V*DE)R6)-o)gA)Y|*/@)&9)8,(zz)Y~(d+(U^)9X)lb)6d*^X(Wa(Ve)ST*.P*Sw*>'*HJ*0?*`s*n})~d*~k*K}*>G)Tp*~P*.v(uU+1Y)gU)t6*Dv*~!6L (kb(et(pU(U]+1D(ce*_Y*54)ry*{g*F0)Yy*@k)C:)30)Zj*3![^_begj%oqrtv{ *4!'*%,0479:<=?IK%OS%Y\\cdfgjry{} *5!&)%,.%02367@BDF%HJ%VXY[^%`bd%hj *U4*9Y*;@)q2)Qs).d*<y)f>*:s*nt)Q;)si*my(c~*:p(^^)*,*V>*X8(U5)ge)E&)G_*dJ*tM)a4)SO)qI(xT*oB)Q/*0v)@p(|.(v-(x\\*q!7F (W'*=o*?J)Mp)px*o1)f.)H'(zo)qo*dn*uL*)3*`/*U'),b*'|)yP*N?)Sz*F^({})*1)HJ)q`*/6(^a(]r(b1(wD*/F*uM*:E):.)rk*Bv)yJ)X+)+/(uf*@i)^H)Qq)7))pX)>J)1/*qL)@W*H/+/s*nG(ej(g(*U7);~*5!kl%prtx%z} *6!()*-%13%68:<%>ADEG%JSU%Y[]%`bd%iklp%tvwy{}~ *7!&'%+-%25%8=>@%BDF%L )<&*C^)L>*6n)vk);o+'l)6|)Ci*<g(s'+1v)SY)Z_(|<*rB*To)c})E\\)71)d&(V=(v:)Q-(rk)BE)*D(bG)2|)Cf)q.)rM)d,)ze)7i(h<(fT*mS*b)(w7*.M)Qv(U0(uC*2F(tn(cf)l4*s[(m_)81*5<)0U*qH)Vy(ff*{V(^Q(yR*5((u{*tW(ZZ)T:(}A)7I(XB(cN*6M*`>)YR*A*)72)*c)vA)<b)93)/'(w3*dS+/o(}D)8`*2x({4(ig*o!KN )V()1()El)eJ(_P({8*7!MN%[]%_abdg%kn%svx| *8!'(%+./135%:=@D%GINRZ\\]_%cefhjl%np%wy{%~ *9!'(%.0 )7Q)T3)cy)60*ma*.W*5>)UO(^h),A(uA(ak)/D(u@)B-*DD)mC)8;)4[*)F*T^(h8)O9+/u)Pm*B{(fY([M)SR(ic*Y[)cJ))])/G)i>)77)9J)cj)-|)X4)U:)=T)[>)pq)vS)q<)lQ(`>(e8(U@)+4)?c*2`*4Z)6^(g1(`B)_0*Jk*Yx)T6(f|*4^(q**Ky*XT*r`*cz(XK)SI(jW)p_)te)6k)_{)[t)-Q*@D)H[)uX*&Y*6z)CI+0F)8x)v3(oR)tG*t})6!<n (aI)i=)Q7*9!12%48<%?BCGHJL%NPSWZ%]abegijny|} *:!()*-.01347>DGHKPU%XZ%\\^`acdfhj%nxy{~ *;!'(+-.2%;>?CEGLPR (i]*5i)mV)pG(cH)n)(\\y(}F*S)*&)([&)ce*~a*y_)ZA)k8)x9)<4)s3)7f*xq*X+(gl*35(U?(oM*:g*=p)*b(_`)kL*T((}T(oD)TQ*xg(wa)ti+'\\*_|*(E(`p)5m*nT(VZ*<B*>k*=L*?c(p^)Cr(n?)A^)Ub*U<)Bt)]E)C])OL)FI)56(v/(TI(_7)ZE)E^)S=(^B)HL(tm)Oy)lc)&a*5;+3<)?y)w!rk *~[*Xw(~.(UK(W<(f3(tw)tA(lV)Qt*_U),@)S+)T8*Sh)9H*;!STVWYZ]_%chj%nrw *<!,-%256:%@CDF%IK%MP%SUVY[]%ch%kqwz{~ *=!&')+,.013%68:<%>AE%GI%KN%P )0I)U9)d:)6)*m!Ax (cR*_R)~9(Vs*U1(Uk+1r*m!df (`g)[B*aB)UA*U?(qB)'F)O!2[ )E6(f_*6&*0t(rq*A6),w)6e)Ld*o:)>m)0])G?)s5(UA(Y1))/*v*)<Y*1g)&@(YX){S(_z*:r(TZ)/a){I*mY(Y>(VF)y^)i<(bL*:')=&)y5(|;)S/*u=*^e)R)(Zn(d5)WO)<{)Ad)R7)1E*xW*T[)*u)iD){=)yC(T^*b7)hd)RI(mo*cx)Ss*Y2(cI*Ea)C0*\\K(}M*~;)Wj*=!QRV%Z]%_a%cehj%msu%z|%~ *>!()%-3%:<%AC%EH%OQ%Z\\%`bg%jln%rtx%z|~ *?!(*,- (e3(wQ+3w*YJ(dq(nD*y.)D(*do)Sw(^4)mn)7])dq(`R(a^*/{)^o)o*(d*+0A)K-)uJ*s]*K^*13)`_)b:(^U)E_)k:(sc)=l(mL*Sf*{K)63*.o)1y)_o(sk(V!UN ).X*vy(W6*Sa(_v(uW*.E)5p(Va)@.)5**;M*?z*;x*Gv)ad)YN({p*.l(^c):()E`*3f*;N*IL(]7({1(uO*_B(U`)Rd(^1*LQ*^Y*q}*AI)if*nj*q?)VI*:S),n)<?)Tg*>2*6@++w(r6*X[(TO(dw*?!./%24%7;>@%GIKLN%QS%_abdf%hlmoqstv%y|} *@!&'*,-/%469:<?%CE%GI%SUVX%Z (WY)>^)G+(js(Tm):s*~d)6.(y+)ig*99)VL)Ho(\\e*<J)t7)C~(`S)SG*.K(\\9(i^)a.)}o)AB)h+*:Y)D.(}v(`:)aM*JI*q9*rK)<r*Xa*7,(i})R\\)5c*/o(rj(W_(i?*XO)A<(TP(|x*Kx)G|)8_)z,)_i*9T(bb*w/(|o(h:*b;*.g(u/*XJ*Eb*8!,- *Xf);J(|b)2x)V,)wh*S{)tl)l0(g&(Ws*\\G)W;(w;*._)x/)S6({X(x8)kp*4B)2u)Wa(so)k!u{ )d7(cV*/4*@![\\%ce%hjl%npqs%vxz%~ *A!&'%),%5=%AC%FJ%TVWY%\\^%bd%fh%prt%w{|~ *B!&' )qA)pt(a**4`(n_))P(tW)eZ)?_)Xp*T;(}=*De(cP)t()7h)@?(VT*yf*Dt({U*T*(eO)sp(Xa(}S*~@(v?),L)wd(sj(T\\)F2(Ux)7W*P[*`U(b')@x(j|(lZ*`:(Vi(Xo*eE*{E)Qo))J)/u({[*N@*T9)>1)5g*{k({?(|])9@(i'(e4)nq(^I*A+)E.)H4)PC)6U*^}(e1*82)Vt)m3(US*XN({')ao*BU)B!(p *0Z*FB+1k+2e(}c)Cm*`()FD)DD)5))|C(r])+L)>k)Zp*B!(),.%46%@C%IK%MOQ%SW%\\^`%fh%np%twxz|%~ *C!&'(*%02%57%E )0.(`Q*2C);Z*JN)l&))M)FF)7^*t`(e))c[*Te)R;)rH)z-(f2)s:*xZ*8<*TX)u1)CR)_C)?Q)<B(k})/O)y9(eU(Tc)P4*3c(|X(k*(mp(W!uw *{G));)Dc*2n)/4*xb*`9({B*Sy*TY):{*8x)=2(kD*:=*d9(Y`*)w*`W*(O(\\q(r))YG({v*T-*3`*dL*?M)~R*Dq*s!(, */&+&D)uj(~-)zv*`z*sD)x0(zi)8p)|x*@))H.(hX*/j)hq*)y*n[)5\\(q}(Vj({:(uF(r,*C!FGI%KM%QS%]_%bd%suw%~ *D!&'%+-%/1%@FGI%MO%QS%UW%^ )g')8/*[@*Z]*4R*:B)6o(eM)TE*d2(tP)/3)Rw(o0);P*X*)nv)Z((o>)MD)n;)[S*U8*Tl(oI)QO*Jp)v6)9Z(eV)_/)Rk(r0);0(q3)Ha*6m(hb*)-(ZH*\\V)Vo*YF)_m)9G)V>)Yl*/'*=g)Fv*`;)V{*rl*Se(t})d>*C1*6P)m`*PR)H0(`n*Zp*nk):/*xx*[9(iu(X5)C=(l})1U)V8(`](}N(tO)WE(rC)l-)kr)0E*84*5q)7{)DF*_s)qz*ZA*X4*mt))^(d;(f0)_E*D!acdf%lw%} *E!)*%-/1%69%=@AFHIMNR%TV%Z\\%^`cghmnp%ruwx{%~ *F!'(%*,%.17%9<%?ACF%HMNP%SVX )RG),4([3(VA)+C)8K*8g*`R)G**dB)sA(ei*n6)-H)|R)GP)8V)}f*.y)n&([N)6X(tZ*`G(_k)y;){G(n:)-v*`L)U~(}e(n[(em(]y)X>(mw)9`*xs*6Q*FW*LV*`8(e{(}t*79)7@)5t*5\\+0,*r6*~!8F )IU(ur)7=(i7)8'(gr*Et)U8(vw)k<*Jz)O|(t<*UW),l)Xo)gc*x](T~)_y({C)us)8N)AJ)p/)1K({R(wd(TM*6')Rq)gE(V5)Dn*09)-d)@C)CY).c(uQ(vu*F![]_abfh%jl%oqrtuwxz%|~ *G!&)%/3468%;=%?AC%HJKO%VXZ%\\^`%ch%jmoprsuw%{}~ *H!&(%.0%4 )(n).9(d'*vx*_n)Fx(n0(i()1_(U')[3*/5*:5*=q(vH(W!Ze (}C*.F)Ch*@r(fw)lL*4G(i{+'g(X/)Ww*Tw(|g)3>(cz)nj)Ws*D~)?)*qJ*.S(f?)zR*)a*q=(k(*1P)kD)8.*FY)VD){c)5-)?C(cv):@)S1))3(f`*m[(U9)Rh*TP(}P)@)*9c)H((f!B8 )Q+)Ox(V()8S(cW*8>(WH(Y7(oA)5&*tB)AT)d.(bg(ab)0x*TS)@])ai)Du*MR)u.)t2)A`(l)(f<*n{)d?*H!5679:>@%BDF%IKLNOQ%UW%Y\\%`d%jl%oq%tv%y{%} *I!&'%/1%46%9;%@B%IKN%QS%WZ )yx)0H))T)0b*6o(t;)1\\)aT)_q)YB)RW)dE)MH*K2))u(UM(xu(j<*n=)Tl*)R*s6)5+*.`)ru*Dr(c2*tb*_')Aw)&4(Y))eY(TQ(d\\(t5(ep)98*o)(]m(Vm++P*.>(gc*W}*J2*8W*qA)V1),c(y5)A.*r_)gj)fA(du*6L*{Z*10({a*r!mF *.Y)q8(dX*ow*{n)~l*Lp)XI(UN*1c)x6*TJ)1s(gx(V?*xY))?)L~(\\M(en*Ul*>1)u9*tH(`d(h@(m8*nZ)V+({l)Vi)AC*I![\\%hj%oqrt%vx%z}~ *J!&'%),%13468%>DEHKMOQ%TV%Z^adeghjl%oq%su%y{%~ *K!&(*%/ (|m(zm)FT*3s(iq)|~)>C)I|(V/)OY*G7*uv(c^)80);@*b0)?>*4E*Tt(^e)H1(d.*I0)4=)Sr)TP*U-(}V*BP*9v*nf)O5*_,)?R)/-).N(Yj*I|)@h*67)f<)1z(^@(`+(on)-F*b(*J**df)*g)D4)/Y(vG(]i(_i*4|(bp)S'*sa)aZ(WL(Yw*1-)C{(je*nb)y8*Jt*.}(rw)5(*tD*DN(k_*x[)-t*Su*?u*d+(e6)@6)*~)lY)0=**l(xA*/!+. *^S(jG({Z)1,)?m)g>*K!13%57%;=%@B%EHILMO%RT%VX[\\_%cefkln%twz%| *L!&')+%-/%57%;=@%DH%LN%PR%UX%[]%_ac *`A)oU)qi*.t*u_*BA(zv){:*t.*Iw(b3)a_).5)@5*TF(|Y*~9))))PB)Rb*S!jl *`B*_V(dA)7&+/!v} (fD(Tq*:+)cw*E7)&i*J7)VR*sb(g|(V.*Ss)`2(gh*qX)_a)WC)pi(Tk)tI*FT(~U),3*Nz*x|*q])^i)Sm(tj)9a)q|*J+)ZS*9:(qa)bL(dB)tO*s^(hS)-J)`Y({k*T~*~V)P<(tT+0&)y_)DM)6/(XQ)mE*0r)T`*r))R.(W+)mv(^G)Fj)Z}*a_*6B(uc)i~*L!de%lnoq%~ *M!&'%03%8:%MO%QSUWXZ%t );M(},*aD){W*U.(vN(gW*7y*<+*MT*26)IX(l<*2l)cU*eI(_)(UL*xU)9N(T`(eS)C1*5v(tB)VU(TF(sx(cJ):5*nK(Y&(WE*JA*xp(t]*a6)ys(V~*4t)m5)S0({S(v\\)-A)I-*Du(ZJ)):(UF)sq(Vy*9A)6T)@\\*ap(}~(VS)-]*7?*`p*3a)mO(V:*KY)26)P~).Q(U6)pc)Y:*TG*Sk*T!n5 ),?*22*1[*.h*;J*<'(mu)Pp*w,*r*(vo(e|*nP)W5({|*{C(}>),R*s-*M!uv%~ *N!&'%:=GM%OQ%SUWY%\\^a%df%hj%ln%y{%~ *O!&')%> (d&*:_)LN(x6+0g)+**/i*<u*>!./ *;|*G0*__*Xb)pa)-U*xv)uH)@i(h1)7O(XE*7<)ml)+N*sj*ZX*F;(g:)TH)V/)R?)0X(b/)k~)*l(WS)0y).r(}))l.*b4*ms)d~)Sg)X)*cv)CG(e!(P (X3*eD*TU(d~)*k*_S)W.(U{)p[)JU*DR)2A*8&(X;(Yg*`v++0)20)W!g^ *r{(Uu(wL*t,(TT(~+)y1({>*TQ*1L)gC(pi*9R*bG(e^*a&(j[)&=).,)2/)OD)e]*46*PQ*O!?@%^`%hj%~ *P!&'%@B%H )Up(|1*KZ*xd*Uv*~7+0*)WT(^p(]h(p-*J_(dU):S*_&(n)(f\\(nB)fR)Y(*/Y*_m*:?)2f)/Z*rX)C.*.@*Y!1j *mX(~_*(T)CF)1&*qT*2N(U~*bm(bh*r^(]f*_a*As*d1)AE*w.(ze(c,)tm)D')Fp(gt)^Y({g*^g(^Y(nd(g\\)=f)Ar*X!^C *5:*>v*aL*)6(_r*CH)E/)@2)\\.*E?*[v(lX*`X)ot)^Q)b\\*W|)7S(`3)TR*X<)/@(rv)3\\)C<*X`)5j(jS)Wm)Ck*^Q*P!IJ%PS%Z\\%~ *Q!&'%R *n;*qG)qh)F8)Jw(g6(U:)_:*T,);^)?-({<){J(Zj(|F)sI)QA*PA*(H)Sl)ph)?K*_()''(}Z*D,)F;(co)54)|F)XL*/>)L<)|M)-T)Zr),])9D)VK)D;(TN))X*X&(Vk*4D)o&*s9)7E)@v)6A)Sj*Xu)a7*0Q(]k*3d(eI*aM)6[(hD*F2*_**2;*nq*@o*_j)UU)h.)?A)q_)kZ)t\\*7t*Ww*m;(Y/)Dz)m]*T.*tK)8@*oH*r+*?i)84)r()-e)e\\(Uv)/F)>o)7Y)Ou)>:*Q!ST%uw%~ *R!&'%;=%[ ))o)mk*bW*S~*9d)E))>*(f5*FZ)ss*4&*5-)RH(U8*.a*3))q4)I5)PO)6*(Zl(Xf(n|)7q)Ot*Ye(eG)@1*.R).b)8+)9o*7!lm *0V))d)&,(`P)Aj)ya)z9*X()^t)mx)Yv)Si){X(Ts)p^).k*mR*JU*.b)yE*4C*eH(W!-R *8?(fl))&)U.*T0*(U*^^*3u))b(g=)pJ({P)A,*~n)hA)F]*Ev)Co)f=*T!\\? *`H)|f)_])a>)7.)s7(kx(U(*>a)E}(aj*E[*X.*nR)}e*R!\\]%{}~ *S!&'(*%\\inx *T!+4Nm *U)(X1)T=)x.*~E)6V)cH)7g(TY)tK*^V)<]*XZ*&()GC)*s*KJ(uS)<K(sm)d{)I6*o&*`5*XX(oC*/A*Tj(_9)8Z)7C(cb)G&)i**:o*cy(i=)r')^W)UF(^E(gS*XD(vs)Yc)Vg(zl**)(Vh*(-)Yk(z`*7c)WW(zg+&t)HV*Zx({N*/=)/m*.O*b?*Xp(tu):,)yW*YZ(ca)?q)x'*T)*r1*.^*mn*-u(k{*d])C>*0R(|h*aT)@q)).(X2)Ej([1(X>(o3)+=#2$*U!CD%KM%PSUVX%_a%df%kn%tw%} *V!&'%)-%3568%:=?%EG%IK%_ (Uz(TR(]e(TV),<(cT(T[(V,(Td+'J(z|(lW(Tn)y2(U,(b}(U4(tS)cY(c})Qp(mt*4h*{l)Q3)re+2\\(T|(V3+2U(U!IV (V'*9O(zk(ie(kV(VX(d!CSY[d *uP*X](c)(eR(c!5=M *X\\(c!ur (_!u{ (`!(GMYZfx{v *?`(a!>CBQT (^N*0<(V!OW]V|u (W&(Vr(W!V.] (XF(W!0`bDf (X!@I )>3(X!<? *V!`a%~ *W!&'%f (X!A9 (W!mx (X!XVskeq`] (Y3(X^(Y5(Xv(Y!oqsNcleZh (Z!(Y| (Y|(Z!\\?^].L<UX ([U(Zs([,(Z!x~ ([!CR|~ (\\!'8T (]+(\\!kjdl (]!,0 (Vq)RD(X!:G (YW+43)RM*'}(^:))E+1g*{m(^M(t:(b!au *O((bx(_^(t?(]z(V4(]{(VG*JL*K)(VI*5?*KW)xQ(zD*I:*1G(^!w} (_!0/ *W!gh%uy *X!QRW_eh%jlnoqrx%~ *Y!&')*-%03%79:<%EG%IK%WY]^`bdg%iln%qtwy%{ (_:(^!bnq *S!]cdgqrt *T!&'/326%8:<=@CDHLMRTWZ]`cdfhkpsuvx%z} *U&*T|*U!(*%,02569:=>@A (cx(d0*q!lqp *r'*qy*r!328?JU]bhj~ *s!*4M *a!vz|x *b!2':9<@ *Y|*Z!&'*.%03%57;<>%@BDJL%RT%VY[\\^%ac%jnor%vy{~ *[!'()+%-01348:;A%EH%MO%Z\\]_`cf *b!>6UKDVJMYlhb]aqu *c!+1OKP^\\fps (`'(th(a!cmn (b&(hQ(b!8>X (e<)be)s[),1(_!ho +'G(dl),>)lW))7(o/(p!3+ (rV(s!;DP (n!ehfoujk (o?(n!w~ (o!LhNi_^KPYV (p!7. (oo(p!<Y1> (ov(p!*_bdc\\B~y (q)(p!ng *[!hjl%prsuw%y{}~ *\\!&'%*-%/1%79;%FIJLMO%UW%ik%~ *]!&' (q!<>. (pw(q!1OJuQ (r!=DYarX *{}+2^)4t*9!@DFVQoKUX^`r *:!&, *9w*:!68Q *9!_~u *:!9:/ *9!p{hqf *:!2< *9k*:!OweR}uJb@FziA *;!&/ *:t*;!)* *:!NC *;!1fpq *:v*<N*;!QIF *<W*;!sDd\\XtU,uBOH{z *]!()%~ *^!&'%. *;!}0~ *<!(&)*l4op\\fOXA8re9t7TZdvx} *=!dH; (q8*=!{n@`9 *>!&B *=!ti7Brf[\\M( *<|*>0*=!SD *>!f[dc} *?!89+:) *>!FPs *?!'=? *>!;w *?!r~ *@!(> *?n*@+*?!{pk *@8*?!RjeH *@!=;d )kc*A7*@H*A8*@w*A9*^!/0%OTjv| *_!.1%35%8;=%@C%FHIK%MPQTWZ%^`cghkqrtx} *`!')*,%.2%467?@DFKMP *A!U: *@!WT *A!XGgc]y )s0*A!Bqz *B!JN-5 *Ax*B!TB+_]Vyg *C!)LtRvc *D0),!;E (t!bg *2m(t{(u'(t~(bw(}!'*19 )5h)6!-b~ )7!4DAX )83)7`)8!J\\T )9e):U)9!)2Fl )8~)9!dB )8z)9!ft ):!QW?^ )9|):!=- );X)9!~v );!KG ):!jz );&):k);!,'d )<1);s)<C*`!QT[%]_%dh%loqruwx{}~ *a!'(%+-3%589;%@CEFH%KN%RU%[]`c%fhik%oqsuwy{}~ *b!&*+-%/138=BCEF )<!'deFgm} )=!+86]y )>)),H).])ko),N(cn(e!NZFEXosc (f!OV%XZG (e~(f![]'6 (g!-? (f!{uh (g!EF/ (f!zj (g!H{Xm_}RQ~ (h&(fv(gN(h'(g!fjw (h!+,. (g!TUO (h/(gz(h!0m9rOfEtuacy| (i`(j!/U (i!Bf:N8I5 *b!HILNOQ%SXZ%\\^%`d%fi%koprtv%y{%} *c!&'%),%.02%EG%JL%NQ%[]_%eg%oq (i!0On%p,)U (j!+r (i|(j!QY( (iz(j?(iw(j!v1 (it(k&(j!]^49 (k!1> (ji(kf(jq(k!23 (jt(k-(j!}d (k!6,9: (j!lm (k!/<+ *^~(k!eOSHkjEGnt (l!F'E (ks(l!;PGJ:BtR_Yijs (m!(Dilrv (n!1'5;@FEX ))!Wa\\Yy )*!*+ *c!rtu~ *d!'(%*,-/034:%<?AGN%PT%XZ\\^bcg%mp%ux%} *e!&'+%.1%46%ACFKM%VX%` )*!&3CJMP (~!8&9<B4DE=FHaNiXW]Omcp~ )&7(~w)&!8UVzy )'()&!wqYn )'!R8.7fUiWeEDcn| )(!:> *U~)(!Xf )-!W[fkmpy} ).!'38@G *J@)-E)d!ruy|} )e!/-:9>T[U^`cm_of *e!ab%~ *f!&'%g )eg)f!*&4 )ev)f!10(5L8?KDc`js )g!&)8 *8;(tK*yn(t!J( *{!8<%AILRUY\\_befh%j )*o)+')*z)+!,;6OKTI *XS)+!hgq~ ),'*73).!OTaZ )/5).y)/6).!lo )/!078 ).!ux )/!*KgXMA?[]<qS )0!QRTS )/t*f!hi%~ *g!&'%<>%VX%p )0!CVos )1-)0!v\\ket )1!l;1]XFZ4 )2!GM<J )1t)2!'5Rq )3!Czbu )4!,Ij ).h*sP*q!8:@BDEKMRSUWY%\\^ad%fhi (Tr)c])51)R!<[cQ )S!Q3>B: )R!op{} )S!4W~ )T))S[)T!LMF, )S`)T!5+O@C )S_)T!(DS *g!qr%vx%~ *h!&'%79%y )U5)T!|a )U!?D )T!\\Ync )U!'I*1 )To)U!KNP/ )V4)Uk)V!AC )UZ)V!67 )U!X\\x_ )Wd)V!jh )W!(X )Vb)W!*[0' )V|)W`)VN)WV)VQ)Wu)X!_?\\ )YJ)X!PwDE )W!|o )X5)Y!wI0x )Zl)Y!z=?USOoLg'Z7 )[!H,- )Z!cT8nu )[!1Z )Z!iHh )[!osr^Xb` )\\^*h!z{%~ *i!&'%TV%~ *j!&') )\\!V4FCOn{km| )]!NWOmi )^!*9 ({!7;LJ\\o )l,*~h);:(|!BL *L\\(|N*[<*Qv*_!Gdfv *`&*_!uzw *`+*_y*`!=<C^IENYmneg| *a!01/G7A: )BP*a!S\\agbj )-!4;:< (}@(gV(}!U^ ({((}!hk *1K),!gfj *9;),y+'S(}s(u!NPZvwp *j!*+%LN%~ *k!&'%.0%2 (ud(v>(u!xkq (v!F& (u|(v!K2yzQ|WLm (w'(v}(w!MO,>.[ (x)(w!epW} (x7*4p(x!l]9< (y!'T (xt(y!;= (xz(y!ILZ?OAEr (z!'&BGP (|!sz (z!ju ({*(z!acr *~!?ABDIGJKORTZ\\]`be%gijlmoq *.!9;=?BC *k!34%:<%~ *l!&'%: *.!GJXZ%\\cefjnquz{ */!),/023N7;<?B%DHILMPRSXZ]\\`b%hk%np%tv )*i)l|)(|)l;*at)g!HKh\\Y )h0)g|)h2)g!qmz )h!*)F: *x\\)h!kJH? )gt)h!Sp )i!2c.-0864 *l!;<%IK%vx%~ *m!&'%7DIKz *n!)-.4@Uvz )h!|{ )i!Id_]a )j&)iu)j!-K=/06:MWX?V )k()ji*v!|}~ )D!18C-N )E1)D!lOX} )E3)DZ)E!4*9 )D!p\\a )E|)F<)Ed)F=)E!u< )F?)E!eAf?i )F3)E!ODn )FA)EM)F!0ef )G!:;(< )Fw)G!>] )FP)G!/@ )Ft)GA)F!sq}|\\ )H6)G!iNQmE )HC)J=)H})I!GH )Hz*o!(4>DILV[aouvx%~ *p!&(%s )IL)Hq)I!3) )J&)Hd)I8)J@)Ia)J/)Ij)J!,S:OgG )I\\)KB)J!VW )KD)J!X52Hjv )K1)J!z| )K!J'7@U )Jd)KV)J\\)Ku)LL)Kc)L!45 )M))Kh)L!a[ )Md)L!mxR )M!R= )L!ZEu )M!@UTm[o )f!Je )P!:;@=KLFSTZc *^!UW[%]_`bacdfhklnqu *p!tu%~ *q!&'%6;NVbgjmor%xz%|~ *r!&-%0479@DEG%IL%PR%TVY[\\ac%gin%z} *s!&' *^!wxy *_!)+ *\\j)5!'37;>=A@H *7`)k!EJUegi )>/)@!789Sb )DW)@!L^I )^`)C5)@!f}z )A&)@~*2<)A!OD1?FQGgt| )B!>4Urs} )C'*X!236;=@EFHIGMUY *N!AD%FH%K )d!3d )c{)d!+4CDIPRTW )7r)8C)9h*s!)+.%02378:%CE%LNOQRTUWX\\_`eghmnpqs%|~ *t!&'%+/%24%689<>%ACFGIN%PT%VXY[%_acd );E)=,*2:)Q!JS]UYegfmux%z )R!(0+19 )>!0Pf )c!kptN *DV(`0*3!|yp *4@)CH*4!A5/18;k%n_FH]Q[ )CN*4!aouxq *5!89 *4v*5')CS*5=*Ue*5!aIWC]sw~ *6!F+,C2;NO?9 (q~(xw*6!ZTc )Ym*6!u| *7E)Cd*7!C4 *t!ef%moprsuw%{~ *u!&'(*%<?@BCEGHJNOQ%SU%]`b%fh%oq%uwy%{~ *v!'()+%/ *7:*6x)O!6IKUXk *y!XYZ\\`a )Pl),})P{*Nm)?2+3=)?!5^hfenptx )^![wqx )_!=B9-3jL )`!9<?XZ )a!C,8 )`n)aB)`s)a!HJh )b!*, )a!xp )b!WK^p )c!;F )^G)`A)a6)b0)5!ZY_de )w!ejps )x!,- )w})x!+3(1@8KV[kx )y+).!\\[ *v!01346%<>@BCEG%wz *w!'(%+-0%G )/n)0!63@ )/s)0!2< )1+)2!-4 )3!+wk )4!@F{ *3!]\\ )SA)TK)WF)t!+-5>LMF )?M)t!bQRn%pTqZaX^ )u!*I23 )t[)u,)t|)u!(Fwovcx} )v!&5<(W\\Lou )w/)vw)w!=NH^ +4.+2!>@A )q!1DM9GHZbYmfux )r!78.*AO *w!HI%~ *x!&'%N )r!ILftdgsx )s!-.>CK )l!7=KHEXov )m'*0!@IG *Oi*0!P\\Yaif )p!f~ *Ii*m!89:>=?@BCGJHM%OVW^]`_bcegi%moprw{%~ *n!&'(*%,/%13258%:<>?ABD *x!OP%Tknruy *y!*/%TVW[]^b%dg%mp%~ *z!&'%5 *n!CEHIM%OQSVWY]\\`acdg%il%pruw%y| *o!+,*-2357%9=?@C6E%GJMOPS%UW%Z\\_`^bce%mpr%t; )s!uz *sf)y!Me[c~ )'A)y!{z )z!=3 *z!67%:<=?%[]%~ *{!&'(+%79;HMNPSWX^ )z!XVp +1m*{z){6)oz)p!',2= )k!46 )l)+/!prx%| +0!)(-/.01589;=%@BCEHLNQ%SUZ]%chdj )m!68:DAPGWX\\hUTgfzq )n!.31/62N<GJ[KPWbUpc`d *{!aco%y{|~ *|!&'%u )nf)o.)n!mk )o2)n!x{ )o!1'50 )n~)o!?PFNH]a *1Y)|S){!>?FLN[lfrnsy *J!BGP[]` *K!'K<ANgShjv *L!F( *Km*L**Ku*L!ME?G6`Wbm *M!9N )m/*4i)p!KM )sj*2!HJLRVX[%]_^gAky| *3!*/FN *MV*x!X`c *|!vw%~ *}!&'%| *x!ilmotz{~ *y!&(),- *D!AH`bsnpo *E!C(&G8B>E.DQ_PiKULJdjO *F!+34/5 *Ek*FU*Ey*F6*E!zsl *F!EI:JLOKe}`gp\\ *G!'1 *F!vsky *G!(k *Fd*G!fgdIY5Wt<LeMBN| *H!?8b *}!}~ *~!&'%5<MSWX^_cps%y|%~ +&!&*,.%0457%;>%ACE%HJ%OQS%VX%[]_a%ikm%su%w *HV*G!qn *H!=' *Gl*H!;u<EC[cMaPZkzp~ *I!MJ5ARXps */w*0!*,- *80)|!gjupq )}))|w)}?)||)}![L>-BE498GR2lnY )~0)}!`qt )~!)6 )}v)~!-,KabsgXc@eW]fo *&3)~|*&!.?<GHLn`^qxm +&!xz%~ +'!&(%*,%68%:<%FHIK%RU%X^b%dfhjkm%~ +(!&'%: *'!(3/AJI *7!wz{}e *I{*8!ABCMOHKX[ST^dikoz *9!&/ *J!\\cf *K!]d *M1*1!,.6>?A *(,)>D*(!AMLNRblmqw|}xu *)!.? *95)B?*1!N]dtpux} *2)*)O**u*+!KS *-:*.5+1!VR *Xs*Y!+;8X *X!gm *U!RT *c!w}{| *d8+(!;<%~ +)!&'%A *d!65D=CQRFHM`Ydaevw~ *e!()*0/5 *U`+0u*Y_*Z!9S *[!N^ *Y!\\fcak}~ *Z!(, *Y!uv *Z)*Ym*Z!:EF1GI2WKbkmz|q} *[!/5.*2&>67FG?ekqdiz *\\!+0,8: *V!*4<7JF )?=*N!PXTV +)!BC%~ +*!&'%H *N!_ei *O_*R<*u>*t!-73JELSRnqt *u)+3!loq%vx +2!CPR *s!VYZko )sM*s}*g!Ww *h8*iU*j(*k/*jM*l!Jw ++!369%< )zB++!?BD%FHINOR%WY%]_abd%kn%qx%{~ +,&+*!IJ%~ ++!&'%/12478=>@CGJ%MQ^`cmr%v|} +,!,-56;<'%+.%02%478:= *u!gp|} *v!&A=5DF *~!{z +&(+0O+&!'+-2163<=B +'!][_a`ei *yo*z!;\\ *{!*) +&!PRW`\\l^jy +'!'+7; +1![\\ *-.+0!y~ +1!&)0 *k;+1!;=y%{~} +2!'.,*/4gqt~| +3!)*0 +,!>?%~ +-!&'%~ +.!&'%~ +/!&'%ntw~ +0!'+237DGI%KMPTV%Y\\efik%twxz%} +1!'(*%/2%:<>%CE%QS%UWXZ]%ac%fh%jnpqs%uwx| +2!&()+-0%35%=?BD%OQTVWY%[]_%dfh%prsu%{} +3!&(+%/1%;>%jmny%~ +4!&'%+/%14%8 .*f.+!Zv .,!oy .-!;<%>@BCGN%PRSV%X -R!XY%~ -S!&'%N"));return function(n){var r=t(n);return r.URI=e(r),r}(r)}(),i=r;e.default=i},"6bff":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("970b")),s=r(n("5bc3")),u=function(){function t(){(0,o.default)(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return(0,s.default)(t,[{key:"addRootPath",value:function(t){return"/"===t[0]?t:"/".concat(t)}},{key:"mixinParam",value:function(t,e){t=t&&this.addRootPath(t);var n="";return/.*\/.*\?.*=.*/.test(t)?(n=uni.$u.queryParams(e,!1),t+"&".concat(n)):(n=uni.$u.queryParams(e),t+n)}},{key:"route",value:function(){var t=(0,a.default)(i.default.mark((function t(){var e,n,r,a,o=arguments;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=o.length>0&&void 0!==o[0]?o[0]:{},n=o.length>1&&void 0!==o[1]?o[1]:{},r={},"string"===typeof e?(r.url=this.mixinParam(e,n),r.type="navigateTo"):(r=uni.$u.deepMerge(e,this.config),r.url=this.mixinParam(e.url,e.params)),r.url!==uni.$u.page()){t.next=6;break}return t.abrupt("return");case 6:if(n.intercept&&(this.config.intercept=n.intercept),r.params=n,r=uni.$u.deepMerge(this.config,r),"function"!==typeof uni.$u.routeIntercept){t.next=16;break}return t.next=12,new Promise((function(t,e){uni.$u.routeIntercept(r,t)}));case 12:a=t.sent,a&&this.openPage(r),t.next=17;break;case 16:this.openPage(r);case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"openPage",value:function(t){var e=t.url,n=(t.type,t.delta),r=t.animationType,i=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||uni.navigateTo({url:e,animationType:r,animationDuration:i}),"redirectTo"!=t.type&&"redirect"!=t.type||uni.redirectTo({url:e}),"switchTab"!=t.type&&"tab"!=t.type||uni.switchTab({url:e}),"reLaunch"!=t.type&&"launch"!=t.type||uni.reLaunch({url:e}),"navigateBack"!=t.type&&"back"!=t.type||uni.navigateBack({delta:n})}}]),t}(),c=(new u).route;e.default=c},"6c35":function(t,e,n){"use strict";n.r(e);var r=n("da91"),i=n("578b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"361197e0",null,!1,r["a"],void 0);e["default"]=s.exports},"6d9d":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.$alert=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\u7cfb\u7edf\u63d0\u793a",n=arguments.length>2?arguments[2]:void 0;uni.showModal({title:e,content:t,showCancel:!1,confirmText:"\u786e\u5b9a",success:function(t){t.confirm&&n&&n()}})},e.$successInfo=function(t){uni.showToast({title:t,mask:!0,icon:"success"})},e.color=void 0,e.downloadApk=function(e){try{var n=function(){try{plus.runtime.openURL(e.downUrl,(function(e){t("log",e," at static/js/utils/index.js:120")}))}catch(n){t("log","_downFun Error!"," at static/js/utils/index.js:122"),t("log",n," at static/js/utils/index.js:123")}setTimeout((function(){uni.hideLoading()}),1e4)};uni.showLoading({title:"\u5f00\u542f\u4e0b\u8f7d...",mask:!0}),3!=plus.networkinfo.getCurrentType()?(uni.hideLoading(),uni.showModal({title:"\u7cfb\u7edf\u63d0\u793a",content:"\u5f53\u524d\u975eWIFI\u73af\u5883\uff0c\u786e\u8ba4\u7ee7\u7eed\u4e0b\u8f7d\u5417\uff1f",success:function(t){t.confirm&&(uni.showLoading({title:"\u5f00\u542f\u4e0b\u8f7d...",mask:!0}),n())}})):n()}catch(r){uni.hideLoading(),uni.showModal({title:"\u7cfb\u7edf\u63d0\u793a",content:"\u4e0b\u8f7d\u5931\u8d25",showCancel:!1}),t("log","DownloadApk Error!"," at static/js/utils/index.js:159"),t("log",r," at static/js/utils/index.js:160")}},e.getDicList=function(t,e){var n=[],r=t.getters["system/getEnum"];r&&(n=r.filter((function(t){return t.code==e})));return n.length>0?n[0]:[]},e.getObjectType=function(t){if("object"!==(0,i.default)(t))return null;var e=Object.prototype.toString.call(t).toLowerCase().trim();e=e.substr(1,e.length-2);var n=e.split(" ");return n[1]},e.getUserDefaultArea=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"code",r="",i=t.getters["user/getUserInfo"]["workShopType"],a=0;a<e.length;a++)if(String(e[a][n])===Sring(i)){r=i;break}return r},e.getUserDefaultLine=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"productionlineId",r="",i=t.getters["user/getUserInfo"]["productionlineId"],a=0;a<e.length;a++)if(e[a][n]===i){r=i;break}return r},e.parseDic=function(t,e,n){var r="",i=t.getters["system/getEnum"];if(i){var a,o=i.filter((function(t){return t.code==e}));if(o.length>0)r=null===(a=o[0])||void 0===a?void 0:a.sysDictDatas.filter((function(t){return t.code==n})),r=r.length>0?r[0].value:"",r||(r="\u65e0\u6b64\u5b57\u5178");else r="\u65e0\u6b64\u5b57\u5178"}else r="Failed";return r},e.regexValidate=void 0,e.uuid=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="",r=0,i=function(){return["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"][Math.floor(26*Math.random())]},a=0;a<t;a++)switch(e){case 1:r=Math.floor(2*Math.random()),n+=0===r?Math.floor(10*Math.random()).toString():i();break;case 2:n+=Math.floor(10*Math.random()).toString();break;case 3:r=Math.floor(2*Math.random()),n+=0===r?i():i().toUpperCase();break;case 4:n+=i();break;default:r=Math.floor(3*Math.random()),n+=0===r?Math.floor(10*Math.random()).toString():1===r?i():i().toUpperCase();break}return n};var i=r(n("7037")),a=r(n("8e2a")),o=r(n("8d7e")),s=a.default;e.color=s;var u=o.default;e.regexValidate=u}).call(this,n("0de9")["default"])},"6dbe":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={cell:{customClass:"",title:"",label:"",value:"",icon:"",disabled:!1,border:!0,center:!1,url:"",linkType:"navigateTo",clickable:!1,isLink:!1,required:!1,arrowDirection:"",iconStyle:{},rightIconStyle:{},rightIcon:"arrow-right",titleStyle:{},size:"",stop:!0,name:""}}},"6e05":function(t,e,n){"use strict";n.r(e);var r=n("0504"),i=n("910c");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"cb9e3a40",null,!1,r["a"],void 0);e["default"]=s.exports},"6e26":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={calendar:{title:"\u65e5\u671f\u9009\u62e9",showTitle:!0,showSubtitle:!0,mode:"single",startText:"\u5f00\u59cb",endText:"\u7ed3\u675f",customList:function(){return[]},color:"#3c9cff",minDate:0,maxDate:0,defaultDate:null,maxCount:Number.MAX_SAFE_INTEGER,rowHeight:56,formatter:null,showLunar:!1,showMark:!0,confirmText:"\u786e\u5b9a",confirmDisabledText:"\u786e\u5b9a",show:!1,closeOnClickOverlay:!1,readonly:!1,showConfirm:!0,maxRange:Number.MAX_SAFE_INTEGER,rangePrompt:"",showRangePrompt:!0,allowSameDay:!1,round:0,monthNum:3}};e.default=r},"6fe2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{show:{type:Boolean,default:uni.$u.props.loadingIcon.show},color:{type:String,default:uni.$u.props.loadingIcon.color},textColor:{type:String,default:uni.$u.props.loadingIcon.textColor},vertical:{type:Boolean,default:uni.$u.props.loadingIcon.vertical},mode:{type:String,default:uni.$u.props.loadingIcon.mode},size:{type:[String,Number],default:uni.$u.props.loadingIcon.size},textSize:{type:[String,Number],default:uni.$u.props.loadingIcon.textSize},text:{type:[String,Number],default:uni.$u.props.loadingIcon.text},timingFunction:{type:String,default:uni.$u.props.loadingIcon.timingFunction},duration:{type:[String,Number],default:uni.$u.props.loadingIcon.duration},inactiveColor:{type:String,default:uni.$u.props.loadingIcon.inactiveColor}}};e.default=r},7037:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"708c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={"uicon-level":"\ue693","uicon-column-line":"\ue68e","uicon-checkbox-mark":"\ue807","uicon-folder":"\ue7f5","uicon-movie":"\ue7f6","uicon-star-fill":"\ue669","uicon-star":"\ue65f","uicon-phone-fill":"\ue64f","uicon-phone":"\ue622","uicon-apple-fill":"\ue881","uicon-chrome-circle-fill":"\ue885","uicon-backspace":"\ue67b","uicon-attach":"\ue632","uicon-cut":"\ue948","uicon-empty-car":"\ue602","uicon-empty-coupon":"\ue682","uicon-empty-address":"\ue646","uicon-empty-favor":"\ue67c","uicon-empty-permission":"\ue686","uicon-empty-news":"\ue687","uicon-empty-search":"\ue664","uicon-github-circle-fill":"\ue887","uicon-rmb":"\ue608","uicon-person-delete-fill":"\ue66a","uicon-reload":"\ue788","uicon-order":"\ue68f","uicon-server-man":"\ue6bc","uicon-search":"\ue62a","uicon-fingerprint":"\ue955","uicon-more-dot-fill":"\ue630","uicon-scan":"\ue662","uicon-share-square":"\ue60b","uicon-map":"\ue61d","uicon-map-fill":"\ue64e","uicon-tags":"\ue629","uicon-tags-fill":"\ue651","uicon-bookmark-fill":"\ue63b","uicon-bookmark":"\ue60a","uicon-eye":"\ue613","uicon-eye-fill":"\ue641","uicon-mic":"\ue64a","uicon-mic-off":"\ue649","uicon-calendar":"\ue66e","uicon-calendar-fill":"\ue634","uicon-trash":"\ue623","uicon-trash-fill":"\ue658","uicon-play-left":"\ue66d","uicon-play-right":"\ue610","uicon-minus":"\ue618","uicon-plus":"\ue62d","uicon-info":"\ue653","uicon-info-circle":"\ue7d2","uicon-info-circle-fill":"\ue64b","uicon-question":"\ue715","uicon-error":"\ue6d3","uicon-close":"\ue685","uicon-checkmark":"\ue6a8","uicon-android-circle-fill":"\ue67e","uicon-android-fill":"\ue67d","uicon-ie":"\ue87b","uicon-IE-circle-fill":"\ue889","uicon-google":"\ue87a","uicon-google-circle-fill":"\ue88a","uicon-setting-fill":"\ue872","uicon-setting":"\ue61f","uicon-minus-square-fill":"\ue855","uicon-plus-square-fill":"\ue856","uicon-heart":"\ue7df","uicon-heart-fill":"\ue851","uicon-camera":"\ue7d7","uicon-camera-fill":"\ue870","uicon-more-circle":"\ue63e","uicon-more-circle-fill":"\ue645","uicon-chat":"\ue620","uicon-chat-fill":"\ue61e","uicon-bag-fill":"\ue617","uicon-bag":"\ue619","uicon-error-circle-fill":"\ue62c","uicon-error-circle":"\ue624","uicon-close-circle":"\ue63f","uicon-close-circle-fill":"\ue637","uicon-checkmark-circle":"\ue63d","uicon-checkmark-circle-fill":"\ue635","uicon-question-circle-fill":"\ue666","uicon-question-circle":"\ue625","uicon-share":"\ue631","uicon-share-fill":"\ue65e","uicon-shopping-cart":"\ue621","uicon-shopping-cart-fill":"\ue65d","uicon-bell":"\ue609","uicon-bell-fill":"\ue640","uicon-list":"\ue650","uicon-list-dot":"\ue616","uicon-zhihu":"\ue6ba","uicon-zhihu-circle-fill":"\ue709","uicon-zhifubao":"\ue6b9","uicon-zhifubao-circle-fill":"\ue6b8","uicon-weixin-circle-fill":"\ue6b1","uicon-weixin-fill":"\ue6b2","uicon-twitter-circle-fill":"\ue6ab","uicon-twitter":"\ue6aa","uicon-taobao-circle-fill":"\ue6a7","uicon-taobao":"\ue6a6","uicon-weibo-circle-fill":"\ue6a5","uicon-weibo":"\ue6a4","uicon-qq-fill":"\ue6a1","uicon-qq-circle-fill":"\ue6a0","uicon-moments-circel-fill":"\ue69a","uicon-moments":"\ue69b","uicon-qzone":"\ue695","uicon-qzone-circle-fill":"\ue696","uicon-baidu-circle-fill":"\ue680","uicon-baidu":"\ue681","uicon-facebook-circle-fill":"\ue68a","uicon-facebook":"\ue689","uicon-car":"\ue60c","uicon-car-fill":"\ue636","uicon-warning-fill":"\ue64d","uicon-warning":"\ue694","uicon-clock-fill":"\ue638","uicon-clock":"\ue60f","uicon-edit-pen":"\ue612","uicon-edit-pen-fill":"\ue66b","uicon-email":"\ue611","uicon-email-fill":"\ue642","uicon-minus-circle":"\ue61b","uicon-minus-circle-fill":"\ue652","uicon-plus-circle":"\ue62e","uicon-plus-circle-fill":"\ue661","uicon-file-text":"\ue663","uicon-file-text-fill":"\ue665","uicon-pushpin":"\ue7e3","uicon-pushpin-fill":"\ue86e","uicon-grid":"\ue673","uicon-grid-fill":"\ue678","uicon-play-circle":"\ue647","uicon-play-circle-fill":"\ue655","uicon-pause-circle-fill":"\ue654","uicon-pause":"\ue8fa","uicon-pause-circle":"\ue643","uicon-eye-off":"\ue648","uicon-eye-off-outline":"\ue62b","uicon-gift-fill":"\ue65c","uicon-gift":"\ue65b","uicon-rmb-circle-fill":"\ue657","uicon-rmb-circle":"\ue677","uicon-kefu-ermai":"\ue656","uicon-server-fill":"\ue751","uicon-coupon-fill":"\ue8c4","uicon-coupon":"\ue8ae","uicon-integral":"\ue704","uicon-integral-fill":"\ue703","uicon-home-fill":"\ue964","uicon-home":"\ue965","uicon-hourglass-half-fill":"\ue966","uicon-hourglass":"\ue967","uicon-account":"\ue628","uicon-plus-people-fill":"\ue626","uicon-minus-people-fill":"\ue615","uicon-account-fill":"\ue614","uicon-thumb-down-fill":"\ue726","uicon-thumb-down":"\ue727","uicon-thumb-up":"\ue733","uicon-thumb-up-fill":"\ue72f","uicon-lock-fill":"\ue979","uicon-lock-open":"\ue973","uicon-lock-opened-fill":"\ue974","uicon-lock":"\ue97a","uicon-red-packet-fill":"\ue690","uicon-photo-fill":"\ue98b","uicon-photo":"\ue98d","uicon-volume-off-fill":"\ue659","uicon-volume-off":"\ue644","uicon-volume-fill":"\ue670","uicon-volume":"\ue633","uicon-red-packet":"\ue691","uicon-download":"\ue63c","uicon-arrow-up-fill":"\ue6b0","uicon-arrow-down-fill":"\ue600","uicon-play-left-fill":"\ue675","uicon-play-right-fill":"\ue676","uicon-rewind-left-fill":"\ue679","uicon-rewind-right-fill":"\ue67a","uicon-arrow-downward":"\ue604","uicon-arrow-leftward":"\ue601","uicon-arrow-rightward":"\ue603","uicon-arrow-upward":"\ue607","uicon-arrow-down":"\ue60d","uicon-arrow-right":"\ue605","uicon-arrow-left":"\ue60e","uicon-arrow-up":"\ue606","uicon-skip-back-left":"\ue674","uicon-skip-forward-right":"\ue672","uicon-rewind-right":"\ue66f","uicon-rewind-left":"\ue671","uicon-arrow-right-double":"\ue68d","uicon-arrow-left-double":"\ue68c","uicon-wifi-off":"\ue668","uicon-wifi":"\ue667","uicon-empty-data":"\ue62f","uicon-empty-history":"\ue684","uicon-empty-list":"\ue68b","uicon-empty-page":"\ue627","uicon-empty-order":"\ue639","uicon-man":"\ue697","uicon-woman":"\ue69c","uicon-man-add":"\ue61c","uicon-man-add-fill":"\ue64c","uicon-man-delete":"\ue61a","uicon-man-delete-fill":"\ue66a","uicon-zh":"\ue70a","uicon-en":"\ue692"}},"70f4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("full-page-layout",{attrs:{gradient:t.gradient,"base-background-color":t.baseBackgroundColor,"gradient-value":t.gradientValue,safety:t.safety,full:t.full,_i:0}},[n("view",{staticClass:t._$s(1,"sc","header-page-containter"),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","header-page-containter-header"),attrs:{_i:2}},[n("page-header",{attrs:{color:t.headerColor,gradient:t.headerGradient,"gradient-value":t.headerGradientValue,"background-color":t.headerBackgroundColor,_i:3},on:{click:t.onHeaderAsideClick},scopedSlots:t._u([t._$s(4,"i",t.$scopedSlots.headerleft)?{key:"left",fn:function(e,n,r){return[t._t("headerleft",null,{_i:"5-"+r})]}}:null,t._$s(6,"i",t.$scopedSlots.headerright)?{key:"right",fn:function(e,n,r){return[t._t("headerright",null,{_i:"7-"+r})]}}:null],null,!0)},[t._v(t._$s(3,"t0-0",t._s(t.title)))])],1),n("view",{staticClass:t._$s(8,"sc","header-page-containter-body"),style:t._$s(8,"s",{backgroundColor:t.backgroundColor}),attrs:{_i:8}},[t._t("default",null,{_i:9})],2),n("view",{staticClass:t._$s(10,"sc","header-page-footer"),style:t._$s(10,"s",{backgroundColor:t.backgroundColor}),attrs:{_i:10}},[t._t("footer",null,{_i:11})],2)])])},i=[]},7141:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={actionSheet:{show:!1,title:"",description:"",actions:function(){return[]},index:"",cancelText:"",closeOnClickAction:!0,safeAreaInsetBottom:!0,openType:"",closeOnClickOverlay:!0,round:0}}},7143:function(t,e,n){"use strict";function r(){this.handlers=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){this.handlers.forEach((function(e){null!==e&&t(e)}))};var i=r;e.default=i},"714d":function(t,e,n){"use strict";n.r(e);var r=n("b2af"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},7159:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-safe-bottom"),class:this._$s(0,"c",[!this.isNvue&&"u-safe-area-inset-bottom"]),style:this._$s(0,"s",[this.style]),attrs:{_i:0}})},i=[]},"722c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?"".concat(t.replace(/\/+$/,""),"/").concat(e.replace(/^\/+/,"")):t}},"733c":function(t,e,n){"use strict";n.r(e);var r=n("0f61"),i=n("e551");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"1a3187e0",null,!1,r["a"],void 0);e["default"]=s.exports},"73e9":function(t,e,n){"use strict";n.r(e);var r=n("ac4d"),i=n("ce91");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3535302b",null,!1,r["a"],void 0);e["default"]=s.exports},"741f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={keyboard:{mode:"number",dotDisabled:!1,tooltip:!0,showTips:!0,tips:"",showCancel:!0,showConfirm:!0,random:!1,safeAreaInsetBottom:!0,closeOnClickOverlay:!0,show:!1,overlay:!0,zIndex:10075,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u5b9a",autoChange:!1}}},7428:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.containerHandle=function(t){return(0,i.default)({url:"/api/container/containerHandle",method:"post",data:t})},e.getContainerPlaceByPlace=function(t){return(0,i.default)({url:"/api/container/getContainerPlaceByPlace?".concat(a.default.stringify(t)),method:"get"})},e.getContainerPlaceInfo=function(t){return(0,i.default)({url:"/api/container/getContainerPlaceInfo?".concat(a.default.stringify(t)),method:"get"})};var i=r(n("98af")),a=r(n("4328"))},"744d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={toast:{zIndex:10090,loading:!1,text:"",icon:"",type:"",loadingMode:"",show:"",overlay:!1,position:"center",params:function(){},duration:2e3,isTab:!1,url:"",callback:null,back:!1}}},"744f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swiperIndicator:{length:0,current:0,indicatorActiveColor:"",indicatorInactiveColor:"",indicatorMode:"line"}}},"74e5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={namespaced:!0,state:function(){return{defaulthost:"",authhost:"",version:"",safety:{top:0,bottom:0,left:0,right:0},enum:null}},mutations:{setdefaultHost:function(t,e){uni.setStorageSync("system_host",e),t.defaulthost=e},setauthHost:function(t,e){uni.setStorageSync("system_login_host",e),t.authhost=e},setVersion:function(t,e){uni.setStorageSync("system_app_version",e),t.version=e},setSafety:function(t,e){t.safety=e},setEnum:function(t,e){uni.setStorageSync("system_enum",JSON.stringify(e)),t.enum=e}},actions:{},getters:{getdefaultHost:function(t){var e=t.defaulthost;if(!e){var n=uni.getStorageSync("system_host");n&&(e=n,t.defaulthost=e)}return e},getauthHost:function(t){var e=t.authhost;if(!e){var n=uni.getStorageSync("system_login_host");n&&(e=n,t.authhost=e)}return e},getVersion:function(t){var e=t.version;if(!e){var n=uni.getStorageSync("system_app_version");n&&(e=n,t.version=e)}return e},getSafety:function(t){return t.safety},getEnum:function(t){var e=t.enum;if(!e){var n=uni.getStorageSync("system_enum");if(n)try{e=JSON.parse(n),t.enum=e}catch(r){}}return e||(e={}),e}}};e.default=r},"75ac":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","easy-select-form-item-compontent"),attrs:{_i:0}},[t._$s(1,"i",t.label)?n("view",{staticClass:t._$s(1,"sc","p-form-label"),attrs:{_i:1}},[t._$s(2,"i",t.required)?n("text",{staticClass:t._$s(2,"sc","required-tag"),attrs:{_i:2}}):t._e(),t._v(t._$s(1,"t1-0",t._s(t.label)))]):t._e(),n("view",{staticClass:t._$s(3,"sc","input-row"),attrs:{_i:3},on:{click:function(e){return e.stopPropagation(),t.onOpenPicker(e)}}},[t._$s(4,"i",t.disabled)?n("view",{staticClass:t._$s(4,"sc","mask"),attrs:{_i:4},on:{click:function(t){t.stopPropagation()}}}):t._e(),n("view",{staticClass:t._$s(5,"sc","input-view"),attrs:{_i:5}},[t._$s(6,"i",!t.innerLabel)?n("text",{staticClass:t._$s(6,"sc","placeholder"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.placeholder)))]):n("text",[t._v(t._$s(7,"t0-0",t._s(t.innerLabel)))])]),t._$s(8,"i",t.innerLabel&&t.clearable)?n("view",{staticClass:t._$s(8,"sc","close-view"),attrs:{_i:8},on:{click:function(e){return e.stopPropagation(),t.onClear(e)}}},[n("view",{staticClass:t._$s(9,"sc","close-circle"),attrs:{_i:9}},[n("u-icon",{attrs:{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px",_i:10}})],1)]):t._e(),n("view",{staticClass:t._$s(11,"sc","right-icon-view"),attrs:{_i:11}},[n("u-icon",{attrs:{name:"arrow-right",color:"#909193",size:24,_i:12}})],1)]),t._$s(13,"i",t.msg)?n("view",{staticClass:t._$s(13,"sc","msg-row"),class:t._$s(13,"c",["info"===t.msgType?"info-type":""]),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.msg)))]):t._e(),n("easy-picker",{attrs:{visible:t.pickerVisible,list:t.list,"value-field":t.valueField,"label-field":t.labelField,_i:14},on:{"update:visible":function(e){t.pickerVisible=e},select:t.onPickerSelect}})],1)},a=[]},7652:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.divide=h,e.enableBoundaryChecking=m,e.minus=p,e.plus=d,e.round=v,e.times=f;var i=r(n("480f")),a=!0;function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(t).toPrecision(e))}function s(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function u(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));var e=s(t);return e>0?o(Number(t)*Math.pow(10,e)):Number(t)}function c(e){a&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&t("warn","".concat(e," \u8d85\u51fa\u4e86\u7cbe\u5ea6\u9650\u5236\uff0c\u7ed3\u679c\u53ef\u80fd\u4e0d\u6b63\u786e")," at uni_modules/uview-ui/libs/function/digit.js:45")}function l(t,e){var n=(0,i.default)(t),r=n[0],a=n[1],o=n.slice(2),s=e(r,a);return o.forEach((function(t){s=e(s,t)})),s}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length>2)return l(e,f);var r=e[0],i=e[1],a=u(r),o=u(i),d=s(r)+s(i),p=a*o;return c(p),p/Math.pow(10,d)}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length>2)return l(e,d);var r=e[0],i=e[1],a=Math.pow(10,Math.max(s(r),s(i)));return(f(r,a)+f(i,a))/a}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length>2)return l(e,p);var r=e[0],i=e[1],a=Math.pow(10,Math.max(s(r),s(i)));return(f(r,a)-f(i,a))/a}function h(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length>2)return l(e,h);var r=e[0],i=e[1],a=u(r),d=u(i);return c(a),c(d),f(a/d,o(Math.pow(10,s(i)-s(r))))}function v(t,e){var n=Math.pow(10,e),r=h(Math.round(Math.abs(f(t,n))),n);return t<0&&0!==r&&(r=f(r,-1)),r}function m(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a=t}var g={times:f,plus:d,minus:p,divide:h,round:v,enableBoundaryChecking:m};e.default=g}).call(this,n("0de9")["default"])},"76f6":function(t,e,n){"use strict";n.r(e);var r=n("9b36"),i=n("bc03");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3e1528a4",null,!1,r["a"],void 0);e["default"]=s.exports},"771a":function(t,e,n){"use strict";n.r(e);var r=n("a103"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},7724:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={rate:{value:1,count:5,disabled:!1,size:18,inactiveColor:"#b2b2b2",activeColor:"#FA3534",gutter:4,minCount:1,allowHalf:!1,activeIcon:"star-fill",inactiveIcon:"star",touchable:!0}}},"777b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default="plus"},"779d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={empty:{icon:"",text:"",textColor:"#c0c4cc",textSize:14,iconColor:"#c0c4cc",iconSize:90,mode:"data",width:160,height:160,show:!0,marginTop:0}}},"792e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={formItem:{label:"",prop:"",borderBottom:"",labelPosition:"",labelWidth:"",rightIcon:"",leftIcon:"",required:!1,leftIconStyle:""}}},7930:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u547c\u53eb\u7a7a\u6258",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("7-"+i,"sc","bottom-btns-row"),attrs:{_i:"7-"+i}},[n("view",{staticClass:r._$s("8-"+i,"sc","btn-frame"),attrs:{_i:"8-"+i}},[n("u-button",{attrs:{disabled:!Boolean(t.form.placeNo),type:"primary",text:"\u547c\u53eb\u6258\u76d8",_i:"9-"+i},on:{click:t.onConfirm}})],1)])]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("easy-select-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{label:"\u76ee\u6807\u4f4d\u7f6e",value:t.form.placeNo,list:t.placeList,clearable:!1,valueField:"placeNo",labelField:"placeNo",_i:4},on:{select:t.selectPlace}}),n("scan-input-form-item",{staticClass:t._$s(5,"sc","forma-item"),attrs:{disabled:!0,placeholder:"",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u6240\u5c5e\u5e93\u533a",value:t.form.areaName,_i:5}})],1)],1):t._e()])},a=[]},"793b":function(t,e,n){"use strict";n.r(e);var r=n("a7b2"),i=n("4423");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"2fd500a1",null,!1,r["a"],void 0);e["default"]=s.exports},7972:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={numberBox:{name:"",value:0,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,asyncChange:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:null,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",cursorSpacing:100,disableMinus:!1,disablePlus:!1,iconStyle:""}};e.default=r},"79ae":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{autoClose:{type:Boolean,default:uni.$u.props.swipeAction.autoClose}}};e.default=r},"7a74":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u62e3\u8d27",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("10-"+i,"sc","bottom-btns-row"),attrs:{_i:"10-"+i}},[[n("div",{staticClass:r._$s("12-"+i,"sc","btn-frame"),attrs:{_i:"12-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u786e \u5b9a",_i:"13-"+i},on:{click:t.submint}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("scan-input-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{label:"\u6258\u76d8\u53f7",msg:t.msg.containterNo,"msg-type":t.msgType.containterNo,_i:4},on:{search:t.onSearchContainter,clear:t.onClearContainter},model:{value:t._$s(4,"v-model",t.form.containterNo),callback:function(e){t.$set(t.form,"containterNo",e)},expression:"form.containterNo"}}),n("scan-input-form-item",{staticClass:t._$s(5,"sc","forma-item"),attrs:{label:"\u7269\u6599\u4fe1\u606f",msg:t.msg.materialId,"msg-type":t.msgType.materialId,_i:5},on:{search:function(e){return t.selectMaterial(t.form.materialId)}},model:{value:t._$s(5,"v-model",t.form.materialId),callback:function(e){t.$set(t.form,"materialId",e)},expression:"form.materialId"}}),n("uni-view",{staticClass:t._$s(6,"sc","p-form-label"),attrs:{_i:6}},[t._v("")]),n("sortInfo",{attrs:{sortInfo:this.sortInfo,_i:7}}),n("contentCard",{attrs:{materialData:t.materialData,_i:8},on:{delMaterialData:t.delMaterialData,"item-click":t.handleItemClick}})],1)],1):t._e()])},a=[]},"7b78":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={notify:{top:0,type:"primary",color:"#ffffff",bgColor:"",message:"",duration:3e3,fontSize:15,safeAreaInsetTop:!1}}},"7bbf":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uSwipeAction:n("b6de").default,uSwipeActionItem:n("a808").default,uIcon:n("5a09").default,uBadge:n("6c35").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.materialData.length>0)?n("u-swipe-action",{attrs:{_i:0}},t._l(t._$s(1,"f",{forItems:t.materialData}),(function(e,r,i,a){return n("u-swipe-action-item",{key:t._$s(1,"f",{forIndex:i,key:"material-list-item-"+r}),attrs:{options:t.options,index:r,name:e.materialNo,_i:"1-"+a},on:{click:t.deleteItem}},[n("view",{staticClass:t._$s("2-"+a,"sc","material-item-group"),class:t._$s("2-"+a,"c",{content_active:e.checked}),attrs:{_i:"2-"+a}},[n("view",{staticClass:t._$s("3-"+a,"sc","material-list-item"),attrs:{_i:"3-"+a}},[n("view",{staticClass:t._$s("4-"+a,"sc","close-btn"),attrs:{_i:"4-"+a}},[n("view",{staticClass:t._$s("5-"+a,"sc","icon-layer"),attrs:{_i:"5-"+a}},[n("u-icon",{attrs:{name:"close",color:"#ffffff",size:"24",_i:"6-"+a}})],1)]),n("view",{staticClass:t._$s("7-"+a,"sc","badge-box"),attrs:{_i:"7-"+a}},[n("u-badge",{attrs:{value:r+1,"bg-color":"#F18201",_i:"8-"+a}})],1),n("view",{staticClass:t._$s("9-"+a,"sc","item-row underline"),attrs:{_i:"9-"+a}},[n("view",{staticClass:t._$s("10-"+a,"sc","label-content"),attrs:{_i:"10-"+a}},[n("view",{staticClass:t._$s("11-"+a,"sc","label"),attrs:{_i:"11-"+a}}),n("view",{staticClass:t._$s("12-"+a,"sc","content auto-wrap shadow"),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.materialNo)))])]),n("view",{staticClass:t._$s("13-"+a,"sc","label-content"),attrs:{_i:"13-"+a}},[n("view",{staticClass:t._$s("14-"+a,"sc","label"),attrs:{_i:"14-"+a}}),n("view",{staticClass:t._$s("15-"+a,"sc","content auto-wrap shadow"),attrs:{_i:"15-"+a}},[t._v(t._$s("15-"+a,"t0-0",t._s(e.materialName)))])])]),n("view",{staticClass:t._$s("16-"+a,"sc","item-row underline"),attrs:{_i:"16-"+a}},[n("view",{staticClass:t._$s("17-"+a,"sc","label-content"),attrs:{_i:"17-"+a}},[n("view",{staticClass:t._$s("18-"+a,"sc","label"),attrs:{_i:"18-"+a}}),n("view",{staticClass:t._$s("19-"+a,"sc","content auto-wrap shadow"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(t.parseDic(t.$store,"material_modal",e.materialModel))))])]),n("view",{staticClass:t._$s("20-"+a,"sc","label-content"),attrs:{_i:"20-"+a}},[n("view",{staticClass:t._$s("21-"+a,"sc","label"),attrs:{_i:"21-"+a}}),n("view",{staticClass:t._$s("22-"+a,"sc","content auto-wrap shadow"),attrs:{_i:"22-"+a}},[t._v(t._$s("22-"+a,"t0-0",t._s(e.materialNumber)))])])]),n("view",{staticClass:t._$s("23-"+a,"sc","item-row-sign"),attrs:{_i:"23-"+a}},[n("view",{staticClass:t._$s("24-"+a,"sc","label-content"),attrs:{_i:"24-"+a}},[n("view",{staticClass:t._$s("25-"+a,"sc","label"),attrs:{_i:"25-"+a}}),n("view",{staticClass:t._$s("26-"+a,"sc","content"),attrs:{_i:"26-"+a}},[t._v(t._$s("26-"+a,"t0-0",t._s(e.materialId)))])])])])])])})),1):t._e()},a=[]},"7bc7":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.show)?n("view",{staticClass:t._$s(0,"sc","u-loading-icon"),class:t._$s(0,"c",[t.vertical&&"u-loading-icon--vertical"]),style:t._$s(0,"s",[t.$u.addStyle(t.customStyle)]),attrs:{_i:0}},[t._$s(1,"i",!t.webviewHide)?n("view",{ref:"ani",staticClass:t._$s(1,"sc","u-loading-icon__spinner"),class:t._$s(1,"c",["u-loading-icon__spinner--"+t.mode]),style:t._$s(1,"s",{color:t.color,width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size),borderTopColor:t.color,borderBottomColor:t.otherBorderColor,borderLeftColor:t.otherBorderColor,borderRightColor:t.otherBorderColor,"animation-duration":t.duration+"ms","animation-timing-function":"semicircle"===t.mode||"circle"===t.mode?t.timingFunction:""}),attrs:{_i:1}},[t._$s(2,"i","spinner"===t.mode)?t._l(t._$s(3,"f",{forItems:t.array12}),(function(e,r,i,a){return n("view",{key:t._$s(3,"f",{forIndex:i,key:r}),staticClass:t._$s("3-"+a,"sc","u-loading-icon__dot"),attrs:{_i:"3-"+a}})})):t._e()],2):t._e(),t._$s(4,"i",t.text)?n("text",{staticClass:t._$s(4,"sc","u-loading-icon__text"),style:t._$s(4,"s",{fontSize:t.$u.addUnit(t.textSize),color:t.textColor}),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.text)))]):t._e()]):t._e()},i=[]},"7e8a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={line:{color:"#d6d7d9",length:"100%",direction:"row",hairline:!0,margin:0,dashed:!1}}},"7ead":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uOverlay:n("514e").default,uTransition:n("b12b").default,uStatusBar:n("8489").default,uIcon:n("5a09").default,uSafeBottom:n("650f").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-popup"),attrs:{_i:0}},[t._$s(1,"i",t.overlay)?n("u-overlay",{attrs:{show:t.show,duration:t.overlayDuration,customStyle:t.overlayStyle,opacity:t.overlayOpacity,_i:1},on:{click:t.overlayClick}}):t._e(),n("u-transition",{attrs:{show:t.show,customStyle:t.transitionStyle,mode:t.position,duration:t.duration,_i:2},on:{afterEnter:t.afterEnter,click:t.clickHandler}},[n("view",{staticClass:t._$s(3,"sc","u-popup__content"),style:t._$s(3,"s",[t.contentStyle]),attrs:{_i:3},on:{click:function(e){return e.stopPropagation(),t.noop(e)}}},[t._$s(4,"i",t.safeAreaInsetTop)?n("u-status-bar",{attrs:{_i:4}}):t._e(),t._t("default",null,{_i:5}),t._$s(6,"i",t.closeable)?n("view",{staticClass:t._$s(6,"sc","u-popup__content__close"),class:t._$s(6,"c",["u-popup__content__close--"+t.closeIconPos]),attrs:{_i:6},on:{click:function(e){return e.stopPropagation(),t.close(e)}}},[n("u-icon",{attrs:{name:"close",color:"#909399",size:"18",bold:!0,_i:7}})],1):t._e(),t._$s(8,"i",t.safeAreaInsetBottom)?n("u-safe-bottom",{attrs:{_i:8}}):t._e()],2)])],1)},a=[]},"7ec2":function(t,e,n){var r=n("7037")["default"];function i(){"use strict"; +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(E){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:C(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=d;var h={};function v(){}function m(){}function g(){}var y={};f(y,u,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b($([])));_&&_!==n&&a.call(_,u)&&(y=_);var w=g.prototype=v.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){var n;o(this,"_invoke",{value:function(i,o){function s(){return new e((function(n,s){(function n(i,o,s,u){var c=p(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)})(i,o,n,s)}))}return n=n?n.then(s,s):s()}})}function C(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return j()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=A(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function A(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=p(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function $(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return m.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=f(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(S.prototype),f(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new S(d(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(w),f(w,l,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=$,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:$(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7f69":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uLoadingIcon:n("fbfa").default},i=function(){var t=this.$createElement,e=this._self._c||t;return e("full-page-layout",{attrs:{safety:!1,_i:0}},[e("view",{staticClass:this._$s(1,"sc","start-page"),attrs:{_i:1}},[e("u-loading-icon",{attrs:{size:"80",color:"#333",_i:2}})],1)])},a=[]},8304:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){t.use(i.default);var e=new i.default.Store({modules:{user:a.default,system:o.default,print:s.default}});return e};var i=r(n("26cb")),a=r(n("4d10")),o=r(n("74e5")),s=r(n("d2c3"))},8384:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swipeActionItem:{show:!1,name:"",disabled:!1,threshold:20,autoClose:!0,options:[],duration:300}}},8489:function(t,e,n){"use strict";n.r(e);var r=n("86f2"),i=n("fbce");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"2292e5f5",null,!1,r["a"],void 0);e["default"]=s.exports},"84c4":function(t,e,n){"use strict";n.r(e);var r=n("869c"),i=n("1499");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"1c16ebe8",null,!1,r["a"],void 0);e["default"]=s.exports},"85be":function(t,e,n){"use strict";n.r(e);var r=n("7bbf"),i=n("db18");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"9d906bea",null,!1,r["a"],void 0);e["default"]=s.exports},"85ed":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={modal:{show:!1,title:"",content:"",confirmText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",showConfirmButton:!0,showCancelButton:!1,confirmColor:"#2979ff",cancelColor:"#606266",buttonReverse:!1,zoom:!0,asyncClose:!1,closeOnClickOverlay:!1,negativeTop:0,width:"650rpx",confirmButtonShape:""}}},8638:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={indexAnchor:{text:"",color:"#606266",size:14,bgColor:"#dedede",height:32}}},8663:function(t,e,n){"use strict";n.r(e);var r=n("6a59"),i=n("aece");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"105a0781",null,!1,r["a"],void 0);e["default"]=s.exports},"869c":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","action-user-row-compontent"),attrs:{_i:0}},[this._v(this._$s(0,"t0-0",this._s(this.userName)))])},i=[]},"86bf":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.SortInfo=function(t){return(0,i.default)({url:"/api/wmsSortOrder/sortInfo",method:"post",data:t})},e.addSortDetail=function(t){return(0,i.default)({url:"/api/wmsSortOrder/AddSortDetail",method:"post",data:t})},e.noPage=function(t){return(0,i.default)({url:"/api/InAndOutOrder/NoPage",method:"post",data:t})};var i=r(n("98af"));r(n("4328"))},"86f2":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-status-bar"),style:this._$s(0,"s",[this.style]),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},i=[]},"884b":function(t,e,n){"use strict";n.r(e);var r=n("5331"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},8863:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={alert:{title:"",type:"warning",description:"",closable:!1,showIcon:!1,effect:"light",center:!1,fontSize:14}}},"8ab5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={listItem:{anchor:""}}},"8ae1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{isDot:{type:Boolean,default:uni.$u.props.badge.isDot},value:{type:[Number,String],default:uni.$u.props.badge.value},show:{type:Boolean,default:uni.$u.props.badge.show},max:{type:[Number,String],default:uni.$u.props.badge.max},type:{type:String,default:uni.$u.props.badge.type},showZero:{type:Boolean,default:uni.$u.props.badge.showZero},bgColor:{type:[String,null],default:uni.$u.props.badge.bgColor},color:{type:[String,null],default:uni.$u.props.badge.color},shape:{type:String,default:uni.$u.props.badge.shape},numberType:{type:String,default:uni.$u.props.badge.numberType},offset:{type:Array,default:uni.$u.props.badge.offset},inverted:{type:Boolean,default:uni.$u.props.badge.inverted},absolute:{type:Boolean,default:uni.$u.props.badge.absolute}}};e.default=r},"8ae4":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("ccca")),a=r(n("6573")),o={ajax:i.default,pagination:a.default,downUrl:"http://localhost:81/1.0.0.apk",path:{home:"/pages/home/index",login:"/pages/login/index",bluetooth:"/pages/print/bluetoothConnection",host:"/pages/setting/host",online:"/pages/online/index",bind:"/pages/bind/index",bindContaniner:"/pages/bindContaniner/index",receive:"/pages/receiveIn/index",temporaryIn:"/pages/temporaryInstore/index",manualOut:"/pages/manual/out",unbind:"/pages/unbind/index",tasks:"/pages/tasks/index",notices:"/pages/notices/index",fapaoIn:"/pages/fapaoInStore/index",fapaoOut:"/pages/fapiaoOutStore/index",slicingOn:"/pages/slicingOn/index",slicingOff:"/pages/slicingOff/index",plywoodBind:"/pages/plywoodBind/index",plywoodInstore:"/pages/plywoodInstore/index",plywoodOut:"/pages/plywoodOut/index",emptyOut:"/pages/emptyOut/index",rsbIn:"/pages/rsbIn/index",emptyIn:"/pages/emptyIn/index",rsbOut:"/pages/rsbOut/index",sandingIn:"/pages/sandingInstore/index",endProductIn:"/pages/endProductInstore/index",innerTailBack:"/pages/innerTailBack/index",unstackingIn:"/pages/unstackingInstore/index",transport:"/pages/transport/index",changeStore:"/pages/changeStore/index",takeInStore:"/pages/takeInStore/index",checkStock:"/pages/checkStock/index",receiptExecution:"/pages/receiptExecution/index",sortingSearch:"/pages/sortingSearch/index",Outbound:"/pages/inAndOutBound/index",replenishMent:"/pages/replenishMent/index",sorting:"/pages/sortingSearch/index",exception:"/pages/exceptionHandle/index",containerHandle:"/pages/containerHandle/index"}};e.default=o},"8aec":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={statusBar:{bgColor:"transparent"}}},"8bbf":function(t,e){t.exports=Vue},"8d7e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7037")),a={mobile:function(t){return/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(t)},telephone:function(t){return/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(t)},email:function(t){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(t)},positiveInteger:function(t){var e=(0,i.default)(t);return"number"===e?parseInt(t)===t&&!(t<=0):"string"===e&&(!!t&&/^0*[1-9]\d*$/.test(t))},naturlNumber:function(t){var e=(0,i.default)(t);return"number"===e?parseInt(t)===t&&!(t<0):"string"===e&&(!!t&&/^([1-9]\d*|[0]{1,1})$/.test(t))},inputA:function(t){return/^[a-zA-Z]{1}[a-zA-Z0-9]*$/.test(t)},inputB:function(t){return/^[a-zA-Z]{1}[a-zA-Z0-9\-_]*$/.test(t)}};e.default=a},"8e2a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={getRandomHexColor:function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6)}};e.default=r},"8f91":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u6258\u76d8\u5904\u7406",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("8-"+i,"sc","bottom-btns-row"),attrs:{_i:"8-"+i}},[[n("div",{staticClass:r._$s("10-"+i,"sc","btn-frame"),attrs:{_i:"10-"+i}},[n("u-button",{attrs:{type:"primary",text:t.btnName,disabled:!t.abled,_i:"11-"+i},on:{click:t.onSubmit}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[n("scan-input-form-item",{staticClass:t._$s(4,"sc","forma-item"),attrs:{label:"\u6258\u76d8\u7f16\u7801",msg:t.msg.containter,"msg-type":t.msgType.containter,_i:4},on:{search:t.onSearchContainter,clear:t.onClearContainter},model:{value:t._$s(4,"v-model",t.form.containerNo),callback:function(e){t.$set(t.form,"containerNo",e)},expression:"form.containerNo"}}),n("selectItem",{directives:[{name:"show",rawName:"v-show",value:t._$s(5,"v-show",Boolean(t.containerInfo.containerNo)),expression:"_$s(5,'v-show',Boolean(containerInfo.containerNo))"}],attrs:{disabled:t.selectDisabled,selectData:t.areaData,value:t.form.areaNo,label:"\u5e93\u533a\u7f16\u53f7",labelField:"areaName",valueField:"areaNo",_i:5},on:{"update:value":function(e){return t.$set(t.form,"areaNo",e)}}}),n("selectItem",{directives:[{name:"show",rawName:"v-show",value:t._$s(6,"v-show",Boolean(t.containerInfo.containerNo)&&Boolean(t.form.areaNo)),expression:"_$s(6,'v-show',Boolean(containerInfo.containerNo)&&Boolean(form.areaNo))"}],attrs:{disabled:t.selectDisabled,selectData:t.placeList,value:t.form.placeNo,label:"\u5e93\u4f4d\u7f16\u53f7",labelField:"placeNo",valueField:"placeNo",_i:6},on:{"update:value":function(e){return t.$set(t.form,"placeNo",e)}}})],1)],1):t._e()])},a=[]},"905e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=null;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var i=!r;r=setTimeout((function(){r=null}),e),i&&"function"===typeof t&&t()}else r=setTimeout((function(){"function"===typeof t&&t()}),e)};e.default=i},"90c2":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("e81d")),a={name:"u-swiper-indicator",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{lineWidth:22}},computed:{lineStyle:function(){var t={};return t.width=uni.$u.addUnit(this.lineWidth),t.transform="translateX(".concat(uni.$u.addUnit(this.current*this.lineWidth),")"),t.backgroundColor=this.indicatorActiveColor,t},dotStyle:function(){var t=this;return function(e){var n={};return n.backgroundColor=e===t.current?t.indicatorActiveColor:t.indicatorInactiveColor,n}}}};e.default=a},"910c":function(t,e,n){"use strict";n.r(e);var r=n("67e2"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},9152:function(t,e){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ +e.read=function(t,e,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=t[e+f];for(f+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+t[e+f],f+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+t[e+f],f+=d,l-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},e.write=function(t,e,n,r,i,a){var o,s,u,c=8*a-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),e+=o+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(o++,u/=2),o+f>=l?(s=0,o=l):o+f>=1?(s=(e*u-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[n+p]=255&o,p+=h,o/=256,c-=8);t[n+p-h]|=128*v}},9162:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"actionUserRowCompontent",data:function(){return{userName:""}},created:function(){var t=this.$store.getters["user/getUserInfo"];this.userName=t.name}}},9523:function(t,e,n){var r=n("a395");t.exports=function(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"953f":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-icon"),class:t._$s(0,"c",["u-icon--"+t.labelPos]),attrs:{_i:0},on:{click:t.clickHandler}},[t._$s(1,"i",t.isImg)?n("image",{staticClass:t._$s(1,"sc","u-icon__img"),style:t._$s(1,"s",[t.imgStyle,t.$u.addStyle(t.customStyle)]),attrs:{src:t._$s(1,"a-src",t.name),mode:t._$s(1,"a-mode",t.imgMode),_i:1}}):n("text",{staticClass:t._$s(2,"sc","u-icon__icon"),class:t._$s(2,"c",t.uClasses),style:t._$s(2,"s",[t.iconStyle,t.$u.addStyle(t.customStyle)]),attrs:{"hover-class":t._$s(2,"a-hover-class",t.hoverClass),_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.icon)))]),t._$s(3,"i",""!==t.label)?n("text",{staticClass:t._$s(3,"sc","u-icon__label"),style:t._$s(3,"s",{color:t.labelColor,fontSize:t.$u.addUnit(t.labelSize),marginLeft:"right"==t.labelPos?t.$u.addUnit(t.space):0,marginTop:"bottom"==t.labelPos?t.$u.addUnit(t.space):0,marginRight:"left"==t.labelPos?t.$u.addUnit(t.space):0,marginBottom:"top"==t.labelPos?t.$u.addUnit(t.space):0}),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.label)))]):t._e()])},i=[]},"955f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tabbar:{value:null,safeAreaInsetBottom:!0,border:!0,zIndex:1,activeColor:"#1989fa",inactiveColor:"#7d7e80",fixed:!0,placeholder:!0}}},9617:function(t,e,n){"use strict";n.r(e);var r=n("f4a9"),i=n("ccae");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3cac4a15",null,!1,r["a"],void 0);e["default"]=s.exports},"970b":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"977f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={parse:{copyLink:!0,errorImg:"",lazyLoad:!1,loadingImg:"",pauseVideo:!0,previewImg:!0,setTitle:!0,showImgMenu:!0}}},"979b":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.callEmptyContainer=function(t){return(0,i.default)({url:"/api/wcsToWms/callEmptyContainer",method:"post",data:t})};var i=r(n("98af"));r(n("4328"))},9808:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={noNetwork:{tips:"\u54ce\u5440\uff0c\u7f51\u7edc\u4fe1\u53f7\u4e22\u5931",zIndex:"",image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC"}}},9890:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{materialData:{type:Array,default:function(){return[]}}},data:function(){return{options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}],materialModalData:[]}},methods:{parseDic:r.parseDic,deleteItem:function(t){var e=t.name;this.$emit("delMaterialData",e)}}};e.default=i},"98af":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.baseUrl=void 0;var n=0;e.baseUrl="http://localhost:5005";var r=function(e){var r={};return r["Content-Type"]=e.contentType||"application/json","/login"!=e.url&&(r["Authorization"]=uni.getStorageSync("user_token")?"Bearer "+uni.getStorageSync("user_token"):"",r["x-Authorization"]=uni.getStorageSync("refresh_token")?"Bearer "+uni.getStorageSync("refresh_token"):"",r.Authorization=uni.getStorageSync("user_token")?"Bearer "+uni.getStorageSync("user_token"):""),n++,uni.showLoading({title:"\u52a0\u8f7d\u4e2d...",mask:!0}),new Promise((function(i,a){uni.request({url:"http://localhost:5005"+e.url,method:e.method||"POST",data:e.data||{},header:r,timeout:1e4,success:function(e){if(200==e.statusCode){t("log",e,"res"," at api/api.js:35");var n=e.data;200!==n.code&&Boolean(n.code)?401===n.code?uni.showModal({title:"\u63d0\u793a",content:"token\u5931\u6548\uff0c\u8bf7\u91cd\u65b0\u767b\u9646",showCancel:!1,success:function(){uni.removeStorageSync("token"),uni.redirectTo({url:"/pages/login/index"})}}):(uni.showModal({title:"\u63d0\u793a",content:"".concat(n.code,":").concat(JSON.stringify(n.message)),showCancel:!1}),a(n)):i(n)}else{uni.showModal({title:"\u63d0\u793a",content:"".concat(e.statusCode,":").concat(JSON.stringify(e.errMsg)),showCancel:!1});var r=e.statusCode,o=e.errMsg;a({statusCode:r,errMsg:o})}},fail:function(t){a(t)},complete:function(){n--,0==n&&uni.hideLoading()}})}))};e.default=r}).call(this,n("0de9")["default"])},"98dc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{materialData:{type:Array,default:function(){return[]}}},data:function(){return{options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}],materialModalData:[]}},methods:{parseDic:r.parseDic,deleteItem:function(t){var e=t.name;this.$emit("delMaterialData",e)},handleItemClick:function(t){this.$emit("item-click",t)}}};e.default=i},"98e4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","forma-item"),attrs:{_i:0}},[n("scan-input-form-item",{staticClass:t._$s(1,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:t.label,disabled:t.disabled,_i:1},nativeOn:{click:function(e){t.visible=!0}},model:{value:t._$s(1,"v-model",t.value),callback:function(e){t.value=e},expression:"value"}}),n("EasyPicker",{attrs:{visible:t.visible,list:t.selectData,labelField:t.labelField,valueField:t.valueField,_i:2},on:{"update:visible":function(e){t.visible=e},select:t.getSelectData}})],1)},i=[]},"98fc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={grid:{col:3,border:!1,align:"left"}}},"99dd":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={image:{src:"",mode:"aspectFill",width:"300",height:"225",shape:"square",radius:0,lazyLoad:!0,showMenuByLongpress:!0,loadingIcon:"photo",errorIcon:"error-circle",showLoading:!0,showError:!0,fade:!0,webp:!1,duration:500,bgColor:"#f3f4f6"}}},"9a1c":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","forma-item"),attrs:{_i:0}},[n("scan-input-form-item",{staticClass:t._$s(1,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u9009\u62e9\u70b9\u4f4d",_i:1},nativeOn:{click:function(e){t.visible=!0}},model:{value:t._$s(1,"v-model",t.station),callback:function(e){t.station=e},expression:"station"}}),n("EasyPicker",{attrs:{visible:t.visible,list:t.exceptePlace,labelField:"placeNo",valueField:"placeNo",_i:2},on:{"update:visible":function(e){t.visible=e},select:t.getSiteVal}})],1)},i=[]},"9a2a":function(t,e,n){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var r=uni.requireGlobal();ArrayBuffer=r.ArrayBuffer,Int8Array=r.Int8Array,Uint8Array=r.Uint8Array,Uint8ClampedArray=r.Uint8ClampedArray,Int16Array=r.Int16Array,Uint16Array=r.Uint16Array,Int32Array=r.Int32Array,Uint32Array=r.Uint32Array,Float32Array=r.Float32Array,Float64Array=r.Float64Array,BigInt64Array=r.BigInt64Array,BigUint64Array=r.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/start/index",(function(){return Vue.extend(n("ade42").default)})),__definePage("pages/login/index",(function(){return Vue.extend(n("a641").default)})),__definePage("pages/home/index",(function(){return Vue.extend(n("793b").default)})),__definePage("pages/setting/host",(function(){return Vue.extend(n("8663").default)})),__definePage("pages/print/bluetoothConnection",(function(){return Vue.extend(n("d15a").default)})),__definePage("pages/online/index",(function(){return Vue.extend(n("ea05").default)})),__definePage("pages/bind/index",(function(){return Vue.extend(n("dcef").default)})),__definePage("pages/bindContaniner/index",(function(){return Vue.extend(n("ac91").default)})),__definePage("pages/sortingSearch/index",(function(){return Vue.extend(n("fce5").default)})),__definePage("pages/replenishMent/index",(function(){return Vue.extend(n("1636").default)})),__definePage("pages/inAndOutBound/index",(function(){return Vue.extend(n("c85d").default)})),__definePage("pages/exceptionHandle/index",(function(){return Vue.extend(n("270b").default)})),__definePage("pages/exceptionHandle/modules/exceptionPlace",(function(){return Vue.extend(n("3cfc").default)})),__definePage("pages/exceptionHandle/modules/materialInfo",(function(){return Vue.extend(n("0cc9").default)})),__definePage("pages/emptyOut/index",(function(){return Vue.extend(n("a3e1").default)})),__definePage("pages/containerHandle/index",(function(){return Vue.extend(n("a701").default)}))},"9a62":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default,uLine:n("d62a").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-form-item"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","u-form-item__body"),style:t._$s(1,"s",[t.$u.addStyle(t.customStyle),{flexDirection:"left"===(t.labelPosition||t.parentData.labelPosition)?"row":"column"}]),attrs:{_i:1},on:{click:t.clickHandler}},[t._t("label",[t._$s(3,"i",t.required||t.leftIcon||t.label)?n("view",{staticClass:t._$s(3,"sc","u-form-item__body__left"),style:t._$s(3,"s",{width:t.$u.addUnit(t.labelWidth||t.parentData.labelWidth),marginBottom:"left"===t.parentData.labelPosition?0:"5px"}),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","u-form-item__body__left__content"),attrs:{_i:4}},[t._$s(5,"i",t.required)?n("text",{staticClass:t._$s(5,"sc","u-form-item__body__left__content__required"),attrs:{_i:5}}):t._e(),t._$s(6,"i",t.leftIcon)?n("view",{staticClass:t._$s(6,"sc","u-form-item__body__left__content__icon"),attrs:{_i:6}},[n("u-icon",{attrs:{name:t.leftIcon,"custom-style":t.leftIconStyle,_i:7}})],1):t._e(),n("text",{staticClass:t._$s(8,"sc","u-form-item__body__left__content__label"),style:t._$s(8,"s",[t.parentData.labelStyle,{justifyContent:"left"===t.parentData.labelAlign?"flex-start":"center"===t.parentData.labelAlign?"center":"flex-end"}]),attrs:{_i:8}},[t._v(t._$s(8,"t0-0",t._s(t.label)))])])]):t._e()],{_i:2}),n("view",{staticClass:t._$s(9,"sc","u-form-item__body__right"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","u-form-item__body__right__content"),attrs:{_i:10}},[n("view",{staticClass:t._$s(11,"sc","u-form-item__body__right__content__slot"),attrs:{_i:11}},[t._t("default",null,{_i:12})],2),t._$s(13,"i",t.$slots.right)?n("view",{staticClass:t._$s(13,"sc","item__body__right__content__icon"),attrs:{_i:13}},[t._t("right",null,{_i:14})],2):t._e()])])],2),t._t("error",[t._$s(16,"i",!!t.message&&"message"===t.parentData.errorType)?n("text",{staticClass:t._$s(16,"sc","u-form-item__body__right__message"),style:t._$s(16,"s",{marginLeft:t.$u.addUnit("top"===t.parentData.labelPosition?0:t.labelWidth||t.parentData.labelWidth)}),attrs:{_i:16}},[t._v(t._$s(16,"t0-0",t._s(t.message)))]):t._e()],{_i:15}),t._$s(17,"i",t.borderBottom)?n("u-line",{attrs:{color:t.message&&"border-bottom"===t.parentData.errorType?t.$u.color.error:t.propsLine.color,customStyle:"margin-top: "+(t.message&&"message"===t.parentData.errorType?"5px":0),_i:17}}):t._e()],2)},a=[]},"9a83":function(t,e,n){"use strict";n.r(e);var r=n("e424"),i=n("3642");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"d893ec12",null,!1,r["a"],void 0);e["default"]=s.exports},"9acf":function(t,e,n){"use strict";n.r(e);var r=n("22c8"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"9b36":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uSwipeAction:n("b6de").default,uSwipeActionItem:n("a808").default,uIcon:n("5a09").default,uBadge:n("6c35").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.contaninerData.length>0)?n("u-swipe-action",{attrs:{_i:0}},t._l(t._$s(1,"f",{forItems:t.contaninerData}),(function(e,r,i,a){return n("u-swipe-action-item",{key:t._$s(1,"f",{forIndex:i,key:"material-list-item-"+r}),attrs:{options:t.options,index:r,name:e.containerNo,_i:"1-"+a},on:{click:t.deleteItem}},[n("view",{staticClass:t._$s("2-"+a,"sc","material-item-group"),attrs:{_i:"2-"+a}},[n("view",{staticClass:t._$s("3-"+a,"sc","material-list-item"),attrs:{_i:"3-"+a}},[n("view",{staticClass:t._$s("4-"+a,"sc","close-btn"),attrs:{_i:"4-"+a}},[n("view",{staticClass:t._$s("5-"+a,"sc","icon-layer"),attrs:{_i:"5-"+a}},[n("u-icon",{attrs:{name:"close",color:"#ffffff",size:"24",_i:"6-"+a}})],1)]),n("view",{staticClass:t._$s("7-"+a,"sc","badge-box"),attrs:{_i:"7-"+a}},[n("u-badge",{attrs:{value:r+1,"bg-color":"#F18201",_i:"8-"+a}})],1),n("view",{staticClass:t._$s("9-"+a,"sc","item-row"),attrs:{_i:"9-"+a}},[n("view",{staticClass:t._$s("10-"+a,"sc","label"),attrs:{_i:"10-"+a}}),n("view",{staticClass:t._$s("11-"+a,"sc","content auto-wrap"),attrs:{_i:"11-"+a}},[t._v(t._$s("11-"+a,"t0-0",t._s(e.containerNo)))])]),n("view",{staticClass:t._$s("12-"+a,"sc","item-row"),attrs:{_i:"12-"+a}},[n("view",{staticClass:t._$s("13-"+a,"sc","label"),attrs:{_i:"13-"+a}}),n("view",{staticClass:t._$s("14-"+a,"sc","content auto-wrap"),attrs:{_i:"14-"+a}},[t._v(t._$s("14-"+a,"t0-0",t._s(t.parseDic(t.$store,"container_status",e.containerStatus))))])]),n("view",{staticClass:t._$s("15-"+a,"sc","item-row"),attrs:{_i:"15-"+a}},[n("view",{staticClass:t._$s("16-"+a,"sc","label"),attrs:{_i:"16-"+a}}),n("view",{staticClass:t._$s("17-"+a,"sc","content auto-wrap"),attrs:{_i:"17-"+a}},[t._v(t._$s("17-"+a,"t0-0",t._s(e.specLength))+t._$s("17-"+a,"t0-1",t._s(e.specWidth))+t._$s("17-"+a,"t0-2",t._s(e.specHeight)))])])])])])})),1):t._e()},a=[]},"9b42":function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n["return"]&&(o=n["return"](),Object(o)!==o))return}finally{if(c)throw i}}return s}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"9bc1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={list:{showScrollbar:!1,lowerThreshold:50,upperThreshold:0,scrollTop:0,offsetAccuracy:10,enableFlex:!1,pagingEnabled:!1,scrollable:!0,scrollIntoView:"",scrollWithAnimation:!1,enableBackToTop:!1,height:0,width:0,preLoadScreen:1}}},"9d6e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{value:{type:[String,Number],default:uni.$u.props.input.value},type:{type:String,default:uni.$u.props.input.type},fixed:{type:Boolean,default:uni.$u.props.input.fixed},disabled:{type:Boolean,default:uni.$u.props.input.disabled},disabledColor:{type:String,default:uni.$u.props.input.disabledColor},clearable:{type:Boolean,default:uni.$u.props.input.clearable},password:{type:Boolean,default:uni.$u.props.input.password},maxlength:{type:[String,Number],default:uni.$u.props.input.maxlength},placeholder:{type:String,default:uni.$u.props.input.placeholder},placeholderClass:{type:String,default:uni.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:uni.$u.props.input.placeholderStyle},showWordLimit:{type:Boolean,default:uni.$u.props.input.showWordLimit},confirmType:{type:String,default:uni.$u.props.input.confirmType},confirmHold:{type:Boolean,default:uni.$u.props.input.confirmHold},holdKeyboard:{type:Boolean,default:uni.$u.props.input.holdKeyboard},focus:{type:Boolean,default:uni.$u.props.input.focus},autoBlur:{type:Boolean,default:uni.$u.props.input.autoBlur},disableDefaultPadding:{type:Boolean,default:uni.$u.props.input.disableDefaultPadding},cursor:{type:[String,Number],default:uni.$u.props.input.cursor},cursorSpacing:{type:[String,Number],default:uni.$u.props.input.cursorSpacing},selectionStart:{type:[String,Number],default:uni.$u.props.input.selectionStart},selectionEnd:{type:[String,Number],default:uni.$u.props.input.selectionEnd},adjustPosition:{type:Boolean,default:uni.$u.props.input.adjustPosition},inputAlign:{type:String,default:uni.$u.props.input.inputAlign},fontSize:{type:[String,Number],default:uni.$u.props.input.fontSize},color:{type:String,default:uni.$u.props.input.color},prefixIcon:{type:String,default:uni.$u.props.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:uni.$u.props.input.prefixIconStyle},suffixIcon:{type:String,default:uni.$u.props.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:uni.$u.props.input.suffixIconStyle},border:{type:String,default:uni.$u.props.input.border},readonly:{type:Boolean,default:uni.$u.props.input.readonly},shape:{type:String,default:uni.$u.props.input.shape},formatter:{type:[Function,null],default:uni.$u.props.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};e.default=r},"9d87":function(t,e,n){"use strict";n.r(e);var r=n("d14a"),i=n("f6ac");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},"9e6a":function(t,e,n){"use strict";var r=n("d233"),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}var f=0;while(n.depth>0&&null!==(s=o.exec(a))&&f<n.depth){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var i=r?e:u(e,n),a=t.length-1;a>=0;--a){var o,s=t[a];if("[]"===s&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[],o[l]=i):"__proto__"!==c&&(o[c]=i):o={0:i}}i=o}return i}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return o;if(null!==t.decoder&&void 0!==t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e="undefined"===typeof t.charset?o.charset:t.charset;return{allowDots:"undefined"===typeof t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"===typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:o.comma,decoder:"function"===typeof t.decoder?t.decoder:o.decoder,delimiter:"string"===typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var l="string"===typeof t?function(t,e){var n,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,f),p=-1,h=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var v,m,g=d[n],y=g.indexOf("]="),b=-1===y?g.indexOf("="):y+1;-1===b?(v=e.decoder(g,o.decoder,h,"key"),m=e.strictNullHandling?null:""):(v=e.decoder(g.slice(0,b),o.decoder,h,"key"),m=r.maybeMap(u(g.slice(b+1),e),(function(t){return e.decoder(t,o.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=a(m)?[m]:m),i.call(c,v)?c[v]=r.combine(c[v],m):c[v]=m}return c}(t,n):t,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var h=d[p],v=c(h,l[h],n,"string"===typeof t);f=r.merge(f,v,n)}return!0===n.allowSparse?f:r.compact(f)}},"9eb0":function(t,e,n){"use strict";n.r(e);var r=n("008c"),i=n("c5b6");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"582b6f80",null,!1,r["a"],void 0);e["default"]=s.exports},"9ec1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={text:{type:"",show:!0,text:"",prefixIcon:"",suffixIcon:"",mode:"",href:"",format:"",call:!1,openType:"",bold:!1,block:!1,lines:"",color:"#303133",size:15,iconStyle:function(){return{fontSize:"15px"}},decoration:"none",margin:0,lineHeight:"",align:"left",wordWrap:"normal"}}},"9f39":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:{}}},a0a3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=n.config.validateStatus,i=n.statusCode;!i||r&&!r(i)?e(n):t(n)}},a0b9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={overlay:{show:!1,zIndex:10070,duration:300,opacity:.5}}},a0c0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineProgress:{activeColor:"#19be6b",inactiveColor:"#ececec",percentage:0,showText:!0,height:12}}},a0d3:function(t,e,n){"use strict";var r=n("0f7c");t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},a103:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("c591")),s=r(n("84c4")),u=r(n("bfc4")),c=r(n("b62a")),l=r(n("733c")),f=r(n("76f6")),d=n("6d9d"),p=n("16f3"),h=n("3e34"),v=n("082c"),m=null,g={name:"receiveInPage",components:{DefaultHeaderPageLayout:o.default,ActionUserRow:s.default,ScanInputFormItem:u.default,EasySelectFormItem:c.default,materialList:f.default,EasyPicker:l.default},data:function(){return{pageBodyHeight:0,form:{containterCode:"",materialNo:"",site:""},msg:{containter:"",material:"",site:""},msgType:{containter:"info",material:"error",site:"error"},containerStatus:null,contaninerData:[],visible:!1}},computed:{disabledBind:function(){return!Boolean(this.containerStatus)||this.contaninerData.length<1},disabledBound:function(){return!Boolean(this.containerStatus)}},watch:{"form.containterCode":{handler:function(t,e){this.resetContainerNo()}}},methods:{getSiteVal:function(t,e,n){this.form.site=t},onSearchContainter:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.form.containterCode){n.next=4;break}return e.msgType.containter="error",e.msg.containter="\u8bf7\u8f93\u5165\u6258\u76d8\u53f7\uff01",n.abrupt("return",!1);case 4:return n.prev=4,n.next=7,(0,v.getForEmptyContainerNo)({code:e.form.containterCode});case 7:r=n.sent,a=r.result,e.containerStatus=null===a||void 0===a?void 0:a.containerStatus,o=(0,d.parseDic)(e.$store,"container_status",null===a||void 0===a?void 0:a.containerStatus),o="\u65e0\u6b64\u5b57\u5178"==o?"":o,e.msg.containter="\u72b6\u6001\uff1a".concat(o,", \u5c3a\u5bf8\uff1a").concat(null===a||void 0===a?void 0:a.specLength,"*").concat(null===a||void 0===a?void 0:a.specWidth,"*").concat(null===a||void 0===a?void 0:a.specHeight),null===a||void 0===a||a.containerList.forEach((function(t){var n=e.contaninerData.some((function(e){return e.containerNo==t.containerNo}));n||e.contaninerData.push(t)})),n.next=19;break;case 16:n.prev=16,n.t0=n["catch"](4),t("log",n.t0," at pages/bindContaniner/index.vue:130");case 19:case"end":return n.stop()}}),n,null,[[4,16]])})))()},onClearContainter:function(){this.form={containterCode:"",materialNo:"",site:""},this.resetContainerNo()},resetContainerNo:function(){this.msg={containter:"",material:"",site:""},this.msgType={containter:"info",material:"error",site:"error"},this.containerStatus=null,this.contaninerData=[],this.form.materialNo="",this.form.site=""},onSearchMaterial:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.form.materialNo){n.next=3;break}return e.msg.material="\u8bf7\u8f93\u5165\u7a7a\u6258\u7f16\u53f7\uff01",n.abrupt("return",!1);case 3:return e.msg.material="",n.prev=4,n.next=7,(0,h.getContainerInfo)({ContainerNo:e.form.materialNo});case 7:if(r=n.sent,a=r.result,a.containerNo!=e.form.containterCode){n.next=11;break}return n.abrupt("return",e.$modal("\u5f53\u524d\u7a7a\u6258\u4e0e\u6258\u76d8\u91cd\u590d"));case 11:o=e.contaninerData.some((function(t){return t.containerNo==a.containerNo})),!o&&e.contaninerData.push(a),n.next=18;break;case 15:n.prev=15,n.t0=n["catch"](4),t("log",n.t0," at pages/bindContaniner/index.vue:175");case 18:case"end":return n.stop()}}),n,null,[[4,15]])})))()},onClearMaterial:function(){this.form.materialNo=""},delContainer:function(t){this.contaninerData=this.contaninerData.filter((function(e){return e.containerNo!=t}))},onSubmit:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.contaninerData,a=e.form,o={type:2,containerNo:a.containterCode,materialContainerList:[]},o.materialContainerList=r.map((function(t){return{materialNo:"KONGTUO",materialName:"\u7a7a\u6258",materialId:t.containerNo}})),n.prev=3,n.next=6,(0,v.bindMaterialContainer)(o);case 6:e.$modal("\u7ec4\u6258\u6210\u529f"),e.onClearContainter(),n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](3),t("log",n.t0," at pages/bindContaniner/index.vue:214");case 13:case"end":return n.stop()}}),n,null,[[3,10]])})))()},addInBound:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={stationNo:e.form.site,type:2,containerNo:e.form.containterCode,materialContainerList:e.contaninerData.map((function(t){return{materialId:t.containerNo,materialNo:"KONGTUO",materialName:"\u7a7a\u6258",materialType:4}}))},n.prev=1,n.next=4,(0,v.addInBound)(r);case 4:e.$modal("\u5165\u5e93\u6210\u529f"),e.onClearContainter(),n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](1),t("log",n.t0," at pages/bindContaniner/index.vue:242");case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},startInitInterval:function(t){var e=this;m=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(m),m=null}catch(t){}}},mixins:[p.palceList],onReady:function(){var t=this;this.startInitInterval((0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getPalceList({areaCode:"SDCR"});case 1:case"end":return e.stop()}}),e)}))))},onUnload:function(){this.clearInitInterval()}};e.default=g}).call(this,n("0de9")["default"])},a34a:function(t,e,n){var r=n("7037"),i=n("7ec2")();t.exports=i;try{regeneratorRuntime=i}catch(a){"object"===("undefined"===typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},a395:function(t,e,n){var r=n("7037")["default"],i=n("e50d");t.exports=function(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},a3e1:function(t,e,n){"use strict";n.r(e);var r=n("7930"),i=n("884b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"5c4eceb6",null,!1,r["a"],void 0);e["default"]=s.exports},a47e:function(t,e,n){"use strict";n.r(e);var r=n("70f4"),i=n("9acf");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"d303f33e",null,!1,r["a"],void 0);e["default"]=s.exports},a4c6:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("b69e")),a=i.default;e.default=a},a57a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={loadingPage:{loadingText:"\u6b63\u5728\u52a0\u8f7d",image:"",loadingMode:"circle",loading:!1,bgColor:"#ffffff",color:"#C8C8C8",fontSize:19,iconSize:28,loadingColor:"#C8C8C8"}}},a641:function(t,e,n){"use strict";n.r(e);var r=n("fa03"),i=n("2bbb");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3cc17447",null,!1,r["a"],void 0);e["default"]=s.exports},a6b3:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uLoadingIcon:n("fbfa").default,uSwiperIndicator:n("f18c").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-swiper"),style:t._$s(0,"s",{backgroundColor:t.bgColor,height:t.$u.addUnit(t.height),borderRadius:t.$u.addUnit(t.radius)}),attrs:{_i:0}},[t._$s(1,"i",t.loading)?n("view",{staticClass:t._$s(1,"sc","u-swiper__loading"),attrs:{_i:1}},[n("u-loading-icon",{attrs:{mode:"circle",_i:2}})],1):n("swiper",{staticClass:t._$s(3,"sc","u-swiper__wrapper"),style:t._$s(3,"s",{height:t.$u.addUnit(t.height)}),attrs:{circular:t._$s(3,"a-circular",t.circular),interval:t._$s(3,"a-interval",t.interval),duration:t._$s(3,"a-duration",t.duration),autoplay:t._$s(3,"a-autoplay",t.autoplay),current:t._$s(3,"a-current",t.current),currentItemId:t._$s(3,"a-currentItemId",t.currentItemId),previousMargin:t._$s(3,"a-previousMargin",t.$u.addUnit(t.previousMargin)),nextMargin:t._$s(3,"a-nextMargin",t.$u.addUnit(t.nextMargin)),acceleration:t._$s(3,"a-acceleration",t.acceleration),displayMultipleItems:t._$s(3,"a-displayMultipleItems",t.displayMultipleItems),easingFunction:t._$s(3,"a-easingFunction",t.easingFunction),_i:3},on:{change:t.change}},t._l(t._$s(4,"f",{forItems:t.list}),(function(e,r,i,a){return n("swiper-item",{key:t._$s(4,"f",{forIndex:i,key:r}),staticClass:t._$s("4-"+a,"sc","u-swiper__wrapper__item"),attrs:{_i:"4-"+a}},[n("view",{staticClass:t._$s("5-"+a,"sc","u-swiper__wrapper__item__wrapper"),style:t._$s("5-"+a,"s",[t.itemStyle(r)]),attrs:{_i:"5-"+a}},[t._$s("6-"+a,"i","image"===t.getItemType(e))?n("image",{staticClass:t._$s("6-"+a,"sc","u-swiper__wrapper__item__wrapper__image"),style:t._$s("6-"+a,"s",{height:t.$u.addUnit(t.height),borderRadius:t.$u.addUnit(t.radius)}),attrs:{src:t._$s("6-"+a,"a-src",t.getSource(e)),mode:t._$s("6-"+a,"a-mode",t.imgMode),_i:"6-"+a},on:{click:function(e){return t.clickHandler(r)}}}):t._e(),t._$s("7-"+a,"i","video"===t.getItemType(e))?n("video",{staticClass:t._$s("7-"+a,"sc","u-swiper__wrapper__item__wrapper__video"),style:t._$s("7-"+a,"s",{height:t.$u.addUnit(t.height)}),attrs:{id:t._$s("7-"+a,"a-id","video-"+r),src:t._$s("7-"+a,"a-src",t.getSource(e)),poster:t._$s("7-"+a,"a-poster",t.getPoster(e)),title:t._$s("7-"+a,"a-title",t.showTitle&&t.$u.test.object(e)&&e.title?e.title:""),_i:"7-"+a},on:{click:function(e){return t.clickHandler(r)}}}):t._e(),t._$s("8-"+a,"i",t.showTitle&&t.$u.test.object(e)&&e.title&&t.$u.test.image(t.getSource(e)))?n("text",{staticClass:t._$s("8-"+a,"sc","u-swiper__wrapper__item__wrapper__title u-line-1"),attrs:{_i:"8-"+a}},[t._v(t._$s("8-"+a,"t0-0",t._s(e.title)))]):t._e()])])})),0),n("view",{staticClass:t._$s(9,"sc","u-swiper__indicator"),style:t._$s(9,"s",[t.$u.addStyle(t.indicatorStyle)]),attrs:{_i:9}},[t._t("indicator",[t._$s(11,"i",!t.loading&&t.indicator&&!t.showTitle)?n("u-swiper-indicator",{attrs:{indicatorActiveColor:t.indicatorActiveColor,indicatorInactiveColor:t.indicatorInactiveColor,length:t.list.length,current:t.currentIndex,indicatorMode:t.indicatorMode,_i:11}}):t._e()],{_i:10})],2)])},a=[]},a701:function(t,e,n){"use strict";n.r(e);var r=n("8f91"),i=n("b29b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"5f253122",null,!1,r["a"],void 0);e["default"]=s.exports},a7b2:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uSwiper:n("610d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("full-page-layout",{attrs:{safety:!1,"background-color":"#f0f8ff",_i:0}},[n("view",{staticClass:t._$s(1,"sc","home-bk-layer"),attrs:{_i:1}}),n("view",{staticClass:t._$s(2,"sc","home-float-layer"),attrs:{_i:2}},[n("header-page-layout",{ref:"page",attrs:{full:!1,title:"\u9996\u9875",headerColor:"#fff",_i:3},on:{headerclick:t.onHeaderClick},scopedSlots:t._u([{key:"headerright",fn:function(t,e,r){return[n("text",{staticClass:e._$s("5-"+r,"sc","iconfont icon-out-right"),attrs:{_i:"5-"+r}})]}}])},[t._$s(6,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(6,"sc","home-page-containter"),style:t._$s(6,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:6}},[n("view",{staticClass:t._$s(7,"sc","user-view-box"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","user-card home-card"),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","left-view"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","user-circle"),attrs:{_i:10}},[n("text",{staticClass:t._$s(11,"sc","iconfont icon-worker"),attrs:{_i:11}})])]),n("view",{staticClass:t._$s(12,"sc","right-view"),attrs:{_i:12}},[n("view",{staticClass:t._$s(13,"sc","text-row1 auto-wrap"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.userName)))]),n("view",{staticClass:t._$s(14,"sc","text-row2 auto-wrap"),attrs:{_i:14}},[t._v(t._$s(14,"t0-0",t._s(t.userAcc)))])])])]),n("view",{staticClass:t._$s(15,"sc","blocks-view-box"),attrs:{_i:15}},[t._$s(16,"i",t.picList.length>0)?n("view",{staticClass:t._$s(16,"sc","home-card pic-block"),attrs:{_i:16}},[n("u-swiper",{attrs:{list:t.picList,circular:!0,indicator:!0,indicatorMode:"line",circular:!0,_i:17}})],1):t._e(),t._l(t._$s(18,"f",{forItems:t.blocks}),(function(e,r,i,a){return n("view",{key:t._$s(18,"f",{forIndex:i,key:"item-block-card-"+r}),staticClass:t._$s("18-"+a,"sc","home-card item-block-card"),attrs:{_i:"18-"+a}},[t._$s("19-"+a,"i",e.workShopName)?n("view",{staticClass:t._$s("19-"+a,"sc","title"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(e.workShopName)))]):t._e(),n("view",{staticClass:t._$s("20-"+a,"sc","items-view"),attrs:{_i:"20-"+a}},t._l(t._$s("21-"+a,"f",{forItems:e.wmsPdaPowerOutput||[]}),(function(e,i,o,s){return n("view",{key:t._$s("21-"+a,"f",{forIndex:o,key:"block-item-"+r+"-"+i}),staticClass:t._$s("21-"+a+"-"+s,"sc","block-item"),attrs:{_i:"21-"+a+"-"+s},on:{click:function(n){return t.onClickBlockItem(e.code)}}},[n("view",{staticClass:t._$s("22-"+a+"-"+s,"sc","block-item-icon"),style:t._$s("22-"+a+"-"+s,"s",{color:e.color}),attrs:{_i:"22-"+a+"-"+s}},[n("text",{staticClass:t._$s("23-"+a+"-"+s,"sc","iconfont"),class:t._$s("23-"+a+"-"+s,"c",[e.icon]),attrs:{_i:"23-"+a+"-"+s}}),n("view",{staticClass:t._$s("24-"+a+"-"+s,"sc","opacity-layer"),attrs:{_i:"24-"+a+"-"+s}})]),n("view",{staticClass:t._$s("25-"+a+"-"+s,"sc","block-item-text no-wrap"),attrs:{_i:"25-"+a+"-"+s}},[t._v(t._$s("25-"+a+"-"+s,"t0-0",t._s(e.name)))])])})),0)])}))],2)]):t._e()])],1)])},a=[]},a808:function(t,e,n){"use strict";n.r(e);var r=n("e734"),i=n("d23b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=n("b263"),u=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"2277a0f5",null,!1,r["a"],void 0);"function"===typeof s["a"]&&Object(s["a"])(u),e["default"]=u.exports},a8df:function(t,e,n){"use strict";n.r(e);var r=n("67a8"),i=n("40f2");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"5061713d",null,!1,r["a"],void 0);e["default"]=s.exports},abe8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tag:{type:"primary",disabled:!1,size:"medium",shape:"square",text:"",bgColor:"",color:"",borderColor:"",closeColor:"#C6C7CB",name:"",plainFill:!1,plain:!1,closable:!1,show:!0,icon:""}}},ac4d:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-form"),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},i=[]},ac91:function(t,e,n){"use strict";n.r(e);var r=n("00bf"),i=n("771a");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"5a296cfe",null,!1,r["a"],void 0);e["default"]=s.exports},ada8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{list:{type:Array,default:uni.$u.props.swiper.list},indicator:{type:Boolean,default:uni.$u.props.swiper.indicator},indicatorActiveColor:{type:String,default:uni.$u.props.swiper.indicatorActiveColor},indicatorInactiveColor:{type:String,default:uni.$u.props.swiper.indicatorInactiveColor},indicatorStyle:{type:[String,Object],default:uni.$u.props.swiper.indicatorStyle},indicatorMode:{type:String,default:uni.$u.props.swiper.indicatorMode},autoplay:{type:Boolean,default:uni.$u.props.swiper.autoplay},current:{type:[String,Number],default:uni.$u.props.swiper.current},currentItemId:{type:String,default:uni.$u.props.swiper.currentItemId},interval:{type:[String,Number],default:uni.$u.props.swiper.interval},duration:{type:[String,Number],default:uni.$u.props.swiper.duration},circular:{type:Boolean,default:uni.$u.props.swiper.circular},previousMargin:{type:[String,Number],default:uni.$u.props.swiper.previousMargin},nextMargin:{type:[String,Number],default:uni.$u.props.swiper.nextMargin},acceleration:{type:Boolean,default:uni.$u.props.swiper.acceleration},displayMultipleItems:{type:Number,default:uni.$u.props.swiper.displayMultipleItems},easingFunction:{type:String,default:uni.$u.props.swiper.easingFunction},keyName:{type:String,default:uni.$u.props.swiper.keyName},imgMode:{type:String,default:uni.$u.props.swiper.imgMode},height:{type:[String,Number],default:uni.$u.props.swiper.height},bgColor:{type:String,default:uni.$u.props.swiper.bgColor},radius:{type:[String,Number],default:uni.$u.props.swiper.radius},loading:{type:Boolean,default:uni.$u.props.swiper.loading},showTitle:{type:Boolean,default:uni.$u.props.swiper.showTitle}}};e.default=r},ade4:function(t,e,n){"use strict";n.r(e);var r=n("ae36"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},ade42:function(t,e,n){"use strict";n.r(e);var r=n("7f69"),i=n("c92b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"76a8517b",null,!1,r["a"],void 0);e["default"]=s.exports},ae36:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("0c3a")),a={name:"u-overlay",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{overlayStyle:function(){var t={position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":"rgba(0, 0, 0, ".concat(this.opacity,")")};return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},methods:{clickHandler:function(){this.$emit("click")}}};e.default=a},aece:function(t,e,n){"use strict";n.r(e);var r=n("e2a2"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},aef0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{sortInfo:{type:Object,default:function(){return{}}}},data:function(){return{options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}]}},mounted:function(){},methods:{parseDic:r.parseDic,deleteItem:function(){this.$emit("sortInfo",this.sortInfo.materialNo)}}};e.default=i},afa1:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(0,"v-show",Boolean(t.materialData.materialNo)),expression:"_$s(0,'v-show',Boolean(materialData.materialNo))"}],staticClass:t._$s(0,"sc","material-item-group"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","material-list-item"),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","item-row"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","label"),attrs:{_i:3}}),n("view",{staticClass:t._$s(4,"sc","content auto-wrap"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.materialData.alertInfomation)))])]),n("view",{staticClass:t._$s(5,"sc","item-row"),attrs:{_i:5}},[n("view",{staticClass:t._$s(6,"sc","label"),attrs:{_i:6}}),n("view",{staticClass:t._$s(7,"sc","content auto-wrap"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.materialData.materialId)))])]),n("view",{staticClass:t._$s(8,"sc","item-row"),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","label"),attrs:{_i:9}}),n("view",{staticClass:t._$s(10,"sc","content auto-wrap"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.materialData.materialNo)))])]),n("view",{staticClass:t._$s(11,"sc","item-row"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","label"),attrs:{_i:12}}),n("view",{staticClass:t._$s(13,"sc","content auto-wrap"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.materialData.materialName)))])]),n("view",{staticClass:t._$s(14,"sc","item-row"),attrs:{_i:14}},[n("view",{staticClass:t._$s(15,"sc","label"),attrs:{_i:15}}),n("view",{staticClass:t._$s(16,"sc","content auto-wrap"),attrs:{_i:16}},[t._v(t._$s(16,"t0-0",t._s(t.materialData.supplier)))])]),n("view",{staticClass:t._$s(17,"sc","item-row"),attrs:{_i:17}},[n("view",{staticClass:t._$s(18,"sc","label"),attrs:{_i:18}}),n("view",{staticClass:t._$s(19,"sc","content auto-wrap"),attrs:{_i:19}},[t._v(t._$s(19,"t0-0",t._s(t.materialData.materialNo)))])]),n("view",{staticClass:t._$s(20,"sc","item-row"),attrs:{_i:20}},[n("view",{staticClass:t._$s(21,"sc","label"),attrs:{_i:21}}),n("view",{staticClass:t._$s(22,"sc","content auto-wrap"),attrs:{_i:22}},[t._v(t._$s(22,"t0-0",t._s(t.materialData.materialSpec)))])]),n("view",{staticClass:t._$s(23,"sc","item-row"),attrs:{_i:23}},[n("view",{staticClass:t._$s(24,"sc","label"),attrs:{_i:24}}),n("view",{staticClass:t._$s(25,"sc","content auto-wrap"),attrs:{_i:25}},[t._v(t._$s(25,"t0-0",t._s(t.parseDic(t.$store,"material_modal",t.materialData.materialModel))))])]),n("view",{staticClass:t._$s(26,"sc","item-row"),attrs:{_i:26}},[n("view",{staticClass:t._$s(27,"sc","label"),attrs:{_i:27}}),n("view",{staticClass:t._$s(28,"sc","content auto-wrap"),attrs:{_i:28}},[t._v(t._$s(28,"t0-0",t._s(t.materialData.materialBatch)))])])])])},i=[]},b029:function(t,e,n){"use strict";n.r(e);var r=n("7ead"),i=n("cae8");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"599ead9e",null,!1,r["a"],void 0);e["default"]=s.exports},b12b:function(t,e,n){"use strict";n.r(e);var r=n("0c92"),i=n("e3e5");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"06ef4c74",null,!1,r["a"],void 0);e["default"]=s.exports},b1b5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{show:{type:Boolean,default:uni.$u.props.popup.show},overlay:{type:Boolean,default:uni.$u.props.popup.overlay},mode:{type:String,default:uni.$u.props.popup.mode},duration:{type:[String,Number],default:uni.$u.props.popup.duration},closeable:{type:Boolean,default:uni.$u.props.popup.closeable},overlayStyle:{type:[Object,String],default:uni.$u.props.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:uni.$u.props.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:uni.$u.props.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:uni.$u.props.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:uni.$u.props.popup.safeAreaInsetTop},closeIconPos:{type:String,default:uni.$u.props.popup.closeIconPos},round:{type:[Boolean,String,Number],default:uni.$u.props.popup.round},zoom:{type:Boolean,default:uni.$u.props.popup.zoom},bgColor:{type:String,default:uni.$u.props.popup.bgColor},overlayOpacity:{type:[Number,String],default:uni.$u.props.popup.overlayOpacity}}};e.default=r},b263:function(t,e,n){"use strict";e["a"]=function(t){(t.options.wxs||(t.options.wxs={}))["wxs"]=function(t){function e(t){return t.toString().indexOf("s")>=0?t:t>30?t+"ms":t+"s"}function n(t,e,n){e.getState(),n.selectAllComponents(".u-swipe-action-item__right__button");e.requestAnimationFrame((function(){e.setStyle({transition:"none",transform:"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)"})}))}function r(t,n){var r=t.getState(),a=(n.selectAllComponents(".u-swipe-action-item__right__button"),e(r.duration)),o=-r.buttonsWidth;t.requestAnimationFrame((function(){t.setStyle({transition:"transform "+a,transform:"translateX("+o+"px)","-webkit-transform":"translateX("+o+"px)"})})),i("open",t,n)}function i(t,e,n){var r=e.getState();r.status=t,n.callMethod("setState",t)}function a(t,n){var r=t.getState(),a=n.selectAllComponents(".u-swipe-action-item__right__button"),o=a.length,s=e(r.duration);t.requestAnimationFrame((function(){t.setStyle({transition:"transform "+s,transform:"translateX(0px)","-webkit-transform":"translateX(0px)"});for(var e=o-1;e>=0;e--)a[e].setStyle({transition:"transform "+s,transform:"translateX(0px)","-webkit-transform":"translateX(0px)"})})),i("close",t,n)}return t.exports={touchstart:function(t,e){var n=t.instance,r=n.getState();if(!r.disabled){var i=t.touches;i&&i.length>1||(r.moving=!0,r.startX=i[0].pageX,r.startY=i[0].pageY,e.callMethod("closeOther"))}},touchmove:function(t,e){var r=t.instance,i=r.getState();if(!i.disabled&&i.moving){var a=t.touches,o=a[0].pageX,s=a[0].pageY,u=o-i.startX,c=s-i.startY,l=i.buttonsWidth;(Math.abs(u)>Math.abs(c)||Math.abs(u)>i.threshold)&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation()),Math.abs(u)<Math.abs(c)||("open"===i.status?(u<0&&(u=0),u>l&&(u=l),n(-l+u,r,e)):(u>0&&(u=0),Math.abs(u)>l&&(u=-l),n(u,r,e)))}},touchend:function(t,e){var n=t.instance,i=n.getState();if(i.moving&&!i.disabled){var o=t.changedTouches?t.changedTouches[0]:{},s=o.pageX,u=(o.pageY,s-i.startX);if("open"===i.status){if(u<0)return;if(0===u)return a(n,e);Math.abs(u)<i.threshold?r(n,e):a(n,e)}else{if(u>0)return;Math.abs(u)<i.threshold?a(n,e):r(n,e)}}},sizeChange:function(t,e,n,r){var i=r.getState();if(i.disabled=t.disabled,i.duration=t.duration,i.show=t.show,i.threshold=t.threshold,i.buttons=t.buttons,i.buttons)for(var a=i.buttons.length,o=0,s=t.buttons,u=0;u<a;u++)o+=s[u].width;i.buttonsWidth=o},statusChange:function(t,e,n,i){var o=i.getState();o.disabled||("close"===t&&"open"===o.status?a(i,n):"open"===t&&"close"===o.status&&r(i,n))}},t.exports}({exports:{}})}},b29b:function(t,e,n){"use strict";n.r(e);var r=n("f5a7"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},b2af:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{materialData:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{parseDic:r.parseDic}};e.default=i},b313:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:a.RFC3986,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986}},b362:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={avatarGroup:{urls:function(){return[]},maxCount:5,shape:"circle",mode:"scaleToFill",showMore:!0,size:40,keyName:"",gap:.5,extraValue:0}}},b411:function(t,e,n){"use strict";n.r(e);var r=n("90c2"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},b536:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("448a")),a=r(n("3533")),o=r(n("a47e")),s=null,u={name:"homePage",components:{FullPageLayout:a.default,HeaderPageLayout:o.default},data:function(){return{pageBodyHeight:0,userName:"",userAcc:"",picList:[],blocks:[]}},methods:{onHeaderClick:function(t){"right"===t&&uni.redirectTo({url:this.$config.path.login})},onClickBlockItem:function(e){e?(t("log",e," at pages/home/index.vue:75"),uni.navigateTo({url:this.$config.path[e]})):uni.showToast({title:"\u5f00\u53d1\u4e2d...",icon:"none"})},startInitInterval:function(t){var e=this;s=setInterval((function(){e.pageBodyHeight?e.clearInitInterval():(e.pageBodyHeight=e.$refs.page.getBodyHeight(),t&&t())}),200)},clearInitInterval:function(){try{clearInterval(s),s=null}catch(t){}}},onLoad:function(){var t=this.$store.getters["user/getUserInfo"];this.userName=t.nickName,this.userAcc=t.account,this.blocks=t.wmsPdaPowerOutputs?(0,i.default)(t.wmsPdaPowerOutputs):[]},onReady:function(){this.startInitInterval()},onUnload:function(){this.clearInitInterval()}};e.default=u}).call(this,n("0de9")["default"])},b5ac:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={countTo:{startVal:0,endVal:0,duration:2e3,autoplay:!0,decimals:0,useEasing:!0,decimal:".",color:"#606266",fontSize:22,bold:!1,separator:""}}},b601:function(t,e,n){"use strict";n.r(e);var r=n("0799"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},b62a:function(t,e,n){"use strict";n.r(e);var r=n("75ac"),i=n("b601");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"b11d728e",null,!1,r["a"],void 0);e["default"]=s.exports},b639:function(t,e,n){"use strict";(function(t){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh <http://feross.org> + * @license MIT + */ +var r=n("1fb5"),i=n("9152"),a=n("e3db");function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=d(t,e);return t}(t,e,n,r):"string"===typeof e?function(t,e,n){"string"===typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(e,n);t=s(t,r);var i=t.write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|p(e.length);return t=s(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||function(t){return t!==t}(e.length)?s(t,0):d(t,e);if("Buffer"===e.type&&a(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|p(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function h(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var a,o=1,s=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var l=-1;for(a=n;a<s;a++)if(c(t,a)===c(e,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var f=!0,d=0;d<u;d++)if(c(t,a+d)!==c(e,d)){f=!1;break}if(f)return a}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function _(t,e,n,r){return V(U(e,t.length-n),t,n,r)}function w(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return w(t,e,n,r)}function S(t,e,n,r){return V(R(e),t,n,r)}function C(t,e,n,r){return V(function(t,e){for(var n,r,i,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var a,o,s,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:a=t[i+1],128===(192&a)&&(u=(31&c)<<6|63&a,u>127&&(l=u));break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=o(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"===typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,o=n-e,s=Math.min(a,o),c=this.slice(r,i),l=t.slice(e,n),f=0;f<s;++f)if(c[f]!==l[f]){a=c[f],o=l[f];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function $(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=e;a<n;++a)i+=L(t[a]);return i}function j(t,e,n){for(var r=t.slice(e,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function E(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,n,r,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function T(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-n,2);i<a;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-n,4);i<a;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function M(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,a){return a||M(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,a){return a||M(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);var r=this[t],i=1,a=0;while(++a<e&&(i*=256))r+=this[t+a]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);var r=this[t],i=1,a=0;while(++a<e&&(i*=256))r+=this[t+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);var r=e,i=1,a=this[t+--r];while(r>0&&(i*=256))a+=this[t+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;k(this,t,e,n,i,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;k(this,t,e,n,i,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=u.isBuffer(t)?t:U(new u(t,r).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function L(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,i=null,a=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function R(t){return r.toByteArray(function(t){if(t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(D,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}(t))}function V(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}}).call(this,n("c8ba"))},b69e:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("970b")),o=r(n("5bc3")),s=r(n("10fa")),u=r(n("7143")),c=r(n("21c6")),l=r(n("3b18")),f=n("c60d"),d=r(n("0c92b"));function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e),(0,f.isPlainObject)(n)||(n={},t("warn","\u8bbe\u7f6e\u5168\u5c40\u53c2\u6570\u5fc5\u987b\u63a5\u6536\u4e00\u4e2aObject"," at uni_modules/uview-ui/libs/luch-request/core/Request.js:39")),this.config=(0,d.default)(h(h({},l.default),n)),this.interceptors={request:new u.default,response:new u.default}}return(0,o.default)(e,[{key:"setConfig",value:function(t){this.config=t(this.config)}},{key:"middleware",value:function(t){t=(0,c.default)(this.config,t);var e=[s.default,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n}},{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(t)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(h({url:t,method:"GET"},e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"POST"},n))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"PUT"},n))}},{key:"delete",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"DELETE"},n))}},{key:"options",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"OPTIONS"},n))}},{key:"upload",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.url=t,e.method="UPLOAD",this.middleware(e)}},{key:"download",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.url=t,e.method="DOWNLOAD",this.middleware(e)}}]),e}();e.default=v}).call(this,n("0de9")["default"])},b6de:function(t,e,n){"use strict";n.r(e);var r=n("3a25"),i=n("651d");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"1354af88",null,!1,r["a"],void 0);e["default"]=s.exports},b829:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t&&!(0,i.default)(e))return(0,a.default)(t,e);return e};var i=r(n("baac")),a=r(n("722c"))},b86d:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("6d9d"),a=r(n("733c")),o=r(n("bfc4")),s={props:{exceptePlace:{type:Array,default:function(){return[]}},station:{type:String,default:""}},components:{EasyPicker:a.default,ScanInputFormItem:o.default},data:function(){return{radiolist1:[],radiovalue1:"",visible:!1,options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}]}},methods:{getSiteVal:function(t){this.$emit("update:station",t)},parseDic:i.parseDic,deleteItem:function(){this.$emit("sortInfo",this.sortInfo.materialNo)}}};e.default=s},b8fc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={section:{title:"",subTitle:"\u66f4\u591a",right:!0,fontSize:15,bold:!0,color:"#303133",subColor:"#909399",showLine:!0,lineColor:"",arrow:!0}}},ba3e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tabs:{duration:300,list:function(){return[]},lineColor:"#3c9cff",activeStyle:function(){return{color:"#303133"}},inactiveStyle:function(){return{color:"#606266"}},lineWidth:20,lineHeight:3,lineBgSize:"cover",itemStyle:function(){return{height:"44px"}},scrollable:!0,current:0,keyName:"name"}}},baac:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},bbd8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={form:{model:function(){return{}},rules:function(){return{}},errorType:"message",borderBottom:!0,labelPosition:"left",labelWidth:45,labelAlign:"left",labelStyle:function(){return{}}}}},bc03:function(t,e,n){"use strict";n.r(e);var r=n("53c1"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},bfc4:function(t,e,n){"use strict";n.r(e);var r=n("db24"),i=n("f3b7");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"550b3522",null,!1,r["a"],void 0);e["default"]=s.exports},c041:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={fade:{enter:{opacity:0},"enter-to":{opacity:1},leave:{opacity:1},"leave-to":{opacity:0}},"fade-up":{enter:{opacity:0,transform:"translateY(100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateY(100%)"}},"fade-down":{enter:{opacity:0,transform:"translateY(-100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateY(-100%)"}},"fade-left":{enter:{opacity:0,transform:"translateX(-100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateX(-100%)"}},"fade-right":{enter:{opacity:0,transform:"translateX(100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateX(100%)"}},"slide-up":{enter:{transform:"translateY(100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateY(100%)"}},"slide-down":{enter:{transform:"translateY(-100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateY(-100%)"}},"slide-left":{enter:{transform:"translateX(-100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateX(-100%)"}},"slide-right":{enter:{transform:"translateX(100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateX(100%)"}},zoom:{enter:{transform:"scale(0.95)"},"enter-to":{transform:"scale(1)"},leave:{transform:"scale(1)"},"leave-to":{transform:"scale(0.95)"}},"fade-zoom":{enter:{opacity:0,transform:"scale(0.95)"},"enter-to":{opacity:1,transform:"scale(1)"},leave:{opacity:1,transform:"scale(1)"},"leave-to":{opacity:0,transform:"scale(0.95)"}}}},c0f1:function(t,e,n){"use strict";function r(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t=String(t).toLowerCase(),t&&n.test(t)){if(4===t.length){for(var r="#",i=1;i<4;i+=1)r+=t.slice(i,i+1).concat(t.slice(i,i+1));t=r}for(var a=[],o=1;o<7;o+=2)a.push(parseInt("0x".concat(t.slice(o,o+2))));return e?"rgb(".concat(a[0],",").concat(a[1],",").concat(a[2],")"):a}if(/^(rgb|RGB)/.test(t)){var s=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(t){return Number(t)}))}return t}function i(t){var e=t;if(/^(rgb|RGB)/.test(e)){for(var n=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),r="#",i=0;i<n.length;i++){var a=Number(n[i]).toString(16);a=1==String(a).length?"".concat(0,a):a,"0"===a&&(a+=a),r+=a}return 7!==r.length&&(r=e),r}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))return e;var o=e.replace(/#/,"").split("");if(6===o.length)return e;if(3===o.length){for(var s="#",u=0;u<o.length;u+=1)s+=o[u]+o[u];return s}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={colorGradient:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=r(t,!1),o=a[0],s=a[1],u=a[2],c=r(e,!1),l=c[0],f=c[1],d=c[2],p=(l-o)/n,h=(f-s)/n,v=(d-u)/n,m=[],g=0;g<n;g++){var y=i("rgb(".concat(Math.round(p*g+o),",").concat(Math.round(h*g+s),",").concat(Math.round(v*g+u),")"));0===g&&(y=i(t)),g===n-1&&(y=i(e)),m.push(y)}return m},hexToRgb:r,rgbToHex:i,colorToRgba:function(t,e){t=i(t);var n=String(t).toLowerCase();if(n&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)){if(4===n.length){for(var r="#",a=1;a<4;a+=1)r+=n.slice(a,a+1).concat(n.slice(a,a+1));n=r}for(var o=[],s=1;s<7;s+=2)o.push(parseInt("0x".concat(n.slice(s,s+2))));return"rgba(".concat(o.join(","),",").concat(e,")")}return n}};e.default=a},c119:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("79ae")),a={name:"u-swipe-action",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},provide:function(){return{swipeAction:this}},computed:{parentData:function(){return[this.autoClose]}},watch:{parentData:function(){this.children.length&&this.children.map((function(t){"function"===typeof t.updateParentData&&t.updateParentData()}))}},created:function(){this.children=[]},methods:{closeOther:function(t){this.autoClose&&this.children.map((function(e,n){t!==e&&e.closeHandler()}))}}};e.default=a},c135:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},c1ce:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{show:{type:Boolean,default:uni.$u.props.transition.show},mode:{type:String,default:uni.$u.props.transition.mode},duration:{type:[String,Number],default:uni.$u.props.transition.duration},timingFunction:{type:String,default:uni.$u.props.transition.timingFunction}}};e.default=r},c240:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},c2d9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={popup:{show:!1,overlay:!0,mode:"bottom",duration:300,closeable:!1,overlayStyle:function(){},closeOnClickOverlay:!0,zIndex:10075,safeAreaInsetBottom:!0,safeAreaInsetTop:!1,closeIconPos:"top-right",round:0,zoom:!0,bgColor:"",overlayOpacity:.5}}},c430:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("708c")),a=r(n("024a")),o={name:"u-icon",data:function(){return{}},mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],computed:{uClasses:function(){var t=[];return t.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&t.push("u-icon__icon--"+this.color),t},iconStyle:function(){var t={};return t={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(t.color=this.color),t},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var t={};return t.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),t.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),t},icon:function(){return i.default["uicon-"+this.name]||this.name}},methods:{clickHandler:function(t){this.$emit("click",this.index),this.stop&&this.preventEvent(t)}}};e.default=o},c439:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9617")),a=r(n("9d6e")),o={name:"u--input",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvInput:i.default}};e.default=o},c591:function(t,e,n){"use strict";n.r(e);var r=n("24fe"),i=n("5230");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"615d6cff",null,!1,r["a"],void 0);e["default"]=s.exports},c5b6:function(t,e,n){"use strict";n.r(e);var r=n("eb69"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},c5c6:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uButton:n("c91d").default},i=function(){var t=this.$createElement,e=this._self._c||t;return e("default-header-page-layout",{ref:"page",attrs:{title:"\u51fa\u5e93",_i:0}},[e("view")])},a=[]},c5d4:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("d7f5")),a={name:"u-form-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}},computed:{propsLine:function(){return uni.$u.props.line}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||uni.$u.error("u-form-item\u9700\u8981\u7ed3\u5408u-form\u7ec4\u4ef6\u4f7f\u7528")},updateParentData:function(){this.getParentData("u-form")},clearValidate:function(){this.message=null},resetField:function(){var t=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,t),this.message=null},clickHandler:function(){this.$emit("click")}}};e.default=a},c60d:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.deepMerge=function t(){var e={};function n(n,r){"object"===(0,i.default)(e[r])&&"object"===(0,i.default)(n)?e[r]=t(e[r],n):"object"===(0,i.default)(n)?e[r]=t({},n):e[r]=n}for(var r=0,a=arguments.length;r<a;r++)s(arguments[r],n);return e},e.forEach=s,e.isArray=o,e.isBoolean=function(t){return"boolean"===typeof t},e.isDate=function(t){return"[object Date]"===a.call(t)},e.isObject=function(t){return null!==t&&"object"===(0,i.default)(t)},e.isPlainObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.isURLSearchParams=function(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams},e.isUndefined=function(t){return"undefined"===typeof t};var i=r(n("7037")),a=Object.prototype.toString;function o(t){return"[object Array]"===a.call(t)}function s(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==(0,i.default)(t)&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}},c85d:function(t,e,n){"use strict";n.r(e);var r=n("c5c6"),i=n("fc44");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c91d:function(t,e,n){"use strict";n.r(e);var r=n("602b"),i=n("e694");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"21c3eb91",null,!1,r["a"],void 0);e["default"]=s.exports},c92b:function(t,e,n){"use strict";n.r(e);var r=n("3196"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},c973:function(t,e){function n(t,e,n,r,i,a,o){try{var s=t[a](o),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var o=t.apply(e,r);function s(t){n(o,i,a,s,u,"next",t)}function u(t){n(o,i,a,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},ca7f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{color:{type:String,default:uni.$u.props.line.color},length:{type:[String,Number],default:uni.$u.props.line.length},direction:{type:String,default:uni.$u.props.line.direction},hairline:{type:Boolean,default:uni.$u.props.line.hairline},margin:{type:[String,Number],default:uni.$u.props.line.margin},dashed:{type:Boolean,default:uni.$u.props.line.dashed}}};e.default=r},cae8:function(t,e,n){"use strict";n.r(e);var r=n("24ad"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},cbbc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={datetimePicker:{show:!1,showToolbar:!0,value:"",title:"",mode:"datetime",maxDate:new Date((new Date).getFullYear()+10,0,1).getTime(),minDate:new Date((new Date).getFullYear()-10,0,1).getTime(),minHour:0,maxHour:23,minMinute:0,maxMinute:59,filter:null,formatter:null,loading:!1,itemHeight:44,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u8ba4",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,closeOnClickOverlay:!1,defaultIndex:function(){return[]}}};e.default=r},cbe2:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("c591")),s=r(n("84c4")),u=r(n("bfc4")),c=r(n("b62a")),l=r(n("733c")),f=r(n("65fa")),d=r(n("05aa")),p=n("579b"),h=n("6d9d"),v=null,m={name:"emptyInPage",components:{DefaultHeaderPageLayout:o.default,ActionUserRow:s.default,ScanInputFormItem:u.default,EasySelectFormItem:c.default,EasyPicker:l.default,exceptionPlace:f.default,materialInfo:d.default},data:function(){return{pageBodyHeight:0,form:{no:"",station:""},exceptePlace:[],materialData:{},msg:{materialId:""},msgType:{materialId:"info"}}},computed:{disabled:function(){return!Boolean(this.materialData.materialId)}},methods:{onClearContainter:function(){this.form.station="",this.materialData={}},getExceptionPlace:function(e){var n=this,r=1==e?"GGYC":"JTYC";try{(0,p.lisNoPage)({areaCode:r}).then((function(e){200==e.code&&(n.exceptePlace=null===e||void 0===e?void 0:e.result,t("log",n.exceptePlace,"11"," at pages/exceptionHandle/index.vue:98"))}))}catch(i){return void(0,h.$alert)(i)}},onSearchMaterial:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var n,r,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.form.materialId){e.next=4;break}return t.msgType.materialId="error",t.msg.materialId="\u8bf7\u8f93\u5165\u626b\u7801\uff01",e.abrupt("return",!1);case 4:return n={code:t.form.materialId},e.prev=5,e.next=8,(0,p.exceptionInfo)(n);case 8:r=e.sent,a=r.result,t.materialData=a,t.getExceptionPlace(t.materialData.materialType),e.next=18;break;case 14:return e.prev=14,e.t0=e["catch"](5),(0,h.$alert)(e.t0),e.abrupt("return");case 18:case"end":return e.stop()}}),e,null,[[5,14]])})))()},setData:function(){t("log","clear"," at pages/exceptionHandle/index.vue:132"),this.form={no:"",station:""},this.msg={materialId:""},this.msgType={materialId:"info"},this.exceptePlace=[],this.materialData={}},submint:function(e){var n=this;return(0,a.default)(i.default.mark((function r(){var a;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a={type:e,materialId:n.materialData.materialId,stationNo:n.form.station},t("log",a," at pages/exceptionHandle/index.vue:154"),r.prev=2,r.next=5,(0,p.outBound)(a);case 5:n.setData(),(0,h.$successInfo)("\u51fa\u5e93\u6210\u529f\uff01"),r.next=12;break;case 9:r.prev=9,r.t0=r["catch"](2),t("log",r.t0," at pages/exceptionHandle/index.vue:162");case 12:case"end":return r.stop()}}),r,null,[[2,9]])})))()},startInitInterval:function(t){var e=this;v=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(v),v=null}catch(t){}}},onReady:function(){this.startInitInterval((function(){}))},onUnload:function(){this.clearInitInterval()}};e.default=m}).call(this,n("0de9")["default"])},cc4c:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.addRange=function(t){return(0,i.default)({url:"/api/inAndOutOrder/addRange",method:"post",data:t})},e.materialStockListNoPage=function(t){return(0,i.default)({url:"/api/inAndOutOrder/getMaterialListNoPage?".concat(a.default.stringify(t)),method:"get"})};var i=r(n("98af")),a=r(n("4328"))},cc61:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tooltip:{text:"",copyText:"",size:14,color:"#606266",bgColor:"transparent",direction:"top",zIndex:10071,showCopy:!0,buttons:function(){return[]},overlay:!0,showToast:!0}}},ccae:function(t,e,n){"use strict";n.r(e);var r=n("ce51"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},ccca:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={errMsg:"\u7f51\u7edc\u9519\u8bef\uff01",host:{default:"http://localhost:5005",auth:"http://10.10.40.166:183",mock:"http://localhost:3012"},block:{default:"/api/",sysDic:"/api/sysDictType/",online:"/api/FoamBoard/",offline:"/api/Receipt/",quickIn:"/api/QuickWoreHouse/",exware:"/api/ExWarePDA/",task:"/api/pdatask/",fapaoIn:"/api/automaticwarehouse/",fapaoOut:"/api/groupdiskoutwarehouse/",wentrance:"/api/warewarehouseentrance/",generic:"/api/BeCurrent/",plywood:"/api/PlywoodGroupDisk/",emptyOut:"/api/CallEmpty/",emptyIn:"/api/InEmpty/",rsbIn:"/api/RSBGroupDisk/",sandingIn:"/api/SandingWarehouse/",endProduct:"/api/FinishProductInWare/",innerTail:"/api/TailStockReturn/",unstacking:"/api/UnstackingRuKu/",transport:"/api/Transport/",changeStore:"/api/Relocation/",checkStock:"/api/inventoryplanexce/"}}},cd42:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={columnNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80,step:!1,duration:1500,disableTouch:!0}}},cd5f:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9f39")),a={name:"u-safe-bottom",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{safeAreaBottomHeight:0,isNvue:!1}},computed:{style:function(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},mounted:function(){}};e.default=a},cdff:function(t,e,n){"use strict";n.r(e);var r=n("2b90"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},ce51:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9d6e")),a={name:"u-input",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:function(t){return t}}},watch:{value:{immediate:!0,handler:function(t,e){this.innerValue=t,this.firstChange=!1,this.changeFromInner=!1}}},computed:{isShowClear:function(){var t=this.clearable,e=this.readonly,n=this.focused,r=this.innerValue;return!!t&&!e&&!!n&&""!==r},inputClass:function(){var t=[],e=this.border,n=(this.disabled,this.shape);return"surround"===e&&(t=t.concat(["u-border","u-input--radius"])),t.push("u-input--".concat(n)),"bottom"===e&&(t=t.concat(["u-border-bottom","u-input--no-radius"])),t.join(" ")},wrapperStyle:function(){var t={};return this.disabled&&(t.backgroundColor=this.disabledColor),"none"===this.border?t.padding="0":(t.paddingTop="6px",t.paddingBottom="6px",t.paddingLeft="9px",t.paddingRight="9px"),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},inputStyle:function(){var t={color:this.color,fontSize:uni.$u.addUnit(this.fontSize),textAlign:this.inputAlign};return t}},methods:{setFormatter:function(t){this.innerFormatter=t},onInput:function(t){var e=this,n=t.detail||{},r=n.value,i=void 0===r?"":r,a=this.formatter||this.innerFormatter,o=a(i);this.innerValue=i,this.$nextTick((function(){e.innerValue=o,e.valueChange()}))},onBlur:function(t){var e=this;this.$emit("blur",t.detail.value),uni.$u.sleep(50).then((function(){e.focused=!1})),uni.$u.formValidate(this,"blur")},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",this.innerValue)},onkeyboardheightchange:function(){this.$emit("keyboardheightchange")},valueChange:function(){var t=this,e=this.innerValue;this.$nextTick((function(){t.$emit("input",e),t.changeFromInner=!0,t.$emit("change",e),uni.$u.formValidate(t,"change")}))},onClear:function(){var t=this;this.innerValue="",this.$nextTick((function(){t.valueChange(),t.$emit("clear")}))},clickHandler:function(){}}};e.default=a},ce91:function(t,e,n){"use strict";n.r(e);var r=n("2341"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},cec3:function(t,e,n){"use strict";n.r(e);var r=n("5fbf"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},cfeb:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("448a")),o=r(n("c973")),s=r(n("c591")),u=r(n("84c4")),c=r(n("bfc4")),l=r(n("b62a")),f=r(n("733c")),d=r(n("85be")),p=r(n("44bb")),h=n("86bf"),v=n("6d9d"),m=null,g={name:"emptyInPage",components:{DefaultHeaderPageLayout:s.default,ActionUserRow:u.default,ScanInputFormItem:c.default,EasySelectFormItem:l.default,EasyPicker:f.default,contentCard:d.default,sortInfo:p.default},data:function(){return{pageBodyHeight:0,form:{no:""},containterNo:null,noData:[],sortInfo:{},materialData:[],actionStyle:{backgroundColor:"#F18202",color:"#fff",width:"120rpx",height:"58rpx",lineHeight:"58rpx",borderRadius:"10rpx"},msg:{containterNo:"",material:"",site:""},msgType:{containterNo:"info",material:"error",site:"error"}}},computed:{disabled:function(){return this.noData.filter((function(t){return t.checked})).length<1}},methods:{onClearContainter:function(){this.sortInfo={},this.materialData=[]},onSearchContainter:function(){var e=this;return(0,o.default)(i.default.mark((function n(){var r,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.form.containterNo){n.next=4;break}return e.msgType.containterNo="error",e.msg.containterNo="\u8bf7\u8f93\u5165\u6258\u76d8\u53f7\uff01",n.abrupt("return",!1);case 4:return n.prev=4,n.next=7,(0,h.SortInfo)({containerNo:e.form.containterNo});case 7:r=n.sent,a=r.result,e.materialData=a.materialInfos,e.sortInfo=a,n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](4),t("log",n.t0," at pages/sortingSearch/index.vue:116");case 16:case"end":return n.stop()}}),n,null,[[4,13]])})))()},handleItemClick:function(t){this.materialData.forEach((function(e,n){e.materialId===t&&(e.checked=!1)}))},selectMaterial:function(t){var e=this,n=0;Array.isArray(this.materialData)&&(this.materialData.forEach((function(r){var i;i=t.includes("^")?e.QRCodeAnalysis(t):t,r.materialId!==i||r.checked||(r.checked=!0,n++)})),this.materialData.sort((function(t,e){return t.checked&&!e.checked?-1:!t.checked&&e.checked?1:0})),this.materialData=(0,a.default)(this.materialData),n>this.sortInfo.sortQuantity?this.sortInfo.actualQuantity=this.sortInfo.sortQuantity:this.sortInfo.actualQuantity=n)},QRCodeAnalysis:function(t){if(!t||t.length<10||!t.includes("^"))throw new Error("\u4f20\u5165\u4e8c\u7ef4\u7801\u3010".concat(t||"","\u3011\u5f02\u5e38\uff0c\u8bf7\u786e\u8ba4\uff01"));var e={},n=t.trim().split("^");if(2!==n.length||n[1].length<10)throw new Error("\u4f20\u5165\u4e8c\u7ef4\u7801\u3010".concat(t||"","\u3011\u683c\u5f0f\u5f02\u5e38\uff0c\u8bf7\u786e\u8ba4\uff01"));e.MaterialNo=n[0],e.MaterialId=n[1].substring(4);return/[A-Z]$/.test(n[1])?e.MaterialBatch=n[1].substring(4,n[1].length-5):e.MaterialBatch=n[1].substring(4,n[1].length-4),e.Line=n[1].substring(0,4),e.MaterialId},submint:function(){var t=this,e=this.materialData.filter((function(t){return!0===t.checked}));if(void 0!=e&&0!=e.length){var n={orderNo:this.sortInfo.orderNo,taskNo:"111",orderDetailId:this.sortInfo.orderDetailId,containerNo:this.sortInfo.containerNo,sourceContainerNo:this.sortInfo.containerNo,sortOrderNo:this.sortInfo.sortOrderNo,addSortDetails:e};(0,h.addSortDetail)(n).then((function(e){return 200==e.code?((0,v.$successInfo)("\u5206\u62e3\u5b8c\u6210"),t.materialData=[],t.sortInfo={},t.form.containterNo="",void(t.form.materialId="")):void(0,v.$alert)("res.message")}))}else(0,v.$alert)("\u8bf7\u626b\u63cf\u7269\u6599\u7801")},clear:function(){this.form.materialNo=""},startInitInterval:function(t){var e=this;m=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(m),m=null}catch(t){}}},onReady:function(){this.startInitInterval((function(){}))},onUnload:function(){this.clearInitInterval()}};e.default=g}).call(this,n("0de9")["default"])},d14a:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uvForm",{ref:"uForm",attrs:{model:t.model,rules:t.rules,errorType:t.errorType,borderBottom:t.borderBottom,labelPosition:t.labelPosition,labelWidth:t.labelWidth,labelAlign:t.labelAlign,labelStyle:t.labelStyle,customStyle:t.customStyle,_i:0}},[t._t("default",null,{_i:1})],2)},i=[]},d15a:function(t,e,n){"use strict";n.r(e);var r=n("e1cd"),i=n("ee3f");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"bd25ae74",null,!1,r["a"],void 0);e["default"]=s.exports},d165:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("c591")),o=r(n("84c4")),s=r(n("bfc4")),u=r(n("b62a")),c=n("6d9d");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=null,p={material:""},h={stationCode:""},v={name:"toBeOnlinePage",components:{DefaultHeaderPageLayout:a.default,ActionUserRow:o.default,ScanInputFormItem:s.default,EasySelectFormItem:u.default},data:function(){return{pageBodyHeight:0,step:1,containter:null,forma:f({},p),formb:f({},h),msg:{material:"",stationCode:""},msgType:{material:"error",stationCode:"error"},list:[],materialDisabled:!1,stepTwoType:"",selectList:{stations:[]}}},watch:{stepTwoType:function(t,e){this.triggerStepTwoType()}},methods:{onSearchMaterial:function(){if(!this.forma.material)return this.msg.material="\u8bf7\u8f93\u5165\u7269\u6599\u7f16\u53f7\uff01",!1;this.msg.material="",this.getMaterialInfo()},onClearMaterial:function(){this.resetMaterial()},onClearStation:function(){this.resetStation()},onDelList:function(t){this.list.splice(t,1)},resetMaterial:function(){this.msg.material="",this.forma.material=""},resetStation:function(){this.msg.stationCode="",this.formb.stationCode=""},reset:function(){this.resetMaterial(),this.resetStation(),this.list=[],this.stepTwoType="",this.step=1},getMaterialInfo:function(t){var e=this,n={Code:this.forma.material};this.$api.get("ParseCode",n,{block:"online",fullRes:!0}).then((function(n){if(n.data){var r=f({},n.data);r.materialBatch=r.batch,r.materialCode=e.forma.material,e.list.push(r),e.forma.material="",t&&t(!0)}else e.msg.material=n.message||"\u67e5\u65e0\u4fe1\u606f\uff01",t&&t(!1)})).catch((function(e){t&&t(!1)}))},onReset:function(){this.reset()},onNext:function(){this.stepTwoType="select",this.step=2},onPrevStep:function(){this.resetStation(),this.step=1},triggerStepTwoType:function(){var t=this;"select"===this.stepTwoType&&0===this.selectList.stations.length&&this.$api.get("GetFoamBoardStation",{},{block:"online"}).then((function(e){t.selectList.stations=e||[]})).catch((function(t){}))},onChangeStepTwoType:function(t){this.formb.stationCode="",this.stepTwoType=t},onSubmit:function(){var t=this;if(!this.formb.stationCode)return this.msg.stationCode="\u8bf7\u786e\u8ba4\u4ea7\u7ebf\uff01",!1;this.msg.stationCode="",this.dealConfirm((function(e){e&&(t.reset(),(0,c.$successInfo)("\u64cd\u4f5c\u6210\u529f\uff01"))}))},dealConfirm:function(t){var e={stationCode:this.formb.stationCode,foamBoardInformationList:this.list};this.$api.post("FoamBoardRecord",e,{block:"online"}).then((function(){t&&t(!0)})).catch((function(){t&&t(!1)}))},startInitInterval:function(t){var e=this;d=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(d),d=null}catch(t){}}},onReady:function(){this.startInitInterval((function(){}))},onUnload:function(){this.clearInitInterval()}};e.default=v},d18f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={skeleton:{loading:!0,animate:!0,rows:0,rowsWidth:"100%",rowsHeight:18,title:!0,titleWidth:"50%",titleHeight:18,avatar:!1,avatarSize:32,avatarShape:"circle"}}},d21e:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=(r(n("c041")),function(t){return{enter:"u-".concat(t,"-enter u-").concat(t,"-enter-active"),"enter-to":"u-".concat(t,"-enter-to u-").concat(t,"-enter-active"),leave:"u-".concat(t,"-leave u-").concat(t,"-leave-active"),"leave-to":"u-".concat(t,"-leave-to u-").concat(t,"-leave-active")}}),s={methods:{clickHandler:function(){this.$emit("click")},vueEnter:function(){var t=this,e=o(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,this.$nextTick((0,a.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.$emit("enter"),t.transitionEnded=!1,t.$emit("afterEnter"),t.classes=e["enter-to"];case 4:case"end":return n.stop()}}),n)}))))},vueLeave:function(){var t=this;if(this.display){var e=o(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,this.$nextTick((function(){t.transitionEnded=!1,t.$emit("leave"),setTimeout(t.onTransitionEnd,t.duration),t.classes=e["leave-to"]}))}},onTransitionEnd:function(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}};e.default=s},d233:function(t,e,n){"use strict";var r=n("b313"),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)"undefined"!==typeof t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],s=Object.keys(o),u=0;u<s.length;++u){var c=s[u],l=o[c];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:o,prop:c}),n.push(l))}return function(t){while(t.length>1){var e=t.pop(),n=e.obj[e.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(t,e,n,i,a){if(0===t.length)return t;var s=t;if("symbol"===typeof t?s=Symbol.prototype.toString.call(t):"string"!==typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||a===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=o[l]:l<2048?u+=o[192|l>>6]+o[128|63&l]:l<55296||l>=57344?u+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=o[240|l>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!==typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!==typeof n){if(a(e))e.push(n);else{if(!e||"object"!==typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!==typeof e)return[e].concat(n);var o=e;return a(e)&&!a(n)&&(o=s(e,r)),a(e)&&a(n)?(n.forEach((function(n,a){if(i.call(e,a)){var o=e[a];o&&"object"===typeof o&&n&&"object"===typeof n?e[a]=t(o,n,r):e.push(n)}else e[a]=n})),e):Object.keys(n).reduce((function(e,a){var o=n[a];return i.call(e,a)?e[a]=t(e[a],o,r):e[a]=o,e}),o)}}},d23b:function(t,e,n){"use strict";n.r(e);var r=n("0ad5"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},d2c3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={namespaced:!0,state:function(){return{deviceId:"",blueInfo:null}},mutations:{setDeviceId:function(t,e){t.deviceId=e},setBlueInfo:function(t,e){t.blueInfo=e}},actions:{},getters:{getDeviceId:function(t){return t.deviceId},getBlueInfo:function(t){return t.blueInfo}}}},d59a:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("6b67")),a={LF:[10],FS:[28],FF:[12],GS:[29],DLE:[16],EOT:[4],NUL:[0],ESC:[27],EOL:"\n",FEED_CONTROL_SEQUENCES:{CTL_LF:[10],CTL_GLF:[74,0],CTL_FF:[12],CTL_CR:[13],CTL_HT:[9],CTL_VT:[11]},CHARACTER_SPACING:{CS_DEFAULT:[27,32,0],CS_SET:[27,32]},LINE_SPACING:{LS_DEFAULT:[27,50],LS_SET:[27,51]},HARDWARE:{HW_INIT:[27,64],HW_SELECT:[27,61,1],HW_RESET:[27,63,10,0]},CASH_DRAWER:{CD_KICK_2:[27,112,0],CD_KICK_5:[27,112,1]},MARGINS:{BOTTOM:[27,79],LEFT:[27,108],RIGHT:[27,81]},PAPER:{PAPER_FULL_CUT:[29,86,0],PAPER_PART_CUT:[29,86,1],PAPER_CUT_A:[29,86,65],PAPER_CUT_B:[29,86,66]},TEXT_FORMAT:{TXT_NORMAL:[27,33,0],TXT_2HEIGHT:[27,33,16],TXT_2WIDTH:[27,33,32],TXT_4SQUARE:[27,33,48],TXT_UNDERL_OFF:[27,45,0],TXT_UNDERL_ON:[27,45,1],TXT_UNDERL2_ON:[27,45,2],TXT_BOLD_OFF:[27,69,0],TXT_BOLD_ON:[27,69,1],TXT_ITALIC_OFF:[27,53],TXT_ITALIC_ON:[27,52],TXT_FONT_A:[27,77,0],TXT_FONT_B:[27,77,1],TXT_FONT_C:[27,77,2],TXT_ALIGN_LT:[27,97,0],TXT_ALIGN_CT:[27,97,1],TXT_ALIGN_RT:[27,97,2]},BARCODE_FORMAT:{BARCODE_TXT_OFF:[29,72,0],BARCODE_TXT_ABV:[29,72,1],BARCODE_TXT_BLW:[29,72,2],BARCODE_TXT_BTH:[29,72,3],BARCODE_FONT_A:[29,102,0],BARCODE_FONT_B:[29,102,1],BARCODE_HEIGHT:function(t){return[29,104,t]},BARCODE_WIDTH:function(t){return[29,119,t]},BARCODE_HEIGHT_DEFAULT:[29,104,100],BARCODE_WIDTH_DEFAULT:[29,119,1],BARCODE_UPC_A:[29,107,0],BARCODE_UPC_E:[29,107,1],BARCODE_EAN13:[29,107,2],BARCODE_EAN8:[29,107,3],BARCODE_CODE39:[29,107,4],BARCODE_ITF:[29,107,5],BARCODE_NW7:[29,107,6],BARCODE_CODE93:[29,107,72],BARCODE_CODE128:[29,107,73]},IMAGE_FORMAT:{S_RASTER_N:[29,118,48,0],S_RASTER_2W:[29,118,48,1],S_RASTER_2H:[29,118,48,2],S_RASTER_Q:[29,118,48,3]},BITMAP_FORMAT:{BITMAP_S8:[27,42,0],BITMAP_D8:[27,42,1],BITMAP_S24:[27,42,32],BITMAP_D24:[27,42,33]},GSV0_FORMAT:{GSV0_NORMAL:[29,118,48,0],GSV0_DW:[29,118,48,1],GSV0_DH:[29,118,48,2],GSV0_DWDH:[29,118,48,3]},BEEP:[27,66],COLOR:{0:[27,114,0],1:[27,114,1]}},o=function(){this._queue=Array.from(a.HARDWARE.HW_INIT),this._enqueue=function(t){this._queue.push.apply(this._queue,t)}};o.prototype.text=function(t){if(t){var e=i.default.encode(t),n=Array.from(e);this._enqueue(n)}return this},o.prototype.print=function(t){return this.text(t),this._enqueue(a.LF),this},o.prototype.printQrcode=function(t){if(t){var e=[].concat([27,97,1],[29,118,48,0,30,0,240,0],t,[27,74,3],[27,64]);this._enqueue(e),this._enqueue(a.LF)}return this},o.prototype.println=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.print(t+a.EOL)},o.prototype.setAlign=function(t){return this._enqueue(a.TEXT_FORMAT["TXT_ALIGN_"+t.toUpperCase()]),this},o.prototype.setFont=function(t){return this._enqueue(a.TEXT_FORMAT["TXT_FONT_"+t.toUpperCase()]),this},o.prototype.setSize=function(t,e){return 2>=t&&2>=e&&(this._enqueue(a.TEXT_FORMAT.TXT_NORMAL),2===t&&2===e?this._enqueue(a.TEXT_FORMAT.TXT_4SQUARE):1===t&&2===e?this._enqueue(a.TEXT_FORMAT.TXT_2HEIGHT):2===t&&1===e&&this._enqueue(a.TEXT_FORMAT.TXT_2WIDTH)),this},o.prototype.setBold=function(t){return"boolean"!==typeof t&&(t=!0),this._enqueue(t?a.TEXT_FORMAT.TXT_BOLD_ON:a.TEXT_FORMAT.TXT_BOLD_OFF),this},o.prototype.setUnderline=function(t){return"boolean"!==typeof t&&(t=!0),this._enqueue(t?a.TEXT_FORMAT.TXT_UNDERL_ON:a.TEXT_FORMAT.TXT_UNDERL_OFF),this},o.prototype.setLineSpacing=function(t){return void 0===t||null===t?this._enqueue(a.LINE_SPACING.LS_DEFAULT):(this._enqueue(a.LINE_SPACING.LS_SET),this._enqueue([t])),this},o.prototype.lineFeed=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.print(new Array(t).fill(a.EOL).join(""))},o.prototype.setCharacterMultiple=function(t,e){if(this._enqueue([29,33]),0<=t&&t<=7&&0<=e&&e<=7){var n=16*t+e;this._enqueue([n])}return this},o.prototype.printQrcode=function(t,e,n,r,i){var a=t,o=a.replace(/[^\u0000-\u00ff]/g,"aa").length;return this._enqueue([29,90]),this._enqueue([e]),this._enqueue([27,90]),this._enqueue([n]),this._enqueue([r]),this._enqueue([i]),this._enqueue([o%256]),this._enqueue([o/256]),this.print(t),this},o.prototype.queryStatus=function(){return this._enqueue([16,4,2]),this},o.prototype.clear=function(){return this._queue=Array.from(a.HARDWARE.HW_INIT),this},o.prototype.buffer=function(){return new Uint8Array(this._queue).buffer},o.prototype.label_set_page=function(t,e){var n="! 0 200 200 "+e+" 1\r\nPAGE-WIDTH "+t+"\r\n";return this.text(n),this},o.prototype.drawbox=function(t,e,n,r,i){var a="BOX "+e+" "+n+" "+r+" "+i+" "+t+"\r\n";return this.text(a),this},o.prototype.label_print=function(t,e){var n,r;switch(t){case 0:n=0;break;case 1:n=1;break;case 2:n=2;break;default:n=0}return r=1==e?"PR "+n+"\r\nFORM\r\nPRINT\r\n":"PR "+n+"\r\nPRINT\r\n",this.text(r),this},o.prototype.drawBarCode=function(e,n,r,i,a,o,s){t("log","start_x",e," at static/js/print/printerjobs.js:403"),t("log","start_y",n," at static/js/print/printerjobs.js:404"),t("log","text",r," at static/js/print/printerjobs.js:405"),t("log","barcodeType",i," at static/js/print/printerjobs.js:406"),t("log","rotate",a," at static/js/print/printerjobs.js:407"),t("log","linewidth",o," at static/js/print/printerjobs.js:408"),t("log","height",s," at static/js/print/printerjobs.js:409");var u="B";a&&(u="VB");var c="128";0==i?c="39":1==i?c="128":2==i?c="93":3==i?c="CODABAR":4==i?c="EAN8":5==i?c="EAN13":6==i?c="UPCA":7==i&&(c="UPCE");var l=u+" "+c+" "+o+" 0 "+s+" "+e+" "+n+" "+r+"\r\n";return t("log","content"," at static/js/print/printerjobs.js:435"),t("log",l," at static/js/print/printerjobs.js:436"),this.text(l),this},o.prototype.drawQrCode=function(t,e,n,r,i,a){var o="B";0!=r&&(o="VB");var s=o+" QR "+t+" "+e+" M 2 U "+i+" \r\nMA,"+n+"\r\nENDQR\r\n";return this.text(s),this},o.prototype.drawText=function(t,e,n,r,i,a,o,s){var u="";0==i?u="T":1==i?u="T90":2==i?u="T180":3==i&&(u="T270");var c=0,l=0;o&&(c=1),s&&(l=1);var f=24,d=0;20==r?(f=20,d=0):1==r?(f=55,d=0):2==r?(f=24,d=0):3==r?(f=55,d=11):4==r?(f=24,d=11):5==r?(f=55,d=33):6==r?(f=24,d=22):7==r&&(f=55,d=77);var p="SETBOLD "+a+"\r\nIT "+c+"\r\nUT "+l+"\r\n"+u+" "+f+" "+d+" "+t+" "+e+" "+n+"\r\n";return this.text(p),this},o.prototype.inverse=function(t,e,n,r,i){var a=t,o=e,s=n,u=r,c=i;t==n&&(a=t,o=e,s=t+i,u=e,c=r-e);var l="IL "+a+" "+o+" "+s+" "+u+" "+c+"\r\n";return this.text(l),this},o.prototype.drawLine=function(t,e,n,r,i){var a="LINE "+e+" "+n+" "+r+" "+i+" "+t+"\r\n";return this.text(a),this},o.prototype.clear=function(){return this._queue=Array.from(a.HARDWARE.HW_INIT),this},o.prototype.buffer=function(){return new Uint8Array(this._queue).buffer};var s=o;e.default=s}).call(this,n("0de9")["default"])},d5f2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={album:{urls:function(){return[]},keyName:"",singleSize:180,multipleSize:70,space:6,singleMode:"scaleToFill",multipleMode:"aspectFill",maxCount:9,previewFullImage:!0,rowCount:3,showMore:!0}}},d62a:function(t,e,n){"use strict";n.r(e);var r=n("324d"),i=n("3cf0");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"408c4a9a",null,!1,r["a"],void 0);e["default"]=s.exports},d7f5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{label:{type:String,default:uni.$u.props.formItem.label},prop:{type:String,default:uni.$u.props.formItem.prop},borderBottom:{type:[String,Boolean],default:uni.$u.props.formItem.borderBottom},labelPosition:{type:String,default:uni.$u.props.formItem.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.formItem.labelWidth},rightIcon:{type:String,default:uni.$u.props.formItem.rightIcon},leftIcon:{type:String,default:uni.$u.props.formItem.leftIcon},required:{type:Boolean,default:uni.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:uni.$u.props.formItem.leftIconStyle}}};e.default=r},da91:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.show&&(0!==Number(t.value)||t.showZero||t.isDot))?n("text",{staticClass:t._$s(0,"sc","u-badge"),class:t._$s(0,"c",[t.isDot?"u-badge--dot":"u-badge--not-dot",t.inverted&&"u-badge--inverted","horn"===t.shape&&"u-badge--horn","u-badge--"+t.type+(t.inverted?"--inverted":"")]),style:t._$s(0,"s",[t.$u.addStyle(t.customStyle),t.badgeStyle]),attrs:{_i:0}},[t._v(t._$s(0,"t0-0",t._s(t.isDot?"":t.showValue)))]):t._e()},i=[]},dad7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}};e.default=r},db01:function(t,e,n){"use strict";n.r(e);var r=n("c5d4"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},db18:function(t,e,n){"use strict";n.r(e);var r=n("98dc"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},db24:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={"u-Input":n("fa14").default,uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","scan-input-form-item-compontent"),attrs:{_i:0}},[t._$s(1,"i",t.label)?n("view",{staticClass:t._$s(1,"sc","p-form-label"),attrs:{_i:1}},[t._$s(2,"i",t.required)?n("text",{staticClass:t._$s(2,"sc","required-tag"),attrs:{_i:2}}):t._e(),t._v(t._$s(1,"t1-0",t._s(t.label)))]):t._e(),n("view",{staticClass:t._$s(3,"sc","input-row"),attrs:{_i:3}},[t._$s(4,"i",t.disabled)?n("view",{staticClass:t._$s(4,"sc","mask"),attrs:{_i:4},on:{click:function(t){t.stopPropagation()}}}):t._e(),n("view",{staticClass:t._$s(5,"sc","input-view"),attrs:{_i:5}},[n("u--input",{attrs:{clearable:t.clearable,border:"none",type:t.type,placeholder:t.placeholder,_i:6},on:{clear:t.onClear,blur:t.onBlur,confirm:t.onConfirm},model:{value:t._$s(6,"v-model",t.innerValue),callback:function(e){t.innerValue="string"===typeof e?e.trim():e},expression:"innerValue"}})],1),t._$s(7,"i",t.hasScan)?n("view",{staticClass:t._$s(7,"sc","scan-view"),attrs:{_i:7}},[n("view",{attrs:{_i:8},on:{click:function(e){return e.stopPropagation(),t.onScan(e)}}},[n("u-icon",{attrs:{name:"scan",color:"#F18201",size:32,_i:9}})],1)]):t._e(),t._$s(10,"i",t.hasSearch)?n("view",{staticClass:t._$s(10,"sc","btn-view"),attrs:{_i:10}},[n("view",{staticClass:t._$s(11,"sc","search-btn"),attrs:{_i:11},on:{click:function(e){return e.stopPropagation(),t.onSearch(e)}}})]):t._e()]),t._$s(12,"i",t.msg)?n("view",{staticClass:t._$s(12,"sc","msg-row"),class:t._$s(12,"c",["info"===t.msgType?"info-type":""]),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.msg)))]):t._e()])},a=[]},db6d:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("6d9d"),a=r(n("733c")),o=r(n("bfc4")),s={props:{selectData:{type:Array,default:function(){return[]}},value:{type:String,default:""},label:{type:String,default:""},labelField:{type:String,default:""},valueField:{type:String,default:""},disabled:{type:Boolean,default:!1}},components:{EasyPicker:a.default,ScanInputFormItem:o.default},data:function(){return{radiolist1:[],radiovalue1:"",visible:!1}},methods:{getSelectData:function(t){this.$emit("update:value",t)},parseDic:i.parseDic}};e.default=s},db6f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={countDown:{time:0,format:"HH:mm:ss",autoStart:!0,millisecond:!1}}},dcef:function(t,e,n){"use strict";n.r(e);var r=n("2ced"),i=n("27a5");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"ffc72f28",null,!1,r["a"],void 0);e["default"]=s.exports},de61:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default,uBadge:n("6c35").default,uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("default-header-page-layout",{ref:"page",attrs:{title:"\u5207\u5272\u4e0a\u7ebf",_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("29-"+i,"sc","bottom-btns-row"),attrs:{_i:"29-"+i}},[r._$s("30-"+i,"i",1===t.step)?[n("div",{staticClass:r._$s("31-"+i,"sc","btn-frame left-btn-frame"),attrs:{_i:"31-"+i}},[n("u-button",{attrs:{text:"\u91cd \u7f6e",_i:"32-"+i},on:{click:t.onReset}})],1),n("div",{staticClass:r._$s("33-"+i,"sc","btn-frame right-btn-frame"),attrs:{_i:"33-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u4e0a \u7ebf",disabled:t.list.length<=0,_i:"34-"+i},on:{click:t.onNext}})],1)]:[n("div",{staticClass:r._$s(36,"sc","btn-frame left-btn-frame"),attrs:{_i:36}},[n("u-button",{attrs:{text:"\u4e0a\u4e00\u6b65",_i:37},on:{click:t.onPrevStep}})],1),n("div",{staticClass:r._$s(38,"sc","btn-frame right-btn-frame"),attrs:{_i:38}},[n("u-button",{attrs:{type:"primary",text:"\u63d0 \u4ea4",_i:39},on:{click:t.onSubmit}})],1)]],2)]}}])},[t._$s(1,"i",t.pageBodyHeight)?n("view",{staticClass:t._$s(1,"sc","page-frame with-action-user-row"),style:t._$s(1,"s",{height:t.pageBodyHeight+"px"}),attrs:{_i:1}},[n("action-user-row",{attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","with-action-user-row-page-content"),attrs:{_i:3}},[t._$s(4,"i",1===t.step)?[n("scan-input-form-item",{staticClass:t._$s(5,"sc","forma-item"),attrs:{label:"\u7269\u6599\u7f16\u7801",msg:t.msg.material,"msg-type":t.msgType.material,_i:5},on:{search:t.onSearchMaterial,clear:t.onClearMaterial},model:{value:t._$s(5,"v-model",t.forma.material),callback:function(e){t.$set(t.forma,"material",e)},expression:"forma.material"}}),t._$s(6,"i",t.list.length>0)?n("view",{staticClass:t._$s(6,"sc","material-item-group"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.list}),(function(e,r,i,a){return n("view",{key:t._$s(7,"f",{forIndex:i,key:"material-list-item-"+r}),staticClass:t._$s("7-"+a,"sc","material-list-item"),attrs:{_i:"7-"+a}},[n("view",{staticClass:t._$s("8-"+a,"sc","close-btn"),attrs:{_i:"8-"+a},on:{click:function(e){return e.stopPropagation(),t.onDelList(r)}}},[n("view",{staticClass:t._$s("9-"+a,"sc","icon-layer"),attrs:{_i:"9-"+a}},[n("u-icon",{attrs:{name:"close",color:"#ffffff",size:"24",_i:"10-"+a}})],1)]),n("view",{staticClass:t._$s("11-"+a,"sc","badge-box"),attrs:{_i:"11-"+a}},[n("u-badge",{attrs:{value:r+1,"bg-color":"#F18201",_i:"12-"+a}})],1),n("view",{staticClass:t._$s("13-"+a,"sc","item-row"),attrs:{_i:"13-"+a}},[n("view",{staticClass:t._$s("14-"+a,"sc","label"),attrs:{_i:"14-"+a}}),n("view",{staticClass:t._$s("15-"+a,"sc","content auto-wrap"),attrs:{_i:"15-"+a}},[t._v(t._$s("15-"+a,"t0-0",t._s(e.density)))])]),n("view",{staticClass:t._$s("16-"+a,"sc","item-row"),attrs:{_i:"16-"+a}},[n("view",{staticClass:t._$s("17-"+a,"sc","label"),attrs:{_i:"17-"+a}}),n("view",{staticClass:t._$s("18-"+a,"sc","content auto-wrap"),attrs:{_i:"18-"+a}},[t._v(t._$s("18-"+a,"t0-0",t._s(e.batch)))])]),n("view",{staticClass:t._$s("19-"+a,"sc","item-row"),attrs:{_i:"19-"+a}},[n("view",{staticClass:t._$s("20-"+a,"sc","label"),attrs:{_i:"20-"+a}}),n("view",{staticClass:t._$s("21-"+a,"sc","content auto-wrap"),attrs:{_i:"21-"+a}},[t._v(t._$s("21-"+a,"t0-0",t._s(e.quantity)))])])])})),0):t._e()]:t._e(),t._$s(22,"i",2===t.step)?[t._$s(23,"i","select"===t.stepTwoType)?n("easy-select-form-item",{staticClass:t._$s(23,"sc","forma-item"),attrs:{label:"\u4ea7\u7ebf/\u5de5\u4f4d",list:t.selectList.stations,msg:t.msg.stationCode,"msg-type":t.msgType.stationCode,"value-field":"stationCode","label-field":"stationName",_i:23},on:{clear:t.onClearStation},model:{value:t._$s(23,"v-model",t.formb.stationCode),callback:function(e){t.$set(t.formb,"stationCode",e)},expression:"formb.stationCode"}}):n("scan-input-form-item",{staticClass:t._$s(24,"sc","forma-item"),attrs:{label:"\u4ea7\u7ebf/\u5de5\u4f4d",msg:t.msg.stationCode,"msg-type":t.msgType.stationCode,"has-search":!1,_i:24},on:{clear:t.onClearStation},model:{value:t._$s(24,"v-model",t.formb.stationCode),callback:function(e){t.$set(t.formb,"stationCode",e)},expression:"formb.stationCode"}}),n("view",[t._$s(26,"i","select"===t.stepTwoType)?n("u-button",{attrs:{type:"primary",text:"\u626b\u7801\u8f93\u5165\u4ea7\u7ebf",_i:26},on:{click:function(e){return t.onChangeStepTwoType("input")}}}):n("u-button",{attrs:{type:"primary",text:"\u624b\u52a8\u9009\u62e9\u4ea7\u7ebf",_i:27},on:{click:function(e){return t.onChangeStepTwoType("select")}}})],1)]:t._e()],2)],1):t._e()])},a=[]},df04:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={radioGroup:{value:"",disabled:!1,shape:"circle",activeColor:"#2979ff",inactiveColor:"#c8c9cc",name:"",size:18,placement:"row",label:"",labelColor:"#303133",labelSize:14,labelDisabled:!1,iconColor:"#ffffff",iconSize:12,borderBottom:!1,iconPlacement:"left"}}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var a=e.isAbsolute(t),o="/"===i(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!a).join("/"),t||a||(t="."),t&&o&&(t+="/"),(a?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,u=0;u<o;u++)if(i[u]!==a[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){n=o+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e037:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("278c")),a=r(n("7037")),o=r(n("e15c")),s=n("7652");function u(t){if([null,void 0,NaN,!1].includes(t))return t;if("object"!==(0,a.default)(t)&&"function"!==typeof t)return t;var e=o.default.array(t)?[]:{};for(var n in t)t.hasOwnProperty(n)&&(e[n]="object"===(0,a.default)(t[n])?u(t[n]):t[n]);return e}function c(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t=e?/^\d{10}$/.test(null===e||void 0===e?void 0:e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):"string"===typeof e&&e.includes("-")&&!e.includes("T")?new Date(e.replace(/-/g,"/")):new Date(e):new Date;var r={y:t.getFullYear().toString(),m:(t.getMonth()+1).toString().padStart(2,"0"),d:t.getDate().toString().padStart(2,"0"),h:t.getHours().toString().padStart(2,"0"),M:t.getMinutes().toString().padStart(2,"0"),s:t.getSeconds().toString().padStart(2,"0")};for(var a in r){var o=new RegExp("".concat(a,"+")).exec(n)||[],s=(0,i.default)(o,1),u=s[0];if(u){var c="y"===a&&2===u.length?2:0;n=n.replace(u,r[a].slice(c))}}return n}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return t=String(t),"both"==e?t.replace(/^\s+|\s+$/g,""):"left"==e?t.replace(/^\s*/,""):"right"==e?t.replace(/(\s*$)/g,""):"all"==e?t.replace(/\s+/g,""):t}String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var r=t-n.length,i=Math.ceil(r/e.length);while(i>>=1)e+=e,1===i&&(e+=e);return e.slice(0,r)+n});var f={range:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,Math.min(e,Number(n)))},getPx:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.default.number(t)?e?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?e?"".concat(uni.upx2px(parseInt(t)),"px"):Number(uni.upx2px(parseInt(t))):e?"".concat(parseInt(t),"px"):parseInt(t)},sleep:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(e){setTimeout((function(){e()}),t)}))},os:function(){return uni.getSystemInfoSync().platform.toLowerCase()},sys:function(){return uni.getSystemInfoSync()},random:function(t,e){if(t>=0&&e>0&&e>=t){var n=e-t+1;return Math.floor(Math.random()*n+t)}return 0},guid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(n=n||r.length,t)for(var a=0;a<t;a++)i[a]=r[0|Math.random()*n];else{var o;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var s=0;s<36;s++)i[s]||(o=0|16*Math.random(),i[s]=r[19==s?3&o|8:o])}return e?(i.shift(),"u".concat(i.join(""))):i.join("")},$parent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.$parent;while(e){if(!e.$options||e.$options.name===t)return e;e=e.$parent}return!1},addStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(o.default.empty(t)||"object"===(0,a.default)(t)&&"object"===e||"string"===e&&"string"===typeof t)return t;if("object"===e){t=l(t);for(var n=t.split(";"),r={},i=0;i<n.length;i++)if(n[i]){var s=n[i].split(":");r[l(s[0])]=l(s[1])}return r}var u="";for(var c in t){var f=c.replace(/([A-Z])/g,"-$1").toLowerCase();u+="".concat(f,":").concat(t[c],";")}return l(u)},addUnit:function(){var t,e,n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=null===(e=uni)||void 0===e||null===(n=e.$u)||void 0===n||null===(r=n.config)||void 0===r?void 0:r.unit)&&void 0!==t?t:"px";return i=String(i),o.default.number(i)?"".concat(i).concat(a):i},deepClone:u,deepMerge:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=u(e),"object"!==(0,a.default)(e)||"object"!==(0,a.default)(n))return!1;for(var r in n)n.hasOwnProperty(r)&&(r in e?"object"!==(0,a.default)(e[r])||"object"!==(0,a.default)(n[r])?e[r]=n[r]:e[r].concat&&n[r].concat?e[r]=e[r].concat(n[r]):e[r]=t(e[r],n[r]):e[r]=n[r]);return e},error:function(t){0},randomArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.sort((function(){return Math.random()-.5}))},timeFormat:c,timeFrom:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==t&&(t=Number(new Date)),t=parseInt(t),10==t.toString().length&&(t*=1e3);var n=(new Date).getTime()-t;n=parseInt(n/1e3);var r="";switch(!0){case n<300:r="\u521a\u521a";break;case n>=300&&n<3600:r="".concat(parseInt(n/60),"\u5206\u949f\u524d");break;case n>=3600&&n<86400:r="".concat(parseInt(n/3600),"\u5c0f\u65f6\u524d");break;case n>=86400&&n<2592e3:r="".concat(parseInt(n/86400),"\u5929\u524d");break;default:r=!1===e?n>=2592e3&&n<31536e3?"".concat(parseInt(n/2592e3),"\u4e2a\u6708\u524d"):"".concat(parseInt(n/31536e3),"\u5e74\u524d"):c(t,e)}return r},trim:l,queryParams:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=e?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var a=function(e){var r=t[e];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var a=0;a<r.length;a++)i.push("".concat(e,"[").concat(a,"]=").concat(r[a]));break;case"brackets":r.forEach((function(t){i.push("".concat(e,"[]=").concat(t))}));break;case"repeat":r.forEach((function(t){i.push("".concat(e,"=").concat(t))}));break;case"comma":var o="";r.forEach((function(t){o+=(o?",":"")+t})),i.push("".concat(e,"=").concat(o));break;default:r.forEach((function(t){i.push("".concat(e,"[]=").concat(t))}))}else i.push("".concat(e,"=").concat(r))};for(var o in t)a(o);return i.length?r+i.join("&"):""},toast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;uni.showToast({title:String(t),icon:"none",duration:e})},type2icon:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(t)&&(t="success");var n="";switch(t){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return e&&(n+="-fill"),n},priceFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";t="".concat(t).replace(/[^0-9+-Ee.]/g,"");var i=isFinite(+t)?+t:0,a=isFinite(+e)?Math.abs(e):0,o="undefined"===typeof r?",":r,u="undefined"===typeof n?".":n,c="";c=(a?(0,s.round)(i,a)+"":"".concat(Math.round(i))).split(".");var l=/(-?\d+)(\d{3})/;while(l.test(c[0]))c[0]=c[0].replace(l,"$1".concat(o,"$2"));return(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=new Array(a-c[1].length+1).join("0")),c.join(u)},getDuration:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=parseInt(t);return e?/s$/.test(t)?t:"".concat(t,t>30?"ms":"s"):/ms$/.test(t)?n:/s$/.test(t)?n>30?n:1e3*n:n},padZero:function(t){return"00".concat(t).slice(-2)},formValidate:function(t,e){var n=uni.$u.$parent.call(t,"u-form-item"),r=uni.$u.$parent.call(t,"u-form");n&&r&&r.validateField(n.prop,(function(){}),e)},getProperty:function(t,e){if(t){if("string"!==typeof e||""===e)return"";if(-1!==e.indexOf(".")){for(var n=e.split("."),r=t[n[0]]||{},i=1;i<n.length;i++)r&&(r=r[n[i]]);return r}return t[e]}},setProperty:function(t,e,n){if(t){if("string"!==typeof e||""===e);else if(-1!==e.indexOf(".")){var r=e.split(".");(function t(e,n,r){if(1!==n.length)while(n.length>1){var i=n[0];e[i]&&"object"===(0,a.default)(e[i])||(e[i]={});n.shift();t(e[i],n,r)}else e[n[0]]=r})(t,r,n)}else t[e]=n}},page:function(){var t,e,n=getCurrentPages();return"/".concat(null!==(t=null===(e=n[n.length-1])||void 0===e?void 0:e.route)&&void 0!==t?t:"")},pages:function(){var t=getCurrentPages();return t},setConfig:function(t){var e=t.props,n=void 0===e?{}:e,r=t.config,i=void 0===r?{}:r,a=t.color,o=void 0===a?{}:a,s=t.zIndex,u=void 0===s?{}:s,c=uni.$u.deepMerge;uni.$u.config=c(uni.$u.config,i),uni.$u.props=c(uni.$u.props,n),uni.$u.color=c(uni.$u.color,o),uni.$u.zIndex=c(uni.$u.zIndex,u)}};e.default=f},e05a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={button:{hairline:!1,type:"info",size:"normal",shape:"square",plain:!1,disabled:!1,loading:!1,loadingText:"",loadingMode:"spinner",loadingSize:15,openType:"",formType:"",appParameter:"",hoverStopPropagation:!0,lang:"en",sessionFrom:"",sendMessageTitle:"",sendMessagePath:"",sendMessageImg:"",showMessageCard:!1,dataName:"",throttleTime:0,hoverStartTime:0,hoverStayTime:200,text:"",icon:"",iconColor:"",color:""}}},e15c:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7037"));function a(t){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(t)}function o(t){switch((0,i.default)(t)){case"undefined":return!0;case"string":if(0==t.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!t)return!0;break;case"number":if(0===t||isNaN(t))return!0;break;case"object":if(null===t||0===t.length)return!0;for(var e in t)return!1;return!0}return!1}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"function"===typeof t}var c={email:function(t){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t)},mobile:function(t){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(t)},url:function(t){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(t)},date:function(t){return!!t&&(a(t)&&(t=+t),!/Invalid|NaN/.test(new Date(t).toString()))},dateISO:function(t){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:a,digits:function(t){return/^\d+$/.test(t)},idCard:function(t){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(t)},carNo:function(t){return 7===t.length?/^[\u4eac\u6d25\u6caa\u6e1d\u5180\u8c6b\u4e91\u8fbd\u9ed1\u6e58\u7696\u9c81\u65b0\u82cf\u6d59\u8d63\u9102\u6842\u7518\u664b\u8499\u9655\u5409\u95fd\u8d35\u7ca4\u9752\u85cf\u5ddd\u5b81\u743c\u4f7f\u9886A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9\u6302\u5b66\u8b66\u6e2f\u6fb3]{1}$/.test(t):8===t.length&&/^[\u4eac\u6d25\u6caa\u6e1d\u5180\u8c6b\u4e91\u8fbd\u9ed1\u6e58\u7696\u9c81\u65b0\u82cf\u6d59\u8d63\u9102\u6842\u7518\u664b\u8499\u9655\u5409\u95fd\u8d35\u7ca4\u9752\u85cf\u5ddd\u5b81\u743c\u4f7f\u9886A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(t)},amount:function(t){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(t)},chinese:function(t){return/^[\u4e00-\u9fa5]+$/gi.test(t)},letter:function(t){return/^[a-zA-Z]*$/.test(t)},enOrNum:function(t){return/^[0-9a-zA-Z]*$/g.test(t)},contains:function(t,e){return t.indexOf(e)>=0},range:function(t,e){return t>=e[0]&&t<=e[1]},rangeLength:function(t,e){return t.length>=e[0]&&t.length<=e[1]},empty:o,isEmpty:o,jsonString:function(t){if("string"===typeof t)try{var e=JSON.parse(t);return!("object"!==(0,i.default)(e)||!e)}catch(n){return!1}return!1},landline:function(t){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(t)},object:s,array:function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},code:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(e,"}$")).test(t)},func:u,promise:function(t){return s(t)&&u(t.then)&&u(t.catch)},video:function(t){return/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i.test(t)},image:function(t){var e=t.split("?")[0];return/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i.test(e)},regExp:function(t){return t&&"[object RegExp]"===Object.prototype.toString.call(t)},string:function(t){return"string"===typeof t}};e.default=c},e1cd:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default,uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header-page-layout",{ref:"header",attrs:{title:"\u84dd\u7259\u8fde\u63a5","base-background-color":"#f8f8ff","background-color":"#ffffff",_i:0},on:{headerclick:t.onHeaderClick},scopedSlots:t._u([{key:"headerleft",fn:function(t,e,r){return[n("u-icon",{attrs:{name:"arrow-left",_i:"2-"+r}})]}},{key:"footer",fn:function(e,r,i){return[n("view",{staticClass:r._$s("8-"+i,"sc","page-padding page-footer-padding"),attrs:{_i:"8-"+i}},[n("u-button",{attrs:{type:"primary",text:"\u91cd\u65b0\u641c\u7d22",disabled:0===t.myBluetoothes.length,_i:"9-"+i},on:{click:t.research}})],1)]}}])},[n("view",{staticClass:t._$s(3,"sc","bluetooth-connection-page page-padding"),attrs:{_i:3}},t._l(t._$s(4,"f",{forItems:t.myBluetoothes}),(function(e,r,i,a){return n("view",{key:t._$s(4,"f",{forIndex:i,key:e.deviceId}),staticClass:t._$s("4-"+a,"sc","bluetooth-btn"),attrs:{_i:"4-"+a},on:{click:function(n){return t.onConnect(e.deviceId)}}},[n("view",{staticClass:t._$s("5-"+a,"sc","blue-btn-id"),attrs:{_i:"5-"+a}},[t._v(t._$s("5-"+a,"t0-0",t._s(e.deviceId)))]),n("view",{staticClass:t._$s("6-"+a,"sc","blue-btn-name"),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.name)))])])})),0)])},a=[]},e253:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={sticky:{offsetTop:0,customNavHeight:0,disabled:!1,bgColor:"transparent",zIndex:"",index:""}}},e2a2:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a47e")),a={name:"hostSettingPage",components:{HeaderPageLayout:i.default},data:function(){return{form:{host:""},rules:{host:{trigger:["blur"],required:!0,message:"\u8bf7\u8f93\u5165\u57df\u540d\uff01"}}}},methods:{onHeaderClick:function(t){"left"===t&&this.goBack()},goBack:function(){uni.redirectTo({url:this.$config.path.login})},onSave:function(){var t=this;this.$refs.form.validate().then((function(e){var n=t.form.host;"/"===n.substr(n.length-1)&&(n=n.substr(0,n.length-1)),t.$store.commit("system/setdefaultHost",n),uni.showToast({icon:"success",title:"\u4fdd\u5b58\u6210\u529f"}),t.goBack()})).catch((function(t){}))}},onReady:function(){var t=this.$store.getters["system/getdefaultHost"];t||(t=this.$config.ajax.host.default),this.form.host=t}};e.default=a},e3bc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6d9d"),i={props:{placeInfo:{type:Object,default:function(){}}},data:function(){return{options:[{text:"\u5220\u9664",style:{backgroundColor:"#F18202"}}],materialModalData:[]}},methods:{parseDic:r.parseDic}};e.default=i},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e3e5:function(t,e,n){"use strict";n.r(e);var r=n("1c36"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},e424:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uSwipeAction:n("b6de").default,uSwipeActionItem:n("a808").default,uIcon:n("5a09").default,uBadge:n("6c35").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.materialData.length>0)?n("u-swipe-action",{attrs:{_i:0}},t._l(t._$s(1,"f",{forItems:t.materialData}),(function(e,r,i,a){return n("u-swipe-action-item",{key:t._$s(1,"f",{forIndex:i,key:"material-list-item-"+r}),attrs:{options:t.options,index:r,name:e.materialId,_i:"1-"+a},on:{click:t.deleteItem}},[n("view",{staticClass:t._$s("2-"+a,"sc","material-item-group"),attrs:{_i:"2-"+a}},[n("view",{staticClass:t._$s("3-"+a,"sc","material-list-item"),attrs:{_i:"3-"+a}},[n("view",{staticClass:t._$s("4-"+a,"sc","close-btn"),attrs:{_i:"4-"+a}},[n("view",{staticClass:t._$s("5-"+a,"sc","icon-layer"),attrs:{_i:"5-"+a}},[n("u-icon",{attrs:{name:"close",color:"#ffffff",size:"24",_i:"6-"+a}})],1)]),n("view",{staticClass:t._$s("7-"+a,"sc","badge-box"),attrs:{_i:"7-"+a}},[n("u-badge",{attrs:{value:r+1,"bg-color":"#F18201",_i:"8-"+a}})],1),n("view",{staticClass:t._$s("9-"+a,"sc","item-row"),attrs:{_i:"9-"+a}},[n("view",{staticClass:t._$s("10-"+a,"sc","label"),attrs:{_i:"10-"+a}}),n("view",{staticClass:t._$s("11-"+a,"sc","content auto-wrap"),attrs:{_i:"11-"+a}},[t._v(t._$s("11-"+a,"t0-0",t._s(e.materialId)))])]),n("view",{staticClass:t._$s("12-"+a,"sc","item-row"),attrs:{_i:"12-"+a}},[n("view",{staticClass:t._$s("13-"+a,"sc","label"),attrs:{_i:"13-"+a}}),n("view",{staticClass:t._$s("14-"+a,"sc","content auto-wrap"),attrs:{_i:"14-"+a}},[t._v(t._$s("14-"+a,"t0-0",t._s(e.materialName)))])]),n("view",{staticClass:t._$s("15-"+a,"sc","item-row"),attrs:{_i:"15-"+a}},[n("view",{staticClass:t._$s("16-"+a,"sc","label"),attrs:{_i:"16-"+a}}),n("view",{staticClass:t._$s("17-"+a,"sc","content auto-wrap"),attrs:{_i:"17-"+a}},[t._v(t._$s("17-"+a,"t0-0",t._s(e.materialNo)))])]),n("view",{staticClass:t._$s("18-"+a,"sc","item-row"),attrs:{_i:"18-"+a}},[n("view",{staticClass:t._$s("19-"+a,"sc","label"),attrs:{_i:"19-"+a}}),n("view",{staticClass:t._$s("20-"+a,"sc","content auto-wrap"),attrs:{_i:"20-"+a}},[t._v(t._$s("20-"+a,"t0-0",t._s(e.supplierCode)))])]),n("view",{staticClass:t._$s("21-"+a,"sc","item-row"),attrs:{_i:"21-"+a}},[n("view",{staticClass:t._$s("22-"+a,"sc","label"),attrs:{_i:"22-"+a}}),n("view",{staticClass:t._$s("23-"+a,"sc","content auto-wrap"),attrs:{_i:"23-"+a}},[t._v(t._$s("23-"+a,"t0-0",t._s(t.parseDic(t.$store,"material_modal",e.materialModel))))])])])])])})),1):t._e()},a=[]},e464:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={badge:{isDot:!1,value:"",show:!0,max:999,type:"error",showZero:!1,bgColor:null,color:null,shape:"circle",numberType:"overflow",offset:function(){return[]},inverted:!1,absolute:!1}}},e50d:function(t,e,n){var r=n("7037")["default"];t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},e551:function(t,e,n){"use strict";n.r(e);var r=n("28ec"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},e694:function(t,e,n){"use strict";n.r(e);var r=n("6222"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},e734:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{ref:"u-swipe-action-item",staticClass:t._$s(0,"sc","u-swipe-action-item"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","u-swipe-action-item__right"),attrs:{_i:1}},[t._t("button",t._l(t._$s(3,"f",{forItems:t.options}),(function(e,r,i,a){return n("view",{key:t._$s(3,"f",{forIndex:i,key:r}),ref:t._$s("3-"+a,"ref","u-swipe-action-item__right__button-"+r),refInFor:!0,staticClass:t._$s("3-"+a,"sc","u-swipe-action-item__right__button"),style:t._$s("3-"+a,"s",[{alignItems:e.style&&e.style.borderRadius?"center":"stretch"}]),attrs:{_i:"3-"+a},on:{click:function(n){return t.buttonClickHandler(e,r)}}},[n("view",{staticClass:t._$s("4-"+a,"sc","u-swipe-action-item__right__button__wrapper"),style:t._$s("4-"+a,"s",[{backgroundColor:e.style&&e.style.backgroundColor?e.style.backgroundColor:"#C7C6CD",borderRadius:e.style&&e.style.borderRadius?e.style.borderRadius:"0",padding:e.style&&e.style.borderRadius?"0":"0 15px"},e.style]),attrs:{_i:"4-"+a}},[t._$s("5-"+a,"i",e.icon)?n("u-icon",{attrs:{name:e.icon,color:e.style&&e.style.color?e.style.color:"#ffffff",size:e.iconSize?t.$u.addUnit(e.iconSize):e.style&&e.style.fontSize?1.2*t.$u.getPx(e.style.fontSize):17,customStyle:{marginRight:e.text?"2px":0},_i:"5-"+a}}):t._e(),t._$s("6-"+a,"i",e.text)?n("text",{staticClass:t._$s("6-"+a,"sc","u-swipe-action-item__right__button__wrapper__text u-line-1"),style:t._$s("6-"+a,"s",[{color:e.style&&e.style.color?e.style.color:"#ffffff",fontSize:e.style&&e.style.fontSize?e.style.fontSize:"16px",lineHeight:e.style&&e.style.fontSize?e.style.fontSize:"16px"}]),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.text)))]):t._e()],1)])})),{_i:2})],2),n("view",{wxsProps:{"change:size":"size","change:status":"status"},staticClass:t._$s(7,"sc","u-swipe-action-item__content"),attrs:{status:t._$s(7,"change:status",t.status),size:t._$s(7,"change:size",t.size),_i:7},on:{}},[t._t("default",null,{_i:8})],2)])},a=[]},e77b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={picker:{show:!1,showToolbar:!0,title:"",columns:function(){return[]},loading:!1,itemHeight:44,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u5b9a",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,keyName:"text",closeOnClickOverlay:!1,defaultIndex:function(){return[]},immediateChange:!1}}},e7c0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={radio:{name:"",shape:"",disabled:"",labelDisabled:"",activeColor:"",inactiveColor:"",iconSize:"",labelSize:"",label:"",labelColor:"",size:"",iconColor:"",placement:""}}},e81d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{length:{type:[String,Number],default:uni.$u.props.swiperIndicator.length},current:{type:[String,Number],default:uni.$u.props.swiperIndicator.current},indicatorActiveColor:{type:String,default:uni.$u.props.swiperIndicator.indicatorActiveColor},indicatorInactiveColor:{type:String,default:uni.$u.props.swiperIndicator.indicatorInactiveColor},indicatorMode:{type:String,default:uni.$u.props.swiperIndicator.indicatorMode}}};e.default=r},ea05:function(t,e,n){"use strict";n.r(e);var r=n("de61"),i=n("147a");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"49c36e9c",null,!1,r["a"],void 0);e["default"]=s.exports},eac9:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uSwipeAction:n("b6de").default,uSwipeActionItem:n("a808").default,uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("u-swipe-action",{attrs:{_i:0}},[n("u-swipe-action-item",{attrs:{options:t.options,name:t.sortInfo.materialNo,_i:1},on:{click:t.deleteItem}},[n("view",{staticClass:t._$s(2,"sc","material-item-group"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","material-list-item"),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","close-btn"),attrs:{_i:4}},[n("view",{staticClass:t._$s(5,"sc","icon-layer"),attrs:{_i:5}},[n("u-icon",{attrs:{name:"close",color:"#ffffff",size:"24",_i:6}})],1)]),n("view",{staticClass:t._$s(7,"sc","item-row"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","label-content"),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","label"),attrs:{_i:9}}),n("view",{staticClass:t._$s(10,"sc","content"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.sortInfo.materialNo)))])]),n("view",{staticClass:t._$s(11,"sc","label-content"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","label"),attrs:{_i:12}}),n("view",{staticClass:t._$s(13,"sc","content"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.sortInfo.materialName)))])])]),n("view",{staticClass:t._$s(14,"sc","item-row"),attrs:{_i:14}},[n("view",{staticClass:t._$s(15,"sc","label-content"),attrs:{_i:15}},[n("view",{staticClass:t._$s(16,"sc","label"),attrs:{_i:16}}),n("view",{staticClass:t._$s(17,"sc","content"),attrs:{_i:17}},[t._v(t._$s(17,"t0-0",t._s(t.sortInfo.sortQuantity)))])]),n("view",{staticClass:t._$s(18,"sc","label-content"),attrs:{_i:18}},[n("view",{staticClass:t._$s(19,"sc","label"),attrs:{_i:19}}),n("view",{staticClass:t._$s(20,"sc","content"),attrs:{_i:20}},[t._v(t._$s(20,"t0-0",t._s(t.sortInfo.actualQuantity)))])])]),n("view",{staticClass:t._$s(21,"sc","item-row-sign"),attrs:{_i:21}},[n("view",{staticClass:t._$s(22,"sc","label-content"),attrs:{_i:22}},[n("view",{staticClass:t._$s(23,"sc","label"),attrs:{_i:23}}),n("view",{staticClass:t._$s(24,"sc","content"),attrs:{_i:24}},[t._v(t._$s(24,"t0-0",t._s(t.sortInfo.orderNo)))])])]),n("view",{staticClass:t._$s(25,"sc","item-row-sign"),attrs:{_i:25}},[n("view",{staticClass:t._$s(26,"sc","label-content"),attrs:{_i:26}},[n("view",{staticClass:t._$s(27,"sc","label"),attrs:{_i:27}}),n("view",{staticClass:t._$s(28,"sc","content"),attrs:{_i:28}},[t._v(t._$s(28,"t0-0",t._s(t.sortInfo.sortOrderNo)))])])])])])])],1)},a=[]},eaca:function(t,e,n){"use strict";n.r(e);var r=n("db6d"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},eb69:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"pageheaderCompontent",emits:["click"],props:{color:{type:String,default:"#212121"},gradient:{type:Boolean,default:!1},gradientValue:{type:String,default:"default"},backgroundColor:{type:String,default:""}},methods:{onAsideClick:function(t){this.$emit("click",t)}}};e.default=r},eb6e:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a47e")),a=r(n("733c")),o=n("6d9d"),s={name:"defaultHeaderPageCompontent",emits:["back"],components:{HeaderPageLayout:i.default,EasyPicker:a.default},props:{title:{type:String,default:"Title"},backCustom:{type:Boolean,default:!1}},data:function(){return{actionVisible:!1,actionList:["\u5237\u65b0","\u9996\u9875","\u9000\u51fa"]}},methods:{onHeaderClick:function(t){"left"===t?!0===this.backCustom?this.$emit("back"):uni.navigateBack({delta:1}):this.actionVisible=!0},onActionClick:function(t){"\u5237\u65b0"===t?uni.navigateBack({delta:0}):"\u9996\u9875"===t?uni.redirectTo({url:this.$config.path.home}):"\u9000\u51fa"===t?uni.redirectTo({url:this.$config.path.login}):"\u65b0\u7248\u4e0b\u8f7d"===t&&(0,o.downloadApk)(this.$config)},getBodyHeight:function(){var t=null;return this.$refs.page&&(t=this.$refs.page.getBodyHeight()),t}},created:function(){this.actionList.push("\u65b0\u7248\u4e0b\u8f7d")}};e.default=s},ee3f:function(t,e,n){"use strict";n.r(e);var r=n("0901"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},eed4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={collapse:{value:null,accordion:!1,border:!0}}},ef74:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={search:{shape:"round",bgColor:"#f2f2f2",placeholder:"\u8bf7\u8f93\u5165\u5173\u952e\u5b57",clearabled:!0,focus:!1,showAction:!0,actionStyle:function(){return{}},actionText:"\u641c\u7d22",inputAlign:"left",inputStyle:function(){return{}},disabled:!1,borderColor:"transparent",searchIconColor:"#909399",searchIconSize:22,color:"#606266",placeholderColor:"#909399",searchIcon:"search",margin:"0",animation:!1,value:"",maxlength:"-1",height:32,label:null}}},efda:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swipeAction:{autoClose:!0}}},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,i,a,o,s,u,c){var l,f="function"===typeof t?t.options:t;if(u){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in u)d.call(u,p)&&!d.call(f.components,p)&&(f.components[p]=u[p])}if(c&&("function"===typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var h=f.render;f.render=function(t,e){return l.call(e),h(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},f13b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={noticeBar:{text:function(){return[]},direction:"row",step:!1,icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",speed:80,fontSize:14,duration:2e3,disableTouch:!0,url:"",linkType:"navigateTo"}}},f18c:function(t,e,n){"use strict";n.r(e);var r=n("4958"),i=n("b411");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"ef32e44a",null,!1,r["a"],void 0);e["default"]=s.exports},f21e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={v:"2.0.34",version:"2.0.34",type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc"},unit:"px"};e.default=r},f35c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{bgColor:{type:String,default:uni.$u.props.statusBar.bgColor}}};e.default=r},f3b7:function(t,e,n){"use strict";n.r(e);var r=n("2f6b"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},f3d4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={divider:{dashed:!1,hairline:!0,dot:!1,textPosition:"center",text:"",textSize:14,textColor:"#909399",lineColor:"#dcdfe6"}}},f4a9:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uIcon:n("5a09").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-input"),class:t._$s(0,"c",t.inputClass),style:t._$s(0,"s",[t.wrapperStyle]),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","u-input__content"),attrs:{_i:1}},[t._$s(2,"i",t.prefixIcon||t.$scopedSlots.prefix)?n("view",{staticClass:t._$s(2,"sc","u-input__content__prefix-icon"),attrs:{_i:2}},[t._$s(3,"i",t.prefixIcon)?n("u-icon",{attrs:{name:t.prefixIcon,size:"18",customStyle:t.prefixIconStyle,_i:3}}):t._t("prefix",null,{_i:4})],2):t._e(),n("view",{staticClass:t._$s(5,"sc","u-input__content__field-wrapper"),attrs:{_i:5},on:{click:t.clickHandler}},[n("input",{staticClass:t._$s(6,"sc","u-input__content__field-wrapper__field"),style:t._$s(6,"s",[t.inputStyle]),attrs:{type:t._$s(6,"a-type",t.type),focus:t._$s(6,"a-focus",t.focus),cursor:t._$s(6,"a-cursor",t.cursor),value:t._$s(6,"a-value",t.innerValue),"auto-blur":t._$s(6,"a-auto-blur",t.autoBlur),disabled:t._$s(6,"a-disabled",t.disabled||t.readonly),maxlength:t._$s(6,"a-maxlength",t.maxlength),placeholder:t._$s(6,"a-placeholder",t.placeholder),"placeholder-style":t._$s(6,"a-placeholder-style",t.placeholderStyle),"placeholder-class":t._$s(6,"a-placeholder-class",t.placeholderClass),"confirm-type":t._$s(6,"a-confirm-type",t.confirmType),"confirm-hold":t._$s(6,"a-confirm-hold",t.confirmHold),"hold-keyboard":t._$s(6,"a-hold-keyboard",t.holdKeyboard),"cursor-spacing":t._$s(6,"a-cursor-spacing",t.cursorSpacing),"adjust-position":t._$s(6,"a-adjust-position",t.adjustPosition),"selection-end":t._$s(6,"a-selection-end",t.selectionEnd),"selection-start":t._$s(6,"a-selection-start",t.selectionStart),password:t._$s(6,"a-password",t.password||"password"===t.type||void 0),ignoreCompositionEvent:t._$s(6,"a-ignoreCompositionEvent",t.ignoreCompositionEvent),_i:6},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,confirm:t.onConfirm,keyboardheightchange:t.onkeyboardheightchange}})]),t._$s(7,"i",t.isShowClear)?n("view",{staticClass:t._$s(7,"sc","u-input__content__clear"),attrs:{_i:7},on:{click:t.onClear}},[n("u-icon",{attrs:{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px",_i:8}})],1):t._e(),t._$s(9,"i",t.suffixIcon||t.$scopedSlots.suffix)?n("view",{staticClass:t._$s(9,"sc","u-input__content__subfix-icon"),attrs:{_i:9}},[t._$s(10,"i",t.suffixIcon)?n("u-icon",{attrs:{name:t.suffixIcon,size:"18",customStyle:t.suffixIconStyle,_i:10}}):t._t("suffix",null,{_i:11})],2):t._e()])])},a=[]},f5a7:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("c591")),s=r(n("84c4")),u=r(n("bfc4")),c=r(n("67a6")),l=r(n("a8df")),f=n("6d9d"),d=n("16f3"),p=n("7428"),h=n("3e34"),v=null,m={name:"receiveInPage",components:{DefaultHeaderPageLayout:o.default,ActionUserRow:s.default,ScanInputFormItem:u.default,placeInfo:l.default,selectItem:c.default},data:function(){return{pageBodyHeight:0,containter:null,form:{containerNo:"",areaNo:"",placeNo:""},msg:{containter:""},msgType:{containter:"info"},containerInfo:{},areaData:[]}},computed:{selectDisabled:function(){var t,e;return Boolean(null===(t=this.containerInfo)||void 0===t||null===(e=t.placeInfo)||void 0===e?void 0:e.placeNo)},abled:function(){return Boolean(this.containerInfo.containerNo)&&Boolean(this.form.placeNo)},btnName:function(){var t,e;return Boolean(null===(t=this.containerInfo)||void 0===t||null===(e=t.placeInfo)||void 0===e?void 0:e.placeNo)?"\u89e3\u7ed1":"\u7ed1\u5b9a"}},watch:{"form.containerNo":{handler:function(t,e){this.containerInfo={},this.form.areaNo="",this.form.placeNo=""}},"form.areaNo":{handler:function(t,e){var n,r;this.form.placeNo="",this.placeList=[],this.getPalceList({areaCode:t}),Boolean(null===(n=this.containerInfo)||void 0===n||null===(r=n.placeInfo)||void 0===r?void 0:r.placeNo)&&this.$set(this.form,"placeNo",this.containerInfo.placeInfo.placeNo)}}},methods:{onSearchContainter:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a,o,s,u;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.form.containerNo,Boolean(r)){n.next=5;break}return e.msgType.containter="error",e.msg.containter="\u8bf7\u8f93\u5165\u6258\u76d8\u53f7\uff01",n.abrupt("return",!1);case 5:return n.prev=5,n.next=8,(0,p.getContainerPlaceInfo)({containerNo:r});case 8:s=n.sent,u=s.result,e.containerInfo=u,Boolean(null===(a=e.containerInfo)||void 0===a||null===(o=a.placeInfo)||void 0===o?void 0:o.placeNo)&&(e.getAreaList(),e.$nextTick((function(){var t,n;e.$set(e.form,"areaNo",null===(t=e.containerInfo)||void 0===t||null===(n=t.placeInfo)||void 0===n?void 0:n.areaCode)}))),n.next=17;break;case 14:n.prev=14,n.t0=n["catch"](5),t("log",n.t0," at pages/containerHandle/index.vue:146");case 17:case"end":return n.stop()}}),n,null,[[5,14]])})))()},onClearContainter:function(){this.form={containterNo:"",areaNo:"",placeNo:""}},getAreaList:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,h.getAreaInfo)();case 3:r=n.sent,a=r.result,e.areaData=a.filter((function(t){return"LTK"!=t.areaNo})),n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t("log",n.t0," at pages/containerHandle/index.vue:167");case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))()},onSubmit:function(){var e=this;return(0,a.default)(i.default.mark((function n(){var r,o,s,u;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!Boolean(null===(r=e.containerInfo)||void 0===r||null===(o=r.placeInfo)||void 0===o?void 0:o.placeNo)){n.next=14;break}return e.form.type=2,n.prev=2,n.next=5,(0,p.containerHandle)(e.form);case 5:(0,f.$alert)("\u6258\u76d8\u89e3\u7ed1\u6210\u529f\uff01"),e.onClearContainter(),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](2),t("log",n.t0," at pages/containerHandle/index.vue:181");case 12:n.next=26;break;case 14:return e.form.type=1,n.prev=15,n.next=18,(0,p.getContainerPlaceByPlace)({placeNo:e.form.placeNo});case 18:s=n.sent,u=s.result,Boolean(u.placeNo)&&uni.showModal({title:"\u7ed1\u5b9a\u786e\u8ba4",content:"\u9009\u5b9a\u5e93\u4f4d\u5df2\u5b58\u5728\u6258\u76d8\u7ed1\u5b9a\u5173\u7cfb\uff0c\u786e\u8ba4\u8986\u76d6\u6b64\u5173\u7cfb\u8fdb\u884c\u7ed1\u5b9a\u5417\uff1f",showCancel:!0,confirmText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",success:function(){var n=(0,a.default)(i.default.mark((function n(r){var a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=r.confirm,r.cancel,!a){n.next=12;break}return n.prev=2,n.next=5,(0,p.containerHandle)(e.form);case 5:(0,f.$alert)("\u6258\u76d8\u7ed1\u5b9a\u6210\u529f\uff01"),e.onClearContainter(),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](2),t("log",n.t0," at pages/containerHandle/index.vue:210");case 12:t("log",e.form," at pages/containerHandle/index.vue:214");case 13:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(t){return n.apply(this,arguments)}}()}),n.next=26;break;case 23:n.prev=23,n.t1=n["catch"](15),t("log",n.t1," at pages/containerHandle/index.vue:220");case 26:case"end":return n.stop()}}),n,null,[[2,9],[15,23]])})))()},startInitInterval:function(t){var e=this;v=setInterval((function(){e.pageBodyHeight?(e.clearInitInterval(),t&&t()):e.pageBodyHeight=e.$refs.page.getBodyHeight()}),200)},clearInitInterval:function(){try{clearInterval(v),v=null}catch(t){}}},mixins:[d.palceList],onReady:function(){var t=this;this.startInitInterval((0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getAreaList(),t.ContainerType=(0,f.getDicList)(t.$store,"container_type").sysDictDatas;case 2:case"end":return e.stop()}}),e)}))))},onUnload:function(){this.clearInitInterval()}};e.default=m}).call(this,n("0de9")["default"])},f6ac:function(t,e,n){"use strict";n.r(e);var r=n("0f49"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},f749:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{openType:String},methods:{onGetUserInfo:function(t){this.$emit("getuserinfo",t.detail)},onContact:function(t){this.$emit("contact",t.detail)},onGetPhoneNumber:function(t){this.$emit("getphonenumber",t.detail)},onError:function(t){this.$emit("error",t.detail)},onLaunchApp:function(t){this.$emit("launchapp",t.detail)},onOpenSetting:function(t){this.$emit("opensetting",t.detail)}}};e.default=r},f85d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={checkboxGroup:{name:"",value:function(){return[]},shape:"square",disabled:!1,activeColor:"#2979ff",inactiveColor:"#c8c9cc",size:18,placement:"row",labelSize:14,labelColor:"#303133",labelDisabled:!1,iconColor:"#ffffff",iconSize:12,iconPlacement:"left",borderBottom:!1}}},f98d:function(t,e,n){"use strict";n.r(e);var r=n("c430"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},fa03:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uForm:n("73e9").default,uFormItem:n("354d").default,uInput:n("9617").default,uIcon:n("5a09").default,uButton:n("c91d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("full-page-layout",{attrs:{safety:!1,_i:0}},[n("view",{staticClass:t._$s(1,"sc","login-page"),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","login-content"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","content-row1"),attrs:{_i:3}},[n("image",{staticClass:t._$s(4,"sc","logo-img"),attrs:{_i:4}})]),n("view",{staticClass:t._$s(5,"sc","content-row2"),attrs:{_i:5}}),n("view",{staticClass:t._$s(6,"sc","content-row3"),attrs:{_i:6}}),n("view",{staticClass:t._$s(7,"sc","form-view"),attrs:{_i:7}},[n("u-form",{ref:"form",attrs:{model:t.form,rules:t.rules,labelWidth:0,_i:8}},[n("u-form-item",{attrs:{prop:"account",_i:9}},[n("u-input",{attrs:{"prefix-icon":"account",clearable:!0,_i:10},scopedSlots:t._u([t._$s(11,"i",t.userVisited.length>1)?{key:"suffix",fn:function(e,r,i){return[n("view",{attrs:{_i:"12-"+i},on:{click:function(e){return e.stopPropagation(),t.onOpenUserPicker(e)}}},[n("u-icon",{attrs:{name:"arrow-down",_i:"13-"+i}})],1)]}}:null],null,!0),model:{value:t._$s(10,"v-model",t.form.account),callback:function(e){t.$set(t.form,"account","string"===typeof e?e.trim():e)},expression:"form.account"}})],1),n("u-form-item",{attrs:{prop:"password",_i:14}},[n("input",{}),n("u-input",{key:t._$s(16,"a-key",t.pwdKey),attrs:{password:!t.pwdVisible,"prefix-icon":"lock",clearable:!0,_i:16},on:{confirm:t.onLogin},scopedSlots:t._u([{key:"suffix",fn:function(e,r,i){return[n("view",{attrs:{_i:"18-"+i},on:{click:function(e){return e.stopPropagation(),t.onChangePwdVisible(e)}}},[n("u-icon",{attrs:{name:t.pwdVisible?"eye-fill":"eye-off",_i:"19-"+i}})],1)]}}]),model:{value:t._$s(16,"v-model",t.form.password),callback:function(e){t.$set(t.form,"password","string"===typeof e?e.trim():e)},expression:"form.password"}})],1)],1),n("view",{staticClass:t._$s(20,"sc","login-btn-view"),attrs:{_i:20}},[n("u-button",{attrs:{type:"primary",text:"\u767b \u5f55",_i:21},on:{click:t.onLogin}})],1)],1)]),t._$s(22,"i",t.version)?n("view",{staticClass:t._$s(22,"sc","login-footer"),attrs:{_i:22}},[t._v(t._$s(22,"t0-0",t._s(t.version)))]):t._e()]),n("view",{staticClass:t._$s(23,"sc","setting-target"),style:t._$s(23,"s",{top:t.safetyTop+"px"}),attrs:{_i:23},on:{click:function(e){return e.stopPropagation(),t.onOpenSettingPicker(e)}}},[n("u-icon",{attrs:{name:"setting-fill",_i:24}})],1),n("easy-picker",{attrs:{visible:t.userPickerVisible,list:t.userVisited,"value-field":"account","label-field":"account",_i:25},on:{"update:visible":function(e){t.userPickerVisible=e},select:t.onChangeInputUser}}),n("easy-picker",{attrs:{visible:t.settingPickerVisible,list:t.settingList,_i:26},on:{"update:visible":function(e){t.settingPickerVisible=e},select:t.onGoSettingPage}})],1)},a=[]},fa0e:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("8ae1")),a={name:"u-badge",mixins:[uni.$u.mpMixin,i.default,uni.$u.mixin],computed:{boxStyle:function(){return{}},badgeStyle:function(){var t={};if(this.color&&(t.color=this.color),this.bgColor&&!this.inverted&&(t.backgroundColor=this.bgColor),this.absolute&&(t.position="absolute",this.offset.length)){var e=this.offset[0],n=this.offset[1]||e;t.top=uni.$u.addUnit(e),t.right=uni.$u.addUnit(n)}return t},showValue:function(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}}};e.default=a},fa14:function(t,e,n){"use strict";n.r(e);var r=n("687f"),i=n("54bd");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},fb30:function(t,e,n){"use strict";n.r(e);var r=n("080b"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},fbce:function(t,e,n){"use strict";n.r(e);var r=n("1b49"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},fbd1:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("5869")),a={navbar:{safeAreaInsetTop:!0,placeholder:!1,fixed:!0,border:!1,leftIcon:"arrow-left",leftText:"",rightText:"",rightIcon:"",title:"",bgColor:"#ffffff",titleWidth:"400rpx",height:"44px",leftIconSize:20,leftIconColor:i.default.mainColor,autoBack:!1,titleStyle:""}};e.default=a},fbfa:function(t,e,n){"use strict";n.r(e);var r=n("7bc7"),i=n("fb30");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"10a89718",null,!1,r["a"],void 0);e["default"]=s.exports},fc44:function(t,e,n){"use strict";n.r(e);var r=n("06f1"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},fce5:function(t,e,n){"use strict";n.r(e);var r=n("7a74"),i=n("246a");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"e673f626",null,!1,r["a"],void 0);e["default"]=s.exports},ffe8:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","forma-item"),attrs:{_i:0}},[n("scan-input-form-item",{staticClass:t._$s(1,"sc","forma-item"),attrs:{placeholder:"\u8bf7\u9009\u62e9",clearable:!1,hasScan:!1,hasSearch:!1,label:"\u9009\u62e9\u70b9\u4f4d",_i:1},nativeOn:{click:function(e){t.visible=!0}},model:{value:t._$s(1,"v-model",t.station),callback:function(e){t.station=e},expression:"station"}}),n("EasyPicker",{attrs:{visible:t.visible,list:t.exceptePlace,labelField:"placeNo",valueField:"placeNo",_i:2},on:{"update:visible":function(e){t.visible=e},select:t.getSiteVal}})],1)},i=[]}},[["4702","app-config"]]]); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-view.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-view.js new file mode 100644 index 0000000..794f66a --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/app-view.js @@ -0,0 +1 @@ +(function(t){var e={};function a(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./",a(a.s="4702")})({"00bf":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("10-"+n,"sc"),attrs:{_i:"10-"+n}},[[a("div",{staticClass:i._$g("12-"+n,"sc"),attrs:{_i:"12-"+n}},[a("u-button",{attrs:{_i:"13-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g("14-"+n,"sc"),attrs:{_i:"14-"+n}},[a("u-button",{attrs:{_i:"15-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("scan-input-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(4,"v-model"),callback:function(){},expression:"form.containterCode"}}),a("scan-input-form-item",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(5,"v-model"),callback:function(){},expression:"form.materialNo"}}),a("scan-input-form-item",{staticClass:t._$g(6,"sc"),attrs:{_i:6},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(6,"v-model"),callback:function(){},expression:"form.site"}}),a("EasyPicker",{attrs:{_i:7},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}}),a("materialList",{attrs:{_i:8},on:{delContainer:function(e){return t.$handleViewEvent(e)}}})],1)],1):t._e()],1)},r=[]},"0289":function(t,e,a){"use strict";a.r(e);var i=a("3e3a"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"03a1":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{directives:[{name:"show",rawName:"v-show",value:t._$g(0,"v-show"),expression:"_$g(0,'v-show')"}],staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._v("\u4fe1\u606f\u63d0\u793a")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[t._v(t._$g(4,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._v("\u7269\u6599\u7f16\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[t._v(t._$g(7,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(8,"sc"),attrs:{_i:8}},[a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[t._v("\u7269\u6599\u4ef6\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}},[t._v(t._$g(10,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[a("uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12}},[t._v("\u7269\u6599\u540d\u79f0")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14}},[a("uni-view",{staticClass:t._$g(15,"sc"),attrs:{_i:15}},[t._v("\u4f9b\u5e94\u5546")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(16,"sc"),attrs:{_i:16}},[t._v(t._$g(16,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(17,"sc"),attrs:{_i:17}},[a("uni-view",{staticClass:t._$g(18,"sc"),attrs:{_i:18}},[t._v("\u4ef6\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(19,"sc"),attrs:{_i:19}},[t._v(t._$g(19,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(20,"sc"),attrs:{_i:20}},[a("uni-view",{staticClass:t._$g(21,"sc"),attrs:{_i:21}},[t._v("\u89c4\u683c")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(22,"sc"),attrs:{_i:22}},[t._v(t._$g(22,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(23,"sc"),attrs:{_i:23}},[a("uni-view",{staticClass:t._$g(24,"sc"),attrs:{_i:24}},[t._v("\u673a\u578b")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(25,"sc"),attrs:{_i:25}},[t._v(t._$g(25,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(26,"sc"),attrs:{_i:26}},[a("uni-view",{staticClass:t._$g(27,"sc"),attrs:{_i:27}},[t._v("\u6279\u6b21")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(28,"sc"),attrs:{_i:28}},[t._v(t._$g(28,"t0-0"))])],1)],1)],1)},n=[]},"03d8":function(t,e,a){var i=a("28c8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("495599f2",i,!0,{sourceMap:!1,shadowMode:!1})},"045d":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("full-page-layout",{attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("page-header",{attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e)}},scopedSlots:t._u([t._$g(4,"i")?{key:"left",fn:function(e,a,i){return[t._t("headerleft",null,{_i:"5-"+i})]}}:null,t._$g(6,"i")?{key:"right",fn:function(e,a,i){return[t._t("headerright",null,{_i:"7-"+i})]}}:null],null,!0)},[t._v(t._$g(3,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(8,"sc"),style:t._$g(8,"s"),attrs:{_i:8}},[t._t("default",null,{_i:9})],2),a("uni-view",{staticClass:t._$g(10,"sc"),style:t._$g(10,"s"),attrs:{_i:10}},[t._t("footer",null,{_i:11})],2)],1)],1)},n=[]},"054d":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.home-page[data-v-2fd500a1]{height:100%;background-color:#f0f8ff;position:relative}.home-bk-layer[data-v-2fd500a1],\r\n.home-float-layer[data-v-2fd500a1]{position:absolute;top:0;left:0;width:100%}.home-bk-layer[data-v-2fd500a1]{height:240rpx;border-radius:0 0 80rpx 80rpx;background-image:linear-gradient(90deg,gold,#f18201);z-index:1}.home-float-layer[data-v-2fd500a1]{height:100%;overflow:hidden;z-index:2}.home-page-containter[data-v-2fd500a1]{display:flex;flex-direction:column;overflow:hidden}.home-page-containter .user-view-box[data-v-2fd500a1]{flex-shrink:0;padding-bottom:30rpx}.home-page-containter .blocks-view-box[data-v-2fd500a1]{flex-grow:1;overflow:auto}.home-card[data-v-2fd500a1]{background-color:#fff;width:95%;border-radius:10rpx;margin:0 auto;box-sizing:border-box}.pic-block[data-v-2fd500a1]{margin-bottom:30rpx}.user-card[data-v-2fd500a1]{display:flex;padding:30rpx 0}.user-card .left-view[data-v-2fd500a1]{width:180rpx;flex-shrink:0;display:flex;align-items:center;justify-content:center}.user-card .left-view .user-circle[data-v-2fd500a1]{width:120rpx;height:120rpx;border-radius:50%;background-image:linear-gradient(90deg,gold,#f18201);display:flex;align-items:center;justify-content:center;font-size:90rpx;color:#fff}.user-card .right-view[data-v-2fd500a1]{flex-grow:1;padding-right:10rpx;display:flex;justify-content:center;flex-direction:column}.user-card .right-view .text-row1[data-v-2fd500a1]{font-size:36rpx;font-weight:700;line-height:1.3}.user-card .right-view .text-row2[data-v-2fd500a1]{padding-top:10rpx;font-size:28rpx;line-height:1.3}.item-block-card[data-v-2fd500a1]{margin-bottom:30rpx}.item-block-card > .title[data-v-2fd500a1]{padding:20rpx 20rpx 0 20rpx;font-weight:700}.item-block-card .items-view[data-v-2fd500a1]{display:flex;flex-wrap:wrap;padding-bottom:12rpx}.item-block-card .block-item[data-v-2fd500a1]{width:25%;box-sizing:border-box;padding-top:20rpx;padding-bottom:10rpx;display:flex;flex-direction:column;align-items:center}.item-block-card .block-item .block-item-icon[data-v-2fd500a1]{display:flex;justify-content:center;align-items:center;font-size:70rpx;position:relative}.item-block-card .block-item .block-item-icon .opacity-layer[data-v-2fd500a1]{position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(120deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.1))}.item-block-card .block-item .block-item-text[data-v-2fd500a1]{padding-top:4rpx;font-size:30rpx;text-align:center}',""]),t.exports=e},"05aa":function(t,e,a){"use strict";a.r(e);var i=a("03a1"),n=a("714d");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("54bde");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"571145bd",null,!1,i["a"],void 0);e["default"]=s.exports},"05b2":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),style:this._$g(0,"s"),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},n=[]},"05d7":function(t,e,a){"use strict";var i=a("5689"),n=a.n(i);n.a},"0832":function(t,e,a){"use strict";var i=a("2b33"),n=a.n(i);n.a},"0ab7":function(t,e,a){"use strict";var i=a("5389"),n=a.n(i);n.a},"0ba4":function(t,e,a){"use strict";a.r(e);var i=a("1396"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"0bcc":function(t,e,a){"use strict";var i=a("4339"),n=a.n(i);n.a},"0c20":function(t,e,a){"use strict";var i=a("a08f"),n=a.n(i);n.a},"0cc9":function(t,e,a){"use strict";a.r(e);var i=a("3702"),n=a("0ba4");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("e080");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"6a43b8ce",null,!1,i["a"],void 0);e["default"]=s.exports},"0cee":function(t,e,a){"use strict";var i=a("0d80"),n=a.n(i);n.a},"0d80":function(t,e,a){var i=a("ac44");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("601c8f12",i,!0,{sourceMap:!1,shadowMode:!1})},"0d88":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-swipe-action-item",data:function(){return{wxsProps:{}}},components:{}}},"0de6":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-status-bar",data:function(){return{wxsProps:{}}},components:{}}},"0e7c":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},n=[]},"0fd8":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.start-page[data-v-76a8517b]{height:100%;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4)}',""]),t.exports=e},"118a":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3533")),r=i(a("9eb0")),o={name:"headerPageCompontent",props:["gradient","gradientValue","backgroundColor","baseBackgroundColor","safety","title","headerColor","headerGradient","headerGradientValue","headerBackgroundColor","full"],data:function(){return{wxsProps:{}}},components:{FullPageLayout:n.default,PageHeader:r.default}};e.default=o},"129c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-button",data:function(){return{wxsProps:{}}},components:{}}},1396:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["materialData"],data:function(){return{wxsProps:{}}},components:{}}},"147a":function(t,e,a){"use strict";a.r(e);var i=a("eaea"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},1499:function(t,e,a){"use strict";a.r(e);var i=a("8e2b"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"160b":function(t,e,a){var i=a("c186");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("988cbbe2",i,!0,{sourceMap:!1,shadowMode:!1})},1636:function(t,e,a){"use strict";a.r(e);var i=a("4ea8"),n=a("0289");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("5233");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"3060b6fb",null,!1,i["a"],void 0);e["default"]=s.exports},"16ca":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-5a296cfe]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-5a296cfe]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-5a296cfe]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-5a296cfe]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-5a296cfe]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-5a296cfe]{margin-bottom:24rpx}.material-item-group[data-v-5a296cfe]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-5a296cfe]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-5a296cfe]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-5a296cfe]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-5a296cfe]{flex-shrink:0;color:#909193;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-5a296cfe]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-5a296cfe]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-5a296cfe]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-5a296cfe]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-5a296cfe]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},1775:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("8-"+n,"sc"),attrs:{_i:"8-"+n}},[[a("div",{staticClass:i._$g("10-"+n,"sc"),attrs:{_i:"10-"+n}},[a("u-button",{attrs:{_i:"11-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g("12-"+n,"sc"),attrs:{_i:"12-"+n}},[a("u-button",{attrs:{_i:"13-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("scan-input-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(4,"v-model"),callback:function(){},expression:"form.materialId"}}),a("exceptionPlace",{directives:[{name:"show",rawName:"v-show",value:t._$g(5,"v-show"),expression:"_$g(5,'v-show')"}],attrs:{_i:5},on:{"update:station":function(e){return t.$handleViewEvent(e)}}}),a("materialInfo",{attrs:{_i:6}})],1)],1):t._e()],1)},r=[]},"184d":function(t,e,a){var i=a("30c4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("cd30cb3e",i,!0,{sourceMap:!1,shadowMode:!1})},"18c8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-line",data:function(){return{wxsProps:{}}},components:{}}},"1c61":function(t,e,a){var i=a("35de");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("0fb64464",i,!0,{sourceMap:!1,shadowMode:!1})},"1cd7":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("733c")),r=i(a("bfc4")),o={props:["exceptePlace","station"],data:function(){return{wxsProps:{}}},components:{EasyPicker:n.default,ScanInputFormItem:r.default}};e.default=o},"1d11":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-3060b6fb]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-3060b6fb]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-3060b6fb]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-3060b6fb]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-3060b6fb]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-3060b6fb]{margin-bottom:24rpx}.material-item-group[data-v-3060b6fb]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-3060b6fb]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-3060b6fb]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-3060b6fb]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-3060b6fb]{flex-shrink:0;color:#909193;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-3060b6fb]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-3060b6fb]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-3060b6fb]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-3060b6fb]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-3060b6fb]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},"1d14":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header-page-layout",{ref:"page",attrs:{_i:0},on:{headerclick:function(e){return t.$handleViewEvent(e)}},scopedSlots:t._u([{key:"headerleft",fn:function(t,e,i){return[a("u-icon",{attrs:{_i:"2-"+i}})]}},{key:"headerright",fn:function(t,e,i){return[a("u-icon",{attrs:{_i:"4-"+i}})]}},t._$g(6,"i")?{key:"footer",fn:function(e,a,i){return[t._t("footer",null,{_i:"7-"+i})]}}:null],null,!0)},[t._t("default",null,{_i:5}),a("easy-picker",{attrs:{_i:8},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],2)},r=[]},"1dde":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r={data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default}};e.default=r},"1f50":function(t,e){t.exports="/uni_modules/uview-ui/components/u-icon/iconfont.ttf"},"207f":function(t,e,a){"use strict";var i=a("2b57"),n=a.n(i);n.a},"211f":function(t,e,a){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(a){return e.resolve(t()).then((function(){return a}))}),(function(a){return e.resolve(t()).then((function(){throw a}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var i=uni.requireGlobal();ArrayBuffer=i.ArrayBuffer,Int8Array=i.Int8Array,Uint8Array=i.Uint8Array,Uint8ClampedArray=i.Uint8ClampedArray,Int16Array=i.Int16Array,Uint16Array=i.Uint16Array,Int32Array=i.Int32Array,Uint32Array=i.Uint32Array,Float32Array=i.Float32Array,Float64Array=i.Float64Array,BigInt64Array=i.BigInt64Array,BigUint64Array=i.BigUint64Array}window.__uniConfig={window:{navigationBarTextStyle:"black",navigationBarTitleText:"\u96c5\u514bLES",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",navigationStyle:"custom"},darkmode:!1},uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/start/index",(function(){return Vue.extend(a("ade42").default)})),__definePage("pages/login/index",(function(){return Vue.extend(a("a641").default)})),__definePage("pages/home/index",(function(){return Vue.extend(a("793b").default)})),__definePage("pages/setting/host",(function(){return Vue.extend(a("8663").default)})),__definePage("pages/print/bluetoothConnection",(function(){return Vue.extend(a("d15a").default)})),__definePage("pages/online/index",(function(){return Vue.extend(a("ea05").default)})),__definePage("pages/bind/index",(function(){return Vue.extend(a("dcef").default)})),__definePage("pages/bindContaniner/index",(function(){return Vue.extend(a("ac91").default)})),__definePage("pages/sortingSearch/index",(function(){return Vue.extend(a("fce5").default)})),__definePage("pages/replenishMent/index",(function(){return Vue.extend(a("1636").default)})),__definePage("pages/inAndOutBound/index",(function(){return Vue.extend(a("c85d").default)})),__definePage("pages/exceptionHandle/index",(function(){return Vue.extend(a("270b").default)})),__definePage("pages/exceptionHandle/modules/exceptionPlace",(function(){return Vue.extend(a("3cfc").default)})),__definePage("pages/exceptionHandle/modules/materialInfo",(function(){return Vue.extend(a("0cc9").default)})),__definePage("pages/emptyOut/index",(function(){return Vue.extend(a("a3e1").default)})),__definePage("pages/containerHandle/index",(function(){return Vue.extend(a("a701").default)}))},"21ef":function(t,e,a){"use strict";a.r(e);var i=a("5f7e"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"246a":function(t,e,a){"use strict";a.r(e);var i=a("a4ff"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"24a2":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("a47e")),r={name:"bluetoothPrintConnectionPage",data:function(){return{wxsProps:{}}},components:{HeaderPageLayout:n.default}};e.default=r},"24fb":function(t,e,a){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=function(t,e){var a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"===typeof btoa){var n=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(a," */")}(i),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(r).concat([n]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,i){"string"===typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(n[o]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&n[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),e.push(c))}},e}},"270b":function(t,e,a){"use strict";a.r(e);var i=a("1775"),n=a("5921");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("c8aa");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"78fe1574",null,!1,i["a"],void 0);e["default"]=s.exports},"27a5":function(t,e,a){"use strict";a.r(e);var i=a("4ea3"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"28ab":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-23a72621], uni-scroll-view[data-v-23a72621], uni-swiper-item[data-v-23a72621]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swiper-indicator__wrapper[data-v-23a72621]{display:flex;flex-direction:row}.u-swiper-indicator__wrapper--line[data-v-23a72621]{border-radius:100px;height:4px}.u-swiper-indicator__wrapper--line__bar[data-v-23a72621]{width:22px;height:4px;border-radius:100px;background-color:#fff;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.u-swiper-indicator__wrapper__dot[data-v-23a72621]{width:5px;height:5px;border-radius:100px;margin:0 4px}.u-swiper-indicator__wrapper__dot--active[data-v-23a72621]{width:12px}',""]),t.exports=e},"28c8":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.easy-select-form-item-compontent[data-v-7fef894d]{width:100%}.easy-select-form-item-compontent .p-form-label[data-v-7fef894d]{font-size:32rpx;color:#909193;padding-bottom:12rpx;padding-left:20rpx}.easy-select-form-item-compontent .p-form-label .required-tag[data-v-7fef894d]{color:#f56c6c}.easy-select-form-item-compontent .input-row[data-v-7fef894d]{width:100%;height:90rpx;overflow:hidden;background-color:#fff;display:flex;align-items:center;position:relative}.easy-select-form-item-compontent .input-row .close-view[data-v-7fef894d], .easy-select-form-item-compontent .input-row .right-icon-view[data-v-7fef894d]{flex-shrink:0;display:flex;align-items:center;justify-content:center}.easy-select-form-item-compontent .input-row .right-icon-view[data-v-7fef894d]{padding-right:10rpx}.easy-select-form-item-compontent .input-row .close-view .close-circle[data-v-7fef894d]{width:20px;height:20px;border-radius:50%;background-color:#c6c7cb;display:flex;flex-direction:row;align-items:center;justify-content:center;-webkit-transform:scale(.82);transform:scale(.82);margin-left:4px}.easy-select-form-item-compontent .input-row .input-view[data-v-7fef894d]{flex-grow:1;padding-left:20rpx;font-size:30rpx;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#303133}.easy-select-form-item-compontent .input-row .input-view .placeholder[data-v-7fef894d]{color:#c0c4cc}.easy-select-form-item-compontent .input-row > .mask[data-v-7fef894d]{background-color:#000;opacity:.25;position:absolute;left:0;top:0;width:100%;height:100%;z-index:100}.easy-select-form-item-compontent .msg-row[data-v-7fef894d]{padding:6rpx 20rpx 0 20rpx;line-height:1.3;font-size:24rpx;color:#f56c6c;word-break:break-all;word-wrap:break-word}.easy-select-form-item-compontent .msg-row.info-type[data-v-7fef894d]{color:#007aff}',""]),t.exports=e},2957:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-30282a05], uni-scroll-view[data-v-30282a05], uni-swiper-item[data-v-30282a05]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-popup[data-v-30282a05]{flex:1}.u-popup__content[data-v-30282a05]{background-color:#fff;position:relative}.u-popup__content--round-top[data-v-30282a05]{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.u-popup__content--round-left[data-v-30282a05]{border-top-left-radius:0;border-top-right-radius:10px;border-bottom-left-radius:0;border-bottom-right-radius:10px}.u-popup__content--round-right[data-v-30282a05]{border-top-left-radius:10px;border-top-right-radius:0;border-bottom-left-radius:10px;border-bottom-right-radius:0}.u-popup__content--round-bottom[data-v-30282a05]{border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-left-radius:0;border-bottom-right-radius:0}.u-popup__content--round-center[data-v-30282a05]{border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.u-popup__content__close[data-v-30282a05]{position:absolute}.u-popup__content__close--hover[data-v-30282a05]{opacity:.4}.u-popup__content__close--top-left[data-v-30282a05]{top:15px;left:15px}.u-popup__content__close--top-right[data-v-30282a05]{top:15px;right:15px}.u-popup__content__close--bottom-left[data-v-30282a05]{bottom:15px;left:15px}.u-popup__content__close--bottom-right[data-v-30282a05]{right:15px;bottom:15px}',""]),t.exports=e},"295b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"pageheaderCompontent",props:["color","gradient","gradientValue","backgroundColor"],data:function(){return{wxsProps:{}}},components:{}}},"29e4":function(t,e,a){"use strict";var i=a("7a24"),n=a.n(i);n.a},"2b33":function(t,e,a){var i=a("16ca");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("30df06b8",i,!0,{sourceMap:!1,shadowMode:!1})},"2b57":function(t,e,a){var i=a("054d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("3ca4c602",i,!0,{sourceMap:!1,shadowMode:!1})},"2b77":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-03e1ba13], uni-scroll-view[data-v-03e1ba13], uni-swiper-item[data-v-03e1ba13]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-03e1ba13]{display:flex;flex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-03e1ba13]{display:flex;flex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-03e1ba13]{display:flex;flex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-03e1ba13]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:10rpx;flex:1}.u-form-item__body__left__content__icon[data-v-03e1ba13]{margin-right:8rpx}.u-form-item__body__left__content__required[data-v-03e1ba13]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-03e1ba13]{display:flex;flex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-03e1ba13]{flex:1}.u-form-item__body__right__content[data-v-03e1ba13]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-03e1ba13]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-03e1ba13]{margin-left:10rpx;color:#c0c4cc;font-size:30rpx}.u-form-item__body__right__message[data-v-03e1ba13]{font-size:12px;line-height:12px;color:#f56c6c}',""]),t.exports=e},"2bbb":function(t,e,a){"use strict";a.r(e);var i=a("c211"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"2c3a":function(t,e,a){"use strict";var i=a("a6ce"),n=a.n(i);n.a},"2ced":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("12-"+n,"sc"),attrs:{_i:"12-"+n}},[[a("div",{staticClass:i._$g("14-"+n,"sc"),attrs:{_i:"14-"+n}},[a("u-button",{attrs:{_i:"15-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g("16-"+n,"sc"),attrs:{_i:"16-"+n}},[a("u-button",{attrs:{_i:"17-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g("18-"+n,"sc"),staticStyle:{"margin-left":"10rpx"},attrs:{_i:"18-"+n}},[a("u-button",{attrs:{_i:"19-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g("20-"+n,"sc"),staticStyle:{"margin-left":"10rpx"},attrs:{_i:"20-"+n}},[a("u-button",{attrs:{_i:"21-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("scan-input-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(4,"v-model"),callback:function(){},expression:"form.containterCode"}}),t._$g(5,"i")?a("scan-input-form-item",{staticClass:t._$g(5,"sc"),attrs:{_i:5},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(5,"v-model"),callback:function(){},expression:"form.containerType"}}):t._e(),a("EasyPicker",{attrs:{_i:6},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}}),a("scan-input-form-item",{staticClass:t._$g(7,"sc"),attrs:{_i:7},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(7,"v-model"),callback:function(){},expression:"form.materialNo"}}),a("scan-input-form-item",{staticClass:t._$g(8,"sc"),attrs:{_i:8},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(8,"v-model"),callback:function(){},expression:"form.site"}}),a("EasyPicker",{attrs:{_i:9},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}}),a("materialList",{attrs:{_i:10},on:{delMaterialData:function(e){return t.$handleViewEvent(e)}}})],1)],1):t._e()],1)},r=[]},"2d28":function(t,e,a){"use strict";a.r(e);var i=a("d9b5"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"2f05":function(t,e,a){"use strict";var i=a("ce5e"),n=a.n(i);n.a},"2faa":function(t,e,a){var i=a("24fb"),n=a("b8d8"),r=a("1f50");e=i(!1);var o=n(r);e.push([t.i,'@charset "UTF-8";uni-view[data-v-20eaeffe], uni-scroll-view[data-v-20eaeffe], uni-swiper-item[data-v-20eaeffe]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}@font-face{font-family:uicon-iconfont;src:url('+o+') format("truetype")}.u-icon[data-v-20eaeffe]{display:flex;align-items:center}.u-icon--left[data-v-20eaeffe]{flex-direction:row-reverse;align-items:center}.u-icon--right[data-v-20eaeffe]{flex-direction:row;align-items:center}.u-icon--top[data-v-20eaeffe]{flex-direction:column-reverse;justify-content:center}.u-icon--bottom[data-v-20eaeffe]{flex-direction:column;justify-content:center}.u-icon__icon[data-v-20eaeffe]{font-family:uicon-iconfont;position:relative;display:flex;flex-direction:row;align-items:center}.u-icon__icon--primary[data-v-20eaeffe]{color:#f18201}.u-icon__icon--success[data-v-20eaeffe]{color:#5ac725}.u-icon__icon--error[data-v-20eaeffe]{color:#f56c6c}.u-icon__icon--warning[data-v-20eaeffe]{color:#f0f}.u-icon__icon--info[data-v-20eaeffe]{color:#909399}.u-icon__img[data-v-20eaeffe]{height:auto;will-change:transform}.u-icon__label[data-v-20eaeffe]{line-height:1}',""]),t.exports=e},3063:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.header-page-containter[data-v-29e4d0f1]{height:100%;display:flex;flex-direction:column;overflow:hidden}.header-page-containter .header-page-containter-header[data-v-29e4d0f1], .header-page-containter .header-page-footer[data-v-29e4d0f1]{flex-shrink:0}.header-page-containter .header-page-containter-body[data-v-29e4d0f1]{flex-grow:1;overflow:auto}',""]),t.exports=e},"30c4":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-5c4eceb6]{display:flex;padding:10rpx 20rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-5c4eceb6]{width:1%;box-sizing:border-box;flex-grow:1}.bottom-btns-row .divider[data-v-5c4eceb6]{width:20rpx;flex-shrink:0}.forma-item[data-v-5c4eceb6]{margin-bottom:24rpx}.only-watch-container[data-v-5c4eceb6]{background-color:#d0ddd8;min-height:90rpx;display:flex}.only-watch-container > .label[data-v-5c4eceb6]{color:#909193;font-size:32rpx;flex-shrink:0;padding-left:20rpx;padding-top:22rpx}.only-watch-container > .content[data-v-5c4eceb6]{width:1px;flex-grow:1;display:flex;align-items:center;font-size:30rpx;padding:8rpx 0}',""]),t.exports=e},"318b":function(t,e,a){"use strict";var i=a("92ba"),n=a.n(i);n.a},"318c":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uSwipeAction:a("b6de").default,uSwipeActionItem:a("a808").default,uIcon:a("5a09").default,uBadge:a("6c35").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("u-swipe-action",{attrs:{_i:0}},t._l(t._$g(1,"f"),(function(e,i,n,r){return a("u-swipe-action-item",{key:e,staticStyle:{"margin-bottom":"20rpx"},attrs:{_i:"1-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g("2-"+r,"sc"),attrs:{_i:"2-"+r}},[a("uni-view",{staticClass:t._$g("3-"+r,"sc"),attrs:{_i:"3-"+r}},[a("uni-view",{staticClass:t._$g("4-"+r,"sc"),attrs:{_i:"4-"+r}},[a("uni-view",{staticClass:t._$g("5-"+r,"sc"),attrs:{_i:"5-"+r}},[a("u-icon",{attrs:{_i:"6-"+r}})],1)],1),a("uni-view",{staticClass:t._$g("7-"+r,"sc"),attrs:{_i:"7-"+r}},[a("u-badge",{attrs:{_i:"8-"+r}})],1),a("uni-view",{staticClass:t._$g("9-"+r,"sc"),attrs:{_i:"9-"+r}},[a("uni-view",{staticClass:t._$g("10-"+r,"sc"),attrs:{_i:"10-"+r}},[t._v("\u7269\u6599\u7f16\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g("11-"+r,"sc"),attrs:{_i:"11-"+r}},[t._v(t._$g("11-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("12-"+r,"sc"),attrs:{_i:"12-"+r}},[a("uni-view",{staticClass:t._$g("13-"+r,"sc"),attrs:{_i:"13-"+r}},[t._v("\u7269\u6599\u540d\u79f0\uff1a")]),a("uni-view",{staticClass:t._$g("14-"+r,"sc"),attrs:{_i:"14-"+r}},[t._v(t._$g("14-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("15-"+r,"sc"),attrs:{_i:"15-"+r}},[a("uni-view",{staticClass:t._$g("16-"+r,"sc"),attrs:{_i:"16-"+r}},[t._v("\u4ef6\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g("17-"+r,"sc"),attrs:{_i:"17-"+r}},[t._v(t._$g("17-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("18-"+r,"sc"),attrs:{_i:"18-"+r}},[a("uni-view",{staticClass:t._$g("19-"+r,"sc"),attrs:{_i:"19-"+r}},[t._v("\u4f9b\u5e94\u5546\uff1a")]),a("uni-view",{staticClass:t._$g("20-"+r,"sc"),attrs:{_i:"20-"+r}},[t._v(t._$g("20-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("21-"+r,"sc"),attrs:{_i:"21-"+r}},[a("uni-view",{staticClass:t._$g("22-"+r,"sc"),attrs:{_i:"22-"+r}},[t._v("\u673a\u578b\uff1a")]),a("uni-view",{staticClass:t._$g("23-"+r,"sc"),attrs:{_i:"23-"+r}},[t._v(t._$g("23-"+r,"t0-0"))])],1)],1)],1)],1)})),1):t._e()},r=[]},"32a5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["placeInfo"],data:function(){return{wxsProps:{}}},components:{}}},"336b":function(t,e,a){var i=a("cabe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("0902db9a",i,!0,{sourceMap:!1,shadowMode:!1})},"33a2":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.header-icon-btn[data-v-bd25ae74]{font-size:1.3rem}.page-padding[data-v-bd25ae74]{padding:0 30rpx}.page-footer-padding[data-v-bd25ae74]{padding-top:20rpx;padding-bottom:20rpx}.bluetooth-connection-page[data-v-bd25ae74]{padding-top:30rpx}.bluetooth-connection-page .bluetooth-btn[data-v-bd25ae74]{box-sizing:border-box;width:100%;margin-bottom:30rpx;border:1px solid #f18201;background-color:#f8c07f;color:#fff;border-radius:20rpx;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20rpx;font-size:30rpx}.bluetooth-connection-page .bluetooth-btn .blue-btn-id[data-v-bd25ae74], .bluetooth-connection-page .bluetooth-btn .blue-btn-name[data-v-bd25ae74]{word-wrap:break-word;word-break:break-all;white-space:pre-wrap;text-align:center}.bluetooth-connection-page .bluetooth-btn .blue-btn-name[data-v-bd25ae74]{font-size:1.5em;font-weight:700}.bluetooth-connection-page .bluetooth-btn[data-v-bd25ae74]:last-child{margin-bottom:0}',""]),t.exports=e},"33fc":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-transition",data:function(){return{wxsProps:{}}},components:{}}},3533:function(t,e,a){"use strict";a.r(e);var i=a("3d09"),n=a("cec3");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("3787");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"adf62f3a",null,!1,i["a"],void 0);e["default"]=s.exports},"354d":function(t,e,a){"use strict";a.r(e);var i=a("fbbb"),n=a("db01");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("661c");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"03e1ba13",null,!1,i["a"],void 0);e["default"]=s.exports},"35de":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.action-user-row-compontent[data-v-76e55d42]{text-align:right;padding:8rpx 20rpx;position:absolute;box-sizing:border-box;width:100%;top:0;left:0;z-index:1}',""]),t.exports=e},3626:function(t,e,a){var i=a("cf17");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("c5182c3e",i,!0,{sourceMap:!1,shadowMode:!1})},3642:function(t,e,a){"use strict";a.r(e);var i=a("6cda"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},3702:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{directives:[{name:"show",rawName:"v-show",value:t._$g(0,"v-show"),expression:"_$g(0,'v-show')"}],staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._v("\u4fe1\u606f\u63d0\u793a")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[t._v(t._$g(4,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._v("\u7269\u6599\u7f16\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[t._v(t._$g(7,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(8,"sc"),attrs:{_i:8}},[a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[t._v("\u7269\u6599\u4ef6\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}},[t._v(t._$g(10,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[a("uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12}},[t._v("\u7269\u6599\u540d\u79f0")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14}},[a("uni-view",{staticClass:t._$g(15,"sc"),attrs:{_i:15}},[t._v("\u4f9b\u5e94\u5546")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(16,"sc"),attrs:{_i:16}},[t._v(t._$g(16,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(17,"sc"),attrs:{_i:17}},[a("uni-view",{staticClass:t._$g(18,"sc"),attrs:{_i:18}},[t._v("\u4ef6\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(19,"sc"),attrs:{_i:19}},[t._v(t._$g(19,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(20,"sc"),attrs:{_i:20}},[a("uni-view",{staticClass:t._$g(21,"sc"),attrs:{_i:21}},[t._v("\u89c4\u683c")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(22,"sc"),attrs:{_i:22}},[t._v(t._$g(22,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(23,"sc"),attrs:{_i:23}},[a("uni-view",{staticClass:t._$g(24,"sc"),attrs:{_i:24}},[t._v("\u673a\u578b")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(25,"sc"),attrs:{_i:25}},[t._v(t._$g(25,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(26,"sc"),attrs:{_i:26}},[a("uni-view",{staticClass:t._$g(27,"sc"),attrs:{_i:27}},[t._v("\u6279\u6b21")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g(28,"sc"),attrs:{_i:28}},[t._v(t._$g(28,"t0-0"))])],1)],1)],1)},n=[]},3787:function(t,e,a){"use strict";var i=a("f1e2"),n=a.n(i);n.a},"39a9":function(t,e,a){"use strict";a.r(e);var i=a("b511"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"3a5d":function(t,e,a){"use strict";var i=a("7da2"),n=a.n(i);n.a},"3be6":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.header-icon-btn[data-v-105a0781]{font-size:1.3rem}.page-padding[data-v-105a0781]{padding:0 30rpx}.page-footer-padding[data-v-105a0781]{padding-top:20rpx;padding-bottom:20rpx}.setting-host-page[data-v-105a0781]{padding-top:30rpx}',""]),t.exports=e},"3cf0":function(t,e,a){"use strict";a.r(e);var i=a("18c8"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"3cfc":function(t,e,a){"use strict";a.r(e);var i=a("9a1c"),n=a("59ef");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"3d09":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),style:this._$g(0,"s"),attrs:{_i:0}},[e("uni-view",{staticClass:this._$g(1,"sc"),class:this._$g(1,"c"),style:this._$g(1,"s"),attrs:{_i:1}},[this._t("default",null,{_i:2})],2)],1)},n=[]},"3e13":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.page-header-compontent[data-v-38672886]{width:100%;height:90rpx;position:relative;font-size:32rpx}.page-header-compontent.gradient-default[data-v-38672886]{background-image:linear-gradient(90deg,#f18201,gold)!important}.page-header-compontent .title[data-v-38672886]{height:100%;display:flex;justify-content:center;align-items:center;font-size:1.2em}.page-header-compontent > .left-action[data-v-38672886], .page-header-compontent > .right-action[data-v-38672886]{position:absolute;top:0;height:100%;z-index:5;display:flex;align-items:center}.page-header-compontent > .left-action[data-v-38672886]{left:0rpx;padding-left:8px}.page-header-compontent > .right-action[data-v-38672886]{right:0rpx;padding-right:8px}',""]),t.exports=e},"3e3a":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("6e05")),c=i(a("733c")),u={data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,RadioFormItem:s.default,EasyPicker:c.default}};e.default=u},"40f2":function(t,e,a){"use strict";a.r(e);var i=a("32a5"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},4261:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uSwipeAction:a("b6de").default,uSwipeActionItem:a("a808").default,uIcon:a("5a09").default,uBadge:a("6c35").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("u-swipe-action",{attrs:{_i:0}},t._l(t._$g(1,"f"),(function(e,i,n,r){return a("u-swipe-action-item",{key:e,staticStyle:{"margin-bottom":"20rpx"},attrs:{_i:"1-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g("2-"+r,"sc"),class:t._$g("2-"+r,"c"),attrs:{_i:"2-"+r}},[a("uni-view",{staticClass:t._$g("3-"+r,"sc"),attrs:{_i:"3-"+r}},[a("uni-view",{staticClass:t._$g("4-"+r,"sc"),attrs:{_i:"4-"+r}},[a("uni-view",{staticClass:t._$g("5-"+r,"sc"),attrs:{_i:"5-"+r}},[a("u-icon",{attrs:{_i:"6-"+r}})],1)],1),a("uni-view",{staticClass:t._$g("7-"+r,"sc"),attrs:{_i:"7-"+r}},[a("u-badge",{attrs:{_i:"8-"+r}})],1),a("uni-view",{staticClass:t._$g("9-"+r,"sc"),attrs:{_i:"9-"+r}},[a("uni-view",{staticClass:t._$g("10-"+r,"sc"),attrs:{_i:"10-"+r}},[a("uni-view",{staticClass:t._$g("11-"+r,"sc"),attrs:{_i:"11-"+r}},[t._v("\u7269\u6599\u4ef6\u53f7")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g("12-"+r,"sc"),attrs:{_i:"12-"+r}},[t._v(t._$g("12-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("13-"+r,"sc"),attrs:{_i:"13-"+r}},[a("uni-view",{staticClass:t._$g("14-"+r,"sc"),attrs:{_i:"14-"+r}},[t._v("\u7269\u6599\u540d\u79f0")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g("15-"+r,"sc"),attrs:{_i:"15-"+r}},[t._v(t._$g("15-"+r,"t0-0"))])],1)],1),a("uni-view",{staticClass:t._$g("16-"+r,"sc"),attrs:{_i:"16-"+r}},[a("uni-view",{staticClass:t._$g("17-"+r,"sc"),attrs:{_i:"17-"+r}},[a("uni-view",{staticClass:t._$g("18-"+r,"sc"),attrs:{_i:"18-"+r}},[t._v("\u673a\u578b")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g("19-"+r,"sc"),attrs:{_i:"19-"+r}},[t._v(t._$g("19-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("20-"+r,"sc"),attrs:{_i:"20-"+r}},[a("uni-view",{staticClass:t._$g("21-"+r,"sc"),attrs:{_i:"21-"+r}},[t._v("\u6570\u91cf")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g("22-"+r,"sc"),attrs:{_i:"22-"+r}},[t._v(t._$g("22-"+r,"t0-0"))])],1)],1),a("uni-view",{staticClass:t._$g("23-"+r,"sc"),attrs:{_i:"23-"+r}},[a("uni-view",{staticClass:t._$g("24-"+r,"sc"),attrs:{_i:"24-"+r}},[a("uni-view",{staticClass:t._$g("25-"+r,"sc"),attrs:{_i:"25-"+r}},[t._v("\u552f\u4e00\u7801")]),t._v("\uff1a"),a("uni-view",{staticClass:t._$g("26-"+r,"sc"),attrs:{_i:"26-"+r}},[t._v(t._$g("26-"+r,"t0-0"))])],1)],1)],1)],1)],1)})),1):t._e()},r=[]},"430f":function(t,e,a){"use strict";var i=a("184d"),n=a.n(i);n.a},4339:function(t,e,a){var i=a("f4e1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("46e74888",i,!0,{sourceMap:!1,shadowMode:!1})},"43e5":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-484fabe5], uni-scroll-view[data-v-484fabe5], uni-swiper-item[data-v-484fabe5]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-input[data-v-484fabe5]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex:1}.u-input--radius[data-v-484fabe5], .u-input--square[data-v-484fabe5]{border-radius:4px}.u-input--no-radius[data-v-484fabe5]{border-radius:0}.u-input--circle[data-v-484fabe5]{border-radius:100px}.u-input__content[data-v-484fabe5]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.u-input__content__field-wrapper[data-v-484fabe5]{position:relative;display:flex;flex-direction:row;margin:0;flex:1}.u-input__content__field-wrapper__field[data-v-484fabe5]{line-height:26px;text-align:left;color:#303133;height:24px;font-size:15px;flex:1}.u-input__content__clear[data-v-484fabe5]{width:20px;height:20px;border-radius:100px;background-color:#c6c7cb;display:flex;flex-direction:row;align-items:center;justify-content:center;-webkit-transform:scale(.82);transform:scale(.82);margin-left:4px}.u-input__content__subfix-icon[data-v-484fabe5]{margin-left:4px}.u-input__content__prefix-icon[data-v-484fabe5]{margin-right:4px}',""]),t.exports=e},4423:function(t,e,a){"use strict";a.r(e);var i=a("a2c1"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"44bb":function(t,e,a){"use strict";a.r(e);var i=a("45df"),n=a("6603");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("fa63");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"44070ee4",null,!1,i["a"],void 0);e["default"]=s.exports},"45df":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uSwipeAction:a("b6de").default,uSwipeActionItem:a("a808").default,uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("u-swipe-action",{attrs:{_i:0}},[a("u-swipe-action-item",{staticStyle:{"margin-bottom":"20rpx"},attrs:{_i:1},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[a("u-icon",{attrs:{_i:6}})],1)],1),a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("uni-view",{staticClass:t._$g(8,"sc"),attrs:{_i:8}},[a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[t._v("\u7269\u6599\u4ef6\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}},[t._v(t._$g(10,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[a("uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12}},[t._v("\u7269\u6599\u540d\u79f0\uff1a")]),a("uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))])],1)],1),a("uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14}},[a("uni-view",{staticClass:t._$g(15,"sc"),attrs:{_i:15}},[a("uni-view",{staticClass:t._$g(16,"sc"),attrs:{_i:16}},[t._v("\u5206\u62e3\u6570\u91cf\uff1a")]),a("uni-view",{staticClass:t._$g(17,"sc"),attrs:{_i:17}},[t._v(t._$g(17,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(18,"sc"),attrs:{_i:18}},[a("uni-view",{staticClass:t._$g(19,"sc"),attrs:{_i:19}},[t._v("\u5df2\u62e3\u6570\u91cf\uff1a")]),a("uni-view",{staticClass:t._$g(20,"sc"),attrs:{_i:20}},[t._v(t._$g(20,"t0-0"))])],1)],1),a("uni-view",{staticClass:t._$g(21,"sc"),attrs:{_i:21}},[a("uni-view",{staticClass:t._$g(22,"sc"),attrs:{_i:22}},[a("uni-view",{staticClass:t._$g(23,"sc"),attrs:{_i:23}},[t._v("\u5355\u636e\u7f16\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g(24,"sc"),attrs:{_i:24}},[t._v(t._$g(24,"t0-0"))])],1)],1),a("uni-view",{staticClass:t._$g(25,"sc"),attrs:{_i:25}},[a("uni-view",{staticClass:t._$g(26,"sc"),attrs:{_i:26}},[a("uni-view",{staticClass:t._$g(27,"sc"),attrs:{_i:27}},[t._v("\u5206\u62e3\u5355\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g(28,"sc"),attrs:{_i:28}},[t._v(t._$g(28,"t0-0"))])],1)],1)],1)],1)],1)],1)},r=[]},4702:function(t,e,a){"use strict";function i(){function t(t){var e=a("8f1b");e.__inject__&&e.__inject__(t)}"function"===typeof t&&t(),UniViewJSBridge.publishHandler("webviewReady")}a("211f"),"undefined"!==typeof plus?i():document.addEventListener("plusready",i)},4756:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("uni-view",{ref:"u-transition",staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{_i:0},on:{touchmove:function(e){return t.$handleViewEvent(e)},click:function(e){return t.$handleViewEvent(e)}}},[t._t("default",null,{_i:1})],2):t._e()},n=[]},4904:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uTransition:a("b12b").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("u-transition",{attrs:{_i:0},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._t("default",null,{_i:1})],2)},r=[]},"49fc":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-26861ad0], uni-scroll-view[data-v-26861ad0], uni-swiper-item[data-v-26861ad0]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loading-icon[data-v-26861ad0]{flex-direction:row;align-items:center;justify-content:center;color:#c8c9cc}.u-loading-icon__text[data-v-26861ad0]{margin-left:4px;color:#606266;font-size:14px;line-height:20px}.u-loading-icon__spinner[data-v-26861ad0]{width:30px;height:30px;position:relative;box-sizing:border-box;max-width:100%;max-height:100%;-webkit-animation:u-rotate-data-v-26861ad0 1s linear infinite;animation:u-rotate-data-v-26861ad0 1s linear infinite}.u-loading-icon__spinner--semicircle[data-v-26861ad0]{border-width:2px;border-color:transparent;border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;border-style:solid}.u-loading-icon__spinner--circle[data-v-26861ad0]{border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;border-width:2px;border-top-color:#e5e5e5;border-right-color:#e5e5e5;border-bottom-color:#e5e5e5;border-left-color:#e5e5e5;border-style:solid}.u-loading-icon--vertical[data-v-26861ad0]{flex-direction:column}[data-v-26861ad0]:host{font-size:0;line-height:1}.u-loading-icon__spinner--spinner[data-v-26861ad0]{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.u-loading-icon__text[data-v-26861ad0]:empty{display:none}.u-loading-icon--vertical .u-loading-icon__text[data-v-26861ad0]{margin:6px 0 0;color:#606266}.u-loading-icon__dot[data-v-26861ad0]{position:absolute;top:0;left:0;width:100%;height:100%}.u-loading-icon__dot[data-v-26861ad0]:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(1){-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(12){-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:.3125}@-webkit-keyframes u-rotate-data-v-26861ad0{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes u-rotate-data-v-26861ad0{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),t.exports=e},"4a4d":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("73e9")),r={name:"u--form",data:function(){return{wxsProps:{}}},components:{uvForm:n.default}};e.default=r},"4ad7":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),attrs:{_i:0}},[this._v("\u64cd\u4f5c\u4eba\uff1a"+this._$g(0,"t0-0"))])},n=[]},"4b15":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("b62a")),s=i(a("bfc4")),c={name:"emptyOutPage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,EasySelectFormItem:o.default,ScanInputFormItem:s.default}};e.default=c},"4cf9":function(t,e,a){"use strict";var i=a("8c21"),n=a.n(i);n.a},"4d76":function(t,e,a){"use strict";var i=a("5ca8"),n=a.n(i);n.a},"4ea3":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("b62a")),c=i(a("9a83")),u=i(a("733c")),l={name:"receiveInPage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,EasySelectFormItem:s.default,materialList:c.default,EasyPicker:u.default}};e.default=l},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"4ea8":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("12-"+n,"sc"),attrs:{_i:"12-"+n}},[[a("div",{staticClass:i._$g("14-"+n,"sc"),attrs:{_i:"14-"+n}},[a("u-button",{attrs:{_i:"15-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("scan-input-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(4,"v-model"),callback:function(){},expression:"form.materialNo"}}),a("EasyPicker",{attrs:{_i:5},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}}),a("scan-input-form-item",{staticClass:t._$g(6,"sc"),attrs:{_i:6}}),a("scan-input-form-item",{staticClass:t._$g(7,"sc"),attrs:{_i:7}}),a("scan-input-form-item",{staticClass:t._$g(8,"sc"),attrs:{_i:8},on:{blur:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(8,"v-model"),callback:function(){},expression:"form.materialNumber"}}),a("scan-input-form-item",{staticClass:t._$g(9,"sc"),attrs:{_i:9},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(9,"v-model"),callback:function(){},expression:"form.sorting"}}),a("EasyPicker",{attrs:{_i:10},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],1)],1):t._e()],1)},r=[]},"514e":function(t,e,a){"use strict";a.r(e);var i=a("4904"),n=a("ade4");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("878d");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"b2a05bc2",null,!1,i["a"],void 0);e["default"]=s.exports},5230:function(t,e,a){"use strict";a.r(e);var i=a("edf0"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},5233:function(t,e,a){"use strict";var i=a("d942"),n=a.n(i);n.a},"524c":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".material-item-group[data-v-62fba990]{padding-top:10rpx;.material-list-item{border-bottom:2rpx solid $uni-border-color;padding-bottom:10rpx;padding-left:60rpx;position:relative;&:last-child{border-bottom:0}.item-row{display:flex;.label{flex-shrink:0;color:#000;width:144rpx}&>.content{flex-grow:1;color:$u-content-color;uni-input{font:inherit;color:$u-primary;text-decoration:underline}}}.badge-box{position:absolute;top:8rpx;left:8rpx;z-index:1}.close-btn{$closeBtnSize:70rpx;width:$closeBtnSize;height:$closeBtnSize;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:$u-error;opacity:.6;border-radius:25rpx;.icon-layer{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}}}}",""]),t.exports=e},5264:function(t,e,a){var i=a("af94");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("2555ed46",i,!0,{sourceMap:!1,shadowMode:!1})},"530c":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".content_active[data-v-492eba8e]{border:3rpx solid #f18202!important}.material-item-group[data-v-492eba8e]{padding-top:10rpx;.material-list-item{border-bottom:2rpx solid $uni-border-color;padding-bottom:10rpx;padding-left:60rpx;position:relative;&:last-child{border-bottom:0}.item-row{display:grid;grid-template-columns:repeat(2,1fr);grid-column-gap:10px;border-bottom:1px solid #ccc;padding:5px 0;.label-content{display:flex;align-items:center;.label{flex-shrink:0;color:#000;width:144px;text-align-last:justify;text-align:justify}.content{flex-grow:1;color:$u-content-color}}}.item-row-sign{display:grid;grid-template-columns:repeat(1,1fr);grid-column-gap:10px;border-bottom:1px solid #ccc;padding:5px 0;.label-content{display:flex;align-items:center;.label{flex-shrink:0;color:#000;width:144px;text-align-last:justify;text-align:justify}.content{flex-grow:1;color:$u-content-color}}}.badge-box{position:absolute;top:8rpx;left:8rpx;z-index:1}.close-btn{$closeBtnSize:70rpx;width:$closeBtnSize;height:$closeBtnSize;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:$u-error;opacity:.6;border-radius:25rpx;.icon-layer{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}}}}",""]),t.exports=e},5389:function(t,e,a){var i=a("5406");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("244fc3d4",i,!0,{sourceMap:!1,shadowMode:!1})},"53fa":function(t,e,a){"use strict";var i=a("1c61"),n=a.n(i);n.a},5406:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.login-page[data-v-3cc17447]{height:100%;display:flex;flex-direction:column}.login-page .login-content[data-v-3cc17447]{flex-grow:1;overflow:auto;position:relative}.login-page .login-content .content-row1[data-v-3cc17447]{height:400rpx;display:flex;justify-content:center;align-items:flex-end}.login-page .login-content .content-row1 .logo-img[data-v-3cc17447]{height:70%;width:50%}.login-page .login-content .content-row2[data-v-3cc17447], .login-page .login-content .content-row3[data-v-3cc17447]{text-align:center}.login-page .login-content .content-row2[data-v-3cc17447]{font-size:56rpx;font-weight:700}.login-page .login-content .content-row3[data-v-3cc17447]{font-size:40rpx;padding-top:20rpx;color:#999}.login-page .login-content .form-view[data-v-3cc17447]{padding:50rpx 40rpx 0 40rpx}.login-page .login-content .form-view .login-form-item[data-v-3cc17447]{margin-bottom:32rpx}.login-page .login-content .form-view .login-btn-view[data-v-3cc17447]{padding-top:20rpx}.login-page .login-footer[data-v-3cc17447]{flex-shrink:0;padding:10rpx 10rpx 4rpx 10rpx;font-size:24rpx;color:#999;text-align:right}.login-page .more-user-icon-btn[data-v-3cc17447]{padding:0 10rpx;font-size:1.2em}.setting-target[data-v-3cc17447]{position:absolute;top:0;right:0;width:80rpx;height:80rpx;display:flex;align-items:center;justify-content:center;z-index:5;font-size:40rpx}',""]),t.exports=e},5486:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("733c")),r=i(a("bfc4")),o={props:["selectData","value","label","labelField","valueField","disabled"],data:function(){return{wxsProps:{}}},components:{EasyPicker:n.default,ScanInputFormItem:r.default}};e.default=o},"54bd":function(t,e,a){"use strict";a.r(e);var i=a("6f49"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"54bde":function(t,e,a){"use strict";var i=a("c9e8"),n=a.n(i);n.a},5689:function(t,e,a){var i=a("3be6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("540109ae",i,!0,{sourceMap:!1,shadowMode:!1})},"578b":function(t,e,a){"use strict";a.r(e);var i=a("90a8"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},5809:function(t,e,a){"use strict";var i=a("aa8d"),n=a.n(i);n.a},5839:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("scan-input-form-item",{staticClass:t._$g(1,"sc"),attrs:{_i:1},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(1,"v-model"),callback:function(){},expression:"value"}}),a("EasyPicker",{attrs:{_i:2},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],1)},n=[]},"584f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-overlay",data:function(){return{wxsProps:{}}},components:{}}},"58ac":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["materialData"],data:function(){return{wxsProps:{}}},components:{}}},"591d":function(t,e,a){var i=a("2957");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("3a36552a",i,!0,{sourceMap:!1,shadowMode:!1})},5921:function(t,e,a){"use strict";a.r(e);var i=a("7cef"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"59ef":function(t,e,a){"use strict";a.r(e);var i=a("1cd7"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"5a09":function(t,e,a){"use strict";a.r(e);var i=a("673e"),n=a("f98d");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("0c20");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"20eaeffe",null,!1,i["a"],void 0);e["default"]=s.exports},"5a1a":function(t,e,a){var i=a("0fd8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("5c117e10",i,!0,{sourceMap:!1,shadowMode:!1})},"5ad8":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[t._$g(2,"i")?a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._$g(3,"i")?a("u-icon",{attrs:{_i:3}}):t._t("prefix",null,{_i:4})],2):t._e(),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-input",{staticClass:t._$g(6,"sc"),style:t._$g(6,"s"),attrs:{type:t._$g(6,"a-type"),focus:t._$g(6,"a-focus"),cursor:t._$g(6,"a-cursor"),value:t._$g(6,"a-value"),"auto-blur":t._$g(6,"a-auto-blur"),disabled:t._$g(6,"a-disabled"),maxlength:t._$g(6,"a-maxlength"),placeholder:t._$g(6,"a-placeholder"),"placeholder-style":t._$g(6,"a-placeholder-style"),"placeholder-class":t._$g(6,"a-placeholder-class"),"confirm-type":t._$g(6,"a-confirm-type"),"confirm-hold":t._$g(6,"a-confirm-hold"),"hold-keyboard":t._$g(6,"a-hold-keyboard"),"cursor-spacing":t._$g(6,"a-cursor-spacing"),"adjust-position":t._$g(6,"a-adjust-position"),"selection-end":t._$g(6,"a-selection-end"),"selection-start":t._$g(6,"a-selection-start"),password:t._$g(6,"a-password"),ignoreCompositionEvent:t._$g(6,"a-ignoreCompositionEvent"),_i:6},on:{input:function(e){return t.$handleViewEvent(e)},blur:function(e){return t.$handleViewEvent(e)},focus:function(e){return t.$handleViewEvent(e)},confirm:function(e){return t.$handleViewEvent(e)},keyboardheightchange:function(e){return t.$handleViewEvent(e)}}})],1),t._$g(7,"i")?a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("u-icon",{attrs:{_i:8}})],1):t._e(),t._$g(9,"i")?a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[t._$g(10,"i")?a("u-icon",{attrs:{_i:10}}):t._t("suffix",null,{_i:11})],2):t._e()],1)],1)},r=[]},"5b04":function(t,e){t.exports="/static/fonts/iconfont.woff"},"5ca8":function(t,e,a){var i=a("60a1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("c85883d4",i,!0,{sourceMap:!1,shadowMode:!1})},"5cd8":function(t,e,a){var i=a("e278");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("489d1f37",i,!0,{sourceMap:!1,shadowMode:!1})},"5e2c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-form-item",data:function(){return{wxsProps:{}}},components:{}}},"5f7e":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("733c")),r=i(a("bfc4")),o={props:["exceptePlace","station"],data:function(){return{wxsProps:{}}},components:{EasyPicker:n.default,ScanInputFormItem:r.default}};e.default=o},"5ff9":function(t,e,a){"use strict";var i=a("5a1a"),n=a.n(i);n.a},"603e":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{ref:"u-swipe-action-item",staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[t._t("button",t._l(t._$g(3,"f"),(function(e,i,n,r){return a("uni-view",{key:e,ref:t._$g("3-"+r,"ref"),refInFor:!0,staticClass:t._$g("3-"+r,"sc"),style:t._$g("3-"+r,"s"),attrs:{_i:"3-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g("4-"+r,"sc"),style:t._$g("4-"+r,"s"),attrs:{_i:"4-"+r}},[t._$g("5-"+r,"i")?a("u-icon",{attrs:{_i:"5-"+r}}):t._e(),t._$g("6-"+r,"i")?a("v-uni-text",{staticClass:t._$g("6-"+r,"sc"),style:t._$g("6-"+r,"s"),attrs:{_i:"6-"+r}},[t._v(t._$g("6-"+r,"t0-0"))]):t._e()],1)],1)})),{_i:2})],2),a("uni-view",{wxsProps:{"change:size":"size","change:status":"status"},staticClass:t._$g(7,"sc"),attrs:{status:t._$gc(7,"change:status"),"change:status":t.wxs.statusChange,size:t._$gc(7,"change:size"),"change:size":t.wxs.sizeChange,_i:7},on:{touchstart:function(e){e=t.$handleWxsEvent(e),t.wxs.touchstart(e,t.$getComponentDescriptor())},touchmove:function(e){e=t.$handleWxsEvent(e),t.wxs.touchmove(e,t.$getComponentDescriptor())},touchend:function(e){e=t.$handleWxsEvent(e),t.wxs.touchend(e,t.$getComponentDescriptor())}}},[t._t("default",null,{_i:8})],2)],1)},r=[]},"60a1":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-ffc72f28]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-ffc72f28]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-ffc72f28]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-ffc72f28]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-ffc72f28]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-ffc72f28]{margin-bottom:24rpx}.material-item-group[data-v-ffc72f28]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-ffc72f28]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-ffc72f28]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-ffc72f28]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-ffc72f28]{flex-shrink:0;color:#909193;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-ffc72f28]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-ffc72f28]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-ffc72f28]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-ffc72f28]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-ffc72f28]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},"610d":function(t,e,a){"use strict";a.r(e);var i=a("b129"),n=a("39a9");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("8fdc");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"d4342702",null,!1,i["a"],void 0);e["default"]=s.exports},6411:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[t._t("left",null,{_i:2})],2):t._e(),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._t("default",null,{_i:4})],2),t._$g(5,"i")?a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[t._t("right",null,{_i:6})],2):t._e()],1)},n=[]},"64cb":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[t._$g(2,"i")?a("v-uni-text",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v("*")]):t._e(),t._v(t._$g(1,"t1-0")+"\uff1a")],1):t._e(),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._$g(4,"i")?a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}}):t._e(),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[a("v-uni-radio-group",{staticStyle:{"{display":"flex","justify-content":"space-evenly"},attrs:{_i:6},on:{change:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(6,"v-model"),callback:function(){},expression:"innerValue"}},t._l(t._$g(7,"f"),(function(e,i,n,r){return a("v-uni-radio",{key:e,attrs:{value:t._$g("7-"+r,"a-value"),shape:t._$g("7-"+r,"a-shape"),_i:"7-"+r}},[t._v(t._$g("7-"+r,"t0-0"))])})),1)],1)],1)],1)},n=[]},"650f":function(t,e,a){"use strict";a.r(e);var i=a("c5c9"),n=a("2d28");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("9dc6");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"eca591a4",null,!1,i["a"],void 0);e["default"]=s.exports},"651d":function(t,e,a){"use strict";a.r(e);var i=a("8fa8"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"65fa":function(t,e,a){"use strict";a.r(e);var i=a("ea47"),n=a("21ef");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},6603:function(t,e,a){"use strict";a.r(e);var i=a("dd02"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"661c":function(t,e,a){"use strict";var i=a("718f"),n=a.n(i);n.a},"669e":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.u-safe-bottom[data-v-eca591a4]{width:100%}',""]),t.exports=e},6705:function(t,e,a){var i=a("fa93");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("a6a5f462",i,!0,{sourceMap:!1,shadowMode:!1})},"673e":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),attrs:{_i:0},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._$g(1,"i")?a("v-uni-image",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{src:t._$g(1,"a-src"),mode:t._$g(1,"a-mode"),_i:1}}):a("v-uni-text",{staticClass:t._$g(2,"sc"),class:t._$g(2,"c"),style:t._$g(2,"s"),attrs:{"hover-class":t._$g(2,"a-hover-class"),_i:2}},[t._v(t._$g(2,"t0-0"))]),t._$g(3,"i")?a("v-uni-text",{staticClass:t._$g(3,"sc"),style:t._$g(3,"s"),attrs:{_i:3}},[t._v(t._$g(3,"t0-0"))]):t._e()],1)},n=[]},"67a6":function(t,e,a){"use strict";a.r(e);var i=a("5839"),n=a("eaca");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"67f9":function(t,e,a){var i=a("24fb"),n=a("b8d8"),r=a("de42"),o=a("5b04"),s=a("ed14");e=i(!1);var c=n(r),u=n(o),l=n(s);e.push([t.i,'@charset "UTF-8";@font-face{font-family:iconfont;src:url('+c+') format("woff2"),url('+u+') format("woff"),url('+l+') format("truetype")}.iconfont{font-family:iconfont!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-check-stock:before{content:"\\e646"}.icon-take_out_store:before{content:"\\e602"}.icon-take_in_store:before{content:"\\e65e"}.icon-change-store:before{content:"\\e609"}.icon-complete-list:before{content:"\\e612"}.icon-page-list:before{content:"\\e622"}.icon-check-list:before{content:"\\e601"}.icon-van:before{content:"\\e65b"}.icon-plan-list:before{content:"\\e611"}.icon-safe-check:before{content:"\\e6a2"}.icon-order:before{content:"\\e618"}.icon-unqualified:before{content:"\\e600"}.icon-transport:before{content:"\\e615"}.icon-pull-off:before{content:"\\e613"}.icon-bind:before{content:"\\e628"}.icon-user-set:before{content:"\\e621"}.icon-house-out:before{content:"\\e614"}.icon-house-in:before{content:"\\e616"}.icon-notice:before{content:"\\e64a"}.icon-user-out:before{content:"\\e80f"}.icon-unbind:before{content:"\\e702"}.icon-door:before{content:"\\e8bf"}.icon-user-in:before{content:"\\e624"}.icon-house-check:before{content:"\\e67f"}.icon-list:before{content:"\\e6e8"}.icon-bill_out:before{content:"\\e675"}.icon-bill_in:before{content:"\\e676"}.icon-empty_in:before{content:"\\e631"}.icon-empty_out:before{content:"\\e632"}.icon-worker:before{content:"\\e93f"}.icon-bell:before{content:"\\e64e"}.icon-out-left:before{content:"\\e620"}.icon-out-right:before{content:"\\e60d"}.icon-machine:before{content:"\\e64b"}.icon-agv:before{content:"\\e649"}.icon-equipment:before{content:"\\e64d"}.icon-task:before{content:"\\e63f"}.icon-chart:before{content:"\\e846"}.icon-archives:before{content:"\\e890"}.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial}.u-reset-button::after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#fce6cc}.u-warning-light{color:#f7acf7}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#fce6cc}.u-warning-light-bg{background-color:#f7acf7}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#d07204}.u-warning-dark{color:#d303d3}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#d07204}.u-warning-dark-bg{background-color:#d303d3}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#f8c07f}.u-warning-disabled{color:#f55ef5}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#f18201}.u-warning{color:#f0f}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#f18201}.u-warning-bg{background-color:#f0f}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.app-page{font-size:28rpx;color:#333;background-color:#fff;box-sizing:border-box;overflow:hidden}.auto-wrap{word-break:break-all;word-wrap:break-word}.no-wrap, .ellipsis{white-space:nowrap}.ellipsis{overflow:hidden;text-overflow:ellipsis}.ml{margin-left:12rpx}.mr{margin-right:12rpx}.no-more-text-row{text-align:center;color:#999;padding:4rpx 0}.page-frame{position:relative;box-sizing:border-box}.page-frame.with-action-user-row{padding-top:54rpx}.page-frame .with-action-user-row-page-content{height:100%;position:relative;box-sizing:border-box;overflow:auto}.link-text, .enable-input{color:#f18201;text-decoration:underline}',""]),t.exports=e},"687f":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uvInput",{attrs:{_i:0},on:{focus:function(e){return t.$handleViewEvent(e)},blur:function(e){return t.$handleViewEvent(e)},keyboardheightchange:function(e){return t.$handleViewEvent(e)},change:function(e){return t.$handleViewEvent(e)},input:function(e){return t.$handleViewEvent(e)},confirm:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)},click:function(e){return t.$handleViewEvent(e)}}},[t._t("prefix",null,{_i:1}),t._t("suffix",null,{_i:2})],2)},n=[]},"6a59":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default,"u-Form":a("9d87").default,uFormItem:a("354d").default,"u-Input":a("fa14").default,uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header-page-layout",{ref:"header",attrs:{_i:0},on:{headerclick:function(e){return t.$handleViewEvent(e)}},scopedSlots:t._u([{key:"headerleft",fn:function(t,e,i){return[a("u-icon",{attrs:{_i:"2-"+i}})]}},{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("8-"+n,"sc"),attrs:{_i:"8-"+n}},[a("u-button",{attrs:{_i:"9-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]}}])},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("u--form",{ref:"form",attrs:{_i:4}},[a("u-form-item",{attrs:{_i:5}},[a("u--input",{attrs:{_i:6},model:{value:t._$g(6,"v-model"),callback:function(){},expression:"form.host"}})],1)],1)],1)],1)},r=[]},"6c35":function(t,e,a){"use strict";a.r(e);var i=a("8074"),n=a("578b");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("e715");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"55cfca04",null,!1,i["a"],void 0);e["default"]=s.exports},"6cda":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["materialData"],data:function(){return{wxsProps:{}}},components:{}}},"6d58":function(t,e,a){var i=a("f6d6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("278a5bee",i,!0,{sourceMap:!1,shadowMode:!1})},"6d90":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-2f0e5305], uni-scroll-view[data-v-2f0e5305], uni-swiper-item[data-v-2f0e5305]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-line[data-v-2f0e5305]{vertical-align:middle}',""]),t.exports=e},"6e05":function(t,e,a){"use strict";a.r(e);var i=a("64cb"),n=a("910c");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("0cee");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"f4c4fa34",null,!1,i["a"],void 0);e["default"]=s.exports},"6f49":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("9617")),r={name:"u--input",data:function(){return{wxsProps:{}}},components:{uvInput:n.default}};e.default=r},"712b":function(t,e,a){"use strict";var i=a("591d"),n=a.n(i);n.a},"714d":function(t,e,a){"use strict";a.r(e);var i=a("e9d1"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"718f":function(t,e,a){var i=a("2b77");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("cb01d19a",i,!0,{sourceMap:!1,shadowMode:!1})},"733c":function(t,e,a){"use strict";a.r(e);var i=a("e8dc"),n=a("e551");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("d525");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"08e3935c",null,!1,i["a"],void 0);e["default"]=s.exports},7395:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-icon",data:function(){return{wxsProps:{}}},components:{}}},"73e9":function(t,e,a){"use strict";a.r(e);var i=a("7eb4"),n=a("ce91");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"d782867e",null,!1,i["a"],void 0);e["default"]=s.exports},"752e":function(t,e,a){var i=a("ee49");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("24401b24",i,!0,{sourceMap:!1,shadowMode:!1})},"76f6":function(t,e,a){"use strict";a.r(e);var i=a("d800"),n=a("bc03");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("29e4");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"62fba990",null,!1,i["a"],void 0);e["default"]=s.exports},"771a":function(t,e,a){"use strict";a.r(e);var i=a("8e57"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"775d":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.p-form-label[data-v-e673f626]{font-size:32px;color:#909193;padding-bottom:12px;padding-left:20px}.bottom-btns-row[data-v-e673f626]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-e673f626]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-e673f626]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-e673f626]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-e673f626]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-e673f626]{margin-bottom:24rpx}.material-item-group[data-v-e673f626]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-e673f626]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-e673f626]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-e673f626]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-e673f626]{flex-shrink:0;color:#909193;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-e673f626]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-e673f626]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-e673f626]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-e673f626]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-e673f626]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},7930:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("7-"+n,"sc"),attrs:{_i:"7-"+n}},[a("uni-view",{staticClass:i._$g("8-"+n,"sc"),attrs:{_i:"8-"+n}},[a("u-button",{attrs:{_i:"9-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)],1)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("easy-select-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{select:function(e){return t.$handleViewEvent(e)}}}),a("scan-input-form-item",{staticClass:t._$g(5,"sc"),attrs:{_i:5}})],1)],1):t._e()],1)},r=[]},"793b":function(t,e,a){"use strict";a.r(e);var i=a("a7b2"),n=a("4423");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("207f");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"2fd500a1",null,!1,i["a"],void 0);e["default"]=s.exports},"7a24":function(t,e,a){var i=a("524c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("1bb0866a",i,!0,{sourceMap:!1,shadowMode:!1})},"7a74":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("10-"+n,"sc"),attrs:{_i:"10-"+n}},[[a("div",{staticClass:i._$g("12-"+n,"sc"),attrs:{_i:"12-"+n}},[a("u-button",{attrs:{_i:"13-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("scan-input-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(4,"v-model"),callback:function(){},expression:"form.containterNo"}}),a("scan-input-form-item",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{search:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(5,"v-model"),callback:function(){},expression:"form.materialId"}}),a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._v("\u62e3\u8d27\u660e\u7ec6")]),a("sortInfo",{attrs:{_i:7}}),a("contentCard",{attrs:{_i:8},on:{delMaterialData:function(e){return t.$handleViewEvent(e)},"item-click":function(e){return t.$handleViewEvent(e)}}})],1)],1):t._e()],1)},r=[]},"7a98":function(t,e,a){"use strict";var i=a("e540"),n=a.n(i);n.a},"7b46":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-popup",data:function(){return{wxsProps:{}}},components:{}}},"7c89":function(t,e,a){var i=a("6d90");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("2968c132",i,!0,{sourceMap:!1,shadowMode:!1})},"7cef":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("b62a")),c=i(a("733c")),u=i(a("65fa")),l=i(a("05aa")),d={name:"emptyInPage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,EasySelectFormItem:s.default,EasyPicker:c.default,exceptionPlace:u.default,materialInfo:l.default}};e.default=d},"7cf2":function(t,e,a){"use strict";var i=a("6d58"),n=a.n(i);n.a},"7da2":function(t,e,a){var i=a("acf6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("6d22712f",i,!0,{sourceMap:!1,shadowMode:!1})},"7eb4":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},n=[]},"7f69":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uLoadingIcon:a("fbfa").default},n=function(){var t=this.$createElement,e=this._self._c||t;return e("full-page-layout",{attrs:{_i:0}},[e("uni-view",{staticClass:this._$g(1,"sc"),attrs:{_i:1}},[e("u-loading-icon",{attrs:{_i:2}})],1)],1)},r=[]},"7f7e":function(t,e,a){"use strict";function i(t,e){for(var a=[],i={},n=0;n<e.length;n++){var r=e[n],o=r[0],s=r[1],c=r[2],u=r[3],l={id:t+":"+n,css:s,media:c,sourceMap:u};i[o]?i[o].parts.push(l):a.push(i[o]={id:o,parts:[l]})}return a}a.r(e),a.d(e,"default",(function(){return p}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,a,n){u=a,d=n||{};var o=i(t,e);return v(o),function(e){for(var a=[],n=0;n<o.length;n++){var s=o[n],c=r[s.id];c.refs--,a.push(c)}e?(o=i(t,e),v(o)):o=[];for(n=0;n<a.length;n++){c=a[n];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete r[c.id]}}}}function v(t){for(var e=0;e<t.length;e++){var a=t[e],i=r[a.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](a.parts[n]);for(;n<a.parts.length;n++)i.parts.push(g(a.parts[n]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{var o=[];for(n=0;n<a.parts.length;n++)o.push(g(a.parts[n]));r[a.id]={id:a.id,refs:1,parts:o}}}}function _(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function g(t){var e,a,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(u)return l;i.parentNode.removeChild(i)}if(f){var n=c++;i=s||(s=_()),e=m.bind(null,i,n,!1),a=m.bind(null,i,n,!0)}else i=_(),e=x.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}var b=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function m(t,e,a,i){var n=a?"":E(i.css);if(t.styleSheet)t.styleSheet.cssText=b(e,n);else{var r=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function x(t,e){var a=E(e.css),i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),d.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),n&&(a+="\n/*# sourceURL="+n.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var w=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,h=/var\(--status-bar-height\)/gi,$=/var\(--window-top\)/gi,y=/var\(--window-bottom\)/gi,C=/var\(--window-left\)/gi,k=/var\(--window-right\)/gi,O=!1;function E(t){if(!uni.canIUse("css.var")){!1===O&&(O=plus.navigator.getStatusbarHeight());var e={statusBarHeight:O,top:window.__WINDOW_TOP||0,bottom:window.__WINDOW_BOTTOM||0};t=t.replace(h,e.statusBarHeight+"px").replace($,e.top+"px").replace(y,e.bottom+"px").replace(C,"0px").replace(k,"0px")}return t.replace(/\{[\s\S]+?\}|@media.+?\{/g,(function(t){return t.replace(w,(function(t,e){return uni.upx2px(e)+"px"}))}))}},8074:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return this._$g(0,"i")?e("v-uni-text",{staticClass:this._$g(0,"sc"),class:this._$g(0,"c"),style:this._$g(0,"s"),attrs:{_i:0}},[this._v(this._$g(0,"t0-0"))]):this._e()},n=[]},"826e":function(t,e,a){"use strict";var i=a("5cd8"),n=a.n(i);n.a},8489:function(t,e,a){"use strict";a.r(e);var i=a("05b2"),n=a("fbce");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("0bcc");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"186edb96",null,!1,i["a"],void 0);e["default"]=s.exports},"84c4":function(t,e,a){"use strict";a.r(e);var i=a("4ad7"),n=a("1499");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("53fa");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"76e55d42",null,!1,i["a"],void 0);e["default"]=s.exports},"85be":function(t,e,a){"use strict";a.r(e);var i=a("4261"),n=a("db18");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("c97f");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"492eba8e",null,!1,i["a"],void 0);e["default"]=s.exports},8663:function(t,e,a){"use strict";a.r(e);var i=a("6a59"),n=a("aece");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("05d7");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"105a0781",null,!1,i["a"],void 0);e["default"]=s.exports},"86fc":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-form",data:function(){return{wxsProps:{}}},components:{}}},"878d":function(t,e,a){"use strict";var i=a("f4f0"),n=a.n(i);n.a},"884b":function(t,e,a){"use strict";a.r(e);var i=a("4b15"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"8b7f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["contaninerData"],data:function(){return{wxsProps:{}}},components:{}}},"8be2":function(t,e,a){"use strict";var i=a("a889"),n=a.n(i);n.a},"8c21":function(t,e,a){var i=a("3e13");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("1cb62920",i,!0,{sourceMap:!1,shadowMode:!1})},"8ddc":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-5f253122]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-5f253122]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-5f253122]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-5f253122]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-5f253122]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-5f253122]{margin-bottom:24rpx}.material-item-group[data-v-5f253122]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-5f253122]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-5f253122]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-5f253122]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-5f253122]{flex-shrink:0;color:#909193;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-5f253122]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-5f253122]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-5f253122]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-5f253122]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-5f253122]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}.label[data-v-5f253122]{margin-left:25rpx;font-size:30rpx}',""]),t.exports=e},"8e2b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"actionUserRowCompontent",data:function(){return{wxsProps:{}}},components:{}}},"8e57":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("b62a")),c=i(a("76f6")),u=i(a("733c")),l={name:"receiveInPage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,EasySelectFormItem:s.default,materialList:c.default,EasyPicker:u.default}};e.default=l},"8f1b":function(t,e,a){"use strict";a.r(e);var i=a("c92c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"8f20":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"ScanInputFormItemCompontent",props:["type","label","placeholder","msg","msgType","value","hasScan","hasSearch","disabled","clearable","required"],data:function(){return{wxsProps:{}}},components:{}}},"8f91":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("8-"+n,"sc"),attrs:{_i:"8-"+n}},[[a("div",{staticClass:i._$g("10-"+n,"sc"),attrs:{_i:"10-"+n}},[a("u-button",{attrs:{_i:"11-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("scan-input-form-item",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(4,"v-model"),callback:function(){},expression:"form.containerNo"}}),a("selectItem",{directives:[{name:"show",rawName:"v-show",value:t._$g(5,"v-show"),expression:"_$g(5,'v-show')"}],attrs:{_i:5},on:{"update:value":function(e){return t.$handleViewEvent(e)}}}),a("selectItem",{directives:[{name:"show",rawName:"v-show",value:t._$g(6,"v-show"),expression:"_$g(6,'v-show')"}],attrs:{_i:6},on:{"update:value":function(e){return t.$handleViewEvent(e)}}})],1)],1):t._e()],1)},r=[]},"8fa8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-swipe-action",data:function(){return{wxsProps:{}}},components:{}}},"8fdc":function(t,e,a){"use strict";var i=a("6705"),n=a.n(i);n.a},"90a8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-badge",data:function(){return{wxsProps:{}}},components:{}}},"90e1":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={"u-Input":a("fa14").default,uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[t._$g(2,"i")?a("v-uni-text",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v("*")]):t._e(),t._v(t._$g(1,"t1-0")+"\uff1a")],1):t._e(),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._$g(4,"i")?a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}}):t._e(),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[a("u--input",{attrs:{_i:6},on:{clear:function(e){return t.$handleViewEvent(e)},blur:function(e){return t.$handleViewEvent(e)},confirm:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(6,"v-model"),callback:function(){},expression:"innerValue"}})],1),t._$g(7,"i")?a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("uni-view",{attrs:{_i:8},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("u-icon",{attrs:{_i:9}})],1)],1):t._e(),t._$g(10,"i")?a("uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}},[a("uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[t._v("\u641c")])],1):t._e()],1),t._$g(12,"i")?a("uni-view",{staticClass:t._$g(12,"sc"),class:t._$g(12,"c"),attrs:{_i:12}},[t._v(t._$g(12,"t0-0"))]):t._e()],1)},r=[]},"90ef":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[t._v("\u5e93\u4f4d\u8be6\u60c5\uff1a")]),t._$g(2,"i")?a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[t._v("\u5e93\u4f4d\u7f16\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._v(t._$g(6,"t0-0"))])],1),a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("uni-view",{staticClass:t._$g(8,"sc"),attrs:{_i:8}},[t._v("\u6240\u5c5e\u5e93\u533a\uff1a")]),a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[t._v(t._$g(9,"t0-0"))])],1)],1)],1):t._e()],1)},n=[]},"910c":function(t,e,a){"use strict";a.r(e);var i=a("e521"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"92ba":function(t,e,a){var i=a("cb85");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("02e7d7ec",i,!0,{sourceMap:!1,shadowMode:!1})},"960e":function(t,e,a){"use strict";var i=a("9884"),n=a.n(i);n.a},9617:function(t,e,a){"use strict";a.r(e);var i=a("5ad8"),n=a("ccae");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("2f05");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"484fabe5",null,!1,i["a"],void 0);e["default"]=s.exports},9884:function(t,e,a){var i=a("8ddc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("1cb57e62",i,!0,{sourceMap:!1,shadowMode:!1})},"98c6":function(t,e,a){var i=a("775d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("0b0ee456",i,!0,{sourceMap:!1,shadowMode:!1})},"9a1c":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("scan-input-form-item",{staticClass:t._$g(1,"sc"),attrs:{_i:1},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(1,"v-model"),callback:function(){},expression:"station"}}),a("EasyPicker",{attrs:{_i:2},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],1)},n=[]},"9a83":function(t,e,a){"use strict";a.r(e);var i=a("318c"),n=a("3642");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("7a98");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"0fcd34dd",null,!1,i["a"],void 0);e["default"]=s.exports},"9acf":function(t,e,a){"use strict";a.r(e);var i=a("118a"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"9ba3":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-571145bd]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-571145bd]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-571145bd]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-571145bd]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-571145bd]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-571145bd]{margin-bottom:24rpx}.material-item-group[data-v-571145bd]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-571145bd]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:50rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-571145bd]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-571145bd]{display:flex;padding:10px 0;border-bottom:1px solid #ccc}.material-item-group .material-list-item .item-row .label[data-v-571145bd]{flex-shrink:0;color:#000;width:150rpx;text-align-last:justify;text-align:justify}.material-item-group .material-list-item .item-row .content[data-v-571145bd]{flex-grow:1;color:#606266}.material-item-group .material-list-item .badge-box[data-v-571145bd]{position:absolute;top:8rpx;left:8rpx;z-index:1}',""]),t.exports=e},"9d87":function(t,e,a){"use strict";a.r(e);var i=a("d14a"),n=a("f6ac");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"9dc6":function(t,e,a){"use strict";var i=a("9e40"),n=a.n(i);n.a},"9e40":function(t,e,a){var i=a("669e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("b6959d62",i,!0,{sourceMap:!1,shadowMode:!1})},"9eb0":function(t,e,a){"use strict";a.r(e);var i=a("6411"),n=a("c5b6");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("4cf9");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"38672886",null,!1,i["a"],void 0);e["default"]=s.exports},"9f1d":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uLoadingIcon:a("fbfa").default,uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-button",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{"hover-start-time":t._$g(0,"a-hover-start-time"),"hover-stay-time":t._$g(0,"a-hover-stay-time"),"form-type":t._$g(0,"a-form-type"),"open-type":t._$g(0,"a-open-type"),"app-parameter":t._$g(0,"a-app-parameter"),"hover-stop-propagation":t._$g(0,"a-hover-stop-propagation"),"send-message-title":t._$g(0,"a-send-message-title"),"send-message-path":t._$g(0,"a-send-message-path"),lang:t._$g(0,"a-lang"),"data-name":t._$g(0,"a-data-name"),"session-from":t._$g(0,"a-session-from"),"send-message-img":t._$g(0,"a-send-message-img"),"show-message-card":t._$g(0,"a-show-message-card"),"hover-class":t._$g(0,"a-hover-class"),_i:0},on:{getphonenumber:function(e){return t.$handleViewEvent(e)},getuserinfo:function(e){return t.$handleViewEvent(e)},error:function(e){return t.$handleViewEvent(e)},opensetting:function(e){return t.$handleViewEvent(e)},launchapp:function(e){return t.$handleViewEvent(e)},click:function(e){return t.$handleViewEvent(e)}}},[t._$g(1,"i")?[a("u-loading-icon",{attrs:{_i:2}}),a("v-uni-text",{staticClass:t._$g(3,"sc"),style:t._$g(3,"s"),attrs:{_i:3}},[t._v(t._$g(3,"t0-0"))])]:[t._$g(5,"i")?a("u-icon",{attrs:{_i:5}}):t._e(),t._t("default",[a("v-uni-text",{staticClass:t._$g(7,"sc"),style:t._$g(7,"s"),attrs:{_i:7}},[t._v(t._$g(7,"t0-0"))])],{_i:6})]],2)},r=[]},a019:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".material-item-group[data-v-0fcd34dd]{padding-top:10rpx;.material-list-item{border-bottom:2rpx solid $uni-border-color;padding-bottom:10rpx;padding-left:60rpx;position:relative;&:last-child{border-bottom:0}.item-row{display:flex;.label{flex-shrink:0;color:#000;width:144rpx}&>.content{flex-grow:1;color:$u-content-color;uni-input{font:inherit;color:$u-primary;text-decoration:underline}}}.badge-box{position:absolute;top:8rpx;left:8rpx;z-index:1}.close-btn{$closeBtnSize:70rpx;width:$closeBtnSize;height:$closeBtnSize;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:$u-error;opacity:.6;border-radius:25rpx;.icon-layer{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}}}}",""]),t.exports=e},a08f:function(t,e,a){var i=a("2faa");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("6faf8910",i,!0,{sourceMap:!1,shadowMode:!1})},a2c1:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3533")),r=i(a("a47e")),o={name:"homePage",data:function(){return{wxsProps:{}}},components:{FullPageLayout:n.default,HeaderPageLayout:r.default}};e.default=o},a3e1:function(t,e,a){"use strict";a.r(e);var i=a("7930"),n=a("884b");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("430f");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"5c4eceb6",null,!1,i["a"],void 0);e["default"]=s.exports},a47e:function(t,e,a){"use strict";a.r(e);var i=a("045d"),n=a("9acf");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("c761");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"29e4d0f1",null,!1,i["a"],void 0);e["default"]=s.exports},a4ff:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("b62a")),c=i(a("733c")),u=i(a("85be")),l=i(a("44bb")),d={name:"emptyInPage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,EasySelectFormItem:s.default,EasyPicker:c.default,contentCard:u.default,sortInfo:l.default}};e.default=d},a641:function(t,e,a){"use strict";a.r(e);var i=a("fa03"),n=a("2bbb");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("0ab7");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"3cc17447",null,!1,i["a"],void 0);e["default"]=s.exports},a6a4:function(t,e,a){var i=a("49fc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("f4b35bfa",i,!0,{sourceMap:!1,shadowMode:!1})},a6ce:function(t,e,a){var i=a("e4f4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("7e23880d",i,!0,{sourceMap:!1,shadowMode:!1})},a701:function(t,e,a){"use strict";a.r(e);var i=a("8f91"),n=a("b29b");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("960e");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"5f253122",null,!1,i["a"],void 0);e["default"]=s.exports},a7b2:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uSwiper:a("610d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("full-page-layout",{attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("header-page-layout",{ref:"page",attrs:{_i:3},on:{headerclick:function(e){return t.$handleViewEvent(e)}},scopedSlots:t._u([{key:"headerright",fn:function(t,e,i){return[a("v-uni-text",{staticClass:e._$g("5-"+i,"sc"),attrs:{_i:"5-"+i}})]}}])},[t._$g(6,"i")?a("uni-view",{staticClass:t._$g(6,"sc"),style:t._$g(6,"s"),attrs:{_i:6}},[a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("uni-view",{staticClass:t._$g(8,"sc"),attrs:{_i:8}},[a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[a("uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}},[a("v-uni-text",{staticClass:t._$g(11,"sc"),attrs:{_i:11}})],1)],1),a("uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12}},[a("uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))]),a("uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14}},[t._v(t._$g(14,"t0-0"))])],1)],1)],1),a("uni-view",{staticClass:t._$g(15,"sc"),attrs:{_i:15}},[t._$g(16,"i")?a("uni-view",{staticClass:t._$g(16,"sc"),attrs:{_i:16}},[a("u-swiper",{attrs:{_i:17}})],1):t._e(),t._l(t._$g(18,"f"),(function(e,i,n,r){return a("uni-view",{key:e,staticClass:t._$g("18-"+r,"sc"),attrs:{_i:"18-"+r}},[t._$g("19-"+r,"i")?a("uni-view",{staticClass:t._$g("19-"+r,"sc"),attrs:{_i:"19-"+r}},[t._v(t._$g("19-"+r,"t0-0"))]):t._e(),a("uni-view",{staticClass:t._$g("20-"+r,"sc"),attrs:{_i:"20-"+r}},t._l(t._$g("21-"+r,"f"),(function(e,i,n,o){return a("uni-view",{key:e,staticClass:t._$g("21-"+r+"-"+o,"sc"),attrs:{_i:"21-"+r+"-"+o},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g("22-"+r+"-"+o,"sc"),style:t._$g("22-"+r+"-"+o,"s"),attrs:{_i:"22-"+r+"-"+o}},[a("v-uni-text",{staticClass:t._$g("23-"+r+"-"+o,"sc"),class:t._$g("23-"+r+"-"+o,"c"),attrs:{_i:"23-"+r+"-"+o}}),a("uni-view",{staticClass:t._$g("24-"+r+"-"+o,"sc"),attrs:{_i:"24-"+r+"-"+o}})],1),a("uni-view",{staticClass:t._$g("25-"+r+"-"+o,"sc"),attrs:{_i:"25-"+r+"-"+o}},[t._v(t._$g("25-"+r+"-"+o,"t0-0"))])],1)})),1)],1)}))],2)],1):t._e()],1)],1)],1)},r=[]},a808:function(t,e,a){"use strict";a.r(e);var i=a("603e"),n=a("d23b");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("7cf2");var o=a("f0c5"),s=a("b263"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"7a1b870a",null,!1,i["a"],void 0);"function"===typeof s["a"]&&Object(s["a"])(c),e["default"]=c.exports},a889:function(t,e,a){var i=a("dbba");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("8e30e4da",i,!0,{sourceMap:!1,shadowMode:!1})},a8df:function(t,e,a){"use strict";a.r(e);var i=a("90ef"),n=a("40f2");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("826e");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"13c921e5",null,!1,i["a"],void 0);e["default"]=s.exports},aa8d:function(t,e,a){var i=a("28ab");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("74979f8f",i,!0,{sourceMap:!1,shadowMode:!1})},aaa4:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-b2a05bc2], uni-scroll-view[data-v-b2a05bc2], uni-swiper-item[data-v-b2a05bc2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-overlay[data-v-b2a05bc2]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7)}',""]),t.exports=e},aacf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-swiper-indicator",data:function(){return{wxsProps:{}}},components:{}}},ac44:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.radio-input-form-item-component[data-v-f4c4fa34]{width:100%}.radio-input-form-item-component .p-form-label[data-v-f4c4fa34]{font-size:32rpx;color:#909193;padding-bottom:12rpx;padding-left:20rpx}.radio-input-form-item-component .p-form-label .required-tag[data-v-f4c4fa34]{color:#f56c6c}.radio-input-form-item-component .input-row[data-v-f4c4fa34]{width:100%;height:90rpx;overflow:hidden;background-color:#fff;display:flex;align-items:center;position:relative}.radio-input-form-item-component .input-row .scan-view[data-v-f4c4fa34],\r\n.radio-input-form-item-component .input-row .btn-view[data-v-f4c4fa34]{flex-shrink:0}.radio-input-form-item-component .input-row .scan-view[data-v-f4c4fa34]{display:flex;align-items:center;justify-content:center;padding-right:10rpx}.radio-input-form-item-component .input-row .input-view[data-v-f4c4fa34]{flex-grow:1;padding-left:20rpx}.radio-input-form-item-component .input-row .input-view .custom-radio-group[data-v-f4c4fa34]{display:flex}.radio-input-form-item-component .input-row .input-view .custom-radio-group .uni-radio[data-v-f4c4fa34]{display:flex}.radio-input-form-item-component .input-row > .mask[data-v-f4c4fa34]{position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-color:#fff;opacity:.25}.radio-input-form-item-component .msg-row[data-v-f4c4fa34]{padding:6rpx 20rpx 0 20rpx;line-height:1.3;font-size:24rpx;color:#f56c6c;word-break:break-all;word-wrap:break-word}.radio-input-form-item-component .msg-row.info-type[data-v-f4c4fa34]{color:#007aff}[data-v-f4c4fa34] uni-radio{margin-right:20rpx}',""]),t.exports=e},ac91:function(t,e,a){"use strict";a.r(e);var i=a("00bf"),n=a("771a");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("0832");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"5a296cfe",null,!1,i["a"],void 0);e["default"]=s.exports},acf6:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.scan-input-form-item-compontent[data-v-79d41e89]{width:100%}.scan-input-form-item-compontent .p-form-label[data-v-79d41e89]{font-size:32rpx;color:#909193;padding-bottom:12rpx;padding-left:20rpx}.scan-input-form-item-compontent .p-form-label .required-tag[data-v-79d41e89]{color:#f56c6c}.scan-input-form-item-compontent .input-row[data-v-79d41e89]{width:100%;height:75rpx;overflow:hidden;background-color:#fff;display:flex;align-items:center;position:relative}.scan-input-form-item-compontent .input-row .scan-view[data-v-79d41e89], .scan-input-form-item-compontent .input-row .btn-view[data-v-79d41e89]{flex-shrink:0}.scan-input-form-item-compontent .input-row .scan-view[data-v-79d41e89]{display:flex;align-items:center;justify-content:center;padding-right:10rpx}.scan-input-form-item-compontent .input-row .input-view[data-v-79d41e89]{flex-grow:1;padding-left:20rpx}.scan-input-form-item-compontent .input-row .btn-view[data-v-79d41e89]{width:70rpx;height:100%;padding:20rpx;padding-left:0rpx;box-sizing:border-box}.scan-input-form-item-compontent .input-row .btn-view .search-btn[data-v-79d41e89]{height:100%;width:100%;border-radius:8rpx;background:linear-gradient(157.34282deg,#c280ff -20%,#c280ff -19%,#8400ff 119%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:26rpx}.scan-input-form-item-compontent .input-row > .mask[data-v-79d41e89]{position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-color:#fff;opacity:.25}.scan-input-form-item-compontent .msg-row[data-v-79d41e89]{padding:6rpx 20rpx 0 20rpx;line-height:1.3;font-size:24rpx;color:#f56c6c;word-break:break-all;word-wrap:break-word}.scan-input-form-item-compontent .msg-row.info-type[data-v-79d41e89]{color:#007aff}',""]),t.exports=e},ade4:function(t,e,a){"use strict";a.r(e);var i=a("584f"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},ade42:function(t,e,a){"use strict";a.r(e);var i=a("7f69"),n=a("c92b");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("5ff9");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"76a8517b",null,!1,i["a"],void 0);e["default"]=s.exports},ae5a:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("a47e")),r={name:"hostSettingPage",data:function(){return{wxsProps:{}}},components:{HeaderPageLayout:n.default}};e.default=r},aece:function(t,e,a){"use strict";a.r(e);var i=a("ae5a"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},af94:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".material-item-group[data-v-44070ee4]{padding-top:10rpx;.material-list-item{border-bottom:2rpx solid $uni-border-color;padding-bottom:10rpx;padding-left:20rpx;position:relative;&:last-child{border-bottom:0}.item-row{display:grid;grid-template-columns:repeat(2,1fr);grid-column-gap:10px;.label-content{display:flex;align-items:center;.label{flex-shrink:0;color:#000}.content{flex-grow:1;color:$u-content-color}}}.item-row-sign{display:grid;grid-template-columns:repeat(1,1fr);grid-column-gap:10px;.label-content{display:flex;align-items:center;.label{flex-shrink:0;color:#000}.content{flex-grow:1;color:$u-content-color}}}.badge-box{position:absolute;top:8rpx;left:8rpx;z-index:1}.close-btn{$closeBtnSize:70rpx;width:$closeBtnSize;height:$closeBtnSize;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:$u-error;opacity:.6;border-radius:25rpx;.icon-layer{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}}}}",""]),t.exports=e},b029:function(t,e,a){"use strict";a.r(e);var i=a("b197"),n=a("cae8");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("712b");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"30282a05",null,!1,i["a"],void 0);e["default"]=s.exports},b057:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),style:this._$g(0,"s"),attrs:{_i:0}})},n=[]},b078:function(t,e,a){var i=a("33a2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("1a050626",i,!0,{sourceMap:!1,shadowMode:!1})},b129:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uLoadingIcon:a("fbfa").default,uSwiperIndicator:a("f18c").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),style:t._$g(0,"s"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("u-loading-icon",{attrs:{_i:2}})],1):a("v-uni-swiper",{staticClass:t._$g(3,"sc"),style:t._$g(3,"s"),attrs:{circular:t._$g(3,"a-circular"),interval:t._$g(3,"a-interval"),duration:t._$g(3,"a-duration"),autoplay:t._$g(3,"a-autoplay"),current:t._$g(3,"a-current"),currentItemId:t._$g(3,"a-currentItemId"),previousMargin:t._$g(3,"a-previousMargin"),nextMargin:t._$g(3,"a-nextMargin"),acceleration:t._$g(3,"a-acceleration"),displayMultipleItems:t._$g(3,"a-displayMultipleItems"),easingFunction:t._$g(3,"a-easingFunction"),_i:3},on:{change:function(e){return t.$handleViewEvent(e)}}},t._l(t._$g(4,"f"),(function(e,i,n,r){return a("v-uni-swiper-item",{key:e,staticClass:t._$g("4-"+r,"sc"),attrs:{_i:"4-"+r}},[a("uni-view",{staticClass:t._$g("5-"+r,"sc"),style:t._$g("5-"+r,"s"),attrs:{_i:"5-"+r}},[t._$g("6-"+r,"i")?a("v-uni-image",{staticClass:t._$g("6-"+r,"sc"),style:t._$g("6-"+r,"s"),attrs:{src:t._$g("6-"+r,"a-src"),mode:t._$g("6-"+r,"a-mode"),_i:"6-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}}):t._e(),t._$g("7-"+r,"i")?a("v-uni-video",{staticClass:t._$g("7-"+r,"sc"),style:t._$g("7-"+r,"s"),attrs:{id:t._$g("7-"+r,"a-id"),"enable-progress-gesture":!1,src:t._$g("7-"+r,"a-src"),poster:t._$g("7-"+r,"a-poster"),title:t._$g("7-"+r,"a-title"),controls:!0,_i:"7-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}}):t._e(),t._$g("8-"+r,"i")?a("v-uni-text",{staticClass:t._$g("8-"+r,"sc"),attrs:{_i:"8-"+r}},[t._v(t._$g("8-"+r,"t0-0"))]):t._e()],1)],1)})),1),a("uni-view",{staticClass:t._$g(9,"sc"),style:t._$g(9,"s"),attrs:{_i:9}},[t._t("indicator",[t._$g(11,"i")?a("u-swiper-indicator",{attrs:{_i:11}}):t._e()],{_i:10})],2)],1)},r=[]},b12b:function(t,e,a){"use strict";a.r(e);var i=a("4756"),n=a("e3e5");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("8be2");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"a75f7a08",null,!1,i["a"],void 0);e["default"]=s.exports},b197:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uOverlay:a("514e").default,uTransition:a("b12b").default,uStatusBar:a("8489").default,uIcon:a("5a09").default,uSafeBottom:a("650f").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[t._$g(1,"i")?a("u-overlay",{attrs:{_i:1},on:{click:function(e){return t.$handleViewEvent(e)}}}):t._e(),a("u-transition",{attrs:{_i:2},on:{afterEnter:function(e){return t.$handleViewEvent(e)},click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g(3,"sc"),style:t._$g(3,"s"),attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[t._$g(4,"i")?a("u-status-bar",{attrs:{_i:4}}):t._e(),t._t("default",null,{_i:5}),t._$g(6,"i")?a("uni-view",{staticClass:t._$g(6,"sc"),class:t._$g(6,"c"),attrs:{"hover-class":"u-popup__content__close--hover","hover-stay-time":"150",_i:6},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("u-icon",{attrs:{_i:7}})],1):t._e(),t._$g(8,"i")?a("u-safe-bottom",{attrs:{_i:8}}):t._e()],2)],1)],1)},r=[]},b1e0:function(t,e,a){"use strict";var i=a("b078"),n=a.n(i);n.a},b263:function(t,e,a){"use strict";e["a"]=function(t){(t.options.wxs||(t.options.wxs={}))["wxs"]=function(t){function e(t){return t.toString().indexOf("s")>=0?t:t>30?t+"ms":t+"s"}function a(t,e,a){e.getState(),a.selectAllComponents(".u-swipe-action-item__right__button");e.requestAnimationFrame((function(){e.setStyle({transition:"none",transform:"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)"})}))}function i(t,a){var i=t.getState(),r=(a.selectAllComponents(".u-swipe-action-item__right__button"),e(i.duration)),o=-i.buttonsWidth;t.requestAnimationFrame((function(){t.setStyle({transition:"transform "+r,transform:"translateX("+o+"px)","-webkit-transform":"translateX("+o+"px)"})})),n("open",t,a)}function n(t,e,a){var i=e.getState();i.status=t,a.callMethod("setState",t)}function r(t,a){var i=t.getState(),r=a.selectAllComponents(".u-swipe-action-item__right__button"),o=r.length,s=e(i.duration);t.requestAnimationFrame((function(){t.setStyle({transition:"transform "+s,transform:"translateX(0px)","-webkit-transform":"translateX(0px)"});for(var e=o-1;e>=0;e--)r[e].setStyle({transition:"transform "+s,transform:"translateX(0px)","-webkit-transform":"translateX(0px)"})})),n("close",t,a)}return t.exports={touchstart:function(t,e){var a=t.instance,i=a.getState();if(!i.disabled){var n=t.touches;n&&n.length>1||(i.moving=!0,i.startX=n[0].pageX,i.startY=n[0].pageY,e.callMethod("closeOther"))}},touchmove:function(t,e){var i=t.instance,n=i.getState();if(!n.disabled&&n.moving){var r=t.touches,o=r[0].pageX,s=r[0].pageY,c=o-n.startX,u=s-n.startY,l=n.buttonsWidth;(Math.abs(c)>Math.abs(u)||Math.abs(c)>n.threshold)&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation()),Math.abs(c)<Math.abs(u)||("open"===n.status?(c<0&&(c=0),c>l&&(c=l),a(-l+c,i,e)):(c>0&&(c=0),Math.abs(c)>l&&(c=-l),a(c,i,e)))}},touchend:function(t,e){var a=t.instance,n=a.getState();if(n.moving&&!n.disabled){var o=t.changedTouches?t.changedTouches[0]:{},s=o.pageX,c=(o.pageY,s-n.startX);if("open"===n.status){if(c<0)return;if(0===c)return r(a,e);Math.abs(c)<n.threshold?i(a,e):r(a,e)}else{if(c>0)return;Math.abs(c)<n.threshold?r(a,e):i(a,e)}}},sizeChange:function(t,e,a,i){var n=i.getState();if(n.disabled=t.disabled,n.duration=t.duration,n.show=t.show,n.threshold=t.threshold,n.buttons=t.buttons,n.buttons)for(var r=n.buttons.length,o=0,s=t.buttons,c=0;c<r;c++)o+=s[c].width;n.buttonsWidth=o},statusChange:function(t,e,a,n){var o=n.getState();o.disabled||("close"===t&&"open"===o.status?r(n,a):"open"===t&&"close"===o.status&&i(n,a))}},t.exports}({exports:{}})}},b29b:function(t,e,a){"use strict";a.r(e);var i=a("d73b"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},b411:function(t,e,a){"use strict";a.r(e);var i=a("aacf"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},b49f:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3533")),r={name:"startPage",data:function(){return{wxsProps:{}}},components:{FullPageLayout:n.default}};e.default=r},b511:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-swiper",data:function(){return{wxsProps:{}}},components:{}}},b601:function(t,e,a){"use strict";a.r(e);var i=a("b939"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},b62a:function(t,e,a){"use strict";a.r(e);var i=a("d520"),n=a("b601");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("c74b");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"7fef894d",null,!1,i["a"],void 0);e["default"]=s.exports},b69a:function(t,e,a){var i=a("3063");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("0b98eb5a",i,!0,{sourceMap:!1,shadowMode:!1})},b6de:function(t,e,a){"use strict";a.r(e);var i=a("0e7c"),n=a("651d");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"2d486e4c",null,!1,i["a"],void 0);e["default"]=s.exports},b8d8:function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):0===t.indexOf("/")?t.substr(1):t)}},b939:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("733c")),r={name:"EasySelectFormItemCompontent",props:["label","placeholder","msg","msgType","value","list","valueField","labelField","disabled","clearable","required"],data:function(){return{wxsProps:{}}},components:{EasyPicker:n.default}};e.default=r},ba33:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("uni-view",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{ref:"ani",staticClass:t._$g(1,"sc"),class:t._$g(1,"c"),style:t._$g(1,"s"),attrs:{_i:1}},[t._$g(2,"i")?t._l(t._$g(3,"f"),(function(e,i,n,r){return a("uni-view",{key:e,staticClass:t._$g("3-"+r,"sc"),attrs:{_i:"3-"+r}})})):t._e()],2):t._e(),t._$g(4,"i")?a("v-uni-text",{staticClass:t._$g(4,"sc"),style:t._$g(4,"s"),attrs:{_i:4}},[t._v(t._$g(4,"t0-0"))]):t._e()],1):t._e()},n=[]},bc03:function(t,e,a){"use strict";a.r(e);var i=a("8b7f"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},bfc4:function(t,e,a){"use strict";a.r(e);var i=a("90e1"),n=a("f3b7");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("3a5d");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"79d41e89",null,!1,i["a"],void 0);e["default"]=s.exports},c186:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-55cfca04], uni-scroll-view[data-v-55cfca04], uni-swiper-item[data-v-55cfca04]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-badge[data-v-55cfca04]{border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;display:flex;flex-direction:row;line-height:11px;text-align:center;font-size:11px;color:#fff}.u-badge--dot[data-v-55cfca04]{height:8px;width:8px}.u-badge--inverted[data-v-55cfca04]{font-size:13px}.u-badge--not-dot[data-v-55cfca04]{padding:2px 5px}.u-badge--horn[data-v-55cfca04]{border-bottom-left-radius:0}.u-badge--primary[data-v-55cfca04]{background-color:#f18201}.u-badge--primary--inverted[data-v-55cfca04]{color:#f18201}.u-badge--error[data-v-55cfca04]{background-color:#f56c6c}.u-badge--error--inverted[data-v-55cfca04]{color:#f56c6c}.u-badge--success[data-v-55cfca04]{background-color:#5ac725}.u-badge--success--inverted[data-v-55cfca04]{color:#5ac725}.u-badge--info[data-v-55cfca04]{background-color:#909399}.u-badge--info--inverted[data-v-55cfca04]{color:#909399}.u-badge--warning[data-v-55cfca04]{background-color:#f0f}.u-badge--warning--inverted[data-v-55cfca04]{color:#f0f}',""]),t.exports=e},c211:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3533")),r=i(a("733c")),o={name:"loginPage",data:function(){return{wxsProps:{}}},components:{FullPageLayout:n.default,EasyPicker:r.default}};e.default=o},c591:function(t,e,a){"use strict";a.r(e);var i=a("1d14"),n=a("5230");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"c3056626",null,!1,i["a"],void 0);e["default"]=s.exports},c5b6:function(t,e,a){"use strict";a.r(e);var i=a("295b"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c5be:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"easyPickerCompontent",props:["visible","list","valueField","labelField"],data:function(){return{wxsProps:{}}},components:{}}},c5c6:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0}},[a("uni-view",{attrs:{_i:1},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("3-"+n,"sc"),attrs:{_i:"3-"+n}},[[a("div",{staticClass:i._$g("5-"+n,"sc"),attrs:{_i:"5-"+n}},[a("u-button",{attrs:{_i:"6-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])})],1)},r=[]},c5c9:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uni-view",{staticClass:this._$g(0,"sc"),class:this._$g(0,"c"),style:this._$g(0,"s"),attrs:{_i:0}})},n=[]},c616:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.full-page-layout .full-page-layout-containter[data-v-adf62f3a]{height:100%;overflow:auto;position:relative}.full-page-layout .full-page-layout-containter.gradient-default[data-v-adf62f3a]{background-image:linear-gradient(90deg,#f18201,gold)!important}',""]),t.exports=e},c74b:function(t,e,a){"use strict";var i=a("03d8"),n=a.n(i);n.a},c761:function(t,e,a){"use strict";var i=a("b69a"),n=a.n(i);n.a},c830:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-loading-icon",data:function(){return{wxsProps:{}}},components:{}}},c85d:function(t,e,a){"use strict";a.r(e);var i=a("c5c6"),n=a("fc44");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},c8aa:function(t,e,a){"use strict";var i=a("3626"),n=a.n(i);n.a},c91d:function(t,e,a){"use strict";a.r(e);var i=a("9f1d"),n=a("e694");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("2c3a");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"7323bf5d",null,!1,i["a"],void 0);e["default"]=s.exports},c92b:function(t,e,a){"use strict";a.r(e);var i=a("b49f"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c92c:function(t,e,a){var i=a("67f9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("1c755825",i,!0,{sourceMap:!1,shadowMode:!1})},c97f:function(t,e,a){"use strict";var i=a("f6ec"),n=a.n(i);n.a},c9e8:function(t,e,a){var i=a("9ba3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("780a4c1a",i,!0,{sourceMap:!1,shadowMode:!1})},cabe:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-6a43b8ce]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-6a43b8ce]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-6a43b8ce]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-6a43b8ce]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-6a43b8ce]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-6a43b8ce]{margin-bottom:24rpx}.material-item-group[data-v-6a43b8ce]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-6a43b8ce]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:50rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-6a43b8ce]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-6a43b8ce]{display:flex;padding:10px 0;border-bottom:1px solid #ccc}.material-item-group .material-list-item .item-row .label[data-v-6a43b8ce]{flex-shrink:0;color:#000;width:150rpx;text-align-last:justify;text-align:justify}.material-item-group .material-list-item .item-row .content[data-v-6a43b8ce]{flex-grow:1;color:#606266}.material-item-group .material-list-item .badge-box[data-v-6a43b8ce]{position:absolute;top:8rpx;left:8rpx;z-index:1}',""]),t.exports=e},cae8:function(t,e,a){"use strict";a.r(e);var i=a("7b46"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},cb85:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.bottom-btns-row[data-v-49c36e9c]{display:flex;padding:10rpx 0;background-color:#fff}.bottom-btns-row .btn-frame[data-v-49c36e9c]{width:50%;box-sizing:border-box}.bottom-btns-row .left-btn-frame[data-v-49c36e9c]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-49c36e9c]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-49c36e9c]{margin-bottom:24rpx}.material-item-group[data-v-49c36e9c]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-49c36e9c]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-49c36e9c]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-49c36e9c]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-49c36e9c]{flex-shrink:0;color:#909193;width:84rpx}.material-item-group .material-list-item .item-row > .content[data-v-49c36e9c]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-49c36e9c]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-49c36e9c]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-49c36e9c]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-49c36e9c]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},ccae:function(t,e,a){"use strict";a.r(e);var i=a("e5f6"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},ce5e:function(t,e,a){var i=a("43e5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("3b0a5378",i,!0,{sourceMap:!1,shadowMode:!1})},ce91:function(t,e,a){"use strict";a.r(e);var i=a("86fc"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},cec3:function(t,e,a){"use strict";a.r(e);var i=a("cf93"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},cf17:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.p-form-label[data-v-78fe1574]{font-size:32rpx;color:#909193;padding-bottom:12rpx;padding-left:20rpx}.p-form-label .required-tag[data-v-78fe1574]{color:#f56c6c}.bottom-btns-row[data-v-78fe1574]{display:flex;justify-content:center;padding:10rpx 10rpx;background-color:#fff}.bottom-btns-row .btn-frame[data-v-78fe1574]{flex:1;box-sizing:border-box}.bottom-btns-row .btn-frame[data-v-78fe1574]:nth-child(1){margin-right:10rpx}.bottom-btns-row .left-btn-frame[data-v-78fe1574]{padding-left:20rpx;padding-right:8rpx}.bottom-btns-row .right-btn-frame[data-v-78fe1574]{padding-right:20rpx;padding-left:8rpx}.forma-item[data-v-78fe1574]{margin-bottom:24rpx}.material-item-group[data-v-78fe1574]{background-color:#fff;padding-top:10rpx}.material-item-group .material-list-item[data-v-78fe1574]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;margin-bottom:10rpx;position:relative}.material-item-group .material-list-item[data-v-78fe1574]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-78fe1574]{display:flex}.material-item-group .material-list-item .item-row > .label[data-v-78fe1574]{flex-shrink:0;color:#909193;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-78fe1574]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-78fe1574]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-78fe1574]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-78fe1574]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-78fe1574]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},cf93:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"fullPageCompontent",props:["gradient","gradientValue","backgroundColor","safety","full","baseBackgroundColor"],data:function(){return{wxsProps:{}}},components:{}}},d14a:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("uvForm",{ref:"uForm",attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},n=[]},d15a:function(t,e,a){"use strict";a.r(e);var i=a("e1cd"),n=a("ee3f");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("b1e0");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"bd25ae74",null,!1,i["a"],void 0);e["default"]=s.exports},d23b:function(t,e,a){"use strict";a.r(e);var i=a("0d88"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},d2ec:function(t,e,a){"use strict";var i=a("7c89"),n=a.n(i);n.a},d520:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[t._$g(2,"i")?a("v-uni-text",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v("*")]):t._e(),t._v(t._$g(1,"t1-0")+"\uff1a")],1):t._e(),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[t._$g(4,"i")?a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}}):t._e(),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[t._$g(6,"i")?a("v-uni-text",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._v(t._$g(6,"t0-0"))]):a("v-uni-text",{attrs:{_i:7}},[t._v(t._$g(7,"t0-0"))])],1),t._$g(8,"i")?a("uni-view",{staticClass:t._$g(8,"sc"),attrs:{_i:8},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[a("u-icon",{attrs:{_i:10}})],1)],1):t._e(),a("uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[a("u-icon",{attrs:{_i:12}})],1)],1),t._$g(13,"i")?a("uni-view",{staticClass:t._$g(13,"sc"),class:t._$g(13,"c"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))]):t._e(),a("easy-picker",{attrs:{_i:14},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],1)},r=[]},d525:function(t,e,a){"use strict";var i=a("752e"),n=a.n(i);n.a},d62a:function(t,e,a){"use strict";a.r(e);var i=a("b057"),n=a("3cf0");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("d2ec");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"2f0e5305",null,!1,i["a"],void 0);e["default"]=s.exports},d73b:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("a8df")),c=i(a("67a6")),u={name:"receiveInPage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,placeInfo:s.default,selectItem:c.default}};e.default=u},d800:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uSwipeAction:a("b6de").default,uSwipeActionItem:a("a808").default,uIcon:a("5a09").default,uBadge:a("6c35").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("u-swipe-action",{attrs:{_i:0}},t._l(t._$g(1,"f"),(function(e,i,n,r){return a("u-swipe-action-item",{key:e,staticStyle:{"margin-bottom":"20rpx"},attrs:{_i:"1-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g("2-"+r,"sc"),attrs:{_i:"2-"+r}},[a("uni-view",{staticClass:t._$g("3-"+r,"sc"),attrs:{_i:"3-"+r}},[a("uni-view",{staticClass:t._$g("4-"+r,"sc"),attrs:{_i:"4-"+r}},[a("uni-view",{staticClass:t._$g("5-"+r,"sc"),attrs:{_i:"5-"+r}},[a("u-icon",{attrs:{_i:"6-"+r}})],1)],1),a("uni-view",{staticClass:t._$g("7-"+r,"sc"),attrs:{_i:"7-"+r}},[a("u-badge",{attrs:{_i:"8-"+r}})],1),a("uni-view",{staticClass:t._$g("9-"+r,"sc"),attrs:{_i:"9-"+r}},[a("uni-view",{staticClass:t._$g("10-"+r,"sc"),attrs:{_i:"10-"+r}},[t._v("\u6258\u76d8\u7f16\u53f7\uff1a")]),a("uni-view",{staticClass:t._$g("11-"+r,"sc"),attrs:{_i:"11-"+r}},[t._v(t._$g("11-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("12-"+r,"sc"),attrs:{_i:"12-"+r}},[a("uni-view",{staticClass:t._$g("13-"+r,"sc"),attrs:{_i:"13-"+r}},[t._v("\u6258\u76d8\u72b6\u6001\uff1a")]),a("uni-view",{staticClass:t._$g("14-"+r,"sc"),attrs:{_i:"14-"+r}},[t._v(t._$g("14-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("15-"+r,"sc"),attrs:{_i:"15-"+r}},[a("uni-view",{staticClass:t._$g("16-"+r,"sc"),attrs:{_i:"16-"+r}},[t._v("\u6258\u76d8\u89c4\u683c\uff1a")]),a("uni-view",{staticClass:t._$g("17-"+r,"sc"),attrs:{_i:"17-"+r}},[t._v(t._$g("17-"+r,"t0-0")+"*"+t._$g("17-"+r,"t0-1")+"*"+t._$g("17-"+r,"t0-2"))])],1)],1)],1)],1)})),1):t._e()},r=[]},d942:function(t,e,a){var i=a("1d11");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("f5982ab0",i,!0,{sourceMap:!1,shadowMode:!1})},d96b:function(t,e,a){"use strict";var i=a("a6a4"),n=a.n(i);n.a},d9b5:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-safe-bottom",data:function(){return{wxsProps:{}}},components:{}}},db01:function(t,e,a){"use strict";a.r(e);var i=a("5e2c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},db18:function(t,e,a){"use strict";a.r(e);var i=a("58ac"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},dbba:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-a75f7a08], uni-scroll-view[data-v-a75f7a08], uni-swiper-item[data-v-a75f7a08]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-fade-enter-active[data-v-a75f7a08],\r\n.u-fade-leave-active[data-v-a75f7a08]{transition-property:opacity}.u-fade-enter[data-v-a75f7a08],\r\n.u-fade-leave-to[data-v-a75f7a08]{opacity:0}.u-fade-zoom-enter[data-v-a75f7a08],\r\n.u-fade-zoom-leave-to[data-v-a75f7a08]{-webkit-transform:scale(.95);transform:scale(.95);opacity:0}.u-fade-zoom-enter-active[data-v-a75f7a08],\r\n.u-fade-zoom-leave-active[data-v-a75f7a08]{transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}.u-fade-down-enter-active[data-v-a75f7a08],\r\n.u-fade-down-leave-active[data-v-a75f7a08],\r\n.u-fade-left-enter-active[data-v-a75f7a08],\r\n.u-fade-left-leave-active[data-v-a75f7a08],\r\n.u-fade-right-enter-active[data-v-a75f7a08],\r\n.u-fade-right-leave-active[data-v-a75f7a08],\r\n.u-fade-up-enter-active[data-v-a75f7a08],\r\n.u-fade-up-leave-active[data-v-a75f7a08]{transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.u-fade-up-enter[data-v-a75f7a08],\r\n.u-fade-up-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);opacity:0}.u-fade-down-enter[data-v-a75f7a08],\r\n.u-fade-down-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);opacity:0}.u-fade-left-enter[data-v-a75f7a08],\r\n.u-fade-left-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);opacity:0}.u-fade-right-enter[data-v-a75f7a08],\r\n.u-fade-right-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}.u-slide-down-enter-active[data-v-a75f7a08],\r\n.u-slide-down-leave-active[data-v-a75f7a08],\r\n.u-slide-left-enter-active[data-v-a75f7a08],\r\n.u-slide-left-leave-active[data-v-a75f7a08],\r\n.u-slide-right-enter-active[data-v-a75f7a08],\r\n.u-slide-right-leave-active[data-v-a75f7a08],\r\n.u-slide-up-enter-active[data-v-a75f7a08],\r\n.u-slide-up-leave-active[data-v-a75f7a08]{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.u-slide-up-enter[data-v-a75f7a08],\r\n.u-slide-up-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.u-slide-down-enter[data-v-a75f7a08],\r\n.u-slide-down-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.u-slide-left-enter[data-v-a75f7a08],\r\n.u-slide-left-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.u-slide-right-enter[data-v-a75f7a08],\r\n.u-slide-right-leave-to[data-v-a75f7a08]{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.u-zoom-enter-active[data-v-a75f7a08],\r\n.u-zoom-leave-active[data-v-a75f7a08]{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.u-zoom-enter[data-v-a75f7a08],\r\n.u-zoom-leave-to[data-v-a75f7a08]{-webkit-transform:scale(.95);transform:scale(.95)}',""]),t.exports=e},dcef:function(t,e,a){"use strict";a.r(e);var i=a("2ced"),n=a("27a5");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("4d76");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"ffc72f28",null,!1,i["a"],void 0);e["default"]=s.exports},dd02:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["sortInfo"],data:function(){return{wxsProps:{}}},components:{}}},de42:function(t,e){t.exports="/static/fonts/iconfont.woff2"},de61:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default,uBadge:a("6c35").default,uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("default-header-page-layout",{ref:"page",attrs:{_i:0},scopedSlots:t._u([{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("29-"+n,"sc"),attrs:{_i:"29-"+n}},[i._$g("30-"+n,"i")?[a("div",{staticClass:i._$g("31-"+n,"sc"),attrs:{_i:"31-"+n}},[a("u-button",{attrs:{_i:"32-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g("33-"+n,"sc"),attrs:{_i:"33-"+n}},[a("u-button",{attrs:{_i:"34-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]:[a("div",{staticClass:i._$g(36,"sc"),attrs:{_i:36}},[a("u-button",{attrs:{_i:37},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("div",{staticClass:i._$g(38,"sc"),attrs:{_i:38}},[a("u-button",{attrs:{_i:39},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]],2)]}}])},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("action-user-row",{attrs:{_i:2}}),a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._$g(4,"i")?[a("scan-input-form-item",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{search:function(e){return t.$handleViewEvent(e)},clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(5,"v-model"),callback:function(){},expression:"forma.material"}}),t._$g(6,"i")?a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},t._l(t._$g(7,"f"),(function(e,i,n,r){return a("uni-view",{key:e,staticClass:t._$g("7-"+r,"sc"),attrs:{_i:"7-"+r}},[a("uni-view",{staticClass:t._$g("8-"+r,"sc"),attrs:{_i:"8-"+r},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("uni-view",{staticClass:t._$g("9-"+r,"sc"),attrs:{_i:"9-"+r}},[a("u-icon",{attrs:{_i:"10-"+r}})],1)],1),a("uni-view",{staticClass:t._$g("11-"+r,"sc"),attrs:{_i:"11-"+r}},[a("u-badge",{attrs:{_i:"12-"+r}})],1),a("uni-view",{staticClass:t._$g("13-"+r,"sc"),attrs:{_i:"13-"+r}},[a("uni-view",{staticClass:t._$g("14-"+r,"sc"),attrs:{_i:"14-"+r}},[t._v("\u5bc6\u5ea6\uff1a")]),a("uni-view",{staticClass:t._$g("15-"+r,"sc"),attrs:{_i:"15-"+r}},[t._v(t._$g("15-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("16-"+r,"sc"),attrs:{_i:"16-"+r}},[a("uni-view",{staticClass:t._$g("17-"+r,"sc"),attrs:{_i:"17-"+r}},[t._v("\u6279\u6b21\uff1a")]),a("uni-view",{staticClass:t._$g("18-"+r,"sc"),attrs:{_i:"18-"+r}},[t._v(t._$g("18-"+r,"t0-0"))])],1),a("uni-view",{staticClass:t._$g("19-"+r,"sc"),attrs:{_i:"19-"+r}},[a("uni-view",{staticClass:t._$g("20-"+r,"sc"),attrs:{_i:"20-"+r}},[t._v("\u6bb5\u6570\uff1a")]),a("uni-view",{staticClass:t._$g("21-"+r,"sc"),attrs:{_i:"21-"+r}},[t._v(t._$g("21-"+r,"t0-0"))])],1)],1)})),1):t._e()]:t._e(),t._$g(22,"i")?[t._$g(23,"i")?a("easy-select-form-item",{staticClass:t._$g(23,"sc"),attrs:{_i:23},on:{clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(23,"v-model"),callback:function(){},expression:"formb.stationCode"}}):a("scan-input-form-item",{staticClass:t._$g(24,"sc"),attrs:{_i:24},on:{clear:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(24,"v-model"),callback:function(){},expression:"formb.stationCode"}}),a("uni-view",{staticStyle:{padding:"0 16rpx"},attrs:{_i:25}},[t._$g(26,"i")?a("u-button",{attrs:{_i:26},on:{click:function(e){return t.$handleViewEvent(e)}}}):a("u-button",{attrs:{_i:27},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]:t._e()],2)],1):t._e()],1)},r=[]},e080:function(t,e,a){"use strict";var i=a("336b"),n=a.n(i);n.a},e144:function(t,e,a){"use strict";var i=a("98c6"),n=a.n(i);n.a},e1cd:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default,uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header-page-layout",{ref:"header",attrs:{_i:0},on:{headerclick:function(e){return t.$handleViewEvent(e)}},scopedSlots:t._u([{key:"headerleft",fn:function(t,e,i){return[a("u-icon",{attrs:{_i:"2-"+i}})]}},{key:"footer",fn:function(e,i,n){return[a("uni-view",{staticClass:i._$g("8-"+n,"sc"),attrs:{_i:"8-"+n}},[a("u-button",{attrs:{_i:"9-"+n},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)]}}])},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},t._l(t._$g(4,"f"),(function(e,i,n,r){return a("uni-view",{key:e,staticClass:t._$g("4-"+r,"sc"),attrs:{_i:"4-"+r},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g("5-"+r,"sc"),attrs:{_i:"5-"+r}},[t._v(t._$g("5-"+r,"t0-0"))]),a("uni-view",{staticClass:t._$g("6-"+r,"sc"),attrs:{_i:"6-"+r}},[t._v(t._$g("6-"+r,"t0-0"))])],1)})),1)],1)},r=[]},e278:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.scan-input-form-item-compontent[data-v-13c921e5]{width:100%}.scan-input-form-item-compontent .p-form-label[data-v-13c921e5]{font-size:32rpx;color:#909193;padding-bottom:12rpx;padding-left:20rpx}.scan-input-form-item-compontent .p-form-label .required-tag[data-v-13c921e5]{color:#f56c6c}.material-item-group[data-v-13c921e5]{padding-top:10rpx;background-color:#fff}.material-item-group .material-list-item[data-v-13c921e5]{border-bottom:2rpx solid #c8c7cc;padding-bottom:10rpx;padding-left:60rpx;position:relative}.material-item-group .material-list-item[data-v-13c921e5]:last-child{border-bottom:0}.material-item-group .material-list-item .item-row[data-v-13c921e5]{display:flex}.material-item-group .material-list-item .item-row .label[data-v-13c921e5]{flex-shrink:0;color:#000;width:144rpx}.material-item-group .material-list-item .item-row > .content[data-v-13c921e5]{flex-grow:1;color:#606266}.material-item-group .material-list-item .item-row > .content uni-input[data-v-13c921e5]{font:inherit;color:#f18201;text-decoration:underline}.material-item-group .material-list-item .badge-box[data-v-13c921e5]{position:absolute;top:8rpx;left:8rpx;z-index:1}.material-item-group .material-list-item .close-btn[data-v-13c921e5]{width:70rpx;height:70rpx;z-index:1;position:absolute;top:0rpx;right:8rpx;background-color:#f56c6c;opacity:.6;border-radius:25rpx}.material-item-group .material-list-item .close-btn .icon-layer[data-v-13c921e5]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}',""]),t.exports=e},e3e5:function(t,e,a){"use strict";a.r(e);var i=a("33fc"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},e4f4:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-7323bf5d], uni-scroll-view[data-v-7323bf5d], uni-swiper-item[data-v-7323bf5d]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-button[data-v-7323bf5d]{width:100%}.u-button__text[data-v-7323bf5d]{white-space:nowrap;line-height:1}.u-button[data-v-7323bf5d]:before{position:absolute;top:50%;left:50%;width:100%;height:100%;border:inherit;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:" ";background-color:#000;border-color:#000}.u-button--active[data-v-7323bf5d]:before{opacity:.15}.u-button__icon + .u-button__text[data-v-7323bf5d]:not(:empty), .u-button__loading-text[data-v-7323bf5d]{margin-left:4px}.u-button--plain.u-button--primary[data-v-7323bf5d]{color:#f18201}.u-button--plain.u-button--info[data-v-7323bf5d]{color:#909399}.u-button--plain.u-button--success[data-v-7323bf5d]{color:#5ac725}.u-button--plain.u-button--error[data-v-7323bf5d]{color:#f56c6c}.u-button--plain.u-button--warning[data-v-7323bf5d]{color:#f56c6c}.u-button[data-v-7323bf5d]{height:40px;position:relative;align-items:center;justify-content:center;display:flex;flex-direction:row;box-sizing:border-box;flex-direction:row}.u-button__text[data-v-7323bf5d]{font-size:15px}.u-button__loading-text[data-v-7323bf5d]{font-size:15px;margin-left:4px}.u-button--large[data-v-7323bf5d]{width:100%;height:50px;padding:0 15px}.u-button--normal[data-v-7323bf5d]{padding:0 12px;font-size:14px}.u-button--small[data-v-7323bf5d]{min-width:60px;height:30px;padding:0 8px;font-size:12px}.u-button--mini[data-v-7323bf5d]{height:22px;font-size:10px;min-width:50px;padding:0 8px}.u-button--disabled[data-v-7323bf5d]{opacity:.5}.u-button--info[data-v-7323bf5d]{color:#323233;background-color:#fff;border-color:#ebedf0;border-width:1px;border-style:solid}.u-button--success[data-v-7323bf5d]{color:#fff;background-color:#5ac725;border-color:#5ac725;border-width:1px;border-style:solid}.u-button--primary[data-v-7323bf5d]{color:#fff;background-color:#f18201;border-color:#f18201;border-width:1px;border-style:solid}.u-button--error[data-v-7323bf5d]{color:#fff;background-color:#f56c6c;border-color:#f56c6c;border-width:1px;border-style:solid}.u-button--warning[data-v-7323bf5d]{color:#fff;background-color:#f0f;border-color:#f0f;border-width:1px;border-style:solid}.u-button--block[data-v-7323bf5d]{display:flex;flex-direction:row;width:100%}.u-button--circle[data-v-7323bf5d]{border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px}.u-button--square[data-v-7323bf5d]{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.u-button__icon[data-v-7323bf5d]{min-width:1em;line-height:inherit!important;vertical-align:top}.u-button--plain[data-v-7323bf5d]{background-color:#fff}.u-button--hairline[data-v-7323bf5d]{border-width:.5px!important}',""]),t.exports=e},e521:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RadioInputFormItemComponent",props:["label","msg","msgType","shape","options","value","hasScan","hasSearch","disabled","required"],data:function(){return{wxsProps:{}}},components:{}}},e540:function(t,e,a){var i=a("a019");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("e93b8a2a",i,!0,{sourceMap:!1,shadowMode:!1})},e551:function(t,e,a){"use strict";a.r(e);var i=a("c5be"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},e5f6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"u-input",data:function(){return{wxsProps:{}}},components:{}}},e694:function(t,e,a){"use strict";a.r(e);var i=a("129c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},e715:function(t,e,a){"use strict";var i=a("160b"),n=a.n(i);n.a},e8dc:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uPopup:a("b029").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("u-popup",{attrs:{_i:0},on:{close:function(e){return t.$handleViewEvent(e)}}},[a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1}},[a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},t._l(t._$g(3,"f"),(function(e,i,n,r){return a("uni-view",{key:e,staticClass:t._$g("3-"+r,"sc"),attrs:{_i:"3-"+r},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[t._v(t._$g("3-"+r,"t0-0"))])})),1)],1)],1)},r=[]},e9d1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["materialData"],data:function(){return{wxsProps:{}}},components:{}}},ea05:function(t,e,a){"use strict";a.r(e);var i=a("de61"),n=a("147a");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("318b");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"49c36e9c",null,!1,i["a"],void 0);e["default"]=s.exports},ea47:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("scan-input-form-item",{staticClass:t._$g(1,"sc"),attrs:{_i:1},nativeOn:{click:function(e){return t.$handleViewEvent(e)}},model:{value:t._$g(1,"v-model"),callback:function(){},expression:"station"}}),a("EasyPicker",{attrs:{_i:2},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],1)},n=[]},eaca:function(t,e,a){"use strict";a.r(e);var i=a("5486"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},eaea:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c591")),r=i(a("84c4")),o=i(a("bfc4")),s=i(a("b62a")),c={name:"toBeOnlinePage",data:function(){return{wxsProps:{}}},components:{DefaultHeaderPageLayout:n.default,ActionUserRow:r.default,ScanInputFormItem:o.default,EasySelectFormItem:s.default}};e.default=c},ed14:function(t,e){t.exports="/static/fonts/iconfont.ttf"},edf0:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("a47e")),r=i(a("733c")),o={name:"defaultHeaderPageCompontent",props:["title","backCustom"],data:function(){return{wxsProps:{}}},components:{HeaderPageLayout:n.default,EasyPicker:r.default}};e.default=o},ee3f:function(t,e,a){"use strict";a.r(e);var i=a("24a2"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},ee49:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.picker-box[data-v-08e3935c]{width:80vw;background-color:#f0f8ff;border-radius:20rpx;padding-top:30rpx;overflow:auto;display:flex;justify-content:center;box-sizing:border-box}.picker-box .picker-item-group[data-v-08e3935c]{width:80%}.picker-box .picker-item[data-v-08e3935c]{margin:0 20rpx 30rpx 20rpx;text-align:center;background-image:linear-gradient(90deg,#f18201,#fce6cc);border:1px solid #e4e4e4;border-radius:10rpx;font-size:1.2rem;padding:20rpx}',""]),t.exports=e},f0c5:function(t,e,a){"use strict";function i(t,e,a,i,n,r,o,s,c,u){var l,d="function"===typeof t?t.options:t;if(c){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in c)f.call(c,p)&&!f.call(d.components,p)&&(d.components[p]=c[p])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(d.mixins||(d.mixins=[])).push(u)),e&&(d.render=e,d.staticRenderFns=a,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=l):n&&(l=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),l)if(d.functional){d._injectStyles=l;var v=d.render;d.render=function(t,e){return l.call(e),v(t,e)}}else{var _=d.beforeCreate;d.beforeCreate=_?[].concat(_,l):[l]}return{exports:t,options:d}}a.d(e,"a",(function(){return i}))},f18c:function(t,e,a){"use strict";a.r(e);var i=a("f6a5"),n=a("b411");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("5809");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"23a72621",null,!1,i["a"],void 0);e["default"]=s.exports},f1e2:function(t,e,a){var i=a("c616");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("a51c580a",i,!0,{sourceMap:!1,shadowMode:!1})},f3b7:function(t,e,a){"use strict";a.r(e);var i=a("8f20"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f4e1:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.u-status-bar[data-v-186edb96]{width:100%}',""]),t.exports=e},f4f0:function(t,e,a){var i=a("aaa4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("1b98bc72",i,!0,{sourceMap:!1,shadowMode:!1})},f6a5:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[t._$g(1,"i")?a("uni-view",{staticClass:t._$g(1,"sc"),class:t._$g(1,"c"),style:t._$g(1,"s"),attrs:{_i:1}},[a("uni-view",{staticClass:t._$g(2,"sc"),style:t._$g(2,"s"),attrs:{_i:2}})],1):t._e(),t._$g(3,"i")?a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},t._l(t._$g(4,"f"),(function(e,i,n,r){return a("uni-view",{key:e,staticClass:t._$g("4-"+r,"sc"),class:t._$g("4-"+r,"c"),style:t._$g("4-"+r,"s"),attrs:{_i:"4-"+r}})})),1):t._e()],1)},n=[]},f6ac:function(t,e,a){"use strict";a.r(e);var i=a("4a4d"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f6d6:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-7a1b870a], uni-scroll-view[data-v-7a1b870a], uni-swiper-item[data-v-7a1b870a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swipe-action-item[data-v-7a1b870a]{position:relative;overflow:hidden;touch-action:pan-y}.u-swipe-action-item__content[data-v-7a1b870a]{background-color:#fff;z-index:10}.u-swipe-action-item__right[data-v-7a1b870a]{position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:row}.u-swipe-action-item__right__button[data-v-7a1b870a]{display:flex;flex-direction:row;justify-content:center;overflow:hidden;align-items:center}.u-swipe-action-item__right__button__wrapper[data-v-7a1b870a]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 15px}.u-swipe-action-item__right__button__wrapper__text[data-v-7a1b870a]{display:flex;flex-direction:row;align-items:center;color:#fff;font-size:15px;text-align:center;justify-content:center}',""]),t.exports=e},f6ec:function(t,e,a){var i=a("530c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("7f7e").default;n("82bfd79c",i,!0,{sourceMap:!1,shadowMode:!1})},f98d:function(t,e,a){"use strict";a.r(e);var i=a("7395"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fa03:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uForm:a("73e9").default,uFormItem:a("354d").default,uInput:a("9617").default,uIcon:a("5a09").default,uButton:a("c91d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("full-page-layout",{attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[a("v-uni-image",{staticClass:t._$g(4,"sc"),attrs:{mode:"aspectFit",src:"/static/img/logo.png",_i:4}})],1),a("uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[t._v("\u6f4d\u67f4\u4e09\u5382")]),a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._v("-WMS\u7cfb\u7edf-")]),a("uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("u-form",{ref:"form",attrs:{_i:8}},[a("u-form-item",{attrs:{_i:9}},[a("u-input",{attrs:{_i:10},scopedSlots:t._u([t._$g(11,"i")?{key:"suffix",fn:function(e,i,n){return[a("uni-view",{attrs:{_i:"12-"+n},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("u-icon",{attrs:{_i:"13-"+n}})],1)]}}:null],null,!0),model:{value:t._$g(10,"v-model"),callback:function(){},expression:"form.account"}})],1),a("u-form-item",{attrs:{_i:14}},[a("v-uni-input",{staticStyle:{display:"none"},attrs:{type:"password",_i:15}}),a("u-input",{key:t._$g(16,"a-key"),attrs:{_i:16},on:{confirm:function(e){return t.$handleViewEvent(e)}},scopedSlots:t._u([{key:"suffix",fn:function(e,i,n){return[a("uni-view",{attrs:{_i:"18-"+n},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("u-icon",{attrs:{_i:"19-"+n}})],1)]}}]),model:{value:t._$g(16,"v-model"),callback:function(){},expression:"form.password"}})],1)],1),a("uni-view",{staticClass:t._$g(20,"sc"),attrs:{_i:20}},[a("u-button",{attrs:{_i:21},on:{click:function(e){return t.$handleViewEvent(e)}}})],1)],1)],1),t._$g(22,"i")?a("uni-view",{staticClass:t._$g(22,"sc"),attrs:{_i:22}},[t._v("\u5e94\u7528\u7248\u672c\u53f7 "+t._$g(22,"t0-0"))]):t._e()],1),a("uni-view",{staticClass:t._$g(23,"sc"),style:t._$g(23,"s"),attrs:{_i:23},on:{click:function(e){return t.$handleViewEvent(e,{stop:!0})}}},[a("u-icon",{attrs:{_i:24}})],1),a("easy-picker",{attrs:{_i:25},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}}),a("easy-picker",{attrs:{_i:26},on:{"update:visible":function(e){return t.$handleViewEvent(e)},select:function(e){return t.$handleViewEvent(e)}}})],1)},r=[]},fa14:function(t,e,a){"use strict";a.r(e);var i=a("687f"),n=a("54bd");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},fa63:function(t,e,a){"use strict";var i=a("5264"),n=a.n(i);n.a},fa93:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";uni-view[data-v-d4342702], uni-scroll-view[data-v-d4342702], uni-swiper-item[data-v-d4342702]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swiper[data-v-d4342702]{display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative;overflow:hidden}.u-swiper__wrapper[data-v-d4342702]{flex:1}.u-swiper__wrapper__item[data-v-d4342702]{flex:1}.u-swiper__wrapper__item__wrapper[data-v-d4342702]{display:flex;flex-direction:row;position:relative;overflow:hidden;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;flex:1}.u-swiper__wrapper__item__wrapper__image[data-v-d4342702]{flex:1}.u-swiper__wrapper__item__wrapper__video[data-v-d4342702]{flex:1}.u-swiper__wrapper__item__wrapper__title[data-v-d4342702]{position:absolute;background-color:rgba(0,0,0,.3);bottom:0;left:0;right:0;font-size:28rpx;padding:12rpx 24rpx;color:#fff;flex:1}.u-swiper__indicator[data-v-d4342702]{position:absolute;bottom:10px}',""]),t.exports=e},fb30:function(t,e,a){"use strict";a.r(e);var i=a("c830"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fbbb:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("5a09").default,uLine:a("d62a").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("uni-view",{staticClass:t._$g(1,"sc"),style:t._$g(1,"s"),attrs:{_i:1},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._t("label",[t._$g(3,"i")?a("uni-view",{staticClass:t._$g(3,"sc"),style:t._$g(3,"s"),attrs:{_i:3}},[a("uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[t._$g(5,"i")?a("v-uni-text",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[t._v("*")]):t._e(),t._$g(6,"i")?a("uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[a("u-icon",{attrs:{_i:7}})],1):t._e(),a("v-uni-text",{staticClass:t._$g(8,"sc"),style:t._$g(8,"s"),attrs:{_i:8}},[t._v(t._$g(8,"t0-0"))])],1)],1):t._e()],{_i:2}),a("uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[a("uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}},[a("uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[t._t("default",null,{_i:12})],2),t._$g(13,"i")?a("uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._t("right",null,{_i:14})],2):t._e()],1)],1)],2),t._t("error",[t._$g(16,"i")?a("v-uni-text",{staticClass:t._$g(16,"sc"),style:t._$g(16,"s"),attrs:{_i:16}},[t._v(t._$g(16,"t0-0"))]):t._e()],{_i:15}),t._$g(17,"i")?a("u-line",{attrs:{_i:17}}):t._e()],2)},r=[]},fbce:function(t,e,a){"use strict";a.r(e);var i=a("0de6"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fbfa:function(t,e,a){"use strict";a.r(e);var i=a("ba33"),n=a("fb30");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("d96b");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"26861ad0",null,!1,i["a"],void 0);e["default"]=s.exports},fc44:function(t,e,a){"use strict";a.r(e);var i=a("1dde"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fce5:function(t,e,a){"use strict";a.r(e);var i=a("7a74"),n=a("246a");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("e144");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"e673f626",null,!1,i["a"],void 0);e["default"]=s.exports}}); \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/manifest.json b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/manifest.json new file mode 100644 index 0000000..0a3fd10 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/manifest.json @@ -0,0 +1 @@ +{"@platforms":["android","iPhone","iPad"],"id":"__UNI__417D0E6","name":"wc3Pad","version":{"name":"1.0.13","code":"100"},"description":"","launch_path":"__uniappview.html","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"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.8.7","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"},"locale":"en"} \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.css b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.css new file mode 100644 index 0000000..ad88fd2 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.css @@ -0,0 +1,171 @@ +@font-face { + font-family: "iconfont"; /* Project id 2741087 */ + src: url('@/static/fonts/iconfont.woff2?t=1695278830229') format('woff2'), + url('@/static/fonts/iconfont.woff?t=1695278830229') format('woff'), + url('@/static/fonts/iconfont.ttf?t=1695278830229') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: inherit; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-check-stock:before { + content: "\e646"; +} + +.icon-take_out_store:before { + content: "\e602"; +} + +.icon-take_in_store:before { + content: "\e65e"; +} + +.icon-change-store:before { + content: "\e609"; +} + +.icon-complete-list:before { + content: "\e612"; +} + +.icon-page-list:before { + content: "\e622"; +} + +.icon-check-list:before { + content: "\e601"; +} + +.icon-van:before { + content: "\e65b"; +} + +.icon-plan-list:before { + content: "\e611"; +} + +.icon-safe-check:before { + content: "\e6a2"; +} + +.icon-order:before { + content: "\e618"; +} + +.icon-unqualified:before { + content: "\e600"; +} + +.icon-transport:before { + content: "\e615"; +} + +.icon-pull-off:before { + content: "\e613"; +} + +.icon-bind:before { + content: "\e628"; +} + +.icon-user-set:before { + content: "\e621"; +} + +.icon-house-out:before { + content: "\e614"; +} + +.icon-house-in:before { + content: "\e616"; +} + +.icon-notice:before { + content: "\e64a"; +} + +.icon-user-out:before { + content: "\e80f"; +} + +.icon-unbind:before { + content: "\e702"; +} + +.icon-door:before { + content: "\e8bf"; +} + +.icon-user-in:before { + content: "\e624"; +} + +.icon-house-check:before { + content: "\e67f"; +} + +.icon-list:before { + content: "\e6e8"; +} + +.icon-bill_out:before { + content: "\e675"; +} + +.icon-bill_in:before { + content: "\e676"; +} + +.icon-empty_in:before { + content: "\e631"; +} + +.icon-empty_out:before { + content: "\e632"; +} + +.icon-worker:before { + content: "\e93f"; +} + +.icon-bell:before { + content: "\e64e"; +} + +.icon-out-left:before { + content: "\e620"; +} + +.icon-out-right:before { + content: "\e60d"; +} + +.icon-machine:before { + content: "\e64b"; +} + +.icon-agv:before { + content: "\e649"; +} + +.icon-equipment:before { + content: "\e64d"; +} + +.icon-task:before { + content: "\e63f"; +} + +.icon-chart:before { + content: "\e846"; +} + +.icon-archives:before { + content: "\e890"; +} + diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.ttf b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.ttf new file mode 100644 index 0000000..cbdba1a --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.ttf Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff new file mode 100644 index 0000000..8b8e82f --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff2 b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff2 new file mode 100644 index 0000000..e41a0fe --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/fonts/iconfont.woff2 Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/img/logo.png b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/img/logo.png new file mode 100644 index 0000000..b0ace63 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/img/logo.png Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/gbk.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/gbk.js new file mode 100644 index 0000000..6d76312 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/gbk.js @@ -0,0 +1,185 @@ +const GBK$1 = function(){ + const GBK = function(){ + let arr_index = 0x8140; + const gbk = { + decode:function(arr){ + let str = ""; + for (let n = 0, max = arr.length; n < max; n++) { + let code = arr[n] & 0xff; + if (code > 0x80 && n + 1 < max) { + let code1 = arr[n + 1] & 0xff; + if(code1 >= 0x40){ + code = gbk_us[(code << 8 | code1) - arr_index]; + n++; + } + } + str += String.fromCharCode(code); + } + return str; + }, + encode:function(str){ + str += ''; + let gbk = []; + let wh = '?'.charCodeAt(0); //gbk涓病鏈夌殑瀛楃鐨勬浛鎹㈢ + for (let i = 0; i < str.length; i++) { + let charcode = str.charCodeAt(i); + if (charcode < 0x80) gbk.push(charcode); + else { + let gcode = gbk_us.indexOf(charcode); + if (~gcode) { + gcode += arr_index; + gbk.push(0xFF & (gcode >> 8), 0xFF & gcode); + } else { + gbk.push(wh); + } + } + } + return gbk; + } + } + return gbk; + } + + let gbk = GBK; + + const URI = function(GBK){ + let passChars = '!\'()*-._~'; + let otherPassChars = '#$&+,/:;=?@'; + + function getModue(_passChars){ + let passBits = passChars.split('').sort(); + const isPass = function (s){ + return _passChars.indexOf(s) || /[0-9a-zA-Z]/.test(s) + }; + return { + encode:function(str){ + return (str+'').replace(/./g,function(v){ + if(isPass(v)) return v; + let bitArr = GBK.encode(v); + for(let i=0; i<bitArr.length; i++){ + bitArr[i] = '%' + ('0'+bitArr[i].toString(16)).substr(-2).toUpperCase(); + } + return bitArr.join(''); + }) + }, + decode:function(enstr){ + enstr = String(enstr); + let outStr = ''; + for(let i=0; i<enstr.length; i++) { + let char = enstr.charAt(i); + if(char === '%' && i + 2 < enstr.length){ + let code1 = parseInt(enstr.substr(i+1,2),16); + if(!isNaN(code1)){ + let _i = i + 2; + if(code1 > 0x80){ + let code2; + if(enstr.charAt(_i+1) === '%'){ + code2 = parseInt(enstr.substr(_i+2,2),16); + _i += 3; + }else{ + code2 = enstr.charCodeAt(_i+1); + _i += 1; + } + if(code2 >= 0x40){ + i = _i; + outStr += GBK.decode([code1,code2]); + continue; + } + }else{ + i += 2; + outStr += String.fromCharCode(code1); + continue; + } + } + } + outStr += char; + } + return outStr; + } + } + } + + let URIComponent = getModue(passChars); + let URI = getModue(passChars + otherPassChars); + + return { + encodeURI:URI.encode, + decodeURI:URI.decode, + encodeURIComponent:URIComponent.encode, + decodeURIComponent:URIComponent.decode + } + } + + const src = function (gbk_us){ + let gbk$$1 = gbk(gbk_us); + gbk$$1.URI = URI(gbk$$1); + return gbk$$1; + }; + + const Fn_Hex_decode = function decode(){ + let n = 0, str = arguments[0]; + for (let i = 0,w = str.length; i < w; i++) { + let code = str.charCodeAt(i); + if(code < 38 || code > 126) return NaN; + n += (code - 38) * Math.pow(89, w - i - 1); + } + return n; + } + + const Fn_unzip = function unZip() { + return arguments[0].replace(/\x23(\d+)\x24/g, function (a, b) { + return Array(+b + 4).join("#"); + }) + .replace(/[\x26-\x7e]\x25[\x26-\x7e]/g,function(a){ + let b = a.substr(0,1).charCodeAt(0) + ,e = a.substr(2).charCodeAt(0) + ,str = String.fromCharCode(b); + while(b++<e){ + str += String.fromCharCode(b); + } + return str; + }) + .replace(/\x23/g, "###") + .replace(/([\x26-\x7e]{2})\x21([\x26-\x7e\x23]+)(?:\x20|$)/g, function (all, hd, dt) { + return dt.replace(/./g, function (a) { + if (a != "#") { + return hd + a; + } else { + return a; + } + }); + }) + .match(/.../g); + } + + function gbkArray(gbkArr){ + let data = []; + for (let i = 0x81, k = 0; i <= 0xfe; i++) { + if (data.length > 0) { + data.length += 0x40 + 1; + } + for (let j = 0x40; j <= 0xfe; j++) { + if ( + (j == 0x7f) || + ((0xa1 <= i && i <= 0xa7) && j <= 0xa0) || + ((0xaa <= i && i <= 0xaf) && j >= 0xa1) || + (0xf8 <= i && j >= 0xa1) + ) { + data.push(undefined); + continue; + } + let hex = gbkArr[k++]; + let key = Fn_Hex_decode(hex); + data.push(key ? key : undefined); + } + } + return data; + } + + let gbk_us = gbkArray(Fn_unzip("(T!HJ%LUX]e%gilotuwy{} (U!)-%/137>BDGHO%RTUW%\\_a%jl%rtw} (V!*+-0%27>C%EHJ%MP%R\\`cdfn%ptvz{} (W!()*,/3%579;=%CFGM%QWX\\^cdg%ilnprtvy%} (X!&')%.468CDHJLMOPSTWY%\\_b%dg%ilnprtuwxz%|~ (Y!'(*+-469%=?%GI%KO%RT%V[%_bdikmnptuy{}~ (Z!&')+%-/%;>@ACE%GKMNPR%TW[_%ikmo%rt%vy%{} ([!'(%+-%024%;=%BD%LO%QSTX%[]^`%ce%y{} (\\!()+%/1%7:%LN%SU%WY%cf%im%prt%xz%~ (]!&'%*-%/1%68%EG%cgloqs%uwx|%~ (^!')%-/02356;>FJKOPRSVWZ%]_`dfi%kmor%vyz (_!'+%-124%68;=@ACE%MOQRUVX%]_adegjqwx|~ (`!&)*-%/689;%=?%ADFIKLNOVX^%cehilmoq%uwyz|%~ (a!'),%/124%=?AD%HJ%PRSU%[]e%ho%qu%~ (b!()*,%.024%79;%=?A%FH%KM%WY%`c%ei%loq%tvy%| (c!'*+-.1346%8:%<>%GKLOQSUZ%\\_cghjltwy{| (d!(,/1%4679=>@D%JLMOQRTVWZ]`%ce%km%pr%tvy%} (e!+,-/0279%;>?DQW[%]_bdhqu%wy (f!&().47:;>ACEFHIKMP%SU^a%egikm%tx}~ (g!)*,.02%58<>BCGI%MPY[]`%bdeginpuv (h!(*-2%6=>A%CF%KMPRT%WZ\\%`deg%ln%qswxz{} (i!&+-%/1%469;>@AD%HJ%MP%TV%Y[\\abdh%mrsvx~ (j!&,%.0235%7:;>@%FH%PRTVXZ\\_%cf%hjkn%puw%{~ (k!').04578;=?%CFI%NQRTW%^`acdg%ilmo%ru%wz|~ (l!&(*%,.%9=%ACDHIK%OQS%U[%^`%ce%hk%ru%{~ (m!&')%79%CE%KM%PR%^`%hjkmnqxz%~ (n!&(*+./2%478<%>ACG%WYZ\\%^`%cgmnp%txy{} (o!&'%)+,.5%9;<EFHJOQS%UWX[%]`%dj%mp%tw%} (p!&'%)/2469%;=?%AC%KN%TVWZ[]`aefhk%mo%vxz%} (q!&'(,-/024%69%;=?%AC%EG%IK%NPSTV%Z\\%`b%eg%tv%| (r!&'(*+-%/1%57%<>%BE%UWZ\\^%`b%il%ps%ux%~ (s!&)%:<%?A%CE%OQ%SU%bd%ilnpqstvwy%~ (t!&')+,.%246%9=>ACDF%ILNRVXY[\\ac%fiklprsvxy (u!&(%,.013%?BDG%IK%MRVXY[%^abeg%jl%ostyz}~ (v!'(%,.013%9;%=@%CIJMOR%VXZ[]%_a%lnp%rtv~ (w!&(%+-/%24%689<=?A%CE%KNPR%VX%Z\\%`bcf%oq%tv%|~ (x!&'(*+-%5:;=%@B%SU%[^%km%svxy{%~ (y!&(),%1346%:<>@B%DF%HKMNPQSU%Y[%qs%~ (z!()%ACEFH%OQ%_bfnpqwx{}~ ({!&)+-%023569=ADEG%IKMV^%`c%fhinq%swxz (|!&'%)+%-/2%:>@ADEG%KMO%U[\\^`acefi%lnpquwy|%~ (}!&(+-%02%578:%<HIKLQRW%Y[%]_%bdgil%ruw%} (~!'(%*,/%35%7:;>?AI%MP%TVZ%\\^`be%hjlnoq%vx%} )&!&'%+-%356:<>?ABD%MO%TWX[%`b%fhj%mopr%vx{}~ )'!&)%-/%69%@BCG%QSTVX%bdghj%mo%{}~ )(!&'%9;%=?%WY%eg%mo%{} ))!'(+,2458=>@%DGHLOQ%SUVZ[_f%mp%twxz%~ )*!()-%025%:<%BE%IKLNOR%`dfhmp%rtwx{%} )+!(.137%:>%BD%HJP%SU%^a%fjkm%pr%} ),!&(%02568%:B%DFI%KMOQSVWY%[^%aehikmo%uxz%|~ )-!&'%358=%@B%DGIKLORSVX%Z\\^a%cgjq%suwxz~ ).!&(%+-%2467:%?AC%FI%MRSUVY^%`e%gijmnpqstwz{}~ )/!&()+,.9%;=>BCEIJLPQT%V^%`b%fh%loprv%|~ )0!'(*,-/%1457%:>?GJKMNPWY%[^%acdg%jlnp%ruwz{}~ )1!')*.035%79:=%DG%IL%PR%TVWY[^a%ejqruwx{%~ )2!&)%,.1%37%;=%@B%EHILO%QS%eg%nprtvwy%{}~ )3!&'%*,%/1%47%=?%BDF%XZ[]%ac%jl%txy{%~ )4!&'%+-%24%68%<>A%EHJ%Z\\%ik%su%z|~ )5!/058%:<?B%EGIK%NQRT%X^`%bfklq%suvx%~ )6!'(+4578:;=>@D%FH%KN%SW\\_%afijlmp%su%wy%{} )7!(*+-59;?GHJKNTUZ\\_b%ejm%pt%wyz|%~ )8!&(%*-78:=%?ABD%ILMO%RUXY[b%eg%nqu%wy{%} )9!'(*%-014%79;%>CEIK%MOQ%WY\\^cgijmnqsuw%{} ):!&')%+02%46%<>AC%GJKM%PRTVX%[]bce%ilmpqt%y|~ );!()%+-%/14%9;%?ABDFHIOQ%WY[%]_%ce%lnp%rt%} )<!()%.035%=@ADEG%JL%PR%UWX\\^%acfhj%lnpqs%y|~ )=!'(%*-%13%579;%SU%\\^%eg%km%xz%~ )>!'(+%.2578;%?ABEFHIKM%ORSUWZ%\\_`b%eh%jlnpqs%~ )?!&'(*%,/%146%8:<?@BDEHJLNPS%Z\\]`%bdi%lorsu%wz%~ )@!&'(*,-34;%>ABD%HJMNP%RTVY%[_%ac%egj%mor%uwy{| )A!'(%+-/024%:=>@AHIK%NPRSUWY%]a%cehik%mo%qsuvx%{}~ )B!&')%,/%35%=@%DF%JL%OQ%TV%oqu%|~ )C!&(%-/34689;?%EJLMO%QTV%XZ\\^%ceglnpqt%wyz|} )D!&)*,/0279:<%@BG%IKLPQSVY[]%`beghjkmoq%tv%y{~ )E!'+%-0258:=>@E%LNQ%Za%cgkmopr%tvwyz~ )F!()%/14%79@CEGHK%OQ%SU%[^%dg%imnrz~ )G!'),0%9DF%MOR%Z\\^a%hj%ln%pr%{}~ )H!&*%-/2357%@BD%IKMO%RTUWXZ\\%`bce%nps%uw%y|~ )I!&'(*%,.%2479;%FI%KM%TVWY%[]%`b%dfhik%{}~ )J!'(*+.01346%9;<>?A%EIJL%NPRTY%[]%befhil%uxy{}~ )K!&()+,.%02%68%?ACEG%IK%PR%TW%bd%gi%rtv%~ )L!&(%36%;=?%DFH%KMO%QS%Y\\%`bce%ln%twy%} )M!&'(*%46%<>?A%CE%GI%QSV%Z\\%ce%lnq%~ )N!&'%~ )O!&'%178:%CE%HJM%OQ%TVWZ\\]_%jl%sz{}~ )P!&'%136%9>AEG%JMNP%RU%Y[%bd%koq%wy|} )Q!&'%*,.018:<%@B%IL%NP%RTV%XZ%\\^%dh%lnrw|%~ )R!'*,2%48:=>@%CEFJ%LOR%VX%Z]_%aijl%nr%vxz|~ )S!&(%*-.2589;<?@C%FHJ%LNPVZ]^b%ehn%qt%vy{%} )T!&'-%/1249;<>ABGINTUWXZ[]%_bd%fh%kmqrt%y{}~ )U!()+,02%46;<>@EHLQ%TWY[]^`acdg%il%oqru%wy%} )V!&')*-.02359%=?EHOPSTVWYZ\\%ad%fk%mp%su%xz}~ )W!&),-/1%479:<>%@BDG%NP%SUY\\]_bcefhilp%rtvxz{} )X!&'(*,%36%=@%CFHJKM%OQ%[]^`%nq%suxy{%~ )Y!&)%/1%35689;<>@AC%FHKMPQTV%X[%^`%bd%fhjnpqs%u{ )Z!&)%24%79%@B%DFGI%MO%QU%^`%bd%gkmoqstv%|~ )[!&'%+.%024%=?%ACE%GI%KM%RU%WY[%]_ac%ik%mpqu%~ )\\!&'(*%-/%35%?ABDEG%LNP%UW%]`%jlo%z}~ )]!&'%DF%MP%VX%hj%ln%~ )^!&()+%8:%EIL%ORT%VX\\%_a%cf%hj%lnrsuvy%~ )_!&'%,246%8<@AF%IKM%Y\\^%`b%eglpr%xz|%~ )`!'(%14%8:;=@D%NP%W[%^`%mo%rtvx%~ )a!&'%+-/%359%=?%AD%GIKLN%SU%Y[%^`%ce%gj%nq%wy%{}~ )b!&'%)+-%/1%9;%DF%JM%VX%[]_%df%oq%|~ )c!&'%:<%EGIK%MP%RXZ\\^%dg%il%oq%suvxz|~ )d!()*-/%25689;%=@%BGHJ%NQSUVX%ce%psv%xz )e!&'%,1%35%8;=?%BDFG 'W!,-. &(+&.'&-~&'u'W!/1 ')>.<V')!@PBCFG 'W!@A4%;BC<= &'~&(!Kk '/!J;< '.!~| '/!>= '.u'/!K. '0`'/!94 '1t'0T'/!?Bu`\\Q1t '0!)* '/!xy2IH ';!*( &'}')!\\] '+{.;U&'q.>!&' ')Z&'t',5':!GF '9!eiha`;:ML ')e'-!XVWY 'W?'-!67%?#3$ '6!-.%@ '5!rs%~ '6!&'%, '5!^_%g## ']!67%?## '-!&'%1## .;!RST .>+.;!VW%~ .<!&'%U .>)'W!mn%~ 'X!&'%f#8$t%~ 'Y!&'%p#5$ &0!=>%MO%U#5$]%mo%u#4$ .9!89<=BC@AD%G##>?:;4#67#6$ &1!cd%hTi%~ &2!&'%)#12$*%/K0%I#10$ &.!()7 ')!=?O_ '+}',('-!\\]%_ '/!)37fz{ '0z'8!CD%ft%~ '9!&'%)-%/VW|%~ ':!&J '0P'W!>IJ#8$ &(!uU &+7&(T&).&(]&)6&(\\&)F&(a&+9&(`&)h&(g&+;&(f&*-&(n&+=&(m&+!?ACE &(!p^ &,a-Qc&)!_c -Qd&,q#1$'Z!&'%J#18$ 'W!MN%U '^`'a!@AN%PSv 'b!'*+. .93.>!(*# ',@']G#'):#0$'Yv'X!no 'Y!wx 'W2'X!pq .9!LM%UW%Z\\%ik%n -R!*+%6 'W3#10$'7!LM%~ '8!&'%>#12$ )e!HIKN%SVWabei%lnp%uw%y{%~ )f!'+%-23679%;@BCEFHIM%PS%_abdf%ik%rt%~ )g!(*%79%=?@BDFGIJL%OQ%TV%XZ[]%bdfgkn%prsv%y{}~ )h!&'(,-/3%9;%>@B%EGIK%MO%RT%cehil%or%z}~ )i!&'%)+,/13579:?%CE%HJ%\\^`eh%tvwy%} )j!'(%,.13%57%9;<>@%JLN%UY%hj%~ )k!&')%1357;=%CF%IKN%TV%Y[%bdfhj%mqstv%z|} )l!'+1369:<>%ACDFGJM%PR%UZ%ad%fh%npr%tw%{}~ )m!&()+%.0%2479<?@BFJ%NQZ[^_c%ejopr%uw{}~ )n!'(*%,047%:=>@%CEFHIMOQ%TVX%Z\\%_aeg%ilnrswyz|} )o!()+%-/346%=@%EGI%MOQ%TV%\\^%`b%iklnq%suw{|~ )p!&()+-.013%<>%FHILN%WYZ\\ (iC*r5(pM)89(gy(h[(gk)p*)o>*A;)s|*9E)ui)cO*s5*ux)R/({@(Z*)7s)B.(~d*4~)F{*42)@K)pg(_l)>Q)a|*2'*Jb(\\0(u2)4?)\\@*9t)8])5n(eJ(f+)|s(^7)mH))<)7>*Yr*ua)6M*2O(o@*t|*0J)cV)oo)E[)op);L(XR*W~)7F)z6)?3)hN);2)66*8L*xa)Dd)cf)61)76(Wo)k9(cY(a_*.d*b,))v)G`)Jk*6R*.k)HS)vH*E'*oR([d*U/*:L*4b(bm*L>(a&)p!]`bdelnrsu%wy%} )q!&'%-035%7:;=?@BCEFJLN%X[%^ac%egj%lnp%ty{}~ )r!&)+%-/%69%@C *B**t=(Yf(qR*{F({T)6!th )BK*V+++A)b})DT)um)12(c!`& *^r*4P*Wv*mT(Z=)e4(t-)1k)`B*K0(tz*:])Cj)}<)&|*/8)l*)TJ*[[*`!0t +3')Q4*cF)}()-`)v**@.*A<)Q!596 ))I)*v)nD*q<)>X),G).P*_0(s@*7;*a^*rQ*v?*_J*/W*X,)5](YH(e5(cm*_!9:< *a,)F:)-N*6j*JF+,1)3Y(`E)nu)-P)?.)\\_)Z'({u);N(^!A| )EP(T_)yA*{Q)_5)r!DE%GKNPQT%_a%ch%jm%rvwz%~ )s!&'%,/12469;%=?@BD%HJLN%Z\\%df%hk%or )mi)*e)gu*=C)<Z)7R*mh)T7(ci(b+):n*mu)~O(Wj))c*8V*5A*6\\)Wn)Sx*~=)8f(ck(hL*JC(pj(TS))K)Ow*'H*bn)/H)=:)f/*KF)D5)5i*W{)rS*Zw*eB)-M*=?*@y*z>(dx*E0)PD)1!mh )^Z*:;*8Q(Vg)SU*Bu)<z*)0)Ks)C7*;^(dK)}j(Y0(^X)UG(}G*[b):1(e&*;!AK )Eq)v7);C(|=(~@))6*TK)70)F'*V,):_)9r*G2*{`*T{*/a*nL(V;*q_*y+)@U)f))s!tvx}~ )t!&')*,.%18%=?@C%EHJNPSU%WY]_`cdf%hjkrtv%y{}~ )u!&')+-/04%8:%EK%RT%WY%_ (nv(|{)*'*p'([V*3}(d8)>Y)lB(i*(ZQ*Y,)6G*mQ)C[(ky)[T))*(f9)^m*^P)62)<Q)9[)-_)[n*bz*7\\*_A(|v)AX).|)S7*r>*Y(*JJ)<>)yh(pX)Lv)5,(fL(UE)z*)1i)[j*T>)6B*`V*~U)y\\(e`)n?)7k(c()Rg*_p),X*~:*2q+3k(Xj(}?*Xd*1T)?G)_?(]j(^~*D_)&Z({W)7'*d@)lq*ZZ)z?)2()~4(V[*/9)rl(TW*7f(`7(_m)M5(d^*[|*n^*sl)YY*rZ)J))u!`abdfgklnp%ruyz|~ )v!')+%28%;=%@BCE%GI%KO%RT%VY%[]%jl%np%tvxy{|~ )w!&'%*,%.0%6 )tu(\\&)se):o*N`(t*):B)(~){E)Ie(W[*8Y(j8(Tx)mR){])*!Qy *q>(`5(f=)^e)9.*n~(oe)@n)Ig*d[(hY)W=*.I*IY)5O*/1)mY*;=)vD*si*_/)2o)kM*T1)Ov(`T*XP)O3*3G*>{(n-(bn(Vb(Ta(_D*(G*d_*&i(YL*[t*&C){b);m)&g(\\**51)nL*(i)W6*1o)D6(zh(|V)vN)<[):r)9b)8<*ns);3*_O)}h)nt)5o(tM(fJ)P2([z)5P))n)P?(Vw*X7*Ji)-i*`f)w!78%<>%GI%MO%]_%cgil%oqt%|~ )x!&)*2457:%=?A%GJL%PSTW%Z\\%_a%c )/R*2s)7/(U&(cd*b~)9p*4J)@/)R5(X()1n)W+*TB),v*Ef)-7)82(^&*;v)G=(_s)8t*[=(ZB(~G)xH(|Z(`J)zZ)1<*a2)pp).B)-{)ov*[a)^J)om)}])s8(_f*ar(qU(X0)Z3*_{)>G)}/)e0)VG*1n(yJ)6x)++(nl*?3)}@))e),\\*`J*/U*y')9:)Y_)ut)_;(^D*uF(p5)l2(W~)l5)+-)1f(u-)Vc)Px)ue(eY*sr(_!>t )9A(eg*mF*Tg*Ys)cW)u{*G_*_~*Tq(e=)x!de%jl%wy%~ )y!&'%*,%047:<=?@BDF%HKLNOQ%VX%Z]`bdfi%oqrtvwy|} )z!&'%)+.%24578:; (TG)q/(eK*m<*xV+2S*o.({Q*S_(T!hb (^x*>m)47(ai)F>(Xy)0D(_.)Ts(^()6Y)?9*rW*UQ*`O)m|*c*)rJ)Q2)dO)eX*T_(qf)r`*XL)DA*oA*3w)+<)Wk(u_)|\\)s{*o<)Pn)?O*/O(q7(]v*qn(|W(s((f,*[g)>a*x_(my*mP)q>*`y)9?(gq(t!@` (o~*\\N)Cs*ZH*8U(`[)1p(qF*F@)&;+0<(YM*x}*Sv(w@)0O(d:)6?*a.*c/*{T)0B*2B(]d*2i(|r*{J)U-(Uy)z!<>@AC%QS%UWY]_%df%oq%uw%~ ){!&'%57%9;A%DHKMO%RT%VYZ_%adgh *X0(e.*0B)}c(WK(U<*qO)T*)h1*C6))N)lg*21)L')t3*mE*-4(_T)_h(e**_e*:q*X))dt*{B)T0(o-*9z)?[*4.)5[*r((uu(W:*S|*.T)>9*=U*uI(iZ*ye*4)(c9*Ta(e}*4>)+5)Sf*X9*9s*d.(f-)Q{(_y*.Q(oB)`C)S,*(9(tq(W8)/1)2K*(Z(Tv(|_)E7*FD)&C*ne*yU)mS)`&*`Z(^{*/^*Sz(to(_W(X=(f*(tQ)>r*4(({,)69)7,*^z)*4)R&)}:(WJ(Ya)CK){!ijmo%qt%xz%~ )|!&'%+-%79%BDEG%JNOQT%Y[]%ehikm%ortvy%{} )}!&'*%,.0135%7;=A )Uj)VM)x`*K6),T)l()6]*^o(Yx*eW)?I*5!Z| )+2*5{*Xt(a0*MY*XK(t3([\\(Vl*qk)cT*6K*Wx(|**S`*r:(uT*/[(g;(ld(kU*TI)>4)JQ*mL)po)Xz)*a)kn)D+)E])|l*3z*Xv)2F)y>)>]*Xc(^T(`4*mU*/y*3x*.L(~C)Wy)DE*&;)o}+&I*6a*0|*),):}*oQ)z^(fN(h7)O^):`)4}+04*4w)m=(a3*uT*>e)Fo*F&*qP*s1*nF(Tp(ea*.s)Fl*Z-*2K)C2)+0*1H)}!CDFH%KMOQS%XZ\\^abgikmprsuw%~ )~!&'(*+./13578:<%?A%GIJL%NQS%VY%[^%`i%kmnp%rt%{}~ *&&(pL*2u)Gq))-)>6(a`)0F+4-(X}*\\H(^8({b),P))1)Re)7[*Wz(^=*m\\(bf)SM*:M)eC(p,)Di*X-(tE*_-*=*(g@)~H(Wk)Sk(zt(vE+2X(eA*Ee*~r*UB*3~)>@*x^(n6*sd(`H)k2(`j(|?)7l*L.(UC)7:)/\\)H{(^?({O(^l*N<)~\\*{[*08)1o)^'*X/(]n)*n*`S)ix*N>(ni)tz)-6+42*qI*^R+'T*TE)oj)Fu)Eh*Z8*X5(`W*^t)Yr)HN*n_*bs(n9)E(*K~*_X(gs*&!'*%-/%246%:=>@%BD%FI%KM%OQRT%XZ%]_a%hj%lopr%wy%~ *'!&')%.124%@B%GK +&)(zy)Us)R-(V9({j*~Q*d7)3v*b5*v{(f/)VX(|0(_p(j**0=*2&)<i)8^)@:)43)0f)`3)R!^P (tU)DR*8J(sT(l|*Uu)QK*bc(uJ*2M(eT)Ue(fy(j=*<3*=2)Fk)y6(g7(X7(ee)pk*V;*qQ)Sa)V[*Xk*L<+0[*X:(l-+1o)my)-l)eL)0A(hN(V<)LG*J?)0+*^Z(go)_Z*Dm+06)U&({F),U*.<(j)(Y8)fG(f@(dP(ZI(ek(g'(U;)//)ib(su*>u*4e*G])e<*(z)XG*'!LM%UW%{~ *(!&'%*.%8:%@CDFI%KPQSV%Y[%]_`d%hjk ),d*DB(h~)6g(V&)SX)5S*9x(h)(c])fQ)Yi)l8(`,(b~*TA)KF)-n)/2)W8(o2)O4)gi)G-*_i*/T)8s)0|(hv)n5*Um)`>)VF({])*j*;g)2s+1b)v}*G@*'0)oy(_c)1v)`u)A3)*;)0&*Tr)^K)86*^s).H)0;*Eo(ms)Pz)0m)35(cX)1`)AV*X?)yu(WU)_k)RN*Sp*TV*.r*;y)@X(wu+'Z)UM)WA*UL)U7(WT)^F*<s)52)1Q*tQ*X')xI(_n(nz(q+)Cx)lu)z\\)yg)~P*(!opr%tvy{~ *)!&'%+/12458%>@%EG%NPQS%`b%vxz%} **!&'(*%,.%4 *3i*{:*`1)\\M*Sb+/q(v`*/!*J (ef)Df)HY*^{*'V*sc(e')/W)mb)Ry(d)(y2*.A)85(_S*55))9*@7)6C(^L(zs(WI)x>(`\\)18)UJ({!{y *S!^m )@+).W*r;(u`*/(*.D(kP)EC(t_(XU({m(aa*;o*xj*X>)l/*mq(Zw)z[(W2)EB*~H(y*)P5)pj(o=(|t)}N*qC)`w(^H*4-*97(uE*/E*;<)HA)Ex)v4)uS)7M)8r)~;(Yv(a+(_B*;e)KQ*g=*ZC*X1*N;*o/)~h(W1**!56%km%tv%~ *+!&'%= ([<*8P(`k*{D)WZ)Xv)VJ),7(\\s(vP(|d)UB)Rf)m**?<)GB(t|*So(c/*dE*rC*AH)I:)w+)`O*4z(V8*bP)UC*~N(v{(mQ):d*nJ)sy(Y.*5E)eM*NL*{O*/u*.x(a@)>T*dI*^!im (eH){\\):L)9])ox)yp*J5*r,)5F(al*9I)G.)DU)9/)rR)|Z)TV*.m*N](vD)5.*Bo*9l)lI(ZO(V_)mI*TO(}O))F)}_)?F*eL(V^)Tz*M2*)~*o'(VY*U3*_l*u^)A;)xR*_b)_n)Ut*+!>?%JL%RT%~ *,!&'%F (}B(as*;[(^.*:|)rB)Af++l(V@)1J*(!nc *.i(V)*R|)A_*xh*uD(r[)>g*o])-h)mm*uA)|!LK (_3)_1){^):I){<*.:)gP*w&(U2)^S(UJ*d&(d_)>L)@0*7!u~ (g9(}6)m>*v2)7B)eE)ma(}J*~C*=-(}E(g+)sw(U+)S\\*37)7<)9&))0(^C*Z!+l *o0(Yz(eB)1g)_.(a()8a+0:(w:(ZV)qw(d-*.|)<2)>&)6L)9P(ZD)cS*NC(_&*S}*.w(o**=/*mZ(^g(ex)&N*,!GH%~ *-!&'%-/%35%9;%P (YS)|P)UV*bg*~Y(iy(gA(cp(gZ),=):H)JF(_b)36(_}(q[(b@(o1)tB)qK)+M)3E*)7)5w)6Z(V6)^p*29)7a)_f*uK(oZ*:I)E{)Hv)vX*xw)yI(sr(g^(eL)W~(]p(`U({Y*Tb*43(i<(p0)0L(o4(f1){@)0)(zd)9_)6c(e@)6&({~)E;(h?){e*:T*dK)+)*Ki(t^(p8)7x*Z6*4s(o:)~2(Y2).v({t)OP(c0)}d)e.)Fy)t4)qv)@@(_((U|)pm(~k){k*?&(tt+'Y([W*-!QR%tv%~ *.!&'%46%8HNUVp~ */!-:KQ_xz|%~ *0!&'%)+.%7:; *{])2N)Xt(oG)@O)8W(n,)7V)6,)+i*qc(of)73(j'*Fc*5u*_4(i_*<m)DJ*XV*@5(x,)FB)7P*&P*q`(^<)\\)*U;):\\*NB)4G*/G)_D)Y})hf)Jc)eh)+`*bT)CU)Uf)8o(at)d'*27(XN(vY*d>)_[)V@(b:(U=*t;*on*A})vM**-(]F(ou)<o*3h*(+)T?)Hr)J-(_*(dN)H))dF+1l*&S)ed)y3)ZR)hg)D3*eG++X)wf*<E*;i(el)FJ(U*(d?(ar)ts(d<(`C([_(Xm(YY*0!>AC%FHK%OS%UWX[]%`b%eghj%qsuw%{}~ *1!&'(*+/12457%=@B%FIJMOQ%SU%XZ\\^%befh%mqr )n-)|8*(B)SS*sS(a\\)j2(h;(Yr*31*<n*_o*oq)+_)/N)VB))`)>V*5c*nX)/})_>*.]*(^(_<)G[*(a*96(Tj*^p*eJ)An(VB*Ti)<V*3'(\\X)m;)bE(|C*_N)[L(Us)</*od)+l)?;(`1*KG)_J(ad)ez)i;)D|)vz*tZ(Tz*bA+,9)Vn(_N*XA(ez)78)gl*=T*t:+3p*mv(Wq*1)(_?)^P*rk(~Y*xf(eC(Vx)Y4)hj)K*)uG*{d)lV(`2)no)U=)F&(^9+4,*3((gD)}P)|,*1!svwy%|~ *2!(*%03%58=%@DEGIPQS%UWYZa%fhjoprtvwz{}~ *3!&+%.02%468%EH%MO%Z *r|(og)7L*r=)JK(vx):a*&5)ZN*rA*9m(cq*xe)+&)^d)9k(cs*DC++5+11)uh*tv*Z=*XB+0v)[D)xU)-9*r<)5J*~>(er*n7(Y,)?g(}!jf */V*DE)R6)-o)gA)Y|*/@)&9)8,(zz)Y~(d+(U^)9X)lb)6d*^X(Wa(Ve)ST*.P*Sw*>'*HJ*0?*`s*n})~d*~k*K}*>G)Tp*~P*.v(uU+1Y)gU)t6*Dv*~!6L (kb(et(pU(U]+1D(ce*_Y*54)ry*{g*F0)Yy*@k)C:)30)Zj*3![^_begj%oqrtv{ *4!'*%,0479:<=?IK%OS%Y\\cdfgjry{} *5!&)%,.%02367@BDF%HJ%VXY[^%`bd%hj *U4*9Y*;@)q2)Qs).d*<y)f>*:s*nt)Q;)si*my(c~*:p(^^)*,*V>*X8(U5)ge)E&)G_*dJ*tM)a4)SO)qI(xT*oB)Q/*0v)@p(|.(v-(x\\*q!7F (W'*=o*?J)Mp)px*o1)f.)H'(zo)qo*dn*uL*)3*`/*U'),b*'|)yP*N?)Sz*F^({})*1)HJ)q`*/6(^a(]r(b1(wD*/F*uM*:E):.)rk*Bv)yJ)X+)+/(uf*@i)^H)Qq)7))pX)>J)1/*qL)@W*H/+/s*nG(ej(g(*U7);~*5!kl%prtx%z} *6!()*-%13%68:<%>ADEG%JSU%Y[]%`bd%iklp%tvwy{}~ *7!&'%+-%25%8=>@%BDF%L )<&*C^)L>*6n)vk);o+'l)6|)Ci*<g(s'+1v)SY)Z_(|<*rB*To)c})E\\)71)d&(V=(v:)Q-(rk)BE)*D(bG)2|)Cf)q.)rM)d,)ze)7i(h<(fT*mS*b)(w7*.M)Qv(U0(uC*2F(tn(cf)l4*s[(m_)81*5<)0U*qH)Vy(ff*{V(^Q(yR*5((u{*tW(ZZ)T:(}A)7I(XB(cN*6M*`>)YR*A*)72)*c)vA)<b)93)/'(w3*dS+/o(}D)8`*2x({4(ig*o!KN )V()1()El)eJ(_P({8*7!MN%[]%_abdg%kn%svx| *8!'(%+./135%:=@D%GINRZ\\]_%cefhjl%np%wy{%~ *9!'(%.0 )7Q)T3)cy)60*ma*.W*5>)UO(^h),A(uA(ak)/D(u@)B-*DD)mC)8;)4[*)F*T^(h8)O9+/u)Pm*B{(fY([M)SR(ic*Y[)cJ))])/G)i>)77)9J)cj)-|)X4)U:)=T)[>)pq)vS)q<)lQ(`>(e8(U@)+4)?c*2`*4Z)6^(g1(`B)_0*Jk*Yx)T6(f|*4^(q**Ky*XT*r`*cz(XK)SI(jW)p_)te)6k)_{)[t)-Q*@D)H[)uX*&Y*6z)CI+0F)8x)v3(oR)tG*t})6!<n (aI)i=)Q7*9!12%48<%?BCGHJL%NPSWZ%]abegijny|} *:!()*-.01347>DGHKPU%XZ%\\^`acdfhj%nxy{~ *;!'(+-.2%;>?CEGLPR (i]*5i)mV)pG(cH)n)(\\y(}F*S)*&)([&)ce*~a*y_)ZA)k8)x9)<4)s3)7f*xq*X+(gl*35(U?(oM*:g*=p)*b(_`)kL*T((}T(oD)TQ*xg(wa)ti+'\\*_|*(E(`p)5m*nT(VZ*<B*>k*=L*?c(p^)Cr(n?)A^)Ub*U<)Bt)]E)C])OL)FI)56(v/(TI(_7)ZE)E^)S=(^B)HL(tm)Oy)lc)&a*5;+3<)?y)w!rk *~[*Xw(~.(UK(W<(f3(tw)tA(lV)Qt*_U),@)S+)T8*Sh)9H*;!STVWYZ]_%chj%nrw *<!,-%256:%@CDF%IK%MP%SUVY[]%ch%kqwz{~ *=!&')+,.013%68:<%>AE%GI%KN%P )0I)U9)d:)6)*m!Ax (cR*_R)~9(Vs*U1(Uk+1r*m!df (`g)[B*aB)UA*U?(qB)'F)O!2[ )E6(f_*6&*0t(rq*A6),w)6e)Ld*o:)>m)0])G?)s5(UA(Y1))/*v*)<Y*1g)&@(YX){S(_z*:r(TZ)/a){I*mY(Y>(VF)y^)i<(bL*:')=&)y5(|;)S/*u=*^e)R)(Zn(d5)WO)<{)Ad)R7)1E*xW*T[)*u)iD){=)yC(T^*b7)hd)RI(mo*cx)Ss*Y2(cI*Ea)C0*\\K(}M*~;)Wj*=!QRV%Z]%_a%cehj%msu%z|%~ *>!()%-3%:<%AC%EH%OQ%Z\\%`bg%jln%rtx%z|~ *?!(*,- (e3(wQ+3w*YJ(dq(nD*y.)D(*do)Sw(^4)mn)7])dq(`R(a^*/{)^o)o*(d*+0A)K-)uJ*s]*K^*13)`_)b:(^U)E_)k:(sc)=l(mL*Sf*{K)63*.o)1y)_o(sk(V!UN ).X*vy(W6*Sa(_v(uW*.E)5p(Va)@.)5**;M*?z*;x*Gv)ad)YN({p*.l(^c):()E`*3f*;N*IL(]7({1(uO*_B(U`)Rd(^1*LQ*^Y*q}*AI)if*nj*q?)VI*:S),n)<?)Tg*>2*6@++w(r6*X[(TO(dw*?!./%24%7;>@%GIKLN%QS%_abdf%hlmoqstv%y|} *@!&'*,-/%469:<?%CE%GI%SUVX%Z (WY)>^)G+(js(Tm):s*~d)6.(y+)ig*99)VL)Ho(\\e*<J)t7)C~(`S)SG*.K(\\9(i^)a.)}o)AB)h+*:Y)D.(}v(`:)aM*JI*q9*rK)<r*Xa*7,(i})R\\)5c*/o(rj(W_(i?*XO)A<(TP(|x*Kx)G|)8_)z,)_i*9T(bb*w/(|o(h:*b;*.g(u/*XJ*Eb*8!,- *Xf);J(|b)2x)V,)wh*S{)tl)l0(g&(Ws*\\G)W;(w;*._)x/)S6({X(x8)kp*4B)2u)Wa(so)k!u{ )d7(cV*/4*@![\\%ce%hjl%npqs%vxz%~ *A!&'%),%5=%AC%FJ%TVWY%\\^%bd%fh%prt%w{|~ *B!&' )qA)pt(a**4`(n_))P(tW)eZ)?_)Xp*T;(}=*De(cP)t()7h)@?(VT*yf*Dt({U*T*(eO)sp(Xa(}S*~@(v?),L)wd(sj(T\\)F2(Ux)7W*P[*`U(b')@x(j|(lZ*`:(Vi(Xo*eE*{E)Qo))J)/u({[*N@*T9)>1)5g*{k({?(|])9@(i'(e4)nq(^I*A+)E.)H4)PC)6U*^}(e1*82)Vt)m3(US*XN({')ao*BU)B!(p *0Z*FB+1k+2e(}c)Cm*`()FD)DD)5))|C(r])+L)>k)Zp*B!(),.%46%@C%IK%MOQ%SW%\\^`%fh%np%twxz|%~ *C!&'(*%02%57%E )0.(`Q*2C);Z*JN)l&))M)FF)7^*t`(e))c[*Te)R;)rH)z-(f2)s:*xZ*8<*TX)u1)CR)_C)?Q)<B(k})/O)y9(eU(Tc)P4*3c(|X(k*(mp(W!uw *{G));)Dc*2n)/4*xb*`9({B*Sy*TY):{*8x)=2(kD*:=*d9(Y`*)w*`W*(O(\\q(r))YG({v*T-*3`*dL*?M)~R*Dq*s!(, */&+&D)uj(~-)zv*`z*sD)x0(zi)8p)|x*@))H.(hX*/j)hq*)y*n[)5\\(q}(Vj({:(uF(r,*C!FGI%KM%QS%]_%bd%suw%~ *D!&'%+-%/1%@FGI%MO%QS%UW%^ )g')8/*[@*Z]*4R*:B)6o(eM)TE*d2(tP)/3)Rw(o0);P*X*)nv)Z((o>)MD)n;)[S*U8*Tl(oI)QO*Jp)v6)9Z(eV)_/)Rk(r0);0(q3)Ha*6m(hb*)-(ZH*\\V)Vo*YF)_m)9G)V>)Yl*/'*=g)Fv*`;)V{*rl*Se(t})d>*C1*6P)m`*PR)H0(`n*Zp*nk):/*xx*[9(iu(X5)C=(l})1U)V8(`](}N(tO)WE(rC)l-)kr)0E*84*5q)7{)DF*_s)qz*ZA*X4*mt))^(d;(f0)_E*D!acdf%lw%} *E!)*%-/1%69%=@AFHIMNR%TV%Z\\%^`cghmnp%ruwx{%~ *F!'(%*,%.17%9<%?ACF%HMNP%SVX )RG),4([3(VA)+C)8K*8g*`R)G**dB)sA(ei*n6)-H)|R)GP)8V)}f*.y)n&([N)6X(tZ*`G(_k)y;){G(n:)-v*`L)U~(}e(n[(em(]y)X>(mw)9`*xs*6Q*FW*LV*`8(e{(}t*79)7@)5t*5\\+0,*r6*~!8F )IU(ur)7=(i7)8'(gr*Et)U8(vw)k<*Jz)O|(t<*UW),l)Xo)gc*x](T~)_y({C)us)8N)AJ)p/)1K({R(wd(TM*6')Rq)gE(V5)Dn*09)-d)@C)CY).c(uQ(vu*F![]_abfh%jl%oqrtuwxz%|~ *G!&)%/3468%;=%?AC%HJKO%VXZ%\\^`%ch%jmoprsuw%{}~ *H!&(%.0%4 )(n).9(d'*vx*_n)Fx(n0(i()1_(U')[3*/5*:5*=q(vH(W!Ze (}C*.F)Ch*@r(fw)lL*4G(i{+'g(X/)Ww*Tw(|g)3>(cz)nj)Ws*D~)?)*qJ*.S(f?)zR*)a*q=(k(*1P)kD)8.*FY)VD){c)5-)?C(cv):@)S1))3(f`*m[(U9)Rh*TP(}P)@)*9c)H((f!B8 )Q+)Ox(V()8S(cW*8>(WH(Y7(oA)5&*tB)AT)d.(bg(ab)0x*TS)@])ai)Du*MR)u.)t2)A`(l)(f<*n{)d?*H!5679:>@%BDF%IKLNOQ%UW%Y\\%`d%jl%oq%tv%y{%} *I!&'%/1%46%9;%@B%IKN%QS%WZ )yx)0H))T)0b*6o(t;)1\\)aT)_q)YB)RW)dE)MH*K2))u(UM(xu(j<*n=)Tl*)R*s6)5+*.`)ru*Dr(c2*tb*_')Aw)&4(Y))eY(TQ(d\\(t5(ep)98*o)(]m(Vm++P*.>(gc*W}*J2*8W*qA)V1),c(y5)A.*r_)gj)fA(du*6L*{Z*10({a*r!mF *.Y)q8(dX*ow*{n)~l*Lp)XI(UN*1c)x6*TJ)1s(gx(V?*xY))?)L~(\\M(en*Ul*>1)u9*tH(`d(h@(m8*nZ)V+({l)Vi)AC*I![\\%hj%oqrt%vx%z}~ *J!&'%),%13468%>DEHKMOQ%TV%Z^adeghjl%oq%su%y{%~ *K!&(*%/ (|m(zm)FT*3s(iq)|~)>C)I|(V/)OY*G7*uv(c^)80);@*b0)?>*4E*Tt(^e)H1(d.*I0)4=)Sr)TP*U-(}V*BP*9v*nf)O5*_,)?R)/-).N(Yj*I|)@h*67)f<)1z(^@(`+(on)-F*b(*J**df)*g)D4)/Y(vG(]i(_i*4|(bp)S'*sa)aZ(WL(Yw*1-)C{(je*nb)y8*Jt*.}(rw)5(*tD*DN(k_*x[)-t*Su*?u*d+(e6)@6)*~)lY)0=**l(xA*/!+. *^S(jG({Z)1,)?m)g>*K!13%57%;=%@B%EHILMO%RT%VX[\\_%cefkln%twz%| *L!&')+%-/%57%;=@%DH%LN%PR%UX%[]%_ac *`A)oU)qi*.t*u_*BA(zv){:*t.*Iw(b3)a_).5)@5*TF(|Y*~9))))PB)Rb*S!jl *`B*_V(dA)7&+/!v} (fD(Tq*:+)cw*E7)&i*J7)VR*sb(g|(V.*Ss)`2(gh*qX)_a)WC)pi(Tk)tI*FT(~U),3*Nz*x|*q])^i)Sm(tj)9a)q|*J+)ZS*9:(qa)bL(dB)tO*s^(hS)-J)`Y({k*T~*~V)P<(tT+0&)y_)DM)6/(XQ)mE*0r)T`*r))R.(W+)mv(^G)Fj)Z}*a_*6B(uc)i~*L!de%lnoq%~ *M!&'%03%8:%MO%QSUWXZ%t );M(},*aD){W*U.(vN(gW*7y*<+*MT*26)IX(l<*2l)cU*eI(_)(UL*xU)9N(T`(eS)C1*5v(tB)VU(TF(sx(cJ):5*nK(Y&(WE*JA*xp(t]*a6)ys(V~*4t)m5)S0({S(v\\)-A)I-*Du(ZJ)):(UF)sq(Vy*9A)6T)@\\*ap(}~(VS)-]*7?*`p*3a)mO(V:*KY)26)P~).Q(U6)pc)Y:*TG*Sk*T!n5 ),?*22*1[*.h*;J*<'(mu)Pp*w,*r*(vo(e|*nP)W5({|*{C(}>),R*s-*M!uv%~ *N!&'%:=GM%OQ%SUWY%\\^a%df%hj%ln%y{%~ *O!&')%> (d&*:_)LN(x6+0g)+**/i*<u*>!./ *;|*G0*__*Xb)pa)-U*xv)uH)@i(h1)7O(XE*7<)ml)+N*sj*ZX*F;(g:)TH)V/)R?)0X(b/)k~)*l(WS)0y).r(}))l.*b4*ms)d~)Sg)X)*cv)CG(e!(P (X3*eD*TU(d~)*k*_S)W.(U{)p[)JU*DR)2A*8&(X;(Yg*`v++0)20)W!g^ *r{(Uu(wL*t,(TT(~+)y1({>*TQ*1L)gC(pi*9R*bG(e^*a&(j[)&=).,)2/)OD)e]*46*PQ*O!?@%^`%hj%~ *P!&'%@B%H )Up(|1*KZ*xd*Uv*~7+0*)WT(^p(]h(p-*J_(dU):S*_&(n)(f\\(nB)fR)Y(*/Y*_m*:?)2f)/Z*rX)C.*.@*Y!1j *mX(~_*(T)CF)1&*qT*2N(U~*bm(bh*r^(]f*_a*As*d1)AE*w.(ze(c,)tm)D')Fp(gt)^Y({g*^g(^Y(nd(g\\)=f)Ar*X!^C *5:*>v*aL*)6(_r*CH)E/)@2)\\.*E?*[v(lX*`X)ot)^Q)b\\*W|)7S(`3)TR*X<)/@(rv)3\\)C<*X`)5j(jS)Wm)Ck*^Q*P!IJ%PS%Z\\%~ *Q!&'%R *n;*qG)qh)F8)Jw(g6(U:)_:*T,);^)?-({<){J(Zj(|F)sI)QA*PA*(H)Sl)ph)?K*_()''(}Z*D,)F;(co)54)|F)XL*/>)L<)|M)-T)Zr),])9D)VK)D;(TN))X*X&(Vk*4D)o&*s9)7E)@v)6A)Sj*Xu)a7*0Q(]k*3d(eI*aM)6[(hD*F2*_**2;*nq*@o*_j)UU)h.)?A)q_)kZ)t\\*7t*Ww*m;(Y/)Dz)m]*T.*tK)8@*oH*r+*?i)84)r()-e)e\\(Uv)/F)>o)7Y)Ou)>:*Q!ST%uw%~ *R!&'%;=%[ ))o)mk*bW*S~*9d)E))>*(f5*FZ)ss*4&*5-)RH(U8*.a*3))q4)I5)PO)6*(Zl(Xf(n|)7q)Ot*Ye(eG)@1*.R).b)8+)9o*7!lm *0V))d)&,(`P)Aj)ya)z9*X()^t)mx)Yv)Si){X(Ts)p^).k*mR*JU*.b)yE*4C*eH(W!-R *8?(fl))&)U.*T0*(U*^^*3u))b(g=)pJ({P)A,*~n)hA)F]*Ev)Co)f=*T!\\? *`H)|f)_])a>)7.)s7(kx(U(*>a)E}(aj*E[*X.*nR)}e*R!\\]%{}~ *S!&'(*%\\inx *T!+4Nm *U)(X1)T=)x.*~E)6V)cH)7g(TY)tK*^V)<]*XZ*&()GC)*s*KJ(uS)<K(sm)d{)I6*o&*`5*XX(oC*/A*Tj(_9)8Z)7C(cb)G&)i**:o*cy(i=)r')^W)UF(^E(gS*XD(vs)Yc)Vg(zl**)(Vh*(-)Yk(z`*7c)WW(zg+&t)HV*Zx({N*/=)/m*.O*b?*Xp(tu):,)yW*YZ(ca)?q)x'*T)*r1*.^*mn*-u(k{*d])C>*0R(|h*aT)@q)).(X2)Ej([1(X>(o3)+=#2$*U!CD%KM%PSUVX%_a%df%kn%tw%} *V!&'%)-%3568%:=?%EG%IK%_ (Uz(TR(]e(TV),<(cT(T[(V,(Td+'J(z|(lW(Tn)y2(U,(b}(U4(tS)cY(c})Qp(mt*4h*{l)Q3)re+2\\(T|(V3+2U(U!IV (V'*9O(zk(ie(kV(VX(d!CSY[d *uP*X](c)(eR(c!5=M *X\\(c!ur (_!u{ (`!(GMYZfx{v *?`(a!>CBQT (^N*0<(V!OW]V|u (W&(Vr(W!V.] (XF(W!0`bDf (X!@I )>3(X!<? *V!`a%~ *W!&'%f (X!A9 (W!mx (X!XVskeq`] (Y3(X^(Y5(Xv(Y!oqsNcleZh (Z!(Y| (Y|(Z!\\?^].L<UX ([U(Zs([,(Z!x~ ([!CR|~ (\\!'8T (]+(\\!kjdl (]!,0 (Vq)RD(X!:G (YW+43)RM*'}(^:))E+1g*{m(^M(t:(b!au *O((bx(_^(t?(]z(V4(]{(VG*JL*K)(VI*5?*KW)xQ(zD*I:*1G(^!w} (_!0/ *W!gh%uy *X!QRW_eh%jlnoqrx%~ *Y!&')*-%03%79:<%EG%IK%WY]^`bdg%iln%qtwy%{ (_:(^!bnq *S!]cdgqrt *T!&'/326%8:<=@CDHLMRTWZ]`cdfhkpsuvx%z} *U&*T|*U!(*%,02569:=>@A (cx(d0*q!lqp *r'*qy*r!328?JU]bhj~ *s!*4M *a!vz|x *b!2':9<@ *Y|*Z!&'*.%03%57;<>%@BDJL%RT%VY[\\^%ac%jnor%vy{~ *[!'()+%-01348:;A%EH%MO%Z\\]_`cf *b!>6UKDVJMYlhb]aqu *c!+1OKP^\\fps (`'(th(a!cmn (b&(hQ(b!8>X (e<)be)s[),1(_!ho +'G(dl),>)lW))7(o/(p!3+ (rV(s!;DP (n!ehfoujk (o?(n!w~ (o!LhNi_^KPYV (p!7. (oo(p!<Y1> (ov(p!*_bdc\\B~y (q)(p!ng *[!hjl%prsuw%y{}~ *\\!&'%*-%/1%79;%FIJLMO%UW%ik%~ *]!&' (q!<>. (pw(q!1OJuQ (r!=DYarX *{}+2^)4t*9!@DFVQoKUX^`r *:!&, *9w*:!68Q *9!_~u *:!9:/ *9!p{hqf *:!2< *9k*:!OweR}uJb@FziA *;!&/ *:t*;!)* *:!NC *;!1fpq *:v*<N*;!QIF *<W*;!sDd\\XtU,uBOH{z *]!()%~ *^!&'%. *;!}0~ *<!(&)*l4op\\fOXA8re9t7TZdvx} *=!dH; (q8*=!{n@`9 *>!&B *=!ti7Brf[\\M( *<|*>0*=!SD *>!f[dc} *?!89+:) *>!FPs *?!'=? *>!;w *?!r~ *@!(> *?n*@+*?!{pk *@8*?!RjeH *@!=;d )kc*A7*@H*A8*@w*A9*^!/0%OTjv| *_!.1%35%8;=%@C%FHIK%MPQTWZ%^`cghkqrtx} *`!')*,%.2%467?@DFKMP *A!U: *@!WT *A!XGgc]y )s0*A!Bqz *B!JN-5 *Ax*B!TB+_]Vyg *C!)LtRvc *D0),!;E (t!bg *2m(t{(u'(t~(bw(}!'*19 )5h)6!-b~ )7!4DAX )83)7`)8!J\\T )9e):U)9!)2Fl )8~)9!dB )8z)9!ft ):!QW?^ )9|):!=- );X)9!~v );!KG ):!jz );&):k);!,'d )<1);s)<C*`!QT[%]_%dh%loqruwx{}~ *a!'(%+-3%589;%@CEFH%KN%RU%[]`c%fhik%oqsuwy{}~ *b!&*+-%/138=BCEF )<!'deFgm} )=!+86]y )>)),H).])ko),N(cn(e!NZFEXosc (f!OV%XZG (e~(f![]'6 (g!-? (f!{uh (g!EF/ (f!zj (g!H{Xm_}RQ~ (h&(fv(gN(h'(g!fjw (h!+,. (g!TUO (h/(gz(h!0m9rOfEtuacy| (i`(j!/U (i!Bf:N8I5 *b!HILNOQ%SXZ%\\^%`d%fi%koprtv%y{%} *c!&'%),%.02%EG%JL%NQ%[]_%eg%oq (i!0On%p,)U (j!+r (i|(j!QY( (iz(j?(iw(j!v1 (it(k&(j!]^49 (k!1> (ji(kf(jq(k!23 (jt(k-(j!}d (k!6,9: (j!lm (k!/<+ *^~(k!eOSHkjEGnt (l!F'E (ks(l!;PGJ:BtR_Yijs (m!(Dilrv (n!1'5;@FEX ))!Wa\\Yy )*!*+ *c!rtu~ *d!'(%*,-/034:%<?AGN%PT%XZ\\^bcg%mp%ux%} *e!&'+%.1%46%ACFKM%VX%` )*!&3CJMP (~!8&9<B4DE=FHaNiXW]Omcp~ )&7(~w)&!8UVzy )'()&!wqYn )'!R8.7fUiWeEDcn| )(!:> *U~)(!Xf )-!W[fkmpy} ).!'38@G *J@)-E)d!ruy|} )e!/-:9>T[U^`cm_of *e!ab%~ *f!&'%g )eg)f!*&4 )ev)f!10(5L8?KDc`js )g!&)8 *8;(tK*yn(t!J( *{!8<%AILRUY\\_befh%j )*o)+')*z)+!,;6OKTI *XS)+!hgq~ ),'*73).!OTaZ )/5).y)/6).!lo )/!078 ).!ux )/!*KgXMA?[]<qS )0!QRTS )/t*f!hi%~ *g!&'%<>%VX%p )0!CVos )1-)0!v\\ket )1!l;1]XFZ4 )2!GM<J )1t)2!'5Rq )3!Czbu )4!,Ij ).h*sP*q!8:@BDEKMRSUWY%\\^ad%fhi (Tr)c])51)R!<[cQ )S!Q3>B: )R!op{} )S!4W~ )T))S[)T!LMF, )S`)T!5+O@C )S_)T!(DS *g!qr%vx%~ *h!&'%79%y )U5)T!|a )U!?D )T!\\Ync )U!'I*1 )To)U!KNP/ )V4)Uk)V!AC )UZ)V!67 )U!X\\x_ )Wd)V!jh )W!(X )Vb)W!*[0' )V|)W`)VN)WV)VQ)Wu)X!_?\\ )YJ)X!PwDE )W!|o )X5)Y!wI0x )Zl)Y!z=?USOoLg'Z7 )[!H,- )Z!cT8nu )[!1Z )Z!iHh )[!osr^Xb` )\\^*h!z{%~ *i!&'%TV%~ *j!&') )\\!V4FCOn{km| )]!NWOmi )^!*9 ({!7;LJ\\o )l,*~h);:(|!BL *L\\(|N*[<*Qv*_!Gdfv *`&*_!uzw *`+*_y*`!=<C^IENYmneg| *a!01/G7A: )BP*a!S\\agbj )-!4;:< (}@(gV(}!U^ ({((}!hk *1K),!gfj *9;),y+'S(}s(u!NPZvwp *j!*+%LN%~ *k!&'%.0%2 (ud(v>(u!xkq (v!F& (u|(v!K2yzQ|WLm (w'(v}(w!MO,>.[ (x)(w!epW} (x7*4p(x!l]9< (y!'T (xt(y!;= (xz(y!ILZ?OAEr (z!'&BGP (|!sz (z!ju ({*(z!acr *~!?ABDIGJKORTZ\\]`be%gijlmoq *.!9;=?BC *k!34%:<%~ *l!&'%: *.!GJXZ%\\cefjnquz{ */!),/023N7;<?B%DHILMPRSXZ]\\`b%hk%np%tv )*i)l|)(|)l;*at)g!HKh\\Y )h0)g|)h2)g!qmz )h!*)F: *x\\)h!kJH? )gt)h!Sp )i!2c.-0864 *l!;<%IK%vx%~ *m!&'%7DIKz *n!)-.4@Uvz )h!|{ )i!Id_]a )j&)iu)j!-K=/06:MWX?V )k()ji*v!|}~ )D!18C-N )E1)D!lOX} )E3)DZ)E!4*9 )D!p\\a )E|)F<)Ed)F=)E!u< )F?)E!eAf?i )F3)E!ODn )FA)EM)F!0ef )G!:;(< )Fw)G!>] )FP)G!/@ )Ft)GA)F!sq}|\\ )H6)G!iNQmE )HC)J=)H})I!GH )Hz*o!(4>DILV[aouvx%~ *p!&(%s )IL)Hq)I!3) )J&)Hd)I8)J@)Ia)J/)Ij)J!,S:OgG )I\\)KB)J!VW )KD)J!X52Hjv )K1)J!z| )K!J'7@U )Jd)KV)J\\)Ku)LL)Kc)L!45 )M))Kh)L!a[ )Md)L!mxR )M!R= )L!ZEu )M!@UTm[o )f!Je )P!:;@=KLFSTZc *^!UW[%]_`bacdfhklnqu *p!tu%~ *q!&'%6;NVbgjmor%xz%|~ *r!&-%0479@DEG%IL%PR%TVY[\\ac%gin%z} *s!&' *^!wxy *_!)+ *\\j)5!'37;>=A@H *7`)k!EJUegi )>/)@!789Sb )DW)@!L^I )^`)C5)@!f}z )A&)@~*2<)A!OD1?FQGgt| )B!>4Urs} )C'*X!236;=@EFHIGMUY *N!AD%FH%K )d!3d )c{)d!+4CDIPRTW )7r)8C)9h*s!)+.%02378:%CE%LNOQRTUWX\\_`eghmnpqs%|~ *t!&'%+/%24%689<>%ACFGIN%PT%VXY[%_acd );E)=,*2:)Q!JS]UYegfmux%z )R!(0+19 )>!0Pf )c!kptN *DV(`0*3!|yp *4@)CH*4!A5/18;k%n_FH]Q[ )CN*4!aouxq *5!89 *4v*5')CS*5=*Ue*5!aIWC]sw~ *6!F+,C2;NO?9 (q~(xw*6!ZTc )Ym*6!u| *7E)Cd*7!C4 *t!ef%moprsuw%{~ *u!&'(*%<?@BCEGHJNOQ%SU%]`b%fh%oq%uwy%{~ *v!'()+%/ *7:*6x)O!6IKUXk *y!XYZ\\`a )Pl),})P{*Nm)?2+3=)?!5^hfenptx )^![wqx )_!=B9-3jL )`!9<?XZ )a!C,8 )`n)aB)`s)a!HJh )b!*, )a!xp )b!WK^p )c!;F )^G)`A)a6)b0)5!ZY_de )w!ejps )x!,- )w})x!+3(1@8KV[kx )y+).!\\[ *v!01346%<>@BCEG%wz *w!'(%+-0%G )/n)0!63@ )/s)0!2< )1+)2!-4 )3!+wk )4!@F{ *3!]\\ )SA)TK)WF)t!+-5>LMF )?M)t!bQRn%pTqZaX^ )u!*I23 )t[)u,)t|)u!(Fwovcx} )v!&5<(W\\Lou )w/)vw)w!=NH^ +4.+2!>@A )q!1DM9GHZbYmfux )r!78.*AO *w!HI%~ *x!&'%N )r!ILftdgsx )s!-.>CK )l!7=KHEXov )m'*0!@IG *Oi*0!P\\Yaif )p!f~ *Ii*m!89:>=?@BCGJHM%OVW^]`_bcegi%moprw{%~ *n!&'(*%,/%13258%:<>?ABD *x!OP%Tknruy *y!*/%TVW[]^b%dg%mp%~ *z!&'%5 *n!CEHIM%OQSVWY]\\`acdg%il%pruw%y| *o!+,*-2357%9=?@C6E%GJMOPS%UW%Z\\_`^bce%mpr%t; )s!uz *sf)y!Me[c~ )'A)y!{z )z!=3 *z!67%:<=?%[]%~ *{!&'(+%79;HMNPSWX^ )z!XVp +1m*{z){6)oz)p!',2= )k!46 )l)+/!prx%| +0!)(-/.01589;=%@BCEHLNQ%SUZ]%chdj )m!68:DAPGWX\\hUTgfzq )n!.31/62N<GJ[KPWbUpc`d *{!aco%y{|~ *|!&'%u )nf)o.)n!mk )o2)n!x{ )o!1'50 )n~)o!?PFNH]a *1Y)|S){!>?FLN[lfrnsy *J!BGP[]` *K!'K<ANgShjv *L!F( *Km*L**Ku*L!ME?G6`Wbm *M!9N )m/*4i)p!KM )sj*2!HJLRVX[%]_^gAky| *3!*/FN *MV*x!X`c *|!vw%~ *}!&'%| *x!ilmotz{~ *y!&(),- *D!AH`bsnpo *E!C(&G8B>E.DQ_PiKULJdjO *F!+34/5 *Ek*FU*Ey*F6*E!zsl *F!EI:JLOKe}`gp\\ *G!'1 *F!vsky *G!(k *Fd*G!fgdIY5Wt<LeMBN| *H!?8b *}!}~ *~!&'%5<MSWX^_cps%y|%~ +&!&*,.%0457%;>%ACE%HJ%OQS%VX%[]_a%ikm%su%w *HV*G!qn *H!=' *Gl*H!;u<EC[cMaPZkzp~ *I!MJ5ARXps */w*0!*,- *80)|!gjupq )}))|w)}?)||)}![L>-BE498GR2lnY )~0)}!`qt )~!)6 )}v)~!-,KabsgXc@eW]fo *&3)~|*&!.?<GHLn`^qxm +&!xz%~ +'!&(%*,%68%:<%FHIK%RU%X^b%dfhjkm%~ +(!&'%: *'!(3/AJI *7!wz{}e *I{*8!ABCMOHKX[ST^dikoz *9!&/ *J!\\cf *K!]d *M1*1!,.6>?A *(,)>D*(!AMLNRblmqw|}xu *)!.? *95)B?*1!N]dtpux} *2)*)O**u*+!KS *-:*.5+1!VR *Xs*Y!+;8X *X!gm *U!RT *c!w}{| *d8+(!;<%~ +)!&'%A *d!65D=CQRFHM`Ydaevw~ *e!()*0/5 *U`+0u*Y_*Z!9S *[!N^ *Y!\\fcak}~ *Z!(, *Y!uv *Z)*Ym*Z!:EF1GI2WKbkmz|q} *[!/5.*2&>67FG?ekqdiz *\\!+0,8: *V!*4<7JF )?=*N!PXTV +)!BC%~ +*!&'%H *N!_ei *O_*R<*u>*t!-73JELSRnqt *u)+3!loq%vx +2!CPR *s!VYZko )sM*s}*g!Ww *h8*iU*j(*k/*jM*l!Jw ++!369%< )zB++!?BD%FHINOR%WY%]_abd%kn%qx%{~ +,&+*!IJ%~ ++!&'%/12478=>@CGJ%MQ^`cmr%v|} +,!,-56;<'%+.%02%478:= *u!gp|} *v!&A=5DF *~!{z +&(+0O+&!'+-2163<=B +'!][_a`ei *yo*z!;\\ *{!*) +&!PRW`\\l^jy +'!'+7; +1![\\ *-.+0!y~ +1!&)0 *k;+1!;=y%{~} +2!'.,*/4gqt~| +3!)*0 +,!>?%~ +-!&'%~ +.!&'%~ +/!&'%ntw~ +0!'+237DGI%KMPTV%Y\\efik%twxz%} +1!'(*%/2%:<>%CE%QS%UWXZ]%ac%fh%jnpqs%uwx| +2!&()+-0%35%=?BD%OQTVWY%[]_%dfh%prsu%{} +3!&(+%/1%;>%jmny%~ +4!&'%+/%14%8 .*f.+!Zv .,!oy .-!;<%>@BCGN%PRSV%X -R!XY%~ -S!&'%N")); + return src(gbk_us); +}; + +let gbk_build = GBK$1(); + +export default gbk_build \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/printerjobs.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/printerjobs.js new file mode 100644 index 0000000..09eaba5 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/print/printerjobs.js @@ -0,0 +1,587 @@ +import gbk from './gbk.js'; + +const commands = { + LF: [0x0a], + FS: [0x1c], + FF: [0x0c], + GS: [0x1d], + DLE: [0x10], + EOT: [0x04], + NUL: [0x00], + ESC: [0x1b], + EOL: '\n', + FEED_CONTROL_SEQUENCES:{ + CTL_LF: [0x0a], // Print and line feed + CTL_GLF: [0x4a, 0x00], // Print and feed paper (without spaces between lines) + CTL_FF: [0x0c], // Form feed + CTL_CR: [0x0d], // Carriage return + CTL_HT: [0x09], // Horizontal tab + CTL_VT: [0x0b] // Vertical tab + }, + CHARACTER_SPACING:{ + CS_DEFAULT: [0x1b, 0x20, 0x00], + CS_SET: [0x1b, 0x20] + }, + LINE_SPACING:{ + LS_DEFAULT: [0x1b, 0x32], + LS_SET: [0x1b, 0x33] + }, + HARDWARE:{ + HW_INIT: [0x1b, 0x40], // Clear data in buffer and reset modes + HW_SELECT: [0x1b, 0x3d, 0x01], // Printer select + HW_RESET: [0x1b, 0x3f, 0x0a, 0x00] // Reset printer hardware + }, + CASH_DRAWER:{ + CD_KICK_2: [0x1b, 0x70, 0x00], // Sends a pulse to pin 2 [] + CD_KICK_5: [0x1b, 0x70, 0x01] // Sends a pulse to pin 5 [] + }, + MARGINS:{ + BOTTOM: [0x1b, 0x4f], // Fix bottom size + LEFT: [0x1b, 0x6c], // Fix left size + RIGHT: [0x1b, 0x51] // Fix right size + }, + PAPER:{ + PAPER_FULL_CUT: [0x1d, 0x56, 0x00], // Full cut paper + PAPER_PART_CUT: [0x1d, 0x56, 0x01], // Partial cut paper + PAPER_CUT_A: [0x1d, 0x56, 0x41], // Partial cut paper + PAPER_CUT_B: [0x1d, 0x56, 0x42] // Partial cut paper + }, + TEXT_FORMAT:{ + TXT_NORMAL: [0x1b, 0x21, 0x00], // Normal text + TXT_2HEIGHT: [0x1b, 0x21, 0x10], // Double height text + TXT_2WIDTH: [0x1b, 0x21, 0x20], // Double width text + TXT_4SQUARE: [0x1b, 0x21, 0x30], // Double width & height text + + TXT_UNDERL_OFF: [0x1b, 0x2d, 0x00], // Underline font OFF + TXT_UNDERL_ON: [0x1b, 0x2d, 0x01], // Underline font 1-dot ON + TXT_UNDERL2_ON: [0x1b, 0x2d, 0x02], // Underline font 2-dot ON + TXT_BOLD_OFF: [0x1b, 0x45, 0x00], // Bold font OFF + TXT_BOLD_ON: [0x1b, 0x45, 0x01], // Bold font ON + TXT_ITALIC_OFF: [0x1b, 0x35], // Italic font ON + TXT_ITALIC_ON: [0x1b, 0x34], // Italic font ON + + TXT_FONT_A: [0x1b, 0x4d, 0x00], // Font type A + TXT_FONT_B: [0x1b, 0x4d, 0x01], // Font type B + TXT_FONT_C: [0x1b, 0x4d, 0x02], // Font type C + + TXT_ALIGN_LT: [0x1b, 0x61, 0x00], // Left justification + TXT_ALIGN_CT: [0x1b, 0x61, 0x01], // Centering + TXT_ALIGN_RT: [0x1b, 0x61, 0x02] // Right justification + }, + BARCODE_FORMAT:{ + BARCODE_TXT_OFF: [0x1d, 0x48, 0x00], // HRI barcode chars OFF + BARCODE_TXT_ABV: [0x1d, 0x48, 0x01], // HRI barcode chars above + BARCODE_TXT_BLW: [0x1d, 0x48, 0x02], // HRI barcode chars below + BARCODE_TXT_BTH: [0x1d, 0x48, 0x03], // HRI barcode chars both above and below + + BARCODE_FONT_A: [0x1d, 0x66, 0x00], // Font type A for HRI barcode chars + BARCODE_FONT_B: [0x1d, 0x66, 0x01], // Font type B for HRI barcode chars + + BARCODE_HEIGHT: function (height) { // Barcode Height [1-255] + return [0x1d, 0x68, height]; + }, + BARCODE_WIDTH: function (width) { // Barcode Width [2-6] + return [0x1d, 0x77, width]; + }, + BARCODE_HEIGHT_DEFAULT: [0x1d, 0x68, 0x64], // Barcode height default:100 + BARCODE_WIDTH_DEFAULT: [0x1d, 0x77, 0x01], // Barcode width default:1 + + BARCODE_UPC_A: [0x1d, 0x6b, 0x00], // Barcode type UPC-A + BARCODE_UPC_E: [0x1d, 0x6b, 0x01], // Barcode type UPC-E + BARCODE_EAN13: [0x1d, 0x6b, 0x02], // Barcode type EAN13 + BARCODE_EAN8: [0x1d, 0x6b, 0x03], // Barcode type EAN8 + BARCODE_CODE39: [0x1d, 0x6b, 0x04], // Barcode type CODE39 + BARCODE_ITF: [0x1d, 0x6b, 0x05], // Barcode type ITF + BARCODE_NW7: [0x1d, 0x6b, 0x06], // Barcode type NW7 + BARCODE_CODE93: [0x1d, 0x6b, 0x48], // Barcode type CODE93 + BARCODE_CODE128: [0x1d, 0x6b, 0x49] // Barcode type CODE128 + }, + IMAGE_FORMAT:{ + S_RASTER_N: [0x1d, 0x76, 0x30, 0x00], // Set raster image normal size + S_RASTER_2W: [0x1d, 0x76, 0x30, 0x01], // Set raster image double width + S_RASTER_2H: [0x1d, 0x76, 0x30, 0x02], // Set raster image double height + S_RASTER_Q: [0x1d, 0x76, 0x30, 0x03] // Set raster image quadruple + }, + BITMAP_FORMAT:{ + BITMAP_S8: [0x1b, 0x2a, 0x00], + BITMAP_D8: [0x1b, 0x2a, 0x01], + BITMAP_S24: [0x1b, 0x2a, 0x20], + BITMAP_D24: [0x1b, 0x2a, 0x21] + }, + GSV0_FORMAT:{ + GSV0_NORMAL: [0x1d, 0x76, 0x30, 0x00], + GSV0_DW: [0x1d, 0x76, 0x30, 0x01], + GSV0_DH: [0x1d, 0x76, 0x30, 0x02], + GSV0_DWDH: [0x1d, 0x76, 0x30, 0x03] + }, + BEEP:[0x1b, 0x42], + COLOR:{ + 0: [0x1b, 0x72, 0x00], // black + 1: [0x1b, 0x72, 0x01] // red + } +} + +const printerJobs = function() { + this._queue = Array.from(commands.HARDWARE.HW_INIT); + this._enqueue = function(cmd) { + this._queue.push.apply(this._queue, cmd); + } +}; + +/** + * 澧炲姞鎵撳嵃鍐呭 + * @param {string} content 鏂囧瓧鍐呭 + */ +printerJobs.prototype.text = function(content) { + if (content) { + let uint8Array = gbk.encode(content); + let encoded = Array.from(uint8Array); + this._enqueue(encoded); + } + return this; +}; + +/** + * 鎵撳嵃鏂囧瓧 + * @param {string} content 鏂囧瓧鍐呭 + */ +printerJobs.prototype.print = function(content) { + this.text(content); + this._enqueue(commands.LF); + return this; +}; + + +printerJobs.prototype.printQrcode = function(content) { + + if (content) { + const cmds = [].concat([27, 97, 1], [29, 118, 48, 0, 30, 0, 240, 0], content, [27, 74, 3], [27, 64]); + this._enqueue(cmds); + this._enqueue(commands.LF); + } + + return this; +}; + + + +/** + * 鎵撳嵃鏂囧瓧骞舵崲琛� + * @param {string} content 鏂囧瓧鍐呭 + */ +printerJobs.prototype.println = function(content = '') { + return this.print(content + commands.EOL); +}; + +/** + * 璁剧疆瀵归綈鏂瑰紡 + * @param {string} align 瀵归綈鏂瑰紡 LT/CT/RT + */ +printerJobs.prototype.setAlign = function(align) { + this._enqueue(commands.TEXT_FORMAT['TXT_ALIGN_' + align.toUpperCase()]); + return this; +}; + +/** + * 璁剧疆瀛椾綋 + * @param {string} family A/B/C + */ +printerJobs.prototype.setFont = function(family) { + this._enqueue(commands.TEXT_FORMAT['TXT_FONT_' + family.toUpperCase()]); + return this; +}; + +/** + * 璁惧畾瀛椾綋灏哄 + * @param {number} width 瀛椾綋瀹藉害 1~2 + * @param {number} height 瀛椾綋楂樺害 1~2 + */ +printerJobs.prototype.setSize = function(width, height) { + if (2 >= width && 2 >= height) { + this._enqueue(commands.TEXT_FORMAT.TXT_NORMAL); + if (2 === width && 2 === height) { + this._enqueue(commands.TEXT_FORMAT.TXT_4SQUARE); + } else if (1 === width && 2 === height) { + this._enqueue(commands.TEXT_FORMAT.TXT_2HEIGHT); + } else if (2 === width && 1 === height) { + this._enqueue(commands.TEXT_FORMAT.TXT_2WIDTH); + } + } + return this; +}; + +/** + * 璁惧畾瀛椾綋鏄惁鍔犵矖 + * @param {boolean} bold + */ +printerJobs.prototype.setBold = function(bold) { + if (typeof bold !== 'boolean') { + bold = true; + } + this._enqueue(bold ? commands.TEXT_FORMAT.TXT_BOLD_ON : commands.TEXT_FORMAT.TXT_BOLD_OFF); + return this; +}; + +/** + * 璁惧畾鏄惁寮�鍚笅鍒掔嚎 + * @param {boolean} underline + */ +printerJobs.prototype.setUnderline = function(underline) { + if (typeof underline !== 'boolean') { + underline = true; + } + this._enqueue(underline ? commands.TEXT_FORMAT.TXT_UNDERL_ON : commands.TEXT_FORMAT.TXT_UNDERL_OFF); + return this; +}; + +/** + * 璁剧疆琛岄棿璺濅负 n 鐐硅,榛樿鍊艰闂磋窛鏄� 30 鐐� + * @param {number} n 0鈮鈮�255 + */ +printerJobs.prototype.setLineSpacing = function(n) { + if (n === undefined || n === null) { + this._enqueue(commands.LINE_SPACING.LS_DEFAULT); + } else { + this._enqueue(commands.LINE_SPACING.LS_SET); + this._enqueue([n]); + } + return this; +}; + +/** + * 鎵撳嵃绌鸿 + * @param {number} n + */ +printerJobs.prototype.lineFeed = function(n = 1) { + return this.print(new Array(n).fill(commands.EOL).join('')); +}; + + +/** + * 璁剧疆鏀惧ぇ鍊嶆暟 + * @param x 0-7 瀛楃瀹芥斁澶у�嶆暟 + * @param y 0-7 瀛楃楂樻斁澶у�嶆暟 + */ +printerJobs.prototype.setCharacterMultiple = function ( x, y) { + this._enqueue([0x1d, 0x21]); + if (0 <= x && x <= 7 && 0 <= y && y <= 7) { + var cmd = x * 16 + y; + this._enqueue([cmd]); + } + return this; +}; + + /** + * * 鎵撳嵃浜岀淮鐮� + * @param content 鏉$爜鏁版嵁 + * @param barcodeType 鏉$爜绫诲瀷锛� + * 0锛歅DF417锛� 1锛欴ATAMATRIX 锛� 2锛歈RCODE銆� + * @param param1锛宲aram2锛宲aram3 鏉$爜鍙傛暟锛� + * 涓変釜鍙傛暟琛ㄧず涓嶅悓鐨勬剰鎬濓細 + * 1. PDF417 + * param1锛氳〃绀烘瘡琛屽瓧绗︽暟锛�1<=n<=30銆� + * param2锛氳〃绀虹籂閿欑瓑绾э紝0<=n<=8銆� + * param3锛氳〃绀虹旱鍚戞斁澶у�嶆暟銆� + * 2. DATAMATRIX + * param1锛氳〃绀哄浘褰㈤珮锛�0<=n<=144(0:鑷姩閫夋嫨)銆� + * param2锛氳〃绀哄浘褰㈠锛�8<=n<=144(param1 涓� 0鏃�,鏃犳晥)銆� + * param3锛氳〃绀虹旱鍚戞斁澶у�嶆暟銆� + * 3. QRCODE + * param1锛氳〃绀哄浘褰㈢増鏈彿锛�1<=n<=30(0:鑷姩閫夋嫨)銆� + * param2锛氳〃绀虹籂閿欑瓑绾э紝n = 76,77,81,72(L:7%,M:15%,Q:25%,H:30%)銆� + * param3锛氳〃绀虹旱鍚戞斁澶у�嶆暟銆� + * + */ +printerJobs.prototype.printQrcode = function (content, barcodeType, param1, param2, param3) { + var str = content; + var length = str.replace(/[^\u0000-\u00ff]/g, "aa").length; + this._enqueue([0x1d,0x5a]); + this._enqueue([barcodeType]); + this._enqueue([0x1b, 0x5a]); + this._enqueue([param1]); + this._enqueue([param2]); + this._enqueue([param3]); + this._enqueue([length%256]); + this._enqueue([length/256]); + this.print(content); + return this; +}; + +printerJobs.prototype.queryStatus = function () { + this._enqueue([0x10, 0x04,0x02]); + return this; +}; + +/** + * 娓呯┖浠诲姟 + */ +printerJobs.prototype.clear = function () { + this._queue = Array.from(commands.HARDWARE.HW_INIT); + return this; +}; + +/** + * 杩斿洖ArrayBuffer + */ +printerJobs.prototype.buffer = function () { + return new Uint8Array(this._queue).buffer; +}; + + +/** + * CPCL鎵撳嵃 + */ + +/** + * 璁剧疆鏍囩瀹介珮 蹇呴』鍦ㄥ紑澶磋缃� + * width:80mm 涓�576锛�58mm涓�384 + */ +printerJobs.prototype.label_set_page = function (width,height) { + var content= "! 0 200 200 " + height + " 1\r\nPAGE-WIDTH " + width + "\r\n"; + this.text(content); + return this; +}; + +/** + * 鎵撳嵃琛ㄦ牸 + * lineWidth:杈规绾挎潯瀹藉害0-1 + * top_left_x:宸︿笂瑙扻鍧愭爣 + * top_left_y:宸︿笂瑙扽鍧愭爣 + * bottom_right_x:鍙充笅瑙扻鍧愭爣 + * bottom_right_y:鍙充笅瑙扻鍧愭爣 + */ +printerJobs.prototype.drawbox = function (lineWidth, top_left_x, top_left_y, bottom_right_x, bottom_right_y) { + var content = "BOX " + top_left_x + " " + top_left_y + " " + bottom_right_x + " " + bottom_right_y + " " + lineWidth + "\r\n"; + this.text(content); + return this; +}; + +/** + * 鏍囩鎵撳嵃 蹇呴』鍦ㄧ粨灏捐皟鐢� + * @param horizontal 0:姝e父鎵撳嵃锛屼笉鏃嬭浆锛�1锛氭暣涓〉闈㈤『鏃堕拡鏃嬭浆180掳鍚庯紝鎵撳嵃 + * @param skip 0锛氭墦鍗扮粨鏉熷悗涓嶅畾浣嶏紝鐩存帴鍋滄锛�1锛氭墦鍗扮粨鏉熷悗瀹氫綅鍒版爣绛惧垎鍓茬嚎锛屽鏋滄棤缂濋殭锛屾渶澶ц繘绾�260mm鍚庡仠姝� + */ +printerJobs.prototype.label_print = function (horizontal, skip) { + var horizontal1; + var str; + switch (horizontal) { + case 0: + horizontal1 = 0; + break; + case 1: + horizontal1 = 1; + break; + case 2: + horizontal1 = 2; + break; + default: + horizontal1 = 0; + } + + if (skip == 1) { + str = "PR " + horizontal1 + "\r\nFORM\r\nPRINT\r\n"; + } else { + str = "PR " + horizontal1 + "\r\nPRINT\r\n"; + } + this.text(str); + return this; +}; + +/** + * 鎵撳嵃涓�缁寸爜 + * @param start_x 鎵撳嵃鐨勮捣濮嬫í鍧愭爣 + * @param start_y 鎵撳嵃鐨勮捣濮嬬旱鍧愭爣 + * @param text 瀛楃涓� + * @param type 鏉$爜绫诲瀷 + * 0锛欳ODE39锛�1锛欳ODE128锛�2锛欳ODE93锛�3锛欳ODEBAR锛�4锛欵AN8锛�5锛欵AN13锛�6锛歎PCA + * ;7:UPC-E;8:ITF + * @param rotate 鏃嬭浆瑙掑害 0锛氫笉鏃嬭浆锛�1 鏃嬭浆 + * @param linewidth 鏉$爜瀹藉害 + * @param height 鏉$爜楂樺害 + */ +printerJobs.prototype.drawBarCode = function (start_x, start_y, text, barcodeType, rotate, linewidth, height) { + console.log('start_x',start_x) + console.log('start_y',start_y) + console.log('text',text) + console.log('barcodeType',barcodeType) + console.log('rotate',rotate) + console.log('linewidth',linewidth) + console.log('height',height) + var str1 = "B"; + if (rotate) { + str1 = "VB"; + } + + var st1 = "128"; + if (barcodeType == 0) { + st1 = "39"; + } else if (barcodeType == 1) { + st1 = "128"; + } else if (barcodeType == 2) { + st1 = "93"; + } else if (barcodeType == 3) { + st1 = "CODABAR"; + } else if (barcodeType == 4) { + st1 = "EAN8"; + } else if (barcodeType == 5) { + st1 = "EAN13"; + } else if (barcodeType == 6) { + st1 = "UPCA"; + } else if (barcodeType == 7) { + st1 = "UPCE"; + } + + var content = str1 + " " + st1 + " " + linewidth + " 0 " + height + " " + start_x + " " + start_y + " " + text + "\r\n"; + console.log('content') + console.log(content) + this.text(content); + return this; +}; + +/** + * 鎵撳嵃浜岀淮鐮� + * @param start_x 浜岀淮鐮佽捣濮嬩綅缃� + * @param start_y 浜岀淮鐮佺粨鏉熶綅缃� + * @param text 浜岀淮鐮佸唴瀹� + * @param rotate 鏃嬭浆瑙掑害 + * @param ver : QrCode瀹藉害(2-15) + * @param lel : QrCode绾犻敊绛夌骇(0-20) + */ +printerJobs.prototype.drawQrCode = function ( start_x, start_y, text, rotate, ver, lel) { + var str1 = "B"; + if (rotate != 0) { + str1 = "VB"; + } + var content = str1 + " QR " + start_x + " " + start_y + " " + " M " + " " + 2 + " " + "U" + " " + ver + " " + "\r\n" + "MA," + text + "\r\n" + "ENDQR" + "\r\n"; + + this.text(content); + return this; +}; + +/** + * 鎵撳嵃鏂囧瓧 + * + * @param text_x 璧峰妯潗鏍� + * @param text_y 璧峰绾靛潗鏍� + * @param text 瀛楃涓� + * @param fontSize 瀛椾綋澶у皬 20:20鐐归樀 1锛�16鐐归樀锛�2锛�24鐐归樀锛�3锛�32鐐归樀锛�4锛�24鐐归樀鏀惧ぇ涓�鍊嶏紱5锛�32鐐归樀鏀惧ぇ涓�鍊� + * 6锛�24鐐归樀鏀惧ぇ涓ゅ�嶏紱7锛�32鐐归樀鏀惧ぇ涓ゅ�嶏紱鍏朵粬锛�24鐐归樀 + * @param rotate 鏃嬭浆瑙掑害 0锛氫笉鏃嬭浆锛�1锛�90搴︼紱2锛�180掳锛�3:270掳 + * @param bold 鏄惁绮椾綋 0锛氬彇娑堬紱1锛氳缃� + * @param underline 鏄湁鏈変笅鍒掔嚎 false:娌℃湁锛泃rue锛氭湁 + * @param reverse 鏄惁鍙嶇櫧 false锛氫笉鍙嶇櫧锛泃rue锛氬弽鐧� + */ +printerJobs.prototype.drawText = function ( text_x, text_y, text, fontSize, rotate, bold, reverse, underline) { + var st1 = ""; + if (rotate == 0) { + st1 = "T"; + } else if (rotate == 1) { + st1 = "T90"; + } else if (rotate == 2) { + st1 = "T180"; + } else if (rotate == 3) { + st1 = "T270"; + } + var rev = 0; + var und = 0; + if (reverse) { + rev = 1; + } + if (underline) { + und = 1; + } + var st2 = 24; + var st3 = 0; + if (fontSize == 20) { + st2 = 20; + st3 = 0; + } else if (fontSize == 1) { + st2 = 55; + st3 = 0; + } else if (fontSize == 2) { + st2 = 24; + st3 = 0; + } else if (fontSize == 3) { + st2 = 55; + st3 = 11; + } else if (fontSize == 4) { + st2 = 24; + st3 = 11; + } else if (fontSize == 5) { + st2 = 55; + st3 = 33; + } else if (fontSize == 6) { + st2 = 24; + st3 = 22; + } else if (fontSize == 7) { + st2 = 55; + st3 = 77; + } + var content = "SETBOLD " + bold + "\r\n" + "IT " + rev + "\r\n" + "UT " + und + "\r\n" + st1 + " " + st2 + " " + st3 + " " + text_x + " " + text_y + " " + text + "\r\n"; + + this.text(content); + return this; +}; + +/** + * 鎵撳嵃鍙嶆樉 + */ +printerJobs.prototype.inverse = function ( var1, var2, var3, var4, width) { + var str1 = "IL"; + var x0 = var1; + var y0 = var2; + var x1 = var3; + var y1 = var4; + var w = width; + if (var1 == var3) { + x0 = var1; y0 = var2; + x1 = var1 + width; + y1 = var2; + w = var4 - var2; + } + var content = str1 + " " + x0 + " " + y0 + " " + x1 + " " + y1 + " " + w + "\r\n"; + + this.text(content); + return this; +}; + +/** + * 绾挎潯 + * + * @param lineWidth 绾挎潯瀹藉害 + * @param start_x 绾挎潯璧峰鐐箈鍧愭爣 + * @param start_y 绾挎潯璧峰鐐箉鍧愭爣 + * @param end_x 绾挎潯缁撴潫鐐箈鍧愭爣 + * @param end_y 绾挎潯缁撴潫鐐箉鍧愭爣 + * @param fullline true:瀹炵嚎 false:?铏氱嚎 + */ +printerJobs.prototype.drawLine = function ( width, x0, y0, x1, y1) { + var content = "LINE " + x0 + " " + y0 + " " + x1 + " " + y1 + " " + width + "\r\n"; + + + this.text(content); + return this; +}; + + + + + +/** + * 娓呯┖浠诲姟 + */ +printerJobs.prototype.clear = function() { + this._queue = Array.from(commands.HARDWARE.HW_INIT); + return this; +}; + +/** + * 杩斿洖ArrayBuffer + */ +printerJobs.prototype.buffer = function() { + return new Uint8Array(this._queue).buffer; +}; + +export default printerJobs + +//module.exports = printerJobs; diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/index.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/index.js new file mode 100644 index 0000000..bb1d34f --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/index.js @@ -0,0 +1,197 @@ +import colorModule from './modules/color.js' +import regModule from './modules/regexValidate.js' + +export let color = colorModule; +export let regexValidate = regModule; +/* 鐢熸垚闅忔満uuid +* n锛歶uid鐨勯暱搴� +* type锛氱被鍨嬶紙0-澶у皬鍐欏瓧姣�+鏁板瓧锛�1-灏忓啓瀛楁瘝+鏁板瓧锛�2-绾暟瀛楋紝3-澶у皬鍐欏瓧姣嶏紝4-灏忓啓瀛楁瘝锛� +*/ +export function uuid(n=6,type=0){ + let res='', uType=0; + const __uuidLetter = function(){ + const __tempArr = ['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'] + return __tempArr[Math.floor(Math.random()*26)]; + } + for (let i=0;i<n;i++) { + switch(type) { + case 1: + uType = Math.floor(Math.random()*2); + if (uType===0) { + res += Math.floor(Math.random()*10).toString() + } else { + res += __uuidLetter() + } + break; + case 2: + res += Math.floor(Math.random()*10).toString() + break; + case 3: + uType = Math.floor(Math.random()*2); + if (uType===0) { + res += __uuidLetter() + } else { + res += __uuidLetter().toUpperCase() + } + break; + case 4: + res += __uuidLetter() + break; + default: + uType = Math.floor(Math.random()*3); + if (uType===0) { + res += Math.floor(Math.random()*10).toString() + } else if (uType===1) { + res += __uuidLetter() + } else { + res += __uuidLetter().toUpperCase() + } + break; + } + } + return res; +} +export function $alert(msg,title="绯荤粺鎻愮ず",callback){ + uni.showModal({ + title:title, + content:msg, + showCancel:false, + confirmText:'纭畾', + success:function(res){ + if (res.confirm) { + callback && callback() + } + } + }) +} +export function $successInfo(info){ + uni.showToast({ + title:info, + mask:true, + icon:'success' + }) +}; + +/* + 鑾峰彇瀛楀吀鍒楄〃 + code:瀛楀吀闆嗗悎鐮� + 杩斿洖:瀛楀吀鍒楄〃 + */ +export function getDicList(store,code) { + let res = []; + let dicDataSource = store.getters['system/getEnum']; + if (dicDataSource) { + res=dicDataSource.filter(item=>item.code==code) + } + return res.length>0?res[0]:[]; +} + +/* + 瑙f瀽瀛楀吀鍊� + code:瀛楀吀闆嗗悎鐮� + value:瀛楀吀鍊� + 杩斿洖:瀛楀吀鍊煎搴斿悕绉� + */ +export function parseDic(store,code,value){ + let res = ''; + let dicDataSource = store.getters['system/getEnum']; + if (dicDataSource) { + let _arr = dicDataSource.filter(item=>item.code==code) + if (_arr.length>0) { + res=_arr[0]?.sysDictDatas.filter(item=>item.code==value) + res=res.length>0?res[0].value:'' + if (!res) res = '鏃犳瀛楀吀' + } else { + res = '鏃犳瀛楀吀' + } + } else { + res = 'Failed' + } + return res; +}; + +/* + 涓嬭浇鏇存柊 + */ +export function downloadApk($config){ + try{ + const _downFun = function(){ + try{ + plus.runtime.openURL($config.downUrl, function(res) {console.log(res);}); + }catch(ex){ + console.log('_downFun Error!') + console.log(ex) + } + setTimeout(()=>{ + uni.hideLoading(); + },10000) + } + + uni.showLoading({ + title: '寮�鍚笅杞�...', + mask:true + }); + if (plus.networkinfo.getCurrentType() != 3){ + uni.hideLoading(); + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:'褰撳墠闈濿IFI鐜锛岀‘璁ょ户缁笅杞藉悧锛�', + success:(res)=>{ + if (res.confirm) { + uni.showLoading({ + title: '寮�鍚笅杞�...', + mask:true + }); + _downFun() + } + } + }) + } else { + _downFun() + } + } catch(e){ + uni.hideLoading(); + uni.showModal({ + title:'绯荤粺鎻愮ず', + content:'涓嬭浇澶辫触', + showCancel:false + }) + console.log('DownloadApk Error!') + console.log(e) + } +}; + +export function getObjectType(obj){ + if (typeof obj !== 'object') { + return null; + } else { + let objTypeStr = Object.prototype.toString.call(obj).toLowerCase().trim(); + objTypeStr = objTypeStr.substr(1,objTypeStr.length-2) + let tempA = objTypeStr.split(" "); + return tempA[1]; + } +} + +export function getUserDefaultArea($store,arr,valueField='code'){ + let res = '' + const _default = $store.getters['user/getUserInfo']['workShopType'] + for (let i=0;i<arr.length;i++){ + if (String(arr[i][valueField])===Sring(_default)) { + res = _default + break; + } + } + return res +} + +export function getUserDefaultLine($store,arr,valueField='productionlineId'){ + let res = '' + const _default = $store.getters['user/getUserInfo']['productionlineId'] + for (let i=0;i<arr.length;i++){ + if (arr[i][valueField]===_default) { + res = _default + break; + } + } + return res +} \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/color.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/color.js new file mode 100644 index 0000000..0fd4484 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/color.js @@ -0,0 +1,5 @@ +export default { + getRandomHexColor(){ + return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).substr(-6); + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/regexValidate.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/regexValidate.js new file mode 100644 index 0000000..437f754 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/static/js/utils/modules/regexValidate.js @@ -0,0 +1,64 @@ +export default { + /* 澶ч檰鎵嬫満鍙风爜 */ + mobile(val){ + return /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(val) + }, + /* 澶ч檰鍥哄畾鐢佃瘽 */ + telephone(val){ + return /^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(val) + }, + /* 鐢靛瓙閭 */ + email(val){ + return /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(val) + }, + /* 姝f暣鏁� */ + positiveInteger(val){ + let tp = typeof val; + if (tp==='number') { + if (parseInt(val)!==val) { + return false + } else if (val<=0) { + return false + } else { + return true + } + } else if (tp==='string') { + if (!val) { + return false; + } else { + return /^0*[1-9]\d*$/.test(val) + } + } else { + return false; + } + }, + /* 鑷劧鏁�,鍖呮嫭0鍜屾鏁存暟 */ + naturlNumber(val){ + let tp = typeof val; + if (tp==='number') { + if (parseInt(val)!==val) { + return false + } else if (val<0) { + return false + } else { + return true + } + } else if (tp==='string') { + if (!val) { + return false; + } else { + return /^([1-9]\d*|[0]{1,1})$/.test(val) + } + } else { + return false; + } + }, + /* 鍖归厤杈撳叆锛屼互瀛楁瘝寮�澶达紝鍙兘鏍戝瓧姣嶅拰鏁板瓧 */ + inputA(val){ + return /^[a-zA-Z]{1}[a-zA-Z0-9]*$/.test(val) + }, + /* 鍖归厤杈撳叆锛屼互瀛楁瘝寮�澶达紝鍙兘鏍戝瓧姣嶃�佹暟瀛椼�佽繛瀛楃銆佷笅鍒掔嚎*/ + inputB(val){ + return /^[a-zA-Z]{1}[a-zA-Z0-9\-_]*$/.test(val) + } +} \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/uni_modules/uview-ui/components/u-icon/iconfont.ttf b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/uni_modules/uview-ui/components/u-icon/iconfont.ttf new file mode 100644 index 0000000..cd755ec --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/uni_modules/uview-ui/components/u-icon/iconfont.ttf Binary files differ diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.css b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.css new file mode 100644 index 0000000..532c0e1 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.css @@ -0,0 +1 @@ +*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}input[type=search]::-webkit-search-cancel-button{display:none}@font-face{font-weight:400;font-style:normal;font-family:uni;src:url("data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJAKEx+AAABfAAAAFZjbWFw65cFHQAAAhwAAAJQZ2x5ZvCRR/EAAASUAAAKtGhlYWQLKIN9AAAA4AAAADZoaGVhCCwD+gAAALwAAAAkaG10eEJo//8AAAHUAAAASGxvY2EYqhW6AAAEbAAAACZtYXhwASEAVQAAARgAAAAgbmFtZeNcHtgAAA9IAAAB5nBvc3T6bLhLAAARMAAAAOYAAQAAA+gAAABaA+j/////A+kAAQAAAAAAAAAAAAAAAAAAABIAAQAAAAEAACkCj3dfDzz1AAsD6AAAAADUER9XAAAAANQRH1f//wAAA+kD6gAAAAgAAgAAAAAAAAABAAAAEgBJAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQOwAZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6gHqEQPoAAAAWgPqAAAAAAABAAAAAAAAAAAAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+j//wPoAAAD6AAAAAAABQAAAAMAAAAsAAAABAAAAXQAAQAAAAAAbgADAAEAAAAsAAMACgAAAXQABABCAAAABAAEAAEAAOoR//8AAOoB//8AAAABAAQAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAANwAAAAAAAAAEQAA6gEAAOoBAAAAAQAA6gIAAOoCAAAAAgAA6gMAAOoDAAAAAwAA6gQAAOoEAAAABAAA6gUAAOoFAAAABQAA6gYAAOoGAAAABgAA6gcAAOoHAAAABwAA6ggAAOoIAAAACAAA6gkAAOoJAAAACQAA6goAAOoKAAAACgAA6gsAAOoLAAAACwAA6gwAAOoMAAAADAAA6g0AAOoNAAAADQAA6g4AAOoOAAAADgAA6g8AAOoPAAAADwAA6hAAAOoQAAAAEAAA6hEAAOoRAAAAEQAAAAAARgCMANIBJgF4AcQCMgJgAqgC/ANIA6YD/gROBKAE9AVaAAAAAgAAAAADrwOtABQAKQAAASIHBgcGFBcWFxYyNzY3NjQnJicmAyInJicmNDc2NzYyFxYXFhQHBgcGAfV4Z2Q7PDw7ZGfwZmQ7PDw7ZGZ4bl5bNjc3Nlte215bNjc3NlteA608O2Rn8GdjOzw8O2Nn8GdkOzz8rzc1W17bXlw1Nzc1XF7bXls1NwAAAAACAAAAAAOzA7MAFwAtAAABIgcGBwYVFBcWFxYzMjc2NzY1NCcmJyYTBwYiLwEmNjsBETQ2OwEyFhURMzIWAe52Z2Q7PT07ZGd2fGpmOz4+O2ZpIXYOKA52Dg0XXQsHJgcLXRcNA7M+O2ZqfHZnZDs9PTtkZ3Z9aWY7Pv3wmhISmhIaARcICwsI/ukaAAMAAAAAA+UD5QAXACMALAAAASIHBgcGFRQXFhcWMzI3Njc2NTQnJicmAxQrASI1AzQ7ATIHJyImNDYyFhQGAe6Ecm9BRERBb3KEiXZxQkREQnF1aQIxAwgCQgMBIxIZGSQZGQPkREJxdomEcm9BRERBb3KEinVxQkT9HQICAWICAjEZIxkZIxkAAAAAAwAAAAADsQPkABsAKgAzAAABBgcGBwYHBjcRFBcWFxYXNjc2NzY1ESQXJicmBzMyFhUDFAYrASInAzQ2EyImNDYyFhQGAfVBQTg7LDt/IEc+bF5sbF1tPUj+2KhQQVVvNAQGDAMCJgUBCwYeDxYWHhUVA+QPEg4SDhIpCv6tj3VkST4dHT5JZHWPAVNeNRkSGPwGBP7GAgMFAToEBv5AFR8VFR8VAAAAAgAAAAADsQPkABkALgAAAQYHBgc2BREUFxYXFhc2NzY3NjURJBcmJyYTAQYvASY/ATYyHwEWNjclNjIfARYB9VVVQk+v/tFHPmxebGxdbT1I/tGvT0JVo/7VBASKAwMSAQUBcQEFAgESAgUBEQQD4xMYEhk3YP6sjnVlSD8cHD9IZXWOAVRgNxkSGP62/tkDA48EBBkCAVYCAQHlAQIQBAAAAAACAAAAAAPkA+QAFwAtAAABIgcGBwYVFBcWFxYzMjc2NzY1NCcmJyYTAQYiLwEmPwE2Mh8BFjI3ATYyHwEWAe6Ecm9BQ0NCbnODiXVxQkREQnF1kf6gAQUBowMDFgEFAYUCBQEBQwIFARUEA+NEQnF1iYNzbkJDQ0FvcoSJdXFCRP6j/qUBAagEBR4CAWYBAQENAgIVBAAAAAQAAAAAA68DrQAUACkAPwBDAAABIgcGBwYUFxYXFjI3Njc2NCcmJyYDIicmJyY0NzY3NjIXFhcWFAcGBwYTBQ4BLwEmBg8BBhYfARYyNwE+ASYiFzAfAQH1eGdkOzw8O2Rn8GZkOzw8O2RmeG5eWzY3NzZbXtteWzY3NzZbXmn+9gYSBmAGDwUDBQEGfQUQBgElBQELEBUBAQOtPDtkZ/BnYzs8PDtjZ/BnZDs8/K83NVte215cNTc3NVxe215bNTcCJt0FAQVJBQIGBAcRBoAGBQEhBQ8LBAEBAAABAAAAAAO7AzoAFwAAEy4BPwE+AR8BFjY3ATYWFycWFAcBBiInPQoGBwUHGgzLDCELAh0LHwsNCgr9uQoeCgGzCyEOCw0HCZMJAQoBvgkCCg0LHQv9sQsKAAAAAAIAAAAAA+UD5gAXACwAAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMHBi8BJicmNRM0NjsBMhYVExceAQHvhHJvQUNDQm5zg4l1cUJEREJxdVcQAwT6AwIEEAMCKwIDDsUCAQPlREJxdYmDc25CQ0NBb3KEiXVxQkT9VhwEAncCAgMGAXoCAwMC/q2FAgQAAAQAAAAAA68DrQADABgALQAzAAABMB8BAyIHBgcGFBcWFxYyNzY3NjQnJicmAyInJicmNDc2NzYyFxYXFhQHBgcGAyMVMzUjAuUBAfJ4Z2Q7PDw7ZGfwZmQ7PDw7ZGZ4bl5bNjc3Nlte215bNjc3NltemyT92QKDAQEBLDw7ZGfwZ2M7PDw7Y2fwZ2Q7PPyvNzVbXtteXDU3NzVcXtteWzU3AjH9JAAAAAMAAAAAA+QD5AAXACcAMAAAASIHBgcGFRQXFhcWMzI3Njc2NTQnJicmAzMyFhUDFAYrASImNQM0NhMiJjQ2MhYUBgHuhHJvQUNDQm5zg4l1cUJEREJxdZ42BAYMAwInAwMMBh8PFhYeFhYD40RCcXWJg3NuQkNDQW9yhIl1cUJE/vYGBf7AAgMDAgFABQb+NhYfFhYfFgAABAAAAAADwAPAAAgAEgAoAD0AAAEyNjQmIgYUFhcjFTMRIxUzNSMDIgcGBwYVFBYXFjMyNzY3NjU0Jy4BAyInJicmNDc2NzYyFxYXFhQHBgcGAfQYISEwISFRjzk5yTorhG5rPT99am+DdmhlPD4+PMyFbV5bNTc3NVte2l5bNTc3NVteAqAiLyIiLyI5Hf7EHBwCsT89a26Ed8w8Pj48ZWh2g29qffyjNzVbXtpeWzU3NzVbXtpeWzU3AAADAAAAAAOoA6gACwAgADUAAAEHJwcXBxc3FzcnNwMiBwYHBhQXFhcWMjc2NzY0JyYnJgMiJyYnJjQ3Njc2MhcWFxYUBwYHBgKOmpocmpocmpocmpq2dmZiOjs7OmJm7GZiOjs7OmJmdmtdWTQ2NjRZXdZdWTQ2NjRZXQKqmpocmpocmpocmpoBGTs6YmbsZmI6Ozs6YmbsZmI6O/zCNjRZXdZdWTQ2NjRZXdZdWTQ2AAMAAAAAA+kD6gAaAC8AMAAAAQYHBiMiJyYnJjQ3Njc2MhcWFxYVFAcGBwEHATI3Njc2NCcmJyYiBwYHBhQXFhcWMwKONUBCR21dWjU3NzVaXdpdWzU2GBcrASM5/eBXS0grKysrSEuuSkkqLCwqSUpXASMrFxg2NVtd2l1aNTc3NVpdbUdCQDX+3jkBGSsrSEuuSkkqLCwqSUquS0grKwAC//8AAAPoA+gAFAAwAAABIgcGBwYQFxYXFiA3Njc2ECcmJyYTFg4BIi8BBwYuATQ/AScmPgEWHwE3Nh4BBg8BAfSIdHFDRERDcXQBEHRxQ0REQ3F0SQoBFBsKoqgKGxMKqKIKARQbCqKoChsUAQqoA+hEQ3F0/vB0cUNERENxdAEQdHFDRP1jChsTCqiiCgEUGwqiqAobFAEKqKIKARQbCqIAAAIAAAAAA+QD5AAXADQAAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMUBiMFFxYUDwEGLwEuAT8BNh8BFhQPAQUyFh0BAe6Ecm9BQ0NCbnODiXVxQkREQnF1fwQC/pGDAQEVAwTsAgEC7AQEFAIBhAFwAgMD40RCcXWJg3NuQkNDQW9yhIl1cUJE/fYCAwuVAgQCFAQE0AIFAtEEBBQCBQGVCwMDJwAAAAUAAAAAA9QD0wAjACcANwBHAEgAAAERFAYjISImNREjIiY9ATQ2MyE1NDYzITIWHQEhMhYdARQGIyERIREHIgYVERQWOwEyNjURNCYjISIGFREUFjsBMjY1ETQmKwEDeyYb/XYbJkMJDQ0JAQYZEgEvExkBBgkNDQn9CQJc0QkNDQktCQ0NCf7sCQ0NCS0JDQ0JLQMi/TQbJiYbAswMCiwJDS4SGRkSLg0JLAoM/UwCtGsNCf5NCQ0NCQGzCQ0NCf5NCQ0NCQGzCQ0AAAAAEADGAAEAAAAAAAEABAAAAAEAAAAAAAIABwAEAAEAAAAAAAMABAALAAEAAAAAAAQABAAPAAEAAAAAAAUACwATAAEAAAAAAAYABAAeAAEAAAAAAAoAKwAiAAEAAAAAAAsAEwBNAAMAAQQJAAEACABgAAMAAQQJAAIADgBoAAMAAQQJAAMACAB2AAMAAQQJAAQACAB+AAMAAQQJAAUAFgCGAAMAAQQJAAYACACcAAMAAQQJAAoAVgCkAAMAAQQJAAsAJgD6d2V1aVJlZ3VsYXJ3ZXVpd2V1aVZlcnNpb24gMS4wd2V1aUdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAHcAZQB1AGkAUgBlAGcAdQBsAGEAcgB3AGUAdQBpAHcAZQB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwAHcAZQB1AGkARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETAAZjaXJjbGUIZG93bmxvYWQEaW5mbwxzYWZlX3N1Y2Nlc3MJc2FmZV93YXJuB3N1Y2Nlc3MOc3VjY2Vzcy1jaXJjbGURc3VjY2Vzcy1uby1jaXJjbGUHd2FpdGluZw53YWl0aW5nLWNpcmNsZQR3YXJuC2luZm8tY2lyY2xlBmNhbmNlbAZzZWFyY2gFY2xlYXIEYmFjawZkZWxldGUAAAAA") format("truetype")}@font-face{font-weight:400;font-style:normal;font-family:unibtn;src:url("data:application/octet-stream;base64,AAEAAAALAIAAAwAwT1MvMg8SAzoAAAC8AAAAYGNtYXAAILNAAAABHAAAAGRnYXNwAAAAEAAAAYAAAAAIZ2x5ZnVT/G4AAAGIAAAEHGhlYWQOAdVuAAAFpAAAADZoaGVhB3wDzAAABdwAAAAkaG10eCIABqYAAAYAAAAALGxvY2EDqgTMAAAGLAAAABhtYXhwAA8ATQAABkQAAAAgbmFtZXBR8sQAAAZkAAAB2nBvc3QAAwAAAAAIQAAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADmUAPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQASAAAAA4ACAACAAYAAQAg5gLmBuZQ//3//wAAAAAAIOYA5gTmUP/9//8AAf/jGgQaAxm6AAMAAQAAAAAAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQFgAHkCwQLqABYAAAEmNDc2MhcBHgEVFAYHAQYiJyY0NwkBAWAICAcWBwE1BAQEBP7LBxYHCAgBIv7eAsUHFwcICP7cBAsFBgsE/twICAcXCAETARMAAAEBWAB5ArkC6gAXAAAJAhYUBwYiJwEuATU0NjcBNjIXFhQHMQK5/t4BIggICBUI/swFAwMFATQIFQgICALF/u3+7QgXBwgIASQECwYFCwQBJAgIBxcHAAACANAAaQO6Aw0AHAA2AAAlFAYjISImNRE0NjsBNSMiBhURFBYzITI2PQEjFRMnBxcHDgMPATM1PgE3PgE/AgcXNyc3A1IHBP3CBAYGBLDAERgYEQJfERcuaKQhbndKgmM9BQEvBTYtLXVABmpuIaQBAaUEBwcEAagFBjEZEf40ERkZEqWUAbysI3MBBjxffkcIBzxuKysyBAEBdCKsAgIAAgCXAF4DcwMbADEASgAAAS4BLwIuASMiBg8CDgEHBhYfAQcGFhceATMyNj8BFx4BMzI2Nz4BJzQwNSc3PgEnBTYmLwE3PgE/ARceAR8BBw4BHwEnJgYPAQNzAgoG42cDCgcGCgNk4wYKAgEDBKUlAQUFAwYEAgUDyswCBQMGCgMCAQEoowUDAv38AQMEjcIFCQJWWAIJBcOMBAMBIq4FCwSuAhQGCAEfzQYGBgbOIwEIBgYMBJ/iBgwEAgICAWxqAQEGBgMJAwEB3qEFDAa2BgoEiB0BBgWxsAUGARuJBAsFwVoDAQJcAAIAvwB1A1ADEQAhAD4AAAEiBh0BFAYjISImPQE0JiMiBh0BHgEzITI2PQE0JicuASM3AS4BIyIGBwEGFBceATMyNjcBNjIXARYyNz4BJwL3Cg4LB/51CAsOCgkPASYbAYwbJwQDAwkFWf7mChgNDRgJ/uYGBwMJBQQIBAEZBRAFARoHEwcGAQYBsA4J4gcLCwfiCQ4OCeIbJycb4gQJAwQDNAEaCgkJCf7lBxMGBAMDAwEZBQX+5wYHBhMHAAAAAAMA3AF2AzEB+gALABcAJAAAATI2NTQmIyIGFRQWITI2NTQmIyIGFRQWITI2NTQmIyIGFRQWMwEeHCcnHBsnJwEDHCcnHBsnJwEEGycnGxwnJxwBdicbGycnGxsnJxsbJycbGycnGxsnJxsbJwAAAAABAOwAnQMUAs4AJQAAATc2NCcmIg8BJyYiBwYUHwEHBhQXHgEzMjY/ARceATMyNjc2NCcCKOwJCQgYCOzqCBgICQnq7AkJBAoGBQsE7OwECwUGCgQJCQG76gkXCQgI6+sICAgYCOvrCBgIBAQEBOvtBQQFBAgXCQABAAAAAQAA3hDrLV8PPPUACwQAAAAAANWUyKsAAAAA1ZTIqwAAAAADugMbAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO6AAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWAEAAFYBAAA0AQAAJcEAAC/BAAA3AQAAOwAAAAAAAoAFAAeAEoAdgDGAToBmgHSAg4AAQAAAAsASwADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAA4AAAABAAAAAAACAAcAnwABAAAAAAADAA4ASwABAAAAAAAEAA4AtAABAAAAAAAFAAsAKgABAAAAAAAGAA4AdQABAAAAAAAKABoA3gADAAEECQABABwADgADAAEECQACAA4ApgADAAEECQADABwAWQADAAEECQAEABwAwgADAAEECQAFABYANQADAAEECQAGABwAgwADAAEECQAKADQA+HN0cmVhbWljb25mb250AHMAdAByAGUAYQBtAGkAYwBvAG4AZgBvAG4AdFZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHN0cmVhbWljb25mb250AHMAdAByAGUAYQBtAGkAYwBvAG4AZgBvAG4AdHN0cmVhbWljb25mb250AHMAdAByAGUAYQBtAGkAYwBvAG4AZgBvAG4AdFJlZ3VsYXIAUgBlAGcAdQBsAGEAcnN0cmVhbWljb25mb250AHMAdAByAGUAYQBtAGkAYwBvAG4AZgBvAG4AdEZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}body,html{-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}[class*=" uni-icon-"],[class^=uni-icon-]{display:inline-block;vertical-align:middle;font:normal normal normal 14px/1 uni;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}[class*=" uni-btn-icon"],[class^=uni-btn-icon]{display:inline-block;font:normal normal normal 14px/1 unibtn;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}[class*=" uni-btn-icon"]:before,[class^=uni-btn-icon]:before{margin:0;box-sizing:border-box}.uni-icon-success-no-circle:before{content:"\EA08"}.uni-icon-error:before{content:"\EA0B"}.uni-loading,uni-button[loading]:before{background:rgba(0,0,0,0) 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;-webkit-animation:uni-loading 1s steps(12) infinite;animation:uni-loading 1s steps(12) infinite;background-size:100%}@-webkit-keyframes uni-loading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes uni-loading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}[nvue] uni-scroll-view,[nvue] uni-swiper-item,[nvue] uni-view{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0;-webkit-flex-basis:auto;flex-basis:auto;-webkit-box-align:stretch;-webkit-align-items:stretch;align-items:stretch;-webkit-align-content:flex-start;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item,[nvue-dir-row] uni-view{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item,[nvue-dir-column] uni-view{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item,[nvue-dir-row-reverse] uni-view{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item,[nvue-dir-column-reverse] uni-view{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}[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,[nvue] uni-view{position:relative;border:0 solid #000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}html{--UI-BG:#fff;--UI-BG-1:#f7f7f7;--UI-BG-2:#fff;--UI-BG-3:#f7f7f7;--UI-BG-4:#4c4c4c;--UI-BG-5:#fff;--UI-FG:#000;--UI-FG-0:rgba(0,0,0,0.9);--UI-FG-HALF:rgba(0,0,0,0.9);--UI-FG-1:rgba(0,0,0,0.5);--UI-FG-2:rgba(0,0,0,0.3);--UI-FG-3:rgba(0,0,0,0.1)}@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%,0.8);--UI-FG-HALF:hsla(0,0%,100%,0.6);--UI-FG-1:hsla(0,0%,100%,0.5);--UI-FG-2:hsla(0,0%,100%,0.3);--UI-FG-3:hsla(0,0%,100%,0.05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}uni-audio{display:none}uni-audio[controls]{display:inline-block}uni-audio[hidden]{display:none}.uni-audio-default{max-width:100%;min-width:302px;height:65px;background:#fcfcfc;border:1px solid #e0e0e0;border-radius:2.5px;display:inline-block;overflow:hidden}.uni-audio-left{width:65px;height:65px;float:left;background-color:#e6e6e6;background-size:100% 100%;background-position:50% 50%}.uni-audio-button{width:24px;height:24px;margin:20.5px;background-size:cover}.uni-audio-button.play{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAB4dJREFUaAXNWg1MlVUYvpcfIRCJ+MnCaOBl8dOcOCEQZ9kmI5cQG5Yb6MifKbMaGVobOtlibTWHDpgpxBUwF07826iFsMkYJhg559JdGiQSkUzSBA0QkZ7n4/u+nXsvwf3jwru99/y/3/N+3znvec97rlbjABofH38GYtaAV4MjwDqwH9gHTBoE3wd3gA3gi+B6rVY7hHR2CKD9wFngs+BHYGuJYziWMqiscwgP8wLvBQ+AHUWURZle1mqhtXQAhLui7xZwPvgFsBENDg7+Drp069at2z09Pf03b978u6mpqZ+dVq1aFRAVFeW/aNGigNDQ0JfDwsISfXx8wowETBT+QpIPLsf0GpuomvrXIgUAPhhizoGXi+II+tq1az/o9fpLFRUVd8S26fJZWVkLN2/enBgTE/PW/PnzF5v0b0P5HSjxp0m9WXFaBQD+NYw6C1bf+vDwcF9DQ4N+/fr19ciPm0m1osLT01N76tSpNaD3PTw8FgpD+TXSoESrUGeWnVIBgM/EiDKwJ0eiPNrS0nJsw4YNNd3d3aOscxSFhIS4V1dXpyckJGRB5jxZ7jDSbVDiW7lslriY1cgVMvjjKErgR0dH/zl06NCuFStWfOdo8HwkZVL2wYMHP3ny5AlNLonPPi5jkSpMfyb9AhjAadMIlsBjrndmZ2fnnThxos9UwEyUMzIynj9y5EgB1gb3ExK/xBuTTSczBQCeC/ZnsDTnCR6f9YMbN25QiNMoOjras7W1tcjb2ztcfijXRKzpwjaaQgBPU0lrI4HntOGbdzZ4AuYzt2/fvm9sbOweyyBiOidjlCr4Y6QAyrTzkqlEx9GSkpJ9zpo2BGNKfHZRUdF+1D+W24iNGFVSpxAAcxekryK9/cuXLx/FoqpWe85iBlPpvbi4uB0yBE4lHabSvyyLX2AXyhJ42nmYytPsMBcI+80ZWKZeGQsxEqtEkgJ4+3Sm9sh1Gm5SM2EqFfnWpsRSV1dXIYzbI2NWv0AqGiXXl+4Bd1ihs0XZu3fvHhgYGNBXVVUlWDTAyk7p6ekNIyMj7fIwYiVmIwWkNvo2trgHAQEBy+CghW7cuPGLvr6+L3fu3PmSJNBBP8R09erVHwVxEwrgU/AwkqQ00DFT8lamqkEICgqKKy4u1sMU7li6dKnVLvL/Pbe0tLRFaEsidi1+UlB5ng3ctBYsWLBV6GRxFnJ4yjIj7CX36uvrS1NTU+uwEM3ara3Al/gaTl+EPC6Vi/hNRUhHR8dPSt5Rqbu7+3Nr1679rL+//3BBQYHyYJvFd3V1iTNkNRV4RZF2G6TkHZ36+vpG5uXlHcah59Pk5GSbj5AY3y1gi6ACisOk4UlKaJyJrBYnsuTa2trjzc3N7/r7+9N1sYo6OzsfCAN0VEB9GzwGCo0zlnV1dfVOTEzMhn3Xl5eXx1rzIBOMflRAsv8UopxhrRFoT18vL68QHCu/am9vz7FUjglGHyow6xQcHBxjKwgqwKCTRIweKHlnpZhGDfC7LP4CJhgH3QCUxzd/AmboA0kP8zNNcDt+w8ZUvHv37l+tedaSJUueFfrfpwJ0oSVLxLiN0DgjWWxsDxobG79JSUn53haXRafT+QrAOjiFDEoFg05K3tEpduoxg8FweuXKlRlJSUm1toAnpvDwcB55FTJQAdUFYMRMaXFkil34l9zc3K2RkZElV65ceWSPbCz414XxF6kAXWfpdMNwHyNmQge7skNDQ3dOnjy5PzAwMLewsLDLLmEYDJMb5ObmFiXLIeZ6FxzNGOK+IFeyk91f4enTpyNtbW3HIiIiNsHCNCmy7U1zcnKWCTIuEDu/AOn8RKLRMFbJcJ9StjRlBIN94Y40ZmZmboqNja3iScrS8dP1IyaEWt4W+kmYaYVILHA/8GGglbHKdevWqV+FHaYjOGofw811hcfZOV1fW9pxzE1wcXGJlscSq6SA+qZhJfai8nN2wNHtDhb0pt7eXoe9Qcq1lRg3hRvNkLtyytuHfAHlKVOI+UIwQxYaRolramrSmZ8LhLefJIAnRmKVSFUAHbiq8yeqNRpGiWE5XlXKs5WWlZUthu3/SHh+voxVqlKnEEuYRvTPee5czjKjxDCr2bMVnYNF9IO7fRRQAokHxIuPeCig3t4YKcAeUCIYiRrcffjwYUd8fPyHzo6PwuJ4XL9+/QAWrjILOHWmDu5SAWjHa500sBSNZoibUWKGvNnuDOKbNwFPLLytITYjUteAWIuOvNbZptQxxF1ZWXnYGWuCc57TRnjzhMFbGmIyI7MpJPbAdMpEuQzsKdc/hi+jT0tLO+NoE0tTSWsjL9h58vP45qe8YppSAQqBEmaXfAy0MlbJcJ+tXqUMUMMdlpsUIuE78JYVO89mznn7LvmUh8gL+xzKknVS6hmrZLiPETNrr1npmNG3oXsg7LCKaFobx1yzKhKhBE3sFnA+mCFuI4IyBuyWzYjb/MHQh+lFN09SPIxgirxIlxhepeIWiHL41vPBFl90i4MtykOROfVXA4tAT9YJisyJP3tMu4gnA29aB2UY4V4DXg1m/FMH9gMrMSd6jwwe8PxtAPMU6JC/2/wHuyI2cMsNBRIAAAAASUVORK5CYII=)}.uni-audio-button.pause{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABatJREFUaAXVWl1IpFUYnllZGUf3wlz6MXER1ES7s83VUDJw6KpdaSTDwMnYFSK6KNirooHullKQCNzQRjZ/wom1u9ALQ0mT1ktFdEBWXLdibaH1jwmx5zme83W+z2Hm+7bZmc8X3jl/73vO837n/z3j9aSBjo6O8lBNC7gZXAUuBxeCz4FJj8APwTHwCngaPOX1evcRZocAuhAcAt8G74KdEnWoyzpobGYIjfnBn4D/BqeLWBfr9Du1wmtXAZXnQPY9cBj8HNhEe3t7sbW1tfn19fW7m5ubD5aXl7dnZmYeUKipqel8dXV1UUlJyfmysrILFRUV9X6/n8PMSveREQYPYHgdWgsTpW0ZAPDPQ3kC/JJeCUEvLi7+NDg4+EskEvldL0sVD4VCz3Z1db1SW1v7egJj7kD/Coy4l6qelAYAfB0quQ02vno8Hr8/OTkZaWtrmzo4ODhK1Uiycp/P5x0fH28JBAKh3Nxcow3osDdaYcRCMv2kBgD8O1D+BuyTlcTn5+cj7e3t0Y2NjX+SVey0rLS09OzY2Fiwvr4+BN1cqX+A8CqM+E6mTwRnTuTIDAn+FpIC/OHh4V+9vb0fNzQ0jKYbPJtknaybbbAtCYNt35JYZJY5SNgDctj8DFEBfnd3d627u/vT4eHhP8zqTybV0dHxTH9//+f5+fkVsgX2xKuJhtMJAwCeE/Y3sBiPBF9XV/fh0tISK8kY1dTU+BYWFvo0IzgnLlontmkIATyXSq42Ajy7kl8+0+D5ldgm29aGEzFNSIwUEWQyADlc59VSGe/r6/ssU8PmGI75l20TA3LjsoTYiNEgYwjBMu6CPKuIr4/Vph+TasyQzGJkbm7ubaxO1yQEDqVyDKU9pvUe+AhpAZ7rPJbKHyjgBuKyTUwSCzESqyBhAL4+D1PXZZ6Hm9STWCpV/U5DYiEmTe+6xOwRQwiJEAq/pQCPB0VFRdf+7w7LutJJ3LG3t7dvaseOdzGMImoIXVaN8WzjNvDERkzEpnAiFJjP4OvzMhJQBTyYqbjdEDov7+/vf4+6pu0wZQcGBi7arV/JWbAFiN2Lnzcg8COFuGkVFBSo2a70UoYEhC5+OqWgJoAv+mdeXt5bWpat6M7Ozk1tc7vMIfSa0lxdXf1VxZ2ETsGz7sfRoV4sFtMxNtOAF1hAugs6jrn3lxcmDV0VDTBuRrxJaYWujFowltMA40LNa6ArUWugLBgLaYByfXjUHVaTd13UgvEcDTjVRAPodBJE74GKuzW0YHxEA+gxE0TXh4q7NbRgfEgDeIQWRL+Nirs1tGCM0YAVBZZOJxV3a2jBuEIDphVYesxU3EnIY4ETeco+jg71LBinacAUWNxueFSlx4yCTmh0dPRLJ4AoOzIy8oWTNihLbNpxmpin1H2AnrcrFJqdnf0KM901tzFiUoQ94M3GxsYPZHoC94FW9gBJnEYZoa8SBy1hGNNuIWIiNg2PwKwbIPYDdhF9lZqgK6LEpA0fYv3PAHQF94IbCikdrcXFxWdVOtsh/abEpOG4ITGbvBI9EBA3f3qJo9FoUFPIapROX81zTYzEKkgNIQ8s4qwOH2d7PPQS9/T0vKjS2QqJQXqsFYSwxCrSpsmK6yVdi7zx0APmoVuvs7Pz/Wx55+jkHRoa+jonJ+cp4gHdAV+CAcbrjckASsCI0+vcpQGw7h6CVrDwRvMCTS8xvwbLM0Fsy+KZJha+1hCbiYw5oOdCkM86V1UejWBXZmJOsA22pXkeCIOvNAmfmk4MIQWaIYZTwiemYDAY3dracsUTU1IDpBGn95FP9Yac2KfzmVUzgkssHxfCYOGGR2gQvXp0jNG3lOyh+wKosrLykmWMq3q4SYXBth+6laLtEL3hqr8a2AZuFYQhrvizR8pJbAWeKA1j6OFuATeDq8D09hWClc+Jp0ceGHn/5hWWt8C0/N3mX15C4bDnCIuAAAAAAElFTkSuQmCC)}.uni-audio-right{box-sizing:border-box;height:65px;margin-left:65px;padding:11px 16.5px 13.5px 15px;overflow:hidden}.uni-audio-time{margin-top:3.5px;height:16.5px;font-size:12px;color:#888;float:right}.uni-audio-info{margin-right:70px;overflow:hidden}.uni-audio-name{height:22.5px;line-height:22.5px;margin-bottom:3.5px;font-size:14px;color:#353535}.uni-audio-author,.uni-audio-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-audio-author{height:14.5px;line-height:14.5px;font-size:12px;color:#888}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);-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;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:hsla(0,0%,100%,.6);cursor:not-allowed}uni-button[disabled]:not([type]),uni-button[disabled][type=default]{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:rgba(0,0,0,0)}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:rgba(0,0,0,0)}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:rgba(0,0,0,0)}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:rgba(0,0,0,0)}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;-webkit-animation:uni-loading 1s steps(12) infinite;animation:uni-loading 1s steps(12) infinite;background-size:100%}uni-button[loading][type=primary]{color:hsla(0,0%,100%,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:rgba(0,0,0,0)}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:rgba(0,0,0,0)}uni-button[loading][type=warn]{color:hsla(0,0%,100%,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:rgba(0,0,0,0)}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:rgba(0,0,0,0)}.button-hover[type=primary]{color:hsla(0,0%,100%,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0)}.button-hover[type=warn]{color:hsla(0,0%,100%,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:rgba(0,0,0,0)}@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:hsla(0,0%,100%,.1)}uni-button[disabled]:not([type]),uni-button[disabled][type=default]{color:hsla(0,0%,100%,.2);background-color:hsla(0,0%,100%,.08)}uni-button[type=primary][plain][disabled]{color:hsla(0,0%,100%,.2);border-color:hsla(0,0%,100%,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:hsla(0,0%,58.8%,.6);border-color:hsla(0,0%,58.8%,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:hsla(0,0%,100%,.2);color:hsla(0,0%,100%,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox-group[hidden]{display:none}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 .uni-checkbox-wrapper{display:-webkit-inline-flex;display:-webkit-inline-box;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;align-items:center;vertical-align:middle}uni-checkbox .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:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked{color:#007aff}uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before{font:normal normal normal 14px/1 uni;content:"\EA08";font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73);-webkit-transform:translate(-50%,-48%) scale(.73)}uni-checkbox .uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}uni-checkbox .uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-checkbox-group{display:block}.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:-webkit-box;display:-webkit-flex;display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items: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%;-webkit-transform:translatex(-50%);transform:translatex(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #000 rgba(0,0,0,0)}.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 blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{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:"\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.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),.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),.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),.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),.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),.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),.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),.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),.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),.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-icon>i{font:normal normal normal 14px/1 weui}uni-icon>i:before{margin:0;box-sizing:border-box}@font-face{font-weight:400;font-style:normal;font-family:weui;src:url("data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJAKEx8AAABfAAAAFZjbWFw65cFHQAAAhwAAAJQZ2x5Zp+UEEcAAASUAAAIvGhlYWQUqc7xAAAA4AAAADZoaGVhB/YD+wAAALwAAAAkaG10eEJoAAAAAAHUAAAASGxvY2EUxhJeAAAEbAAAACZtYXhwASEAQwAAARgAAAAgbmFtZeNcHtgAAA1QAAAB5nBvc3T6OoZLAAAPOAAAAOYAAQAAA+gAAABaA+gAAAAAA7MAAQAAAAAAAAAAAAAAAAAAABIAAQAAAAEAAMCU2KdfDzz1AAsD6AAAAADY7EUUAAAAANjsRRQAAAAAA7MD5AAAAAgAAgAAAAAAAAABAAAAEgA3AAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQOwAZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6gHqEQPoAAAAWgPoAAAAAAABAAAAAAAAAAAAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAAAAABQAAAAMAAAAsAAAABAAAAXQAAQAAAAAAbgADAAEAAAAsAAMACgAAAXQABABCAAAABAAEAAEAAOoR//8AAOoB//8AAAABAAQAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAANwAAAAAAAAAEQAA6gEAAOoBAAAAAQAA6gIAAOoCAAAAAgAA6gMAAOoDAAAAAwAA6gQAAOoEAAAABAAA6gUAAOoFAAAABQAA6gYAAOoGAAAABgAA6gcAAOoHAAAABwAA6ggAAOoIAAAACAAA6gkAAOoJAAAACQAA6goAAOoKAAAACgAA6gsAAOoLAAAACwAA6gwAAOoMAAAADAAA6g0AAOoNAAAADQAA6g4AAOoOAAAADgAA6g8AAOoPAAAADwAA6hAAAOoQAAAAEAAA6hEAAOoRAAAAEQAAAAAARACKAMQBEgFgAZIB4gH6AioCeAK0AwwDZAOiA9wEEAReAAAAAgAAAAADlQOVABQAKQAAJSInJicmNDc2NzYyFxYXFhQHBgcGJzI3Njc2NCcmJyYiBwYHBhQXFhcWAfRxYV83OTk3X2HiYV83OTk3X2FxZFVTMTIyMVNVyFVTMTIyMVNVUzk3X2HiYV83OTk3X2HiYV83OTIyMVNVyFVTMTIyMVNVyFVTMTIAAAIAAAAAA7MDswAXAC0AAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMHBiIvASY2OwERNDY7ATIWFREzMhYB7nZnZDs9PTtkZ3Z8amY7Pj47Zmkhdg4oDnYODRddCwcmBwtdFw0Dsz47Zmp8dmdkOz09O2Rndn1pZjs+/fCaEhKaEhoBFwgLCwj+6RoAAwAAAAADlQOVABQAGAAhAAAlIicmJyY0NzY3NjIXFhcWFAcGBwYDETMRJzI2NCYiBhQWAfRxYV83OTk3X2HiYV83OTk3X2GQPh8RGRkiGRlTOTdfYeJhXzc5OTdfYeJhXzc5AfT+3QEjKhgjGBgjGAAAAAACAAAAAAOxA+QAFwAsAAABBgcGDwERFBcWFxYXNjc2NzY1EScmJyYTAQYvASY/ATYyHwEWNjclNjIfARYB9WlsP3A3Rz5sXmxsXW09SDdwQGuP/tUEBIoDAxIBBQFxAQUCARICBQERBAPjFyASJBL+rI51ZUg/HBw/SGV1jgFUEiQSIP66/tkDA48EBBkCAVYCAQHlAQIQBAAAAAADAAAAAAOxA+QAFwAmAC8AAAEGBwYPAREUFxYXFhc2NzY3NjURJyYnJgczMhYVAxQGKwEiJwM0NhMiJjQ2MhYUBgH1aWtAcDdHPmxebGxdbT1IN3BAa4M0BAYMAwImBQELBh4PFhYeFRUD5BggEiQS/q2PdWRJPh0dPklkdY8BUxIkEiD4BgT+xgIDBQE6BAb+QBUfFRUfFQAAAAACAAAAAAOVA5UAFAAaAAAlIicmJyY0NzY3NjIXFhcWFAcGBwYDJwcXAScB9HFhXzc5OTdfYeJhXzc5OTdfYaJzLJ8BFi1TOTdfYeJhXzc5OTdfYeJhXzc5AUhzLJ8BFSwAAAAAAwAAAAADlQOVABQAKQAvAAAlIicmJyY0NzY3NjIXFhcWFAcGBwYnMjc2NzY0JyYnJiIHBgcGFBcWFxYTNxcBJzcB9HFhXzc5OTdfYeJhXzc5OTdfYXFkVVMxMjIxU1XIVVMxMjIxU1Uz8iT+6p8jUzk3X2HiYV83OTk3X2HiYV83OTIyMVNVyFVTMTIyMVNVyFVTMTIBBPIj/uufJAAAAAEAAAAAA5kDGAAHAAAlATcXARcBBgGF/vg7zgHYOv3vAcsBCTvPAdg7/e4BAAAAAAIAAAAAA5UDlQAFABoAAAE1IxUXNwMiJyYnJjQ3Njc2MhcWFxYUBwYHBgITPrEsvnFhXzc5OTdfYeJhXzc5OTdfYQIO4PqxLP7kOTdfYeJhXzc5OTdfYeJhXzc5AAAAAAMAAAAAA5UDlQAFABoALwAAARcHJzUzAyInJicmNDc2NzYyFxYXFhQHBgcGJzI3Njc2NCcmJyYiBwYHBhQXFhcWAg2iI7EyGXFhXzc5OTdfYeJhXzc5OTdfYXFkVVMxMjIxU1XIVVMxMjIxU1UCCaIksfr9ZTk3X2HiYV83OTk3X2HiYV83OTIyMVNVyFVTMTIyMVNVyFVTMTIAAAMAAAAAA5UDlQAUABgAIQAAJSInJicmNDc2NzYyFxYXFhQHBgcGAxMzEwMyNjQmIg4BFgH0cWFfNzk5N19h4mFfNzk5N19hkQU2BSAQFRUgFQEWUzk3X2HiYV83OTk3X2HiYV83OQKV/sQBPP43Fh8VFR8WAAAAAAQAAAAAA5UDlQAUACkALQA2AAAlIicmJyY0NzY3NjIXFhcWFAcGBwYnMjc2NzY0JyYnJiIHBgcGFBcWFxYTMxEjEyImNDYyFhQGAfRxYV83OTk3X2HiYV83OTk3X2FxZFVTMTIyMVNVyFVTMTIyMVNVSzIyGREZGSIZGVM5N19h4mFfNzk5N19h4mFfNzkyMjFTVchVUzEyMjFTVchVUzEyAcL+3QFNGCMYGCMYAAAAAwAAAAADlQOVABQAKQA1AAAlIicmJyY0NzY3NjIXFhcWFAcGBwYnMjc2NzY0JyYnJiIHBgcGFBcWFxYTFwcnByc3JzcXNxcB9HFhXzc5OTdfYeJhXzc5OTdfYXFkVVMxMjIxU1XIVVMxMjIxU1WHgiOCgiOCgiOCgiNTOTdfYeJhXzc5OTdfYeJhXzc5MjIxU1XIVVMxMjIxU1XIVVMxMgFvgiOCgiOCgiOCgiMAAAACAAAAAANUA0IAGAAlAAABFwcnDgEjIicmJyY0NzY3NjIXFhcWFRQGJzQuASIOARQeATI+AQKoqyOsJ180T0RCJycnJ0JEn0RCJiglDUFvg29BQW+Db0EBYKwjrCAjKCZCRJ9EQicnJydCRE82YZdBb0FBb4NvQUFvAAAAAgAAAAADlQOVAAsAIAAAATcnBycHFwcXNxc3AyInJicmNDc2NzYyFxYXFhQHBgcGAiB9LH19LH19LH19LKlxYV83OTk3X2HiYV83OTk3X2EB9H0sfX0sfX0sfX0s/tw5N19h4mFfNzk5N19h4mFfNzkAAAACAAAAAAOVA5UAFAAcAAAlIicmJyY0NzY3NjIXFhcWFAcGBwYDJzcnBwYfAQH0cWFfNzk5N19h4mFfNzk5N19hHoqKK7UBAbVTOTdfYeJhXzc5OTdfYeJhXzc5ARKPjy27AQG6AAAAAAUAAAAAA1cDbAAJAB0AJwArAC8AAAETHgEzITI2NxMzAw4BIyEiJicDIzU0NjMhMhYdASUyFh0BIzU0NjMHMxMjEzMDIwEaIgETDQEuDRMBIjIiAjAh/tIhMAIiVgwJApoJDP7xCQzQDAkVMhUyiTIVMgLd/cgOEhIOAjj9xSEuLiECOx4IDAwIHo4MCR0dCQz6/okBd/6JAAAAAAAAEADGAAEAAAAAAAEABAAAAAEAAAAAAAIABwAEAAEAAAAAAAMABAALAAEAAAAAAAQABAAPAAEAAAAAAAUACwATAAEAAAAAAAYABAAeAAEAAAAAAAoAKwAiAAEAAAAAAAsAEwBNAAMAAQQJAAEACABgAAMAAQQJAAIADgBoAAMAAQQJAAMACAB2AAMAAQQJAAQACAB+AAMAAQQJAAUAFgCGAAMAAQQJAAYACACcAAMAAQQJAAoAVgCkAAMAAQQJAAsAJgD6d2V1aVJlZ3VsYXJ3ZXVpd2V1aVZlcnNpb24gMS4wd2V1aUdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAHcAZQB1AGkAUgBlAGcAdQBsAGEAcgB3AGUAdQBpAHcAZQB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwAHcAZQB1AGkARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETAAZjaXJjbGUIZG93bmxvYWQEaW5mbwxzYWZlLXN1Y2Nlc3MJc2FmZS13YXJuB3N1Y2Nlc3MOc3VjY2Vzcy1jaXJjbGURc3VjY2Vzcy1uby1jaXJjbGUHd2FpdGluZw53YWl0aW5nLWNpcmNsZQR3YXJuC2luZm8tY2lyY2xlBmNhbmNlbAZzZWFyY2gFY2xlYXIEYmFjawZkZWxldGUAAAAA") format("truetype")}.uni-icon-success:before{content:"\EA06"}.uni-icon-success_circle:before{content:"\EA07"}.uni-icon-success_no_circle:before{content:"\EA08"}.uni-icon-safe_success:before{content:"\EA04"}.uni-icon-safe_warn:before{content:"\EA05"}.uni-icon-info:before{content:"\EA03"}.uni-icon-info_circle:before{content:"\EA0C"}.uni-icon-warn:before{content:"\EA0B"}.uni-icon-waiting:before{content:"\EA09"}.uni-icon-waiting_circle:before{content:"\EA0A"}.uni-icon-circle:before{content:"\EA01"}.uni-icon-cancel:before{content:"\EA0D"}.uni-icon-download:before{content:"\EA02"}.uni-icon-search:before{content:"\EA0E"}.uni-icon-clear:before{content:"\EA0F"}.uni-icon-safe_success,.uni-icon-success,.uni-icon-success_circle,.uni-icon-success_no_circle{color:#007aff}.uni-icon-safe_warn{color:#ffbe00}.uni-icon-info{color:#10aeff}.uni-icon-info_circle{color:#007aff}.uni-icon-warn{color:#f76260}.uni-icon-waiting,.uni-icon-waiting_circle{color:#10aeff}.uni-icon-circle{color:#c9c9c9}.uni-icon-cancel{color:#f43530}.uni-icon-download{color:#007aff}.uni-icon-clear,.uni-icon-search{color:#b2b2b2}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div,uni-image>img{width:100%;height:100%}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;display:block;position:absolute;top:0;left:0;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-form,.uni-input-input,.uni-input-placeholder,.uni-input-wrapper{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-form,.uni-input-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;position:relative;width:100%;height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-input-input,.uni-input-placeholder{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:grey;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-inner-spin-button,.uni-input-input::-webkit-outer-spin-button{-webkit-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-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:0;left:0;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}uni-picker-view-column{-webkit-flex:1;-webkit-box-flex:1;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);-webkit-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:-webkit-linear-gradient(top,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),-webkit-linear-gradient(bottom,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background: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}.uni-picker-view-indicator{height:34px;top:50%;-webkit-transform:translateY(-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;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(.5);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:-webkit-linear-gradient(top,rgba(35,35,35,.95),rgba(35,35,35,.6)),-webkit-linear-gradient(bottom,rgba(35,35,35,.95),rgba(35,35,35,.6));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-picker-view{display:block}uni-picker-view .uni-picker-view-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-progress{display:-webkit-flex;display:-webkit-box;display:flex;-webkit-align-items:center;-webkit-box-align:center;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{-webkit-flex:1;-webkit-box-flex:1;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-group[hidden]{display:none}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 .uni-radio-wrapper{display:-webkit-inline-flex;display:-webkit-inline-box;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;align-items:center;vertical-align:middle}uni-radio .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}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}uni-radio .uni-radio-input.uni-radio-input-checked:before{font:normal normal normal 14px/1 uni;content:"\EA08";color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73);-webkit-transform:translate(-50%,-48%) scale(.73)}uni-radio .uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}uni-radio .uni-radio-input.uni-radio-input-disabled:before{color:#adadad}uni-radio-group{display:block}@-webkit-keyframes once-show{0%{top:0}}@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;-webkit-animation:once-show 1ms;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-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;max-height:inherit}.uni-scroll-view,.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;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.uni-scroll-view-refresh,.uni-scroll-view-refresh-inner{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.uni-scroll-view-refresh-inner{line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.117647),0 1px 4px rgba(0,0,0,.117647)}.uni-scroll-view-refresh__spinner{-webkit-transform-origin:center center;transform-origin:center center;-webkit-animation:uni-scroll-view-refresh-rotate 2s linear infinite;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:uni-scroll-view-refresh-dash 2s linear infinite;animation:uni-scroll-view-refresh-dash 2s linear infinite}@-webkit-keyframes uni-scroll-view-refresh-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes uni-scroll-view-refresh-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-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}}@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:-webkit-flex;display:-webkit-box;display:flex;-webkit-align-items:center;-webkit-box-align:center;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{-webkit-flex:1;-webkit-box-flex:1;flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-handle-wrapper,uni-slider .uni-slider-track{-webkit-transition:background-color .3s ease;transition:background-color .3s ease}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;-webkit-transition:border-color .3s ease;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:rgba(0,0,0,0);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:rgba(0,0,0,0);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-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}uni-swiper .uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0)}uni-swiper .uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}uni-swiper .uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}uni-swiper .uni-swiper-dots{position:absolute;font-size:0}uni-swiper .uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;-webkit-transform:translate(-50%);transform:translate(-50%)}uni-swiper .uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}uni-swiper .uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}uni-swiper .uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;-webkit-transform:translateY(-50%);transform:translateY(-50%)}uni-swiper .uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}uni-swiper .uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}uni-swiper .uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;-webkit-transition-property:background-color;transition-property:background-color;-webkit-transition-timing-function:ease;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}uni-swiper .uni-swiper-dot-active{background-color:#000}uni-swiper .uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:all .2s;transition:all .2s;border-radius:50%;opacity:1}uni-swiper .uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}uni-swiper .uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}uni-swiper .uni-swiper-navigation-prev{left:10px}uni-swiper .uni-swiper-navigation-prev i{margin-left:-1px;left:10px}uni-swiper .uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}uni-swiper .uni-swiper-navigation-prev.uni-swiper-navigation-vertical i{-webkit-transform:rotate(90deg);transform:rotate(90deg);margin-left:auto;margin-top:-2px}uni-swiper .uni-swiper-navigation-next{right:10px}uni-swiper .uni-swiper-navigation-next i{-webkit-transform:rotate(180deg);transform:rotate(180deg)}uni-swiper .uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}uni-swiper .uni-swiper-navigation-next.uni-swiper-navigation-vertical i{margin-top:2px;-webkit-transform:rotate(270deg);transform:rotate(270deg)}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 .uni-switch-wrapper{display:-webkit-inline-flex;display:-webkit-inline-box;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;align-items:center;vertical-align:middle}uni-switch .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;-webkit-transition:background-color .1s,border .1s;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}uni-switch .uni-switch-input:before{width:50px;background-color:#fdfdfd}uni-switch .uni-switch-input:after,uni-switch .uni-switch-input:before{content:" ";position:absolute;top:0;left:0;height:30px;border-radius:15px;transition:-webkit-transform .3s;-webkit-transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}uni-switch .uni-switch-input:after{width:30px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}uni-switch .uni-switch-input.uni-switch-input-checked:before{-webkit-transform:scale(0);transform:scale(0)}uni-switch .uni-switch-input.uni-switch-input-checked:after{-webkit-transform:translateX(20px);transform:translateX(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.uni-checkbox-input-checked:before{font:normal normal normal 14px/1 uni;content:"\EA08";color:inherit;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73);-webkit-transform:translate(-50%,-48%) scale(.73)}uni-switch .uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}uni-switch .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-text[selectable]{cursor:auto;user-select:text;-webkit-user-select:text}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-compute,.uni-textarea-line,.uni-textarea-placeholder,.uni-textarea-textarea,.uni-textarea-wrapper{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-compute,.uni-textarea-line,.uni-textarea-placeholder,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:grey;overflow:hidden}.uni-textarea-compute,.uni-textarea-line{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-ad{display:block;overflow:hidden}uni-ad[hidden]{display:none}uni-ad .uni-ad-container{width:100%;min-height:1px}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;overflow:hidden;white-space:inherit;-webkit-align-items:inherit;-webkit-box-align:inherit;align-items:inherit;-webkit-justify-content:inherit;-webkit-box-pack:inherit;justify-content:inherit;-webkit-flex-direction:inherit;-webkit-box-orient:inherit;-webkit-box-direction:inherit;flex-direction:inherit;-webkit-flex-wrap:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}uni-live-pusher{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{left:0;background-color:#000}.uni-live-pusher-container,.uni-live-pusher-slot{width:100%;height:100%;position:absolute;top:0;overflow:hidden}.uni-live-pusher-slot{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{left:0;background-color:rgba(0,0,0,0)}.uni-map-container,.uni-map-slot{width:100%;height:100%;position:absolute;top:0;overflow:hidden}.uni-map-slot{pointer-events:none}uni-picker{display:block}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{left:0;background-color:#000}.uni-video-container,.uni-video-slot{width:100%;height:100%;position:absolute;top:0;overflow:hidden}.uni-video-slot{pointer-events:none}uni-view{display:block}uni-view[hidden]{display:none}uni-web-view{position:absolute;left:0;right:0;top:0;bottom:0} \ No newline at end of file diff --git a/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.umd.min.js b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.umd.min.js new file mode 100644 index 0000000..f9bb4c9 --- /dev/null +++ b/PipeLineLems.PDA/unpackage/resources/__UNI__417D0E6/www/view.umd.min.js @@ -0,0 +1,6 @@ +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["uni"]=e():t["uni"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"0094":function(t,e,n){"use strict";n.r(e);var i=n("f2b3"),r=n("c4c5");function o(t,e,n){return o="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=a(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},o(t,e,n||t)}function a(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=y(t),null===t)break;return t}function s(t){var e="function"===typeof Map?new Map:void 0;return s=function(t){if(null===t||!u(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,t)},s(t)}function c(t,e,n){return c=b()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),o=new r;return n&&v(o,n.prototype),o},c.apply(null,arguments)}function u(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function l(t){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function m(t){return function(){var e,n=y(t);if(b()){var i=y(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return g(this,e)}}function g(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var w=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,S=function(t){return"string"===typeof t?t.replace(w,(function(t,e){return uni.upx2px(e)+"px"})):t},k=function(t){p(n,t);var e=m(n);function n(){return h(this,n),e.apply(this,arguments)}return f(n,[{key:"setStyle",value:function(t){if(!this.$el||!t)return this;if("string"===typeof t&&(t=Object(r["c"])(t)),Object(i["g"])(t))for(var e in t)this.$el.style[e]=S(t[e]);return this}},{key:"addClass",value:function(){var t;return this.$el&&arguments.length?((t=this.$el.classList).add.apply(t,arguments),this):this}},{key:"removeClass",value:function(){var t;return this.$el&&arguments.length?((t=this.$el.classList).remove.apply(t,arguments),this):this}},{key:"callMethod",value:function(){}},{key:"triggerEvent",value:function(){}}]),n}(r["a"]);function x(t){return Object(i["b"])(t.substring(5))}var C=function(t){p(n,t);var e=m(n);function n(){return h(this,n),e.apply(this,arguments)}return f(n,[{key:"setAttribute",value:function(t,e){if(t.startsWith("data-")){var i=this.__uniDataset||(this.__uniDataset={});i[x(t)]=e}o(y(n.prototype),"setAttribute",this).call(this,t,e)}},{key:"removeAttribute",value:function(t){this.__uniDataset&&t.startsWith("data-")&&delete this.__uniDataset[x(t)],o(y(n.prototype),"removeAttribute",this).call(this,t)}},{key:"$getComponentDescriptor",value:function(){return"__wxsComponentDescriptor"in this||(this.__wxsComponentDescriptor=new k({$el:this})),this.__wxsComponentDescriptor}}]),n}(s(HTMLElement)),T=n("9b52");function O(t){return O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function $(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function I(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),t}function A(t,e,n){return A="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=M(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},A(t,e,n||t)}function M(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=B(t),null===t)break;return t}function P(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},j(t,e)}function L(t){return function(){var e,n=B(t);if(R()){var i=B(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return N(this,e)}}function N(t,e){return!e||"object"!==O(e)&&"function"!==typeof e?D(t):e}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}var F=function(t){P(n,t);var e=L(n);function n(){return $(this,n),e.apply(this,arguments)}return I(n,[{key:"setAttribute",value:function(t,e){"animation"===t&&Object(T["b"])({$el:this,animation:e}),A(B(n.prototype),"setAttribute",this).call(this,t,e)}}]),n}(C);function z(t){return z="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function V(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Y(t,e,n){return e&&H(t.prototype,e),n&&H(t,n),t}function U(t,e,n){return U="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=W(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},U(t,e,n||t)}function W(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Q(t),null===t)break;return t}function X(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&q(t,e)}function q(t,e){return q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},q(t,e)}function Z(t){return function(){var e,n=Q(t);if(J()){var i=Q(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return G(this,e)}}function G(t,e){return!e||"object"!==z(e)&&"function"!==typeof e?K(t):e}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}var tt=function(t){X(n,t);var e=Z(n);function n(){return V(this,n),e.apply(this,arguments)}return Y(n,[{key:"setAttribute",value:function(t,e){"hover-class"===t&&this._updateHoverClass(e),U(Q(n.prototype),"setAttribute",this).call(this,t,e)}},{key:"removeAttribute",value:function(t){"hover-class"===t&&this._updateHoverClass(),U(Q(n.prototype),"removeAttribute",this).call(this,t)}},{key:"_updateHoverClass",value:function(t){t=t||"none","none"===t?this._removeEventListener():this._addEventListener()}},{key:"_addEventListener",value:function(){this.__hoverTouchStart||(this.addEventListener("touchstart",this.__hoverTouchStart=this._hoverTouchStart.bind(this)),this.addEventListener("touchend",this.__hoverTouchEnd=this._hoverTouchEnd.bind(this)),this.addEventListener("touchcancel",this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)))}},{key:"_removeEventListener",value:function(){this.__hoverTouchStart&&(this.removeEventListener("touchstart",this.__hoverTouchStart),delete this.__hoverTouchStart,this.removeEventListener("touchend",this.__hoverTouchEnd),delete this.__hoverTouchEnd,this.removeEventListener("touchcancel",this.__hoverTouchCancel),delete this.__hoverTouchCancel)}},{key:"_hoverTouchStart",value:function(t){var e=this;if(!t._hoverPropagationStopped&&!this.disabled&&!(t.touches.length>1)){this.getAttribute("hover-stop-propagation")&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0;var n=50,i=Number(this.getAttribute("hover-start-time")||n);this._hoverStartTimer=setTimeout((function(){e.hovering=!0,e._hoverTouch||e._hoverReset()}),isNaN(i)?n:i)}}},{key:"_hoverTouchEnd",value:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}},{key:"_hoverReset",value:function(){var t=this;requestAnimationFrame((function(){clearTimeout(t._hoverStayTimer);var e=400,n=Number(t.getAttribute("hover-stay-time")||e);t._hoverStayTimer=setTimeout((function(){t.hovering=!1}),isNaN(n)?e:n)}))}},{key:"_hoverTouchCancel",value:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}},{key:"hovering",get:function(){return this._hovering},set:function(t){this._hovering=t;var e=this.getAttribute("hover-class").split(" ").filter(Boolean),n=this.classList;t?n.add.apply(n,e):n.remove.apply(n,e)}}]),n}(F);function et(t){return et="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function it(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rt(t,e)}function rt(t,e){return rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},rt(t,e)}function ot(t){return function(){var e,n=ut(t);if(ct()){var i=ut(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return at(this,e)}}function at(t,e){return!e||"object"!==et(e)&&"function"!==typeof e?st(t):e}function st(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function ut(t){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ut(t)}var lt=function(t){it(n,t);var e=ot(n);function n(){return nt(this,n),e.apply(this,arguments)}return n}(tt);e["default"]={View:lt}},"010d":function(t,e,n){},"02b5":function(t,e,n){"use strict";var i=n("e5e5"),r=n.n(i);r.a},"02ed":function(t){t.exports=JSON.parse('{"uni.app.quit":"鍐嶆寜涓�娆¢��鍑烘噳鐢�","uni.async.error":"閫f帴鏈嶅嫏鍣ㄨ秴鏅傦紝榛炴搳灞忓箷閲嶈│","uni.showActionSheet.cancel":"鍙栨秷","uni.showToast.unpaired":"璜嬫敞鎰� showToast 鑸� hideToast 蹇呴爤閰嶅皪浣跨敤","uni.showLoading.unpaired":"璜嬫敞鎰� showLoading 鑸� hideLoading 蹇呴爤閰嶅皪浣跨敤","uni.showModal.cancel":"鍙栨秷","uni.showModal.confirm":"纰哄畾","uni.chooseImage.cancel":"鍙栨秷","uni.chooseImage.sourceType.album":"寰炵浉鍐婇伕鎿�","uni.chooseImage.sourceType.camera":"鎷嶆敐","uni.chooseVideo.cancel":"鍙栨秷","uni.chooseVideo.sourceType.album":"寰炵浉鍐婇伕鎿�","uni.chooseVideo.sourceType.camera":"鎷嶆敐","uni.chooseFile.notUserActivation":"鏂囦欢閬告搰鍣ㄥ皪瑭辨鍙兘鍦ㄧ敱鐢ㄦ埗婵�娲绘檪椤ず","uni.previewImage.cancel":"鍙栨秷","uni.previewImage.button.save":"淇濆瓨鍦栧儚","uni.previewImage.save.success":"淇濆瓨鍦栧儚鍒扮浉鍐婃垚鍔�","uni.previewImage.save.fail":"淇濆瓨鍦栧儚鍒扮浉鍐婂け鏁�","uni.setClipboardData.success":"鍏у宸插京鍒�","uni.scanCode.title":"鎺冪⒓","uni.scanCode.album":"鐩稿唺","uni.scanCode.fail":"璀樺垾澶辨晽","uni.scanCode.flash.on":"杓曡Ц鐓т寒","uni.scanCode.flash.off":"杓曡Ц闂滈枆","uni.startSoterAuthentication.authContent":"鎸囩磱璀樺垾涓�...","uni.startSoterAuthentication.waitingContent":"鐒℃硶璀樺垾","uni.picker.done":"瀹屾垚","uni.picker.cancel":"鍙栨秷","uni.video.danmu":"褰堝箷","uni.video.volume":"闊抽噺","uni.button.feedback.title":"鍟忛鍙嶉","uni.button.feedback.send":"鐧奸��","uni.chooseLocation.search":"鎼滅储鍦伴粸","uni.chooseLocation.cancel":"鍙栨秷"}')},"03df":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-web-view",t._g({},t.$listeners))},r=[],o=n("646c"),a=o["a"],s=(n("2df3"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"0516":function(t,e,n){"use strict";(function(t,i){n.d(e,"a",(function(){return f}));var r=n("f2b3"),o=n("a6b0"),a=n("33ed"),s=n("2522"),c=n("a20d"),u=!!r["l"]&&{passive:!1};function l(e){var n=e.statusbarHeight,i=e.windowTop,r=e.windowBottom;if(t.__WINDOW_TOP=i,t.__WINDOW_BOTTOM=r,uni.canIUse("css.var")){var o=document.documentElement.style;o.setProperty("--window-left","0px"),o.setProperty("--window-right","0px"),o.setProperty("--window-top",i+"px"),o.setProperty("--window-bottom",r+"px"),o.setProperty("--status-bar-height",n+"px")}}function h(t,e){var n=t.locale,i=t.statusbarHeight,r=t.windowTop,s=t.windowBottom,c=t.disableScroll,h=t.onPageScroll,d=t.onPageReachBottom,f=t.onReachBottomDistance;Object(o["c"])(n),l({statusbarHeight:i,windowTop:r,windowBottom:s}),c?document.addEventListener("touchmove",a["b"],u):(h||d)&&requestAnimationFrame((function(){document.addEventListener("scroll",Object(a["a"])(e,{enablePageScroll:h,enablePageReachBottom:d,onReachBottomDistance:f}))}))}function d(){i.publishHandler("webviewReady")}function f(t){t(c["m"],d),t(s["a"],h),t(c["f"],o["c"])}}).call(this,n("c8ba"),n("501c"))},"0741":function(t,e,n){"use strict";var i=n("5bb5a"),r=n.n(i);r.a},"07f4":function(t,e,n){"use strict";var i=n("be7f"),r=4,o=0,a=1,s=2;function c(t){var e=t.length;while(--e>=0)t[e]=0}var u=0,l=1,h=2,d=3,f=258,p=29,v=256,m=v+1+p,g=30,_=19,b=2*m+1,y=15,w=16,S=7,k=256,x=16,C=17,T=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=512,M=new Array(2*(m+2));c(M);var P=new Array(2*g);c(P);var j=new Array(A);c(j);var L=new Array(f-d+1);c(L);var N=new Array(p);c(N);var D,R,B,F=new Array(g);function z(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function V(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function H(t){return t<256?j[t]:j[256+(t>>>7)]}function Y(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function U(t,e,n){t.bi_valid>w-n?(t.bi_buf|=e<<t.bi_valid&65535,Y(t,t.bi_buf),t.bi_buf=e>>w-t.bi_valid,t.bi_valid+=n-w):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function W(t,e,n){U(t,n[2*e],n[2*e+1])}function X(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function q(t){16===t.bi_valid?(Y(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function Z(t,e){var n,i,r,o,a,s,c=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=y;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<b;n++)i=t.heap[n],o=c[2*c[2*i+1]+1]+1,o>p&&(o=p,v++),c[2*i+1]=o,i>u||(t.bl_count[o]++,a=0,i>=f&&(a=d[i-f]),s=c[2*i],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(l[2*i+1]+a)));if(0!==v){do{o=p-1;while(0===t.bl_count[o])o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--){i=t.bl_count[o];while(0!==i)r=t.heap[--n],r>u||(c[2*r+1]!==o&&(t.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}}function G(t,e,n){var i,r,o=new Array(y+1),a=0;for(i=1;i<=y;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=X(o[s]++,s))}}function K(){var t,e,n,i,r,o=new Array(y+1);for(n=0,i=0;i<p-1;i++)for(N[i]=n,t=0;t<1<<O[i];t++)L[n++]=i;for(L[n-1]=i,r=0,i=0;i<16;i++)for(F[i]=r,t=0;t<1<<$[i];t++)j[r++]=i;for(r>>=7;i<g;i++)for(F[i]=r<<7,t=0;t<1<<$[i]-7;t++)j[256+r++]=i;for(e=0;e<=y;e++)o[e]=0;t=0;while(t<=143)M[2*t+1]=8,t++,o[8]++;while(t<=255)M[2*t+1]=9,t++,o[9]++;while(t<=279)M[2*t+1]=7,t++,o[7]++;while(t<=287)M[2*t+1]=8,t++,o[8]++;for(G(M,m+1,o),t=0;t<g;t++)P[2*t+1]=5,P[2*t]=X(t,5);D=new z(M,O,v+1,m,y),R=new z(P,$,0,g,y),B=new z(new Array(0),E,0,_,S)}function J(t){var e;for(e=0;e<m;e++)t.dyn_ltree[2*e]=0;for(e=0;e<g;e++)t.dyn_dtree[2*e]=0;for(e=0;e<_;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*k]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Q(t){t.bi_valid>8?Y(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function tt(t,e,n,r){Q(t),r&&(Y(t,n),Y(t,~n)),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}function et(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function nt(t,e,n){var i=t.heap[n],r=n<<1;while(r<=t.heap_len){if(r<t.heap_len&&et(e,t.heap[r+1],t.heap[r],t.depth)&&r++,et(e,i,t.heap[r],t.depth))break;t.heap[n]=t.heap[r],n=r,r<<=1}t.heap[n]=i}function it(t,e,n){var i,r,o,a,s=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===i?W(t,r,e):(o=L[r],W(t,o+v+1,e),a=O[o],0!==a&&(r-=N[o],U(t,r,a)),i--,o=H(i),W(t,o,n),a=$[o],0!==a&&(i-=F[o],U(t,i,a)))}while(s<t.last_lit);W(t,k,e)}function rt(t,e){var n,i,r,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=b,n=0;n<c;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;while(t.heap_len<2)r=t.heap[++t.heap_len]=u<2?++u:0,o[2*r]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=a[2*r+1]);for(e.max_code=u,n=t.heap_len>>1;n>=1;n--)nt(t,o,n);r=c;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],nt(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,nt(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],Z(t,e),G(o,u,t.bl_count)}function ot(t,e,n){var i,r,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=e[2*(i+1)+1],++s<c&&r===a||(s<u?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*x]++):s<=10?t.bl_tree[2*C]++:t.bl_tree[2*T]++,s=0,o=r,0===a?(c=138,u=3):r===a?(c=6,u=3):(c=7,u=4))}function at(t,e,n){var i,r,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),i=0;i<=n;i++)if(r=a,a=e[2*(i+1)+1],!(++s<c&&r===a)){if(s<u)do{W(t,r,t.bl_tree)}while(0!==--s);else 0!==r?(r!==o&&(W(t,r,t.bl_tree),s--),W(t,x,t.bl_tree),U(t,s-3,2)):s<=10?(W(t,C,t.bl_tree),U(t,s-3,3)):(W(t,T,t.bl_tree),U(t,s-11,7));s=0,o=r,0===a?(c=138,u=3):r===a?(c=6,u=3):(c=7,u=4)}}function st(t){var e;for(ot(t,t.dyn_ltree,t.l_desc.max_code),ot(t,t.dyn_dtree,t.d_desc.max_code),rt(t,t.bl_desc),e=_-1;e>=3;e--)if(0!==t.bl_tree[2*I[e]+1])break;return t.opt_len+=3*(e+1)+5+5+4,e}function ct(t,e,n,i){var r;for(U(t,e-257,5),U(t,n-1,5),U(t,i-4,4),r=0;r<i;r++)U(t,t.bl_tree[2*I[r]+1],3);at(t,t.dyn_ltree,e-1),at(t,t.dyn_dtree,n-1)}function ut(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<v;e++)if(0!==t.dyn_ltree[2*e])return a;return o}c(F);var lt=!1;function ht(t){lt||(K(),lt=!0),t.l_desc=new V(t.dyn_ltree,D),t.d_desc=new V(t.dyn_dtree,R),t.bl_desc=new V(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,J(t)}function dt(t,e,n,i){U(t,(u<<1)+(i?1:0),3),tt(t,e,n,!0)}function ft(t){U(t,l<<1,3),W(t,k,M),q(t)}function pt(t,e,n,i){var o,a,c=0;t.level>0?(t.strm.data_type===s&&(t.strm.data_type=ut(t)),rt(t,t.l_desc),rt(t,t.d_desc),c=st(t),o=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=o&&(o=a)):o=a=n+5,n+4<=o&&-1!==e?dt(t,e,n,i):t.strategy===r||a===o?(U(t,(l<<1)+(i?1:0),3),it(t,M,P)):(U(t,(h<<1)+(i?1:0),3),ct(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),it(t,t.dyn_ltree,t.dyn_dtree)),J(t),i&&Q(t)}function vt(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(L[n]+v+1)]++,t.dyn_dtree[2*H(e)]++),t.last_lit===t.lit_bufsize-1}e._tr_init=ht,e._tr_stored_block=dt,e._tr_flush_block=pt,e._tr_tally=vt,e._tr_align=ft},"0998":function(t,e,n){"use strict";var i=n("010d"),r=n.n(i);r.a},"0aa0":function(t,e,n){"use strict";var i=n("a53f");function r(t){var e;while(t){var n=getComputedStyle(t),i=n.transform||n.webkitTransform;e=(!i||"none"===i)&&e,e="fixed"===n.position||e,t=t.parentElement}return e}e["a"]={name:"Native",data:function(){return{position:{top:"0px",left:"0px",width:"0px",height:"0px",position:"static"},hidden:!1}},provide:function(){return{parentOnDraw:this._onDraw}},inject:{parentOnDraw:{default:null}},created:function(){this.isNative=!0,this.onCanInsertCallbacks=[],this.onDrawCallbacks=[]},mounted:function(){this._updatePosition(),this.onCanInsertCallbacks.forEach((function(t){return t()})),this.onCanInsertCallbacks=null,this.$on("uni-view-update",this._requestPositionUpdate)},methods:{_updatePosition:function(){var t=(this.$refs.container||this.$el).getBoundingClientRect();if(this.hidden=0===t.width||0===t.height,!this.hidden){var e=this.position;e.position=r(this.$el)?"absolute":"static";var n=["top","left","width","height"];n.forEach((function(n){var r=t[n];r="top"===n?r+("static"===e.position?document.documentElement.scrollTop||document.body.scrollTop||0:Object(i["a"])()):r,e[n]=r+"px"}))}},_requestPositionUpdate:function(){var t=this;this._positionUpdateRequest&&cancelAnimationFrame(this._positionUpdateRequest),this._positionUpdateRequest=requestAnimationFrame((function(){delete t._positionUpdateRequest,t._updatePosition()}))},_onParentReady:function(t){var e=this,n=function(n){t(n),e.onDrawCallbacks.forEach((function(t){return t(e.position)})),e.onDrawCallbacks=null};this._onSelfReady((function(){e.parentOnDraw?e.parentOnDraw(n):n({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})}))},_onSelfReady:function(t){this.onCanInsertCallbacks?this.onCanInsertCallbacks.push(t):t()},_onDraw:function(t){this.onDrawCallbacks?this.onDrawCallbacks.push(t):t(this.position)}}}},"0b86":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("f2b3");function r(t,e,n){if(!t.$parent)return"-1";var r=t.$vnode,o=r.context,a=r.data.attrs._i;return n&&Object(i["e"])(r.data,"key")&&(a=a+";"+r.data.key),o&&o!==e&&o._$id?o._$id+";"+e._$id+","+a:e._$id+","+a}},"0c7c":function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},"0f55":function(t,e,n){"use strict";var i=n("55e3"),r=n.n(i);r.a},1029:function(t,e,n){"use strict";(function(t){var i=n("8af1"),r=n("18fd"),o=n("b253"),a=n("93ab");function s(t){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(){return"ios"===plus.os.name.toLowerCase()}e["a"]={name:"Editor",mixins:[i["f"],i["a"],i["d"]],props:{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}},data:function(){return{quillReady:!1}},computed:{},watch:{readOnly:function(t){if(this.quillReady){var e=this.quill;e.enable(!t),t||e.blur()}},placeholder:function(t){this.quillReady&&this.setPlaceHolder(t)}},mounted:function(){var t=this,e=[];this.showImgSize&&e.push("DisplaySize"),this.showImgToolbar&&e.push("Toolbar"),this.showImgResize&&e.push("Resize");var n="./__uniappquill.js";Object(a["a"])(window.Quill,n,(function(){if(e.length){var n="./__uniappquillimageresize.js";Object(a["a"])(window.ImageResize,n,(function(){t.initQuill(e)}))}else t.initQuill(e)}))},methods:{_textChangeHandler:function(){this.$trigger("input",{},this.getContents())},_handleSubscribe:function(e){var n,i,r,o=this,a=e.type,c=e.data,u=c.options,l=c.callbackId,h=this.quill,d=window.Quill;if(this.quillReady){switch(a){case"format":var f=u.name,p=void 0===f?"":f,v=u.value,m=void 0!==v&&v;i=h.getSelection(!0);var g=h.getFormat(i)[p]||!1;if(["bold","italic","underline","strike","ins"].includes(p))m=!g;else if("direction"===p){m=("rtl"!==m||!g)&&m;var _=h.getFormat(i).align;"rtl"!==m||_?m||"right"!==_||h.format("align",!1,d.sources.USER):h.format("align","right",d.sources.USER)}else if("indent"===p){var b="rtl"===h.getFormat(i).direction;m="+1"===m,b&&(m=!m),m=m?"+1":"-1"}else"list"===p&&(m="check"===m?"unchecked":m,g="checked"===g?"unchecked":g),m=g&&g!==(m||!1)||!g&&m?m:!g;h.format(p,m,d.sources.USER);break;case"insertDivider":i=h.getSelection(!0),h.insertText(i.index,"\n",d.sources.USER),h.insertEmbed(i.index+1,"divider",!0,d.sources.USER),h.setSelection(i.index+2,d.sources.SILENT);break;case"insertImage":i=h.getSelection(!0);var y=u.src,w=void 0===y?"":y,S=u.alt,k=void 0===S?"":S,x=u.width,C=void 0===x?"":x,T=u.height,O=void 0===T?"":T,$=u.extClass,E=void 0===$?"":$,I=u.data,A=void 0===I?{}:I,M=this.$getRealPath(w);h.insertEmbed(i.index,"image",M,d.sources.SILENT);var P=!!/^(file|blob):/.test(M)&&M;h.formatText(i.index,1,"data-local",P,d.sources.SILENT),h.formatText(i.index,1,"alt",k,d.sources.SILENT),h.formatText(i.index,1,"width",C,d.sources.SILENT),h.formatText(i.index,1,"height",O,d.sources.SILENT),h.formatText(i.index,1,"class",E,d.sources.SILENT),h.formatText(i.index,1,"data-custom",Object.keys(A).map((function(t){return"".concat(t,"=").concat(A[t])})).join("&"),d.sources.SILENT),h.setSelection(i.index+1,d.sources.SILENT),h.scrollIntoView(),setTimeout((function(){o._textChangeHandler()}),1e3);break;case"insertText":i=h.getSelection(!0);var j=u.text,L=void 0===j?"":j;h.insertText(i.index,L,d.sources.USER),h.setSelection(i.index+L.length,0,d.sources.SILENT);break;case"setContents":var N=u.delta,D=u.html;"object"===s(N)?h.setContents(N,d.sources.SILENT):"string"===typeof D?h.setContents(this.html2delta(D),d.sources.SILENT):r="contents is missing";break;case"getContents":n=this.getContents();break;case"clear":h.setContents([]);break;case"removeFormat":i=h.getSelection(!0);var R=d.import("parchment");i.length?h.removeFormat(i,d.sources.USER):Object.keys(h.getFormat(i)).forEach((function(t){R.query(t,R.Scope.INLINE)&&h.format(t,!1)}));break;case"undo":h.history.undo();break;case"redo":h.history.redo();break;case"blur":h.blur();break;case"getSelectionText":i=h.selection.savedRange,n={text:""},i&&0!==i.length&&(n.text=h.getText(i.index,i.length));break;case"scrollIntoView":h.scrollIntoView();break;default:break}this.updateStatus(i)}else r="not ready";l&&t.publishHandler("onEditorMethodCallback",{callbackId:l,data:Object.assign({},n,{errMsg:"".concat(a,":").concat(r?"fail "+r:"ok")})},this.$page.id)},setPlaceHolder:function(t){var e="data-placeholder",n=this.quill.root;n.getAttribute(e)!==t&&n.setAttribute(e,t)},initQuill:function(t){var e=this,n=window.Quill;o["a"](n);var i={toolbar:!1,readOnly:this.readOnly,placeholder:this.placeholder,modules:{}};t.length&&(n.register("modules/ImageResize",window.ImageResize.default),i.modules.ImageResize={modules:t});var r=this.quill=new n(this.$el,i),a=r.root,s=["focus","blur","input"];s.forEach((function(t){a.addEventListener(t,(function(n){var i=e.getContents();if("input"===t){if(c()){var r=(i.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],o=r&&r.replace(/\s/g,"")?"":e.placeholder;e.setPlaceHolder(o)}n.stopPropagation()}else e.$trigger(t,n,i)}))})),r.on(n.events.TEXT_CHANGE,this._textChangeHandler),r.on(n.events.SELECTION_CHANGE,this.updateStatus.bind(this)),r.on(n.events.SCROLL_OPTIMIZE,(function(){var t=r.selection.getRange()[0];e.updateStatus(t)})),r.clipboard.addMatcher(Node.ELEMENT_NODE,(function(t,n){return e.skipMatcher||(n.ops=n.ops.filter((function(t){var e=t.insert;return"string"===typeof e})).map((function(t){var e=t.insert;return{insert:e}}))),n})),this.initKeyboard(a),this.quillReady=!0,this.$trigger("ready",event,{})},getContents:function(){var t=this.quill,e=t.root["inner"+"HTML"],n=t.getText(),i=t.getContents();return{html:e,text:n,delta:i}},html2delta:function(t){var e,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],i="";Object(r["a"])(t,{start:function(t,r,o){if(n.includes(t)){e=!1;var a=r.map((function(t){var e=t.name,n=t.value;return"".concat(e,'="').concat(n,'"')})).join(" "),s="<".concat(t," ").concat(a," ").concat(o?"/":"",">");i+=s}else e=!o},end:function(t){e||(i+="</".concat(t,">"))},chars:function(t){e||(i+=t)}}),this.skipMatcher=!0;var o=this.quill.clipboard.convert(i);return this.skipMatcher=!1,o},updateStatus:function(t){var e=this,n=t?this.quill.getFormat(t):{},i=Object.keys(n);(i.length!==Object.keys(this.__status||{}).length||i.find((function(t){return n[t]!==e.__status[t]})))&&(this.__status=n,this.$trigger("statuschange",{},n))}}}}).call(this,n("501c"))},1082:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-image",t._g({},t.$listeners),[n("div",{ref:"content",style:t.style}),"widthFix"===t.mode||"heightFix"===t.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._fixSize()}}}):t._e()],1)},r=[];function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){return("undefined"===typeof navigator||o(navigator))&&"Google Inc."===navigator.vendor&&t>10&&(t=2*Math.round(t/2)),t}var s={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var t="auto",e="",n="no-repeat";switch(this.mode){case"aspectFit":t="contain",e="center center";break;case"aspectFill":t="cover",e="center center";break;case"widthFix":case"heightFix":t="100% 100%";break;case"top":e="center top";break;case"bottom":e="center bottom";break;case"center":e="center center";break;case"left":e="left center";break;case"right":e="right center";break;case"top left":e="left top";break;case"top right":e="right top";break;case"bottom left":e="left bottom";break;case"bottom right":e="right bottom";break;default:t="100% 100%",e="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":e,"background-size":t,"background-repeat":n}}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"!==e&&"heightFix"!==e||this._resetSize(),"widthFix"!==t&&"heightFix"!==t||this._fixSize()},contentPath:function(t){!t&&this.__img&&(this.__img.remove(),delete this.__img)}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var t=this.$el;if("widthFix"===this.mode){var e=t.offsetWidth;e&&(t.style.height=a(e/this.ratio)+"px")}else if("heightFix"===this.mode){var n=t.offsetHeight;n&&(t.style.width=a(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var t=this,e=this.$getRealPath(this.src);if(e){var n=this._img=this._img||new Image;n.onload=function(i){t._img=null;var r=t.originalWidth=n.width,o=t.originalHeight=n.height;t._fixSize(),t.contentPath=e,n.draggable=t.draggable,t.__img&&t.__img.remove(),t.__img=n,t.$el.appendChild(n),t.$trigger("load",i,{width:r,height:o})},n.onerror=function(e){t._img=null,t._resetData(),t.$trigger("error",e,{errMsg:"GET ".concat(t.src," 404 (Not Found)")})},n.src=e}else this._clearImage(),this._resetData()},_clearImage:function(){var t=this._img;t&&(t.onload=null,t.onerror=null,this._img=null)}}},c=s,u=(n("db18"),n("0c7c")),l=Object(u["a"])(c,i,r,!1,null,null,null);e["default"]=l.exports},"14db":function(t,e,n){"use strict";var i=n("3770"),r=n.n(i);r.a},1757:function(t,e,n){},"17fd":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hoverClass&&"none"!==t.hoverClass?n("uni-navigator",t._g({class:[t.hovering?t.hoverClass:""],on:{touchstart:t._hoverTouchStart,touchend:t._hoverTouchEnd,touchcancel:t._hoverTouchCancel,mousedown:t._hoverMousedown,mouseup:t._hoverMouseup,click:t._onClick}},t.$listeners),[t._t("default")],2):n("uni-navigator",t._g({on:{click:t._onClick}},t.$listeners),[t._t("default")],2)},r=[],o=n("8af1"),a=["navigate","redirect","switchTab","reLaunch","navigateBack"],s=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],c=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],u={name:"Navigator",mixins:[o["c"]],props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(t){return~a.indexOf(t)}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},animationType:{type:String,validator:function(t){return!t||~s.concat(c).indexOf(t)},default:""},animationDuration:{type:[String,Number],default:300}},methods:{_onClick:function(t){if("navigateBack"===this.openType||this.url){var e=parseInt(this.animationDuration);switch(this.openType){case"navigate":uni.navigateTo({url:this.url,animationType:this.animationType||"pop-in",animationDuration:e});break;case"redirect":uni.redirectTo({url:this.url,exists:this.exists});break;case"switchTab":uni.switchTab({url:this.url});break;case"reLaunch":uni.reLaunch({url:this.url});break;case"navigateBack":uni.navigateBack({delta:this.delta,animationType:this.animationType||"pop-out",animationDuration:e});break;default:break}}else console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}},l=u,h=(n("f7fd"),n("0c7c")),d=Object(h["a"])(l,i,r,!1,null,null,null);e["default"]=d.exports},"18fd":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,o=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,a=f("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=f("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"),c=f("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"),u=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=f("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),h=f("script,style");function d(t,e){var n,d,f,p=[],v=t;p.last=function(){return this[this.length-1]};while(t){if(d=!0,p.last()&&h[p.last()])t=t.replace(new RegExp("([\\s\\S]*?)</"+p.last()+"[^>]*>"),(function(t,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),e.chars&&e.chars(n),""})),_("",p.last());else if(0==t.indexOf("\x3c!--")?(n=t.indexOf("--\x3e"),n>=0&&(e.comment&&e.comment(t.substring(4,n)),t=t.substring(n+3),d=!1)):0==t.indexOf("</")?(f=t.match(r),f&&(t=t.substring(f[0].length),f[0].replace(r,_),d=!1)):0==t.indexOf("<")&&(f=t.match(i),f&&(t=t.substring(f[0].length),f[0].replace(i,g),d=!1)),d){n=t.indexOf("<");var m=n<0?t:t.substring(0,n);t=n<0?"":t.substring(n),e.chars&&e.chars(m)}if(t==v)throw"Parse Error: "+t;v=t}function g(t,n,i,r){if(n=n.toLowerCase(),s[n])while(p.last()&&c[p.last()])_("",p.last());if(u[n]&&p.last()==n&&_("",n),r=a[n]||!!r,r||p.push(n),e.start){var h=[];i.replace(o,(function(t,e){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:l[e]?e:"";h.push({name:e,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),e.start&&e.start(n,h,r)}}function _(t,n){if(n){for(i=p.length-1;i>=0;i--)if(p[i]==n)break}else var i=0;if(i>=0){for(var r=p.length-1;r>=i;r--)e.end&&e.end(p[r]);p.length=i}}_()}function f(t){for(var e={},n=t.split(","),i=0;i<n.length;i++)e[n[i]]=!0;return e}},1922:function(t,e,n){var i={"./ad/index.vue":"56e1","./cover-image/index.vue":"630f","./cover-view/index.vue":"39ba","./live-pusher/index.vue":"8c74","./map/index.vue":"7466","./picker/index.vue":"98e0","./video/index.vue":"1f56","./view/index.vue":"e9f8","./web-view/index.vue":"03df"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="1922"},1955:function(t,e,n){"use strict";n.r(e);var i=n("ba15"),r=n("8aec"),o=n("5363"),a=n("72b3"),s=n("2a0a");function c(t){var e=20,n=0,i=0;t.addEventListener("touchstart",(function(t){var e=t.changedTouches[0];n=e.clientX,i=e.clientY})),t.addEventListener("touchend",(function(t){var r=t.changedTouches[0];if(Math.abs(r.clientX-n)<e&&Math.abs(r.clientY-i)<e){var o=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(t){o[t]=r[t]})),t.target.dispatchEvent(o)}}))}var u,l,h={name:"PickerViewColumn",mixins:[i["a"],r["a"]],data:function(){return{scope:"picker-view-column-".concat(Date.now()),inited:!1,indicatorStyle:"",indicatorClass:"",indicatorHeight:34,maskStyle:"",maskClass:"",current:this.$parent.getItemValue(this),length:0}},computed:{height:function(){return this.$parent.height},maskSize:function(){return(this.height-this.indicatorHeight)/2}},watch:{indicatorHeight:function(t){this._setItemHeight(t),this.inited&&this.update()},current:function(t){this.$parent.setItemValue(this,t)},length:function(t){this.inited&&this.update(t)}},created:function(){var t=this.$parent;this.indicatorStyle=t.indicatorStyle,this.indicatorClass=t.indicatorClass,this.maskStyle=t.maskStyle,this.maskClass=t.maskClass,this.deltaY=0},mounted:function(){var t=this;this.touchtrack(this.$refs.main,"_handleTrack",!0),this.setCurrent(this.current),this.$nextTick((function(){t.init(),t.update()})),c(this.$el),Object(s["b"])();var e=this;while(e){var n=e.$options._scopeId;n&&this.$refs.indicator.setAttribute(n,""),e=e.$parent}},methods:{_setItemHeight:function(t){var e=document.createElement("style");e.innerText=".uni-picker-view-content.".concat(this.scope,">*{height: ").concat(t,"px;overflow: hidden;}"),document.head.appendChild(e)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t),Object(s["a"])({disable:!0});break;case"move":this._handleTouchMove(t),t.stopPropagation();break;case"end":case"cancel":this._handleTouchEnd(t),Object(s["a"])({disable:!1})}},_handleTap:function(t){var e=t.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),i=e-n.top-this.height/2,r=this.indicatorHeight/2;if(!(Math.abs(i)<=r)){var o=Math.ceil((Math.abs(i)-r)/this.indicatorHeight),a=i<0?-o:o,s=Math.min(this.current+a,this.length-1);this.current=s=Math.max(s,0),this._scroller.scrollTo(s*this.indicatorHeight)}}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;if(Math.abs(e)>10){this.deltaY=0;var n=Math.min(this.current+(e<0?-1:1),this.length-1);this.current=n=Math.max(n,0),this._scroller.scrollTo(n*this.indicatorHeight)}else this.deltaY=e;t.preventDefault()},setCurrent:function(t){t!==this.current&&(this.current=t,this.inited&&this.update())},init:function(){var t=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,friction:new o["a"](1e-4),spring:new a["a"](2,90,20),onSnap:function(e){isNaN(e)||e===t.current||(t.current=e)}}),this.inited=!0},update:function(){var t=this;this.$nextTick((function(){var e=Math.min(t.current,t.length-1);e=Math.max(e,0),t._scroller.update(e*t.indicatorHeight,void 0,t.indicatorHeight)}))},_resize:function(t){var e=t.height;this.indicatorHeight=e}},render:function(t){return this.length=this.$slots.default&&this.$slots.default.length||0,t("uni-picker-view-column",{on:{on:this.$listeners}},[t("div",{ref:"main",staticClass:"uni-picker-view-group",on:{wheel:this._handleWheel,click:this._handleTap}},[t("div",{ref:"mask",staticClass:"uni-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),t("div",{ref:"indicator",staticClass:"uni-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[t("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),t("div",{ref:"content",staticClass:"uni-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},d=h,f=(n("edfa"),n("0c7c")),p=Object(f["a"])(d,u,l,!1,null,null,null);e["default"]=p.exports},"1b6f":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={mounted:function(){var t=this;this._toggleListeners("subscribe",this.id),this.$watch("id",(function(e,n){t._toggleListeners("unsubscribe",n,!0),t._toggleListeners("subscribe",e,!0)}))},beforeDestroy:function(){this._toggleListeners("unsubscribe",this.id),this._contextId&&this._toggleListeners("unsubscribe",this._contextId)},methods:{_toggleListeners:function(e,n,r){r&&!n||Object(i["f"])(this._handleSubscribe)&&t[e](this.$page.id+"-"+this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase()+"-"+n,this._handleSubscribe)},_getContextInfo:function(){var t="context-".concat(this._uid);return this._contextId||(this._toggleListeners("subscribe",t),this._contextId=t),{name:this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase(),id:t,page:this.$page.id}}}}}).call(this,n("501c"))},"1c64":function(t,e,n){"use strict";var i=n("97b9"),r=n.n(i);r.a},"1c73":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i={},r={};function o(t){for(var e=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"],i=0,r=n;i<r.length;i++){var o=r[i];"orientation"!==o&&""!==t[o]&&Number(t[o])>=0&&e.push("(".concat(a(o),": ").concat(Number(t[o]),"px)")),"orientation"===o&&t[o]&&e.push("(".concat(a(o),": ").concat(t[o],")"))}return e=e.join(" and "),e}function a(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(e){var n=e.reqId,a=e.options,s=i[n]=window.matchMedia(o(a)),c=r[n]=function(e){t.publishHandler("onRequestMediaQueryObserver",{reqId:n,res:e.matches})};c(s),s.addListener(c)}function c(e){var n=e.reqId,o=r[n],a=i[n];a&&(a.removeListener(o),delete i[n],t.publishHandler("onRequestMediaQueryObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},"1e88":function(t,e,n){"use strict";function i(){return{top:0,bottom:0,left:0,right:0}}n.d(e,"a",(function(){return i}))},"1efd":function(t,e,n){"use strict";n.r(e);var i=n("e571"),r=n("a34f"),o=n("d4b6"),a={methods:{$getRealPath:function(t){return t?Object(r["a"])(t):t},$trigger:function(t,e,n){this.$emit(t,o["b"].call(this,t,e,n,this.$el,this.$el))}}},s=n("9b52"),c=[n("5408"),n("1922")],u={};n("d16b");var l=n("0094");for(var h in u=l.default||l,u)customElements.define("uni-".concat(h.toLowerCase()),u[h]);c.forEach((function(t,e){t.keys().forEach((function(e){var n=t(e),r=n.default||n;r.mixins=r.mixins?[].concat(a,r.mixins):[a],r.functional||r.mixins.push(s["a"]),r.name="VUni"+r.name,r.isReserved=!0,i["a"].component(r.name,r)}))}))},"1f56":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-video",t._g({},t.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container"}),n("div",{staticClass:"uni-video-slot"},[t._t("default")],2)])},r=[],o=n("8af1"),a=n("0aa0");function s(t){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],d=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],f=["src","duration","controls","danmuList","danmuBtn","enableDanmu","autoplay","loop","muted","objectFit","poster","direction","showProgress","initialTime","showFullscreenBtn","pageGesture","enableProgressGesture","showPlayBtn","showMuteBtn","enablePlayGesture","vslideGesture","vslideGestureInFullscreen","showCenterPlayBtn","showLoading","codec","httpCache","playStrategy","header","advanced","title"],p={name:"Video",mixins:[o["f"],a["a"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},showMuteBtn:{type:[Boolean,String],default:!1},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default:function(){return{}}},advanced:{type:Array,default:function(){return[]}},title:{type:String,default:""},isLive:{type:Boolean,default:!1}},computed:{attrs:function(){var t=this,e={};return f.forEach((function(n){var i=t.$props[n];i="src"===n?t.$getRealPath(i):i,e[n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))]=i})),e}},mounted:function(){var t=this;this._onParentReady((function(){var e=Number(t.isLive?3:t.playStrategy),n=t.video=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},t.attrs,t.position,{playStrategy:isNaN(e)?0:e}));plus.webview.currentWebview().append(n),t.hidden&&n.hide(),t.$watch("attrs",(function(){t.video&&t.video.setStyles(t.attrs)}),{deep:!0}),t.$watch("position",(function(){t.video&&t.video.setStyles(t.position)}),{deep:!0}),t.$watch("hidden",(function(e){var n=t.video;n&&(n[e?"hide":"show"](),e||n.setStyles(t.position))})),d.forEach((function(e){n.addEventListener(e,(function(n){t.$trigger(e,{},u({},n.detail))}))}))}))},beforeDestroy:function(){this.video&&this.video.close(),delete this.video},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n;if(h.includes(e)){if("object"===s(i))switch(e){case"seek":i=i.position;break;case"playbackRate":i=i.rate;break;case"requestFullScreen":i=i.direction;break}this.video&&this.video[e](i)}}}},v=p,m=(n("7f2f"),n("0c7c")),g=Object(m["a"])(v,i,r,!1,null,null,null);e["default"]=g.exports},"21c3":function(t,e,n){"use strict";var i=n("86a1"),r=n.n(i);r.a},2209:function(t){t.exports=JSON.parse('{"uni.app.quit":"鍐嶆寜涓�娆¢��鍑哄簲鐢�","uni.async.error":"杩炴帴鏈嶅姟鍣ㄨ秴鏃讹紝鐐瑰嚮灞忓箷閲嶈瘯","uni.showActionSheet.cancel":"鍙栨秷","uni.showToast.unpaired":"璇锋敞鎰� showToast 涓� hideToast 蹇呴』閰嶅浣跨敤","uni.showLoading.unpaired":"璇锋敞鎰� showLoading 涓� hideLoading 蹇呴』閰嶅浣跨敤","uni.showModal.cancel":"鍙栨秷","uni.showModal.confirm":"纭畾","uni.chooseImage.cancel":"鍙栨秷","uni.chooseImage.sourceType.album":"浠庣浉鍐岄�夋嫨","uni.chooseImage.sourceType.camera":"鎷嶆憚","uni.chooseVideo.cancel":"鍙栨秷","uni.chooseVideo.sourceType.album":"浠庣浉鍐岄�夋嫨","uni.chooseVideo.sourceType.camera":"鎷嶆憚","uni.chooseFile.notUserActivation":"鏂囦欢閫夋嫨鍣ㄥ璇濇鍙兘鍦ㄧ敱鐢ㄦ埛婵�娲绘椂鏄剧ず","uni.previewImage.cancel":"鍙栨秷","uni.previewImage.button.save":"淇濆瓨鍥惧儚","uni.previewImage.save.success":"淇濆瓨鍥惧儚鍒扮浉鍐屾垚鍔�","uni.previewImage.save.fail":"淇濆瓨鍥惧儚鍒扮浉鍐屽け璐�","uni.setClipboardData.success":"鍐呭宸插鍒�","uni.scanCode.title":"鎵爜","uni.scanCode.album":"鐩稿唽","uni.scanCode.fail":"璇嗗埆澶辫触","uni.scanCode.flash.on":"杞昏Е鐓т寒","uni.scanCode.flash.off":"杞昏Е鍏抽棴","uni.startSoterAuthentication.authContent":"鎸囩汗璇嗗埆涓�...","uni.startSoterAuthentication.waitingContent":"鏃犳硶璇嗗埆","uni.picker.done":"瀹屾垚","uni.picker.cancel":"鍙栨秷","uni.video.danmu":"寮瑰箷","uni.video.volume":"闊抽噺","uni.button.feedback.title":"闂鍙嶉","uni.button.feedback.send":"鍙戦��","uni.chooseLocation.search":"鎼滅储鍦扮偣","uni.chooseLocation.cancel":"鍙栨秷"}')},2376:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("f2b3"),r=Object.create(null);function o(t,e){r[t]=e}var a=Object(i["a"])((function(t){return r[t]()}))},"250d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-input",t._g({},t.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-input-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],ref:"placeholder",staticClass:"uni-input-placeholder",class:t.placeholderClass,style:t.placeholderStyle,domProps:{textContent:t._s(t.placeholder)}}),"checkbox"!==t.inputType||t.disabled&&t.fixColor?"radio"!==t.inputType||t.disabled&&t.fixColor?t.disabled&&t.fixColor?t._e():n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t._step,enterkeyhint:t.confirmType,pattern:"number"===t.type?"[0-9]*":null,autocomplete:t.autocomplete,inputmode:t.inputmode,type:t.inputType},domProps:{value:t.valueSync},on:{change:function(t){t.stopPropagation()},focus:t._onFocus,blur:t._onBlur,input:[function(e){e.target.composing||(t.valueSync=e.target.value)},function(e){return e.stopPropagation(),t._onInput(e)}],compositionstart:function(e){return e.stopPropagation(),t._onComposition(e)},compositionend:function(e){return e.stopPropagation(),t._onComposition(e)},compositionupdate:function(e){return e.stopPropagation(),t._onComposition(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),t._onKeyup(e))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t._step,enterkeyhint:t.confirmType,pattern:"number"===t.type?"[0-9]*":null,autocomplete:t.autocomplete,inputmode:t.inputmode,type:"radio"},domProps:{checked:t._q(t.valueSync,null)},on:{change:[function(e){t.valueSync=null},function(t){t.stopPropagation()}],focus:t._onFocus,blur:t._onBlur,input:function(e){return e.stopPropagation(),t._onInput(e)},compositionstart:function(e){return e.stopPropagation(),t._onComposition(e)},compositionend:function(e){return e.stopPropagation(),t._onComposition(e)},compositionupdate:function(e){return e.stopPropagation(),t._onComposition(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),t._onKeyup(e))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t._step,enterkeyhint:t.confirmType,pattern:"number"===t.type?"[0-9]*":null,autocomplete:t.autocomplete,inputmode:t.inputmode,type:"checkbox"},domProps:{checked:Array.isArray(t.valueSync)?t._i(t.valueSync,null)>-1:t.valueSync},on:{change:[function(e){var n=t.valueSync,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueSync=n.concat([o])):a>-1&&(t.valueSync=n.slice(0,a).concat(n.slice(a+1)))}else t.valueSync=r},function(t){t.stopPropagation()}],focus:t._onFocus,blur:t._onBlur,input:function(e){return e.stopPropagation(),t._onInput(e)},compositionstart:function(e){return e.stopPropagation(),t._onComposition(e)},compositionend:function(e){return e.stopPropagation(),t._onComposition(e)},compositionupdate:function(e){return e.stopPropagation(),t._onComposition(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),t._onKeyup(e))}}}),t.disabled&&t.fixColor?n("input",{ref:"input",staticClass:"uni-input-input",attrs:{tabindex:"-1",readonly:t.disabled,type:t.inputType,maxlength:t.maxlength,step:t._step},domProps:{value:t.valueSync},on:{focus:function(t){return t.target.blur()}}}):t._e()])])},r=[],o=n("8af1"),a=n("f2b3"),s=["text","number","idcard","digit","password","tel"],c=["number","digit"],u=["off","one-time-code"],l=["none","text","decimal","numeric","tel","search","email","url"],h={name:"Input",mixins:[o["b"]],props:{name:{type:String,default:""},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:"input-placeholder"},disabled:{type:[Boolean,String],default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},textContentType:{type:String,default:""},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:function(t){return!!~l.indexOf(t)}}},data:function(){return{wrapperHeight:0,cachedValue:""}},computed:{inputType:function(){var t="";switch(this.type){case"text":"search"===this.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~s.indexOf(this.type)?this.type:"text";break}return this.password?"password":t},_step:function(){return~c.indexOf(this.type)?this.step:""},autocomplete:function(){var t=u.indexOf(this.textContentType),e=u.indexOf(Object(a["i"])(this.textContentType)),n=-1!==t?t:-1!==e?e:0;return u[n]},showPlaceholder:function(){var t="digit"===this.type?this.cachedValue.indexOf("."):-1;return!(this.composing||this.valueSync.length||"-"===this.cachedValue||-1!==t&&t===this.cachedValue.length-1)}},watch:{maxlength:function(t){var e=this.valueSync.slice(0,parseInt(t,10));e!==this.valueSync&&(this.valueSync=e)},valueSync:function(t){"number"!==this.type||"-"===this.cachedValue&&""===t||(this.cachedValue=t)}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){if("search"===this.confirmType){var t=document.createElement("form");t.action="",t.onsubmit=function(){return!1},t.className="uni-input-form",t.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(t)}var e=this;while(e){var n=e.$options._scopeId;n&&this.$refs.placeholder.setAttribute(n,""),e=e.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyup:function(t){var e=t.target;this.$trigger("confirm",t,{value:e.value}),this.confirmHold||e.blur()},_onInput:function(t,e){var n=this,i=!1;if(!this.composing||!this.ignoreCompositionEvent){if("number"===this.inputType){var r=parseInt(this.maxlength,10);if(r>0&&t.target.value.length>r&&(this.cachedValue.length===r?(this.valueSync=this.cachedValue,i=!0):(t.target.value=t.target.value.slice(0,r),this.valueSync=t.target.value)),this.__clearCachedValue&&t.target.removeEventListener("blur",this.__clearCachedValue),t.target.validity&&!t.target.validity.valid){if((!this.cachedValue||!t.target.value)&&"-"===t.data||"-"===this.cachedValue[0]&&"deleteContentBackward"===t.inputType){this.cachedValue="-",this.valueSync="";var o=this.__clearCachedValue=function(){n.cachedValue=t.target.value=""};return void t.target.addEventListener("blur",o)}if(this.cachedValue)if(-1!==this.cachedValue.indexOf(".")){if("."!==t.data&&"deleteContentBackward"===t.inputType){var a=this.cachedValue.indexOf(".");return this.cachedValue=t.target.value=this.valueSync=this.cachedValue.slice(0,a),this.$triggerInput(t,{value:this.valueSync},e)}}else if("."===t.data)return this.cachedValue+=".",this.__clearCachedValue=function(){n.cachedValue=n.valueSync=t.target.value=n.cachedValue.slice(0,-1)},t.target.addEventListener("blur",this.__clearCachedValue),!1;return void(this.cachedValue=this.valueSync=t.target.value="-"===this.cachedValue?"":this.cachedValue)}this.cachedValue=this.valueSync}i||(this.valueSync=this.$refs.input.value,this.$triggerInput(t,{value:this.valueSync},e))}},_onComposition:function(t){switch(t.type){case"compositionstart":this.composing=!0;break;case"compositionend":this.composing&&(this.composing=!1,this._onInput(t));break}!this.ignoreCompositionEvent&&this.$trigger(t.type,t,{data:t.data})},_resetFormData:function(){this.valueSync=""},_getFormData:function(){return this.name?{value:this.valueSync,key:this.name}:{}}}},d=h,f=(n("0f55"),n("0c7c")),p=Object(f["a"])(d,i,r,!1,null,null,null);e["default"]=p.exports},2522:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i="onPageCreate"},"25ce":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-checkbox-group",t._g({},t.$listeners),[t._t("default")],2)},r=[],o=n("8af1"),a={name:"CheckboxGroup",mixins:[o["a"],o["e"]],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t){var e=[];this.checkboxList.forEach((function(t){t.checkboxChecked&&e.push(t.value)})),this.$trigger("change",t,{value:e})},_checkboxGroupUpdateHandler:function(t){if("add"===t.type)this.checkboxList.push(t.vm);else{var e=this.checkboxList.indexOf(t.vm);this.checkboxList.splice(e,1)}},_getFormData:function(){var t={};if(""!==this.name){var e=[];this.checkboxList.forEach((function(t){t.checkboxChecked&&e.push(t.value)})),t.value=e,t.key=this.name}return t}}},s=a,c=(n("0998"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"27ab":function(t,e,n){"use strict";n.r(e);var i=n("f2b3");function r(t){return c(t)||s(t)||a(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function s(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return u(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var l,h,d={name:"PickerView",props:{value:{type:Array,default:function(){return[]},validator:function(t){return Array.isArray(t)&&t.filter((function(t){return"number"===typeof t})).length===t.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:r(this.value),height:34,items:[],changeSource:""}},watch:{value:function(t,e){var n=this;(t===e||t.length!==e.length||t.findIndex((function(t,n){return t!==e[n]}))>=0)&&(this.valueSync.length=t.length,t.forEach((function(t,e){t!==n.valueSync[e]&&n.$set(n.valueSync,e,t)})))},valueSync:{deep:!0,handler:function(t,e){if(""===this.changeSource)this._valueChanged(t);else{this.changeSource="";var n=t.map((function(t){return t}));this.$emit("update:value",n),this.$trigger("change",{},{value:n})}}}},methods:{getItemIndex:function(t){return this.items.indexOf(t)},getItemValue:function(t){return this.valueSync[this.getItemIndex(t.$vnode)]||0},setItemValue:function(t,e){var n=this.getItemIndex(t.$vnode),i=this.valueSync[n];i!==e&&(this.changeSource="touch",this.$set(this.valueSync,n,e))},_valueChanged:function(t){this.items.forEach((function(e,n){e.componentInstance.setCurrent(t[n]||0)}))},_resize:function(t){var e=t.height;this.height=e}},render:function(t){var e=[];return this.$slots.default&&Object(i["d"])(this.$slots.default,t).forEach((function(t){t.componentOptions&&"v-uni-picker-view-column"===t.componentOptions.tag&&e.push(t)})),this.items=e,t("uni-picker-view",{on:this.$listeners},[t("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),t("div",{ref:"wrapper",class:"uni-picker-view-wrapper"},e)])}},f=d,p=(n("6062"),n("0c7c")),v=Object(p["a"])(f,l,h,!1,null,null,null);e["default"]=v.exports},"27c2":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-editor",t._g({staticClass:"ql-container",attrs:{id:t.id}},t.$listeners))},r=[],o=n("1029"),a=o["a"],s=(n("e298"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"27ef":function(t,e,n){"use strict";var i=n("6596"),r=n.n(i);r.a},"28e4":function(t,e,n){"use strict";function i(t){return new Promise((function(e,n){function i(){var i=new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(),"_").concat(Math.random(),"}"));i.load(t,(function(){e(i.toBase64Data()),i.clear()}),(function(t){i.clear(),n(t)}))}plus.io.resolveLocalFileSystemURL(t,(function(t){t.file((function(t){var n=new plus.io.FileReader;n.onload=function(t){e(t.target.result)},n.onerror=i,n.readAsDataURL(t)}),i)}),i)}))}function r(t){return new Promise((function(e,n){0===t.indexOf("http://")||0===t.indexOf("https://")?plus.downloader.createDownload(t,{filename:"_doc/uniapp_temp/download/"},(function(t,i){200===i?e(t.filename):n(new Error("network fail"))})).start():e(t)}))}function o(t){return r(t).then((function(t){return window.webkit&&window.webkit.messageHandlers?i(t):plus.io.convertLocalFileSystemURL(t)}))}n.d(e,"a",(function(){return o}))},"2a0a":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var i,r,o=n("f2b3");function a(){Object(o["j"])((function(){i||(i=plus.webview.currentWebview()),r||(r=(i.getStyle()||{}).pullToRefresh||{})}))}function s(t){var e=t.disable;r&&r.support&&i.setPullToRefresh(Object.assign({},r,{support:!e}))}},"2b4d":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function a(t){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s,c,u,l,h;function d(){return"object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof navigator?"undefined":a(navigator))&&"object"===("undefined"===typeof document?"undefined":a(document))?"webview":"v8"}function f(){return s.webview.currentWebview().id}n.d(e,"a",(function(){return _}));var p={};function v(t){var e=t.data&&t.data.__message;if(e&&e.__page){var n=e.__page,i=p[n];i&&i(e),e.keep||delete p[n]}}function m(t,e){"v8"===d()?u?(l&&l.close(),l=new u(f()),l.onmessage=v):h||(h=c.requireModule("globalEvent"),h.addEventListener("plusMessage",v)):window.__plusMessage=v,p[t]=e}var g=function(){function t(e){i(this,t),this.webview=e}return o(t,[{key:"sendMessage",value:function(t){var e=JSON.parse(JSON.stringify({__message:{data:t}})),n=this.webview.id;if(u){var i=new u(n);i.postMessage(e)}else s.webview.postMessageToUniNView(e,n)}},{key:"close",value:function(){this.webview.close()}}]),t}();function _(t){var e=t.context,n=void 0===e?{}:e,i=t.url,r=t.data,o=void 0===r?{}:r,l=t.style,h=void 0===l?{}:l,p=t.onMessage,v=t.onClose;s=n.plus||plus,c=n.weex||("object"===("undefined"===typeof weex?"undefined":a(weex))?weex:null),u=n.BroadcastChannel||("object"===("undefined"===typeof BroadcastChannel?"undefined":a(BroadcastChannel))?BroadcastChannel:null);var _={autoBackButton:!0,titleSize:"17px"},b="page".concat(Date.now());h=Object.assign({},h),!1!==h.titleNView&&"none"!==h.titleNView&&(h.titleNView=Object.assign(_,h.titleNView));var y={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat("string"===typeof VUE_APP_TEMPLATE_PATH?VUE_APP_TEMPLATE_PATH:"","/").concat(i,".js"),defaultFontSize:16,viewport:s.screen.resolutionWidth}};h=Object.assign(y,h);var w=s.webview.create("",b,h,{extras:{from:f(),runtime:d(),data:Object.assign({},o,{darkmode:__uniConfig.darkmode}),useGlobalEvent:!u}});return w.addEventListener("close",v),m(b,(function(t){"function"===typeof p&&p(t.data),t.keep||w.close("auto")})),w.show(h.animationType,h.animationDuration),new g(w)}},"2ceb":function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},"2df3":function(t,e,n){"use strict";var i=n("7225"),r=n.n(i);r.a},"303a":function(t,e,n){},"33ed":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c}));var i,r=n("5bb5");function o(t){t.preventDefault()}function a(t){var e=t.scrollTop,n=t.selector,i=t.duration;if("undefined"===typeof e){var r=document.querySelector(n);if(r){var o=r.getBoundingClientRect(),a=o.top;o.height;e=a+window.pageYOffset}}var s=document.documentElement,c=s.clientHeight,u=s.scrollHeight;function l(t){if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),l(t-10)}))}}e=Math.min(e,u-c),0!==i?window.scrollY!==e&&l(i):s.scrollTop=document.body.scrollTop=e}var s=0;function c(e,n){var o=n.enablePageScroll,a=n.enablePageReachBottom,c=n.onReachBottomDistance,u=n.enableTransparentTitleNView,l=!1,h=!1,d=!0;function f(){var t=document.documentElement.scrollHeight,e=window.innerHeight,n=window.scrollY,i=n>0&&t>e&&n+e+c>=t,r=Math.abs(t-s)>c;return!i||h&&!r?(!i&&h&&(h=!1),!1):(s=t,h=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===e){var s=window.pageYOffset;o&&Object(r["a"])("onPageScroll",{scrollTop:s},e),u&&t.emit("onPageScroll",{scrollTop:s}),a&&d&&(c()||(i=setTimeout(c,300))),l=!1}function c(){if(f())return Object(r["a"])("onReachBottom",{},e),d=!1,setTimeout((function(){d=!0}),350),!0}}return function(){clearTimeout(i),l||requestAnimationFrame(p),l=!0}}}).call(this,n("501c"))},3569:function(t,e,n){},3770:function(t,e,n){},3878:function(t,e){var n,i;0===String(navigator.vendor).indexOf("Apple")&&document.documentElement.addEventListener("click",(function(t){var e=450,r=44;clearTimeout(i),n&&Math.abs(t.pageX-n.pageX)<=r&&Math.abs(t.pageY-n.pageY)<=r&&t.timeStamp-n.timeStamp<=e&&t.preventDefault(),n=t,i=setTimeout((function(){n=null}),e)}))},"39aa":function(t){t.exports=JSON.parse('{"uni.app.quit":"Press back button again to exit","uni.async.error":"The connection timed out, click the screen to try again.","uni.showActionSheet.cancel":"Cancel","uni.showToast.unpaired":"Please note showToast must be paired with hideToast","uni.showLoading.unpaired":"Please note showLoading must be paired with hideLoading","uni.showModal.cancel":"Cancel","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancel","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Camera","uni.chooseVideo.cancel":"Cancel","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Camera","uni.chooseFile.notUserActivation":"File chooser dialog can only be shown with a user activation","uni.previewImage.cancel":"Cancel","uni.previewImage.button.save":"Save Image","uni.previewImage.save.success":"Saved successfully","uni.previewImage.save.fail":"Save failed","uni.setClipboardData.success":"Content copied","uni.scanCode.title":"Scan code","uni.scanCode.album":"Album","uni.scanCode.fail":"Recognition failure","uni.scanCode.flash.on":"Tap to turn light on","uni.scanCode.flash.off":"Tap to turn light off","uni.startSoterAuthentication.authContent":"Fingerprint recognition","uni.startSoterAuthentication.waitingContent":"Unrecognizable","uni.picker.done":"Done","uni.picker.cancel":"Cancel","uni.video.danmu":"Danmu","uni.video.volume":"Volume","uni.button.feedback.title":"feedback","uni.button.feedback.send":"send","uni.chooseLocation.search":"Find Place","uni.chooseLocation.cancel":"Cancel"}')},"39ba":function(t,e,n){"use strict";n.r(e);var i,r,o=n("0aa0"),a=n("5077"),s={name:"CoverView",mixins:[o["a"],a["a"]],props:{},data:function(){return{coverType:"text",coverContent:""}},render:function(t){var e="",n=this.$slots.default||[],i=n.filter((function(t){return t.tag}));return i.length?e=i:(n.forEach((function(t){t.tag||(e+=t.text||"")})),this.coverContent=e),t("uni-cover-view",{on:{on:this.$listeners}},[t("div",{ref:"container",staticClass:"uni-cover-view"},[].concat(e))])}},c=s,u=(n("4ba9"),n("0c7c")),l=Object(u["a"])(c,i,r,!1,null,null,null);e["default"]=l.exports},"3ae8":function(t,e,n){},"3cd3":function(t,e,n){},"3e5d":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return O}));var i,r,o,a=n("e571"),s=n("a20d"),c=n("2522"),u=n("9d20"),l=n("9856"),h=n("2376");function d(t){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){return b(t)||_(t,e)||m(t,e)||v()}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(t,e){if(t){if("string"===typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function b(t){if(Array.isArray(t))return t}var y=(i={},f(i,s["d"],(function(e){var n=p(e,3),i=n[0],a=n[1],s=n[2];document.title="".concat(a,"[").concat(i,"]"),Object(l["b"])(i,a),t.subscribeHandler(c["a"],s,i),o=Object(h["b"])(a),r=new u["a"](i,{version:s.version})})),f(i,s["c"],(function(t){r.addVData.apply(r,t)})),f(i,s["h"],(function(t){r.updateVData.apply(r,t)})),f(i,s["e"],(function(t){var e=p(t,3),n=e[0],i=e[1],r=e[2],a=getCurrentPages()[0];a.options=r||{},a.$vm=new o({mpType:"page",pageId:n,pagePath:i,pageQuery:r}).$mount("#app")})),i);function w(t,e,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),o=3;o<i;o++)r[o-3]=arguments[o];t.$children.forEach((function(t){var i=t.$options.name&&t.$options.name.replace(/^VUni/,"");~e.indexOf(i)&&t.$emit.apply(t,[n].concat(r)),w.apply(void 0,[t,e,n].concat(r))}))}var S=["Camera","LivePlayer","LivePusher","Map","Video","CoverView","CoverImage","Ad"];function k(){var t=getCurrentPages(),e=t[0]&&t[0].$vm;e&&w(e,S,"uni-view-update")}function x(e){var n=e.data,i=(e.options,!0);n.forEach((function(t){t[0]===s["d"]&&(i=!1),y[t[0]](t[1])})),r.flush(),a["a"].nextTick((function(){r.clearAddBatchVData(),k(),i&&t.publishHandler(s["j"])}))}function C(t,e){try{var n=this.$r[t][e];if("is"===e&&"object"===d(n)){var i=this.$options.components||{};for(var r in i){var o=i[r],a="function"===typeof o?o.options:o;if(a.__file===n.__file)return a}}return n}catch(s){}}function T(t,e){try{var n=this.$r[t][e],i=e.replace("change:","");return this[i]=n,this.$set(this.wxsProps,i,n),n}catch(r){}}function O(e){e.prototype._$g=C,e.prototype._$gc=T,t.subscribe(s["i"],x),Object.defineProperty(e.prototype,"_$vd",{get:function(){return!this.$options.isReserved&&r}}),e.mixin({beforeCreate:function(){this.$options.mpType&&(this.mpType=this.$options.mpType),this._$vd&&this._$vd.initVm(this)}})}window.addEventListener("resize",(function(){k()})),window.addEventListener("updateview",k)}).call(this,n("501c"))},"3e8c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-resize-sensor",{on:{"~animationstart":function(e){return t.update(e)}}},[n("div",{on:{scroll:t.update}},[n("div")]),n("div",{on:{scroll:t.update}},[n("div")])])},r=[],o=1e5,a={name:"ResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(t){this.$emit("resize",Object.assign({},t))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},activated:function(){this.reset()},methods:{reset:function(){var t=this.$el.firstChild;t.scrollLeft=o,t.scrollTop=o;var e=this.$el.lastChild;e.scrollLeft=o,e.scrollTop=o},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}}},s=a,c=(n("64d0"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},4126:function(t,e,n){"use strict";var i=n("a177"),r=n("be7f"),o=n("7b27"),a=n("4dc6"),s=n("8936"),c=Object.prototype.toString,u=0,l=4,h=0,d=1,f=2,p=-1,v=0,m=8;function g(t){if(!(this instanceof g))return new g(t);this.options=r.assign({level:p,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==h)throw new Error(a[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"===typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=i.deflateSetDictionary(this.strm,u),n!==h)throw new Error(a[n]);this._dict_set=!0}}function _(t,e){var n=new g(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}function b(t,e){return e=e||{},e.raw=!0,_(t,e)}function y(t,e){return e=e||{},e.gzip=!0,_(t,e)}g.prototype.push=function(t,e){var n,a,s=this.strm,p=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?l:u,"string"===typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(p),s.next_out=0,s.avail_out=p),n=i.deflate(s,a),n!==d&&n!==h)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||a!==l&&a!==f)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&n!==d);return a===l?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===h):a!==f||(this.onEnd(h),s.avail_out=0,!0)},g.prototype.onData=function(t){this.chunks.push(t)},g.prototype.onEnd=function(t){t===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=g,e.deflate=_,e.deflateRaw=b,e.gzip=y},"42f9":function(t,e,n){},"435a":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return f}));var i,r="__UNIAPP_PICKER",o="_www/__uniapppicker.html",a=null,s=!1,c=null,u=null;function l(t){function e(t){c=t,u.forEach((function(e){return e(t)})),u=null}null===c?u?u.push(t):(u=[t],plus.io.resolveLocalFileSystemURL(o,(function(){e(!0)}),(function(){e(!1)}))):t(c)}function h(){a||(a=plus.webview.getWebviewById(r),a?s=!0:(a=plus.webview.create(o,r,{popGesture:"none",background:"transparent",backButtonAutoControl:"hide",render:"always",kernel:"WKWebview",bounce:"none",cachemode:"noCache"}),window.__pickerCallback=function(){delete window.__pickerCallback,s=!0}),a.addEventListener("hide",(function(){i&&i(),i=null})))}function d(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;e.id=plus.webview.currentWebview().id,a.show("fade-in"),i=function(){n(t||{event:"cancel"})},window.__pickerCallback=function(i){var r=i.event,o=void 0===r?"cancel":r,c=i.column,u=i.value,l=void 0===u?-1:u;if("created"===o&&a)return s=!0,void a.evalJS("showPicker(".concat(JSON.stringify(e),")"));"columnchange"===o&&a&&n({event:o,column:c,value:l}),"change"!==o&&"cancel"!==o||(window.__pickerCallback=function(){},t={event:o,value:l},a.hide("fade-out",100))},s&&a.evalJS("showPicker(".concat(JSON.stringify(e),")"))}function f(t){s&&a.evalJS("showPicker(".concat(JSON.stringify(t),")"))}},4617:function(t,e,n){"use strict";(function(t){function i(t,e){return c(t)||s(t,e)||o(t,e)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function c(t){if(Array.isArray(t))return t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function d(t){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return L}));var f=function(t){return null!==t&&"object"===d(t)},p=["{","}"],v=function(){function t(){u(this,t),this._caches=Object.create(null)}return h(t,[{key:"interpolate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;if(!e)return[t];var i=this._caches[t];return i||(i=_(t,n),this._caches[t]=i),b(i,e)}}]),t}(),m=/^(?:\d)+/,g=/^(?:\w)+/;function _(t,e){var n=i(e,2),r=n[0],o=n[1],a=[],s=0,c="";while(s<t.length){var u=t[s++];if(u===r){c&&a.push({type:"text",value:c}),c="";var l="";u=t[s++];while(void 0!==u&&u!==o)l+=u,u=t[s++];var h=u===o,d=m.test(l)?"list":h&&g.test(l)?"named":"unknown";a.push({value:l,type:d})}else c+=u}return c&&a.push({type:"text",value:c}),a}function b(t,e){var n=[],i=0,r=Array.isArray(e)?"list":f(e)?"named":"unknown";if("unknown"===r)return n;while(i<t.length){var o=t[i];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===r&&n.push(e[o.value]);break;case"unknown":0;break}i++}return n}var y="zh-Hans",w="zh-Hant",S="en",k="fr",x="es",C=Object.prototype.hasOwnProperty,T=function(t,e){return C.call(t,e)},O=new v;function $(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}function E(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}function I(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),"chinese"===t)return y;if(0===t.indexOf("zh"))return t.indexOf("-hans")>-1?y:t.indexOf("-hant")>-1||$(t,["-tw","-hk","-mo","-cht"])?w:y;var n=[S,k,x];e&&Object.keys(e).length>0&&(n=Object.keys(e));var i=E(t,n);return i||void 0}}var A=function(){function t(e){var n=e.locale,i=e.fallbackLocale,r=e.messages,o=e.watcher,a=e.formater;u(this,t),this.locale=S,this.fallbackLocale=S,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=a||O,this.messages=r||{},this.setLocale(n||S),o&&this.watchLocale(o)}return h(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=I(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.messages[t];i?n?Object.assign(i,e):Object.keys(e).forEach((function(t){T(i,t)||(i[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var i=this.message;return"string"===typeof e?(e=I(e,this.messages),e&&(i=this.messages[e])):n=e,T(i,t)?this.formater.interpolate(i[t],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function M(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function P(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof t&&t.getLocale?t.getLocale():S}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var r=[e,t];t=r[0],e=r[1]}"string"!==typeof t&&(t=P()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||S);var o=new A({locale:t,fallbackLocale:n,messages:e,watcher:i}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var i=getApp().$vm;return i&&(i.$locale,n||(n=!0,M(i,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}}function L(t,e){return t.indexOf(e[0])>-1}}).call(this,n("c8ba"))},4814:function(t,e,n){},"4ba9":function(t,e,n){"use strict";var i=n("89cf"),r=n.n(i);r.a},"4da7":function(t,e,n){"use strict";n.r(e);var i,r,o={ensp:"鈥�",emsp:"鈥�",nbsp:"聽"},a={name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},methods:{_decodeHtml:function(t){return this.space&&o[this.space]&&(t=t.replace(/ /g,o[this.space])),this.decode&&(t=t.replace(/ /g,o.nbsp).replace(/ /g,o.ensp).replace(/ /g,o.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),t}},render:function(t){var e=this,n=[];return this.$slots.default&&this.$slots.default.forEach((function(i){if(i.text){var r=i.text.replace(/\\n/g,"\n"),o=r.split("\n");o.forEach((function(i,r){n.push(e._decodeHtml(i)),r!==o.length-1&&n.push(t("br"))}))}else i.componentOptions&&"v-uni-text"!==i.componentOptions.tag&&console.warn("Do not nest other components in the text component, as there may be display differences on different platforms."),n.push(i)})),t("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[t("span",{},n)])}},s=a,c=(n("c8ed"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"4dc6":function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},"4f1c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-switch",t._g({attrs:{disabled:t.disabled},on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-switch-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"switch"===t.type,expression:"type === 'switch'"}],staticClass:"uni-switch-input",class:[t.switchChecked?"uni-switch-input-checked":""],style:t.checkedColor}),n("div",{directives:[{name:"show",rawName:"v-show",value:"checkbox"===t.type,expression:"type === 'checkbox'"}],staticClass:"uni-checkbox-input",class:[t.switchChecked?"uni-checkbox-input-checked":""],style:{color:t.color}})])])},r=[],o=n("8af1"),a={name:"Switch",mixins:[o["a"],o["e"]],props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},data:function(){return{switchChecked:this.checked}},computed:{checkedColor:function(){return this.switchChecked&&this.color?{backgroundColor:this.color,borderColor:this.color}:{}}},watch:{checked:function(t){this.switchChecked=t}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},listeners:{"label-click":"_onClick","@label-click":"_onClick"},methods:{_onClick:function(t){this.disabled||(this.switchChecked=!this.switchChecked,this.$trigger("change",t,{value:this.switchChecked}))},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var t={};return""!==this.name&&(t.value=this.switchChecked,t.key=this.name),t}}},s=a,c=(n("a5ec"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"501c":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return v})),n.d(e,"off",(function(){return m})),n.d(e,"once",(function(){return g})),n.d(e,"emit",(function(){return _})),n.d(e,"subscribe",(function(){return b})),n.d(e,"unsubscribe",(function(){return y})),n.d(e,"subscribeHandler",(function(){return w})),n.d(e,"publishHandler",(function(){return f["a"]}));var i=n("e571");function r(t){var e=t.pageStyle,n=t.rootFontSize,i=document.querySelector("uni-page-body")||document.body;i.setAttribute("style",e),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)}var o=n("6bdf"),a=n("5dc1"),s=n("1c73"),c={setPageMeta:r,requestComponentInfo:o["a"],requestComponentObserver:a["b"],destroyComponentObserver:a["a"],requestMediaQueryObserver:s["b"],destroyMediaQueryObserver:s["a"]},u=n("33ed"),l=n("7107"),h=n("0516");function d(t){Object.keys(c).forEach((function(e){t(e,c[e])})),t("pageScrollTo",u["c"]),t("loadFontFace",l["a"]),Object(h["a"])(t)}var f=n("5bb5"),p=new i["a"],v=p.$on.bind(p),m=p.$off.bind(p),g=p.$once.bind(p),_=p.$emit.bind(p);function b(t,e){return v("service."+t,e)}function y(t,e){return m("service."+t,e)}function w(t,e,n){_("service."+t,e,n)}d(b)},5077:function(t,e,n){"use strict";var i=["borderRadius","borderColor","borderWidth","backgroundColor"],r=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],o=[],a={start:"left",end:"right"},s=0;e["a"]={name:"Cover",data:function(){return{style:{},parentPosition:{}}},computed:{viewPosition:function(){var t={};for(var e in this.position){var n=this.position[e],i=parseFloat(n),r=parseFloat(this.parentPosition[e]);if("top"===e||"left"===e)n=Math.max(i,r)+"px";else if("width"===e||"height"===e){var o="width"===e?"left":"top",a=parseFloat(this.parentPosition[o]),s=parseFloat(this.position[o]),c=Math.max(a-s,0),u=Math.max(s+i-(a+r),0);n=Math.max(i-c-u,0)+"px"}t[e]=n}return t},tags:function(){var t=this._getTagPosition(),e=this.style,n=[{tag:"rect",position:t,rectStyles:{color:e.backgroundColor,radius:e.borderRadius,borderColor:e.borderColor,borderWidth:e.borderWidth}}];if("image"===this.coverType)n.push({tag:"img",position:t,src:this.coverContent});else{var i=parseFloat(e.lineHeight)-parseFloat(e.fontSize),r=parseFloat(t.width)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight);r=r<0?0:r;var o=parseFloat(t.height)-parseFloat(e.paddingTop)-i/2-parseFloat(e.paddingBottom);o=o<0?0:o,n.push({tag:"font",position:{top:"".concat(parseFloat(t.top)+parseFloat(e.paddingTop)+i/2,"px"),left:"".concat(parseFloat(t.left)+parseFloat(e.paddingLeft),"px"),width:"".concat(r,"px"),height:"".concat(o,"px")},textStyles:{align:a[e.textAlign]||e.textAlign,color:e.color,decoration:"none",lineSpacing:"".concat(i,"px"),margin:"0px",overflow:e.textOverflow,size:e.fontSize,verticalAlign:"top",weight:e.fontWeight,whiteSpace:e.whiteSpace},text:this.coverContent})}return n}},created:function(){var t=this.$parent;while(!t.isNative&&t!==this.$root)t=t.$parent;this._nativeParent=t},mounted:function(){var t=this;this._onParentReady((function(e){t.parentPosition=t._nativeParent.position||e,t._updateStyle(),t._onCanInsert(),t.$watch("hidden",(function(e){t.cover&&t.cover[e?"hide":"show"]()})),t.$watch("viewPosition",(function(e){t.cover&&t.cover.setStyle(e)}),{deep:!0}),t.$watch("tags",(function(){var e=t.cover;e&&(e.reset(),e.draw(t.tags))}),{deep:!0}),t.$on("uni-view-update",t._requestStyleUpdate)}))},beforeDestroy:function(){this._nativeParent.isNative&&(this.cover&&this.cover.close(),delete this.cover)},methods:{_onCanInsert:function(){var t=this,e=this.cover=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(s++),this.viewPosition,this.tags);plus.webview.currentWebview().append(e),this.hidden&&e.hide(),e.addEventListener("click",(function(){t.$trigger("click",{},{})}))},_getTagPosition:function(){var t={};for(var e in this.position){var n=this.position[e];"top"!==e&&"left"!==e||(n=Math.min(parseFloat(n)-parseFloat(this.parentPosition[e]),0)+"px"),t[e]=n}return t},_updateStyle:function(){var t=this,e=getComputedStyle(this.$el);i.concat(r,o).forEach((function(n){t.$set(t.style,n,e[n])}))},_requestStyleUpdate:function(){var t=this;this._styleUpdateRequest&&cancelAnimationFrame(this._styleUpdateRequest),this._styleUpdateRequest=requestAnimationFrame((function(){delete t._styleUpdateRequest,t._updateStyle()}))}}}},5129:function(t,e){t.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},5363:function(t,e,n){"use strict";function i(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}n.d(e,"a",(function(){return i})),i.prototype.set=function(t,e){this._x=t,this._v=e,this._startTime=(new Date).getTime()},i.prototype.setVelocityByEnd=function(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},i.prototype.x=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._x+this._v*e/this._dragLog-this._v/this._dragLog},i.prototype.dx=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._v*e},i.prototype.done=function(){return Math.abs(this.dx())<3},i.prototype.reconfigure=function(t){var e=this.x(),n=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(e,n)},i.prototype.configuration=function(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(e){t.reconfigure(e)},min:.001,max:.1,step:.001}]}},5408:function(t,e,n){var i={"./audio/index.vue":"6150","./button/index.vue":"d3bd","./canvas/index.vue":"bacd","./checkbox-group/index.vue":"25ce","./checkbox/index.vue":"7bb3","./editor/index.vue":"27c2","./form/index.vue":"b34d","./icon/index.vue":"9a8b","./image/index.vue":"1082","./input/index.vue":"250d","./label/index.vue":"70f4","./movable-area/index.vue":"c61c","./movable-view/index.vue":"8842","./navigator/index.vue":"17fd","./picker-view-column/index.vue":"1955","./picker-view/index.vue":"27ab","./progress/index.vue":"9b1f","./radio-group/index.vue":"d5ec","./radio/index.vue":"6491","./resize-sensor/index.vue":"3e8c","./rich-text/index.vue":"b705","./scroll-view/index.vue":"f1ef","./slider/index.vue":"9f96","./swiper-item/index.vue":"9213","./swiper/index.vue":"5513","./switch/index.vue":"4f1c","./text/index.vue":"4da7","./textarea/index.vue":"5768"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="5408"},5513:function(t,e,n){"use strict";n.r(e);var i=n("ba15"),r=n("f2b3");var o,a,s={name:"Swiper",mixins:[i["a"]],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},data:function(){return{currentSync:Math.round(this.current)||0,currentItemIdSync:this.currentItemId||"",userTracking:!1,currentChangeSource:"",items:[],isNavigationAuto:!1,hideNavigation:!1,prevDisabled:!1,nextDisabled:!1}},computed:{intervalNumber:function(){var t=Number(this.interval);return isNaN(t)?5e3:t},durationNumber:function(){var t=Number(this.duration);return isNaN(t)?500:t},displayMultipleItemsNumber:function(){var t=Math.round(this.displayMultipleItems);return isNaN(t)?1:t},slidesStyle:function(){var t={};return(this.nextMargin||this.previousMargin)&&(t=this.vertical?{left:0,right:0,top:this._upx2px(this.previousMargin),bottom:this._upx2px(this.nextMargin)}:{top:0,bottom:0,left:this._upx2px(this.previousMargin),right:this._upx2px(this.nextMargin)}),t},slideFrameStyle:function(){var t=Math.abs(100/this.displayMultipleItemsNumber)+"%";return{width:this.vertical?"100%":t,height:this.vertical?t:"100%"}},swiperEnabled:function(){return this.items.length>this.displayMultipleItemsNumber},circularEnabled:function(){return this.circular&&this.swiperEnabled}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(t){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(t){this._currentCheck()},currentSync:function(t,e){this._currentChanged(t,e),this.$emit("update:current",t),this._setNavigationState()},currentItemId:function(t){this._currentCheck()},currentItemIdSync:function(t){this.$emit("update:currentItemId",t)},displayMultipleItemsNumber:function(){this._resetLayout()},navigation:{immediate:!0,handler:function(t){this.isNavigationAuto="auto"===t,this.hideNavigation=!0!==t||this.isNavigationAuto,this._navigationSwiperAddMouseEvent()}},items:function(){this._setNavigationState()},swiperEnabled:function(t){t||(this.prevDisabled=!0,this.nextDisabled=!0,this.isNavigationAuto&&(this.hideNavigation=!0))}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var t=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return t.autoplay&&!t.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout),this._navigationSwiperAddMouseEvent()},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=-1;if(this.currentItemId)for(var e=0,n=this.items;e<n.length;e++){var i=n[e].componentInstance;if(i&&i.itemId===this.currentItemId){t=e;break}}t<0&&(t=Math.round(this.current)||0),t=t<0?0:t,this.currentSync!==t&&(this.currentChangeSource="",this.currentSync=t)},_itemReady:function(t,e){t.componentInstance&&t.componentInstance._isMounted?e():(t._callbacks=t._callbacks||[],t._callbacks.push(e))},_currentChanged:function(t,e){var n=this,i=this.currentChangeSource;if(this.currentChangeSource="",!i){var r=this.items.length;this._animateViewport(t,"",this.circularEnabled&&e+(r-t)%r>r/2?1:0)}var o=this.items[t];o&&this._itemReady(o,(function(){var t=n.currentItemIdSync=o.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:t,source:i})}))},_scheduleAutoplay:function(){var t=this;function e(){t._timer=null,t.currentChangeSource="autoplay",t.circularEnabled?t.currentSync=t._normalizeCurrentValue(t.currentSync+1):t.currentSync=t.currentSync+t.displayMultipleItemsNumber<t.items.length?t.currentSync+1:0,t._animateViewport(t.currentSync,"autoplay",t.circularEnabled?1:0),t._timer=setTimeout(e,t.intervalNumber)}this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout(e,this.intervalNumber))},_cancelSchedule:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_normalizeCurrentValue:function(t){var e=this.items.length;if(!e)return-1;var n=(Math.round(t)%e+e)%e;if(this.circularEnabled){if(e<=this.displayMultipleItemsNumber)return 0}else if(n>e-this.displayMultipleItemsNumber)return e-this.displayMultipleItemsNumber;return n},_upx2px:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")})),t||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var t=this.items,e=0;e<t.length;e++)this._updateItemPos(e,e);if(this._viewportMoveRatio=1,1===this.displayMultipleItemsNumber&&t.length){var n=t[0].componentInstance.$el.getBoundingClientRect(),i=this.$refs.slideFrame.getBoundingClientRect();this._viewportMoveRatio=n.width/i.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var r=this._viewportPosition;this._viewportPosition=-2;var o=this.currentSync;o>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(r+o-this._contentTrackViewport),this._contentTrackViewport=o):(this._updateViewport(o),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(t){if(!this._invalid)for(var e=this.items,n=e.length,i=t+this.displayMultipleItemsNumber,r=0;r<n;r++){var o=e[r],a=o._position,s=Math.floor(t/n)*n+r,c=s+n,u=s-n,l=Math.max(t-(s+1),s-i,0),h=Math.max(t-(c+1),c-i,0),d=Math.max(t-(u+1),u-i,0),f=Math.min(l,h,d),p=[s,c,u][[l,h,d].indexOf(f)];a!==p&&this._updateItemPos(r,p)}},_updateItemPos:function(t,e){var n=this.vertical?"0":100*e+"%",i=this.vertical?100*e+"%":"0",r="translate("+n+", "+i+") translateZ(0)",o=this.items[t];this._itemReady(o,(function(){var t=o.componentInstance.$el;t.style["-webkit-transform"]=r,t.style.transform=r,t._position=e}))},_updateViewport:function(t){Math.floor(2*this._viewportPosition)===Math.floor(2*t)&&Math.ceil(2*this._viewportPosition)===Math.ceil(2*t)||this.circularEnabled&&this._checkCircularLayout(t);var e=this.vertical?"0":100*-t*this._viewportMoveRatio+"%",n=this.vertical?100*-t*this._viewportMoveRatio+"%":"0",i="translate("+e+", "+n+") translateZ(0)",r=this.$refs.slideFrame;if(r&&(r.style["-webkit-transform"]=i,r.style.transform=i),this._viewportPosition=t,!this._transitionStart){if(t%1===0)return;this._transitionStart=t}t-=Math.floor(this._transitionStart),t<=-(this.items.length-1)?t+=this.items.length:t>=this.items.length&&(t-=this.items.length),t=this._transitionStart%1>.5||this._transitionStart<0?t-1:t,this.$trigger("transition",{},{dx:this.vertical?0:t*r.offsetWidth,dy:this.vertical?t*r.offsetHeight:0})},_animateFrameFuncProto:function(){var t=this;if(this._animating){var e=this._animating,n=e.toPos,i=e.acc,r=e.endTime,o=e.source,a=r-Date.now();if(a<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,(function(){var e=s.componentInstance.itemId||"";t.$trigger("animationfinish",{},{current:t.currentSync,currentItemId:e,source:o})}))}else{var c=i*a*a/2,u=n+c;this._updateViewport(u),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(t,e,n){this._cancelViewportAnimation();var i=this.durationNumber,r=this.items.length,o=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;o<t;)o+=r;for(;o-r>t;)o-=r}else if(n>0){for(;o>t;)o-=r;for(;o+r<t;)o+=r;o+r-t<t-o&&(o+=r)}else{for(;o+r<t;)o+=r;for(;o-r>t;)o-=r;o+r-t<t-o&&(o+=r)}else"click"===e&&(t=t+this.displayMultipleItemsNumber-1<r?t:0);this._animating={toPos:t,acc:2*(o-t)/(i*i),endTime:Date.now()+i,source:e},this._requestedAnimation||(this._requestedAnimation=!0,this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this)))},_cancelViewportAnimation:function(){this._animating=null},_endViewportAnimation:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)},_handleTrackStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=Date.now(),this._cancelViewportAnimation()},_handleTrackMove:function(t){var e=this,n=this._contentTrackT;this._contentTrackT=Date.now();var i=this.items.length,r=i-this.displayMultipleItemsNumber;function o(t){return.5-.25/(t+.5)}function a(t,n){var i=e._contentTrackViewport+t;e._contentTrackSpeed=.6*e._contentTrackSpeed+.4*n,e.circularEnabled||(i<0||i>r)&&(i<0?i=-o(-i):i>r&&(i=r+o(i-r)),e._contentTrackSpeed=0),e._updateViewport(i)}var s=this._contentTrackT-n||1;this.vertical?a(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/s):a(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/s)},_handleTrackEnd:function(t){this.userTracking=!1;var e=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!t&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*e);var i=this._normalizeCurrentValue(this._viewportPosition+n);t?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=i,this._animateViewport(i,"touch",0!==n?n:0===i&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(t){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===t.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===t.detail.state)return this._handleTrackEnd(!1);if("cancel"===t.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var e=Math.abs(t.detail.dx),n=Math.abs(t.detail.dy);if((e>=n&&this.vertical||e<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(t.detail),!1}}},_onSwiperDotClick:function(t){this._animateViewport(this.currentSync=t,this.currentChangeSource="click",this.circularEnabled?1:0)},_navigationClick:function(t,e,n){if(t.stopPropagation(),!n){var i=this.items.length,r=this.currentSync;switch(e){case"prev":r--,r<0&&this.circularEnabled&&(r=i-1);break;case"next":r++,r>=i&&this.circularEnabled&&(r=0);break}this._onSwiperDotClick(r)}},_navigationMouseMove:function(t){var e=this;clearTimeout(this.hideNavigationTimer);var n=t.clientX,i=t.clientY,r=this.$refs.slidesWrapper.getBoundingClientRect(),o=r.left,a=r.right,s=r.top,c=r.bottom,u=r.width,l=r.height,h=!1;h=this.vertical?!(i-s<l/3||c-i<l/3):!(n-o<u/3||a-n<u/3),h?this.hideNavigationTimer=setTimeout((function(){e.hideNavigation=h}),300):this.hideNavigation=h},_navigationMouseOut:function(){this.hideNavigation=!0},_navigationSwiperAddMouseEvent:function(){},_navigationHover:function(t,e){var n=t.currentTarget;n&&(n.style.backgroundColor="over"===e?this.navigationActiveColor:"")},_setNavigationState:function(){var t=this.items.length,e=!this.circularEnabled;this.prevDisabled=0===this.currentSync&&e,this.nextDisabled=this.currentSync===t-1&&e||e&&this.currentSync+this.displayMultipleItemsNumber>=t}},render:function(t){var e=this,n=[],i=[];this.$slots.default&&Object(r["d"])(this.$slots.default,t).forEach((function(t){t.componentOptions&&"v-uni-swiper-item"===t.componentOptions.tag&&i.push(t)}));for(var o=function(i,r){var o=e.currentSync;n.push(t("div",{on:{click:function(){return e._onSwiperDotClick(i)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":i<o+e.displayMultipleItemsNumber&&i>=o||i<o+e.displayMultipleItemsNumber-r},style:{background:i===o?e.indicatorActiveColor:e.indicatorColor}}))},a=0,s=i.length;a<s;a++)o(a,s);this.items=i;var c=[t("div",{ref:"slides",style:this.slidesStyle,class:"uni-swiper-slides"},[t("div",{ref:"slideFrame",class:"uni-swiper-slide-frame",style:this.slideFrameStyle},i)])];return this.indicatorDots&&c.push(t("div",{ref:"slidesDots",class:["uni-swiper-dots",this.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},n)),t("uni-swiper",{on:this.$listeners},[t("div",{ref:"slidesWrapper",class:"uni-swiper-wrapper"},c)])}},c=s,u=(n("1c64"),n("0c7c")),l=Object(u["a"])(c,o,a,!1,null,null,null);e["default"]=l.exports},"55e3":function(t,e,n){},5676:function(t,e,n){"use strict";var i=n("303a"),r=n.n(i);r.a},"56e1":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-ad",t._g(t._b({},"uni-ad",t.attrs,!1),t.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container"})])},r=[],o=n("c492"),a=o["a"],s=(n("27ef"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},5768:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-textarea",t._g({},t.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-textarea-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composing||t.valueSync.length),expression:"!(composing || valueSync.length)"}],ref:"placeholder",staticClass:"uni-textarea-placeholder",class:t.placeholderClass,style:t.placeholderStyle,domProps:{textContent:t._s(t.placeholder)}}),n("div",{ref:"line",staticClass:"uni-textarea-line",domProps:{textContent:t._s(" ")}}),n("div",{staticClass:"uni-textarea-compute"},[t._l(t.valueCompute,(function(e,i){return n("div",{key:i,domProps:{textContent:t._s(e.trim()?e:".")}})})),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],2),t.disabled&&t.fixColor?t._e():n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":t.fixMargin},style:{"overflow-y":t.autoHeight?"hidden":"auto"},attrs:{disabled:t.disabled,maxlength:t.maxlengthNumber,enterkeyhint:t.confirmType,inputmode:t.inputmode},domProps:{value:t.valueSync},on:{change:function(t){t.stopPropagation()},compositionstart:function(e){return e.stopPropagation(),t._onComposition(e)},compositionend:function(e){return e.stopPropagation(),t._onComposition(e)},compositionupdate:function(e){return e.stopPropagation(),t._onComposition(e)},input:[function(e){e.target.composing||(t.valueSync=e.target.value)},function(e){return e.stopPropagation(),t._onInput(e)}],focus:t._onFocus,blur:t._onBlur,"&touchstart":function(e){return t._onTouchstart(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t._onKeyUpEnter(e)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t._onKeyDownEnter(e)}}}),t._v(" "),t.disabled&&t.fixColor?n("textarea",{ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":t.fixMargin},style:{"overflow-y":t.autoHeight?"hidden":"auto"},attrs:{tabindex:"-1",readonly:t.disabled,maxlength:t.maxlengthNumber},domProps:{value:t.valueSync},on:{focus:function(t){return t.target.blur()}}}):t._e()])])},r=[],o=n("8af1"),a="(prefers-color-scheme: dark)",s=["done","go","next","search","send"],c=["none","text","decimal","numeric","tel","search","email","url"],u={name:"Textarea",mixins:[o["b"]],props:{name:{type:String,default:""},maxlength:{type:[Number,String],default:140},placeholder:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},placeholderClass:{type:String,default:"textarea-placeholder"},placeholderStyle:{type:String,default:""},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:function(t){return s.concat("return").includes(t)}},inputmode:{type:String,default:void 0,validator:function(t){return!!~c.indexOf(t)}}},data:function(){return{valueComposition:"",height:0,focusChangeSource:"",fixMargin:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(a).media!==a}},computed:{maxlengthNumber:function(){var t=Number(this.maxlength);return isNaN(t)?140:t},valueCompute:function(){return(this.composing?this.valueComposition:this.valueSync).split("\n")},isDone:function(){return s.includes(this.confirmType)}},watch:{focus:function(t){t&&(this.focusChangeSource="focus")},height:function(t){var e=parseFloat(getComputedStyle(this.$el).lineHeight);isNaN(e)&&(e=this.$refs.line.offsetHeight);var n=Math.round(t/e);this.$trigger("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:n}),this.autoHeight&&(this.$el.style.height="auto",this.$refs.wrapper.style.height=this.height+"px")}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){this._resize({height:this.$refs.sensor.$el.offsetHeight});var t=this;while(t){var e=t.$options._scopeId;e&&this.$refs.placeholder.setAttribute(e,""),t=t.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyDownEnter:function(t){this.isDone&&t.preventDefault()},_onKeyUpEnter:function(t){this.isDone&&(this._confirm(t),!this.confirmHold&&this.$refs.textarea.blur())},_onComposition:function(t){switch(t.type){case"compositionstart":this.composing=!0;break;case"compositionend":this.composing&&(this.composing=!1,this._onInput(t));break}!this.ignoreCompositionEvent&&this.$trigger(t.type,t,{data:t.data})},_confirm:function(t){this.$trigger("confirm",t,{value:this.valueSync})},_linechange:function(t){this.$trigger("linechange",t,{value:this.valueSync})},_onTouchstart:function(){this.focusChangeSource="touch"},_resize:function(t){var e=t.height;this.height=e},_onInput:function(t,e){this.composing&&this.ignoreCompositionEvent?this.valueComposition=t.target.value:(this.ignoreCompositionEvent||(this.valueSync=this.$refs.textarea.value),this.$triggerInput(t,{value:this.valueSync,cursor:this.$refs.textarea.selectionEnd},e))},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}},l=u,h=(n("9400"),n("0c7c")),d=Object(h["a"])(l,i,r,!1,null,null,null);e["default"]=d.exports},"599d":function(t,e,n){"use strict";n.d(e,"h",(function(){return l})),n.d(e,"d",(function(){return d["b"]})),n.d(e,"c",(function(){return d["a"]})),n.d(e,"e",(function(){return d["c"]})),n.d(e,"f",(function(){return d["d"]})),n.d(e,"g",(function(){return d["e"]})),n.d(e,"b",(function(){return j})),n.d(e,"a",(function(){return L}));var i=1e-4,r=750,o=!1,a=0,s=0;function c(){var t=uni.getSystemInfoSync(),e=t.platform,n=t.pixelRatio,i=t.windowWidth;a=i,s=n,o="ios"===e}function u(t,e){return t=Number(t),isNaN(t)?e:t}function l(t,e){if(0===a&&c(),t=Number(t),0===t)return 0;var n=__uniConfig.globalStyle||__uniConfig.window||{},l=u(n.rpxCalcMaxDeviceWidth,960),h=u(n.rpxCalcBaseDeviceWidth,375),d=u(n.rpxCalcIncludeWidth,750),f=e||a;f=t===d||f<=l?f:h;var p=t/r*f;return p<0&&(p=-p),p=Math.floor(p+i),0===p&&(p=1!==s&&o?.5:1),t<0?-p:p}var h,d=n("f2b8"),f=n("1e88"),p=n("d8c8"),v=n.n(p);function m(){var t=window.screen,e=window.devicePixelRatio,n=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,i=n&&90===Math.abs(window.orientation),r=n?Math[i?"max":"min"](t.width,t.height):t.width,o=n?Math[i?"min":"max"](t.height,t.width):t.height,a=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r,s=window.innerHeight,c=v.a.top,u={left:v.a.left,right:a-v.a.right,top:v.a.top,bottom:s-v.a.bottom,width:a-v.a.left-v.a.right,height:s-v.a.top-v.a.bottom},l=Object(f["a"])(),h=l.top,d=l.bottom;return s-=h,s-=d,{windowTop:h,windowBottom:d,windowWidth:a,windowHeight:s,pixelRatio:e,screenWidth:r,screenHeight:o,statusBarHeight:c,safeArea:u,safeAreaInsets:{top:v.a.top,right:v.a.right,bottom:v.a.bottom,left:v.a.left},screenTop:o-s}}var g=function(){return h=h||plus.device.uuid,h},_=n("f2b3");function b(){var t=navigator.userAgent,e=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1,n=t.indexOf("Edge")>-1&&!e,i=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(e){var r=new RegExp("MSIE (\\d+\\.\\d+);");r.test(t);var o=parseFloat(RegExp.$1);return o>6?o:6}return n?-1:i?11:-1}function y(){if(!0!==__uniConfig.darkmode)return Object(_["h"])(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(t){return"light"}}var w=navigator.userAgent,S=/android/i.test(w),k=/iphone|ipad|ipod/i.test(w),x=w.match(/Windows NT ([\d|\d.\d]*)/i),C=/Macintosh|Mac/i.test(w),T=/Linux|X11/i.test(w),O=C&&navigator.maxTouchPoints>0;function $(){var t,e,n,i=navigator.language,r="phone";if(k){t="iOS";var o=w.match(/OS\s([\w_]+)\slike/);o&&(e=o[1].replace(/_/g,"."));var a=w.match(/\(([a-zA-Z]+);/);a&&(n=a[1])}else if(S){t="Android";var s=w.match(/Android[\s/]([\w\.]+)[;\s]/);s&&(e=s[1]);for(var c=w.match(/\((.+?)\)/),u=c?c[1].split(";"):w.split(" "),l=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],h=0;h<u.length;h++){var d=u[h];if(d.indexOf("Build")>0){n=d.split("Build")[0].trim();break}for(var f=void 0,p=0;p<l.length;p++)if(l[p].test(d)){f=!0;break}if(!f){n=d.trim();break}}}else if(O)n="iPad",t="iOS",e="function"===typeof window.BigInt?"14.0":"13.0",r="pad";else if(x||C||T){n="PC",t="PC",r="pc";var v=w.match(/\((.+?)\)/)[1];if(x){switch(t="Windows",e="",x[1]){case"5.1":e="XP";break;case"6.0":e="Vista";break;case"6.1":e="7";break;case"6.2":e="8";break;case"6.3":e="8.1";break;case"10.0":e="10";break}var m=v.match(/[Win|WOW]([\d]+)/);m&&(e+=" x".concat(m[1]))}else C?(t="macOS",e=v.match(/Mac OS X (.+)/)||"",e&&(e=e[1].replace(/_/g,"."),-1!==e.indexOf(";")&&(e=e.split(";")[0]))):T&&(t="Linux",e=v.match(/Linux (.*)/)||"",e&&(e=e[1],-1!==e.indexOf(";")&&(e=e.split(";")[0])))}else t="Other",e="0",r="unknown";var g="".concat(t," ").concat(e),_=t.toLocaleLowerCase(),$="",E=String(b());if("-1"!==E)$="IE";else for(var I=["Version","Firefox","Chrome","Edge{0,1}"],A=["Safari","Firefox","Chrome","Edge"],M=0;M<I.length;M++){var P=I[M],j=new RegExp("(".concat(P,")/(\\S*)\\b"));j.test(w)&&($=A[M],E=w.match(j)[2])}var L="portrait",N="undefined"===typeof window.screen.orientation?window.orientation:window.screen.orientation.angle;return L=90===Math.abs(N)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:L,model:n,system:g,platform:_,browserName:$.toLocaleLowerCase(),browserVersion:E,language:i,deviceType:r,ua:w,osname:t,osversion:e,theme:y()}}var E={},I=!0;function A(){I&&(E=$())}function M(){A();var t=E,e=t.deviceBrand,n=t.deviceModel,i=t.brand,r=t.model,o=t.platform,a=t.system,s=t.deviceOrientation,c=t.deviceType;return{brand:i,deviceBrand:e,deviceModel:n,devicePixelRatio:window.devicePixelRatio,deviceId:g(),deviceOrientation:s,deviceType:c,model:r,platform:o,system:a}}function P(){A();var t=E,e=t.theme,n=t.language,i=t.browserName,r=t.browserVersion,o=uni&&uni.getLocale?uni.getLocale():n;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:o,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:i,hostVersion:r,hostTheme:e,hostLanguage:n,language:n,SDKVersion:"",theme:e,version:""}}function j(){I=!0,A(),I=!1;var t=m(),e=M(),n=P();I=!0;var i=E,r=i.ua,o=i.browserName,a=i.browserVersion,s=i.osname,c=i.osversion,u=Object.assign({},t,e,n,{browserName:o,browserVersion:a,fontSizeSetting:n.hostFontSizeSetting,osName:s.toLocaleLowerCase(),osVersion:c,osLanguage:void 0,osTheme:void 0,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,ua:r});return delete u.screenTop,delete u.enableDebug,__uniConfig.darkmode||delete u.theme,Object(_["k"])(u)}function L(t){return"css.var"!==t||window.CSS&&window.CSS.supports&&window.CSS.supports("--a:0")}},"5a23":function(t,e,n){"use strict";var i,r,o,a,s,c,u=n("f2b3"),l=n("5cf8");function h(){}function d(t,e){Object(u["j"])((function(){var n="adjustResize",i="adjustPan",r="nothing",o=plus.webview.currentWebview(),a=c||o.getStyle()||{},s={mode:e||a.softinputMode===n?n:t.adjustPosition?i:r,position:{top:0,height:0}};if(s.mode===i){var u=t.$el.getBoundingClientRect();s.position.top=u.top,s.position.height=u.height+(Number(t.cursorSpacing)||0)}o.setSoftinputTemporary(s)}))}function f(t){"auto"!==t.showConfirmBar?Object(u["j"])((function(){var e=plus.webview.currentWebview(),n=e.getStyle()||{},i=n.softinputNavBar,r="none"!==i;r!==t.showConfirmBar?(t.__softinputNavBar=i||"auto",e.setStyle({softinputNavBar:t.showConfirmBar?"auto":"none"})):delete t.__softinputNavBar})):delete t.__softinputNavBar}function p(t){var e=t.__softinputNavBar;e&&Object(u["j"])((function(){var t=plus.webview.currentWebview();t.setStyle({softinputNavBar:e})}))}Object(u["j"])((function(){r="android"===plus.os.name.toLowerCase(),o=plus.os.version})),document.addEventListener("keyboardchange",(function(t){a=t.height,s&&s()}),!1),e["a"]={name:"Keyboard",mixins:[l["a"]],props:{cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},computed:{isApple:function(){return 0===String(navigator.vendor).indexOf("Apple")}},directives:{keyboard:{inserted:function(t,e,n){n.context.initKeyboard(t)}}},methods:{initKeyboard:function(t){var e,n=this,l=function(){n.$trigger("keyboardheightchange",{},{height:a,duration:.25}),e&&0===a&&d(n),n.autoBlur&&e&&0===a&&(r||parseInt(o)>=13)&&document.activeElement.blur()};t.addEventListener("focus",(function(){e=!0,clearTimeout(i),document.addEventListener("click",h,!1),s=l,a&&n.$trigger("keyboardheightchange",{},{height:a,duration:0}),f(n),d(n)})),r&&t.addEventListener("click",(function(){!n.disabled&&e&&0===a&&d(n)})),r||(parseInt(o)<12&&t.addEventListener("touchstart",(function(){n.disabled||e||d(n)})),parseFloat(o)>=14.6&&!c&&Object(u["j"])((function(){var t=plus.webview.currentWebview();c=t.getStyle()||{}})));var v=function(){document.removeEventListener("click",h,!1),s=null,a&&n.$trigger("keyboardheightchange",{},{height:0,duration:0}),p(n),r&&(i=setTimeout((function(){d(n,!0)}),300)),n.isApple&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};t.addEventListener("blur",(function(){n.isApple&&t.blur(),e=!1,v()}))}}}},"5ab3":function(t,e,n){"use strict";var i=n("907b"),r=n.n(i);r.a},"5abe":function(t,e){(function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},i.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(window,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach((function(i){var o=i.element,a=u(o),s=this._rootContainsTarget(o),c=i.entry,l=t&&s&&this._computeTargetAndRootIntersection(o,e),h=i.entry=new n({time:r(),target:o,boundingClientRect:a,rootBounds:e,intersectionRect:l});c?t&&s?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){var i=u(e),r=i,o=d(e),a=!1;while(!a){var s=null,l=1==o.nodeType?window.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==t?(a=!0,s=n):o!=t.body&&o!=t.documentElement&&"visible"!=l.overflow&&(s=u(o)),s&&(r=c(s,r),!r))break;o=d(o)}return r}},i.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,i=t.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var o=this.thresholds[r];if(o==n||o==i||o<n!==o<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)},i.prototype._rootContainsTarget=function(e){return h(this.root||t,e)},i.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},i.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=n}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||l(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,i=this.intersectionRect,r=i.width*i.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function i(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=o(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function r(){return window.performance&&performance.now&&performance.now()}function o(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}function a(t,e,n,i){"function"==typeof t.addEventListener?t.addEventListener(e,n,i||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function s(t,e,n,i){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,i||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t,e){var n=Math.max(t.top,e.top),i=Math.min(t.bottom,e.bottom),r=Math.max(t.left,e.left),o=Math.min(t.right,e.right),a=o-r,s=i-n;return a>=0&&s>=0&&{top:n,bottom:i,left:r,right:o,width:a,height:s}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t,e){var n=e;while(n){if(n==t)return!0;n=d(n)}return!1}function d(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}})()},"5bb5":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("a20d"),r=n("f2b3");function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r["j"])((function(){var n=plus.webview.currentWebview().id;plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:t,data:e,pageId:n}},i["a"])}))}},"5bb5a":function(t,e,n){},"5bf9":function(t,e,n){},"5c85":function(t,e,n){},"5cf8":function(t,e,n){"use strict";function i(t,e){for(var n=this.$children,r=n.length,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];for(var c=0;c<r;c++){var u=n[c],l=u.$options.name&&u.$options.name.substr(4);if(~t.indexOf(l))return u.$emit.apply(u,[e].concat(a)),!1;if(!1===i.apply(u,[t,e].concat([a])))return!1}}e["a"]={methods:{$dispatch:function(t,e){"string"===typeof t&&(t=[t]);var n=this.$parent||this.$root,i=n.$options.name&&n.$options.name.substr(4);while(n&&(!i||!~t.indexOf(i)))n=n.$parent,n&&(i=n.$options.name&&n.$options.name.substr(4));if(n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];n.$emit.apply(n,[e].concat(o))}},$broadcast:function(t,e){"string"===typeof t&&(t=[t]);for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(this,[t,e].concat(r))}}}},"5dc1":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));n("5abe");var i=n("85b6"),r=n("db8e");function o(t){return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function a(t){var e=t.intersectionRatio,n=t.boundingClientRect,i=n.height,r=n.width,o=t.intersectionRect,a=o.height,s=o.width;return 0!==e?e:a===i?s/r:a/i}var s={};function c(e,n){var c,u=e.reqId,l=e.component,h=e.options;if(n._isVue)c=n;else{var d=getCurrentPages(),f=d.find((function(t){return t.$page.id===n}));if(!f)throw new Error("Not Found锛歅age[".concat(n,"]"));c=f.$vm}var p=Object(r["b"])(l,c),v=h.relativeToSelector?p.querySelector(h.relativeToSelector):null,m=s[u]=new IntersectionObserver((function(e,n){e.forEach((function(e){t.publishHandler("onRequestComponentObserver",{reqId:u,res:{intersectionRatio:a(e),intersectionRect:o(e.intersectionRect),boundingClientRect:o(e.boundingClientRect),relativeRect:o(e.rootBounds),time:Date.now(),dataset:Object(i["a"])(e.target),id:e.target.id}})}))}),{root:v,rootMargin:h.rootMargin,threshold:h.thresholds});if(h.observeAll)m.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(p.querySelectorAll(h.selector),(function(t){t?m.observe(t):console.warn("Node ".concat(h.selector," is not found. Intersection observer will not trigger."))}));else{m.USE_MUTATION_OBSERVER=!1;var g=p.querySelector(h.selector);if(!g)return void console.warn("Node ".concat(h.selector," is not found. Intersection observer will not trigger."));m.observe(g)}}function u(e){var n=e.reqId,i=s[n];i&&(i.disconnect(),delete s[n],t.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},6062:function(t,e,n){"use strict";var i=n("3569"),r=n.n(i);r.a},"60f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=0;function r(t,e,n){var r="".concat(Date.now()).concat(i++),o=t.split(","),a=o[0],s=o[1],c=(a.match(/data:image\/(\S+?);/)||[null,"png"])[1].replace("jpeg","jpg"),u="".concat(r,".").concat(c),l="".concat(e,"/").concat(u),h=e.indexOf("/"),d=e.substring(0,h),f=e.substring(h+1);plus.io.resolveLocalFileSystemURL(d,(function(t){t.getDirectory(f,{create:!0,exclusive:!1},(function(t){t.getFile(u,{create:!0,exclusive:!1},(function(t){t.createWriter((function(t){t.onwrite=function(){n(null,l)},t.onerror=n,t.seek(0),t.writeAsBinary(s)}),n)}),n)}),n)}),n)}},6150:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-audio",t._g({attrs:{id:t.id,controls:!!t.controls}},t.$listeners),[n("audio",{ref:"audio",staticStyle:{display:"none"},attrs:{loop:t.loop}}),n("div",{staticClass:"uni-audio-default"},[n("div",{staticClass:"uni-audio-left",style:"background-image: url("+t.$getRealPath(t.poster)+");"},[n("div",{staticClass:"uni-audio-button",class:{play:!t.playing,pause:t.playing},on:{click:t.trigger}})]),n("div",{staticClass:"uni-audio-right"},[n("div",{staticClass:"uni-audio-time"},[t._v(" "+t._s(t.currentTime)+" ")]),n("div",{staticClass:"uni-audio-info"},[n("div",{staticClass:"uni-audio-name"},[t._v(" "+t._s(t.name)+" ")]),n("div",{staticClass:"uni-audio-author"},[t._v(" "+t._s(t.author)+" ")])])])])])},r=[],o=n("8af1"),a={name:"Audio",mixins:[o["f"]],props:{id:{type:String,default:""},src:{type:String,default:""},loop:{type:[Boolean,String],default:!1},controls:{type:[Boolean,String],default:!1},poster:{type:String,default:""},name:{type:String,default:""},author:{type:String,default:""}},data:function(){return{playing:!1,currentTime:this.getTime(0)}},watch:{src:function(t){this.$refs.audio&&(this.$refs.audio.src=this.$getRealPath(t))}},mounted:function(){var t=this,e=this.$refs.audio;e.addEventListener("error",(function(e){t.playing=!1,t.$trigger("error",e,{})})),e.addEventListener("play",(function(e){t.playing=!0,t.$trigger("play",e,{})})),e.addEventListener("pause",(function(e){t.playing=!1,t.$trigger("pause",e,{})})),e.addEventListener("ended",(function(e){t.playing=!1,t.$trigger("ended",e,{})})),e.addEventListener("timeupdate",(function(n){var i=e.currentTime;t.currentTime=t.getTime(i);var r=e.duration;t.$trigger("timeupdate",n,{currentTime:i,duration:r})})),e.src=this.$getRealPath(this.src)},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n,r=this.$refs.audio;switch(e){case"setSrc":r.src=this.$getRealPath(i.src),this.$emit("update:src",i.src);break;case"play":r.play();break;case"pause":r.pause();break;case"seek":r.currentTime=i.position;break}},trigger:function(){this.playing?this.$refs.audio.pause():this.$refs.audio.play()},getTime:function(t){var e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=Math.floor(t%3600%60);e=(e<10?"0":"")+e,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==e&&(r=e+":"+r),r}}},s=a,c=(n("02b5"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"61c2":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("f2b3"),r=n("8af1");function o(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function a(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(t,e){e.constructor.options.props&&e.constructor.options.props.name&&e.constructor.options.props.value||(e.constructor.options.props||(e.constructor.options.props={}),e.constructor.options.props.name||(e.constructor.options.props.name=t.props.name={type:String}),e.constructor.options.props.value||(e.constructor.options.props.value=t.props.value={type:null})),t.propsData||(t.propsData={});var n=e.$vnode;if(n&&n.data&&n.data.attrs&&(Object(i["e"])(n.data.attrs,"name")&&(t.propsData.name=n.data.attrs.name),Object(i["e"])(n.data.attrs,"value")&&(t.propsData.value=n.data.attrs.value)),!e.constructor.options.methods||!e.constructor.options.methods._getFormData){e.constructor.options.methods||(e.constructor.options.methods={}),t.methods||(t.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(e.constructor.options.methods,s),Object.assign(t.methods,s),Object.assign(e.constructor.options.methods,r["a"].methods),Object.assign(t.methods,r["a"].methods);var c=t.created;e.constructor.options.created=t.created=c?[].concat(o,c):[o];var u=t.beforeDestroy;e.constructor.options.beforeDestroy=t.beforeDestroy=u?[].concat(a,u):[a]}}};function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=c({},s.name,s);function l(t,e){t.behaviors.forEach((function(n){var i=u[n];i&&i.init(t,e)}))}},"630f":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-cover-image",t._g({style:t.imageInfo,attrs:{src:t.src}},t.$listeners),[n("div",{ref:"container",staticClass:"uni-cover-image"})])},r=[],o=n("0aa0"),a=n("5077"),s=n("f2b3"),c="_doc/uniapp_temp",u="".concat(c,"_").concat(Date.now()),l={name:"CoverImage",mixins:[o["a"],a["a"]],props:{src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}},data:function(){return{coverType:"image",coverContent:"",imageInfo:{}}},watch:{src:function(){this.loadImage()}},created:function(){this.loadImage()},beforeDestroy:function(){var t=this.downloaTask;t&&t.state<4&&t.abort()},methods:{loadImage:function(){var t=this;this.coverContent="",this.imageInfo=this.autoSize?{width:0,height:0}:{};var e=this.src?this.$getRealPath(this.src):"";0===e.indexOf("http://")||0===e.indexOf("https://")?Object(s["j"])((function(){t.downloaTask=plus.downloader.createDownload(e,{filename:u+"/download/"},(function(e,n){200===n?t.getImageInfo(e.filename):t.$trigger("error",{},{errMsg:"error"})})).start()})):e&&this.getImageInfo(e)},getImageInfo:function(t){var e=this;this.coverContent=t,Object(s["j"])((function(){plus.io.getImageInfo({src:t,success:function(t){var n=t.width,i=t.height;e.autoSize&&(e.imageInfo={width:"".concat(n,"px"),height:"".concat(i,"px")},e._isMounted&&e._requestPositionUpdate()),e.$trigger("load",{},{width:n,height:i})},fail:function(){e.$trigger("error",{},{errMsg:"error"})}})}))}}},h=l,d=(n("21c3"),n("0c7c")),f=Object(d["a"])(h,i,r,!1,null,null,null);e["default"]=f.exports},"634a":function(t,e,n){"use strict";(function(t,i){var r=n("e571"),o=(n("7522"),n("2376")),a=n("9856"),s=n("7d0f"),c=n("599d");n.d(e,"a",(function(){return c["a"]})),n.d(e,"b",(function(){return c["b"]})),n.d(e,"c",(function(){return c["c"]})),n.d(e,"d",(function(){return c["d"]})),n.d(e,"e",(function(){return c["e"]})),n.d(e,"f",(function(){return c["f"]})),n.d(e,"g",(function(){return c["g"]})),n.d(e,"h",(function(){return c["h"]})),i.UniViewJSBridge={subscribe:t.subscribe,publishHandler:t.publishHandler,subscribeHandler:t.subscribeHandler},i.getCurrentPages=a["a"],i.__definePage=o["a"],i.Vue=r["a"],r["a"].use(s["a"]),n("1efd")}).call(this,n("501c"),n("c8ba"))},6428:function(t,e,n){"use strict";var i=n("687b"),r=n.n(i);r.a},"646c":function(t,e,n){"use strict";(function(t){var i=n("a20d"),r=n("65a8"),o=!1,a=function(t){var e=t.webviewStyles,n=t.htmlId,i=t.updateTitle,a=plus.webview.currentWebview(),s=Object.assign({"uni-app":"none",isUniH5:!0,contentAdjust:!1},e),c=a.getTitleNView();c&&(plus.navigator.isImmersedStatusbar()?s.top=r["a"]+plus.navigator.getStatusbarHeight():s.top=r["a"],s.bottom=0),o=plus.webview.create("",n,s),c&&o.addEventListener("titleUpdate",(function(){if(i){var t=o.getTitle();a.setStyle({titleNView:{titleText:t&&"null"!==t?t:" "}})}})),plus.webview.currentWebview().append(o)},s=function(t){var e=t.src,n=t.webviewStyles,i=e||"";i&&(/^(http|https):\/\//.test(i)&&n.progress&&o.setStyle({progress:{color:n.progress.color}}),o.loadURL(i))},c=function(){plus.webview.currentWebview().remove(o),o.close("none"),o=!1};e["a"]={name:"WebView",props:{src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default:function(){return{}}}},watch:{src:function(t,e){o&&s({src:this.$getRealPath(t),webviewStyles:this.webviewStyles})}},mounted:function(){this.htmlId=i["k"]+this.$page.id,a({webviewStyles:this.webviewStyles,htmlId:this.htmlId,updateTitle:this.updateTitle}),s({src:this.$getRealPath(this.src),webviewStyles:this.webviewStyles}),t.publishHandler(i["l"],{},this.$page.id)},beforeDestroy:function(){c(),t.publishHandler(i["n"],{},this.$page.id)}}}).call(this,n("501c"))},6491:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio",t._g({attrs:{disabled:t.disabled},on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-radio-wrapper"},[n("div",{staticClass:"uni-radio-input",class:{"uni-radio-input-checked":t.radioChecked,"uni-radio-input-disabled":t.disabled},style:t.radioChecked?t.checkedStyle:""}),t._t("default")],2)])},r=[],o=n("8af1"),a={name:"Radio",mixins:[o["a"],o["e"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{checkedStyle:function(){return this.disabled?"background-color: #E1E1E1;border-color: ##D1D1D1;":"background-color: ".concat(this.color,";border-color: ").concat(this.color,";")}},watch:{checked:function(t){this.radioChecked=t},value:function(t){this.radioValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",t,this))},_resetFormData:function(){this.radioChecked=this.min}}},s=a,c=(n("c96e"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"64d0":function(t,e,n){"use strict";var i=n("1757"),r=n.n(i);r.a},6596:function(t,e,n){},"65a8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=44,r="onThemeChange"},6730:function(t,e,n){"use strict";var i=n("b18e"),r=n.n(i);r.a},6853:function(t,e,n){"use strict";var i=n("be7f"),r=15,o=852,a=592,s=0,c=1,u=2,l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,p,v,m,g,_){var b,y,w,S,k,x,C,T,O,$=_.bits,E=0,I=0,A=0,M=0,P=0,j=0,L=0,N=0,D=0,R=0,B=null,F=0,z=new i.Buf16(r+1),V=new i.Buf16(r+1),H=null,Y=0;for(E=0;E<=r;E++)z[E]=0;for(I=0;I<p;I++)z[e[n+I]]++;for(P=$,M=r;M>=1;M--)if(0!==z[M])break;if(P>M&&(P=M),0===M)return v[m++]=20971520,v[m++]=20971520,_.bits=1,0;for(A=1;A<M;A++)if(0!==z[A])break;for(P<A&&(P=A),N=1,E=1;E<=r;E++)if(N<<=1,N-=z[E],N<0)return-1;if(N>0&&(t===s||1!==M))return-1;for(V[1]=0,E=1;E<r;E++)V[E+1]=V[E]+z[E];for(I=0;I<p;I++)0!==e[n+I]&&(g[V[e[n+I]]++]=I);if(t===s?(B=H=g,x=19):t===c?(B=l,F-=257,H=h,Y-=257,x=256):(B=d,H=f,x=-1),R=0,I=0,E=A,k=m,j=P,L=0,w=-1,D=1<<P,S=D-1,t===c&&D>o||t===u&&D>a)return 1;for(;;){C=E-L,g[I]<x?(T=0,O=g[I]):g[I]>x?(T=H[Y+g[I]],O=B[F+g[I]]):(T=96,O=0),b=1<<E-L,y=1<<j,A=y;do{y-=b,v[k+(R>>L)+y]=C<<24|T<<16|O|0}while(0!==y);b=1<<E-1;while(R&b)b>>=1;if(0!==b?(R&=b-1,R+=b):R=0,I++,0===--z[E]){if(E===M)break;E=e[n+g[I]]}if(E>P&&(R&S)!==w){0===L&&(L=P),k+=A,j=E-L,N=1<<j;while(j+L<M){if(N-=z[j+L],N<=0)break;j++,N<<=1}if(D+=1<<j,t===c&&D>o||t===u&&D>a)return 1;w=R&S,v[w]=P<<24|j<<16|k-m|0}}return 0!==R&&(v[k+R]=E-L<<24|64<<16|0),_.bits=P,0}},"687b":function(t,e,n){},"6bdf":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var i=n("85b6"),r=n("f2b3"),o=n("1e88"),a=n("db8e");function s(t){var e={};if(t.id&&(e.id=""),t.dataset&&(e.dataset={}),t.rect&&(e.left=0,e.right=0,e.top=0,e.bottom=0),t.size&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight),t.scrollOffset){var n=document.documentElement,i=document.body;e.scrollLeft=n.scrollLeft||i.scrollLeft||0,e.scrollTop=n.scrollTop||i.scrollTop||0,e.scrollHeight=n.scrollHeight||i.scrollHeight||0,e.scrollWidth=n.scrollWidth||i.scrollWidth||0}return e}function c(t,e){var n={},a=Object(o["a"])(),s=a.top;if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(i["a"])(t)),e.rect||e.size){var c=t.getBoundingClientRect();e.rect&&(n.left=c.left,n.right=c.right,n.top=c.top-s,n.bottom=c.bottom-s),e.size&&(n.width=c.width,n.height=c.height)}if(Array.isArray(e.properties)){var u=t.__vue__&&t.__vue__.$props;u&&e.properties.forEach((function(t){"string"===typeof t&&(t=Object(r["b"])(t),null!=u[t]&&(n[t]=u[t]))}))}if(e.scrollOffset&&("UNI-SCROLL-VIEW"===t.tagName&&t.__vue__&&t.__vue__.getScrollPosition?Object.assign(n,t.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(e.computedStyle)){var l=getComputedStyle(t);e.computedStyle.forEach((function(t){n[t]=l[t]}))}return e.context&&t.__vue__&&t.__vue__._getContextInfo&&(n.context=t.__vue__._getContextInfo()),n}function u(t,e,n,i,r){var o=Object(a["a"])(Object(a["b"])(e,t));if(!o||o&&8===o.nodeType)return i?null:[];if(i){var s=o.matches(n)?o:o.querySelector(n);return s?c(s,r):null}var u=[],l=o.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,(function(t){return c(t,r)}))),o.matches(n)&&u.unshift(c(o,r)),u}function l(e,n){var i,r=e.reqId,o=e.reqs;if(n._isVue)i=n;else{var a=getCurrentPages(),c=a.find((function(t){return t.$page.id===n}));if(!c)throw new Error("Not Found锛歅age[".concat(n,"]"));i=c.$vm}var l=[];o.forEach((function(t){var e=t.component,n=t.selector,r=t.single,o=t.fields;0===e?l.push(s(o)):l.push(u(i,e,n,r,o))})),t.publishHandler("onRequestComponentInfo",{reqId:r,res:l})}}).call(this,n("501c"))},"70f4":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-label",t._g({class:{"uni-label-pointer":t.pointer},on:{click:t._onClick}},t.$listeners),[t._t("default")],2)},r=[],o=n("897e"),a=o["a"],s=(n("6730"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},7107:function(t,e,n){"use strict";(function(t){function i(e){var n=e.options,i=e.callbackId,r=n.family,o=n.source,a=n.desc,s=void 0===a?{}:a,c=document.fonts;if(c){var u=new FontFace(r,o,s);u.load().then((function(){c.add(u),t.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})})).catch((function(e){t.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:fail ".concat(e)}})}))}else{var l=document.createElement("style");l.innerText='@font-face{font-family:"'.concat(r,'";src:').concat(o,";font-style:").concat(s.style,";font-weight:").concat(s.weight,";font-stretch:").concat(s.stretch,";unicode-range:").concat(s.unicodeRange,";font-variant:").concat(s.variant,";font-feature-settings:").concat(s.featureSettings,";}"),document.head.appendChild(l),t.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})}}n.d(e,"a",(function(){return i}))}).call(this,n("501c"))},"717e":function(t,e,n){"use strict";var i=n("9e6e"),r=n("be7f"),o=n("7b27"),a=n("2ceb"),s=n("4dc6"),c=n("8936"),u=n("8013"),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new u,i.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"===typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=i.inflateSetDictionary(this.strm,e.dictionary),n!==a.Z_OK)))throw new Error(s[n])}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}function f(t,e){return e=e||{},e.raw=!0,d(t,e)}h.prototype.push=function(t,e){var n,s,c,u,h,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,v=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"===typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new r.Buf8(f),d.next_out=0,d.avail_out=f),n=i.inflate(d,a.Z_NO_FLUSH),n===a.Z_NEED_DICT&&p&&(n=i.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===v&&(n=a.Z_OK,v=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(d.output,d.next_out),u=d.next_out-c,h=o.buf2string(d.output,c),d.next_out=u,d.avail_out=f-u,u&&r.arraySet(d.output,d.output,c,u,0),this.onData(h)):this.onData(r.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(v=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=d,e.inflateRaw=f,e.ungzip=d},7225:function(t,e,n){},"72b3":function(t,e,n){"use strict";function i(t,e,n){return t>e-n&&t<e+n}function r(t,e){return i(t,0,e)}function o(t,e,n){this._m=t,this._k=e,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}n.d(e,"a",(function(){return o})),o.prototype._solve=function(t,e){var n=this._c,i=this._m,r=this._k,o=n*n-4*i*r;if(0===o){var a=-n/(2*i),s=t,c=e/(a*t);return{x:function(t){return(s+c*t)*Math.pow(Math.E,a*t)},dx:function(t){var e=Math.pow(Math.E,a*t);return a*(s+c*t)*e+c*e}}}if(o>0){var u=(-n-Math.sqrt(o))/(2*i),l=(-n+Math.sqrt(o))/(2*i),h=(e-u*t)/(l-u),d=t-h;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+h*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+h*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,v=t,m=(e-p*t)/f;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(f*t)+m*Math.sin(f*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(f*t),i=Math.sin(f*t);return e*(m*f*n-v*f*i)+p*e*(m*i+v*n)}}},o.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},o.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},o.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!r(e,.4)){e=e||0;var i=this._endPosition;this._solution&&(r(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),r(e,.4)&&(e=0),r(i,.4)&&(i=0),i+=this._endPosition),this._solution&&r(i-t,.4)&&r(e,.4)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},o.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},o.prototype.done=function(t){return t||(t=(new Date).getTime()),i(this.x(),this._endPosition,.4)&&r(this.dx(),.4)},o.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},o.prototype.springConstant=function(){return this._k},o.prototype.damping=function(){return this._c},o.prototype.configuration=function(){function t(t,e){t.reconfigure(1,e,t.damping())}function e(t,e){t.reconfigure(1,t.springConstant(),e)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:e.bind(this,this),min:1,max:500}]}},7466:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-map",t._g({},t.$listeners),[n("div",{ref:"container",staticClass:"uni-map-container"}),t._l(t.mapControls,(function(e,i){return n("v-uni-cover-image",{key:i,style:e.position,attrs:{src:e.iconPath,"auto-size":""},on:{click:function(n){return t.controlclick(e)}}})})),n("div",{staticClass:"uni-map-slot"},[t._t("default")],2)],2)},r=[],o=n("a521"),a=o["a"],s=(n("a252"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},7522:function(t,e,n){},"76a8":function(t,e,n){"use strict";var i=n("3cd3"),r=n.n(i);r.a},"77a8":function(t,e,n){},7822:function(t,e,n){},"7b27":function(t,e,n){"use strict";var i=n("be7f"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,r,o,a,s=t.length,c=0;for(o=0;o<s;o++)n=t.charCodeAt(o),55296===(64512&n)&&o+1<s&&(r=t.charCodeAt(o+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(c),a=0,o=0;a<c;o++)n=t.charCodeAt(o),55296===(64512&n)&&o+1<s&&(r=t.charCodeAt(o+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,i,r,o,s=e||t.length,u=new Array(2*s);for(i=0,n=0;n<s;)if(r=t[n++],r<128)u[i++]=r;else if(o=a[r],o>4)u[i++]=65533,n+=o-1;else{r&=2===o?31:3===o?15:7;while(o>1&&n<s)r=r<<6|63&t[n++],o--;o>1?u[i++]=65533:r<65536?u[i++]=r:(r-=65536,u[i++]=55296|r>>10&1023,u[i++]=56320|1023&r)}return c(u,i)},e.utf8border=function(t,e){var n;e=e||t.length,e>t.length&&(e=t.length),n=e-1;while(n>=0&&128===(192&t[n]))n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},"7bb3":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-checkbox",t._g({attrs:{disabled:t.disabled},on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-checkbox-wrapper"},[n("div",{staticClass:"uni-checkbox-input",class:{"uni-checkbox-input-checked":t.checkboxChecked,"uni-checkbox-input-disabled":t.disabled},style:{color:t.color}}),t._t("default")],2)])},r=[],o=n("8af1"),a={name:"Checkbox",mixins:[o["a"],o["e"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},data:function(){return{checkboxChecked:this.checked,checkboxValue:this.value}},watch:{checked:function(t){this.checkboxChecked=t},value:function(t){this.checkboxValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||(this.checkboxChecked=!this.checkboxChecked,this.$dispatch("CheckboxGroup","uni-checkbox-change",t))},_resetFormData:function(){this.checkboxChecked=!1}}},s=a,c=(n("f53a"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"7c2b":function(t,e,n){"use strict";var i=n("e804"),r=n.n(i);r.a},"7d0f":function(t,e,n){"use strict";var i=n("5129"),r=n.n(i),o=n("85b6"),a=n("f2b3");function s(t){t.config.errorHandler=function(e,n,i){var r=Object(a["n"])(e);t.util.warn("Error in ".concat(i,': "').concat("Error"===r?e.toString():e,'"'),n);var s="function"===typeof getApp&&getApp();s&&Object(o["b"])(s.$options,"onError")?s.__call_hook("onError",e):console.error(e)};var e=t.config.isReservedTag;t.config.isReservedTag=function(t){return-1!==r.a.indexOf(t)||e(t)},t.config.ignoredElements=r.a;var n=t.config.getTagNamespace,i=["switch","image","text","view"];t.config.getTagNamespace=function(t){return!~i.indexOf(t)&&n(t)}}var c=n("8c15"),u=n("a34f"),l=n("3e5d");function h(t){Object.defineProperty(t.prototype,"$page",{get:function(){return getCurrentPages()[0].$page}}),t.prototype.$handleVModelEvent=function(t,e){l["b"].sendUIEvent(this._$id,t,{type:"input",target:{value:e}})},t.prototype.$handleViewEvent=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stop&&t.stopPropagation(),e.prevent&&t.preventDefault();var n=this.$handleEvent(t),i=this._$id,r=t.$origCurrentTarget||t.currentTarget,o=(r===this.$el&&"page"!==this.$options.mpType?"r-":"")+n.options.nid;if("undefined"===typeof o)return console.error("[".concat(i,"] nid not found"));delete n._processed,delete n.mp,delete n.preventDefault,delete n.stopPropagation,delete n.options,delete n.$origCurrentTarget,l["b"].sendUIEvent(i,o,n)}}n("3878"),e["a"]={install:function(t,e){t.prototype._$getRealPath=u["a"],s(t),c["a"].install(t,e),Object(l["a"])(t),h(t)}}},"7e6a":function(t,e,n){"use strict";var i=n("5bf9"),r=n.n(i);r.a},"7eb1":function(t,e,n){"use strict";var i=30,r=12;t.exports=function(t,e){var n,o,a,s,c,u,l,h,d,f,p,v,m,g,_,b,y,w,S,k,x,C,T,O,$;n=t.state,o=t.next_in,O=t.input,a=o+(t.avail_in-5),s=t.next_out,$=t.output,c=s-(e-t.avail_out),u=s+(t.avail_out-257),l=n.dmax,h=n.wsize,d=n.whave,f=n.wnext,p=n.window,v=n.hold,m=n.bits,g=n.lencode,_=n.distcode,b=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{m<15&&(v+=O[o++]<<m,m+=8,v+=O[o++]<<m,m+=8),w=g[v&b];e:for(;;){if(S=w>>>24,v>>>=S,m-=S,S=w>>>16&255,0===S)$[s++]=65535&w;else{if(!(16&S)){if(0===(64&S)){w=g[(65535&w)+(v&(1<<S)-1)];continue e}if(32&S){n.mode=r;break t}t.msg="invalid literal/length code",n.mode=i;break t}k=65535&w,S&=15,S&&(m<S&&(v+=O[o++]<<m,m+=8),k+=v&(1<<S)-1,v>>>=S,m-=S),m<15&&(v+=O[o++]<<m,m+=8,v+=O[o++]<<m,m+=8),w=_[v&y];n:for(;;){if(S=w>>>24,v>>>=S,m-=S,S=w>>>16&255,!(16&S)){if(0===(64&S)){w=_[(65535&w)+(v&(1<<S)-1)];continue n}t.msg="invalid distance code",n.mode=i;break t}if(x=65535&w,S&=15,m<S&&(v+=O[o++]<<m,m+=8,m<S&&(v+=O[o++]<<m,m+=8)),x+=v&(1<<S)-1,x>l){t.msg="invalid distance too far back",n.mode=i;break t}if(v>>>=S,m-=S,S=s-c,x>S){if(S=x-S,S>d&&n.sane){t.msg="invalid distance too far back",n.mode=i;break t}if(C=0,T=p,0===f){if(C+=h-S,S<k){k-=S;do{$[s++]=p[C++]}while(--S);C=s-x,T=$}}else if(f<S){if(C+=h+f-S,S-=f,S<k){k-=S;do{$[s++]=p[C++]}while(--S);if(C=0,f<k){S=f,k-=S;do{$[s++]=p[C++]}while(--S);C=s-x,T=$}}}else if(C+=f-S,S<k){k-=S;do{$[s++]=p[C++]}while(--S);C=s-x,T=$}while(k>2)$[s++]=T[C++],$[s++]=T[C++],$[s++]=T[C++],k-=3;k&&($[s++]=T[C++],k>1&&($[s++]=T[C++]))}else{C=s-x;do{$[s++]=$[C++],$[s++]=$[C++],$[s++]=$[C++],k-=3}while(k>2);k&&($[s++]=$[C++],k>1&&($[s++]=$[C++]))}break}}break}}while(o<a&&s<u);k=m>>3,o-=k,m-=k<<3,v&=(1<<m)-1,t.next_in=o,t.next_out=s,t.avail_in=o<a?a-o+5:5-(o-a),t.avail_out=s<u?u-s+257:257-(s-u),n.hold=v,n.bits=m}},"7f2f":function(t,e,n){"use strict";var i=n("77a8"),r=n.n(i);r.a},8013:function(t,e,n){"use strict";function i(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=i},"80e5":function(t){t.exports=JSON.parse('{"uni.app.quit":"Pulse otra vez para salir","uni.async.error":"Se agot贸 el tiempo de conexi贸n, haga clic en la pantalla para volver a intentarlo.","uni.showActionSheet.cancel":"Cancelar","uni.showToast.unpaired":"Tenga en cuenta que showToast debe estar emparejado con hideToast","uni.showLoading.unpaired":"Tenga en cuenta que showLoading debe estar emparejado con hideLoading","uni.showModal.cancel":"Cancelar","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancelar","uni.chooseImage.sourceType.album":"脕lbum","uni.chooseImage.sourceType.camera":"C谩mara","uni.chooseVideo.cancel":"Cancelar","uni.chooseVideo.sourceType.album":"脕lbum","uni.chooseVideo.sourceType.camera":"C谩mara","uni.chooseFile.notUserActivation":"El cuadro de di谩logo del selector de archivos solo se puede mostrar con la activaci贸n del usuario","uni.previewImage.cancel":"Cancelar","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Guardado exitosamente","uni.previewImage.save.fail":"Error al guardar","uni.setClipboardData.success":"Contenido copiado","uni.scanCode.title":"C贸digo de escaneo","uni.scanCode.album":"脕lbum","uni.scanCode.fail":"脡chec de la reconnaissance","uni.scanCode.flash.on":"Toque para encender la luz","uni.scanCode.flash.off":"Toque para apagar la luz","uni.startSoterAuthentication.authContent":"Reconocimiento de huellas dactilares","uni.startSoterAuthentication.waitingContent":"Irreconocible","uni.picker.done":"OK","uni.picker.cancel":"Cancelar","uni.video.danmu":"Danmu","uni.video.volume":"Volumen","uni.button.feedback.title":"realimentaci贸n","uni.button.feedback.send":"enviar","uni.chooseLocation.search":"Encontrar","uni.chooseLocation.cancel":"Cancelar"}')},"85b6":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var i=n("f2b3");function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t[e])&&t[e].length}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return e}function a(t){var e={},n=t.__vue__;function r(t,n){var r=t.$attrs;for(var o in r)if(o.startsWith("data-")){var a=Object(i["b"])(o.substr(5).toLowerCase()),s=r[o];e[a]=n?s:e[a]||s}}if(n){var a=n;while(a&&a.$el===t)r(a),a=a.$children[0];var s=n.$parent;while(s&&s.$el===t)r(s,!0),s=s.$parent}else e=Object.assign({},t.dataset,t.__uniDataset);return o(e)}},"86a1":function(t,e,n){},8842:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-movable-view",t._g({},t.$listeners),[n("v-uni-resize-sensor",{on:{resize:t.setParent}}),t._t("default")],2)},r=[],o=n("ba15");function a(t,e,n){return t>e-n&&t<e+n}function s(t,e){return a(t,0,e)}function c(){}function u(t,e){this._m=t,this._f=1e3*e,this._startTime=0,this._v=0}function l(t,e,n){this._m=t,this._k=e,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function h(t,e,n){this._springX=new l(t,e,n),this._springY=new l(t,e,n),this._springScale=new l(t,e,n),this._startTime=0}c.prototype.x=function(t){return Math.sqrt(t)},u.prototype.setV=function(t,e){var n=Math.pow(Math.pow(t,2)+Math.pow(e,2),.5);this._x_v=t,this._y_v=e,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(t/this._x_a)||Math.abs(e/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},u.prototype.setS=function(t,e){this._x_s=t,this._y_s=e},u.prototype.s=function(t){void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t,this._lastDt=t);var e=this._x_v*t+.5*this._x_a*Math.pow(t,2)+this._x_s,n=this._y_v*t+.5*this._y_a*Math.pow(t,2)+this._y_s;return(this._x_a>0&&e<this._endPositionX||this._x_a<0&&e>this._endPositionX)&&(e=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:e,y:n}},u.prototype.ds=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t),{dx:this._x_v+this._x_a*t,dy:this._y_v+this._y_a*t}},u.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},u.prototype.dt=function(){return-this._x_v/this._x_a},u.prototype.done=function(){var t=a(this.s().x,this._endPositionX)||a(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},u.prototype.setEnd=function(t,e){this._endPositionX=t,this._endPositionY=e},u.prototype.reconfigure=function(t,e){this._m=t,this._f=1e3*e},l.prototype._solve=function(t,e){var n=this._c,i=this._m,r=this._k,o=n*n-4*i*r;if(0===o){var a=-n/(2*i),s=t,c=e/(a*t);return{x:function(t){return(s+c*t)*Math.pow(Math.E,a*t)},dx:function(t){var e=Math.pow(Math.E,a*t);return a*(s+c*t)*e+c*e}}}if(o>0){var u=(-n-Math.sqrt(o))/(2*i),l=(-n+Math.sqrt(o))/(2*i),h=(e-u*t)/(l-u),d=t-h;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+h*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+h*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,v=t,m=(e-p*t)/f;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(f*t)+m*Math.sin(f*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(f*t),i=Math.sin(f*t);return e*(m*f*n-v*f*i)+p*e*(m*i+v*n)}}},l.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},l.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},l.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!s(e,.1)){e=e||0;var i=this._endPosition;this._solution&&(s(e,.1)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),s(e,.1)&&(e=0),s(i,.1)&&(i=0),i+=this._endPosition),this._solution&&s(i-t,.1)&&s(e,.1)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},l.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},l.prototype.done=function(t){return t||(t=(new Date).getTime()),a(this.x(),this._endPosition,.1)&&s(this.dx(),.1)},l.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},l.prototype.springConstant=function(){return this._k},l.prototype.damping=function(){return this._c},l.prototype.configuration=function(){function t(t,e){t.reconfigure(1,e,t.damping())}function e(t,e){t.reconfigure(1,t.springConstant(),e)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:e.bind(this,this),min:1,max:500}]},h.prototype.setEnd=function(t,e,n,i){var r=(new Date).getTime();this._springX.setEnd(t,i,r),this._springY.setEnd(e,i,r),this._springScale.setEnd(n,i,r),this._startTime=r},h.prototype.x=function(){var t=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(t),y:this._springY.x(t),scale:this._springScale.x(t)}},h.prototype.done=function(){var t=(new Date).getTime();return this._springX.done(t)&&this._springY.done(t)&&this._springScale.done(t)},h.prototype.reconfigure=function(t,e,n){this._springX.reconfigure(t,e,n),this._springY.reconfigure(t,e,n),this._springScale.reconfigure(t,e,n)};var d=n("2a0a"),f=!1;function p(t){f||(f=!0,requestAnimationFrame((function(){t(),f=!1})))}function v(t,e){if(t===e)return 0;var n=t.offsetLeft;return t.offsetParent?n+=v(t.offsetParent,e):0}function m(t,e){if(t===e)return 0;var n=t.offsetTop;return t.offsetParent?n+=m(t.offsetParent,e):0}function g(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)}function _(t,e,n){var i=function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)},r={id:0,cancelled:!1};function o(e,n,i,r){if(!e||!e.cancelled){i(n);var a=t.done();a||e.cancelled||(e.id=requestAnimationFrame(o.bind(null,e,n,i,r))),a&&r&&r(n)}}return o(r,t,e,n),{cancel:i.bind(null,r),model:t}}var b={name:"MovableView",mixins:[o["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var t=Number(this.damping);return isNaN(t)?20:t},frictionNumber:function(){var t=Number(this.friction);return isNaN(t)||t<=0?2:t},scaleMinNumber:function(){var t=Number(this.scaleMin);return isNaN(t)?.5:t},scaleMaxNumber:function(){var t=Number(this.scaleMax);return isNaN(t)?10:t},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(t){this.xSync=this._getPx(t)},xSync:function(t){this._setX(t)},y:function(t){this.ySync=this._getPx(t)},ySync:function(t){this._setY(t)},disabled:function(){this.__handleTouchStart()},scaleValue:function(t){this.scaleValueSync=Number(t)||0},scaleValueSync:function(t){this._setScaleValue(t)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new h(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new u(1,this.frictionNumber),this._declineX=new c,this._declineY=new c,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",Object(d["b"])()},methods:{_getPx:function(t){return/\d+[ur]px$/i.test(t)?uni.upx2px(parseFloat(t)):Number(t)||0},_setX:function(t){if(this.xMove){if(t+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(t+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return t},_setY:function(t){if(this.yMove){if(t+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,t+this._scaleOffset.y,this._scale)}return t},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(t){return!!this.scale&&(t=this._adjustScale(t),this._updateScale(t,!0),this._updateOldScale(t),t)},__handleTouchStart:function(){this._isScaling||this.disabled||(Object(d["a"])({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(t){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=t.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dx/t.detail.dy)<1)),this.yMove&&(i=t.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(i),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dy/t.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(t.detail.timeStamp),!this._checkCanMove){t.preventDefault();var r="touch";n<this.minX?this.outOfBounds?(r="touch-out-of-bounds",n=this.minX-this._declineX.x(this.minX-n)):n=this.minX:n>this.maxX&&(this.outOfBounds?(r="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),i<this.minY?this.outOfBounds?(r="touch-out-of-bounds",i=this.minY-this._declineY.x(this.minY-i)):i=this.minY:i>this.maxY&&(this.outOfBounds?(r="touch-out-of-bounds",i=this.maxY+this._declineY.x(i-this.maxY)):i=this.maxY),p((function(){e._setTransform(n,i,e._scale,r)}))}}},__handleTouchEnd:function(){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(d["a"])({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,r=this._friction.delta().y,o=i+this._translateX,a=r+this._translateY;o<this.minX?(o=this.minX,a=this._translateY+(this.minX-this._translateX)*r/i):o>this.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*r/i),a<this.minY?(a=this.minY,o=this._translateX+(this.minY-this._translateY)*i/r):a>this.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*i/r),this._friction.setEnd(o,a),this._FA=_(this._friction,(function(){var e=t._friction.s(),n=e.x,i=e.y;t._setTransform(n,i,t._scale,"friction")}),(function(){t._FA.cancel()}))}},_onTrack:function(t){switch(t.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(t);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(t,e){var n=!1;return t>this.maxX?(t=this.maxX,n=!0):t<this.minX&&(t=this.minX,n=!0),e>this.maxY?(e=this.maxY,n=!0):e<this.minY&&(e=this.minY,n=!0),{x:t,y:e,outOfBounds:n}},setParent:function(){if(this.$parent._isMounted){this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel();var t=this.scale?this.scaleValueSync:1;this._updateOffset(),this._updateWH(t),this._updateBoundary(),this._translateX=this.xSync+this._scaleOffset.x,this._translateY=this.ySync+this._scaleOffset.y;var e=this._getLimitXY(this._translateX,this._translateY),n=e.x,i=e.y;this._setTransform(n,i,t,"",!0),this._updateOldScale(t)}},_updateOffset:function(){this._offset.x=v(this.$el,this.$parent.$el),this._offset.y=m(this.$el,this.$parent.$el)},_updateWH:function(t){t=t||this._scale,t=this._adjustScale(t);var e=this.$el.getBoundingClientRect();this.height=e.height/this._scale,this.width=e.width/this._scale;var n=this.height*t,i=this.width*t;this._scaleOffset.x=(i-this.width)/2,this._scaleOffset.y=(n-this.height)/2},_updateBoundary:function(){var t=0-this._offset.x+this._scaleOffset.x,e=this.$parent.width-this.width-this._offset.x-this._scaleOffset.x;this.minX=Math.min(t,e),this.maxX=Math.max(t,e);var n=0-this._offset.y+this._scaleOffset.y,i=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,i),this.maxY=Math.max(n,i)},_beginScale:function(){this._isScaling=!0},_endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},_setScale:function(t){this.scale&&(t=this._oldScale*t,this._beginScale(),this._updateScale(t))},_updateScale:function(t,e){var n=this;if(this.scale){t=this._adjustScale(t),this._updateWH(t),this._updateBoundary();var i=this._getLimitXY(this._translateX,this._translateY),r=i.x,o=i.y;e?this._animationTo(r,o,t,"",!0,!0):p((function(){n._setTransform(r,o,t,"",!0,!0)}))}},_updateOldScale:function(t){this._oldScale=t},_adjustScale:function(t){return t=Math.max(.5,this.scaleMinNumber,t),t=Math.min(10,this.scaleMaxNumber,t),t},_animationTo:function(t,e,n,i,r,o){var a=this;this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.xMove||(t=this._translateX),this.yMove||(e=this._translateY),this.scale||(n=this._scale);var s=this._getLimitXY(t,e);t=s.x,e=s.y,this.animation?(this._STD._springX._solution=null,this._STD._springY._solution=null,this._STD._springScale._solution=null,this._STD._springX._endPosition=this._translateX,this._STD._springY._endPosition=this._translateY,this._STD._springScale._endPosition=this._scale,this._STD.setEnd(t,e,n,1),this._SFA=_(this._STD,(function(){var t=a._STD.x(),e=t.x,n=t.y,s=t.scale;a._setTransform(e,n,s,i,r,o)}),(function(){a._SFA.cancel()}))):this._setTransform(t,e,n,i,r,o)},_revise:function(t){var e=this._getLimitXY(this._translateX,this._translateY),n=e.x,i=e.y,r=e.outOfBounds;return r&&this._animationTo(n,i,this._scale,t),r},_setTransform:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateX||0),null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateY||0),t=Number(t.toFixed(1)),e=Number(e.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===t&&this._translateY===e||r||this.$trigger("change",{},{x:g(t,this._scaleOffset.x),y:g(e,this._scaleOffset.y),source:i}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),o&&n!==this._scale&&this.$trigger("scale",{},{x:t,y:e,scale:n});var a="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=a,this.$el.style.webkitTransform=a,this._translateX=t,this._translateY=e,this._scale=n}}},y=b,w=(n("7c2b"),n("0c7c")),S=Object(w["a"])(y,i,r,!1,null,null,null);e["default"]=S.exports},8875:function(t,e,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(h){var t,e,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,r=/@([^@]*):(\d+):(\d+)\s*$/gi,o=i.exec(h.stack)||r.exec(h.stack),a=o&&o[1]||!1,s=o&&o[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===c&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;l<u.length;l++){if("interactive"===u[l].readyState)return u[l];if(u[l].src===a)return u[l];if(a===c&&u[l]["inner"+"HTML"]&&u[l]["inner"+"HTML"].trim()===n)return u[l]}return null}}return t}))},8936:function(t,e,n){"use strict";function i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=i},"897e":function(t,e,n){"use strict";(function(t){var i=n("8af1");e["a"]={name:"Label",mixins:[i["a"]],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(e){var n=/^uni-(checkbox|radio|switch)-/.test(e.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(e.target.tagName)),n||(this.for?t.emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}}}}).call(this,n("501c"))},"89cf":function(t,e,n){},"8a36":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={props:{id:{type:String,default:""}},created:function(){var t=this;this._addListeners(this.id),this.$watch("id",(function(e,n){t._removeListeners(n,!0),t._addListeners(e,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(e,n){var r=this;if(!n||e){var o=this.$options.listeners;Object(i["g"])(o)&&Object.keys(o).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]]):0===i.indexOf("@")?r.$on("uni-".concat(i.substr(1)),r[o[i]]):0===i.indexOf("uni-")?t.on(i,r[o[i]]):e&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]])}))}},_removeListeners:function(e,n){var r=this;if(!n||e){var o=this.$options.listeners;Object(i["g"])(o)&&Object.keys(o).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]]):0===i.indexOf("@")?r.$off("uni-".concat(i.substr(1)),r[o[i]]):0===i.indexOf("uni-")?t.off(i,r[o[i]]):e&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]])}))}}}}}).call(this,n("501c"))},"8aec":function(t,e,n){"use strict";var i=n("5363"),r=n("72b3");function o(t,e,n){this._extent=t,this._friction=e||new i["a"](.01),this._spring=n||new r["a"](1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function a(t,e,n){function i(t,e,n,r){if(!t||!t.cancelled){n(e);var o=e.done();o||t.cancelled||(t.id=requestAnimationFrame(i.bind(null,t,e,n,r))),o&&r&&r(e)}}function r(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}var o={id:0,cancelled:!1};return i(o,t,e,n),{cancel:r.bind(null,o),model:t}}function s(t,e){e=e||{},this._element=t,this._options=e,this._enableSnap=e.enableSnap||!1,this._itemSize=e.itemSize||0,this._enableX=e.enableX||!1,this._enableY=e.enableY||!1,this._shouldDispatchScrollEvent=!!e.onScroll,this._enableX?(this._extent=(e.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=e.scrollWidth):(this._extent=(e.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=e.scrollHeight),this._position=0,this._scroll=new o(this._extent,e.friction,e.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}o.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},o.prototype.set=function(t,e){this._friction.set(t,e),t>0&&e>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&e<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},o.prototype.x=function(t){if(!this._startTime)return 0;if(t||(t=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var e=this._friction.x(t),n=this.dx(t);return(e>0&&n>=0||e<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),e<-this._extent?this._springOffset=-this._extent:this._springOffset=0,e=this._spring.x()+this._springOffset),e},o.prototype.dx=function(t){var e=0;return e=this._lastTime===t?this._lastDx:this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=e,e},o.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},o.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},o.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},s.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},s.prototype.onTouchMove=function(t,e){var n=this._startPosition;this._enableX?n+=t:this._enableY&&(n+=e),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()},s.prototype.onTouchEnd=function(t,e,n){var i=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(e)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var r=this._scroll._friction.x(100),o=r%this._itemSize,s=Math.abs(o)>this._itemSize/2?r-(this._itemSize-Math.abs(o)):r-o;s<=0&&s>=-this._extent&&this._scroll.setVelocityByEnd(s)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=a(this._scroll,(function(){var t=Date.now(),e=(t-i._scroll._startTime)/1e3,n=i._scroll.x(e);i._position=n,i.updatePosition();var r=i._scroll.dx(e);i._shouldDispatchScrollEvent&&t-i._lastTime>i._lastDelay&&(i.dispatchScroll(),i._lastDelay=Math.abs(2e3/r),i._lastTime=t)}),(function(){i._enableSnap&&(s<=0&&s>=-i._extent&&(i._position=s,i.updatePosition()),"function"===typeof i._options.onSnap&&i._options.onSnap(Math.floor(Math.abs(i._position)/i._itemSize))),i._shouldDispatchScrollEvent&&i.dispatchScroll(),i._scrolling=!1}))},s.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},s.prototype.snap=function(){var t=this._itemSize,e=this._position%t,n=Math.abs(e)>this._itemSize/2?this._position-(t-Math.abs(e)):this._position-e;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},s.prototype.scrollTo=function(t,e){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"===typeof t&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(e||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(e||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},s.prototype.dispatchScroll=function(){if("function"===typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}},s.prototype.update=function(t,e,n){var i=0,r=this._position;this._enableX?(i=this._element.childNodes.length?(e||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=e):(i=this._element.childNodes.length?(e||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=e),"number"===typeof t&&(this._position=-t),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},s.prototype.updatePosition=function(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t},s.prototype.isScrolling=function(){return this._scrolling||this._snapping};e["a"]={methods:{initScroller:function(t,e){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new s(t,e),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(t){var e=this._touchInfo;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:t.screenX-e.x,y:t.screenY-e.y}},_handleTouchStart:function(t){var e=this._touchInfo,n=this._scroller;n&&("start"===t.detail.state?(e.trackingID="touch",e.x=t.detail.x,e.y=t.detail.y):(e.trackingID="mouse",e.x=t.screenX,e.y=t.screenY),e.maxDx=0,e.maxDy=0,e.historyX=[0],e.historyY=[0],e.historyTime=[t.detail.timeStamp],e.listener=n,n.onTouchStart&&n.onTouchStart(),t.preventDefault())},_handleTouchMove:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var n=this._findDelta(t);if(n){for(e.maxDy=Math.max(e.maxDy,Math.abs(n.y)),e.maxDx=Math.max(e.maxDx,Math.abs(n.x)),e.historyX.push(n.x),e.historyY.push(n.y),e.historyTime.push(t.detail.timeStamp);e.historyTime.length>10;)e.historyTime.shift(),e.historyX.shift(),e.historyY.shift();e.listener&&e.listener.onTouchMove&&e.listener.onTouchMove(n.x,n.y,t.detail.timeStamp)}}},_handleTouchEnd:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var n=this._findDelta(t);if(n){var i=e.listener;e.trackingID=-1,e.listener=null;var r=e.historyTime.length,o={x:0,y:0};if(r>2)for(var a=e.historyTime.length-1,s=e.historyTime[a],c=e.historyX[a],u=e.historyY[a];a>0;){a--;var l=e.historyTime[a],h=s-l;if(h>30&&h<50){o.x=(c-e.historyX[a])/(h/1e3),o.y=(u-e.historyY[a])/(h/1e3);break}}e.historyTime=[],e.historyX=[],e.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,o)}}}}}},"8af1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i["a"]})),n.d(e,"e",(function(){return r["a"]})),n.d(e,"c",(function(){return o})),n.d(e,"f",(function(){return a["a"]})),n.d(e,"d",(function(){return s["a"]})),n.d(e,"b",(function(){return c["a"]}));var i=n("5cf8"),r=n("8a36"),o={data:function(){return{hovering:!1}},props:{hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}},methods:{_hoverTouchStart:function(t){t.touches.length>1||this._handleHoverStart(t)},_hoverMousedown:function(t){this._hoverTouch||(this._handleHoverStart(t),window.addEventListener("mouseup",this._hoverMouseup))},_handleHoverStart:function(t){var e=this;t._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(this.hoverStopPropagation&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){e.hovering=!0,e._hoverTouch||e._hoverReset()}),this.hoverStartTime))},_hoverMouseup:function(){this._hoverTouch&&(this._handleHoverEnd(),window.removeEventListener("mouseup",this._hoverMouseup))},_hoverTouchEnd:function(){this._handleHoverEnd()},_handleHoverEnd:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var t=this;requestAnimationFrame((function(){clearTimeout(t._hoverStayTimer),t._hoverStayTimer=setTimeout((function(){t.hovering=!1}),t.hoverStayTime)}))},_hoverTouchCancel:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}},a=n("1b6f"),s=n("5a23"),c=n("b282");n("a878")},"8c15":function(t,e,n){"use strict";(function(t){n("85b6");var i=n("d4b6"),r=n("61c2"),o=n("c4c5");e["a"]={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.routes;Object(i["a"])();var n=function(t,e){for(var n=t.target;n&&n!==e;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};t.prototype.$handleEvent=function(t){if(t instanceof Event){var e=n(t,this.$el);t=i["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.prototype.$getComponentDescriptor=function(t,e){return Object(o["b"])(t||this,e)},Object.defineProperty(t.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),t.prototype.$handleWxsEvent=function(t){if(t instanceof Event){var e=t.currentTarget,r=e&&(e.__vue__||e),o=e&&r.$getComponentDescriptor&&r.$getComponentDescriptor(r,!1),a=t;t=i["b"].call(this,a.type,a,{},n(a,this.$el)||a.target,a.currentTarget),t.instance=o,t.preventDefault=function(){return a.preventDefault()},t.stopPropagation=function(){return a.stopPropagation()}}return t},t.mixin({beforeCreate:function(){var t=this,e=this.$options,n=e.wxs;n&&Object.keys(n).forEach((function(e){t[e]=n[e]})),e.behaviors&&e.behaviors.length&&Object(r["a"])(e,this)}})}}}).call(this,n("501c"))},"8c74":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-live-pusher",t._g({},t.$listeners),[n("div",{ref:"container",staticClass:"uni-live-pusher-container"}),n("div",{staticClass:"uni-live-pusher-slot"},[t._t("default")],2)])},r=[],o=n("8af1"),a=n("0aa0");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=["statechange","netstatus","error"],h=["url","mode","muted","enableCamera","autoFocus","beauty","whiteness","aspect","minBitrate"],d={name:"LivePusher",mixins:[o["f"],a["a"]],props:{id:{type:String,default:""},url:{type:String,default:""},mode:{type:String,default:"SD"},muted:{type:[Boolean,String],default:!1},enableCamera:{type:[Boolean,String],default:!0},autoFocus:{type:[Boolean,String],default:!0},beauty:{type:[Number,String],default:0},whiteness:{type:[Number,String],default:0},aspect:{type:[String],default:"3:2"},minBitrate:{type:[Number],default:200}},computed:{attrs:function(){var t=this,e={};return h.forEach((function(n){var i=t.$props[n];i="src"===n?t.$getRealPath(i):i,e[n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))]=i})),e}},mounted:function(){var t=this;this._onParentReady((function(){var e=t.livePusher=new plus.video.LivePusher("livePusher"+Date.now(),Object.assign({},t.attrs,t.position));plus.webview.currentWebview().append(e),t.$watch("attrs",(function(){t.livePusher&&t.livePusher.setStyles(t.attrs)}),{deep:!0}),t.$watch("position",(function(){t.livePusher&&t.livePusher.setStyles(t.position)}),{deep:!0}),t.$watch("hidden",(function(e){var n=t.livePusher;n&&(e||n.setStyles(t.position))})),l.forEach((function(n){e.addEventListener(n,(function(e){t.$trigger(n,{},c({},e.detail))}))}))}))},beforeDestroy:function(){this.livePusher&&this.livePusher.close(),delete this.livePusher},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n;this.livePusher&&this.livePusher[e](i)}}},f=d,p=(n("ea89"),n("0c7c")),v=Object(p["a"])(f,i,r,!1,null,null,null);e["default"]=v.exports},"907b":function(t,e,n){},9213:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-swiper-item",t._g({},t.$listeners),[t._t("default")],2)},r=[],o={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var t=this.$el;t.style.position="absolute",t.style.width="100%",t.style.height="100%";var e=this.$vnode._callbacks;e&&e.forEach((function(t){t()}))}},a=o,s=(n("bfea"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"93ab":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i={};function r(t,e,n){var r="string"===typeof t?window[t]:t;if(r)n();else{var o=i[e];if(!o){o=i[e]=[];var a=document.createElement("script");a.src=e,document.body.appendChild(a),a.onload=function(){o.forEach((function(t){return t()})),delete i[e]}}o.push(n)}}},9400:function(t,e,n){"use strict";var i=n("bb8c"),r=n.n(i);r.a},"944e":function(t,e,n){"use strict";var i=n("db10"),r=n.n(i);r.a},"967f":function(t,e,n){},"97b9":function(t,e,n){},9856:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=[];function r(){return i}function o(t,e){i.length=0,i.push({$page:{id:t,route:e}})}},"98e0":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-picker",t._g({on:{click:t._show}},t.$listeners),[t._t("default")],2)},r=[],o=n("a0d5"),a=o["a"],s=(n("76a8"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"9a8b":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-icon",t._g({},t.$listeners),[n("i",{class:"uni-icon-"+t.type,style:{"font-size":t._converPx(t.size),color:t.color},attrs:{role:"img"}})])},r=[],o={name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},methods:{_converPx:function(t){return/^-?\d+[ur]px$/i.test(t)?t.replace(/(^-?\d+)[ur]px$/i,(function(t,e){return"".concat(uni.upx2px(parseFloat(e)),"px")})):/^-?[\d\.]+$/.test(t)?"".concat(t,"px"):t||""}}},a=o,s=(n("7e6a"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"9b1f":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-progress",t._g({staticClass:"uni-progress"},t.$listeners),[n("div",{staticClass:"uni-progress-bar",style:t.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:t.innerBarStyle})]),t.showInfo?[n("p",{staticClass:"uni-progress-info"},[t._v(" "+t._s(t.currentPercent)+"% ")])]:t._e()],2)},r=[],o={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},a={name:"Progress",props:{percent:{type:[Number,String],default:0,validator:function(t){return!isNaN(parseFloat(t,10))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:function(t){return!isNaN(parseFloat(t,10))}},color:{type:String,default:o.activeColor},activeColor:{type:String,default:o.activeColor},backgroundColor:{type:String,default:o.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:o.activeMode},duration:{type:[Number,String],default:30,validator:function(t){return!isNaN(parseFloat(t,10))}}},data:function(){return{currentPercent:0,strokeTimer:0,lastPercent:0}},computed:{outerBarStyle:function(){return"background-color: ".concat(this.backgroundColor,"; height: ").concat(this.strokeWidth,"px;")},innerBarStyle:function(){var t="";return t=this.color!==o.activeColor&&this.activeColor===o.activeColor?this.color:this.activeColor,"width: ".concat(this.currentPercent,"%;background-color: ").concat(t)},realPercent:function(){var t=parseFloat(this.percent,10);return t<0&&(t=0),t>100&&(t=100),t}},watch:{realPercent:function(t,e){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=e||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var t=this;this.active?(this.currentPercent=this.activeMode===o.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){t.currentPercent+1>t.realPercent?(t.currentPercent=t.realPercent,t.strokeTimer&&clearInterval(t.strokeTimer)):t.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},s=a,c=(n("944e"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"9b52":function(t,e,n){"use strict";function i(t){return s(t)||a(t)||o(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function a(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return c(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function u(t){return/^-?\d+[ur]px$/i.test(t)?t.replace(/(^-?\d+)[ur]px$/i,(function(t,e){return"".concat(uni.upx2px(parseFloat(e)),"px")})):/^-?[\d\.]+$/.test(t)?"".concat(t,"px"):t||""}function l(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})).replace("webkit","-webkit")}function h(t){var e=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],o=["width","height","left","right","top","bottom"],a=t.animates,s=t.option,c=s.transition,h={},d=[];return a.forEach((function(t){var a=t.type,s=i(t.args);if(e.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?s=s.map((function(t){return parseFloat(t)+"deg"})):a.startsWith("translate")&&(s=s.map(u)),n.indexOf(a)>=0&&(s.length=1),d.push("".concat(a,"(").concat(s.join(","),")"));else if(r.concat(o).includes(s[0])){a=s[0];var c=s[1];h[a]=o.includes(a)?u(c):c}})),h.transform=h.webkitTransform=d.join(" "),h.transition=h.webkitTransition=Object.keys(h).map((function(t){return"".concat(l(t)," ").concat(c.duration,"ms ").concat(c.timingFunction," ").concat(c.delay,"ms")})).join(","),h.transformOrigin=h.webkitTransformOrigin=s.transformOrigin,h}function d(t){var e=t.animation;if(e&&e.actions&&e.actions.length){var n=0,i=e.actions,r=e.actions.length;setTimeout((function(){o()}),0)}function o(){var e=i[n],a=e.option.transition,s=h(e);Object.keys(s).forEach((function(e){t.$el.style[e]=s[e]})),n+=1,n<r&&setTimeout(o,a.duration+a.delay)}}n.d(e,"b",(function(){return d})),e["a"]={props:["animation"],watch:{animation:function(){d(this)}},mounted:function(){d(this)}}},"9c39":function(t,e,n){},"9d20":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var i=n("a20d"),r=n("0b86");function o(t,e){return l(t)||u(t,e)||s(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function u(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function l(t){if(Array.isArray(t))return t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t){var e=t.$parent;while(e){if(e._$id)return e;e=e.$parent}}var v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.pageId=t,this.addBatchVData=Object.create(null),this.updateBatchVData=[],this.vms=Object.create(null),this.version=n.version}return f(e,[{key:"addVData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.addBatchVData[t]=[e,n]}},{key:"updateVData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.updateBatchVData.push([t,e])}},{key:"addVm",value:function(t){var e=t._$id,n=this.vms[e];if(n){var i=Object(r["a"])(n,p(n),this.version);n._$id=i,this.vms[i]=n}this.vms[e]=t}},{key:"initVm",value:function(t){t._$id=Object(r["a"])(t,p(t),this.version);var e=this.addBatchVData[t._$id];e?delete this.addBatchVData[t._$id]:e=[{},{}];var n=e,i=o(n,2),a=i[0],s=i[1];Object.assign(t.$options,s),t.$r=a||Object.create(null),this.addVm(t)}},{key:"sendUIEvent",value:function(e,n,r){t.publishHandler(i["i"],{data:[[i["g"],[[e,n,r]]]],options:{timestamp:Date.now()}})}},{key:"clearAddBatchVData",value:function(){this.addBatchVData=Object.create(null)}},{key:"flush",value:function(){var t=this;this.updateBatchVData.forEach((function(e){var n=o(e,2),i=n[0],r=n[1],a=t.vms[i];if(!a)return console.error("Not found ".concat(i));Object.keys(r).forEach((function(t){Object.assign(a.$r[t]||(a.$r[t]=Object.create(null)),r[t])})),a.$forceUpdate()})),this.updateBatchVData.length=0}}]),e}()}).call(this,n("501c"))},"9e6e":function(t,e,n){"use strict";var i=n("be7f"),r=n("c834"),o=n("eeda"),a=n("7eb1"),s=n("6853"),c=0,u=1,l=2,h=4,d=5,f=6,p=0,v=1,m=2,g=-2,_=-3,b=-4,y=-5,w=8,S=1,k=2,x=3,C=4,T=5,O=6,$=7,E=8,I=9,A=10,M=11,P=12,j=13,L=14,N=15,D=16,R=17,B=18,F=19,z=20,V=21,H=22,Y=23,U=24,W=25,X=26,q=27,Z=28,G=29,K=30,J=31,Q=32,tt=852,et=592,nt=15,it=nt;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function ot(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function at(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=S,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(tt),e.distcode=e.distdyn=new i.Buf32(et),e.sane=1,e.back=-1,p):g}function st(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,at(t)):g}function ct(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?g:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,st(t))):g}function ut(t,e){var n,i;return t?(i=new ot,t.state=i,i.window=null,n=ct(t,e),n!==p&&(t.state=null),n):g}function lt(t){return ut(t,it)}var ht,dt,ft=!0;function pt(t){if(ft){var e;ht=new i.Buf32(512),dt=new i.Buf32(32),e=0;while(e<144)t.lens[e++]=8;while(e<256)t.lens[e++]=9;while(e<280)t.lens[e++]=7;while(e<288)t.lens[e++]=8;s(u,t.lens,0,288,ht,0,t.work,{bits:9}),e=0;while(e<32)t.lens[e++]=5;s(l,t.lens,0,32,dt,0,t.work,{bits:5}),ft=!1}t.lencode=ht,t.lenbits=9,t.distcode=dt,t.distbits=5}function vt(t,e,n,r){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>r&&(o=r),i.arraySet(a.window,e,n-r,o,a.wnext),r-=o,r?(i.arraySet(a.window,e,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}function mt(t,e){var n,tt,et,nt,it,ot,at,st,ct,ut,lt,ht,dt,ft,mt,gt,_t,bt,yt,wt,St,kt,xt,Ct,Tt=0,Ot=new i.Buf8(4),$t=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return g;n=t.state,n.mode===P&&(n.mode=j),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ct=n.bits,ut=ot,lt=at,kt=p;t:for(;;)switch(n.mode){case S:if(0===n.wrap){n.mode=j;break}while(ct<16){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(2&n.wrap&&35615===st){n.check=0,Ot[0]=255&st,Ot[1]=st>>>8&255,n.check=o(n.check,Ot,2,0),st=0,ct=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=K;break}if((15&st)!==w){t.msg="unknown compression method",n.mode=K;break}if(st>>>=4,ct-=4,St=8+(15&st),0===n.wbits)n.wbits=St;else if(St>n.wbits){t.msg="invalid window size",n.mode=K;break}n.dmax=1<<St,t.adler=n.check=1,n.mode=512&st?A:P,st=0,ct=0;break;case k:while(ct<16){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(n.flags=st,(255&n.flags)!==w){t.msg="unknown compression method",n.mode=K;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=K;break}n.head&&(n.head.text=st>>8&1),512&n.flags&&(Ot[0]=255&st,Ot[1]=st>>>8&255,n.check=o(n.check,Ot,2,0)),st=0,ct=0,n.mode=x;case x:while(ct<32){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}n.head&&(n.head.time=st),512&n.flags&&(Ot[0]=255&st,Ot[1]=st>>>8&255,Ot[2]=st>>>16&255,Ot[3]=st>>>24&255,n.check=o(n.check,Ot,4,0)),st=0,ct=0,n.mode=C;case C:while(ct<16){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}n.head&&(n.head.xflags=255&st,n.head.os=st>>8),512&n.flags&&(Ot[0]=255&st,Ot[1]=st>>>8&255,n.check=o(n.check,Ot,2,0)),st=0,ct=0,n.mode=T;case T:if(1024&n.flags){while(ct<16){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}n.length=st,n.head&&(n.head.extra_len=st),512&n.flags&&(Ot[0]=255&st,Ot[1]=st>>>8&255,n.check=o(n.check,Ot,2,0)),st=0,ct=0}else n.head&&(n.head.extra=null);n.mode=O;case O:if(1024&n.flags&&(ht=n.length,ht>ot&&(ht=ot),ht&&(n.head&&(St=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,tt,nt,ht,St)),512&n.flags&&(n.check=o(n.check,tt,ht,nt)),ot-=ht,nt+=ht,n.length-=ht),n.length))break t;n.length=0,n.mode=$;case $:if(2048&n.flags){if(0===ot)break t;ht=0;do{St=tt[nt+ht++],n.head&&St&&n.length<65536&&(n.head.name+=String.fromCharCode(St))}while(St&&ht<ot);if(512&n.flags&&(n.check=o(n.check,tt,ht,nt)),ot-=ht,nt+=ht,St)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=E;case E:if(4096&n.flags){if(0===ot)break t;ht=0;do{St=tt[nt+ht++],n.head&&St&&n.length<65536&&(n.head.comment+=String.fromCharCode(St))}while(St&&ht<ot);if(512&n.flags&&(n.check=o(n.check,tt,ht,nt)),ot-=ht,nt+=ht,St)break t}else n.head&&(n.head.comment=null);n.mode=I;case I:if(512&n.flags){while(ct<16){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(st!==(65535&n.check)){t.msg="header crc mismatch",n.mode=K;break}st=0,ct=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=P;break;case A:while(ct<32){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}t.adler=n.check=rt(st),st=0,ct=0,n.mode=M;case M:if(0===n.havedict)return t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ct,m;t.adler=n.check=1,n.mode=P;case P:if(e===d||e===f)break t;case j:if(n.last){st>>>=7&ct,ct-=7&ct,n.mode=q;break}while(ct<3){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}switch(n.last=1&st,st>>>=1,ct-=1,3&st){case 0:n.mode=L;break;case 1:if(pt(n),n.mode=z,e===f){st>>>=2,ct-=2;break t}break;case 2:n.mode=R;break;case 3:t.msg="invalid block type",n.mode=K}st>>>=2,ct-=2;break;case L:st>>>=7&ct,ct-=7&ct;while(ct<32){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if((65535&st)!==(st>>>16^65535)){t.msg="invalid stored block lengths",n.mode=K;break}if(n.length=65535&st,st=0,ct=0,n.mode=N,e===f)break t;case N:n.mode=D;case D:if(ht=n.length,ht){if(ht>ot&&(ht=ot),ht>at&&(ht=at),0===ht)break t;i.arraySet(et,tt,nt,ht,it),ot-=ht,nt+=ht,at-=ht,it+=ht,n.length-=ht;break}n.mode=P;break;case R:while(ct<14){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(n.nlen=257+(31&st),st>>>=5,ct-=5,n.ndist=1+(31&st),st>>>=5,ct-=5,n.ncode=4+(15&st),st>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=K;break}n.have=0,n.mode=B;case B:while(n.have<n.ncode){while(ct<3){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}n.lens[$t[n.have++]]=7&st,st>>>=3,ct-=3}while(n.have<19)n.lens[$t[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xt={bits:n.lenbits},kt=s(c,n.lens,0,19,n.lencode,0,n.work,xt),n.lenbits=xt.bits,kt){t.msg="invalid code lengths set",n.mode=K;break}n.have=0,n.mode=F;case F:while(n.have<n.nlen+n.ndist){for(;;){if(Tt=n.lencode[st&(1<<n.lenbits)-1],mt=Tt>>>24,gt=Tt>>>16&255,_t=65535&Tt,mt<=ct)break;if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(_t<16)st>>>=mt,ct-=mt,n.lens[n.have++]=_t;else{if(16===_t){Ct=mt+2;while(ct<Ct){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(st>>>=mt,ct-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=K;break}St=n.lens[n.have-1],ht=3+(3&st),st>>>=2,ct-=2}else if(17===_t){Ct=mt+3;while(ct<Ct){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}st>>>=mt,ct-=mt,St=0,ht=3+(7&st),st>>>=3,ct-=3}else{Ct=mt+7;while(ct<Ct){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}st>>>=mt,ct-=mt,St=0,ht=11+(127&st),st>>>=7,ct-=7}if(n.have+ht>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=K;break}while(ht--)n.lens[n.have++]=St}}if(n.mode===K)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=K;break}if(n.lenbits=9,xt={bits:n.lenbits},kt=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,xt),n.lenbits=xt.bits,kt){t.msg="invalid literal/lengths set",n.mode=K;break}if(n.distbits=6,n.distcode=n.distdyn,xt={bits:n.distbits},kt=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xt),n.distbits=xt.bits,kt){t.msg="invalid distances set",n.mode=K;break}if(n.mode=z,e===f)break t;case z:n.mode=V;case V:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ct,a(t,lt),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ct=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;;){if(Tt=n.lencode[st&(1<<n.lenbits)-1],mt=Tt>>>24,gt=Tt>>>16&255,_t=65535&Tt,mt<=ct)break;if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(gt&&0===(240>)){for(bt=mt,yt=gt,wt=_t;;){if(Tt=n.lencode[wt+((st&(1<<bt+yt)-1)>>bt)],mt=Tt>>>24,gt=Tt>>>16&255,_t=65535&Tt,bt+mt<=ct)break;if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}st>>>=bt,ct-=bt,n.back+=bt}if(st>>>=mt,ct-=mt,n.back+=mt,n.length=_t,0===gt){n.mode=X;break}if(32>){n.back=-1,n.mode=P;break}if(64>){t.msg="invalid literal/length code",n.mode=K;break}n.extra=15>,n.mode=H;case H:if(n.extra){Ct=n.extra;while(ct<Ct){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}n.length+=st&(1<<n.extra)-1,st>>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Y;case Y:for(;;){if(Tt=n.distcode[st&(1<<n.distbits)-1],mt=Tt>>>24,gt=Tt>>>16&255,_t=65535&Tt,mt<=ct)break;if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(0===(240>)){for(bt=mt,yt=gt,wt=_t;;){if(Tt=n.distcode[wt+((st&(1<<bt+yt)-1)>>bt)],mt=Tt>>>24,gt=Tt>>>16&255,_t=65535&Tt,bt+mt<=ct)break;if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}st>>>=bt,ct-=bt,n.back+=bt}if(st>>>=mt,ct-=mt,n.back+=mt,64>){t.msg="invalid distance code",n.mode=K;break}n.offset=_t,n.extra=15>,n.mode=U;case U:if(n.extra){Ct=n.extra;while(ct<Ct){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}n.offset+=st&(1<<n.extra)-1,st>>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=K;break}n.mode=W;case W:if(0===at)break t;if(ht=lt-at,n.offset>ht){if(ht=n.offset-ht,ht>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=K;break}ht>n.wnext?(ht-=n.wnext,dt=n.wsize-ht):dt=n.wnext-ht,ht>n.length&&(ht=n.length),ft=n.window}else ft=et,dt=it-n.offset,ht=n.length;ht>at&&(ht=at),at-=ht,n.length-=ht;do{et[it++]=ft[dt++]}while(--ht);0===n.length&&(n.mode=V);break;case X:if(0===at)break t;et[it++]=n.length,at--,n.mode=V;break;case q:if(n.wrap){while(ct<32){if(0===ot)break t;ot--,st|=tt[nt++]<<ct,ct+=8}if(lt-=at,t.total_out+=lt,n.total+=lt,lt&&(t.adler=n.check=n.flags?o(n.check,et,lt,it-lt):r(n.check,et,lt,it-lt)),lt=at,(n.flags?st:rt(st))!==n.check){t.msg="incorrect data check",n.mode=K;break}st=0,ct=0}n.mode=Z;case Z:if(n.wrap&&n.flags){while(ct<32){if(0===ot)break t;ot--,st+=tt[nt++]<<ct,ct+=8}if(st!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=K;break}st=0,ct=0}n.mode=G;case G:kt=v;break t;case K:kt=_;break t;case J:return b;case Q:default:return g}return t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ct,(n.wsize||lt!==t.avail_out&&n.mode<K&&(n.mode<q||e!==h))&&vt(t,t.output,t.next_out,lt-t.avail_out)?(n.mode=J,b):(ut-=t.avail_in,lt-=t.avail_out,t.total_in+=ut,t.total_out+=lt,n.total+=lt,n.wrap&<&&(t.adler=n.check=n.flags?o(n.check,et,lt,t.next_out-lt):r(n.check,et,lt,t.next_out-lt)),t.data_type=n.bits+(n.last?64:0)+(n.mode===P?128:0)+(n.mode===z||n.mode===N?256:0),(0===ut&&0===lt||e===h)&&kt===p&&(kt=y),kt)}function gt(t){if(!t||!t.state)return g;var e=t.state;return e.window&&(e.window=null),t.state=null,p}function _t(t,e){var n;return t&&t.state?(n=t.state,0===(2&n.wrap)?g:(n.head=e,e.done=!1,p)):g}function bt(t,e){var n,i,o,a=e.length;return t&&t.state?(n=t.state,0!==n.wrap&&n.mode!==M?g:n.mode===M&&(i=1,i=r(i,e,a,0),i!==n.check)?_:(o=vt(t,e,a,a),o?(n.mode=J,b):(n.havedict=1,p))):g}e.inflateReset=st,e.inflateReset2=ct,e.inflateResetKeep=at,e.inflateInit=lt,e.inflateInit2=ut,e.inflate=mt,e.inflateEnd=gt,e.inflateGetHeader=_t,e.inflateSetDictionary=bt,e.inflateInfo="pako inflate (from Nodeca project)"},"9f96":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-slider",t._g({ref:"uni-slider",on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:t.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:t.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:t.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:t.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[t._v(t._s(t.sliderValue))])]),t._t("default")],2)},r=[],o=n("8af1"),a=n("ba15"),s={add:function(t){var e,n,i;try{e=this.toString().split(".")[1].length}catch(r){e=0}try{n=t.toString().split(".")[1].length}catch(r){n=0}return i=Math.pow(10,Math.max(e,n)),(this*i+t*i)/i},sub:function(t){return this.add(-t)},mul:function(t){var e=0,n=this.toString(),i=t.toString();try{e+=n.split(".")[1].length}catch(r){}try{e+=i.split(".")[1].length}catch(r){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,e)},div:function(t){var e,n,i=0,r=0;try{i=this.toString().split(".")[1].length}catch(o){}try{r=t.toString().split(".")[1].length}catch(o){}return e=Number(this.toString().replace(".","")),n=Number(t.toString().replace(".","")),e/n*Math.pow(10,r-i)},mod:function(t){var e,n,i=0,r=0;try{i=this.toString().split(".")[1].length}catch(s){}try{r=t.toString().split(".")[1].length}catch(s){}var o=Math.pow(10,Math.abs(i-r));1==o&&(o=Math.pow(10,i)),e=(this*o).toString().split(".")[0],n=t*o;var a=(this*o).toString().split(".")[1]?(this*o).toString().split(".")[1]:"";return(e%n+a)/o}},c={name:"Slider",mixins:[o["a"],o["e"],a["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(t){this.sliderValue=Number(t)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(t){var e=this.$refs["uni-slider-value"],n=getComputedStyle(e,null).marginLeft,i=e.offsetWidth;i+=parseInt(n);var r=this.$refs["uni-slider"],o=r.offsetWidth-(this.showValue?i:0),a=r.getBoundingClientRect().left,s=(t.x-a)*(this.max-this.min)/o+Number(this.min);this.sliderValue=this._filterValue(s)},_filterValue:function(t){var e=Number(this.max),n=Number(this.min);return t<n?n:t>e?e:s.mul.call(Math.round((t-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(t){if(!this.disabled)return"move"===t.detail.state?(this._onUserChangedValue({x:t.detail.x}),this.$trigger("changing",t,{value:this.sliderValue}),!1):"end"===t.detail.state&&this.$trigger("change",t,{value:this.sliderValue})},_onClick:function(t){this.disabled||(this._onUserChangedValue(t),this.$trigger("change",t,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var t={};return""!==this.name&&(t.value=this.sliderValue,t.key=this.name),t}}},u=c,l=(n("6428"),n("0c7c")),h=Object(l["a"])(u,i,r,!1,null,null,null);e["default"]=h.exports},a0d5:function(t,e,n){"use strict";(function(t){var i=n("8af1"),r=n("2b4d"),o=n("435a"),a=n("a53f"),s=n("a6b0"),c=n("65a8"),u={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},l={YEAR:"year",MONTH:"month",DAY:"day"};function h(t){return t>9?t:"0".concat(t)}function d(t,e){t=String(t||"");var n=new Date;return e===u.TIME?(t=t.split(":"),2===t.length&&n.setHours(parseInt(t[0]),parseInt(t[1]))):(t=t.split("-"),3===t.length&&n.setFullYear(parseInt(t[0]),parseInt(t[1]-1),parseInt(t[2]))),n}function f(){if(this.mode===u.TIME)return"00:00";if(this.mode===u.DATE){var t=(new Date).getFullYear()-100;switch(this.fields){case l.YEAR:return t;case l.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function p(){if(this.mode===u.TIME)return"23:59";if(this.mode===u.DATE){var t=(new Date).getFullYear()+100;switch(this.fields){case l.YEAR:return t;case l.MONTH:return t+"-12";default:return t+"-12-31"}}return""}e["a"]={name:"Picker",mixins:[s["b"],i["a"]],props:{name:{type:String,default:""},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:u.SELECTOR,validator:function(t){return Object.values(u).indexOf(t)>=0}},fields:{type:String,default:""},start:{type:String,default:f},end:{type:String,default:p},disabled:{type:[Boolean,String],default:!1}},data:function(){return{valueSync:null,theme:__uniConfig.darkmode?plus.navigator.getUIStyle():"light"}},watch:{value:function(){this._setValueSync()}},created:function(){var e=this;this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),Object.keys(this.$props).forEach((function(t){"name"!==t&&e.$watch(t,(function(n){var i={};i[t]=n,e._updatePicker(i)}))})),this._setValueSync(),t.subscribe(c["b"],this._onThemeChange)},mounted:function(){o["a"]((function(t){t&&o["b"]()}))},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this}),t.unsubscribe(c["b"],this._onThemeChange)},methods:{_setValueSync:function(){var t=this.value;switch(this.mode){case u.MULTISELECTOR:Array.isArray(t)||(t=[]),Array.isArray(this.valueSync)||(this.valueSync=[]);for(var e=this.valueSync.length=Math.max(t.length,this.range.length),n=0;n<e;n++){var i=Number(t[n]),r=Number(this.valueSync[n]),o=isNaN(i)?isNaN(r)?0:r:i;this.valueSync.splice(n,1,o<0?0:o)}break;case u.TIME:case u.DATE:this.valueSync=String(t);break;default:var a=Number(t);this.valueSync=a<0?0:a;break}},_show:function(t){if(!this.disabled){var e=t.currentTarget.getBoundingClientRect();this._showPicker(Object.assign({},this.$props,{value:this.valueSync,locale:Object(s["a"])(),messages:{done:this.$$t("uni.picker.done"),cancel:this.$$t("uni.picker.cancel")}}),{top:e.top+Object(a["a"])(),left:e.left,width:e.width,height:e.height})}},_showPicker:function(t,e){var n=this;t.mode!==u.TIME&&t.mode!==u.DATE||t.fields?(t.fields=Object.values(l).includes(t.fields)?t.fields:l.DAY,o["a"]((function(e){n[e?"_showWebviewPicker":"_showWeexPicker"](t)}))):this._showNativePicker(t,e)},_showNativePicker:function(t,e){var n=this;plus.nativeUI[this.mode===u.TIME?"pickTime":"pickDate"]((function(t){var e=t.date;n.$trigger("change",{},{value:n.mode===u.TIME?"".concat(h(e.getHours()),":").concat(h(e.getMinutes())):"".concat(e.getFullYear(),"-").concat(h(e.getMonth()+1),"-").concat(h(e.getDate()))})}),(function(){n.$trigger("cancel",{},{})}),this.mode===u.TIME?{time:d(this.value,u.TIME),popover:e}:{date:d(this.value,u.DATE),minDate:d(this.start,u.DATE),maxDate:d(this.end,u.DATE),popover:e})},_showWeexPicker:function(t){var e=this,n={event:"cancel"};this.page=Object(r["a"])({url:"__uniapppicker",data:Object.assign({},t,{theme:this.theme}),style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:function(i){var r=i.event;if("created"!==r)return"columnchange"===r?(delete i.event,void e.$trigger(r,{},i)):void(n=i);e._updatePicker(t)},onClose:function(){e.page=null;var t=n.event;delete n.event,e.$trigger(t,{},n)}})},_showWebviewPicker:function(t){var e=this;o["c"](t,(function(t){var n=t.event;delete t.event,e.$trigger(n,{},t)}))},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case u.SELECTOR:this.valueSync=0;break;case u.MULTISELECTOR:this.valueSync=this.value.map((function(t){return 0}));break;case u.DATE:case u.TIME:this.valueSync="";break;default:break}},_updatePicker:function(t){var e=this;o["a"]((function(n){n?o["d"](t):e.page&&e.page.sendMessage(t)}))},_onThemeChange:function(t){this.theme=t.theme}}}}).call(this,n("501c"))},a177:function(t,e,n){"use strict";var i,r=n("be7f"),o=n("07f4"),a=n("c834"),s=n("eeda"),c=n("4dc6"),u=0,l=1,h=3,d=4,f=5,p=0,v=1,m=-2,g=-3,_=-5,b=-1,y=1,w=2,S=3,k=4,x=0,C=2,T=8,O=9,$=15,E=8,I=29,A=256,M=A+1+I,P=30,j=19,L=2*M+1,N=15,D=3,R=258,B=R+D+1,F=32,z=42,V=69,H=73,Y=91,U=103,W=113,X=666,q=1,Z=2,G=3,K=4,J=3;function Q(t,e){return t.msg=c[e],e}function tt(t){return(t<<1)-(t>4?9:0)}function et(t){var e=t.length;while(--e>=0)t[e]=0}function nt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function it(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,nt(t.strm)}function rt(t,e){t.pending_buf[t.pending++]=e}function ot(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function at(t,e,n,i){var o=t.avail_in;return o>i&&(o=i),0===o?0:(t.avail_in-=o,r.arraySet(e,t.input,t.next_in,o,n),1===t.state.wrap?t.adler=a(t.adler,e,o,n):2===t.state.wrap&&(t.adler=s(t.adler,e,o,n)),t.next_in+=o,t.total_in+=o,o)}function st(t,e){var n,i,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-B?t.strstart-(t.w_size-B):0,u=t.window,l=t.w_mask,h=t.prev,d=t.strstart+R,f=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(n=e,u[n+a]===p&&u[n+a-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(i=R-(d-o),o=d-R,i>a){if(t.match_start=e,a=i,i>=s)break;f=u[o+a-1],p=u[o+a]}}}while((e=h[e&l])>c&&0!==--r);return a<=t.lookahead?a:t.lookahead}function ct(t){var e,n,i,o,a,s=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-B)){r.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,n=t.hash_size,e=n;do{i=t.head[--e],t.head[e]=i>=s?i-s:0}while(--n);n=s,e=n;do{i=t.prev[--e],t.prev[e]=i>=s?i-s:0}while(--n);o+=s}if(0===t.strm.avail_in)break;if(n=at(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=n,t.lookahead+t.insert>=D){a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;while(t.insert)if(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+D-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,t.lookahead+t.insert<D)break}}while(t.lookahead<B&&0!==t.strm.avail_in)}function ut(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ct(t),0===t.lookahead&&e===u)return q;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,it(t,!1),0===t.strm.avail_out))return q;if(t.strstart-t.block_start>=t.w_size-B&&(it(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===d?(it(t,!0),0===t.strm.avail_out?G:K):(t.strstart>t.block_start&&(it(t,!1),t.strm.avail_out),q)}function lt(t,e){for(var n,i;;){if(t.lookahead<B){if(ct(t),t.lookahead<B&&e===u)return q;if(0===t.lookahead)break}if(n=0,t.lookahead>=D&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+D-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-B&&(t.match_length=st(t,n)),t.match_length>=D)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-D),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=D){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+D-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(it(t,!1),0===t.strm.avail_out))return q}return t.insert=t.strstart<D-1?t.strstart:D-1,e===d?(it(t,!0),0===t.strm.avail_out?G:K):t.last_lit&&(it(t,!1),0===t.strm.avail_out)?q:Z}function ht(t,e){for(var n,i,r;;){if(t.lookahead<B){if(ct(t),t.lookahead<B&&e===u)return q;if(0===t.lookahead)break}if(n=0,t.lookahead>=D&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+D-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=D-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-B&&(t.match_length=st(t,n),t.match_length<=5&&(t.strategy===y||t.match_length===D&&t.strstart-t.match_start>4096)&&(t.match_length=D-1)),t.prev_length>=D&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-D,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-D),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+D-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=D-1,t.strstart++,i&&(it(t,!1),0===t.strm.avail_out))return q}else if(t.match_available){if(i=o._tr_tally(t,0,t.window[t.strstart-1]),i&&it(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return q}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<D-1?t.strstart:D-1,e===d?(it(t,!0),0===t.strm.avail_out?G:K):t.last_lit&&(it(t,!1),0===t.strm.avail_out)?q:Z}function dt(t,e){for(var n,i,r,a,s=t.window;;){if(t.lookahead<=R){if(ct(t),t.lookahead<=R&&e===u)return q;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=D&&t.strstart>0&&(r=t.strstart-1,i=s[r],i===s[++r]&&i===s[++r]&&i===s[++r])){a=t.strstart+R;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);t.match_length=R-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=D?(n=o._tr_tally(t,1,t.match_length-D),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(it(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===d?(it(t,!0),0===t.strm.avail_out?G:K):t.last_lit&&(it(t,!1),0===t.strm.avail_out)?q:Z}function ft(t,e){for(var n;;){if(0===t.lookahead&&(ct(t),0===t.lookahead)){if(e===u)return q;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(it(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===d?(it(t,!0),0===t.strm.avail_out?G:K):t.last_lit&&(it(t,!1),0===t.strm.avail_out)?q:Z}function pt(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function vt(t){t.window_size=2*t.w_size,et(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=D-1,t.match_available=0,t.ins_h=0}function mt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*L),this.dyn_dtree=new r.Buf16(2*(2*P+1)),this.bl_tree=new r.Buf16(2*(2*j+1)),et(this.dyn_ltree),et(this.dyn_dtree),et(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(N+1),this.heap=new r.Buf16(2*M+1),et(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*M+1),et(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function gt(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=C,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?z:W,t.adler=2===e.wrap?0:1,e.last_flush=u,o._tr_init(e),p):Q(t,m)}function _t(t){var e=gt(t);return e===p&&vt(t.state),e}function bt(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,p):m}function yt(t,e,n,i,o,a){if(!t)return m;var s=1;if(e===b&&(e=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),o<1||o>O||n!==T||i<8||i>15||e<0||e>9||a<0||a>k)return Q(t,m);8===i&&(i=9);var c=new mt;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+D-1)/D),c.window=new r.Buf8(2*c.w_size),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=a,c.method=n,_t(t)}function wt(t,e){return yt(t,e,T,$,E,x)}function St(t,e){var n,r,a,c;if(!t||!t.state||e>f||e<0)return t?Q(t,m):m;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===X&&e!==d)return Q(t,0===t.avail_out?_:m);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===z)if(2===r.wrap)t.adler=0,rt(r,31),rt(r,139),rt(r,8),r.gzhead?(rt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),rt(r,255&r.gzhead.time),rt(r,r.gzhead.time>>8&255),rt(r,r.gzhead.time>>16&255),rt(r,r.gzhead.time>>24&255),rt(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),rt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(rt(r,255&r.gzhead.extra.length),rt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=V):(rt(r,0),rt(r,0),rt(r,0),rt(r,0),rt(r,0),rt(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),rt(r,J),r.status=W);else{var g=T+(r.w_bits-8<<4)<<8,b=-1;b=r.strategy>=w||r.level<2?0:r.level<6?1:6===r.level?2:3,g|=b<<6,0!==r.strstart&&(g|=F),g+=31-g%31,r.status=W,ot(r,g),0!==r.strstart&&(ot(r,t.adler>>>16),ot(r,65535&t.adler)),t.adler=1}if(r.status===V)if(r.gzhead.extra){a=r.pending;while(r.gzindex<(65535&r.gzhead.extra.length)){if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),nt(t),a=r.pending,r.pending===r.pending_buf_size))break;rt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++}r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=H)}else r.status=H;if(r.status===H)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),nt(t),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,rt(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.gzindex=0,r.status=Y)}else r.status=Y;if(r.status===Y)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),nt(t),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,rt(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.status=U)}else r.status=U;if(r.status===U&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&nt(t),r.pending+2<=r.pending_buf_size&&(rt(r,255&t.adler),rt(r,t.adler>>8&255),t.adler=0,r.status=W)):r.status=W),0!==r.pending){if(nt(t),0===t.avail_out)return r.last_flush=-1,p}else if(0===t.avail_in&&tt(e)<=tt(n)&&e!==d)return Q(t,_);if(r.status===X&&0!==t.avail_in)return Q(t,_);if(0!==t.avail_in||0!==r.lookahead||e!==u&&r.status!==X){var y=r.strategy===w?ft(r,e):r.strategy===S?dt(r,e):i[r.level].func(r,e);if(y!==G&&y!==K||(r.status=X),y===q||y===G)return 0===t.avail_out&&(r.last_flush=-1),p;if(y===Z&&(e===l?o._tr_align(r):e!==f&&(o._tr_stored_block(r,0,0,!1),e===h&&(et(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),nt(t),0===t.avail_out))return r.last_flush=-1,p}return e!==d?p:r.wrap<=0?v:(2===r.wrap?(rt(r,255&t.adler),rt(r,t.adler>>8&255),rt(r,t.adler>>16&255),rt(r,t.adler>>24&255),rt(r,255&t.total_in),rt(r,t.total_in>>8&255),rt(r,t.total_in>>16&255),rt(r,t.total_in>>24&255)):(ot(r,t.adler>>>16),ot(r,65535&t.adler)),nt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?p:v)}function kt(t){var e;return t&&t.state?(e=t.state.status,e!==z&&e!==V&&e!==H&&e!==Y&&e!==U&&e!==W&&e!==X?Q(t,m):(t.state=null,e===W?Q(t,g):p)):m}function xt(t,e){var n,i,o,s,c,u,l,h,d=e.length;if(!t||!t.state)return m;if(n=t.state,s=n.wrap,2===s||1===s&&n.status!==z||n.lookahead)return m;1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(et(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,e,d-n.w_size,n.w_size,0),e=h,d=n.w_size),c=t.avail_in,u=t.next_in,l=t.input,t.avail_in=d,t.next_in=0,t.input=e,ct(n);while(n.lookahead>=D){i=n.strstart,o=n.lookahead-(D-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+D-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++}while(--o);n.strstart=i,n.lookahead=D-1,ct(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=D-1,n.match_available=0,t.next_in=u,t.input=l,t.avail_in=c,n.wrap=s,p}i=[new pt(0,0,0,0,ut),new pt(4,4,8,4,lt),new pt(4,5,16,8,lt),new pt(4,6,32,32,lt),new pt(4,4,16,16,ht),new pt(8,16,32,32,ht),new pt(8,16,128,128,ht),new pt(8,32,128,256,ht),new pt(32,128,258,1024,ht),new pt(32,258,258,4096,ht)],e.deflateInit=wt,e.deflateInit2=yt,e.deflateReset=_t,e.deflateResetKeep=gt,e.deflateSetHeader=bt,e.deflate=St,e.deflateEnd=kt,e.deflateSetDictionary=xt,e.deflateInfo="pako deflate (from Nodeca project)"},a20d:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"g",(function(){return s})),n.d(e,"i",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"m",(function(){return l})),n.d(e,"j",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"k",(function(){return v})),n.d(e,"f",(function(){return m}));var i=2,r=4,o=6,a=10,s=20,c="vdSync",u="__uniapp__service",l="webviewReady",h="vdSyncCallback",d="invokeApi",f="webviewInserted",p="webviewRemoved",v="webviewId",m="setLocale"},a20f:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var i=n("f2b3"),r=function(){var t=document.createElement("canvas");t.height=t.width=0;var e=t.getContext("2d"),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),o=function(t,e){for(var n in t)Object(i["e"])(t,n)&&e(t[n],n)},a={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},s=CanvasRenderingContext2D.prototype;function c(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.width=t.offsetWidth*(e?r:1),t.height=t.offsetHeight*(e?r:1),t.__hidpi__=e,t.__context2d__=t.getContext("2d"),t.__context2d__.__hidpi__=e}s.drawImageByCanvas=function(t){return function(e,n,i,o,a,s,c,u,l,h){if(!this.__hidpi__)return t.apply(this,arguments);n*=r,i*=r,o*=r,a*=r,s*=r,c*=r,u=h?u*r:u,l=h?l*r:l,t.call(this,e,n,i,o,a,s,c,u,l)}}(s.drawImage),1!==r&&(o(a,(function(t,e){s[e]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map((function(t){return t*r}));else if(Array.isArray(t))for(var i=0;i<t.length;i++)n[t[i]]*=r;return e.apply(this,n)}}(s[e])})),s.stroke=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);this.lineWidth*=r,t.apply(this,arguments),this.lineWidth/=r}}(s.stroke),s.fillText=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var e=Array.prototype.slice.call(arguments);e[1]*=r,e[2]*=r,e[3]*=r,isNaN(e[3])&&(e.length=3);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(t,e,n){return e*r+n})),t.apply(this,e),this.font=n}}(s.fillText),s.strokeText=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var e=Array.prototype.slice.call(arguments);e[1]*=r,e[2]*=r,e[3]*=r,isNaN(e[3])&&(e.length=3);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(t,e,n){return e*r+n})),t.apply(this,e),this.font=n}}(s.strokeText),s.drawImage=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);this.scale(r,r),t.apply(this,arguments),this.scale(1/r,1/r)}}(s.drawImage))},a252:function(t,e,n){"use strict";var i=n("967f"),r=n.n(i);r.a},a34f:function(t,e,n){"use strict";function i(t,e){if(e){if(0===e.indexOf("/"))return e}else{if(e=t,0===e.indexOf("/"))return e;var n=getCurrentPages();t=n.length?n[n.length-1].$page.route:""}if(0===e.indexOf("./"))return i(t,e.substr(2));for(var r=e.split("/"),o=r.length,a=0;a<o&&".."===r[a];a++);r.splice(0,a),e=r.join("/");var s=t.length>0?t.split("/"):[];return s.splice(s.length-a-1,a+1),"/"+s.concat(r).join("/")}n.d(e,"a",(function(){return u}));var r,o=/^([a-z-]+:)?\/\//i,a=/^data:.*,.*/;function s(t){return plus.io.convertLocalFileSystemURL(t).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")}function c(t){return r||(r="file://"+s("_www")+"/"),r+t}function u(t){if(0===t.indexOf("/"))return 0===t.indexOf("//")?"https:"+t:t.startsWith("/storage/")||t.startsWith("/sdcard/")||t.includes("/Containers/Data/Application/")?"file://"+t:c(t.substr(1));if(o.test(t)||a.test(t)||0===t.indexOf("blob:"))return t;if(0===t.indexOf("_www")||0===t.indexOf("_do"))return"file://"+s(t);var e=getCurrentPages();return e.length?c(i(e[e.length-1].$page.route,t).substr(1)):t}},a3e5:function(t,e,n){"use strict";var i=n("eec9"),r=n.n(i);r.a},a521:function(t,e,n){"use strict";(function(t){var i=n("8af1"),r=n("0aa0"),o=["getCenterLocation","moveToLocation","getRegion","getScale","$getAppMap"],a=["latitude","longitude","scale","markers","polyline","polygons","circles","controls","show-location"],s=function(t,e,n){n({coord:{latitude:e,longitude:t}})};function c(t){if(0!==t.indexOf("#"))return{color:t,opacity:1};var e=t.substr(7,2);return{color:t.substr(0,7),opacity:e?Number("0x"+e)/255:1}}e["a"]={name:"Map",mixins:[i["f"],r["a"]],props:{id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},polygons:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}}},data:function(){return{style:{top:"0px",left:"0px",width:"0px",height:"0px",position:"static"},hidden:!1}},computed:{attrs:function(){var t=this,e={};return a.forEach((function(n){var i=t.$props[n];i="src"===n?t.$getRealPath(i):i,e[n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))]=i})),e},mapControls:function(){var t=this,e=this.controls.map((function(e){var n={position:"absolute"};return["top","left","width","height"].forEach((function(t){e.position[t]&&(n[t]=e.position[t]+"px")})),{id:e.id,iconPath:t.$getRealPath(e.iconPath),position:n}}));return e}},watch:{hidden:function(t){this.map&&this.map[t?"hide":"show"]()},scale:function(t){this.map&&this.map.setZoom(parseInt(t))},latitude:function(t){this.map&&this.map.setStyles({center:new plus.maps.Point(this.longitude,this.latitude)})},longitude:function(t){this.map&&this.map.setStyles({center:new plus.maps.Point(this.longitude,this.latitude)})},markers:function(t){this.map&&this._addMarkers(t,!0)},polyline:function(t){this.map&&this._addMapLines(t)},circles:function(t){this.map&&this._addMapCircles(t)},polygons:function(t){this.map&&this._addMapPolygons(t)}},mounted:function(){var t=this;this._onParentReady((function(){var e=Object.assign({},t.attrs,t.position);t.latitude&&t.longitude&&(e.center=new plus.maps.Point(t.longitude,t.latitude));var n=t.map=plus.maps.create(t.$page.id+"-map-"+(t.id||Date.now()),e);n.__markers__=[],n.__markers_map__={},n.__lines__=[],n.__circles__=[],n.__polygons__=[],n.setZoom(parseInt(t.scale)),plus.webview.currentWebview().append(n),t.hidden&&n.hide(),t.$watch("position",(function(){t.map&&t.map.setStyles(t.position)}),{deep:!0}),n.onclick=function(e){t.$trigger("click",{},e)},n.onstatuschanged=function(e){t.$trigger("regionchange",{},{})},t._addMarkers(t.markers),t._addMapLines(t.polyline),t._addMapCircles(t.circles),t._addMapPolygons(t.polygons)}))},beforeDestroy:function(){this.map&&this.map.close(),delete this.map},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n;o.includes(e)&&this.map&&this[e](i)},moveToLocation:function(t){var e=t.callbackId,n=t.longitude,i=t.latitude;this.map.setCenter(new plus.maps.Point(n||this.longitude,i||this.latitude)),this._publishHandler(e,{errMsg:"moveToLocation:ok"})},getCenterLocation:function(t){var e=this,n=t.callbackId;this.map.getCurrentCenter((function(t,i){e._publishHandler(n,{longitude:i.longitude,latitude:i.latitude,errMsg:"getCenterLocation:ok"})}))},getRegion:function(t){var e=t.callbackId,n=this.map.getBounds();this._publishHandler(e,{southwest:n.southwest,northeast:n.northeast||n.northease,errMsg:"getRegion:ok"})},getScale:function(t){var e=t.callbackId;this._publishHandler(e,{scale:this.map.getZoom(),errMsg:"getScale:ok"})},controlclick:function(t){this.$trigger("controltap",{},{controlId:t.id})},_publishHandler:function(e,n){t.publishHandler("onMapMethodCallback",{callbackId:e,data:n},this.$page.id)},_addMarker:function(t,e){var n=this,i=e.id,r=e.latitude,o=e.longitude,a=e.iconPath,c=e.callout,u=e.label;s(o,r,(function(e){var r=e.coord,o=r.latitude,s=r.longitude,l=new plus.maps.Marker(new plus.maps.Point(s,o));a&&l.setIcon(n.$getRealPath(a)),u&&u.content&&l.setLabel(u.content);var h=!1;c&&c.content&&(h=new plus.maps.Bubble(c.content)),h&&l.setBubble(h),(i||0===i)&&(l.onclick=function(t){n.$trigger("markertap",{},{markerId:i,latitude:o,longitude:s})},h&&(h.onclick=function(){n.$trigger("callouttap",{},{markerId:i})})),t.addOverlay(l),t.__markers__.push(l),t.__markers_map__[i+""]=l}))},_clearMarkers:function(){var t=this.map,e=t.__markers__;e.forEach((function(e){t.removeOverlay(e)})),t.__markers__=[],t.__markers_map__={}},_addMarkers:function(t,e){var n=this;e&&this._clearMarkers(),t.forEach((function(t){n._addMarker(n.map,t)}))},_translateMapMarker:function(t){t.autoRotate,t.callbackId;var e=t.destination,n=(t.duration,t.markerId),i=this.map.__markers_map__[n+""];i&&i.setPoint(new plus.maps.Point(e.longitude,e.latitude))},_addMapLines:function(t){var e=this.map;e.__lines__.length>0&&(e.__lines__.forEach((function(t){e.removeOverlay(t)})),e.__lines__=[]),t.forEach((function(t){var n=t.color,i=t.width,r=t.points.map((function(t){return new plus.maps.Point(t.longitude,t.latitude)})),o=new plus.maps.Polyline(r);if(n){var a=c(n);o.setStrokeColor(a.color),o.setStrokeOpacity(a.opacity)}i&&o.setLineWidth(i),e.addOverlay(o),e.__lines__.push(o)}))},_addMapCircles:function(t){var e=this.map;e.__circles__.length>0&&(e.__circles__.forEach((function(t){e.removeOverlay(t)})),e.__circles__=[]),t.forEach((function(t){var n=t.latitude,i=t.longitude,r=t.color,o=t.fillColor,a=t.radius,s=t.strokeWidth,u=new plus.maps.Circle(new plus.maps.Point(i,n),a);if(r){var l=c(r);u.setStrokeColor(l.color),u.setStrokeOpacity(l.opacity)}if(o){var h=c(o);u.setFillColor(h.color),u.setFillOpacity(h.opacity)}s&&u.setLineWidth(s),e.addOverlay(u),e.__circles__.push(u)}))},_addMapPolygons:function(t){var e=this.map,n=e.__polygons__;n.forEach((function(t){e.removeOverlay(t)})),n.length=0,t.forEach((function(t){var i=t.points,r=t.strokeWidth,o=t.strokeColor,a=t.fillColor,s=[];i&&i.forEach((function(t){var e=t.latitude,n=t.longitude;s.push(new plus.maps.Point(n,e))}));var u=new plus.maps.Polygon(s);if(o){var l=c(o);u.setStrokeColor(l.color),u.setStrokeOpacity(l.opacity)}if(a){var h=c(a);u.setFillColor(h.color),u.setFillOpacity(h.opacity)}r&&u.setLineWidth(r),e.addOverlay(u),n.push(u)}))}}}}).call(this,n("501c"))},a53f:function(t,e,n){"use strict";function i(){return plus.navigator.isImmersedStatusbar()?Math.round("iOS"===plus.os.name?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}n.d(e,"a",(function(){return o}));var r=n("65a8");function o(){var t=plus.webview.currentWebview(),e=t.getStyle();return e=e&&e.titleNView,e&&"default"===e.type?r["a"]+i():0}},a5ec:function(t,e,n){"use strict";var i=n("9c39"),r=n.n(i);r.a},a66e:function(t,e,n){},a6b0:function(t,e,n){"use strict";n.d(e,"d",(function(){return w})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return k})),n.d(e,"a",(function(){return x}));var i=n("4617"),r=(n("f2b3"),n("65a8"),n("39aa")),o=n("80e5"),a=n("b3b1"),s=n("2209"),c=n("02ed");function u(t){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h,d,f="zh-Hans",p="zh-Hant",v="en",m="fr",g="es",_={};function b(){if(C()){var t=Object.keys(__uniConfig.locales);t.length&&t.forEach((function(t){var e=_[t],n=__uniConfig.locales[t];e?Object.assign(e,n):_[t]=n}))}}Object.assign(_,(h={},l(h,v,r),l(h,g,o),l(h,m,a),l(h,f,s),l(h,p,c),h)),d="object"===("undefined"===typeof weex?"undefined":u(weex))?weex.requireModule("plus").getLanguage():"",b();var y=Object(i["a"])(d,_),w=y.t,S=y.mixin={beforeCreate:function(){var t=this,e=y.i18n.watchLocale((function(){t.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:function(t,e){return w(t,e)}}},k=y.setLocale,x=y.getLocale;function C(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}},a878:function(t,e,n){"use strict";var i,r=n("f2b3"),o=!r["l"]||{passive:!0,capture:!0},a=[],s=0;function c(t){a.forEach((function(e){return e.userInteract=t}))}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i){var e=["touchstart","touchmove","touchend","mousedown","mouseup"];e.forEach((function(t){document.addEventListener(t,(function(){!s&&c(!0),s++,setTimeout((function(){!--s&&c(!1)}),0)}),o)})),i=!0}a.push(t)}function l(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)}e["a"]={data:function(){return{userInteract:!1}},mounted:function(){u(this)},beforeDestroy:function(){l(this)},addInteractListener:u,getStatus:function(){return!!s}}},b18e:function(t,e,n){},b253:function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){return function(){var e,n=h(t);if(l()){var i=h(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return c(this,e)}}function c(t,e){return!e||"object"!==i(e)&&"function"!==typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}n.d(e,"a",(function(){return q}));var d=function(t){var e=t.import("blots/block/embed"),n=function(t){o(n,t);var e=s(n);function n(){return r(this,n),e.apply(this,arguments)}return n}(e);return n.blotName="divider",n.tagName="HR",{"formats/divider":n}};function f(t){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){return function(){var e,n=w(t);if(y()){var i=w(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return _(this,e)}}function _(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var S=function(t){var e=t.import("blots/inline"),n=function(t){v(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(e);return n.blotName="ins",n.tagName="INS",{"formats/ins":n}},k=function(t){var e=t.import("parchment"),n=e.Scope,i=e.Attributor,r={scope:n.BLOCK,whitelist:["left","right","center","justify"]},o=new i.Style("align","text-align",r);return{"formats/align":o}},x=function(t){var e=t.import("parchment"),n=e.Scope,i=e.Attributor,r={scope:n.BLOCK,whitelist:["rtl"]},o=new i.Style("direction","direction",r);return{"formats/direction":o}};function C(t){return C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function E(t,e,n){return e&&$(t.prototype,e),n&&$(t,n),t}function I(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}function A(t,e){return A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},A(t,e)}function M(t){return function(){var e,n=R(t);if(L()){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return P(this,e)}}function P(t,e){return!e||"object"!==C(e)&&"function"!==typeof e?j(t):e}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function N(t,e,n){return N="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=D(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},N(t,e,n||t)}function D(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=R(t),null===t)break;return t}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}var B=function(t){var e=t.import("parchment"),n=t.import("blots/container"),i=t.import("formats/list/item"),r=function(t){I(r,t);var n=M(r);function r(t){var i;O(this,r),i=n.call(this,t);var o=function(n){if(n.target.parentNode===t){var r=i.statics.formats(t),o=e.find(n.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("click",o),i}return E(r,null,[{key:"create",value:function(t){var e="ordered"===t?"OL":"UL",n=N(R(r),"create",this).call(this,e);return"checked"!==t&&"unchecked"!==t||n.setAttribute("data-checked","checked"===t),n}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),E(r,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return T({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,e){if(t instanceof i)N(R(r.prototype),"insertBefore",this).call(this,t,e);else{var n=null==e?this.length():e.offset(this),o=this.split(n);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){N(R(r.prototype),"optimize",this).call(this,t);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&e.domNode.tagName===this.domNode.tagName&&e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(e.moveChildren(this),e.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=e.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}N(R(r.prototype),"replace",this).call(this,t)}}]),r}(n);return r.blotName="list",r.scope=e.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[i],{"formats/list":r}},F=function(t){var e=t.import("parchment"),n=e.Scope,i=t.import("formats/background"),r=new i.constructor("backgroundColor","background-color",{scope:n.INLINE});return{"formats/backgroundColor":r}},z=n("f2b3"),V=function(t){var e=t.import("parchment"),n=e.Scope,i=e.Attributor,r={scope:n.BLOCK},o=["margin","marginTop","marginBottom","marginLeft","marginRight"],a=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],s={};return o.concat(a).forEach((function(t){s["formats/".concat(t)]=new i.Style(t,Object(z["i"])(t),r)})),s},H=function(t){var e=t.import("parchment"),n=e.Scope,i=e.Attributor,r={scope:n.INLINE},o=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],a={};return o.forEach((function(t){a["formats/".concat(t)]=new i.Style(t,Object(z["i"])(t),r)})),a},Y=function(t){var e=t.import("parchment"),n=e.Scope,i=e.Attributor,r=[{name:"lineHeight",scope:n.BLOCK},{name:"letterSpacing",scope:n.INLINE},{name:"textDecoration",scope:n.INLINE},{name:"textIndent",scope:n.BLOCK}],o={};return r.forEach((function(t){var e=t.name,n=t.scope;o["formats/".concat(e)]=new i.Style(e,Object(z["i"])(e),{scope:n})})),o},U=n("a34f"),W=function(t){var e=t.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];e.sanitize=function(t){return t?Object(U["a"])(t):t},e.formats=function(t){return n.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})};var i=e.prototype.format;e.prototype.format=function(t,e){n.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):i.call(this,t,e)}},X=function(t){var e=t.import("formats/link");e.sanitize=function(t){var n=document.createElement("a");n.href=t;var i=n.href.slice(0,n.href.indexOf(":"));return e.PROTOCOL_WHITELIST.concat("file").indexOf(i)>-1?t:e.SANITIZED_URL}};function q(t){var e={divider:d,ins:S,align:k,direction:x,list:B,background:F,box:V,font:H,text:Y,image:W,link:X},n={};Object.values(e).forEach((function(e){return Object.assign(n,e(t))})),t.register(n,!0)}},b282:function(t,e,n){"use strict";(function(t){var i=n("f2b3"),r=n("5cf8"),o=n("5a23"),a=n("a878");t.subscribe("getSelectedTextRange",(function(e){var n=e.pageId,i=e.callbackId,r=document.activeElement,o=r.tagName.toLowerCase(),a=["input","textarea"],s={};a.includes(o)?(s.errMsg="getSelectedTextRange:ok",s.start=r.selectionStart,s.end=r.selectionEnd):s.errMsg="getSelectedTextRange:fail no focused",t.publishHandler("onGetSelectedTextRange",{callbackId:i,data:s},n)}));var s,c=200;e["a"]={name:"Field",mixins:[r["a"],o["a"],a["a"]],model:{prop:"value",event:"update:value"},props:{value:{type:[String,Number],default:""},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0}},data:function(){return{composing:!1,valueSync:this._getValueString(this.value,this.type),focusSync:this.focus,fixColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image")}},watch:{focus:function(t){t?this._focus():this._blur()},focusSync:function(t){this.$emit("update:focus",t)},cursorNumber:function(){this._checkCursor()},selectionStartNumber:function(){this._checkSelection()},selectionEndNumber:function(){this._checkSelection()}},computed:{needFocus:function(){return this.autoFocus||this.focus},cursorNumber:function(){var t=Number(this.cursor);return isNaN(t)?-1:t},selectionStartNumber:function(){var t=Number(this.selectionStart);return isNaN(t)?-1:t},selectionEndNumber:function(){var t=Number(this.selectionEnd);return isNaN(t)?-1:t}},created:function(){var t=this,e=this.__valueChange=Object(i["c"])((function(e){t.valueSync=t._getValueString(e,t.type)}),100);this.$watch("value",e),this.__triggerInput=Object(i["m"])((function(e,n){t.__valueChange.cancel(),t.$emit("update:value",n.value),t.$trigger("input",e,n)}),100),this.$triggerInput=function(e,n,i){t.__valueChange.cancel(),t.__triggerInput(e,n),i&&t.__triggerInput.flush()}},beforeDestroy:function(){this.__valueChange.cancel(),this.__triggerInput.cancel()},directives:{field:{inserted:function(t,e,n){n.context._initField(t)}}},methods:{_getValueString:function(t,e){return"number"===e&&isNaN(Number(t))&&(t=""),null===t?"":String(t)},_initField:function(t){var e=this;this._field=t,s=s||Date.now(),this.needFocus&&setTimeout((function(){e._focus()}))},_focus:function(){if(this.needFocus){var t=this._field;if(t&&window.plus){var e=c-(Date.now()-s);e>0?setTimeout(this._focus.bind(this),e):(t.focus(),this.userInteract||plus.key.showSoftKeybord())}else setTimeout(this._focus.bind(this),100)}},_blur:function(){var t=this._field;t&&t.blur()},_onFocus:function(t){this.focusSync=!0,this.$trigger("focus",t,{value:this.valueSync}),this._checkSelection(),this._checkCursor()},_onBlur:function(t){this.composing&&(this.composing=!1,this._onInput(t,!0)),this.focusSync=!1;var e,n=t.target;"number"===n.type?(n.type="text",e=n.selectionEnd,n.type="number"):e=n.selectionEnd,this.$trigger("blur",t,{value:this.valueSync,cursor:e})},_checkSelection:function(){var t=this._field;this.focusSync&&this.selectionStartNumber>-1&&this.selectionEndNumber>-1&&"number"!==t.type&&(t.selectionStart=this.selectionStartNumber,t.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var t=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==t.type&&(t.selectionEnd=t.selectionStart=this.cursorNumber)}}}}).call(this,n("501c"))},b34d:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-form",t._g({},t.$listeners),[n("span",[t._t("default")],2)])},r=[],o=n("8af1"),a={name:"Form",mixins:[o["e"]],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(t){var e={};this.childrenList.forEach((function(t){t._getFormData&&t._getFormData().key&&(e[t._getFormData().key]=t._getFormData().value)})),this.$trigger("submit",t,{value:e})},_onReset:function(t){this.$trigger("reset",t,{}),this.childrenList.forEach((function(t){t._resetFormData&&t._resetFormData()}))},_formGroupUpdateHandler:function(t){if("add"===t.type)this.childrenList.push(t.vm);else{var e=this.childrenList.indexOf(t.vm);this.childrenList.splice(e,1)}}}},s=a,c=n("0c7c"),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},b3b1:function(t){t.exports=JSON.parse('{"uni.app.quit":"Appuyez 脿 nouveau pour quitter l\'application","uni.async.error":"La connexion a expir茅, cliquez sur l\'茅cran pour r茅essayer.","uni.showActionSheet.cancel":"Annuler","uni.showToast.unpaired":"Veuillez noter que showToast doit 锚tre associ茅 脿 hideToast","uni.showLoading.unpaired":"Veuillez noter que showLoading doit 锚tre associ茅 脿 hideLoading","uni.showModal.cancel":"Annuler","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Annuler","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Cam茅ra","uni.chooseVideo.cancel":"Annuler","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Cam茅ra","uni.chooseFile.notUserActivation":"La bo卯te de dialogue du s茅lecteur de fichier ne peut 锚tre affich茅e qu\'avec une activation par l\'utilisateur","uni.previewImage.cancel":"Annuler","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Enregistr茅 avec succ猫s","uni.previewImage.save.fail":"脡chec de la sauvegarde","uni.setClipboardData.success":"Contenu copi茅","uni.scanCode.title":"Code d鈥檃nalyse","uni.scanCode.album":"Album","uni.scanCode.fail":"Fallo de reconocimiento","uni.scanCode.flash.on":"Appuyez pour activer l\'茅clairage","uni.scanCode.flash.off":"Appuyez pour d茅sactiver l\'茅clairage","uni.startSoterAuthentication.authContent":"Reconnaissance de l\'empreinte digitale","uni.startSoterAuthentication.waitingContent":"M茅connaissable","uni.picker.done":"OK","uni.picker.cancel":"Annuler","uni.video.danmu":"Danmu","uni.video.volume":"Le Volume","uni.button.feedback.title":"retour d\'information","uni.button.feedback.send":"envoyer","uni.chooseLocation.search":"Trouve","uni.chooseLocation.cancel":"Annuler"}')},b705:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-rich-text",t._g({},t.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._updateView()}}})],1)])},r=[],o=n("18fd");function a(t){return t.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function s(t){return t.reduce((function(t,e){var n=e.value,i=e.name;return n.match(/ /)&&-1===["style","src"].indexOf(i)&&(n=n.split(" ")),t[i]?Array.isArray(t[i])?t[i].push(n):t[i]=[t[i],n]:t[i]=n,t}),{})}function c(t){t=a(t);var e=[],n={node:"root",children:[]};return Object(o["a"])(t,{start:function(t,i,r){var o={name:t};if(0!==i.length&&(o.attrs=s(i)),r){var a=e[0]||n;a.children||(a.children=[]),a.children.push(o)}else e.unshift(o)},end:function(t){var i=e.shift();if(i.name!==t&&console.error("invalid state: mismatch end tag"),0===e.length)n.children.push(i);else{var r=e[0];r.children||(r.children=[]),r.children.push(i)}},chars:function(t){var i={type:"text",text:t};if(0===e.length)n.children.push(i);else{var r=e[0];r.children||(r.children=[]),r.children.push(i)}},comment:function(t){var n={node:"comment",text:t},i=e[0];i.children||(i.children=[]),i.children.push(n)}}),n.children}var u=n("f2b3"),l=n("a34f"),h={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},d={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function f(t){return t.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(t,e){if(Object(u["e"])(d,e)&&d[e])return d[e];if(/^#[0-9]{1,4}$/.test(e))return String.fromCharCode(e.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(e))return String.fromCharCode("0"+e.slice(1));var n=document.createElement("div");return n["inner"+"HTML"]=t,n.innerText||n.textContent}))}function p(t,e,n){return"img"===t&&"src"===e?Object(l["a"])(n):n}function v(t,e,n,i){return t.forEach((function(t){if(Object(u["g"])(t))if(Object(u["e"])(t,"type")&&"node"!==t.type)"text"===t.type&&"string"===typeof t.text&&""!==t.text&&e.appendChild(document.createTextNode(f(t.text)));else{if("string"!==typeof t.name||!t.name)return;var r=t.name.toLowerCase();if(!Object(u["e"])(h,r))return;var o=document.createElement(r);if(!o)return;var a=t.attrs;if(n&&o.setAttribute(n,""),Object(u["g"])(a)){var s=h[r]||[];Object.keys(a).forEach((function(t){var e=a[t];switch(t){case"class":Array.isArray(e)&&(e=e.join(" "));case"style":o.setAttribute(t,e);break;default:-1!==s.indexOf(t)&&o.setAttribute(t,p(r,t,e))}}))}m(t,o,i);var c=t.children;Array.isArray(c)&&c.length&&v(t.children,o,n,i),e.appendChild(o)}})),e}function m(t,e,n){["a","img"].includes(t.name)&&n&&(e.setAttribute("onClick","return false;"),e.addEventListener("click",(function(e){n(e,{node:t}),e.stopPropagation()}),!0))}var g={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(t){this._renderNodes(t)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(t){var e="",n=this;while(n)!e&&(e=n.$options._scopeId),n=n.$parent;var i=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof t&&(t=c(t));var r=v(t,document.createDocumentFragment(),e,i&&this.triggerItemClick);r.appendChild(this.$refs.sensor.$el);var o=this.$refs.content;o["inner"+"HTML"]="",o.appendChild(r)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",t,e)}}},_=g,b=n("0c7c"),y=Object(b["a"])(_,i,r,!1,null,null,null);e["default"]=y.exports},ba15:function(t,e,n){"use strict";var i=function(t,e,n,i){t.addEventListener(e,(function(t){"function"===typeof n&&!1===n(t)&&(t.preventDefault(),t.stopPropagation())}),{capture:i,passive:!1})};e["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(t,e,n){var r,o,a,s=this,c=this,u=0,l=0,h=0,d=0,f=function(t,n,i,r){if(!1===c[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:n,x:i,y:r,dx:i-u,dy:r-l,ddx:i-h,ddy:r-d,timeStamp:t.timeStamp}}))return!1},p=null;i(t,"touchstart",(function(t){if(o=!0,1===t.touches.length&&!p)return p=t,u=h=t.touches[0].pageX,l=d=t.touches[0].pageY,f(t,"start",u,l)})),i(t,"mousedown",(function(t){if(a=!0,!o&&!p)return p=t,u=h=t.pageX,l=d=t.pageY,f(t,"start",u,l)})),i(t,"touchmove",(function(t){if(1===t.touches.length&&p){var e=f(t,"move",t.touches[0].pageX,t.touches[0].pageY);return h=t.touches[0].pageX,d=t.touches[0].pageY,e}}));var v=this.__clickEventListener=function(t){t.preventDefault(),t.stopPropagation()},m=this.__mouseMoveEventListener=function(t){if(!o&&a&&p){!r&&(Math.abs(h-u)>2||Math.abs(d-l)>2)&&(document.addEventListener("click",v,!0),r=!0);var e=f(t,"move",t.pageX,t.pageY);return h=t.pageX,d=t.pageY,e}};document.addEventListener("mousemove",m),i(t,"touchend",(function(t){if(0===t.touches.length&&p)return o=!1,p=null,f(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)}));var g=this.__mouseUpEventListener=function(t){if(a=!1,!o&&p)return r&&setTimeout((function(){document.removeEventListener("click",s.__clickEventListener,!0),r=!1}),0),p=null,f(t,"end",t.pageX,t.pageY)};document.addEventListener("mouseup",g),i(t,"touchcancel",(function(t){if(p){o=!1;var e=p;return p=null,f(t,n?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}}))}}}},bacd:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-canvas",t._g({attrs:{"canvas-id":t.canvasId,"disable-scroll":t.disableScroll}},t._listeners),[n("canvas",{ref:"canvas",attrs:{width:"300",height:"150"}}),n("div",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}},[t._t("default")],2),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],1)},r=[],o=n("e6c5"),a=o["a"],s=(n("0741"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},bb67:function(t,e,n){},bb8c:function(t,e,n){},be7f:function(t,e,n){"use strict";var i="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){var e=Array.prototype.slice.call(arguments,1);while(e.length){var n=e.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,a;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(a=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,r),r+=o.length;return a}},a={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(i)},bfea:function(t,e,n){"use strict";var i=n("e71c"),r=n.n(i);r.a},c492:function(t,e,n){"use strict";(function(t){var i=n("8af1"),r=n("0aa0"),o=["adpid","data"];e["a"]={name:"Ad",mixins:[i["f"],r["a"]],props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},data:function(){return{hidden:!1}},computed:{attrs:function(){var t=this,e={};return o.forEach((function(n){var i=t.$props[n];i="src"===n?t.$getRealPath(i):i,e[n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))]=i})),e}},watch:{hidden:function(t){this.adView&&this.adView[t?"hide":"show"]()},adpid:function(t){t&&this._loadData(t)},data:function(t){t&&this._fillData(t)}},mounted:function(){var e=this;this._onParentReady((function(){e._adId="AdView-"+e._newGUID();var n=Object.assign({id:e._adId},e.position),i=e.adView=plus.ad.createAdView(n);i.interceptTouchEvent(!1),plus.webview.currentWebview().append(i),e.hidden&&i.hide(),e.$watch("attrs",(function(){e._request()}),{deep:!0}),e.$watch("position",(function(){e.adView&&e.adView.setStyle(e.position)}),{deep:!0}),i.setDislikeListener&&i.setDislikeListener((function(t){e.adView&&e.adView.close(),e.$refs.container.style.height="0px",e._updateView(),e.$trigger("close",{},t)})),i.setRenderingListener&&i.setRenderingListener((function(t){0===t.result?(e.$refs.container.style.height=t.height+"px",e._updateView()):e.$trigger("error",{},{errCode:t.result})})),i.setAdClickedListener((function(t){e.$trigger("adclicked",{},t)})),e._callbackId=e.$page.id+e._adId,t.subscribe(e._callbackId,e._handleAdData.bind(e)),e._request()}))},beforeDestroy:function(){this.adView&&this.adView.close(),delete this.adView},methods:{_handleAdData:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n;switch(e){case"success":this._fillData(i);break;case"fail":this.$trigger("error",{},i);break}},_request:function(){this.adView&&(this.data?this._fillData(this.data):this.adpid&&this._loadData())},_loadData:function(e){var n={adpid:e||this.adpid,width:this.position.width,count:this.dataCount,ext:{channel:this.channel}};t.publishHandler("onAdMethodCallback",{callbackId:this._callbackId,data:n},this.$page.id)},_fillData:function(t){this.adView.renderingBind(t),this.$trigger("load",{},{})},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},_newGUID:function(){for(var t="",e="xxxxxxxx-xxxx",n=0;n<e.length;n++)"x"===e[n]?t+=(16*Math.random()|0).toString(16):t+=e[n];return t.toUpperCase()}}}}).call(this,n("501c"))},c4c5:function(t,e,n){"use strict";(function(t,i){n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return f}));var r=n("f2b3");function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}var c=/^\s+|\s+$/g,u=/\s+/;function l(t,e,n){var i=[],r=function(t){return r=n?function(t){return!e.contains(t)}:function(t){return e.contains(t)},r(t)};return t.forEach((function(t){t=t.replace(c,""),r(t)&&i.push(t)})),i}function h(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}var d=function(){function e(t){o(this,e),this.$vm=t,Object.defineProperty(this,"$el",{get:function(){return t.$el}})}return s(e,[{key:"selectComponent",value:function(t){if(this.$el&&t){var e=this.$el.querySelector(t),n=e.__vue__||e;return n.$getComponentDescriptor&&n.$getComponentDescriptor(n,!1)}}},{key:"selectAllComponents",value:function(t){if(!this.$el||!t)return[];for(var e=[],n=this.$el.querySelectorAll(t),i=0;i<n.length;i++){var r=n[i],o=r.__vue__||r;o.$getComponentDescriptor&&e.push(o.$getComponentDescriptor(o,!1))}return e}},{key:"setStyle",value:function(t){return this.$el&&t?("string"===typeof t&&(t=h(t)),Object(r["g"])(t)&&(this.$el.__wxsStyle=t,this.$vm.$forceUpdate()),this):this}},{key:"addClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!this.$el||!e.length)return this;var i=l(e,this.$el.classList,!0);if(i.length){var r=this.$el.__wxsAddClass||"";this.$el.__wxsAddClass=r+(r?" ":"")+i.join(" "),this.$vm.$forceUpdate()}return this}},{key:"removeClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!this.$el||!e.length)return this;var i=this.$el.classList,r=this.$el.__wxsAddClass?this.$el.__wxsAddClass.split(u):[],o=l(e,i,!1);if(o.length){var a=[];o.forEach((function(t){var e=r.findIndex((function(e){return e===t}));-1!==e&&r.splice(e,1),a.push(t)})),this.$el.__wxsRemoveClass=a,this.$el.__wxsAddClass=r.join(" "),this.$vm.$forceUpdate()}return this}},{key:"hasClass",value:function(t){return this.$el&&this.$el.classList.contains(t)}},{key:"getComputedStyle",value:function(){return this.$el?window.getComputedStyle(this.$el):{}}},{key:"getDataset",value:function(){return this.$el&&this.$el.dataset}},{key:"callMethod",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e in this.$vm?this.$vm[e](JSON.parse(JSON.stringify(n))):this.$vm._$id&&t.publishHandler("onWxsInvokeCallMethod",{cid:this.$vm._$id,method:e,args:n})}},{key:"requestAnimationFrame",value:function(t){return i.requestAnimationFrame(t),this}},{key:"getState",value:function(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}},{key:"triggerEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.$vm.$emit(t,e),this}},{key:"setTimeout",value:function(t,e){return window.setTimeout(t,e)}},{key:"clearTimeout",value:function(t){return window.clearTimeout(t)}},{key:"getBoundingClientRect",value:function(){return this.$el.getBoundingClientRect()}}]),e}();function f(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&t&&t.$options.name&&0===t.$options.name.indexOf("VUni")&&(t=t.$parent),t)return"__wxsComponentDescriptor"in t||(t.__wxsComponentDescriptor=new d(t)),t.__wxsComponentDescriptor}}).call(this,n("501c"),n("c8ba"))},c61c:function(t,e,n){"use strict";n.r(e);var i=n("f2b3"),r=n("2a0a");function o(t){return Math.sqrt(t.x*t.x+t.y*t.y)}var a,s,c={name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},created:function(){this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){this._resize(),Object(r["b"])()},methods:{_resize:function(){this._getWH(),this.items.forEach((function(t,e){t.componentInstance.setParent()}))},_find:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this.$el;function i(t){for(var r=0;r<e.length;r++){var o=e[r];if(t===o.componentInstance.$el)return o}return t===n||t===document.body||t===document?null:i(t.parentNode)}return i(t)},_touchstart:function(t){Object(r["a"])({disable:!0});var e=t.touches;if(e&&e.length>1){var n={x:e[1].pageX-e[0].pageX,y:e[1].pageY-e[0].pageY};if(this.pinchStartLen=o(n),this.gapV=n,!this.scaleArea){var i=this._find(e[0].target),a=this._find(e[1].target);this._scaleMovableView=i&&i===a?i:null}}},_touchmove:function(t){var e=t.touches;if(e&&e.length>1){t.preventDefault();var n={x:e[1].pageX-e[0].pageX,y:e[1].pageY-e[0].pageY};if(null!==this.gapV.x&&this.pinchStartLen>0){var i=o(n)/this.pinchStartLen;this._updateScale(i)}this.gapV=n}},_touchend:function(t){Object(r["a"])({disable:!1});var e=t.touches;e&&e.length||t.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this.items.forEach((function(t){t.componentInstance._endScale()})):this._scaleMovableView&&this._scaleMovableView.componentInstance._endScale())},_updateScale:function(t){t&&1!==t&&(this.scaleArea?this.items.forEach((function(e){e.componentInstance._setScale(t)})):this._scaleMovableView&&this._scaleMovableView.componentInstance._setScale(t))},_getWH:function(){var t=window.getComputedStyle(this.$el),e=this.$el.getBoundingClientRect();this.width=e.width-["Left","Right"].reduce((function(e,n){return e+parseFloat(t["border"+n+"Width"])+parseFloat(t["padding"+n])}),0),this.height=e.height-["Top","Bottom"].reduce((function(e,n){return e+parseFloat(t["border"+n+"Width"])+parseFloat(t["padding"+n])}),0)}},render:function(t){var e=this,n=[],r=this.$slots.default&&Object(i["d"])(this.$slots.default,t);r&&r.forEach((function(t){t.componentOptions&&"v-uni-movable-view"===t.componentOptions.tag&&n.push(t)})),this.items=n;var o=Object.assign({},this.$listeners),a=["touchstart","touchmove","touchend"];return a.forEach((function(t){var n=o[t],i=e["_".concat(t)];o[t]=n?[].concat(n,i):i})),t("uni-movable-area",{on:o},[t("v-uni-resize-sensor",{on:{resize:this._resize}}),r])}},u=c,l=(n("a3e5"),n("0c7c")),h=Object(l["a"])(u,a,s,!1,null,null,null);e["default"]=h.exports},c834:function(t,e,n){"use strict";function i(t,e,n,i){var r=65535&t|0,o=t>>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{r=r+e[i++]|0,o=o+r|0}while(--a);r%=65521,o%=65521}return r|o<<16|0}t.exports=i},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8ed:function(t,e,n){"use strict";var i=n("e9f0"),r=n.n(i);r.a},c96e:function(t,e,n){"use strict";var i=n("7822"),r=n.n(i);r.a},d16b:function(t,e){(function(){var t=Object.defineProperty,e=document.createElement,n=new Map,i=new Map;function r(){var t=this.constructor;if(!n.has(t))throw new TypeError("Illegal constructor");var i=n.get(t),r=e.call(document,i);return Object.setPrototypeOf(r,t.prototype)}"customElements"in window&&customElements&&customElements.define||(t(r.prototype=HTMLElement.prototype,"constructor",{value:r}),t(window,"HTMLElement",{configurable:!0,value:r}),t(document,"createElement",{configurable:!0,value:function(t,n){var r=n&&n.is,o=r?i.get(r):i.get(t);return o?new o:e.call(document,t)}}),t(window,"customElements",{configurable:!0,value:{define:function(t,e){if(i.has(t))throw new Error('the name "'.concat(t,'" has already been used with this registry'));n.set(e,t),i.set(t,e)}}}))})()},d3bd:function(t,e,n){"use strict";n.r(e);var i,r,o=n("a6b0"),a=n("8af1"),s={name:"Button",mixins:[a["c"],a["a"],a["e"]],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},formType:{type:String,default:"",validator:function(t){return~["","submit","reset"].indexOf(t)}},openType:{type:String,default:""}},data:function(){return{clickFunction:null}},methods:{_onClick:function(t,e){if(!this.disabled)if(e&&this.$el.click(),this.formType)this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType});else if("feedback"===this.openType){var n=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:Object(o["d"])("uni.button.feedback.title"),autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:Object(o["d"])("uni.button.feedback.send"),color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(t){n.evalJS('mui&&mui.trigger(document.getElementById("submit"),"tap")')}}]}});n.show("slide-in-right")}},_bindObjectListeners:function(t,e){if(e)for(var n in e){var i=t.on[n],r=e[n];t.on[n]=i?[].concat(i,r):r}return t}},render:function(t){var e=this,n=Object.create(null);return this.$listeners&&Object.keys(this.$listeners).forEach((function(t){(!e.disabled||"click"!==t&&"tap"!==t)&&(n[t]=e.$listeners[t])})),this.hoverClass&&"none"!==this.hoverClass?t("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{touchstart:this._hoverTouchStart,touchend:this._hoverTouchEnd,touchcancel:this._hoverTouchCancel,mousedown:this._hoverMousedown,mouseup:this._hoverMouseup,click:this._onClick}},n),this.$slots.default):t("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{click:this._onClick}},n),this.$slots.default)},listeners:{"label-click":"_onClick","@label-click":"_onClick"}},c=s,u=(n("5676"),n("0c7c")),l=Object(u["a"])(c,i,r,!1,null,null,null);e["default"]=l.exports},d4b6:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return y}));var i=n("f2b3"),r=n("85b6");function o(t){return t.mp=Object.assign({"@warning":"mp is deprecated"},t),t._processed=!0,t}var a=n("1e88");function s(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n={id:t.id,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,dataset:Object(r["a"])(t)};return e&&Object.assign(n,e),n}function c(t){if(t){for(var e=[],n=Object(a["a"])(),i=n.top,r=0;r<t.length;r++){var o=t[r];e.push({identifier:o.identifier,pageX:o.pageX,pageY:o.pageY-i,clientX:o.clientX,clientY:o.clientY-i,force:o.force||0})}return e}return[]}function u(t){return t.startsWith("mouse")||["contextmenu"].includes(t)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(e._processed)return e.type=n.type||t,e;if("click"===t){var l=Object(a["a"])(),h=l.top;n={x:e.x,y:e.y-h},e.touches=e.changedTouches=[{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}]}var d=o({type:n.type||t,timeStamp:e.timeStamp||0,detail:n,target:s(i,n),currentTarget:s(r,!1,!0),touches:e instanceof Event||e instanceof CustomEvent?c(e.touches):e.touches,changedTouches:e instanceof Event||e instanceof CustomEvent?c(e.changedTouches):e.changedTouches,preventDefault:function(){},stopPropagation:function(){}});if(u(t)){var f=Object(a["a"])(),p=f.top;d.pageX=e.pageX,d.pageY=e.pageY-p,d.clientX=e.clientX,d.clientY=e.clientY-p}var v=r.getAttribute("_i");return d.options={nid:v},d.$origCurrentTarget=r,d}var h=350,d=10,f=!!i["l"]&&{passive:!0},p=!1;function v(){p&&(clearTimeout(p),p=!1)}var m=0,g=0;function _(t){if(v(),1===t.touches.length){var e=t.touches[0],n=e.pageX,i=e.pageY;m=n,g=i,p=setTimeout((function(){var e=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});e.touches=t.touches,e.changedTouches=t.changedTouches,t.target.dispatchEvent(e)}),h)}}function b(t){if(p){if(1!==t.touches.length)return v();var e=t.touches[0],n=e.pageX,i=e.pageY;return Math.abs(n-m)>d||Math.abs(i-g)>d?v():void 0}}function y(){window.addEventListener("touchstart",_,f),window.addEventListener("touchmove",b,f),window.addEventListener("touchend",v,f),window.addEventListener("touchcancel",v,f)}},d5ec:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio-group",t._g({},t.$listeners),[t._t("default")],2)},r=[],o=n("8af1"),a={name:"RadioGroup",mixins:[o["a"],o["e"]],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t,e){var n=this.radioList.indexOf(e);this._resetRadioGroupValue(n,!0),this.$trigger("change",t,{value:e.radioValue})},_radioGroupUpdateHandler:function(t){if("add"===t.type)this.radioList.push(t.vm);else{var e=this.radioList.indexOf(t.vm);this.radioList.splice(e,1)}},_resetRadioGroupValue:function(t,e){var n=this;this.radioList.forEach((function(i,r){r!==t&&(e?n.radioList[r].radioChecked=!1:n.radioList.forEach((function(t,e){r>=e||n.radioList[e].radioChecked&&(n.radioList[r].radioChecked=!1)})))}))},_getFormData:function(){var t={};if(""!==this.name){var e="";this.radioList.forEach((function(t){t.radioChecked&&(e=t.value)})),t.value=e,t.key=this.name}return t}}},s=a,c=(n("fb61"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},d7ac:function(t,e,n){"use strict";var i=n("be7f").assign,r=n("4126"),o=n("717e"),a=n("2ceb"),s={};i(s,r,o,a),t.exports=s},d8c8:function(t,e,n){"use strict";var i,r,o=["top","left","right","bottom"],a={};function s(){return r="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":"",r}function c(){if(r="string"===typeof r?r:s(),r){var t=[],e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e={passive:!0}}});window.addEventListener("test",null,n)}catch(f){}var c=document.createElement("div");u(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),o.forEach((function(t){d(c,t)})),document.body.appendChild(c),l(),i=!0}else o.forEach((function(t){a[t]=0}));function u(t,e){var n=t.style;Object.keys(e).forEach((function(t){var i=e[t];n[t]=i}))}function l(e){e?t.push(e):t.forEach((function(t){t()}))}function d(t,n){var i=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),d=100,f=1e4,p={position:"absolute",width:d+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"(safe-area-inset-"+n+")"};u(i,p),u(o,p),u(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),u(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),o.appendChild(c),t.appendChild(i),t.appendChild(o),l((function(){i.scrollTop=o.scrollTop=f;var t=i.scrollTop,r=o.scrollTop;function a(){this.scrollTop!==(this===i?t:r)&&(i.scrollTop=o.scrollTop=f,t=i.scrollTop,r=o.scrollTop,h(n))}i.addEventListener("scroll",a,e),o.addEventListener("scroll",a,e)}));var v=getComputedStyle(i);Object.defineProperty(a,n,{configurable:!0,get:function(){return parseFloat(v.paddingBottom)}})}}function u(t){return i||c(),a[t]}var l=[];function h(t){l.length||setTimeout((function(){var t={};l.forEach((function(e){t[e]=a[e]})),l.length=0,d.forEach((function(e){e(t)}))}),0),l.push(t)}var d=[];function f(t){s()&&(i||c(),"function"===typeof t&&d.push(t))}function p(t){var e=d.indexOf(t);e>=0&&d.splice(e,1)}var v={get support(){return 0!=("string"===typeof r?r:s()).length},get top(){return u("top")},get left(){return u("left")},get right(){return u("right")},get bottom(){return u("bottom")},onChange:f,offChange:p};t.exports=v},db10:function(t,e,n){},db18:function(t,e,n){"use strict";var i=n("4814"),r=n.n(i);r.a},db8e:function(t,e,n){"use strict";function i(t,e){if(t===e._$id)return e;for(var n=e.$children,r=n.length,o=0;o<r;o++){var a=i(t,n[o]);if(a)return a}}function r(t,e){if(!e)return console.error("page is not ready");if(!t)return e.$el;if("string"===typeof t){var n=i(t,e);if(!n)throw new Error("Not Found锛歅age[".concat(e.$page.id,"][").concat(t,"]"));return n.$el}return t.$el}function o(t){return t.matches||(t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;while(--n>=0&&e.item(n)!==this);return n>-1}),t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))},df8a:function(t,e,n){},e298:function(t,e,n){"use strict";var i=n("df8a"),r=n.n(i);r.a},e571:function(t,e,n){"use strict";(function(t){function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)} +/*! + * Vue.js v2.6.11 + * (c) 2014-2022 Evan You + * Released under the MIT License. + */var i=Object.freeze({});function r(t){return void 0===t||null===t}function o(t){return void 0!==t&&null!==t}function a(t){return!0===t}function s(t){return!1===t}function c(t){return"string"===typeof t||"number"===typeof t||"symbol"===n(t)||"boolean"===typeof t}function u(t){return null!==t&&"object"===n(t)}var l=Object.prototype.toString;function h(t){return"[object Object]"===l.call(t)}function d(t){return"[object RegExp]"===l.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return o(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||h(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var _=g("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function w(t,e){return y.call(t,e)}function S(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var k=/-(\w)/g,x=S((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),C=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,O=S((function(t){return t.replace(T,"-$1").toLowerCase()}));function $(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function E(t,e){return t.bind(e)}var I=Function.prototype.bind?E:$;function A(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function M(t,e){for(var n in e)t[n]=e[n];return t}function P(t){for(var e={},n=0;n<t.length;n++)t[n]&&M(e,t[n]);return e}function j(t,e,n){}var L=function(t,e,n){return!1},N=function(t){return t};function D(t,e){if(t===e)return!0;var n=u(t),i=u(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return D(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return D(t[n],e[n])}))}catch(c){return!1}}function R(t,e){for(var n=0;n<t.length;n++)if(D(t[n],e))return n;return-1}function B(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var F="data-server-rendered",z=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:j,parsePlatformTagName:N,mustUseProp:L,async:!0,_lifecycleHooks:V},Y=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function W(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var X=new RegExp("[^"+Y.source+".$_\\d]");function q(t){if(!X.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Z,G="__proto__"in{},K="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),tt=K&&window.navigator.userAgent.toLowerCase(),et=tt&&/msie|trident/.test(tt),nt=tt&&tt.indexOf("msie 9.0")>0,it=tt&&tt.indexOf("edge/")>0,rt=(tt&&tt.indexOf("android"),tt&&/iphone|ipad|ipod|ios/.test(tt)||"ios"===Q),ot=(tt&&/chrome\/\d+/.test(tt),tt&&/phantomjs/.test(tt),tt&&tt.match(/firefox\/(\d+)/)),at={}.watch,st=!1;if(K)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){st=!0}}),window.addEventListener("test-passive",null,ct)}catch(Ma){}var ut=function(){return void 0===Z&&(Z=!K&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Z},lt=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ht(t){return"function"===typeof t&&/native code/.test(t.toString())}var dt,ft="undefined"!==typeof Symbol&&ht(Symbol)&&"undefined"!==typeof Reflect&&ht(Reflect.ownKeys);dt="undefined"!==typeof Set&&ht(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=j,vt=0,mt=function(){this.id=vt++,this.subs=[]};function gt(t){mt.SharedObject.targetStack.push(t),mt.SharedObject.target=t,mt.target=t}function _t(){mt.SharedObject.targetStack.pop(),mt.SharedObject.target=mt.SharedObject.targetStack[mt.SharedObject.targetStack.length-1],mt.target=mt.SharedObject.target}mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){b(this.subs,t)},mt.prototype.depend=function(){mt.SharedObject.target&&mt.SharedObject.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},mt.SharedObject={},mt.SharedObject.target=null,mt.SharedObject.targetStack=[];var bt=function(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},yt={child:{configurable:!0}};yt.child.get=function(){return this.componentInstance},Object.defineProperties(bt.prototype,yt);var wt=function(t){void 0===t&&(t="");var e=new bt;return e.text=t,e.isComment=!0,e};function St(t){return new bt(void 0,void 0,void 0,String(t))}function kt(t){var e=new bt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var xt=Array.prototype,Ct=Object.create(xt),Tt=["push","pop","shift","unshift","splice","sort","reverse"];Tt.forEach((function(t){var e=xt[t];W(Ct,t,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&a.observeArray(r),a.dep.notify(),o}))}));var Ot=Object.getOwnPropertyNames(Ct),$t=!0;function Et(t){$t=t}var It=function(t){this.value=t,this.dep=new mt,this.vmCount=0,W(t,"__ob__",this),Array.isArray(t)?(G?At(t,Ct):Mt(t,Ct,Ot),this.observeArray(t)):this.walk(t)};function At(t,e){t.__proto__=e}function Mt(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];W(t,o,e[o])}}function Pt(t,e){var n;if(u(t)&&!(t instanceof bt))return w(t,"__ob__")&&t.__ob__ instanceof It?n=t.__ob__:$t&&!ut()&&(Array.isArray(t)||h(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new It(t)),e&&n&&n.vmCount++,n}function jt(t,e,n,i,r){var o=new mt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=t[e]);var u=!r&&Pt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return mt.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&Dt(e))),e},set:function(e){var i=s?s.call(t):n;e===i||e!==e&&i!==i||s&&!c||(c?c.call(t,e):n=e,u=!r&&Pt(e),o.notify())}})}}function Lt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(jt(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function Nt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||w(t,e)&&(delete t[e],n&&n.dep.notify())}}function Dt(t){for(var e=void 0,n=0,i=t.length;n<i;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Dt(e)}It.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)jt(t,e[n])},It.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Pt(t[e])};var Rt=H.optionMergeStrategies;function Bt(t,e){if(!e)return t;for(var n,i,r,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(i=t[n],r=e[n],w(t,n)?i!==r&&h(i)&&h(r)&&Bt(i,r):Lt(t,n,r));return t}function Ft(t,e,n){return n?function(){var i="function"===typeof e?e.call(n,n):e,r="function"===typeof t?t.call(n,n):t;return i?Bt(i,r):r}:e?t?function(){return Bt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function zt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Vt(n):n}function Vt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ht(t,e,n,i){var r=Object.create(t||null);return e?M(r,e):r}Rt.data=function(t,e,n){return n?Ft(t,e,n):e&&"function"!==typeof e?t:Ft(t,e)},V.forEach((function(t){Rt[t]=zt})),z.forEach((function(t){Rt[t+"s"]=Ht})),Rt.watch=function(t,e,n,i){if(t===at&&(t=void 0),e===at&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in M(r,t),e){var a=r[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),r[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return r},Rt.props=Rt.methods=Rt.inject=Rt.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return M(r,t),e&&M(r,e),r},Rt.provide=Ft;var Yt=function(t,e){return void 0===e?t:e};function Ut(t,e){var n=t.props;if(n){var i,r,o,a={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(o=x(r),a[o]={type:null})}else if(h(n))for(var s in n)r=n[s],o=x(s),a[o]=h(r)?r:{type:r};else 0;t.props=a}}function Wt(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(h(n))for(var o in n){var a=n[o];i[o]=h(a)?M({from:o},a):{from:a}}else 0}}function Xt(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"===typeof i&&(e[n]={bind:i,update:i})}}function qt(t,e,n){if("function"===typeof e&&(e=e.options),Ut(e,n),Wt(e,n),Xt(e),!e._base&&(e.extends&&(t=qt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=qt(t,e.mixins[i],n);var o,a={};for(o in t)s(o);for(o in e)w(t,o)||s(o);function s(i){var r=Rt[i]||Yt;a[i]=r(t[i],e[i],n,i)}return a}function Zt(t,e,n,i){if("string"===typeof n){var r=t[e];if(w(r,n))return r[n];var o=x(n);if(w(r,o))return r[o];var a=C(o);if(w(r,a))return r[a];var s=r[n]||r[o]||r[a];return s}}function Gt(t,e,n,i){var r=e[t],o=!w(n,t),a=n[t],s=te(Boolean,r.type);if(s>-1)if(o&&!w(r,"default"))a=!1;else if(""===a||a===O(t)){var c=te(String,r.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Kt(i,r,t);var u=$t;Et(!0),Pt(a),Et(u)}return a}function Kt(t,e,n){if(w(e,"default")){var i=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof i&&"Function"!==Jt(e.type)?i.call(t):i}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){gt();try{if(e){var i=e;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var a=!1===r[o].call(i,t,e,n);if(a)return}catch(Ma){ie(Ma,i,"errorCaptured hook")}}}ie(t,e,n)}finally{_t()}}function ne(t,e,n,i,r){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(t){return ee(t,i,r+" (Promise/async)")})),o._handled=!0)}catch(Ma){ee(Ma,i,r)}return o}function ie(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(Ma){Ma!==t&&re(Ma,null,"config.errorHandler")}re(t,e,n)}function re(t,e,n){if(!K&&!J||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],ce=!1;function ue(){ce=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ht(Promise)){var le=Promise.resolve();oe=function(){le.then(ue),rt&&setTimeout(j)},ae=!0}else if(et||"undefined"===typeof MutationObserver||!ht(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ht(setImmediate)?function(){setImmediate(ue)}:function(){setTimeout(ue,0)};else{var he=1,de=new MutationObserver(ue),fe=document.createTextNode(String(he));de.observe(fe,{characterData:!0}),oe=function(){he=(he+1)%2,fe.data=String(he)},ae=!0}function pe(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(Ma){ee(Ma,e,"nextTick")}else n&&n(e)})),ce||(ce=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ve=new dt;function me(t){ge(t,ve),ve.clear()}function ge(t,e){var n,i,r=Array.isArray(t);if(!(!r&&!u(t)||Object.isFrozen(t)||t instanceof bt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(r){n=t.length;while(n--)ge(t[n],e)}else{i=Object.keys(t),n=i.length;while(n--)ge(t[i[n]],e)}}}var _e=S((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:n,capture:i,passive:e}}));function be(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return ne(i,null,arguments,e,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)ne(r[o],null,t,e,"v-on handler")}return n.fns=t,n}function ye(t,e,n,i,o,s){var c,u,l,h;for(c in t)u=t[c],l=e[c],h=_e(c),r(u)||(r(l)?(r(u.fns)&&(u=t[c]=be(u,s)),a(h.once)&&(u=t[c]=o(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==l&&(l.fns=u,t[c]=l));for(c in e)r(t[c])&&(h=_e(c),i(h.name,e[c],h.capture))}function we(t,e,n){var i;t instanceof bt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function c(){n.apply(this,arguments),b(i.fns,c)}r(s)?i=be([c]):o(s.fns)&&a(s.merged)?(i=s,i.fns.push(c)):i=be([s,c]),i.merged=!0,t[e]=i}function Se(t,e,n,i){var a=e.options.mpOptions&&e.options.mpOptions.properties;if(r(a))return n;var s=e.options.mpOptions.externalClasses||[],c=t.attrs,u=t.props;if(o(c)||o(u))for(var l in a){var h=O(l),d=xe(n,u,l,h,!0)||xe(n,c,l,h,!1);d&&n[l]&&-1!==s.indexOf(h)&&i[x(n[l])]&&(n[l]=i[x(n[l])])}return n}function ke(t,e,n,i){var a=e.options.props;if(r(a))return Se(t,e,{},i);var s={},c=t.attrs,u=t.props;if(o(c)||o(u))for(var l in a){var h=O(l);xe(s,u,l,h,!0)||xe(s,c,l,h,!1)}return Se(t,e,s,i)}function xe(t,e,n,i,r){if(o(e)){if(w(e,n))return t[n]=e[n],r||delete e[n],!0;if(w(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function Ce(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Te(t){return c(t)?[St(t)]:Array.isArray(t)?$e(t):void 0}function Oe(t){return o(t)&&o(t.text)&&s(t.isComment)}function $e(t,e){var n,i,s,u,l=[];for(n=0;n<t.length;n++)i=t[n],r(i)||"boolean"===typeof i||(s=l.length-1,u=l[s],Array.isArray(i)?i.length>0&&(i=$e(i,(e||"")+"_"+n),Oe(i[0])&&Oe(u)&&(l[s]=St(u.text+i[0].text),i.shift()),l.push.apply(l,i)):c(i)?Oe(u)?l[s]=St(u.text+i):""!==i&&l.push(St(i)):Oe(i)&&Oe(u)?l[s]=St(u.text+i.text):(a(t._isVList)&&o(i.tag)&&r(i.key)&&o(e)&&(i.key="__vlist"+e+"_"+n+"__"),l.push(i)));return l}function Ee(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ie(t){var e=Ae(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(n){jt(t,n,e[n])})),Et(!0))}function Ae(t,e){if(t){for(var n=Object.create(null),i=ft?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var c=t[o].default;n[o]="function"===typeof c?c.call(e):c}else 0}}return n}}function Me(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(Pe)&&delete n[u];return n}function Pe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function je(t,e,n){var r,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==i&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=Le(e,c,t[c]))}else r={};for(var u in e)u in r||(r[u]=Ne(e,u));return t&&Object.isExtensible(t)&&(t._normalized=r),W(r,"$stable",a),W(r,"$key",s),W(r,"$hasNormal",o),r}function Le(t,e,i){var r=function(){var t=arguments.length?i.apply(null,arguments):i({});return t=t&&"object"===n(t)&&!Array.isArray(t)?[t]:Te(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return i.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Ne(t,e){return function(){return t[e]}}function De(t,e){var n,i,r,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i,i,i);else if("number"===typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i,i,i);else if(u(t))if(ft&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),l=c.next();while(!l.done)n.push(e(l.value,n.length,i,i++)),l=c.next()}else for(a=Object.keys(t),n=new Array(a.length),i=0,r=a.length;i<r;i++)s=a[i],n[i]=e(t[s],s,i,i);return o(n)||(n=[]),n._isVList=!0,n}function Re(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=M(M({},i),n)),r=o(n,this,n._i)||e):r=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function Be(t){return Zt(this.$options,"filters",t,!0)||N}function Fe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ze(t,e,n,i,r){var o=H.keyCodes[e]||n;return r&&i&&!H.keyCodes[e]?Fe(r,i):o?Fe(o,t):i?O(i)!==e:void 0}function Ve(t,e,n,i,r){if(n)if(u(n)){var o;Array.isArray(n)&&(n=P(n));var a=function(a){if("class"===a||"style"===a||_(a))o=t;else{var s=t.attrs&&t.attrs.type;o=i||H.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=x(a),u=O(a);if(!(c in o)&&!(u in o)&&(o[a]=n[a],r)){var l=t.on||(t.on={});l["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function He(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e||(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ue(i,"__static__"+t,!1)),i}function Ye(t,e,n){return Ue(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ue(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!==typeof t[i]&&We(t[i],e+"_"+i,n);else We(t,e,n)}function We(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Xe(t,e){if(e)if(h(e)){var n=t.on=t.on?M({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function qe(t,e,n,i){e=e||{$stable:!n};for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?qe(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return i&&(e.$key=i),e}function Ze(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"===typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Ge(t,e){return"string"===typeof t?e+t:t}function Ke(t){t._o=Ye,t._n=m,t._s=v,t._l=De,t._t=Re,t._q=D,t._i=R,t._m=He,t._f=Be,t._k=ze,t._b=Ve,t._v=St,t._e=wt,t._u=qe,t._g=Xe,t._d=Ze,t._p=Ge}function Je(t,e,n,r,o){var s,c=this,u=o.options;w(r,"_uid")?(s=Object.create(r),s._original=r):(s=r,r=r._original);var l=a(u._compiled),h=!l;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=Ae(u.inject,r),this.slots=function(){return c.$slots||je(t.scopedSlots,c.$slots=Me(n,r)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return je(t.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=je(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,i){var o=dn(s,t,e,n,i,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=r),o}:this._c=function(t,e,n,i){return dn(s,t,e,n,i,h)}}function Qe(t,e,n,r,a){var s=t.options,c={},u=s.props;if(o(u))for(var l in u)c[l]=Gt(l,u,e||i);else o(n.attrs)&&en(c,n.attrs),o(n.props)&&en(c,n.props);var h=new Je(n,c,a,r,t),d=s.render.call(null,h._c,h);if(d instanceof bt)return tn(d,n,h.parent,s,h);if(Array.isArray(d)){for(var f=Te(d)||[],p=new Array(f.length),v=0;v<f.length;v++)p[v]=tn(f[v],n,h.parent,s,h);return p}}function tn(t,e,n,i,r){var o=kt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function en(t,e){for(var n in e)t[x(n)]=e[n]}Ke(Je.prototype);var nn={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;nn.prepatch(n,n)}else{var i=t.componentInstance=an(t,An);i.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,i=e.componentInstance=t.componentInstance;Nn(i,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(Fn(n,"onServiceCreated"),Fn(n,"onServiceAttached"),n._isMounted=!0,Fn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Qn(n):Rn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Bn(e,!0):e.$destroy())}},rn=Object.keys(nn);function on(t,e,n,i,s){if(!r(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"===typeof t){var l;if(r(t.cid)&&(l=t,t=Sn(l,c),void 0===t))return wn(l,e,n,i,s);e=e||{},Si(t),o(e.model)&&un(t.options,e);var h=ke(e,t,s,n);if(a(t.options.functional))return Qe(t,h,e,n,i);var d=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}sn(e);var p=t.options.name||s,v=new bt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:d,tag:s,children:i},l);return v}}}function an(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;return o(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new t.componentOptions.Ctor(n)}function sn(t){for(var e=t.hook||(t.hook={}),n=0;n<rn.length;n++){var i=rn[n],r=e[i],o=nn[i];r===o||r&&r._merged||(e[i]=r?cn(o,r):o)}}function cn(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}function un(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var r=e.on||(e.on={}),a=r[i],s=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(r[i]=[s].concat(a)):r[i]=s}var ln=1,hn=2;function dn(t,e,n,i,r,o){return(Array.isArray(n)||c(n))&&(r=i,i=n,n=void 0),a(o)&&(r=hn),fn(t,e,n,i,r)}function fn(t,e,n,i,r){if(o(n)&&o(n.__ob__))return wt();if(o(n)&&o(n.is)&&(e=n.is),!e)return wt();var a,s,c;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),r===hn?i=Te(i):r===ln&&(i=Ce(i)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),a=H.isReservedTag(e)?new bt(H.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!o(c=Zt(t.$options,"components",e))?new bt(e,n,i,void 0,void 0,t):on(c,n,t,i,e)):a=on(e,n,t,i);return Array.isArray(a)?a:o(a)?(o(s)&&pn(a,s),o(n)&&vn(n),a):wt()}function pn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var i=0,s=t.children.length;i<s;i++){var c=t.children[i];o(c.tag)&&(r(c.ns)||a(n)&&"svg"!==c.tag)&&pn(c,e,n)}}function vn(t){u(t.style)&&me(t.style),u(t.class)&&me(t.class)}function mn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Me(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,i,r){return dn(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return dn(t,e,n,i,r,!0)};var o=n&&n.data;jt(t,"$attrs",o&&o.attrs||i,null,!0),jt(t,"$listeners",e._parentListeners||i,null,!0)}var gn,_n=null;function bn(t){Ke(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n._parentVnode;r&&(e.$scopedSlots=je(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{_n=e,t=i.call(e._renderProxy,e.$createElement)}catch(Ma){ee(Ma,e,"render"),t=e._vnode}finally{_n=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof bt||(t=wt()),t.parent=r,t}}function yn(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function wn(t,e,n,i,r){var o=wt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}function Sn(t,e){if(a(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=_n;if(n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),a(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var i=t.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return b(i,n)}));var h=function(t){for(var e=0,n=i.length;e<n;e++)i[e].$forceUpdate();t&&(i.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},d=B((function(n){t.resolved=yn(n,e),s?i.length=0:h(!0)})),f=B((function(e){o(t.errorComp)&&(t.error=!0,h(!0))})),v=t(d,f);return u(v)&&(p(v)?r(t.resolved)&&v.then(d,f):p(v.component)&&(v.component.then(d,f),o(v.error)&&(t.errorComp=yn(v.error,e)),o(v.loading)&&(t.loadingComp=yn(v.loading,e),0===v.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))}),v.delay||200)),o(v.timeout)&&(l=setTimeout((function(){l=null,r(t.resolved)&&f(null)}),v.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function kn(t){return t.isComment&&t.asyncFactory}function xn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||kn(n)))return n}}function Cn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&En(t,e)}function Tn(t,e){gn.$on(t,e)}function On(t,e){gn.$off(t,e)}function $n(t,e){var n=gn;return function i(){var r=e.apply(null,arguments);null!==r&&n.$off(t,i)}}function En(t,e,n){gn=t,ye(e,n||{},Tn,On,$n,t),gn=void 0}function In(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?A(n):n;for(var i=A(arguments,1),r='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,i,e,r)}return e}}var An=null;function Mn(t){var e=An;return An=t,function(){An=e}}function Pn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function jn(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=Mn(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Fn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Fn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Ln(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=wt),Fn(t,"beforeMount"),i=function(){t._update(t._render(),n)},new ii(t,i,j,{before:function(){t._isMounted&&!t._isDestroyed&&Fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(Fn(t,"onServiceCreated"),Fn(t,"onServiceAttached"),t._isMounted=!0,Fn(t,"mounted")),t}function Nn(t,e,n,r,o){var a=r.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||c);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o,t.$attrs=r.data.attrs||i,t.$listeners=n||i,e&&t.$options.props){Et(!1);for(var l=t._props,h=t.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=t.$options.props;l[f]=Gt(f,p,e,t)}Et(!0),t.$options.propsData=e}t._$updateProperties&&t._$updateProperties(t),n=n||i;var v=t.$options._parentListeners;t.$options._parentListeners=n,En(t,n,v),u&&(t.$slots=Me(o,r.context),t.$forceUpdate())}function Dn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Rn(t,e){if(e){if(t._directInactive=!1,Dn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Rn(t.$children[n]);Fn(t,"activated")}}function Bn(t,e){if((!e||(t._directInactive=!0,!Dn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Bn(t.$children[n]);Fn(t,"deactivated")}}function Fn(t,e){gt();var n=t.$options[e],i=e+" hook";if(n)for(var r=0,o=n.length;r<o;r++)ne(n[r],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),_t()}var zn=[],Vn=[],Hn={},Yn=!1,Un=!1,Wn=0;function Xn(){Wn=zn.length=Vn.length=0,Hn={},Yn=Un=!1}var qn=0,Zn=Date.now;if(K&&!et){var Gn=window.performance;Gn&&"function"===typeof Gn.now&&Zn()>document.createEvent("Event").timeStamp&&(Zn=function(){return Gn.now()})}function Kn(){var t,e;for(qn=Zn(),Un=!0,zn.sort((function(t,e){return t.id-e.id})),Wn=0;Wn<zn.length;Wn++)t=zn[Wn],t.before&&t.before(),e=t.id,Hn[e]=null,t.run();var n=Vn.slice(),i=zn.slice();Xn(),ti(n),Jn(i),lt&&H.devtools&<.emit("flush")}function Jn(t){var e=t.length;while(e--){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Fn(i,"updated")}}function Qn(t){t._inactive=!1,Vn.push(t)}function ti(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Rn(t[e],!0)}function ei(t){var e=t.id;if(null==Hn[e]){if(Hn[e]=!0,Un){var n=zn.length-1;while(n>Wn&&zn[n].id>t.id)n--;zn.splice(n+1,0,t)}else zn.push(t);Yn||(Yn=!0,pe(Kn))}}var ni=0,ii=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ni,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new dt,this.newDepIds=new dt,this.expression="","function"===typeof e?this.getter=e:(this.getter=q(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};ii.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Ma){if(!this.user)throw Ma;ee(Ma,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),_t(),this.cleanupDeps()}return t},ii.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ii.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ii.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ei(this)},ii.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Ma){ee(Ma,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ii.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ii.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},ii.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var ri={enumerable:!0,configurable:!0,get:j,set:j};function oi(t,e,n){ri.get=function(){return this[e][n]},ri.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ri)}function ai(t){t._watchers=[];var e=t.$options;e.props&&si(t,e.props),e.methods&&vi(t,e.methods),e.data?ci(t):Pt(t._data={},!0),e.computed&&hi(t,e.computed),e.watch&&e.watch!==at&&mi(t,e.watch)}function si(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(o){r.push(o);var a=Gt(o,e,n,t);jt(i,o,a),o in t||oi(t,"_props",o)};for(var s in e)a(s);Et(!0)}function ci(t){var e=t.$options.data;e=t._data="function"===typeof e?ui(e,t):e||{},h(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var o=n[r];0,i&&w(i,o)||U(o)||oi(t,"_data",o)}Pt(e,!0)}function ui(t,e){gt();try{return t.call(e,e)}catch(Ma){return ee(Ma,e,"data()"),{}}finally{_t()}}var li={lazy:!0};function hi(t,e){var n=t._computedWatchers=Object.create(null),i=ut();for(var r in e){var o=e[r],a="function"===typeof o?o:o.get;0,i||(n[r]=new ii(t,a||j,j,li)),r in t||di(t,r,o)}}function di(t,e,n){var i=!ut();"function"===typeof n?(ri.get=i?fi(e):pi(n),ri.set=j):(ri.get=n.get?i&&!1!==n.cache?fi(e):pi(n.get):j,ri.set=n.set||j),Object.defineProperty(t,e,ri)}function fi(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.SharedObject.target&&e.depend(),e.value}}function pi(t){return function(){return t.call(this,this)}}function vi(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:I(e[n],t)}function mi(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)gi(t,n,i[r]);else gi(t,n,i)}}function gi(t,e,n,i){return h(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,i)}function _i(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Lt,t.prototype.$delete=Nt,t.prototype.$watch=function(t,e,n){var i=this;if(h(e))return gi(i,t,e,n);n=n||{},n.user=!0;var r=new ii(i,t,e,n);if(n.immediate)try{e.call(i,r.value)}catch(o){ee(o,i,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var bi=0;function yi(t){t.prototype._init=function(t){var e=this;e._uid=bi++,e._isVue=!0,t&&t._isComponent?wi(e,t):e.$options=qt(Si(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Pn(e),Cn(e),mn(e),Fn(e,"beforeCreate"),!e._$fallback&&Ie(e),ai(e),!e._$fallback&&Ee(e),!e._$fallback&&Fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function wi(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function Si(t){var e=t.options;if(t.super){var n=Si(t.super),i=t.superOptions;if(n!==i){t.superOptions=n;var r=ki(t);r&&M(t.extendOptions,r),e=t.options=qt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function ki(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}function xi(t){this._init(t)}function Ci(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ti(t){t.mixin=function(t){return this.options=qt(this.options,t),this}}function Oi(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=qt(n.options,t),a["super"]=n,a.options.props&&$i(a),a.options.computed&&Ei(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=M({},a.options),r[i]=a,a}}function $i(t){var e=t.options.props;for(var n in e)oi(t.prototype,"_props",n)}function Ei(t){var e=t.options.computed;for(var n in e)di(t.prototype,n,e[n])}function Ii(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&h(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ai(t){return t&&(t.Ctor.options.name||t.tag)}function Mi(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Pi(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ai(a.componentOptions);s&&!e(s)&&ji(n,o,i,r)}}}function ji(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,b(n,e)}yi(xi),_i(xi),In(xi),jn(xi),bn(xi);var Li=[String,RegExp,Array],Ni={name:"keep-alive",abstract:!0,props:{include:Li,exclude:Li,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ji(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Pi(t,(function(t){return Mi(e,t)}))})),this.$watch("exclude",(function(e){Pi(t,(function(t){return!Mi(e,t)}))}))},render:function(){var t=this.$slots.default,e=xn(t),n=e&&e.componentOptions;if(n){var i=Ai(n),r=this,o=r.include,a=r.exclude;if(o&&(!i||!Mi(o,i))||a&&i&&Mi(a,i))return e;var s=this,c=s.cache,u=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[l]?(e.componentInstance=c[l].componentInstance,b(u,l),u.push(l)):(c[l]=e,u.push(l),this.max&&u.length>parseInt(this.max)&&ji(c,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Di={KeepAlive:Ni};function Ri(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:M,mergeOptions:qt,defineReactive:jt},t.set=Lt,t.delete=Nt,t.nextTick=pe,t.observable=function(t){return Pt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,Di),Ci(t),Ti(t),Oi(t),Ii(t)}Ri(xi),Object.defineProperty(xi.prototype,"$isServer",{get:ut}),Object.defineProperty(xi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xi,"FunctionalRenderContext",{value:Je}),xi.version="2.6.11";var Bi=g("style,class"),Fi=g("input,textarea,option,select,progress"),zi=function(t,e,n){return"value"===n&&Fi(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vi=g("contenteditable,draggable,spellcheck"),Hi=g("events,caret,typing,plaintext-only"),Yi=function(t,e){return Zi(e)||"false"===e?"false":"contenteditable"===t&&Hi(e)?e:"true"},Ui=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wi="http://www.w3.org/1999/xlink",Xi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},qi=function(t){return Xi(t)?t.slice(6,t.length):""},Zi=function(t){return null==t||!1===t};function Gi(t){var e=t.data,n=t,i=t;while(o(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Ki(i.data,e));while(o(n=n.parent))n&&n.data&&(e=Ki(e,n.data));return Ji(e.staticClass,e.class)}function Ki(t,e){return{staticClass:Qi(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Ji(t,e){return o(t)||o(e)?Qi(t,tr(e)):""}function Qi(t,e){return t?e?t+" "+e:t:e||""}function tr(t){return Array.isArray(t)?er(t):u(t)?nr(t):"string"===typeof t?t:""}function er(t){for(var e,n="",i=0,r=t.length;i<r;i++)o(e=tr(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function nr(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ir={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},rr=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),or=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ar=function(t){return rr(t)||or(t)};function sr(t){return or(t)?"svg":"math"===t?"math":void 0}var cr=Object.create(null);function ur(t){if(!K)return!0;if(ar(t))return!1;if(t=t.toLowerCase(),null!=cr[t])return cr[t];var e=document.createElement(t);return t.indexOf("-")>-1?cr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:cr[t]=/HTMLUnknownElement/.test(e.toString())}var lr=g("text,number,password,search,email,tel,url");function hr(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function dr(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fr(t,e){return document.createElementNS(ir[t],e)}function pr(t){return document.createTextNode(t)}function vr(t){return document.createComment(t)}function mr(t,e,n){t.insertBefore(e,n)}function gr(t,e){t.removeChild(e)}function _r(t,e){t.appendChild(e)}function br(t){return t.parentNode}function yr(t){return t.nextSibling}function wr(t){return t.tagName}function Sr(t,e){t.textContent=e}function kr(t,e){t.setAttribute(e,"")}var xr=Object.freeze({createElement:dr,createElementNS:fr,createTextNode:pr,createComment:vr,insertBefore:mr,removeChild:gr,appendChild:_r,parentNode:br,nextSibling:yr,tagName:wr,setTextContent:Sr,setStyleScope:kr}),Cr={create:function(t,e){Tr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Tr(t,!0),Tr(e))},destroy:function(t){Tr(t,!0)}};function Tr(t,e){var n=t.data.ref;if(o(n)){var i=t.context,r=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[n])?b(a[n],r):a[n]===r&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(r)<0&&a[n].push(r):a[n]=[r]:a[n]=r}}var Or=new bt("",{},[]),$r=["create","activate","update","remove","destroy"];function Er(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&Ir(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ir(t,e){if("input"!==t.tag)return!0;var n,i=o(n=t.data)&&o(n=n.attrs)&&n.type,r=o(n=e.data)&&o(n=n.attrs)&&n.type;return i===r||lr(i)&&lr(r)}function Ar(t,e,n){var i,r,a={};for(i=e;i<=n;++i)r=t[i].key,o(r)&&(a[r]=i);return a}function Mr(t){var e,n,i={},s=t.modules,u=t.nodeOps;for(e=0;e<$r.length;++e)for(i[$r[e]]=[],n=0;n<s.length;++n)o(s[n][$r[e]])&&i[$r[e]].push(s[n][$r[e]]);function l(t){return new bt(u.tagName(t).toLowerCase(),{},[],void 0,t)}function h(t,e){function n(){0===--n.listeners&&d(t)}return n.listeners=e,n}function d(t){var e=u.parentNode(t);o(e)&&u.removeChild(e,t)}function f(t,e,n,i,r,s,c){if(o(t.elm)&&o(s)&&(t=s[c]=kt(t)),t.isRootInsert=!r,!p(t,e,n,i)){var l=t.data,h=t.children,d=t.tag;o(d)?(t.elm=t.ns?u.createElementNS(t.ns,d):u.createElement(d,t),S(t),b(t,h,e),o(l)&&w(t,e),_(n,t.elm,i)):a(t.isComment)?(t.elm=u.createComment(t.text),_(n,t.elm,i)):(t.elm=u.createTextNode(t.text),_(n,t.elm,i))}}function p(t,e,n,i){var r=t.data;if(o(r)){var s=o(t.componentInstance)&&r.keepAlive;if(o(r=r.hook)&&o(r=r.init)&&r(t,!1),o(t.componentInstance))return v(t,e),_(n,t.elm,i),a(s)&&m(t,e,n,i),!0}}function v(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,y(t)?(w(t,e),S(t)):(Tr(t),e.push(t))}function m(t,e,n,r){var a,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<i.activate.length;++a)i.activate[a](Or,s);e.push(s);break}_(n,t.elm,r)}function _(t,e,n){o(t)&&(o(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function b(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)f(e[i],n,t.elm,null,!0,e,i)}else c(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function y(t){while(t.componentInstance)t=t.componentInstance._vnode;return o(t.tag)}function w(t,n){for(var r=0;r<i.create.length;++r)i.create[r](Or,t);e=t.data.hook,o(e)&&(o(e.create)&&e.create(Or,t),o(e.insert)&&n.push(t))}function S(t){var e;if(o(e=t.fnScopeId))u.setStyleScope(t.elm,e);else{var n=t;while(n)o(e=n.context)&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent}o(e=An)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&!An._vnode.elm.__uniDataset&&u.setStyleScope(t.elm,e)}function k(t,e,n,i,r,o){for(;i<=r;++i)f(n[i],o,t,e,!1,n,i)}function x(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)x(t.children[n])}function C(t,e,n){for(;e<=n;++e){var i=t[e];o(i)&&(o(i.tag)?(T(i),x(i)):d(i.elm))}}function T(t,e){if(o(e)||o(t.data)){var n,r=i.remove.length+1;for(o(e)?e.listeners+=r:e=h(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&T(n,e),n=0;n<i.remove.length;++n)i.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else d(t.elm)}function O(t,e,n,i,a){var s,c,l,h,d=0,p=0,v=e.length-1,m=e[0],g=e[v],_=n.length-1,b=n[0],y=n[_],w=!a;while(d<=v&&p<=_)r(m)?m=e[++d]:r(g)?g=e[--v]:Er(m,b)?(E(m,b,i,n,p),m=e[++d],b=n[++p]):Er(g,y)?(E(g,y,i,n,_),g=e[--v],y=n[--_]):Er(m,y)?(E(m,y,i,n,_),w&&u.insertBefore(t,m.elm,u.nextSibling(g.elm)),m=e[++d],y=n[--_]):Er(g,b)?(E(g,b,i,n,p),w&&u.insertBefore(t,g.elm,m.elm),g=e[--v],b=n[++p]):(r(s)&&(s=Ar(e,d,v)),c=o(b.key)?s[b.key]:$(b,e,d,v),r(c)?f(b,i,t,m.elm,!1,n,p):(l=e[c],Er(l,b)?(E(l,b,i,n,p),e[c]=void 0,w&&u.insertBefore(t,l.elm,m.elm)):f(b,i,t,m.elm,!1,n,p)),b=n[++p]);d>v?(h=r(n[_+1])?null:n[_+1].elm,k(t,h,n,p,_,i)):p>_&&C(e,d,v)}function $(t,e,n,i){for(var r=n;r<i;r++){var a=e[r];if(o(a)&&Er(t,a))return r}}function E(t,e,n,s,c,l){if(t!==e){o(e.elm)&&o(s)&&(e=s[c]=kt(e));var h=e.elm=t.elm;if(a(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?M(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;o(f)&&o(d=f.hook)&&o(d=d.prepatch)&&d(t,e);var p=t.children,v=e.children;if(o(f)&&y(e)){for(d=0;d<i.update.length;++d)i.update[d](t,e);o(d=f.hook)&&o(d=d.update)&&d(t,e)}r(e.text)?o(p)&&o(v)?p!==v&&O(h,p,v,n,l):o(v)?(o(t.text)&&u.setTextContent(h,""),k(h,null,v,0,v.length-1,n)):o(p)?C(p,0,p.length-1):o(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),o(f)&&o(d=f.hook)&&o(d=d.postpatch)&&d(t,e)}}}function I(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var A=g("attrs,class,staticClass,staticStyle,key");function M(t,e,n,i){var r,s=e.tag,c=e.data,u=e.children;if(i=i||c&&c.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(r=c.hook)&&o(r=r.init)&&r(e,!0),o(r=e.componentInstance)))return v(e,n),!0;if(o(s)){if(o(u))if(t.hasChildNodes())if(o(r=c)&&o(r=r.domProps)&&o(r=r["inner"+"HTML"])){if(r!==t["inner"+"HTML"])return!1}else{for(var l=!0,h=t.firstChild,d=0;d<u.length;d++){if(!h||!M(h,u[d],n,i)){l=!1;break}h=h.nextSibling}if(!l||h)return!1}else b(e,u,n);if(o(c)){var f=!1;for(var p in c)if(!A(p)){f=!0,w(e,n);break}!f&&c["class"]&&me(c["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var c=!1,h=[];if(r(t))c=!0,f(e,h);else{var d=o(t.nodeType);if(!d&&Er(t,e))E(t,e,h,null,null,s);else{if(d){if(1===t.nodeType&&t.hasAttribute(F)&&(t.removeAttribute(F),n=!0),a(n)&&M(t,e,h))return I(e,h,!0),t;t=l(t)}var p=t.elm,v=u.parentNode(p);if(f(e,h,p._leaveCb?null:v,u.nextSibling(p)),o(e.parent)){var m=e.parent,g=y(e);while(m){for(var _=0;_<i.destroy.length;++_)i.destroy[_](m);if(m.elm=e.elm,g){for(var b=0;b<i.create.length;++b)i.create[b](Or,m);var w=m.data.hook.insert;if(w.merged)for(var S=1;S<w.fns.length;S++)w.fns[S]()}else Tr(m);m=m.parent}}o(v)?C([t],0,0):o(t.tag)&&x(t)}}return I(e,h,c),e.elm}o(t)&&x(t)}}var Pr={create:jr,update:jr,destroy:function(t){jr(t,Or)}};function jr(t,e){(t.data.directives||e.data.directives)&&Lr(t,e)}function Lr(t,e){var n,i,r,o=t===Or,a=e===Or,s=Dr(t.data.directives,t.context),c=Dr(e.data.directives,e.context),u=[],l=[];for(n in c)i=s[n],r=c[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Br(r,"update",e,t),r.def&&r.def.componentUpdated&&l.push(r)):(Br(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var h=function(){for(var n=0;n<u.length;n++)Br(u[n],"inserted",e,t)};o?we(e,"insert",h):h()}if(l.length&&we(e,"postpatch",(function(){for(var n=0;n<l.length;n++)Br(l[n],"componentUpdated",e,t)})),!o)for(n in s)c[n]||Br(s[n],"unbind",t,t,a)}var Nr=Object.create(null);function Dr(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)i=t[n],i.modifiers||(i.modifiers=Nr),r[Rr(i)]=i,i.def=Zt(e.$options,"directives",i.name,!0);return r}function Rr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Br(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(Ma){ee(Ma,n.context,"directive "+t.name+" "+e+" hook")}}var Fr=[Cr,Pr];function zr(t,e){var n={};return Object.keys(t).forEach((function(i){e[i]&&(n[t[i]]=e[i],delete e[i])})),n}function Vr(t,e){if(!r(t.data.wxsProps)||!r(e.data.wxsProps)){var n=t.$wxsWatches,i=Object.keys(e.data.wxsProps);if(n||i.length){n||(n={});var o=zr(e.data.wxsProps,e.data.attrs),a=e.context;e.$wxsWatches={},Object.keys(o).forEach((function(t){var i=t;e.context.wxsProps&&(i="wxsProps."+t),e.$wxsWatches[t]=n[t]||e.context.$watch(i,(function(n,i){var r=e.elm.__vue__||e.elm;o[t](n,i,a.$getComponentDescriptor(a,!0),r.$getComponentDescriptor&&r.$getComponentDescriptor(r,!1))}),{immediate:!0,deep:!0})})),Object.keys(n).forEach((function(t){e.$wxsWatches[t]||(n[t](),delete n[t])}))}}}var Hr={create:Vr,update:Vr};function Yr(t,e){var n=e.componentOptions;if((!o(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var i,a,s,c=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(i in o(l.__ob__)&&(l=e.data.attrs=M({},l)),l)a=l[i],s=u[i],s!==a&&Ur(c,i,a);for(i in(et||it)&&l.value!==u.value&&Ur(c,"value",l.value),u)r(l[i])&&(Xi(i)?c.removeAttributeNS(Wi,qi(i)):Vi(i)||c.removeAttribute(i))}}function Ur(t,e,n){t.tagName.indexOf("-")>-1?Wr(t,e,n):Ui(e)?Zi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vi(e)?t.setAttribute(e,Yi(e,n)):Xi(e)?Zi(n)?t.removeAttributeNS(Wi,qi(e)):t.setAttributeNS(Wi,e,n):Wr(t,e,n)}function Wr(t,e,n){if(Zi(n))t.removeAttribute(e);else{if(et&&!nt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function e(n){n.stopImmediatePropagation(),t.removeEventListener("input",e)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Xr={create:Yr,update:Yr};function qr(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class))&&r(n.__wxsAddClass)&&r(n.__wxsRemoveClass))){var s=Gi(e),c=n._transitionClasses;if(o(c)&&(s=Qi(s,tr(c))),Array.isArray(n.__wxsRemoveClass)&&n.__wxsRemoveClass.length){var u=s.split(/\s+/);n.__wxsRemoveClass.forEach((function(t){var e=u.findIndex((function(e){return e===t}));-1!==e&&u.splice(e,1)})),s=u.join(" "),n.__wxsRemoveClass.length=0}if(n.__wxsAddClass){var l=s.split(/\s+/).concat(n.__wxsAddClass.split(/\s+/)),h=Object.create(null);l.forEach((function(t){t&&(h[t]=1)})),s=Object.keys(h).join(" ")}var d=e.context,f=d.$options.mpOptions&&d.$options.mpOptions.externalClasses;Array.isArray(f)&&f.forEach((function(t){var e=d[x(t)];e&&(s=s.replace(t,e))})),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Zr,Gr={create:qr,update:qr},Kr="__r",Jr="__c";function Qr(t){if(o(t[Kr])){var e=et?"change":"input";t[e]=[].concat(t[Kr],t[e]||[]),delete t[Kr]}o(t[Jr])&&(t.change=[].concat(t[Jr],t.change||[]),delete t[Jr])}function to(t,e,n){var i=Zr;return function r(){var o=e.apply(null,arguments);null!==o&&io(t,r,n,i)}}var eo=ae&&!(ot&&Number(ot[1])<=53);function no(t,e,n,i){if(eo){var r=qn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Zr.addEventListener(t,e,st?{capture:n,passive:i}:n)}function io(t,e,n,i){(i||Zr).removeEventListener(t,e._wrapper||e,n)}function ro(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Zr=e.elm,Qr(n),ye(n,i,no,io,to,e.context),Zr=void 0}}var oo,ao={create:ro,update:ro};function so(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=M({},c)),s)n in c||(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var u=r(i)?"":String(i);co(a,u)&&(a.value=u)}else if("innerHTML"===n&&or(a.tagName)&&r(a["inner"+"HTML"])){oo=oo||document.createElement("div"),oo["inner"+"HTML"]="<svg>"+i+"</svg>";var l=oo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(i!==s[n])try{a[n]=i}catch(Ma){}}}}function co(t,e){return!t.composing&&("OPTION"===t.tagName||uo(t,e)||lo(t,e))}function uo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Ma){}return n&&t.value!==e}function lo(t,e){var n=t.value,i=t._vModifiers;if(o(i)){if(i.number)return m(n)!==m(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var ho={create:so,update:so},fo=S((function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function po(t){var e=vo(t.style);return t.staticStyle?M(t.staticStyle,e):e}function vo(t){return Array.isArray(t)?P(t):"string"===typeof t?fo(t):t}function mo(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=po(r.data))&&M(i,n)}(n=po(t.data))&&M(i,n);var o=t;while(o=o.parent)o.data&&(n=po(o.data))&&M(i,n);return i}var go,_o=/^--/,bo=/\s*!important$/,yo=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,wo=function(t){return"string"===typeof t?t.replace(yo,(function(t,e){return uni.upx2px(e)+"px"})):t},So=/url\(\s*['"](.+?\.(jpg|gif|png))['"]\s*\)/,ko=/url\(\s*([a-zA-Z0-9\.\-\_\/]+?\.(jpg|gif|png))\s*\)/,xo=function(t,e){if("string"===typeof t&&-1!==t.indexOf("url(")){var n=t.match(So)||t.match(ko);n&&3===n.length&&(t=t.replace(n[1],e._$getRealPath(n[1])))}return t},Co=function(t,e,n,i){if(i&&i._$getRealPath&&n&&(n=xo(n,i)),_o.test(e))t.style.setProperty(e,n);else if(bo.test(n))t.style.setProperty(O(e),n.replace(bo,""),"important");else{var r=Oo(e);if(Array.isArray(n))for(var o=0,a=n.length;o<a;o++)t.style[r]=wo(n[o]);else t.style[r]=wo(n)}},To=["Webkit","Moz","ms"],Oo=S((function(t){if(go=go||document.createElement("div").style,t=x(t),"filter"!==t&&t in go)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<To.length;n++){var i=To[n]+e;if(i in go)return i}}));function $o(t,e){var n=e.data,i=t.data,a=e.elm;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style)&&r(a.__wxsStyle))){var s,c,u=i.staticStyle,l=i.normalizedStyle||i.style||{},h=u||l,d=vo(e.data.style)||{};e.data.normalizedStyle=o(d.__ob__)?M({},d):d;var f=mo(e,!0);for(c in a.__wxsStyle&&(Object.assign(e.data.normalizedStyle,a.__wxsStyle),Object.assign(f,a.__wxsStyle)),h)r(f[c])&&Co(a,c,"");for(c in f)s=f[c],s!==h[c]&&Co(a,c,null==s?"":s,e.context)}}var Eo={create:$o,update:$o},Io=/\s+/;function Ao(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Io).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Mo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Io).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Po(t){if(t){if("object"===n(t)){var e={};return!1!==t.css&&M(e,jo(t.name||"v")),M(e,t),e}return"string"===typeof t?jo(t):void 0}}var jo=S((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Lo=K&&!nt,No="transition",Do="animation",Ro="transition",Bo="transitionend",Fo="animation",zo="animationend";Lo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ro="WebkitTransition",Bo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Fo="WebkitAnimation",zo="webkitAnimationEnd"));var Vo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ho(t){Vo((function(){Vo(t)}))}function Yo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Ao(t,e))}function Uo(t,e){t._transitionClasses&&b(t._transitionClasses,e),Mo(t,e)}function Wo(t,e,n){var i=qo(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===No?Bo:zo,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),o+1),t.addEventListener(s,l)}var Xo=/\b(transform|all)(,|$)/;function qo(t,e){var n,i=window.getComputedStyle(t),r=(i[Ro+"Delay"]||"").split(", "),o=(i[Ro+"Duration"]||"").split(", "),a=Zo(r,o),s=(i[Fo+"Delay"]||"").split(", "),c=(i[Fo+"Duration"]||"").split(", "),u=Zo(s,c),l=0,h=0;e===No?a>0&&(n=No,l=a,h=o.length):e===Do?u>0&&(n=Do,l=u,h=c.length):(l=Math.max(a,u),n=l>0?a>u?No:Do:null,h=n?n===No?o.length:c.length:0);var d=n===No&&Xo.test(i[Ro+"Property"]);return{type:n,timeout:l,propCount:h,hasTransform:d}}function Zo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Go(e)+Go(t[n])})))}function Go(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Ko(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=Po(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){var a=i.css,s=i.type,c=i.enterClass,l=i.enterToClass,h=i.enterActiveClass,d=i.appearClass,f=i.appearToClass,p=i.appearActiveClass,v=i.beforeEnter,g=i.enter,_=i.afterEnter,b=i.enterCancelled,y=i.beforeAppear,w=i.appear,S=i.afterAppear,k=i.appearCancelled,x=i.duration,C=An,T=An.$vnode;while(T&&T.parent)C=T.context,T=T.parent;var O=!C._isMounted||!t.isRootInsert;if(!O||w||""===w){var $=O&&d?d:c,E=O&&p?p:h,I=O&&f?f:l,A=O&&y||v,M=O&&"function"===typeof w?w:g,P=O&&S||_,j=O&&k||b,L=m(u(x)?x.enter:x);0;var N=!1!==a&&!nt,D=ta(M),R=n._enterCb=B((function(){N&&(Uo(n,I),Uo(n,E)),R.cancelled?(N&&Uo(n,$),j&&j(n)):P&&P(n),n._enterCb=null}));t.data.show||we(t,"insert",(function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),M&&M(n,R)})),A&&A(n),N&&(Yo(n,$),Yo(n,E),Ho((function(){Uo(n,$),R.cancelled||(Yo(n,I),D||(Qo(L)?setTimeout(R,L):Wo(n,s,R)))}))),t.data.show&&(e&&e(),M&&M(n,R)),N||D||R()}}}function Jo(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=Po(t.data.transition);if(r(i)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=i.css,s=i.type,c=i.leaveClass,l=i.leaveToClass,h=i.leaveActiveClass,d=i.beforeLeave,f=i.leave,p=i.afterLeave,v=i.leaveCancelled,g=i.delayLeave,_=i.duration,b=!1!==a&&!nt,y=ta(f),w=m(u(_)?_.leave:_);0;var S=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Uo(n,l),Uo(n,h)),S.cancelled?(b&&Uo(n,c),v&&v(n)):(e(),p&&p(n)),n._leaveCb=null}));g?g(k):k()}function k(){S.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),b&&(Yo(n,c),Yo(n,h),Ho((function(){Uo(n,c),S.cancelled||(Yo(n,l),y||(Qo(w)?setTimeout(S,w):Wo(n,s,S)))}))),f&&f(n,S),b||y||S())}}function Qo(t){return"number"===typeof t&&!isNaN(t)}function ta(t){if(r(t))return!1;var e=t.fns;return o(e)?ta(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ea(t,e){!0!==e.data.show&&Ko(e)}var na=K?{create:ea,activate:ea,remove:function(t,e){!0!==t.data.show?Jo(t,e):e()}}:{},ia=[Hr,Xr,Gr,ao,ho,Eo,na],ra=ia.concat(Fr),oa=Mr({nodeOps:xr,modules:ra});nt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&fa(t,"input")}));var aa={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?we(n,"postpatch",(function(){aa.componentUpdated(t,e,n)})):sa(t,e,n.context),t._vOptions=[].map.call(t.options,la)):("textarea"===n.tag||lr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ha),t.addEventListener("compositionend",da),t.addEventListener("change",da),nt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){sa(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,la);if(r.some((function(t,e){return!D(t,i[e])}))){var o=t.multiple?e.value.some((function(t){return ua(t,r)})):e.value!==e.oldValue&&ua(e.value,r);o&&fa(t,"change")}}}};function sa(t,e,n){ca(t,e,n),(et||it)&&setTimeout((function(){ca(t,e,n)}),0)}function ca(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],r)o=R(i,la(a))>-1,a.selected!==o&&(a.selected=o);else if(D(la(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function ua(t,e){return e.every((function(e){return!D(e,t)}))}function la(t){return"_value"in t?t._value:t.value}function ha(t){t.target.composing=!0}function da(t){t.target.composing&&(t.target.composing=!1,fa(t.target,"input"))}function fa(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function pa(t){return!t.componentInstance||t.data&&t.data.transition?t:pa(t.componentInstance._vnode)}var va={bind:function(t,e,n){var i=e.value;n=pa(n);var r=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,Ko(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=pa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?Ko(n,(function(){t.style.display=t.__vOriginalDisplay})):Jo(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},ma={model:aa,show:va},ga={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function _a(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?_a(xn(e.children)):t}function ba(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[x(o)]=r[o];return e}function ya(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function wa(t){while(t=t.parent)if(t.data.transition)return!0}function Sa(t,e){return e.key===t.key&&e.tag===t.tag}var ka=function(t){return t.tag||kn(t)},xa=function(t){return"show"===t.name},Ca={name:"transition",props:ga,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ka),n.length)){0;var i=this.mode;0;var r=n[0];if(wa(this.$vnode))return r;var o=_a(r);if(!o)return r;if(this._leaving)return ya(t,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:c(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=ba(this),u=this._vnode,l=_a(u);if(o.data.directives&&o.data.directives.some(xa)&&(o.data.show=!0),l&&l.data&&!Sa(o,l)&&!kn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var h=l.data.transition=M({},s);if("out-in"===i)return this._leaving=!0,we(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ya(t,r);if("in-out"===i){if(kn(o))return u;var d,f=function(){d()};we(s,"afterEnter",f),we(s,"enterCancelled",f),we(h,"delayLeave",(function(t){d=t}))}}return r}}},Ta=M({tag:String,moveClass:String},ga);delete Ta.mode;var Oa={props:Ta,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Mn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=ba(this),s=0;s<r.length;s++){var c=r[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(i){for(var u=[],l=[],h=0;h<i.length;h++){var d=i[h];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):l.push(d)}this.kept=t(e,null,u),this.removed=l}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach($a),t.forEach(Ea),t.forEach(Ia),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,i=n.style;Yo(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Bo,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Bo,t),n._moveCb=null,Uo(n,e))})}})))},methods:{hasMove:function(t,e){if(!Lo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Mo(n,t)})),Ao(n,e),n.style.display="none",this.$el.appendChild(n);var i=qo(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function $a(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ea(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ia(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}var Aa={Transition:Ca,TransitionGroup:Oa};xi.config.mustUseProp=zi,xi.config.isReservedTag=ar,xi.config.isReservedAttr=Bi,xi.config.getTagNamespace=sr,xi.config.isUnknownElement=ur,M(xi.options.directives,ma),M(xi.options.components,Aa),xi.prototype.__patch__=K?oa:j,xi.prototype.__call_hook=function(t,e){var n=this;gt();var i,r=n.$options[t],o=t+" hook";if(r)for(var a=0,s=r.length;a<s;a++)i=ne(r[a],n,e?[e]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+t,e),_t(),i},xi.prototype.$mount=function(t,e){return t=t&&K?hr(t):void 0,Ln(this,t,e)},K&&setTimeout((function(){H.devtools&<&<.emit("init",xi)}),0),e["a"]=xi}).call(this,n("c8ba"))},e5e5:function(t,e,n){},e6c5:function(t,e,n){"use strict";(function(t){var i,r=n("8af1"),o=n("a20f"),a=n("60f7"),s=n("28e4");function c(t){return d(t)||h(t)||l(t)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if(t){if("string"===typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(t){if(Array.isArray(t))return f(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function p(t){return t=t.slice(0),t[3]=t[3]/255,"rgba("+t.join(",")+")"}function v(t,e){return[].map.call(e,(function(e){var n=t.getBoundingClientRect();return{identifier:e.identifier,x:e.clientX-n.left,y:e.clientY-n.top}}))}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i||(i=document.createElement("canvas")),i.width=t,i.height=e,i}e["a"]={name:"Canvas",mixins:[r["f"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var t=this,e=Object.assign({},this.$listeners),n=["touchstart","touchmove","touchend"];return n.forEach((function(n){var i=e[n],r=[];i&&r.push((function(e){t.$trigger(n,Object.assign({},e,{touches:v(e.currentTarget,e.touches),changedTouches:v(e.currentTarget,e.changedTouches)}))})),t.disableScroll&&"touchmove"===n&&r.push(t._touchmove),e[n]=r})),e},pixelRatio:function(){return this.hidpi?o["a"]:1}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var t=this.$refs.canvas;t.height=t.width=0},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n,r=this[e];0!==e.indexOf("_")&&"function"===typeof r&&r(i)},_resize:function(t){var e=this.$refs.canvas,n=!t||e.width!==Math.floor(t.width*this.pixelRatio)||e.height!==Math.floor(t.height*this.pixelRatio);if(n)if(e.width>0&&e.height>0){var i=e.getContext("2d"),r=i.getImageData(0,0,e.width,e.height);Object(o["b"])(e,this.hidpi),i.putImageData(r,0,0)}else Object(o["b"])(e,this.hidpi)},_touchmove:function(t){t.preventDefault()},actionsChanged:function(e){var n=this,i=e.actions,r=e.reserve,o=e.callbackId,a=this;if(i)if(this.actionsWaiting)this._actionsDefer.push([i,r,o]);else{var s=this.$refs.canvas,u=s.getContext("2d");r||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,s.width,s.height)),this.preloadImage(i);var l=function(t){var e=i[t],r=e.method,s=e.data;if(/^set/.test(r)&&"setTransform"!==r){var l,h=r[3].toLowerCase()+r.slice(4);if("fillStyle"===h||"strokeStyle"===h){if("normal"===s[0])l=p(s[1]);else if("linear"===s[0]){var v=u.createLinearGradient.apply(u,c(s[1]));s[2].forEach((function(t){var e=t[0],n=p(t[1]);v.addColorStop(e,n)})),l=v}else if("radial"===s[0]){var m=s[1][0],g=s[1][1],_=s[1][2],b=u.createRadialGradient(m,g,0,m,g,_);s[2].forEach((function(t){var e=t[0],n=p(t[1]);b.addColorStop(e,n)})),l=b}else if("pattern"===s[0]){var y=n.checkImageLoaded(s[1],i.slice(t+1),o,(function(t){t&&(u[h]=u.createPattern(t,s[2]))}));return y?"continue":"break"}u[h]=l}else if("globalAlpha"===h)u[h]=s[0]/255;else if("shadow"===h)d=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],s.forEach((function(t,e){u[d[e]]="shadowColor"===d[e]?p(t):t}));else if("fontSize"===h){var w=u.__font__||u.font;u.__font__=u.font=w.replace(/\d+\.?\d*px/,s[0]+"px")}else"lineDash"===h?(u.setLineDash(s[0]),u.lineDashOffset=s[1]||0):"textBaseline"===h?("normal"===s[0]&&(s[0]="alphabetic"),u[h]=s[0]):"font"===h?u.__font__=u.font=s[0]:u[h]=s[0]}else if("fillPath"===r||"strokePath"===r)r=r.replace(/Path/,""),u.beginPath(),s.forEach((function(t){u[t.method].apply(u,t.data)})),u[r]();else if("fillText"===r)u.fillText.apply(u,s);else if("drawImage"===r){if(f=function(){var e=c(s),n=e[0],r=e.slice(1);if(a._images=a._images||{},!a.checkImageLoaded(n,i.slice(t+1),o,(function(t){t&&u.drawImage.apply(u,[t].concat(c(r.slice(4,8)),c(r.slice(0,4))))})))return"break"}(),"break"===f)return"break"}else"clip"===r?(s.forEach((function(t){u[t.method].apply(u,t.data)})),u.clip()):u[r].apply(u,s)};t:for(var h=0;h<i.length;h++){var d,f,v=l(h);switch(v){case"break":break t;case"continue":continue}}!this.actionsWaiting&&o&&t.publishHandler("onCanvasMethodCallback",{callbackId:o,data:{errMsg:"drawCanvas:ok"}},this.$page.id)}},preloadImage:function(t){var e=this;t.forEach((function(t){var n=t.method,i=t.data,r="";function o(){var t=e._images[r]=new Image;if(t.onload=function(){t.ready=!0},"Google Inc."===navigator.vendor)return 0===r.indexOf("file://")&&(t.crossOrigin="anonymous"),void(t.src=r);Object(s["a"])(r).then((function(e){t.src=e})).catch((function(){t.src=r}))}"drawImage"===n?(r=i[0],r=e.$getRealPath(r),i[0]=r):"setFillStyle"===n&&"pattern"===i[0]&&(r=i[1],r=e.$getRealPath(r),i[1]=r),r&&!e._images[r]&&o()}))},checkImageLoaded:function(t,e,n,i){var r=this,o=this._images[t];return o.ready?(i(o),!0):(this._actionsDefer.unshift([e,!0]),this.actionsWaiting=!0,o.onload=function(){o.ready=!0,i(o),r.actionsWaiting=!1;var t=r._actionsDefer.slice(0);r._actionsDefer=[];for(var e=t.shift();e;)r.actionsChanged({actions:e[0],reserve:e[1],callbackId:n}),e=t.shift()},!1)},getImageData:function(e){var i,r=e.x,o=void 0===r?0:r,a=e.y,s=void 0===a?0:a,c=e.width,u=e.height,l=e.destWidth,h=e.destHeight,d=e.hidpi,f=void 0===d||d,p=e.dataType,v=e.quality,g=void 0===v?1:v,_=e.type,b=void 0===_?"png":_,y=e.callbackId,w=this.$refs.canvas,S=w.offsetWidth-o;c=c?Math.min(c,S):S;var k=w.offsetHeight-s;u=u?Math.min(u,k):k,f?(l=c,h=u):l||h?l?h||(h=Math.round(u/c*l)):l=Math.round(c/u*h):(l=Math.round(c*this.pixelRatio),h=Math.round(u*this.pixelRatio));var x,C=m(l,h),T=C.getContext("2d");"jpeg"!==b&&"jpg"!==b||(b="jpeg",T.fillStyle="#fff",T.fillRect(0,0,l,h)),T.__hidpi__=!0,T.drawImageByCanvas(w,o,s,c,u,0,0,l,h,!1);try{var O;if("base64"===p)i=C.toDataURL("image/".concat(b),g);else{var $=T.getImageData(0,0,l,h),E=n("d7ac");i=E.deflateRaw($.data,{to:"string"}),O=!0}x={errMsg:"canvasGetImageData:ok",data:i,compressed:O,width:l,height:h}}catch(I){x={errMsg:"canvasGetImageData:fail ".concat(I)}}if(C.height=C.width=0,T.__hidpi__=!1,!y)return x;t.publishHandler("onCanvasMethodCallback",{callbackId:y,data:x},this.$page.id)},putImageData:function(e){var i=e.data,r=e.x,o=e.y,a=e.width,s=e.height,c=e.compressed,u=e.callbackId;try{if(c){var l=n("d7ac");i=l.inflateRaw(i)}s||(s=Math.round(i.length/4/a));var h=m(a,s),d=h.getContext("2d");d.putImageData(new ImageData(new Uint8ClampedArray(i),a,s),0,0),this.$refs.canvas.getContext("2d").drawImage(h,r,o,a,s),h.height=h.width=0}catch(f){return void t.publishHandler("onCanvasMethodCallback",{callbackId:u,data:{errMsg:"canvasPutImageData:fail"}},this.$page.id)}t.publishHandler("onCanvasMethodCallback",{callbackId:u,data:{errMsg:"canvasPutImageData:ok"}},this.$page.id)},toTempFilePath:function(e){var n=this,i=e.x,r=void 0===i?0:i,o=e.y,s=void 0===o?0:o,c=e.width,u=e.height,l=e.destWidth,h=e.destHeight,d=e.fileType,f=e.quality,p=e.dirname,v=e.callbackId,m=this.getImageData({x:r,y:s,width:c,height:u,destWidth:l,destHeight:h,hidpi:!1,dataType:"base64",type:d,quality:f});m.data&&m.data.length?Object(a["a"])(m.data,p,(function(e,i){var r="toTempFilePath:".concat(e?"fail":"ok");e&&(r+=" ".concat(e.message)),t.publishHandler("onCanvasMethodCallback",{callbackId:v,data:{errMsg:r,tempFilePath:i}},n.$page.id)})):t.publishHandler("onCanvasMethodCallback",{callbackId:v,data:{errMsg:m.errMsg.replace("canvasPutImageData","toTempFilePath")}},this.$page.id)}}}}).call(this,n("501c"))},e71c:function(t,e,n){},e804:function(t,e,n){},e9f0:function(t,e,n){},e9f8:function(t,e,n){"use strict";n.r(e);var i,r,o={name:"View",functional:!0,render:function(t,e){return t("uni-view",e.data,e.children)}},a=o,s=(n("14db"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},ea89:function(t,e,n){"use strict";var i=n("a66e"),r=n.n(i);r.a},edfa:function(t,e,n){"use strict";var i=n("5c85"),r=n.n(i);r.a},eec9:function(t,e,n){},eeda:function(t,e,n){"use strict";function i(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}var r=i();function o(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}t.exports=o},f1ef:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-scroll-view",t._g({},t.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":t.scrollX?"auto":"hidden","overflow-y":t.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[t.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":t.refresherBackground,height:t.refresherHeight+"px"}},["none"!==t.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==t.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+t.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):t._e(),"refreshing"==t.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):t._e()])]):t._e(),"none"==t.refresherDefaultStyle?t._t("refresher"):t._e()],2):t._e(),t._t("default")],2)])])])},r=[],o=n("8aec"),a=n("f2b3"),s=n("2a0a"),c=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!!a["l"]&&{passive:t}},u=c(),l={name:"ScrollView",mixins:[o["a"]],props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},data:function(){return{lastScrollTop:this.scrollTopNumber,lastScrollLeft:this.scrollLeftNumber,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}},computed:{upperThresholdNumber:function(){var t=Number(this.upperThreshold);return isNaN(t)?50:t},lowerThresholdNumber:function(){var t=Number(this.lowerThreshold);return isNaN(t)?50:t},scrollTopNumber:function(){return Number(this.scrollTop)||0},scrollLeftNumber:function(){return Number(this.scrollLeft)||0}},watch:{scrollTopNumber:function(t){this._scrollTopChanged(t)},scrollLeftNumber:function(t){this._scrollLeftChanged(t)},scrollIntoView:function(t){this._scrollIntoViewChanged(t)},refresherTriggered:function(t){!0===t?this._setRefreshState("refreshing"):!1===t&&this._setRefreshState("restore")}},mounted:function(){var t=this,e=null,n=null;this._attached=!0,this.toUpperNumber=0,this.triggerAbort=!1,this.beforeRefreshing=!1,this._scrollTopChanged(this.scrollTopNumber),this._scrollLeftChanged(this.scrollLeftNumber),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=function(e){e.preventDefault(),e.stopPropagation(),t._handleScroll.bind(t,e)()},this.__handleTouchMove=function(i){if(null!==e){var r=i.touches[0].pageX,o=i.touches[0].pageY,a=t.$refs.main;if(Math.abs(r-e.x)>Math.abs(o-e.y))if(t.scrollX){if(0===a.scrollLeft&&r>e.x)return void(n=!1);if(a.scrollWidth===a.offsetWidth+a.scrollLeft&&r<e.x)return void(n=!1);n=!0}else n=!1;else if(t.scrollY)if(0===a.scrollTop&&o>e.y)n=!1,t.refresherEnabled&&!1!==i.cancelable&&i.preventDefault();else{if(a.scrollHeight===a.offsetHeight+a.scrollTop&&o<e.y)return void(n=!1);n=!0}else n=!1;if(n&&i.stopPropagation(),0===a.scrollTop&&1===i.touches.length&&(t.refreshState="pulling"),t.refresherEnabled&&"pulling"===t.refreshState){var s=o-e.y;0===t.toUpperNumber&&(t.toUpperNumber=o),t.beforeRefreshing?(t.refresherHeight=s+t.refresherThreshold,t.triggerAbort=!1):(t.refresherHeight=o-t.toUpperNumber,t.refresherHeight>0&&(t.triggerAbort=!0,t.$trigger("refresherpulling",i,{deltaY:s})));var c=t.refresherHeight/t.refresherThreshold;t.refreshRotate=360*(c>1?1:c)}}},this.__handleTouchStart=function(t){1===t.touches.length&&(Object(s["a"])({disable:!0}),e={x:t.touches[0].pageX,y:t.touches[0].pageY})},this.__handleTouchEnd=function(n){e=null,Object(s["a"])({disable:!1}),t.refresherHeight>=t.refresherThreshold?t._setRefreshState("refreshing"):t._setRefreshState("refresherabort")},this.$refs.main.addEventListener("touchstart",this.__handleTouchStart,u),this.$refs.main.addEventListener("touchmove",this.__handleTouchMove,c(!1)),this.$refs.main.addEventListener("scroll",this.__handleScroll,c(!1)),this.$refs.main.addEventListener("touchend",this.__handleTouchEnd,u),Object(s["b"])()},activated:function(){this.scrollY&&(this.$refs.main.scrollTop=this.lastScrollTop),this.scrollX&&(this.$refs.main.scrollLeft=this.lastScrollLeft)},beforeDestroy:function(){this.$refs.main.removeEventListener("touchstart",this.__handleTouchStart,u),this.$refs.main.removeEventListener("touchmove",this.__handleTouchMove,u),this.$refs.main.removeEventListener("scroll",this.__handleScroll,c(!1)),this.$refs.main.removeEventListener("touchend",this.__handleTouchEnd,u)},methods:{scrollTo:function(t,e){var n=this.$refs.main;t<0?t=0:"x"===e&&t>n.scrollWidth-n.offsetWidth?t=n.scrollWidth-n.offsetWidth:"y"===e&&t>n.scrollHeight-n.offsetHeight&&(t=n.scrollHeight-n.offsetHeight);var i=0,r="";"x"===e?i=n.scrollLeft-t:"y"===e&&(i=n.scrollTop-t),0!==i&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===e?r="translateX("+i+"px) translateZ(0)":"y"===e&&(r="translateY("+i+"px) translateZ(0)"),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,t,e),this.$refs.content.addEventListener("transitionend",this.__transitionEnd),this.$refs.content.addEventListener("webkitTransitionEnd",this.__transitionEnd),"x"===e?n.style.overflowX="hidden":"y"===e&&(n.style.overflowY="hidden"),this.$refs.content.style.transform=r,this.$refs.content.style.webkitTransform=r)},_handleTrack:function(t){if("start"===t.detail.state)return this._x=t.detail.x,this._y=t.detail.y,void(this._noBubble=null);"end"===t.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(Math.abs(this._y-t.detail.y)/Math.abs(this._x-t.detail.x)>1?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(Math.abs(this._x-t.detail.x)/Math.abs(this._y-t.detail.y)>1?this._noBubble=!0:this._noBubble=!1),this._x=t.detail.x,this._y=t.detail.y,this._noBubble&&t.stopPropagation()},_handleScroll:function(t){var e=t.target;this.$trigger("scroll",t,{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,deltaX:this.lastScrollLeft-e.scrollLeft,deltaY:this.lastScrollTop-e.scrollTop}),this.scrollY&&(e.scrollTop<=this.upperThresholdNumber&&this.lastScrollTop-e.scrollTop>0&&t.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",t,{direction:"top"}),this.lastScrollToUpperTime=t.timeStamp),e.scrollTop+e.offsetHeight+this.lowerThresholdNumber>=e.scrollHeight&&this.lastScrollTop-e.scrollTop<0&&t.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",t,{direction:"bottom"}),this.lastScrollToLowerTime=t.timeStamp)),this.scrollX&&(e.scrollLeft<=this.upperThresholdNumber&&this.lastScrollLeft-e.scrollLeft>0&&t.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",t,{direction:"left"}),this.lastScrollToUpperTime=t.timeStamp),e.scrollLeft+e.offsetWidth+this.lowerThresholdNumber>=e.scrollWidth&&this.lastScrollLeft-e.scrollLeft<0&&t.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",t,{direction:"right"}),this.lastScrollToLowerTime=t.timeStamp)),this.lastScrollTop=e.scrollTop,this.lastScrollLeft=e.scrollLeft},_scrollTopChanged:function(t){this.scrollY&&(this._innerSetScrollTop?this._innerSetScrollTop=!1:this.scrollWithAnimation?this.scrollTo(t,"y"):this.$refs.main.scrollTop=t)},_scrollLeftChanged:function(t){this.scrollX&&(this._innerSetScrollLeft?this._innerSetScrollLeft=!1:this.scrollWithAnimation?this.scrollTo(t,"x"):this.$refs.main.scrollLeft=t)},_scrollIntoViewChanged:function(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error("id error: scroll-into-view=".concat(t));var e=this.$el.querySelector("#"+t);if(e){var n=this.$refs.main.getBoundingClientRect(),i=e.getBoundingClientRect();if(this.scrollX){var r=i.left-n.left,o=this.$refs.main.scrollLeft,a=o+r;this.scrollWithAnimation?this.scrollTo(a,"x"):this.$refs.main.scrollLeft=a}if(this.scrollY){var s=i.top-n.top,c=this.$refs.main.scrollTop,u=c+s;this.scrollWithAnimation?this.scrollTo(u,"y"):this.$refs.main.scrollTop=u}}}},_transitionEnd:function(t,e){this.$refs.content.style.transition="",this.$refs.content.style.webkitTransition="",this.$refs.content.style.transform="",this.$refs.content.style.webkitTransform="";var n=this.$refs.main;"x"===e?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=t):"y"===e&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=t),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd)},_setRefreshState:function(t){switch(t){case"refreshing":this.refresherHeight=this.refresherThreshold,this.beforeRefreshing||(this.beforeRefreshing=!0,this.$trigger("refresherrefresh",{},{}));break;case"restore":case"refresherabort":this.beforeRefreshing=!1,this.refresherHeight=this.toUpperNumber=0,"restore"===t&&(this.triggerAbort=!1,this.$trigger("refresherrestore",{},{})),"refresherabort"===t&&this.triggerAbort&&(this.triggerAbort=!1,this.$trigger("refresherabort",{},{}));break}this.refreshState=t},getScrollPosition:function(){var t=this.$refs.main;return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth}}}},h=l,d=(n("5ab3"),n("0c7c")),f=Object(d["a"])(h,i,r,!1,null,null,null);e["default"]=f.exports},f2b3:function(t,e,n){"use strict";n.d(e,"l",(function(){return i})),n.d(e,"f",(function(){return u})),n.d(e,"h",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"n",(function(){return f})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"m",(function(){return _})),n.d(e,"i",(function(){return b})),n.d(e,"d",(function(){return y})),n.d(e,"k",(function(){return w})),n.d(e,"j",(function(){return S}));var i=!1;try{var r={};Object.defineProperty(r,"passive",{get:function(){i=!0}}),window.addEventListener("test-passive",null,r)}catch(k){}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;"function"!==typeof atob||atob;var s=Object.prototype.toString,c=Object.prototype.hasOwnProperty;Object.assign;function u(t){return"function"===typeof t}function l(t){return"string"===typeof t}function h(t){return"[object Object]"===s.call(t)}function d(t,e){return c.call(t,e)}function f(t){return s.call(t).slice(8,-1)}function p(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var v=/-(\w)/g,m=p((function(t){return t.replace(v,(function(t,e){return e?e.toUpperCase():""}))}));p((function(t){return t.charAt(0).toUpperCase()+t.slice(1)}));function g(t,e){var n,i=function(){var i=arguments,r=this;clearTimeout(n);var o=function(){return t.apply(r,i)};n=setTimeout(o,e)};return i.cancel=function(){clearTimeout(n)},i}function _(t,e){var n,i,r=0,o=function(){for(var o=this,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var u=Date.now();clearTimeout(n),i=function(){i=null,r=u,t.apply(o,s)},u-r<e?n=setTimeout(i,e-(u-r)):i()};return o.cancel=function(){clearTimeout(n),i=null},o.flush=function(){clearTimeout(n),i&&i()},o}function b(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))}function y(t,e){function n(t){var i=t.children&&t.children.map(n),r=e(t.tag,t.data,i);return r.text=t.text,r.isComment=t.isComment,r.componentOptions=t.componentOptions,r.elm=t.elm,r.context=t.context,r.ns=t.ns,r.isStatic=t.isStatic,r.key=t.key,r}return t.map(n)}function w(t){var e={};return h(t)&&Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),Object.keys(e)?e:t}decodeURIComponent;function S(t){if("function"===typeof t)return window.plus?t():void document.addEventListener("plusready",t)}},f2b8:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u}));var i=n("a20d");function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.publishHandler(i["b"],{data:{method:e,args:n},options:{timestamp:Date.now()}})}function o(t){r("navigateTo",t)}function a(t){r("navigateBack",t)}function s(t){r("reLaunch",t)}function c(t){r("redirectTo",t)}function u(t){r("switchTab",t)}}).call(this,n("501c"))},f53a:function(t,e,n){"use strict";var i=n("3ae8"),r=n.n(i);r.a},f7fd:function(t,e,n){"use strict";var i=n("42f9"),r=n.n(i);r.a},fae3:function(t,e,n){"use strict";if(n.r(e),n.d(e,"upx2px",(function(){return a["h"]})),n.d(e,"navigateTo",(function(){return a["d"]})),n.d(e,"navigateBack",(function(){return a["c"]})),n.d(e,"reLaunch",(function(){return a["e"]})),n.d(e,"redirectTo",(function(){return a["f"]})),n.d(e,"switchTab",(function(){return a["g"]})),n.d(e,"getSystemInfoSync",(function(){return a["b"]})),n.d(e,"canIUse",(function(){return a["a"]})),"undefined"!==typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=n("634a")},fb61:function(t,e,n){"use strict";var i=n("bb67"),r=n.n(i);r.a}})})); \ No newline at end of file -- Gitblit v1.9.3