@10yun/cv-mobile-ui 0.3.23 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/parse-pages.js +182 -0
- package/build/publish-mp-weixin.js +36 -0
- package/build/themp.vue +85 -0
- package/{plugins → extend}/jweixin-module.js +0 -0
- package/{plugins → extend}/permission.js +0 -0
- package/package.json +1 -1
- package/plugins/jumps.js +18 -15
- package/plugins/lbs.js +92 -86
- package/plugins/map/qqmap.js +38 -34
- package/plugins/map/uniMap.js +13 -13
- package/plugins/message.js +10 -10
- package/plugins/request.js +130 -111
- package/plugins/storage.js +30 -33
- package/plugins/storage3.js +52 -52
- package/plugins/uni-copy.js +19 -16
- package/plugins/uni-im.js +23 -22
- package/plugins/uni-nvue-on.js +3 -7
- package/plugins/uni-plugins.js +28 -18
- package/plugins/uni-richText.js +27 -23
- package/plugins/uni-scanCode.js +6 -8
- package/plugins/uni-socket.js +20 -25
- package/plugins/uni-upgrade2.js +34 -40
- package/plugins/uni-upgrade3.js +58 -40
- package/{lib → ui-cv}/cv-banner/cv-banner.vue +0 -0
- package/{lib → ui-cv}/cv-banner-card/cv-banner-card.vue +0 -0
- package/{lib → ui-cv}/cv-block/cv-block.vue +0 -0
- package/{lib → ui-cv}/cv-box/cv-box.vue +0 -0
- package/{lib → ui-cv}/cv-button/cv-button.vue +0 -0
- package/{lib → ui-cv}/cv-cell/cv-cell.vue +0 -0
- package/{lib → ui-cv}/cv-checkbox/cv-checkbox.vue +0 -0
- package/{lib → ui-cv}/cv-checkbox-tag/cv-checkbox-tag.vue +0 -0
- package/{lib → ui-cv}/cv-code-sms/cv-code-sms.vue +35 -19
- package/{lib → ui-cv}/cv-dialog-bottom/cv-dialog-bottom.vue +0 -0
- package/{lib → ui-cv}/cv-dialog-full/cv-dialog-full.vue +0 -0
- package/{lib → ui-cv}/cv-dialog-loading/cv-dialog-loading.vue +0 -0
- package/{lib → ui-cv}/cv-dialog-share/cv-dialog-share.vue +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcode.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/Barcode.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/CODE128.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/CODE128A.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/CODE128B.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/CODE128C.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/CODE128_AUTO.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/auto.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/constants.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE128/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/CODE39/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/EAN.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/EAN13.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/EAN2.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/EAN5.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/EAN8.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/UPC.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/UPCE.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/constants.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/encoder.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/EAN_UPC/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/GenericBarcode/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/ITF/ITF.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/ITF/ITF14.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/ITF/constants.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/ITF/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/MSI.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/MSI10.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/MSI1010.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/MSI11.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/MSI1110.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/checksums.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/MSI/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/codabar/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/index.tmp.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/barcodes/pharmacode/index.js +0 -0
- package/{lib → ui-cv}/cv-draw-barcode/cv-draw-barcode.vue +0 -0
- package/{lib → ui-cv}/cv-draw-posters/cv-draw-posters.vue +0 -0
- package/{lib → ui-cv}/cv-draw-progress/cv-draw-progress.vue +0 -0
- package/{lib → ui-cv}/cv-draw-qrcode/cv-draw-qrcode.vue +0 -0
- package/{lib → ui-cv}/cv-draw-qrcode/qrcode.js +0 -0
- package/{lib → ui-cv}/cv-editor/compressImage.vue +0 -0
- package/{lib → ui-cv}/cv-editor/cv-editor.vue +0 -0
- package/{lib → ui-cv}/cv-editor/editor-icon.css +0 -0
- package/{lib → ui-cv}/cv-editor/editor-icon.ttf +0 -0
- package/{lib → ui-cv}/cv-editor/index.js +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseAudio.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseImg.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTable.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate0.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate1.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate10.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate11.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate2.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate3.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate4.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate5.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate6.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate7.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate8.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseTemplate9.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/components/wxParseVideo.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/cv-editor-parse.vue +0 -0
- package/{lib → ui-cv}/cv-editor-parse/libs/html2json.js +0 -0
- package/{lib → ui-cv}/cv-editor-parse/libs/htmlparser.js +0 -0
- package/{lib → ui-cv}/cv-editor-parse/libs/wxDiscode.js +0 -0
- package/{lib → ui-cv}/cv-editor-parse/readme.md +0 -0
- package/{lib → ui-cv}/cv-editor-parse/u-parse.css +0 -0
- package/{lib → ui-cv}/cv-editor-parse/u-parse.vue +0 -0
- package/{lib → ui-cv}/cv-filter-hm/cv-filter-hm.vue +0 -0
- package/{lib → ui-cv}/cv-form-group/cv-form-group.vue +0 -0
- package/{lib → ui-cv}/cv-form-item/cv-form-item.vue +0 -0
- package/{lib → ui-cv}/cv-form-merge/cv-form-merge.vue +0 -0
- package/{lib → ui-cv}/cv-geo-local/cv-geo-local.vue +0 -0
- package/{lib → ui-cv}/cv-icons/cv-icons.vue +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-action-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-action.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-action.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-arrow-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-arrow.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-arrow.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-base-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-base.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-base.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-default-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-default.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-default.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-mall-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-mall.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-mall.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-media-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-media.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-media.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-order-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-order.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-order.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-people-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-people.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-people.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-status-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-status.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-status.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-wallet-icons.js +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-wallet.css +0 -0
- package/{lib → ui-cv}/cv-icons/iconfont/font-wallet.js +0 -0
- package/{lib → ui-cv}/cv-icons/icons.js +0 -0
- package/{lib → ui-cv}/cv-info/cv-info.vue +0 -0
- package/{lib → ui-cv}/cv-input-btn/cv-input-btn.vue +0 -0
- package/{lib → ui-cv}/cv-input-digit/cv-input-digit.vue +0 -0
- package/{lib → ui-cv}/cv-input-idcard/cv-input-idcard.vue +0 -0
- package/{lib → ui-cv}/cv-input-number/cv-input-number.vue +0 -0
- package/{lib → ui-cv}/cv-input-password/cv-input-password.vue +0 -0
- package/{lib → ui-cv}/cv-input-text/cv-input-text.vue +0 -0
- package/{lib → ui-cv}/cv-link/cv-link.vue +0 -0
- package/{lib → ui-cv}/cv-lists-base/cv-lists-base.vue +0 -0
- package/{lib → ui-cv}/cv-lists-swiper/cv-lists-swipe2r.vue +0 -0
- package/{lib → ui-cv}/cv-lists-swiper/cv-lists-swiper.vue +0 -0
- package/{lib → ui-cv}/cv-load-more/config.json +0 -0
- package/{lib → ui-cv}/cv-load-more/cv-load-more.vue +0 -0
- package/{lib → ui-cv}/cv-message/cv-message.vue +0 -0
- package/{lib → ui-cv}/cv-nav-col/cv-nav-col.vue +0 -0
- package/{lib → ui-cv}/cv-nav-group/cv-nav-group.vue +0 -0
- package/{lib → ui-cv}/cv-nav-row/cv-nav-row.vue +0 -0
- package/{lib → ui-cv}/cv-picker-date/cv-picker-date.vue +0 -0
- package/{lib → ui-cv}/cv-picker-datetime/cv-picker-datetime.vue +0 -0
- package/{lib → ui-cv}/cv-picker-datetime5/cv-picker-datetime5.vue +0 -0
- package/{lib → ui-cv}/cv-picker-region/cv-picker-region.vue +0 -0
- package/{lib → ui-cv}/cv-picker-time/cv-picker-time.vue +0 -0
- package/{lib → ui-cv}/cv-picker1/cv-picker1.vue +0 -0
- package/{lib → ui-cv}/cv-picker2/cv-picker2.vue +0 -0
- package/{lib → ui-cv}/cv-picker3/cv-picker3.vue +0 -0
- package/{lib → ui-cv}/cv-radio/cv-radio.vue +0 -0
- package/{lib → ui-cv}/cv-radio-sex/cv-radio-sex.vue +0 -0
- package/{lib → ui-cv}/cv-radio-tag/cv-radio-tag.vue +0 -0
- package/{lib → ui-cv}/cv-rate/cv-rate.vue +0 -0
- package/{lib → ui-cv}/cv-search/cv-search.vue +0 -0
- package/{lib → ui-cv}/cv-skeleton/cv-skeleton.vue +0 -0
- package/{lib → ui-cv}/cv-skeleton/cv-skeleton2.vue +0 -0
- package/{lib → ui-cv}/cv-skeleton-group/cv-skeleton-group.vue +0 -0
- package/{lib → ui-cv}/cv-specs/cv-specs.vue +0 -0
- package/{lib → ui-cv}/cv-switch/cv-switch.vue +0 -0
- package/{lib → ui-cv}/cv-tab-lists/cv-tab-lists.vue +0 -0
- package/{lib → ui-cv}/cv-textarea/cv-textarea.vue +0 -0
- package/{lib → ui-cv}/cv-treaty/cv-treaty.vue +0 -0
- package/{lib → ui-cv}/cv-update-app/cv-update-app.vue +0 -0
- package/{lib → ui-cv}/cv-upload-avatar/cv-upload-avatar.vue +0 -0
- package/{lib → ui-cv}/cv-upload-img/cv-upload-img.vue +0 -0
- package/{lib → ui-cv}/dict/area-city.js +0 -0
- package/{lib → ui-cv}/dict/area-county.js +0 -0
- package/{lib → ui-cv}/dict/area-province.js +0 -0
- package/{lib → ui-cv}/mixins/mixins-checkbox.js +0 -0
- package/{lib → ui-cv}/mixins/mixins-common.js +0 -0
- package/{lib → ui-cv}/mixins/mixins-input.js +0 -0
- package/{lib → ui-cv}/mixins/mixins-picker.js +0 -0
- package/{lib → ui-cv}/mixins/mixins-radio.js +0 -0
- package/{lib-uni → ui-uni}/README.md +0 -0
- package/{lib-uni → ui-uni}/amap-wx/js/util.js +0 -0
- package/{lib-uni → ui-uni}/amap-wx/lib/amap-wx.js +0 -0
- package/{lib-uni → ui-uni}/api-set-tabbar.nvue +0 -0
- package/{lib-uni → ui-uni}/marked/index.js +0 -0
- package/{lib-uni → ui-uni}/marked/lib/marked.js +0 -0
- package/{lib-uni → ui-uni}/mpvue-citypicker/city-data/area.js +0 -0
- package/{lib-uni → ui-uni}/mpvue-citypicker/city-data/city.js +0 -0
- package/{lib-uni → ui-uni}/mpvue-citypicker/city-data/province.js +0 -0
- package/{lib-uni → ui-uni}/mpvue-citypicker/mpvueCityPicker.vue +0 -0
- package/{lib-uni → ui-uni}/mpvue-echarts/src/echarts.vue +0 -0
- package/{lib-uni → ui-uni}/mpvue-echarts/src/wx-canvas.js +0 -0
- package/{lib-uni → ui-uni}/mpvue-picker/mpvuePicker.vue +0 -0
- package/{lib-uni → ui-uni}/mpvueGestureLock/gestureLock.js +0 -0
- package/{lib-uni → ui-uni}/mpvueGestureLock/index.vue +0 -0
- package/{lib-uni → ui-uni}/page-foot/page-foot.vue +0 -0
- package/{lib-uni → ui-uni}/page-head/page-head.vue +0 -0
- package/{lib-uni → ui-uni}/product.vue +0 -0
- package/{lib-uni → ui-uni}/tab-nvue/mediaList.vue +0 -0
- package/{lib-uni → ui-uni}/u-charts/u-charts.js +0 -0
- package/{lib-uni → ui-uni}/u-link/u-link.vue +0 -0
- package/{lib-uni → ui-uni}/uni-badge/uni-badge.vue +0 -0
- package/{lib-uni → ui-uni}/uni-calendar/calendar.js +0 -0
- package/{lib-uni → ui-uni}/uni-calendar/uni-calendar-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-calendar/uni-calendar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-calendar/util.js +0 -0
- package/{lib-uni → ui-uni}/uni-card/uni-card.vue +0 -0
- package/{lib-uni → ui-uni}/uni-col/uni-col.vue +0 -0
- package/{lib-uni → ui-uni}/uni-collapse/uni-collapse.vue +0 -0
- package/{lib-uni → ui-uni}/uni-collapse-item/uni-collapse-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-combox/uni-combox.vue +0 -0
- package/{lib-uni → ui-uni}/uni-countdown/uni-countdown.vue +0 -0
- package/{lib-uni → ui-uni}/uni-data-checkbox/uni-data-checkbox.vue +0 -0
- package/{lib-uni → ui-uni}/uni-data-indexed-list/clientdb.js +0 -0
- package/{lib-uni → ui-uni}/uni-data-indexed-list/uni-data-indexed-list-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-data-indexed-list/uni-data-indexed-list.vue +0 -0
- package/{lib-uni → ui-uni}/uni-data-picker/keypress.js +0 -0
- package/{lib-uni → ui-uni}/uni-data-picker/uni-data-picker.vue +0 -0
- package/{lib-uni → ui-uni}/uni-data-pickerview/uni-data-picker.js +0 -0
- package/{lib-uni → ui-uni}/uni-data-pickerview/uni-data-pickerview.vue +0 -0
- package/{lib-uni → ui-uni}/uni-dateformat/date-format.js +0 -0
- package/{lib-uni → ui-uni}/uni-dateformat/uni-dateformat.vue +0 -0
- package/{lib-uni → ui-uni}/uni-datetime-picker/calendar-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-datetime-picker/calendar.js +1 -1
- package/{lib-uni → ui-uni}/uni-datetime-picker/calendar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-datetime-picker/keypress.js +0 -0
- package/{lib-uni → ui-uni}/uni-datetime-picker/time-picker.vue +0 -0
- package/{lib-uni → ui-uni}/uni-datetime-picker/uni-datetime-picker.vue +0 -0
- package/{lib-uni → ui-uni}/uni-datetime-picker/util.js +0 -0
- package/{lib-uni → ui-uni}/uni-drawer/keypress.js +0 -0
- package/{lib-uni → ui-uni}/uni-drawer/uni-drawer.vue +0 -0
- package/{lib-uni → ui-uni}/uni-easyinput/common.js +0 -0
- package/{lib-uni → ui-uni}/uni-easyinput/uni-easyinput.vue +0 -0
- package/{lib-uni → ui-uni}/uni-fab/uni-fab.vue +0 -0
- package/{lib-uni → ui-uni}/uni-fab/uni-fab.vue.bak +0 -0
- package/{lib-uni → ui-uni}/uni-fav/uni-fav.vue +0 -0
- package/{lib-uni → ui-uni}/uni-file-picker/choose-and-upload-file.js +0 -0
- package/{lib-uni → ui-uni}/uni-file-picker/uni-file-picker.vue +0 -0
- package/{lib-uni → ui-uni}/uni-file-picker/upload-file.vue +0 -0
- package/{lib-uni → ui-uni}/uni-file-picker/upload-image.vue +0 -0
- package/{lib-uni → ui-uni}/uni-file-picker/utils.js +0 -0
- package/{lib-uni → ui-uni}/uni-forms/uni-forms.vue +0 -0
- package/{lib-uni → ui-uni}/uni-forms/validate.js +0 -0
- package/{lib-uni → ui-uni}/uni-forms-item/uni-forms-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-goods-nav/uni-goods-nav.vue +0 -0
- package/{lib-uni → ui-uni}/uni-grid/uni-grid.vue +0 -0
- package/{lib-uni → ui-uni}/uni-grid-item/uni-grid-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-group/uni-group.vue +0 -0
- package/{lib-uni → ui-uni}/uni-icons/icons.js +0 -0
- package/{lib-uni → ui-uni}/uni-icons/uni-icons.vue +0 -0
- package/{lib-uni → ui-uni}/uni-icons/uni.ttf +0 -0
- package/{lib-uni → ui-uni}/uni-indexed-list/uni-indexed-list-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-indexed-list/uni-indexed-list.vue +0 -0
- package/{lib-uni → ui-uni}/uni-link/uni-link.vue +0 -0
- package/{lib-uni → ui-uni}/uni-list/uni-list.vue +0 -0
- package/{lib-uni → ui-uni}/uni-list/uni-refresh.vue +0 -0
- package/{lib-uni → ui-uni}/uni-list/uni-refresh.wxs +0 -0
- package/{lib-uni → ui-uni}/uni-list-ad/uni-list-ad.vue +0 -0
- package/{lib-uni → ui-uni}/uni-list-chat/uni-list-chat.scss +0 -0
- package/{lib-uni → ui-uni}/uni-list-chat/uni-list-chat.vue +0 -0
- package/{lib-uni → ui-uni}/uni-list-item/uni-list-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-load-more/uni-load-more.vue +0 -0
- package/{lib-uni → ui-uni}/uni-nav-bar/uni-nav-bar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-nav-bar/uni-status-bar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-notice-bar/uni-notice-bar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-number-box/uni-number-box.vue +0 -0
- package/{lib-uni → ui-uni}/uni-pagination/uni-pagination.vue +0 -0
- package/{lib-uni → ui-uni}/uni-popup/keypress.js +0 -0
- package/{lib-uni → ui-uni}/uni-popup/popup.js +0 -0
- package/{lib-uni → ui-uni}/uni-popup/uni-popup.vue +0 -0
- package/{lib-uni → ui-uni}/uni-popup-dialog/keypress.js +0 -0
- package/{lib-uni → ui-uni}/uni-popup-dialog/uni-popup-dialog.vue +0 -0
- package/{lib-uni → ui-uni}/uni-popup-message/uni-popup-message.vue +0 -0
- package/{lib-uni → ui-uni}/uni-popup-share/uni-popup-share.vue +0 -0
- package/{lib-uni → ui-uni}/uni-rate/uni-rate.vue +0 -0
- package/{lib-uni → ui-uni}/uni-row/uni-row.vue +0 -0
- package/{lib-uni → ui-uni}/uni-search-bar/uni-search-bar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-section/uni-section.vue +0 -0
- package/{lib-uni → ui-uni}/uni-segmented-control/uni-segmented-control.vue +0 -0
- package/{lib-uni → ui-uni}/uni-status-bar/uni-status-bar.vue +0 -0
- package/{lib-uni → ui-uni}/uni-steps/uni-steps.vue +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action/uni-swipe-action.vue +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/bindingx.js +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/index.wxs +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/isPC.js +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/mpalipay.js +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/mpother.js +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/mpwxs.js +0 -0
- package/{lib-uni → ui-uni}/uni-swipe-action-item/uni-swipe-action-item.vue +0 -0
- package/{lib-uni → ui-uni}/uni-swiper-dot/uni-swiper-dot.vue +0 -0
- package/{lib-uni → ui-uni}/uni-table/uni-table.vue +0 -0
- package/{lib-uni → ui-uni}/uni-tag/uni-tag.vue +0 -0
- package/{lib-uni → ui-uni}/uni-tbody/uni-tbody.vue +0 -0
- package/{lib-uni → ui-uni}/uni-td/uni-td.vue +0 -0
- package/{lib-uni → ui-uni}/uni-test/uni-test.vue +0 -0
- package/{lib-uni → ui-uni}/uni-th/filter-dropdown.vue +0 -0
- package/{lib-uni → ui-uni}/uni-th/uni-th.vue +0 -0
- package/{lib-uni → ui-uni}/uni-thead/uni-thead.vue +0 -0
- package/{lib-uni → ui-uni}/uni-title/uni-title.vue +0 -0
- package/{lib-uni → ui-uni}/uni-tr/table-checkbox.vue +0 -0
- package/{lib-uni → ui-uni}/uni-tr/uni-tr.vue +0 -0
- package/{lib-uni → ui-uni}/uni-transition/createAnimation.js +0 -0
- package/{lib-uni → ui-uni}/uni-transition/uni-transition.vue +0 -0
- package/plugins/uni-push.js +0 -88
package/plugins/storage3.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
let cacheMap = new Map()
|
|
2
|
-
let timeoutDefault = 86400 // 设置默认超时时间,单位秒 3600*24
|
|
1
|
+
let cacheMap = new Map();
|
|
2
|
+
let timeoutDefault = 86400; // 设置默认超时时间,单位秒 3600*24
|
|
3
3
|
|
|
4
4
|
function isTimeout(name) {
|
|
5
|
-
const data = cacheMap.get(name)
|
|
6
|
-
if (!data) return true
|
|
7
|
-
if (data.timeout === 0) return false
|
|
8
|
-
const currentTime = Date.now()
|
|
9
|
-
const overTime = (currentTime - data.createTime) / 1000
|
|
5
|
+
const data = cacheMap.get(name);
|
|
6
|
+
if (!data) return true;
|
|
7
|
+
if (data.timeout === 0) return false;
|
|
8
|
+
const currentTime = Date.now();
|
|
9
|
+
const overTime = (currentTime - data.createTime) / 1000;
|
|
10
10
|
if (overTime > data.timeout) {
|
|
11
|
-
cacheMap.delete(name)
|
|
11
|
+
cacheMap.delete(name);
|
|
12
12
|
if (name.startsWith('_')) {
|
|
13
13
|
try {
|
|
14
|
-
uni.removeStorageSync(name)
|
|
14
|
+
uni.removeStorageSync(name);
|
|
15
15
|
} catch (e) {
|
|
16
|
-
console.log(e)
|
|
16
|
+
console.log(e);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
return true
|
|
19
|
+
return true;
|
|
20
20
|
}
|
|
21
|
-
return false
|
|
21
|
+
return false;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
class CacheCell {
|
|
25
25
|
constructor(data, timeout) {
|
|
26
|
-
this.data = data
|
|
27
|
-
this.timeout = timeout // 设置超时时间,单位秒
|
|
28
|
-
this.createTime = Date.now() // 对象创建时候的时间
|
|
26
|
+
this.data = data;
|
|
27
|
+
this.timeout = timeout; // 设置超时时间,单位秒
|
|
28
|
+
this.createTime = Date.now(); // 对象创建时候的时间
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
class CacheClass {
|
|
33
33
|
constructor(timeout) {
|
|
34
34
|
try {
|
|
35
|
-
const res = uni.getStorageInfoSync()
|
|
36
|
-
res.keys.forEach(name => {
|
|
35
|
+
const res = uni.getStorageInfoSync();
|
|
36
|
+
res.keys.forEach((name) => {
|
|
37
37
|
try {
|
|
38
|
-
const value = uni.getStorageSync(name)
|
|
39
|
-
cacheMap.set(name, value)
|
|
38
|
+
const value = uni.getStorageSync(name);
|
|
39
|
+
cacheMap.set(name, value);
|
|
40
40
|
} catch (e) {
|
|
41
|
-
console.log(e)
|
|
41
|
+
console.log(e);
|
|
42
42
|
}
|
|
43
|
-
})
|
|
43
|
+
});
|
|
44
44
|
} catch (e) {
|
|
45
|
-
console.log(e)
|
|
45
|
+
console.log(e);
|
|
46
46
|
}
|
|
47
|
-
timeoutDefault = timeout
|
|
47
|
+
timeoutDefault = timeout;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* 设置缓存数据
|
|
52
|
-
* @param {Any} name 缓存的key, 以下划线命名表示永久缓存到Storage
|
|
53
|
-
* @param {Any} data 缓存的数据
|
|
54
|
-
* @param {Number} timeout 缓存时间(秒),默认86400秒即一天,0表示永久缓存
|
|
50
|
+
/**
|
|
51
|
+
* 设置缓存数据
|
|
52
|
+
* @param {Any} name 缓存的key, 以下划线命名表示永久缓存到Storage
|
|
53
|
+
* @param {Any} data 缓存的数据
|
|
54
|
+
* @param {Number} timeout 缓存时间(秒),默认86400秒即一天,0表示永久缓存
|
|
55
55
|
*/
|
|
56
56
|
set(name, data, timeout = timeoutDefault) {
|
|
57
|
-
const cachecell = new CacheCell(data, timeout)
|
|
58
|
-
let cache = null
|
|
57
|
+
const cachecell = new CacheCell(data, timeout);
|
|
58
|
+
let cache = null;
|
|
59
59
|
if (name.startsWith('_')) {
|
|
60
60
|
try {
|
|
61
|
-
uni.setStorageSync(name, cachecell)
|
|
62
|
-
cache = cacheMap.set(name, cachecell)
|
|
61
|
+
uni.setStorageSync(name, cachecell);
|
|
62
|
+
cache = cacheMap.set(name, cachecell);
|
|
63
63
|
} catch (e) {
|
|
64
|
-
console.log(e)
|
|
64
|
+
console.log(e);
|
|
65
65
|
}
|
|
66
66
|
} else {
|
|
67
|
-
cache = cacheMap.set(name, cachecell)
|
|
67
|
+
cache = cacheMap.set(name, cachecell);
|
|
68
68
|
}
|
|
69
|
-
return cache
|
|
69
|
+
return cache;
|
|
70
70
|
}
|
|
71
71
|
get(name) {
|
|
72
|
-
return isTimeout(name) ? null : cacheMap.get(name).data
|
|
72
|
+
return isTimeout(name) ? null : cacheMap.get(name).data;
|
|
73
73
|
}
|
|
74
74
|
delete(name) {
|
|
75
|
-
let value = false
|
|
75
|
+
let value = false;
|
|
76
76
|
if (name.startsWith('_')) {
|
|
77
77
|
try {
|
|
78
|
-
uni.removeStorageSync(name)
|
|
79
|
-
value = cacheMap.delete(name)
|
|
78
|
+
uni.removeStorageSync(name);
|
|
79
|
+
value = cacheMap.delete(name);
|
|
80
80
|
} catch (e) {
|
|
81
|
-
console.log(e)
|
|
81
|
+
console.log(e);
|
|
82
82
|
}
|
|
83
83
|
} else {
|
|
84
|
-
value = cacheMap.delete(name)
|
|
84
|
+
value = cacheMap.delete(name);
|
|
85
85
|
}
|
|
86
|
-
return value
|
|
86
|
+
return value;
|
|
87
87
|
}
|
|
88
88
|
has(name) {
|
|
89
|
-
return !isTimeout(name)
|
|
89
|
+
return !isTimeout(name);
|
|
90
90
|
}
|
|
91
91
|
clear() {
|
|
92
|
-
let value = false
|
|
92
|
+
let value = false;
|
|
93
93
|
try {
|
|
94
|
-
uni.clearStorageSync()
|
|
95
|
-
cacheMap.clear()
|
|
96
|
-
value = true
|
|
94
|
+
uni.clearStorageSync();
|
|
95
|
+
cacheMap.clear();
|
|
96
|
+
value = true;
|
|
97
97
|
} catch (e) {
|
|
98
|
-
console.log(e)
|
|
98
|
+
console.log(e);
|
|
99
99
|
}
|
|
100
|
-
return value
|
|
100
|
+
return value;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
CacheClass.install = function (Vue, { timeout = 86400 } = {}) {
|
|
105
|
-
Vue.prototype.$cache = new CacheClass(timeout)
|
|
106
|
-
}
|
|
105
|
+
Vue.prototype.$cache = new CacheClass(timeout);
|
|
106
|
+
};
|
|
107
107
|
|
|
108
|
-
export default CacheClass
|
|
108
|
+
export default CacheClass;
|
package/plugins/uni-copy.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default function uniCopy({ content, success, error }) {
|
|
2
|
-
console.log(content)
|
|
3
|
-
content = typeof content === 'string' ? content : content.toString() // 复制内容,必须字符串,数字需要转换为字符串
|
|
2
|
+
console.log(content);
|
|
3
|
+
content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 小程序端 和 app端的复制逻辑
|
|
@@ -9,11 +9,11 @@ export default function uniCopy({ content, success, error }) {
|
|
|
9
9
|
uni.setClipboardData({
|
|
10
10
|
data: content,
|
|
11
11
|
success: function () {
|
|
12
|
-
success(
|
|
12
|
+
success('复制成功~');
|
|
13
13
|
console.log('success');
|
|
14
14
|
},
|
|
15
15
|
fail: function () {
|
|
16
|
-
success(
|
|
16
|
+
success('复制失败~');
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
//#endif
|
|
@@ -22,22 +22,25 @@ export default function uniCopy({ content, success, error }) {
|
|
|
22
22
|
* H5端的复制逻辑
|
|
23
23
|
*/
|
|
24
24
|
// #ifdef H5
|
|
25
|
-
if (!document.queryCommandSupported('copy')) {
|
|
25
|
+
if (!document.queryCommandSupported('copy')) {
|
|
26
|
+
//为了兼容有些浏览器 queryCommandSupported 的判断
|
|
26
27
|
// 不支持
|
|
27
|
-
error('浏览器不支持')
|
|
28
|
+
error('浏览器不支持');
|
|
28
29
|
}
|
|
29
|
-
let textarea = document.createElement(
|
|
30
|
-
textarea.value = content
|
|
31
|
-
textarea.readOnly =
|
|
32
|
-
document.body.appendChild(textarea)
|
|
33
|
-
textarea.select() // 选择对象
|
|
34
|
-
textarea.setSelectionRange(0, content.length) //核心
|
|
35
|
-
let result = document.execCommand(
|
|
30
|
+
let textarea = document.createElement('textarea');
|
|
31
|
+
textarea.value = content;
|
|
32
|
+
textarea.readOnly = 'readOnly';
|
|
33
|
+
document.body.appendChild(textarea);
|
|
34
|
+
textarea.select(); // 选择对象
|
|
35
|
+
textarea.setSelectionRange(0, content.length); //核心
|
|
36
|
+
let result = document.execCommand('copy'); // 执行浏览器复制命令
|
|
36
37
|
if (result) {
|
|
37
|
-
success(
|
|
38
|
+
success('复制成功~');
|
|
38
39
|
} else {
|
|
39
|
-
error(
|
|
40
|
+
error(
|
|
41
|
+
'复制失败,请检查h5中调用该方法的方式,是不是用户点击的方式调用的,如果不是请改为用户点击的方式触发该方法,因为h5中安全性,不能js直接调用!'
|
|
42
|
+
);
|
|
40
43
|
}
|
|
41
|
-
textarea.remove()
|
|
44
|
+
textarea.remove();
|
|
42
45
|
// #endif
|
|
43
46
|
}
|
package/plugins/uni-im.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
const imFunc = {
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
|
-
* 接收端口消息 //获取推送数据
|
|
5
|
-
*/
|
|
3
|
+
* 接收端口消息 //获取推送数据
|
|
4
|
+
*/
|
|
6
5
|
getMsgMessage: function (showIndex) {
|
|
7
6
|
showIndex = showIndex || 4;
|
|
8
7
|
// 账户信息存在时执行
|
|
9
|
-
let has_login = _this.$store.state.storeUser.has_login
|
|
8
|
+
let has_login = _this.$store.state.storeUser.has_login;
|
|
10
9
|
if (has_login) {
|
|
11
|
-
reqUtils
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
reqUtils
|
|
11
|
+
.requestApi('GET', 'ucenter/message/get_message_count', {
|
|
12
|
+
page: 1
|
|
13
|
+
})
|
|
14
|
+
.then((successRes) => {
|
|
15
|
+
var count = successRes.data.count;
|
|
16
|
+
if (count > 0) {
|
|
17
|
+
uni.setTabBarBadge({
|
|
18
|
+
index: showIndex,
|
|
19
|
+
text: String(count)
|
|
20
|
+
});
|
|
21
|
+
return count;
|
|
22
|
+
} else {
|
|
23
|
+
uni.removeTabBarBadge({
|
|
24
|
+
index: showIndex
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
27
28
|
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
30
31
|
module.exports = imFunc;
|
package/plugins/uni-nvue-on.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
let fun_arr = [
|
|
2
|
-
'requestApi',
|
|
3
|
-
'$reqUploadImg',
|
|
4
|
-
'nvue_func'
|
|
5
|
-
];
|
|
1
|
+
let fun_arr = ['requestApi', '$reqUploadImg', 'nvue_func'];
|
|
6
2
|
for (let i in fun_arr) {
|
|
7
3
|
let key = fun_arr[i];
|
|
8
|
-
uni.$on(key, res => {
|
|
4
|
+
uni.$on(key, (res) => {
|
|
9
5
|
if (!res) res = [];
|
|
10
6
|
if (typeof res != 'object') {
|
|
11
7
|
console.log('uni.$emit失败!res需为空或数组');
|
|
@@ -13,4 +9,4 @@ for (let i in fun_arr) {
|
|
|
13
9
|
}
|
|
14
10
|
this[key](...res);
|
|
15
11
|
});
|
|
16
|
-
}
|
|
12
|
+
}
|
package/plugins/uni-plugins.js
CHANGED
|
@@ -1,32 +1,42 @@
|
|
|
1
|
-
!
|
|
1
|
+
!(function (root, factory) {
|
|
2
2
|
if (typeof exports == 'object' && typeof module != 'undefined') {
|
|
3
|
-
module.exports = factory()
|
|
3
|
+
module.exports = factory();
|
|
4
4
|
} else if (typeof define == 'function' && define.amd) {
|
|
5
|
-
define(factory)
|
|
5
|
+
define(factory);
|
|
6
6
|
} else {
|
|
7
7
|
// 5+ 兼容
|
|
8
|
-
document.addEventListener(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
document.addEventListener(
|
|
9
|
+
'plusready',
|
|
10
|
+
function () {
|
|
11
|
+
// 修改此处为插件命名
|
|
12
|
+
var moduleName = 'plugintest';
|
|
13
|
+
// 挂载在plus下
|
|
14
|
+
root.plus[moduleName] = factory();
|
|
15
|
+
},
|
|
16
|
+
false
|
|
17
|
+
);
|
|
14
18
|
}
|
|
15
|
-
}(this, function () {
|
|
19
|
+
})(this, function () {
|
|
16
20
|
//在此处定义自己的方法
|
|
17
21
|
var _BARCODE = 'plugintest';
|
|
18
22
|
var plugintest = {
|
|
19
23
|
PluginTestFunction: function (Argus1, Argus2, Argus3, Argus4, successCallback, errorCallback) {
|
|
20
|
-
var success =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
var success =
|
|
25
|
+
typeof successCallback !== 'function'
|
|
26
|
+
? null
|
|
27
|
+
: function (args) {
|
|
28
|
+
successCallback(args);
|
|
29
|
+
},
|
|
30
|
+
fail =
|
|
31
|
+
typeof errorCallback !== 'function'
|
|
32
|
+
? null
|
|
33
|
+
: function (code) {
|
|
34
|
+
errorCallback(code);
|
|
35
|
+
};
|
|
26
36
|
var callbackID = plus.bridge.callbackId(success, fail);
|
|
27
37
|
|
|
28
|
-
return plus.bridge.exec(_BARCODE,
|
|
29
|
-
}
|
|
38
|
+
return plus.bridge.exec(_BARCODE, 'PluginTestFunction', [callbackID, Argus1, Argus2, Argus3, Argus4]);
|
|
39
|
+
}
|
|
30
40
|
// ,
|
|
31
41
|
// PluginTestFunctionArrayArgu: function(Argus, successCallback, errorCallback) {
|
|
32
42
|
// var success = typeof successCallback !== 'function' ? null : function(args) {
|
package/plugins/uni-richText.js
CHANGED
|
@@ -10,41 +10,43 @@ var graceRichTextReg;
|
|
|
10
10
|
// 批量替换的样式 [ 根据项目需求自行设置 ]
|
|
11
11
|
var GRT = [
|
|
12
12
|
// div 样式
|
|
13
|
-
['div',
|
|
13
|
+
['div', 'line-height:2em;'],
|
|
14
14
|
// h1 样式
|
|
15
|
-
['h1',
|
|
15
|
+
['h1', 'font-size:3em; line-height:1.5em;'],
|
|
16
16
|
// h2 样式
|
|
17
|
-
['h2',
|
|
17
|
+
['h2', 'font-size:2em; line-height:1.8em;'],
|
|
18
18
|
// h3 样式
|
|
19
|
-
['h3',
|
|
19
|
+
['h3', 'font-size:1.6em; line-height:2em;'],
|
|
20
20
|
// h4 样式
|
|
21
|
-
['h4',
|
|
21
|
+
['h4', 'font-size:1.2em; line-height:2em;'],
|
|
22
22
|
// h5 样式
|
|
23
|
-
['h5',
|
|
23
|
+
['h5', 'font-size:1em; line-height:2em;'],
|
|
24
24
|
// h6 样式
|
|
25
|
-
['h6',
|
|
25
|
+
['h6', 'font-size:0.9em; line-height:2em;'],
|
|
26
26
|
// p 样式
|
|
27
|
-
['p',
|
|
27
|
+
['p', 'font-size:1em; line-height:2em;'],
|
|
28
28
|
// b 样式
|
|
29
|
-
['b',
|
|
29
|
+
['b', 'font-size:1em; line-height:2em;'],
|
|
30
30
|
// strong 样式
|
|
31
|
-
['strong',
|
|
31
|
+
['strong', 'font-size:1em; line-height:2em;'],
|
|
32
32
|
// code 样式
|
|
33
|
-
['code',
|
|
33
|
+
['code', 'font-size:1em; line-height:1.2em; background:#F6F7F8; padding:8px 2%; width:96%;'],
|
|
34
34
|
// img 样式
|
|
35
|
-
['img',
|
|
35
|
+
['img', 'width:100%; margin:8px 0;'],
|
|
36
36
|
// blockquote
|
|
37
|
-
[
|
|
37
|
+
[
|
|
38
|
+
'blockquote',
|
|
39
|
+
'font-size:1em; border-left:3px solid #D1D1D1; line-height:2em; border-radius:5px; background:#F6F7F8; padding:8px 2%;'
|
|
40
|
+
],
|
|
38
41
|
// li 样式
|
|
39
|
-
['ul',
|
|
40
|
-
['li',
|
|
42
|
+
['ul', 'padding:5px 0; list-style:none; padding:0; margin:0;'],
|
|
43
|
+
['li', 'line-height:1.5em; padding:5px 0; list-style:none; padding:0; margin:0; margin-top:10px;'],
|
|
41
44
|
// table
|
|
42
|
-
['table',
|
|
43
|
-
['th',
|
|
44
|
-
['td',
|
|
45
|
+
['table', 'width:100%; border-left:1px solid #F2F3F4; border-top:1px solid #F2F3F4;'],
|
|
46
|
+
['th', 'border-right:1px solid #F2F3F4; border-bottom:1px solid #F2F3F4;'],
|
|
47
|
+
['td', 'border-right:1px solid #F2F3F4; border-bottom:1px solid #F2F3F4; padding-left:5px;']
|
|
45
48
|
];
|
|
46
49
|
|
|
47
|
-
|
|
48
50
|
module.exports = {
|
|
49
51
|
format: function (html) {
|
|
50
52
|
html = html || '';
|
|
@@ -56,8 +58,11 @@ module.exports = {
|
|
|
56
58
|
word = word.replace(/ /gi, '<span style="padding-left:2em;"></span>');
|
|
57
59
|
return word.replace(/[\t]/gi, '<span style="padding-left:2em;"></span>');
|
|
58
60
|
});
|
|
59
|
-
html = html.replace(
|
|
60
|
-
|
|
61
|
+
html = html.replace(
|
|
62
|
+
/<pre/gi,
|
|
63
|
+
'<p style="font-size:1em; margin:12px 0; line-height:1.2em; background:#F6F7F8; border-radius:5px; padding:8px 4%; width:92%;"'
|
|
64
|
+
);
|
|
65
|
+
html = html.replace(/<\/pre/gi, '</p');
|
|
61
66
|
for (let i = 0; i < GRT.length; i++) {
|
|
62
67
|
graceRichTextReg = new RegExp('<' + GRT[i][0] + '>|<' + GRT[i][0] + ' (.*?)>', 'gi');
|
|
63
68
|
html = html.replace(graceRichTextReg, function (word) {
|
|
@@ -73,5 +78,4 @@ module.exports = {
|
|
|
73
78
|
}
|
|
74
79
|
return html;
|
|
75
80
|
}
|
|
76
|
-
|
|
77
|
-
}
|
|
81
|
+
};
|
package/plugins/uni-scanCode.js
CHANGED
|
@@ -47,24 +47,22 @@ function scanCodeFunc() {
|
|
|
47
47
|
let usQrArr = resArr[1].split('=');
|
|
48
48
|
let usQr = usQrArr[1]; //扫码结果
|
|
49
49
|
return resolve({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
resArr: resArr,
|
|
51
|
+
ustype: ustype,
|
|
52
|
+
usQrArr: usQrArr,
|
|
53
|
+
usQr: usQr
|
|
54
54
|
});
|
|
55
|
-
|
|
56
55
|
} else {
|
|
57
56
|
uni.showToast({
|
|
58
57
|
title: '不是该应用的二维码',
|
|
59
58
|
icon: 'none'
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
},
|
|
64
62
|
complete: function (res) {
|
|
65
63
|
console.log('scancomplete');
|
|
66
64
|
},
|
|
67
|
-
fail: res => {
|
|
65
|
+
fail: (res) => {
|
|
68
66
|
reject(res.result);
|
|
69
67
|
console.log('failfailfailfailfailfailfailfailfailfailfail');
|
|
70
68
|
uni.showToast({
|
|
@@ -75,4 +73,4 @@ function scanCodeFunc() {
|
|
|
75
73
|
});
|
|
76
74
|
|
|
77
75
|
// #endif
|
|
78
|
-
}
|
|
76
|
+
}
|
package/plugins/uni-socket.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import cConfig from '@/utils/ctoui-config.js';
|
|
2
2
|
|
|
3
|
-
const SocketConnectInit =
|
|
4
|
-
const SocketConnectRefresh =
|
|
3
|
+
const SocketConnectInit = 'JKLINK_IM|connec_init|cucenterTC|' + cConfig.syOpenAppsId + '|';
|
|
4
|
+
const SocketConnectRefresh = 'JKLINK_IM|connec_refresh|cucenterTC|' + cConfig.syOpenAppsId + '|';
|
|
5
5
|
const s_data = {
|
|
6
6
|
beat_duration: 30000, //心跳间隔
|
|
7
7
|
limit_times: 60, //重连限制
|
|
8
|
-
reconnet_times: 0
|
|
9
|
-
}
|
|
8
|
+
reconnet_times: 0 //当前重连次数
|
|
9
|
+
};
|
|
10
10
|
var socket_status = false; //回话状态(主动)
|
|
11
11
|
var connect_status = false; //连接状态(被动)
|
|
12
12
|
//心跳时间
|
|
@@ -25,7 +25,7 @@ const ctoSocketClass = {
|
|
|
25
25
|
socket_status = false;
|
|
26
26
|
uni.closeSocket({
|
|
27
27
|
url: cConfig._URL_WSS_IM1_
|
|
28
|
-
})
|
|
28
|
+
});
|
|
29
29
|
},
|
|
30
30
|
xintiaoFunc: function () {
|
|
31
31
|
let timer = setInterval(function () {
|
|
@@ -44,7 +44,7 @@ const ctoSocketClass = {
|
|
|
44
44
|
fail: function (failRes) {
|
|
45
45
|
console.log('发送失败', failRes);
|
|
46
46
|
}
|
|
47
|
-
})
|
|
47
|
+
});
|
|
48
48
|
else {
|
|
49
49
|
console.log('尝试断线重连');
|
|
50
50
|
clearInterval(timer);
|
|
@@ -70,8 +70,8 @@ const ctoSocketClass = {
|
|
|
70
70
|
socket_status = true;
|
|
71
71
|
// 连接端口
|
|
72
72
|
uni.connectSocket({
|
|
73
|
-
url: cConfig._URL_WSS_IM1_
|
|
74
|
-
})
|
|
73
|
+
url: cConfig._URL_WSS_IM1_
|
|
74
|
+
});
|
|
75
75
|
// 端口++开启
|
|
76
76
|
uni.onSocketOpen(function (res) {
|
|
77
77
|
uni.sendSocketMessage({
|
|
@@ -83,21 +83,20 @@ const ctoSocketClass = {
|
|
|
83
83
|
console.log('connect success', successRes);
|
|
84
84
|
ctoSocketClass.xintiaoFunc();
|
|
85
85
|
}
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
})
|
|
86
|
+
});
|
|
87
|
+
});
|
|
89
88
|
// 接收端口消息
|
|
90
89
|
uni.onSocketMessage(function (res) {
|
|
91
90
|
let data = JSON.parse(res.data);
|
|
92
|
-
if (data.wsdoflag ==
|
|
91
|
+
if (data.wsdoflag == 'connec_refresh') return;
|
|
93
92
|
console.log('收到服务器内容:', data);
|
|
94
93
|
receive_data(data);
|
|
95
|
-
})
|
|
94
|
+
});
|
|
96
95
|
// 线上端口关闭
|
|
97
96
|
uni.onSocketClose(function (res) {
|
|
98
97
|
connect_status = false;
|
|
99
|
-
console.log('WS连接已断开,推送关闭!')
|
|
100
|
-
})
|
|
98
|
+
console.log('WS连接已断开,推送关闭!');
|
|
99
|
+
});
|
|
101
100
|
//监听socket失败
|
|
102
101
|
uni.onSocketError(function (res) {
|
|
103
102
|
console.log('WebSocket连接打开失败,请检查!');
|
|
@@ -108,11 +107,10 @@ const ctoSocketClass = {
|
|
|
108
107
|
s_data.reconnet_times++;
|
|
109
108
|
}
|
|
110
109
|
return;
|
|
111
|
-
}, s_data.beat_duration)
|
|
110
|
+
}, s_data.beat_duration);
|
|
112
111
|
});
|
|
113
112
|
},
|
|
114
113
|
|
|
115
|
-
|
|
116
114
|
set_page: function (type, _this, chat_id) {
|
|
117
115
|
//type为空默认关闭
|
|
118
116
|
if (!type) {
|
|
@@ -147,20 +145,19 @@ const ctoSocketClass = {
|
|
|
147
145
|
},
|
|
148
146
|
get_socket_status: function () {
|
|
149
147
|
return socket_status;
|
|
150
|
-
}
|
|
148
|
+
}
|
|
151
149
|
|
|
152
150
|
//
|
|
153
151
|
/**
|
|
154
152
|
* 连接,监听端口
|
|
155
153
|
*/
|
|
156
|
-
|
|
157
|
-
}
|
|
154
|
+
};
|
|
158
155
|
|
|
159
156
|
/**
|
|
160
157
|
* 接收数据分发
|
|
161
158
|
*/
|
|
162
159
|
function receive_data(data) {
|
|
163
|
-
if (data.wsdoflag !=
|
|
160
|
+
if (data.wsdoflag != 'user_creat_connect_customer_service' && data.wsdoflag != 'letter_new_record_insert') return;
|
|
164
161
|
for (let i in pagelist) {
|
|
165
162
|
let _this = pagelist[i]._this;
|
|
166
163
|
if (pagelist[i].type == 'msglist') {
|
|
@@ -174,8 +171,6 @@ function receive_data(data) {
|
|
|
174
171
|
}
|
|
175
172
|
}
|
|
176
173
|
|
|
177
|
-
|
|
178
|
-
|
|
179
174
|
module.exports = {
|
|
180
|
-
ctoSocketClass: ctoSocketClass
|
|
181
|
-
}
|
|
175
|
+
ctoSocketClass: ctoSocketClass
|
|
176
|
+
};
|